@pubkeeper/crypto-aes-cbc
Advanced tools
Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2
{ | ||
"name": "@pubkeeper/crypto-aes-cbc", | ||
"version": "3.0.0-alpha.1", | ||
"version": "3.0.0-alpha.2", | ||
"description": "AES-CBC Crypto for Pubkeeper (using aes-js)", | ||
@@ -10,11 +10,9 @@ "main": "dist/index.js", | ||
"lint": "eslint src/", | ||
"flow": "flow", | ||
"typecheck": "flow check", | ||
"test": "mocha --opts __test__/.mocha.opts", | ||
"test:watch": "mocha -w --opts __test__/.mocha.opts", | ||
"verify": "npm run lint && npm run typecheck" | ||
"verify": "npm run lint" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/pubkeeper/javascript-crypt-aes-cbc.git" | ||
"url": "git+https://github.com/pubkeeper/javascript-crypto-aes-cbc.git" | ||
}, | ||
@@ -24,28 +22,29 @@ "author": "", | ||
"bugs": { | ||
"url": "https://github.com/pubkeeper/javascript-crypt-aes-cbc/issues" | ||
"url": "https://github.com/pubkeeper/javascript-crypto-aes-cbc/issues" | ||
}, | ||
"homepage": "https://github.com/pubkeeper/javascript-crypt-aes-cbc#readme", | ||
"homepage": "https://github.com/pubkeeper/javascript-crypto-aes-cbc#readme", | ||
"devDependencies": { | ||
"babel-core": "^6.24.1", | ||
"babel-eslint": "^7.2.3", | ||
"babel-eslint": "^8.0.1", | ||
"babel-loader": "^7.0.0", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-flow-strip-types": "^6.22.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.6.0", | ||
"chai": "^3.5.0", | ||
"eslint": "^3.19.0", | ||
"eslint-config-airbnb-base": "^11.1.3", | ||
"chai": "^4.1.2", | ||
"eslint": "^4.8.0", | ||
"eslint-config-airbnb-base": "^12.0.1", | ||
"eslint-loader": "^1.7.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"flow-bin": "^0.44.2", | ||
"mocha": "^3.3.0", | ||
"rimraf": "^2.6.1", | ||
"sinon": "^2.2.0", | ||
"sinon-chai": "^2.10.0", | ||
"webpack": "^2.4.1" | ||
"sinon": "^4.0.0", | ||
"sinon-chai": "^2.14.0", | ||
"webpack": "^3.6.0", | ||
"webpack-node-externals": "^1.6.0" | ||
}, | ||
"dependencies": { | ||
"aes-js": "^3.1.0" | ||
"aes-js": "^3.1.0", | ||
"babel-runtime": "^6.26.0" | ||
} | ||
} |
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const nodeExternals = require('webpack-node-externals'); | ||
module.exports = { | ||
const browser = { | ||
entry: './index.js', | ||
output: { | ||
library: 'PubkeeperCryptoAesCbc', | ||
libraryTarget: 'umd', | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: 'pubkeeper-crypto-aes-cbc.js', | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
enforce: 'pre', | ||
test: /\.js$/, | ||
exclude: /(node_modules)/, | ||
loader: 'eslint-loader', | ||
}, | ||
{ | ||
test: /\.js$/, | ||
exclude: /(node_modules)/, | ||
loader: 'babel-loader', | ||
}, | ||
], | ||
}, | ||
}; | ||
const browserMinified = { | ||
...browser, | ||
output: { | ||
...browser.output, | ||
filename: 'pubkeeper-crypto-aes-cbc.min.js', | ||
}, | ||
plugins: [ | ||
...(browser.plugins || []), | ||
new webpack.optimize.UglifyJsPlugin() | ||
], | ||
}; | ||
const node = { | ||
target: 'node', | ||
entry: './index.js', | ||
externals: [nodeExternals()], | ||
output: { | ||
libraryTarget: 'commonjs', | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: 'index.js', | ||
}, | ||
plugins: [new webpack.optimize.ModuleConcatenationPlugin()], | ||
module: { | ||
@@ -22,2 +64,11 @@ rules: [ | ||
loader: 'babel-loader', | ||
options: { | ||
"presets": [ | ||
["env", { | ||
"targets": { | ||
"node": "current" | ||
} | ||
}] | ||
], | ||
}, | ||
}, | ||
@@ -27,1 +78,3 @@ ], | ||
}; | ||
module.exports = [browser, browserMinified, node]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
124098
2
11
1152
1
+ Addedbabel-runtime@^6.26.0
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)