Comparing version 0.1.6 to 0.1.7
@@ -5,4 +5,4 @@ export declare enum NamespaceIds { | ||
OID = "6ba7b812-9dad-11d1-80b4-00c04fd430c8", | ||
X500 = "6ba7b814-9dad-11d1-80b4-00c04fd430c8", | ||
X500 = "6ba7b814-9dad-11d1-80b4-00c04fd430c8" | ||
} | ||
export default NamespaceIds; |
{ | ||
"name": "big-uuid", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "An RFC 4112 conformant UUID generator creating v1, v3, v4, and v5 UUIDs.", | ||
"main": "dist/node.es6/index.js", | ||
"main": "dist/umd/index.js", | ||
"types": "src/index.d.ts", | ||
"scripts": { | ||
"build": "npm run build-node && npm run build-browser && npm run build-declaration-file", | ||
"build-node": "npm run build-node-esnext && npm run build-node-es6 && npm run build-node-es5", | ||
"build-node-esnext": "tsc --project tsconfig.esnext.json", | ||
"build-node-es6": "tsc --project tsconfig.es6.json", | ||
"build-node-es5": "tsc --project tsconfig.es5.json", | ||
"build-declaration-file": "tsc --project tsconfig.d.json && copy dist\\node.esnext\\index.d.ts src\\ && copy src\\index.d.ts dist\\node.es6 && copy src\\index.d.ts dist\\node.es5", | ||
"build-browser": "webpack --display-modules", | ||
"test": "jest", | ||
"test-coverage": "jest --coverage", | ||
"test-watch": "jest --watch", | ||
"test-coverage-watch": "jest --watch --coverage" | ||
"build": "cross-env NODE_ENV=production npm run build-node && npm run build-browser && npm run copy-declaration-file", | ||
"build-node": "tsc", | ||
"copy-declaration-file": "copy dist\\node.esnext\\index.d.ts src\\", | ||
"build-browser": "webpack -p --display-modules --display-error-details", | ||
"build-browser:dev": "cross-env NODE_ENV=development webpack --display-modules --display-error-details", | ||
"test": "cross-env NODE_ENV=test jest", | ||
"test-coverage": "npm run test -- --coverage", | ||
"test-watch": "npm run test -- --watch", | ||
"test-coverage-watch": "npm run test -- --watch --coverage" | ||
}, | ||
@@ -35,17 +33,32 @@ "repository": { | ||
"devDependencies": { | ||
"@types/node": "^8.10.34", | ||
"babel-cli": "^6.26.0", | ||
"@babel/core": "^7.1.2", | ||
"@babel/preset-env": "^7.1.0", | ||
"@types/jest": "^23.3.5", | ||
"@types/node": "^10.11.7", | ||
"babel-env": "^2.4.1", | ||
"babel-jest": "^21.2.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", | ||
"babel-plugin-transform-object-assign": "^6.22.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-minify": "^0.2.0", | ||
"jest": "^21.2.1", | ||
"ts-jest": "^21.2.4", | ||
"typescript": "^2.6.2", | ||
"uglifyjs-webpack-plugin": "^1.1.4", | ||
"webpack": "^3.10.0" | ||
"babel-jest": "^23.6.0", | ||
"babel-loader": "^8.0.4", | ||
"babel-preset-jest": "^23.2.0", | ||
"cross-env": "^5.2.0", | ||
"jest": "^23.6.0", | ||
"ts-jest": "^23.10.4", | ||
"typescript": "^3.1.3", | ||
"webpack": "^4.20.2", | ||
"webpack-cli": "^3.1.2" | ||
}, | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"js", | ||
"jsx", | ||
"ts", | ||
"tsx" | ||
], | ||
"testMatch": [ | ||
"**/tests/**/*.test.{j,t}s?(x)" | ||
], | ||
"transform": { | ||
"^.+\\.jsx?$": "babel-jest", | ||
"^.+\\.tsx?$": "ts-jest" | ||
} | ||
} | ||
} |
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"module": "esnext", | ||
"outDir": "./dist/node.esnext/", | ||
"declaration": true, | ||
"target": "esnext", | ||
"downlevelIteration": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
@@ -18,5 +22,3 @@ "jsx": "preserve", | ||
"removeComments": true, | ||
"sourceMap": false, | ||
"strict": true, | ||
"target": "es6" | ||
"strict": true | ||
}, | ||
@@ -23,0 +25,0 @@ |
@@ -1,6 +0,7 @@ | ||
const path = require('path'); | ||
const uglifyjs = require('uglifyjs-webpack-plugin'); | ||
const webpack = require('webpack'); | ||
const path = require('path'); | ||
const mode = process.env.NODE_ENV === 'development' ? 'development' : 'production'; | ||
const baseConfig = { | ||
mode, | ||
target: 'node', | ||
entry: path.resolve(__dirname, 'dist/node.esnext/index.js'), | ||
@@ -14,8 +15,5 @@ resolve: { | ||
fs: 'empty', | ||
process: false, | ||
}, | ||
plugins: [ | ||
new uglifyjs({ sourceMap: true, }), | ||
], | ||
performance: { | ||
@@ -40,5 +38,5 @@ hints: 'warning', | ||
output: { | ||
path: path.resolve(__dirname, 'dist/browser.es5/'), | ||
path: path.resolve(__dirname, 'dist/umd/'), | ||
filename: 'index.js', | ||
library: 'uuid', | ||
library: 'ifid', | ||
libraryTarget: 'umd', | ||
@@ -58,5 +56,6 @@ }, | ||
options: { | ||
babelrc: false, | ||
presets: [ | ||
[ | ||
'env', | ||
'@babel/preset-env', | ||
@@ -67,2 +66,3 @@ { | ||
'ie >= 8', | ||
'> 1%' | ||
], | ||
@@ -75,9 +75,3 @@ }, | ||
], | ||
'stage-1', | ||
], | ||
plugins: [ | ||
'transform-object-assign', | ||
], | ||
}, | ||
@@ -90,7 +84,8 @@ }, | ||
const esSixBrowserConfig = Object.assign({}, baseConfig, { | ||
// This is producing the exact same bundle size as the above es5 config. | ||
/*const esSixBrowserConfig = Object.assign({}, baseConfig, { | ||
output: { | ||
path: path.resolve(__dirname, 'dist/browser.es6/'), | ||
filename: 'index.js', | ||
library: 'uuid', | ||
library: 'ifid', | ||
libraryTarget: 'umd', | ||
@@ -110,5 +105,6 @@ }, | ||
options: { | ||
babelrc: false, | ||
presets: [ | ||
[ | ||
'env', | ||
'@babel/preset-env', | ||
@@ -126,9 +122,3 @@ { | ||
], | ||
'stage-1', | ||
], | ||
plugins: [ | ||
'transform-object-assign', | ||
], | ||
}, | ||
@@ -139,7 +129,7 @@ }, | ||
}, | ||
}); | ||
});*/ | ||
module.exports = [ | ||
esFiveBrowserConfig, | ||
esSixBrowserConfig, | ||
/*esSixBrowserConfig,*/ | ||
]; |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
4
126056
91
1898
2