js-crypto-hmac
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "js-crypto-hmac", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Universal Module for HMAC (Hash-based Message Authentication Code) in JavaScript", | ||
@@ -27,4 +27,4 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "7.1.0", | ||
"@babel/core": "7.1.0", | ||
"@babel/cli": "7.1.2", | ||
"@babel/core": "7.1.2", | ||
"@babel/plugin-transform-runtime": "7.1.0", | ||
@@ -34,9 +34,9 @@ "@babel/polyfill": "7.0.0", | ||
"@babel/register": "7.0.0", | ||
"babel-eslint": "10.0.0", | ||
"babel-loader": "8.0.2", | ||
"babel-eslint": "10.0.1", | ||
"babel-loader": "8.0.4", | ||
"babel-plugin-istanbul": "5.1.0", | ||
"babel-preset-minify": "^0.5.0", | ||
"chai": "^4.1.2", | ||
"eslint": "5.6.0", | ||
"js-crypto-random": "^0.1.0", | ||
"chai": "^4.2.0", | ||
"eslint": "5.6.1", | ||
"js-crypto-random": "^0.1.1", | ||
"karma": "3.0.0", | ||
@@ -52,8 +52,8 @@ "karma-chrome-launcher": "^2.2.0", | ||
"webpack": "^4.20.2", | ||
"webpack-cli": "^3.1.1" | ||
"webpack-cli": "^3.1.2" | ||
}, | ||
"dependencies": { | ||
"@babel/plugin-transform-regenerator": "7.0.0", | ||
"@babel/runtime": "7.0.0" | ||
"@babel/runtime": "7.1.2" | ||
} | ||
} |
Universal Module for HMAC (Hash-based Message Authentication Code) in JavaScript | ||
-- | ||
[![CircleCI](https://circleci.com/gh/junkurihara/js-crypto-hmac.svg?style=svg)](https://circleci.com/gh/junkurihara/js-crypto-hmac) | ||
@@ -50,4 +51,13 @@ > **WARNING**: At this time this solution should be considered suitable for research and experimentation, further code and security review is needed before utilization in a production application. | ||
## How to bundle scripts importing this module via Webpack | ||
When you bundle files importing this module via Webpack for web, the bundler tries to simultaneously bundle modules that are compatible to some native modules of Node.js, i.e., those in`node-libs-browser` module. But this module automatically chooses the native `crypto` module in Node.js and `crypto.subtle` of Web API in browsers by checking its running environment, and hence the bundled modules of `node-libs-browser` are redundant. From this observation, you should exclude them wen you create bundle scripts importing this module. In particular, the `externals` option of `webpack.config.js` is useful as follows. | ||
```javascript | ||
{ | ||
externals: { | ||
'crypto': true | ||
} | ||
} | ||
``` | ||
# License | ||
Licensed under the MIT license, see `LICENSE` file. |
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
9910
62
+ Added@babel/runtime@7.1.2(transitive)
- Removed@babel/runtime@7.0.0(transitive)
Updated@babel/runtime@7.1.2