Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "q", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A library for promises (CommonJS/Promises/A,B,D)", | ||
@@ -50,11 +50,11 @@ "homepage": "https://github.com/kriskowal/q", | ||
"devDependencies": { | ||
"jshint": "~2.1.9", | ||
"cover": "*", | ||
"grunt": "~0.4.1", | ||
"grunt-cli": "~0.1.9", | ||
"grunt-contrib-uglify": "~0.9.1", | ||
"jasmine-node": "1.11.0", | ||
"jshint": "~2.1.9", | ||
"matcha": "~0.2.0", | ||
"opener": "*", | ||
"promises-aplus-tests": "1.x", | ||
"grunt": "~0.4.1", | ||
"grunt-cli": "~0.1.9", | ||
"grunt-contrib-uglify": "~0.2.2", | ||
"matcha": "~0.2.0" | ||
"promises-aplus-tests": "1.x" | ||
}, | ||
@@ -66,3 +66,3 @@ "scripts": { | ||
"lint": "jshint q.js", | ||
"cover": "cover run node_modules/jasmine-node/bin/jasmine-node spec && cover report html && opener cover_html/index.html", | ||
"cover": "cover run jasmine-node spec && cover report html && opener cover_html/index.html", | ||
"minify": "grunt", | ||
@@ -69,0 +69,0 @@ "prepublish": "grunt" |
13
q.js
@@ -160,5 +160,12 @@ // vim:ts=4:sts=4:sw=4: | ||
if (typeof process !== "undefined" && process.nextTick) { | ||
// Node.js before 0.9. Note that some fake-Node environments, like the | ||
// Mocha test runner, introduce a `process` global without a `nextTick`. | ||
if (typeof process === "object" && | ||
process.toString() === "[object process]" && process.nextTick) { | ||
// Ensure Q is in a real Node environment, with a `process.nextTick`. | ||
// To see through fake Node environments: | ||
// * Mocha test runner - exposes a `process` global without a `nextTick` | ||
// * Browserify - exposes a `process.nexTick` function that uses | ||
// `setTimeout`. In this case `setImmediate` is preferred because | ||
// it is faster. Browserify's `process.toString()` yields | ||
// "[object Object]", while in a real Node environment | ||
// `process.nextTick()` yields "[object process]". | ||
isNodeJS = true; | ||
@@ -165,0 +172,0 @@ |
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
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
119580
6
1801