Comparing version 7.0.0-beta5 to 7.0.0-beta6
{ | ||
"name": "titanium", | ||
"version": "7.0.0-beta5", | ||
"version": "7.0.0-beta6", | ||
"author": "TiDev, Inc. <npm@tidev.io>", | ||
@@ -5,0 +5,0 @@ "description": "Command line interface for building Titanium SDK apps", |
@@ -299,3 +299,4 @@ import chalk from 'chalk'; | ||
return reject(err); | ||
} else if (newData) { | ||
} | ||
if (newData && typeof newData === 'object' && newData.type) { | ||
data = newData; | ||
@@ -313,5 +314,8 @@ } | ||
data.result = await new Promise(resolve => { | ||
// call the function | ||
data.args.push((...args) => resolve(args)); | ||
data.fn.apply(data.ctx, data.args); | ||
// call the hooked function | ||
data.fn.call( | ||
data.ctx, | ||
...data.args, | ||
(...args) => resolve(args) | ||
); | ||
}); | ||
@@ -318,0 +322,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
197177
5842