+2
-3
| { | ||
| "name": "linefold", | ||
| "version": "1.0.14", | ||
| "version": "1.0.15", | ||
| "description": "Convert given text into folded lines with maximum width and given font / given text length measuring function before rendering, so as to render paragraphs onto platforms without line-folding support, e.g. HTML5 Canvas.", | ||
@@ -19,3 +19,3 @@ "main": "dist/linefold.js", | ||
| "build": "webpack", | ||
| "test": "mochapack --webpack-config webpack.config-test.js test.js" | ||
| "test": "webpack -c webpack.config-test.js && mocha ./__test__.js" | ||
| }, | ||
@@ -37,3 +37,2 @@ "author": "Frank Deng", | ||
| "mocha": "^9.0.2", | ||
| "mochapack": "^2.1.2", | ||
| "postcss": "^8.3.6", | ||
@@ -40,0 +39,0 @@ "postcss-loader": "^6.1.1", |
| const nodeExternals = require('webpack-node-externals'); | ||
| const fs = require('fs'); | ||
| module.exports = { | ||
| mode: 'development', | ||
| mode: 'production', | ||
| target: 'node', | ||
| externals: [nodeExternals()] | ||
| externals: [nodeExternals()], | ||
| entry: { | ||
| '__test__':{ | ||
| publicPath:'/', | ||
| import:'./test.js' | ||
| } | ||
| }, | ||
| output:{ | ||
| path: __dirname, | ||
| filename:'[name].js' | ||
| }, | ||
| optimization: { | ||
| minimize: false | ||
| } | ||
| }; |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
41085
0.49%16
-5.88%567
2.53%2
100%