Git Product home page Git Product logo

makeapi-client's People

Contributors

jbuck avatar k88hudson avatar mjschranz avatar pomax avatar toolness avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

makeapi-client's Issues

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please reach out to [email protected].

(Message COC001)

Documentation for create() is out of sync w/ staging

I tried using create() as it's currently documented and got this:

{
  "status": "failure",
  "reason": {
    "message": "Validation failed",
    "name": "ValidationError",
    "errors": {
      "email": {
        "message": "Validator \"required\" failed for path email",
        "name": "ValidatorError",
        "path": "email",
        "type": "required"
      }
    }
  }
}

I then renamed the maker option to email and got this:

{
  "status": "failure",
  "reason": {
    "message": "Validation failed",
    "name": "ValidationError",
    "errors": {
      "title": {
        "message": "Validator \"required\" failed for path title",
        "name": "ValidatorError",
        "path": "title",
        "type": "required"
      },
      "contentType": {
        "message": "Validator \"required\" failed for path contentType",
        "name": "ValidatorError",
        "path": "contentType",
        "type": "required"
      },
      "url": {
        "message": "Validator \"required\" failed for path url",
        "name": "ValidatorError",
        "path": "url",
        "type": "required"
      }
    }
  }
}

Then I moved everything in the make option up a level, alongside email, and the call succeeded.

Infinite recursion on make.update()

It looks like this bug was introduced in ec122d5... When calling update() on a make, node bails with an infinite recursion error. If I roll back to 0.5.17 on npm (I would roll back to 0.5.18, but it's not on npm), the error goes away.

Wiki changes

FYI: The following changes were made to this repository's wiki:

  • defacing spam has been removed

  • the wiki has been disabled, as it was not used

These were made as the result of a recent automated defacement of publically writeable wikis.

Info for some URLs cannot be obtained

So the following URL is an existing make:

https://jess.makes.org/thimble/MTY3NTY4OTk4NA==/mobile-design-ideation-kit

However, calling makeapi.url() with that URL:

var makeapi = new Make({apiURL: 'https://makeapi.webmaker.org'});

makeapi
  .url("https://jess.makes.org/thimble/MTY3NTY4OTk4NA==/mobile-design-ideation-kit")
  .then(function (err, makes) {
    if (err) throw err;
    console.log("# of makes: " + makes.length);
  });

causes the text # of makes: 0 to be logged to the console.

Any ideas?

InvalidStateError raised in IE10+

We're setting the timeout property of an XHR before we're calling open(), which makes IE mad. The following smoke test can reproduce the error:

<!DOCTYPE html>
<meta charset="utf-8">
<title>MakeAPI Client Smoke Test</title>
<pre id="status">Getting some makes...</pre>
<script src="src/make-api.js"></script>
<script>
var makeapi = new Make({apiURL: 'https://makeapi.webmaker.org'});
var status = document.getElementById('status');

makeapi.then(function (err, makes) {
  status.textContent = (err ? 'ERROR: ' + err
                            : 'Yay, got ' + makes.length + ' makes!');
});
</script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.