Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Commit 4e97b97

Browse files
committed
Release 9.0.1
1 parent 497824f commit 4e97b97

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

History.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
9.0.1 / 2016-06-09
2+
==================
3+
4+
* Fix browser global export
5+
16
9.0.0 / 2016-05-30
27
==================
38

@@ -9,7 +14,7 @@
914
8.4.0 / 2016-05-21
1015
==================
1116

12-
* Add support for Symbols in .eql
17+
* Add support for Symbols in .eql
1318

1419
8.3.2 / 2016-05-18
1520
==================

Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ If you want to use _should_ in browser, use the `should.js` file in the root of
7878

7979
```bash
8080
$ npm install
81-
$ gulp script
81+
$ npm run browser
8282
```
8383

8484
The script is exported to `window.should`:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "should",
33
"description": "test framework agnostic BDD-style assertions",
4-
"version": "9.0.0",
4+
"version": "9.0.1",
55
"author": "TJ Holowaychuk <[email protected]>, Denis Bardadym <[email protected]> and other contributors",
66
"repository": {
77
"type": "git",

should.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
/*!
22
* should - test framework agnostic BDD-style assertions
3-
* @version v9.0.0
3+
* @version v9.0.1
44
* @author TJ Holowaychuk <[email protected]>, Denis Bardadym <[email protected]> and other contributors
55
* @link https://github.com/shouldjs/should.js
66
* @license MIT
77
*/
88

9-
(function () {
9+
(function (root) {
1010
'use strict';
1111

12+
root = 'default' in root ? root['default'] : root;
13+
1214
var types = {
1315
NUMBER: 'number',
1416
UNDEFINED: 'undefined',
@@ -3813,13 +3815,13 @@
38133815
} else if (typeof module === 'object' && module.exports) {
38143816
module.exports = should;
38153817
} else {
3816-
this.Should = should;
3818+
root.Should = should;
38173819

3818-
Object.defineProperty(this, 'should', {
3820+
Object.defineProperty(root, 'should', {
38193821
enumerable: false,
38203822
configurable: true,
38213823
value: should
38223824
});
38233825
}
38243826

3825-
}());
3827+
}(this));

0 commit comments

Comments
 (0)