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

sinon-test

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinon-test - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

2

dist/sinon-test.js

@@ -1,1 +0,1 @@

!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.sinonTest=e()}(this,function(){"use strict";function n(n){return void 0===n.createSandbox&&!!n.sandbox&&"object"==typeof n.sandbox&&"function"==typeof n.sandbox.create}function e(n,e,t){if(e){if(n.restore(),t)return;throw e}n.verifyAndRestore()}function t(n,t){return t&&i.isPromise(t)?t.then(function(t){return e(n),t},function(t){e(n,t||Error("Promise rejected with no/falsy error"))}):(e(n),t)}function o(n,o,r){if(o&&i.isPromise(o)){if(!r)return void t(n,o);e(n,Error("Your test should take a callback *or* return a promise. It should not do both."))}r||e(n)}function r(n,e){return s.configure(n,e)}var i={isPromise:function(n){return"object"==typeof n&&"function"==typeof n.then},isSinon:function(e){return!!e&&"object"==typeof e&&(n(e)||"function"==typeof e.createSandbox)}},c={injectIntoThis:!0,injectInto:null,properties:["spy","stub","mock","clock","server","requests"],useFakeTimers:!0,useFakeServer:!0},u=function(n){var e,t={};n=n||{};for(e in c)c.hasOwnProperty(e)&&(t[e]=n.hasOwnProperty(e)?n[e]:c[e]);return t},f=Array.prototype.slice,s={configure:function(n,r){function c(n,t,o,i){(r=u(r)).injectInto=r.injectIntoThis&&n||r.injectInto;var c,f=s(r),a=t.length&&t[t.length-1];"function"==typeof a&&(t[t.length-1]=function(n){e(f,n,!0),a(n)});try{c=o.apply(n,t.concat(f.args))}catch(n){e(f,n)}return i(f,c,"function"==typeof a)}if(!i.isSinon(n))throw new TypeError("expected sinon object");var s=n.createSandbox||n.sandbox.create;return function(n){var e=typeof n;if("function"!==e)throw new TypeError("sinon.test needs to wrap a test function, got "+e);return n.length?function(e){return c(this,f.call(arguments),n,o)}:function(){return c(this,f.call(arguments),n,t)}}}};return r.configureTest=function(n,e){return console.log("sinonTest.configureTest is deprecated and will be removed from the public API in a future version of sinon-test"),s.configure(n,e)},r});
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.sinonTest=e()}(this,function(){"use strict";function n(n){return void 0===n.createSandbox&&!!n.sandbox&&"object"==typeof n.sandbox&&"function"==typeof n.sandbox.create}function e(n,e,t){if(e){if(n.restore(),t)return;throw e}n.verifyAndRestore()}function t(n,t){return t&&c.isPromise(t)?t.then(function(t){return e(n),t},function(t){e(n,t||Error("Promise rejected with no/falsy error"))}):(e(n),t)}function o(n,o,r){if(o&&c.isPromise(o)){if(!r)return void t(n,o);e(n,Error("Your test should take a callback *or* return a promise. It should not do both."))}r||e(n)}function r(n,r){function i(n,t,o,i){(r=f(r)).injectInto=r.injectIntoThis&&n||r.injectInto;var c,s=u(r),a=t.length&&t[t.length-1];"function"==typeof a&&(t[t.length-1]=function(n){e(s,n,!0),a(n)});try{c=o.apply(n,t.concat(s.args))}catch(n){e(s,n)}return i(s,c,"function"==typeof a)}if(!c.isSinon(n))throw new TypeError("expected sinon object");var u=n.createSandbox||n.sandbox.create;return function(n){var e=typeof n;if("function"!==e)throw new TypeError("sinon.test needs to wrap a test function, got "+e);return n.length?function(e){return i(this,s.call(arguments),n,o)}:function(){return i(this,s.call(arguments),n,t)}}}function i(n,e){return a.configure(n,e)}var c={isPromise:function(n){return"object"==typeof n&&"function"==typeof n.then},isSinon:function(e){return!!e&&"object"==typeof e&&(n(e)||"function"==typeof e.createSandbox)}},u={injectIntoThis:!0,injectInto:null,properties:["spy","stub","mock","clock","server","requests"],useFakeTimers:!0,useFakeServer:!0},f=function(n){var e,t={};n=n||{};for(e in u)u.hasOwnProperty(e)&&(t[e]=n.hasOwnProperty(e)?n[e]:u[e]);return t},s=Array.prototype.slice,a={configure:r};return i.configureTest=function(n,e){return console.log("sinonTest.configureTest is deprecated and will be removed from the public API in a future version of sinon-test"),a.configure(n,e)},i});
2.1.3 / 2018-01-29
==================
* Add files section to package.json to prevent unnecesary bloat of package (#87)
2.1.2 / 2017-11-03

@@ -3,0 +8,0 @@ ==================

{
"name": "sinon-test",
"version": "2.1.2",
"version": "2.1.3",
"description": "",

@@ -8,3 +8,3 @@ "main": "lib/index.js",

"build": "run-s build:dist-folder build:bundle",
"build:bundle": "rollup -c | uglifyjs --mangle --compress if_return,dead_code,unsafe,unsafe_comps,join_vars,comparisons,loops,collapse_vars,cascade,pure_getters > dist/sinon-test.js",
"build:bundle": "rollup -c | uglifyjs --mangle --compress if_return,dead_code,unsafe,unsafe_comps,join_vars,comparisons,loops,collapse_vars,pure_getters > dist/sinon-test.js",
"build:dist-folder": "mkdirp dist",

@@ -30,18 +30,23 @@ "coverage": "nyc report --reporter text-lcov | coveralls",

},
"files": [
"dist/",
"lib/"
],
"license": "BSD-3-Clause",
"devDependencies": {
"es6-promise": "^4.0.5",
"eslint": "^3.7.1",
"eslint-config-defaults": "^9.0.0",
"mkdirp": "^0.5.1",
"mocha": "^3.4.1",
"npm-run-all": "^4.0.2",
"nyc": "^10.1.2",
"phantomjs-prebuilt": "^2.1.7",
"pre-commit": "^1.1.2",
"referee": "^1.2.0",
"rollup": "^0.41.4",
"rollup-plugin-commonjs": "^8.0.2",
"es6-promise": "4.0.5",
"eslint": "4.16.0",
"eslint-config-sinon": "1.0.3",
"eslint-plugin-ie11": "1.0.0",
"mkdirp": "0.5.1",
"mocha": "3.4.1",
"npm-run-all": "4.0.2",
"nyc": "10.1.2",
"phantomjs-prebuilt": "2.1.7",
"pre-commit": "1.1.2",
"referee": "1.2.0",
"rollup": "0.41.4",
"rollup-plugin-commonjs": "8.0.2",
"sinon": "4.x.x",
"uglify-js": "^3.0.7"
"uglify-js": "3.0.7"
},

@@ -48,0 +53,0 @@ "peerDependencies": {

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