Skip to content

Commit

Permalink
make nodejs and window interface compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
mwri committed Jul 19, 2017
1 parent fffcd7e commit 81a613c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
6 changes: 4 additions & 2 deletions dist/testob.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package: testob v0.1.0 (built 2017-07-19 08:02:18)
// Package: testob v0.1.0 (built 2017-07-19 09:04:53)
// Copyright: (C) 2017 Michael Wright <mjw@methodanalysis.com>
// License: MIT

Expand Down Expand Up @@ -151,7 +151,9 @@ if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
basic: testob_basic,
};
} else {
window.testob_basic = testob_basic;
window.testob = {
basic: testob_basic,
};
}


Expand Down
6 changes: 4 additions & 2 deletions dist/testob_es5.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// Package: testob v0.1.0 (built 2017-07-19 08:02:18)
// Package: testob v0.1.0 (built 2017-07-19 09:04:53)
// Copyright: (C) 2017 Michael Wright <mjw@methodanalysis.com>
// License: MIT

Expand Down Expand Up @@ -116,6 +116,8 @@
basic: testob_basic
};
} else {
window.testob_basic = testob_basic;
window.testob = {
basic: testob_basic
};
}
})();
4 changes: 2 additions & 2 deletions dist/testob_es5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion lib/testob.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
basic: testob_basic,
};
} else {
window.testob_basic = testob_basic;
window.testob = {
basic: testob_basic,
};
}


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "testob",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"author": {
"name": "Michael Wright",
Expand Down
2 changes: 1 addition & 1 deletion test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
testob_basic = testob.basic;
require('chai-jasmine');
} else {
testob_basic = window.testob_basic;
testob_basic = window.testob.basic;
}


Expand Down

0 comments on commit 81a613c

Please sign in to comment.