Socket
Socket
Sign inDemoInstall

multihashing-async

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multihashing-async - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

30

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc