should
Advanced tools
Comparing version 11.2.1 to 12.0.0
@@ -0,1 +1,7 @@ | ||
12.0.0 / 2017-08-28 | ||
=================== | ||
* Update `should-equal` to 2.x | ||
* Update entry points to do the same thing (global should entry) | ||
11.2.1 / 2017-03-09 | ||
@@ -2,0 +8,0 @@ =================== |
12
index.js
@@ -1,5 +0,5 @@ | ||
var should = require('./cjs/should'); | ||
var should = require("./cjs/should"); | ||
var defaultProto = Object.prototype; | ||
var defaultProperty = 'should'; | ||
var defaultProperty = "should"; | ||
@@ -10,3 +10,9 @@ //Expose api via `Object#should`. | ||
should._prevShould = prevShould; | ||
} catch(e) { | ||
Object.defineProperty(global, "should", { | ||
enumerable: false, | ||
configurable: true, | ||
value: should | ||
}); | ||
} catch (e) { | ||
//ignore errors | ||
@@ -13,0 +19,0 @@ } |
{ | ||
"name": "should", | ||
"description": "test framework agnostic BDD-style assertions", | ||
"version": "11.2.1", | ||
"version": "12.0.0", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com>", | ||
@@ -12,19 +12,20 @@ "repository": { | ||
"scripts": { | ||
"cjs": "rollup --format=cjs --output=cjs/should.js lib/should.js", | ||
"es6": "rollup --format=es --output=es6/should.js lib/should.js", | ||
"cjs": "rollup --output.format=cjs --output.file=cjs/should.js lib/should.js", | ||
"es6": "rollup --output.format=es --output.file=es6/should.js lib/should.js", | ||
"build": "npm run cjs && npm run es6", | ||
"prepublish": "npm run build && npm run browser", | ||
"prepare": "npm run build && npm run browser", | ||
"pretest": "npm run build", | ||
"test": "mocha -R mocha-better-spec-reporter --color --check-leaks ./test/*.test.js ./test/**/*.test.js", | ||
"zuul": "zuul -- ./test/**/*.test.js ./test/*.test.js", | ||
"browser": "rollup -c rollup.config.js --output ./should.js" | ||
"browser": "rollup -c rollup.config.js --output.format=iife --output.file ./should.js" | ||
}, | ||
"devDependencies": { | ||
"bluebird": "^3.0.6", | ||
"eslint": "^3.0.0", | ||
"bluebird": "^3.5.0", | ||
"eslint": "^3.19.0", | ||
"eslint-config-shouldjs": "^1.0.0", | ||
"mocha": "latest", | ||
"mocha-better-spec-reporter": "latest", | ||
"rollup": "^0.41.4", | ||
"rollup-plugin-node-resolve": "^2.0.0", | ||
"prettier": "^1.5.3", | ||
"rollup": "^0.49.1", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"zuul": "latest" | ||
@@ -41,4 +42,4 @@ }, | ||
"dependencies": { | ||
"should-equal": "^1.0.0", | ||
"should-format": "^3.0.2", | ||
"should-equal": "^2.0.0", | ||
"should-format": "^3.0.3", | ||
"should-type": "^1.4.0", | ||
@@ -45,0 +46,0 @@ "should-type-adaptors": "^1.0.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
315096
9241
9
+ Addedshould-equal@2.0.0(transitive)
- Removedshould-equal@1.0.1(transitive)
Updatedshould-equal@^2.0.0
Updatedshould-format@^3.0.3