🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

linefold

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linefold - npm Package Compare versions

Comparing version
1.0.14
to
1.0.15
+2
-3
package.json
{
"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",

+16
-2
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
}
};