Update es6-promise to version 1.0.x and lock it there.
Also fix `cast` being replaced by `resolve`
This commit is contained in:
1 parent
9b3e84b111
commit
29f3d62c94
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "capnp",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"description": "A wrapper for the C++ Cap'n Proto library",
|
||||
"keywords": [ "capnproto", "serialization" ],
|
||||
"homepage": "http://capnproto.org",
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
"main": "src/node-capnp/capnp.js",
|
||||
"dependencies": {
|
||||
"es6-promise": ">=0.1.1"
|
||||
"es6-promise": "1.0.x"
|
||||
},
|
||||
"scripts": {
|
||||
"install": "node ./build.js",
|
||||
|
||||
@@ -147,7 +147,7 @@ function wrapLocalMethod(self, method) {
|
||||
return function (request) {
|
||||
var params = v8capnp.toJsParams(request, Capability);
|
||||
v8capnp.releaseParams(request);
|
||||
Promise.cast(method.apply(self, params)).then(function (results) {
|
||||
Promise.resolve(method.apply(self, params)).then(function (results) {
|
||||
if (typeof results !== "object") {
|
||||
if (results === undefined) {
|
||||
results = [];
|
||||
|
||||
Reference in new issue
Block a user