Comparing version 0.1.5 to 0.2.0
@@ -1,9 +0,20 @@ | ||
var config = function(config) { | ||
var webpackConfig = require('./webpack') | ||
var config = function(config) { | ||
config.set({ | ||
frameworks: [ | ||
'mocha', | ||
'chai-sinon' | ||
], | ||
files: [], | ||
browsers: ['PhantomJS'] | ||
frameworks: ['mocha', 'chai-sinon'], | ||
files: ['../test.js'], | ||
preprocessors: {'../test.js': ['webpack']}, | ||
webpack: webpackConfig, | ||
webpackMiddleware: { | ||
stats: { | ||
assets: false, | ||
chunks: false, | ||
hash: false, | ||
timings: false, | ||
version: false | ||
} | ||
}, | ||
browsers: ['PhantomJS'], | ||
reporters: ['mocha'] | ||
}); | ||
@@ -10,0 +21,0 @@ }; |
var path = require('path'); | ||
var isTest = process.env.NODE_ENV == 'test'; | ||
var config = { | ||
cache: true, | ||
entry: { | ||
entry: isTest ? {} : { | ||
'sniff_fns': './src/sniff_fns.js' | ||
}, | ||
output: { | ||
output: isTest ? {path: '/'} : { | ||
path: path.join(process.cwd(), 'dist'), | ||
@@ -10,0 +11,0 @@ filename: '[name].js', |
{ | ||
"name": "sniff-fns", | ||
"version": "0.1.5", | ||
"version": "0.2.0", | ||
"author": "Ivan Shornikov <paraboom@gmail.com>", | ||
@@ -12,14 +12,14 @@ "description": "Browser agent sniffing functions", | ||
"devDependencies": { | ||
"karma-chai-sinon": "^0.1.3", | ||
"karma-mocha": "^0.1.9", | ||
"karma-phantomjs-launcher": "^0.1.4", | ||
"karmak": "^0.2.1", | ||
"webpack": "^1.4.4" | ||
"karma": "^0.13.9", | ||
"karma-chai-sinon": "^0.1.5", | ||
"karma-mocha": "^0.2.0", | ||
"karma-mocha-reporter": "^1.1.1", | ||
"karma-phantomjs-launcher": "^0.2.1", | ||
"karma-webpack": "^1.7.0", | ||
"webpack": "^1.12.0" | ||
}, | ||
"scripts": { | ||
"karmak": "karmak --webpack-config ./config/webpack.js --karma-config ./config/karma.js --pattern '**/*/_test_helper.js' --pattern '**/*_test.js*' --pattern '!node_modules/**/*' --pattern '!tmp'", | ||
"test": "npm run-script karmak -- --single-run", | ||
"autotest": "npm run-script karmak", | ||
"test": "env NODE_ENV=test karma start ./config/karma.js", | ||
"build": "webpack --config ./config/webpack.js" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
40300
46
777
7
2
1