@foundryapp/accessibility-node
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "@foundryapp/accessibility-node", | ||
"descriptiop": "Node.js wrapper for the macOS accessibility API", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "gypfile": true, |
const ax = require('../build/Release/accessibility_node.node'); | ||
const { promisify } = require('util'); | ||
@@ -6,6 +7,5 @@ | ||
return new Promise((resolve, reject) => { | ||
ax.launchApp('com.apple.Terminal', (args) => { | ||
ax.launchApp('com.apple.Terminal', (err, args) => { | ||
console.log('Callback from JavaScript', args); | ||
// return resolve(); | ||
return reject(); | ||
resolve(); | ||
}); | ||
@@ -15,4 +15,16 @@ }) | ||
function timeout() { | ||
return new Promise((resolve, reject) => { | ||
setTimeout(() => { | ||
console.log('TIMEOUT'); | ||
resolve(); | ||
}, 10 * 1000) | ||
}); | ||
} | ||
(async function() { | ||
await launch(); | ||
// await timeout(); | ||
// const d = promisify(launch); | ||
// await d(); | ||
console.log('After launch'); | ||
@@ -31,5 +43,4 @@ })() | ||
setTimeout(() => console.log('exiting...'), 10 * 1000) | ||
// setTimeout(() => console.log('exiting...'), 10 * 1000) | ||
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
370589
35