Comparing version 0.5.0 to 1.0.0
{ | ||
"name": "fpcollect", | ||
"version": "0.5.0", | ||
"description": "Fingerprinting script of Fingerprint-Scanner", | ||
"main": "dist/fpcollect.js", | ||
"version": "1.0.0", | ||
"description": "Fingerprinting script of the Fingerprint-Scanner library", | ||
"main": "dist/fpCollect.min.js", | ||
"scripts": { | ||
"start": "./node_modules/.bin/webpack --watch", | ||
"build": "./node_modules/.bin/webpack -p", | ||
"test": "./node_modules/.bin/mocha --recursive test" | ||
"build": "WEBPACK_ENV=build webpack", | ||
"dev": "WEBPACK_ENV=dev webpack --progress --colors --watch", | ||
"test": "mocha --recursive test" | ||
}, | ||
@@ -22,16 +22,12 @@ "repository": { | ||
"homepage": "https://github.com/antoinevastel/fp-collect", | ||
"dependencies": { | ||
"puppeteer": "^1.0.0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^7.1.5", | ||
"babel-preset-es2015": "^6.24.1", | ||
"chai": "^4.1.2", | ||
"karma": "^2.0.0", | ||
"karma-chai": "^0.1.0", | ||
"karma-mocha": "^1.3.0", | ||
"mocha": "^5.0.1", | ||
"puppeteer": "^1.0.0", | ||
"webpack": "^3.11.0" | ||
} | ||
} |
@@ -25,3 +25,3 @@ # Fp-Collect | ||
It generates a minified version called **fpcollect.js** in the **dist/** directory. | ||
It generates a minified version called **fpCollect.min.js** in the **dist/** directory. | ||
### Usage | ||
@@ -28,0 +28,0 @@ |
@@ -1,28 +0,42 @@ | ||
// webpack.config.js | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const UglifyJsPlugin = webpack.optimize.UglifyJsPlugin; | ||
const env = process.env.WEBPACK_ENV; | ||
const libraryName = 'fpCollect'; | ||
const plugins = []; | ||
let outputFile; | ||
if (env === 'build') { | ||
plugins.push(new UglifyJsPlugin({ minimize: true })); | ||
outputFile = `${libraryName}.min.js`; | ||
} else { | ||
outputFile = `${libraryName}.js`; | ||
} | ||
const config = { | ||
context: path.resolve(__dirname, 'src'), | ||
entry: './fpCollect.js', | ||
entry: `${__dirname}/src/${libraryName}.js`, | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: 'fpcollect.js', | ||
library: 'fpCollect' | ||
path: `${__dirname}/dist`, | ||
filename: outputFile, | ||
library: libraryName | ||
}, | ||
module: { | ||
rules: [{ | ||
test: /\.js$/, | ||
include: path.resolve(__dirname, 'src'), | ||
use: [{ | ||
loader: 'babel-loader', | ||
options: { | ||
presets: [ | ||
['es2015', { modules: false }] | ||
] | ||
loaders: [ | ||
{ | ||
loader:'babel-loader', | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
query: { | ||
presets: ['es2015'] | ||
} | ||
}] | ||
}] | ||
} | ||
} | ||
] | ||
}, | ||
resolve: { | ||
extensions: ['.js'] | ||
}, | ||
plugins: plugins | ||
}; | ||
module.exports = config; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
7
695
0
- Removedpuppeteer@^1.0.0
- Removedagent-base@4.3.0(transitive)
- Removedasync-limiter@1.0.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbuffer-crc32@0.2.13(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddebug@2.6.93.2.74.3.7(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedes6-promisify@5.0.0(transitive)
- Removedextract-zip@1.7.0(transitive)
- Removedfd-slicer@1.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedhttps-proxy-agent@2.2.4(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmime@2.6.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.02.1.3(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpend@1.2.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedprogress@2.0.3(transitive)
- Removedproxy-from-env@1.1.0(transitive)
- Removedpuppeteer@1.20.0(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedws@6.2.3(transitive)
- Removedyauzl@2.10.0(transitive)