Comparing version 0.1.16 to 0.1.17
@@ -54,3 +54,3 @@ #!/usr/bin/env node | ||
cp.execFile(process.execPath, ['quick-test.js'], function(err, stdout, stderr) { | ||
if (err || stdout !== 'pass' || stderr) { | ||
if (err || stderr) { | ||
console.log('Problem with the binary; manual build incoming'); | ||
@@ -57,0 +57,0 @@ console.log('stdout=' + stdout); |
{ | ||
"name": "deasync", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "Turns async function into sync via JavaScript wrapper of Node event loop", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"install": "node ./build.js", | ||
"test": "node ./test.js && node ./quick-test.js" | ||
"test": "node spec" | ||
}, | ||
@@ -33,3 +33,6 @@ "dependencies": { | ||
"node": ">=0.11.0" | ||
}, | ||
"devDependencies": { | ||
"require-directory": "^2.1.1" | ||
} | ||
} |
@@ -1,7 +0,9 @@ | ||
var ret, deasync = require('./index.js'); | ||
setTimeout(function () { | ||
ret = 'pass'; | ||
}, 100); | ||
const assert = require('assert') | ||
var ret, | ||
deasync = require('./index.js') | ||
setTimeout(function() { | ||
ret = 'pass' | ||
}, 100) | ||
while(ret === undefined) deasync.sleep(10); | ||
process.stdout.write(ret); | ||
while (ret === undefined) deasync.sleep(10) | ||
assert.strictEqual(ret, 'pass') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
4498319
79
215
1