Comparing version 5.6.0 to 6.0.0-beta.0
@@ -9,18 +9,2 @@ var keytar = require('../build/Release/keytar.node') | ||
function callbackPromise(callback) { | ||
if (typeof callback === 'function') { | ||
return new Promise(function(resolve, reject) { | ||
callback((err, val) => { | ||
if (err) { | ||
reject(err) | ||
} else { | ||
resolve(val) | ||
} | ||
}) | ||
}) | ||
} else { | ||
throw new Error('Callback required') | ||
} | ||
} | ||
module.exports = { | ||
@@ -31,3 +15,3 @@ getPassword: function (service, account) { | ||
return callbackPromise(callback => keytar.getPassword(service, account, callback)) | ||
return keytar.getPassword(service, account) | ||
}, | ||
@@ -40,3 +24,3 @@ | ||
return callbackPromise(callback => keytar.setPassword(service, account, password, callback)) | ||
return keytar.setPassword(service, account, password) | ||
}, | ||
@@ -48,3 +32,3 @@ | ||
return callbackPromise(callback => keytar.deletePassword(service, account, callback)) | ||
return keytar.deletePassword(service, account) | ||
}, | ||
@@ -55,3 +39,3 @@ | ||
return callbackPromise(callback => keytar.findPassword(service, callback)) | ||
return keytar.findPassword(service) | ||
}, | ||
@@ -62,4 +46,4 @@ | ||
return callbackPromise(callback => keytar.findCredentials(service, callback)) | ||
return keytar.findCredentials(service) | ||
} | ||
} |
@@ -6,3 +6,3 @@ { | ||
"description": "Bindings to native Mac/Linux/Windows password APIs", | ||
"version": "5.6.0", | ||
"version": "6.0.0-beta.0", | ||
"license": "MIT", | ||
@@ -38,3 +38,3 @@ "repository": { | ||
"test": "npm run lint && npm build . && mocha --require babel-core/register spec/", | ||
"prebuild-node": "prebuild -t 8.9.0 -t 9.4.0 -t 10.11.0 -t 11.9.0 -t 12.0.0 -t 13.0.0 --strip", | ||
"prebuild-node": "prebuild -t 8.9.0 -t 9.4.0 -t 10.11.0 -t 11.9.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 --strip", | ||
"prebuild-node-ia32": "prebuild -t 8.9.0 -t 9.4.0 -a ia32 --strip", | ||
@@ -57,5 +57,5 @@ "prebuild-electron": "prebuild -t 5.0.0 -t 6.0.0 -t 7.0.0 -t 8.0.0 -t 9.0.0-beta.16 -r electron --strip", | ||
"dependencies": { | ||
"nan": "2.14.1", | ||
"node-addon-api": "^3.0.0", | ||
"prebuild-install": "5.3.3" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
46637
78
1
+ Addednode-addon-api@^3.0.0
+ Addednode-addon-api@3.2.1(transitive)
- Removednan@2.14.1
- Removednan@2.14.1(transitive)