Socket
Socket
Sign inDemoInstall

fpcollect

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fpcollect - npm Package Compare versions

Comparing version 0.5.0 to 1.0.0

dist/fpCollect.min.js

24

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc