01-custom-library-npm
Advanced tools
Comparing version
{ | ||
"name": "01-custom-library-npm", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/webpack-numbers.js", |
@@ -8,5 +8,21 @@ const path = require('path') | ||
path: path.resolve(__dirname, 'dist'), | ||
clean: true, | ||
filename: 'webpack-numbers.js', | ||
clean: true | ||
library: { | ||
// library 向外暴露的对象名 | ||
name: 'webpackNumbers', | ||
// 兼容不同的环境 CommonJS、AMD、Node.js 等 | ||
type: 'umd', | ||
}, | ||
}, | ||
// 外部扩展:https://webpack.docschina.org/configuration/externals/#externals | ||
externals: { | ||
lodash: { | ||
commonjs: 'lodash', | ||
commonjs2: 'lodash', | ||
amd: 'lodash', | ||
root: '_', | ||
}, | ||
}, | ||
} |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
6
20%1
-50%78
Infinity%10114
-98.23%192
-89.5%2
100%3
Infinity%