multihashing-async
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "multihashing-async", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "multiple hash functions", | ||
"main": "lib/index.js", | ||
"jsnext:main": "src/index.js", | ||
"main": "src/index.js", | ||
"browser": { | ||
"./src/crypto.js": "./src/crypto-browser.js", | ||
"./lib/crypto.js": "./lib/crypto-browser.js" | ||
"./src/crypto.js": "./src/crypto-browser.js" | ||
}, | ||
"scripts": { | ||
"test": "PHANTOM=off aegir-test", | ||
"test:browser": "PHANTOM=off aegir-test browser", | ||
"test": "aegir-test", | ||
"test:browser": "aegir-test browser", | ||
"test:node": "aegir-test node", | ||
"lint": "aegir-lint", | ||
"release": "PHANTOM=off aegir-release", | ||
"release-minor": "PHANTOM=off aegir-release minor", | ||
"release-major": "PHANTOM=off aegir-release major", | ||
"release": "aegir-release", | ||
"release-minor": "aegir-release minor", | ||
"release-major": "aegir-release major", | ||
"build": "aegir-build", | ||
@@ -42,11 +40,15 @@ "coverage": "aegir-coverage", | ||
"browserify-sha3": "0.0.2", | ||
"multihashes": "^0.2.0", | ||
"multihashes": "^0.2.2", | ||
"nodeify": "^1.0.0", | ||
"sha3": "^1.2.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^8.1.0", | ||
"benchmark": "^2.1.1", | ||
"aegir": "^9.0.1", | ||
"benchmark": "^2.1.2", | ||
"chai": "^3.5.0", | ||
"pre-commit": "^1.1.2" | ||
"pre-commit": "^1.1.3" | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"homepage": "https://github.com/multiformats/js-multihashing-async", | ||
@@ -53,0 +55,0 @@ "contributors": [ |
@@ -11,3 +11,7 @@ # js-multihashing-async | ||
[![Dependency Status](https://david-dm.org/multiformats/js-multihashing-async.svg?style=flat-square)](https://david-dm.org/multiformats/js-multihashing-async) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) | ||
![](https://img.shields.io/badge/npm-%3E%3D3.0.0-orange.svg?style=flat-square) | ||
![](https://img.shields.io/badge/Node.js-%3E%3D4.0.0-orange.svg?style=flat-square) | ||
[![Sauce Test Status](https://saucelabs.com/browser-matrix/ipfs-js-mh-async.svg)](https://saucelabs.com/u/ipfs-js-mh-async) | ||
> Use all the functions in [multihash](https://github.com/multiformats/multihash). | ||
@@ -14,0 +18,0 @@ |
'use strict' | ||
const SHA3 = require('browserify-sha3') | ||
const nodeify = require('nodeify') | ||
@@ -37,5 +38,6 @@ const webCrypto = getWebCrypto() | ||
return res.then((arrbuf) => { | ||
callback(null, new Buffer(new Uint8Array(arrbuf))) | ||
}).catch((err) => callback(err)) | ||
nodeify( | ||
res.then((raw) => new Buffer(new Uint8Array(raw))), | ||
callback | ||
) | ||
} | ||
@@ -42,0 +44,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
152
282757
4
13
3256
2
+ Addednodeify@^1.0.0
+ Addedis-promise@1.0.1(transitive)
+ Addednodeify@1.0.1(transitive)
+ Addedpromise@1.3.0(transitive)
Updatedmultihashes@^0.2.2