Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "proxmis", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A generator for creating promises that can be used as node.js callbacks.", | ||
@@ -13,2 +13,6 @@ "main": "proxmis.js", | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ChiperSoft/proxmis.js.git" | ||
}, | ||
"author": "Jarvis Badgley <chiper@chipersoft.com> (http://chipersoft.com/)", | ||
@@ -15,0 +19,0 @@ "license": "MIT", |
@@ -27,3 +27,3 @@ | ||
callable.then = function () { | ||
defer.then.apply(defer, arguments); | ||
return defer.then.apply(defer, arguments); | ||
}; | ||
@@ -30,0 +30,0 @@ |
17
test.js
@@ -157,3 +157,20 @@ | ||
exports['Chained then'] = function (test) { | ||
test.expect(2); | ||
var prox = proxmis(); | ||
var defer = prox.then(function (result) { | ||
test.ok(true); | ||
return result; | ||
}); | ||
defer = defer.then(function (result) { | ||
test.equal(result, 10); | ||
test.done(); | ||
}); | ||
prox(null, 10); | ||
}; | ||
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6190
173
0