Comparing version 0.6.1 to 0.6.2
{ | ||
"name": "peer-id", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "IPFS Peer Id implementation in Node.js", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"lint": "standard", | ||
"test": "npm run test:node && npm run test:browser", | ||
"test:node": "mocha tests/test.js", | ||
"test:browser": "karma start karma.conf.js", | ||
"coverage": "istanbul cover --print both -- _mocha tests/test.js", | ||
"dist": "webpack" | ||
"lint": "dignified-lint", | ||
"build": "dignified-build", | ||
"test": "dignified-test", | ||
"test:node": "dignified-test node", | ||
"test:browser": "dignified-test browser", | ||
"release": "dignified-release", | ||
"coverage": "dignified-coverage" | ||
}, | ||
"standard": { | ||
"ignore": [ | ||
"dist", | ||
"deps" | ||
] | ||
}, | ||
"keywords": [ | ||
@@ -37,18 +32,7 @@ "IPFS" | ||
"devDependencies": { | ||
"browserify": "^13.0.0", | ||
"buffer-loader": "0.0.1", | ||
"chai": "^3.5.0", | ||
"dignified.js": "^1.0.0", | ||
"istanbul": "^0.4.2", | ||
"json-loader": "^0.5.4", | ||
"karma": "^0.13.19", | ||
"karma-chrome-launcher": "^0.2.2", | ||
"karma-cli": "^0.1.2", | ||
"karma-firefox-launcher": "^0.1.7", | ||
"karma-mocha": "^0.2.1", | ||
"karma-spec-reporter": "0.0.24", | ||
"karma-webpack": "^1.7.0", | ||
"mocha": "^2.4.5", | ||
"pre-commit": "^1.1.1", | ||
"standard": "^6.0.7", | ||
"webpack": "^1.12.14" | ||
"pre-commit": "^1.1.1" | ||
}, | ||
@@ -64,3 +48,12 @@ "dependencies": { | ||
"url": "https://github.com/diasdavid/js-peer-id.git" | ||
}, | ||
"dignified": { | ||
"webpack": { | ||
"resolve": { | ||
"alias": { | ||
"node-forge": "../vendor/forge.bundle.js" | ||
} | ||
} | ||
} | ||
} | ||
} |
/* | ||
* Id is an object representation of a peer Id. a peer Id is a multihash | ||
*/ | ||
'use strict' | ||
@@ -12,6 +13,4 @@ const fs = require('fs') | ||
const isNode = !global.window | ||
// protobuf read from file | ||
const messages = isNode ? protobuf(fs.readFileSync(path.resolve(__dirname, 'pb/crypto.proto'))) : protobuf(require('buffer!./pb/crypto.proto')) | ||
const messages = protobuf(fs.readFileSync(path.resolve(__dirname, '../protos/crypto.proto'))) | ||
@@ -18,0 +17,0 @@ exports = module.exports = Id |
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
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
5249924
5
118837
1