New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sniff-fns

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sniff-fns - npm Package Compare versions

Comparing version 0.1.5 to 0.2.0

src/__tests__/is_linux_test.js

25

config/karma.js

@@ -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

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