Comparing version 0.9.0 to 0.9.1
{ | ||
"name": "q", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "A library for promises (CommonJS/Promises/A,B,D)", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/kriskowal/q", |
9
q.js
@@ -47,3 +47,3 @@ // vim:ts=4:sts=4:sw=4: | ||
// RequireJS | ||
} else if (typeof define === "function") { | ||
} else if (typeof define === "function" && define.amd) { | ||
define(definition); | ||
@@ -409,4 +409,7 @@ | ||
} | ||
value = valueOf(value); // shorten chain | ||
return value; | ||
var nearer = valueOf(value); | ||
if (isPromise(nearer)) { | ||
value = nearer; // shorten chain | ||
} | ||
return nearer; | ||
}; | ||
@@ -413,0 +416,0 @@ |
Sorry, the diff of this file is not supported yet
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
71249
1378