Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leche

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leche - npm Package Compare versions

Comparing version 2.2.3 to 2.3.0

3

dist/leche.js

@@ -17,3 +17,3 @@ /*!

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.leche = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.leche = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
/**

@@ -376,1 +376,2 @@ * @fileoverview A JavaScript testing utility designed to work with Mocha and Sinon

});

@@ -17,2 +17,2 @@ /*!

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.leche=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";require("mocha");function isAccessorProperty(object,key){var result=false;if(Object.getOwnPropertyDescriptor&&object.hasOwnProperty(key)){var descriptor=Object.getOwnPropertyDescriptor(object,key);result=!("value"in descriptor)}return result}function isES5DataProperty(object,key){var result=false;if(Object.getOwnPropertyDescriptor&&object.hasOwnProperty(key)){var descriptor=Object.getOwnPropertyDescriptor(object,key);result="value"in descriptor&&typeof descriptor.value!=="function"}return result}function isES3DataProperty(object,key){return typeof object[key]!=="function"}function createObject(proto){function F(){}F.prototype=proto;return new F}function truncatedJSONStringify(object,maxLen){return JSON.stringify(object).slice(0,maxLen)}function stringifyObject(object,maxDepth){if(typeof object==="undefined"){return"undefined"}else if(object===null){return"null"}var stringRepresentation=object.toString();if(object instanceof Array&&maxDepth>0){return object.map(function(item){return stringifyObject(item,maxDepth-1)}).toString()}else if(stringRepresentation==="[object Object]"){return truncatedJSONStringify(object,30)}else{return stringRepresentation}}function createNamedDataset(array){var result={};for(var i=0,len=array.length;i<len;i++){result[stringifyObject(array[i],1)]=array[i]}return result}function noop(){}module.exports={create:function(methods){var object={};for(var i=0,len=methods.length;i<len;i++){object[methods[i]]=noop}return object},fake:function(template){var fake=createObject(template);for(var key in fake){if(isAccessorProperty(template,key)){Object.defineProperty(fake,key,{value:undefined,writable:true,enumerable:true,configurable:true})}else if(isES5DataProperty(template,key)){(function(propertyKey){var propertyIsSet=false,propertyValue;Object.defineProperty(fake,key,{get:function(){if(propertyIsSet){return propertyValue}throw new Error('Unexpected use of property "'+propertyKey+'".')},set:function(value){propertyIsSet=true;propertyValue=value},enumerable:true,configurable:true})})(key)}else if(isES3DataProperty(template,key)){fake[key]=undefined}else if(typeof fake[key]==="function"){fake[key]=function(methodKey){return function(){throw new Error('Unexpected call to method "'+methodKey+'".')}}(key)}}return fake},withData:function(dataset,testFunction){if(typeof dataset!=="object"||dataset===null){throw new Error("First argument must be an object or non-empty array.")}var namedDataset=dataset;if(dataset instanceof Array){if(dataset.length){namedDataset=createNamedDataset(dataset)}else{throw new Error("First argument must be an object or non-empty array.")}}for(var name in namedDataset){if(namedDataset.hasOwnProperty(name)){describe("with "+name,function(dataName){return function(){var args=namedDataset[dataName];if(!(args instanceof Array)){args=[args]}testFunction.apply(this,args)}}(name))}}}}},{mocha:2}],2:[function(require,module,exports){},{}]},{},[1])(1)});
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.leche=f()}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r}()({1:[function(require,module,exports){"use strict";require("mocha");function isAccessorProperty(object,key){var result=false;if(Object.getOwnPropertyDescriptor&&object.hasOwnProperty(key)){var descriptor=Object.getOwnPropertyDescriptor(object,key);result=!("value"in descriptor)}return result}function isES5DataProperty(object,key){var result=false;if(Object.getOwnPropertyDescriptor&&object.hasOwnProperty(key)){var descriptor=Object.getOwnPropertyDescriptor(object,key);result="value"in descriptor&&typeof descriptor.value!=="function"}return result}function isES3DataProperty(object,key){return typeof object[key]!=="function"}function createObject(proto){function F(){}F.prototype=proto;return new F}function truncatedJSONStringify(object,maxLen){return JSON.stringify(object).slice(0,maxLen)}function stringifyObject(object,maxDepth){if(typeof object==="undefined"){return"undefined"}else if(object===null){return"null"}var stringRepresentation=object.toString();if(object instanceof Array&&maxDepth>0){return object.map(function(item){return stringifyObject(item,maxDepth-1)}).toString()}else if(stringRepresentation==="[object Object]"){return truncatedJSONStringify(object,30)}else{return stringRepresentation}}function createNamedDataset(array){var result={};for(var i=0,len=array.length;i<len;i++){result[stringifyObject(array[i],1)]=array[i]}return result}function noop(){}module.exports={create:function(methods){var object={};for(var i=0,len=methods.length;i<len;i++){object[methods[i]]=noop}return object},fake:function(template){var fake=createObject(template);for(var key in fake){if(isAccessorProperty(template,key)){Object.defineProperty(fake,key,{value:undefined,writable:true,enumerable:true,configurable:true})}else if(isES5DataProperty(template,key)){(function(propertyKey){var propertyIsSet=false,propertyValue;Object.defineProperty(fake,key,{get:function(){if(propertyIsSet){return propertyValue}throw new Error('Unexpected use of property "'+propertyKey+'".')},set:function(value){propertyIsSet=true;propertyValue=value},enumerable:true,configurable:true})})(key)}else if(isES3DataProperty(template,key)){fake[key]=undefined}else if(typeof fake[key]==="function"){fake[key]=function(methodKey){return function(){throw new Error('Unexpected call to method "'+methodKey+'".')}}(key)}}return fake},withData:function(dataset,testFunction){if(typeof dataset!=="object"||dataset===null){throw new Error("First argument must be an object or non-empty array.")}var namedDataset=dataset;if(dataset instanceof Array){if(dataset.length){namedDataset=createNamedDataset(dataset)}else{throw new Error("First argument must be an object or non-empty array.")}}for(var name in namedDataset){if(namedDataset.hasOwnProperty(name)){describe("with "+name,function(dataName){return function(){var args=namedDataset[dataName];if(!(args instanceof Array)){args=[args]}testFunction.apply(this,args)}}(name))}}}}},{mocha:2}],2:[function(require,module,exports){},{}]},{},[1])(1)});

@@ -14,2 +14,7 @@ module.exports = function(config) {

transform: ['browserify-istanbul'],
configure: function(bundle) {
bundle.on('prebundle', function() {
bundle.ignore('mocha');
});
},
debug: true

@@ -16,0 +21,0 @@ },

{
"name": "leche",
"author": "nzakas",
"version": "2.2.3",
"version": "2.3.0",
"description": "A JavaScript testing utility designed to work with Mocha and Sinon",

@@ -28,14 +28,14 @@ "main": "./lib/leche.js",

"peerDependencies": {
"mocha": ">=1.18 <6"
"mocha": ">=1.18 <7"
},
"devDependencies": {
"browserify": "^14.4.0",
"browserify-istanbul": "^2.0.0",
"browserify": "^16.2.3",
"browserify-istanbul": "^3.0.1",
"chai": "^4.0.2",
"eslint": "^4.0.0",
"eslint": "^5.16.0",
"istanbul": "^0.4.5",
"jsdoc": "^3.4.3",
"jsonlint": "^1.6.2",
"karma": "^1.7.0",
"karma-browserify": "^5.1.1",
"karma": "^4.1.0",
"karma-browserify": "^6.0.0",
"karma-chai-sinon": "^0.1.5",

@@ -45,12 +45,13 @@ "karma-coverage": "^1.1.1",

"karma-phantomjs-launcher": "^1.0.4",
"karma-sinon-chai": "^1.3.1",
"mocha": "^5.0.0",
"mockery": "~2.0",
"karma-sinon-chai": "^2.0.2",
"mocha": "^6.1.4",
"mockery": "^2.1.0",
"phantomjs-prebuilt": "^2.1.14",
"shelljs": "^0.7.8",
"shelljs": "^0.8.3",
"shelljs-nodecli": "^0.1.1",
"sinon": "2.3.5",
"sinon-chai": "^2.11.0",
"uglify-js": "^3.0.18"
"sinon": "^7.3.2",
"sinon-chai": "^3.3.0",
"uglify-js": "^3.0.18",
"watchify": "^3.11.1"
}
}

@@ -32,3 +32,3 @@ /**

var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();

@@ -35,0 +35,0 @@ afterEach(function() {

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