diff --git a/History.md b/History.md index e522dbc..45a84c7 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,8 @@ +9.0.1 / 2016-06-09 +================== + + * Fix browser global export + 9.0.0 / 2016-05-30 ================== @@ -9,7 +14,7 @@ 8.4.0 / 2016-05-21 ================== - * Add support for Symbols in .eql + * Add support for Symbols in .eql 8.3.2 / 2016-05-18 ================== diff --git a/Readme.md b/Readme.md index b20d156..892752e 100644 --- a/Readme.md +++ b/Readme.md @@ -78,7 +78,7 @@ If you want to use _should_ in browser, use the `should.js` file in the root of ```bash $ npm install -$ gulp script +$ npm run browser ``` The script is exported to `window.should`: diff --git a/package.json b/package.json index da8c28f..4ca379e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "should", "description": "test framework agnostic BDD-style assertions", - "version": "9.0.0", + "version": "9.0.1", "author": "TJ Holowaychuk , Denis Bardadym and other contributors", "repository": { "type": "git", diff --git a/should.js b/should.js index c5f69fb..f76bde6 100644 --- a/should.js +++ b/should.js @@ -1,14 +1,16 @@ /*! * should - test framework agnostic BDD-style assertions - * @version v9.0.0 + * @version v9.0.1 * @author TJ Holowaychuk , Denis Bardadym and other contributors * @link https://github.com/shouldjs/should.js * @license MIT */ -(function () { +(function (root) { 'use strict'; + root = 'default' in root ? root['default'] : root; + var types = { NUMBER: 'number', UNDEFINED: 'undefined', @@ -3813,13 +3815,13 @@ } else if (typeof module === 'object' && module.exports) { module.exports = should; } else { - this.Should = should; + root.Should = should; - Object.defineProperty(this, 'should', { + Object.defineProperty(root, 'should', { enumerable: false, configurable: true, value: should }); } -}()); \ No newline at end of file +}(this)); \ No newline at end of file