kinto-client
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -12,2 +12,4 @@ "use strict"; | ||
var _events = require("events"); | ||
var _utils = require("./utils.js"); | ||
@@ -75,6 +77,3 @@ | ||
*/ | ||
if (!events) { | ||
throw new Error("No events handler provided"); | ||
} | ||
this.events = events; | ||
this.events = events || new _events.EventEmitter(); | ||
@@ -81,0 +80,0 @@ /** |
{ | ||
"name": "kinto-client", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "JavaScript HTTP client for the Kinto API.", | ||
@@ -9,5 +9,5 @@ "main": "lib/index.js", | ||
"dist": "mkdir -p dist && rm -f dist/*.* && npm run dist-dev && npm run dist-prod && npm run dist-noshim", | ||
"dist-dev": "browserify -s KintoApi -d -e src/index.js -o dist/kinto-client-$npm_package_version.js -t [ babelify --sourceMapRelative . ]", | ||
"dist-noshim": "browserify -s KintoApi -g uglifyify --ignore isomorphic-fetch --ignore babel-polyfill -e src/index.js -o dist/kinto-client-$npm_package_version.noshim.js -t [ babelify --sourceMapRelative . ]", | ||
"dist-prod": "browserify -s KintoApi -g uglifyify -e src/index.js -o dist/kinto-client-$npm_package_version.min.js -t [ babelify --sourceMapRelative . ]", | ||
"dist-dev": "browserify -s KintoApi -d -e src/index.js -o dist/kinto-client.js -t [ babelify --sourceMapRelative . ]", | ||
"dist-noshim": "browserify -s KintoApi -g uglifyify --ignore isomorphic-fetch --ignore babel-polyfill -e src/index.js -o dist/kinto-client.noshim.js -t [ babelify --sourceMapRelative . ]", | ||
"dist-prod": "browserify -s KintoApi -g uglifyify -e src/index.js -o dist/kinto-client.min.js -t [ babelify --sourceMapRelative . ]", | ||
"report-coverage": "npm run test-cover && ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info", | ||
@@ -14,0 +14,0 @@ "tdd": "babel-node node_modules/.bin/_mocha --watch 'test/**/*_test.js'", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
168320
2249
5