Skip to content

Commit

Permalink
Fixing AMD detection
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Nov 28, 2015
1 parent 97fdefd commit ecad294
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/haro.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2015
* @license BSD-3-Clause
* @link http://haro.rocks
* @version 1.9.7
* @version 1.9.8
*/
"use strict";

Expand Down Expand Up @@ -1262,12 +1262,12 @@ function factory (data = null, config = {}, indexes = []) {
}

factory.transform = cast;
factory.version = "1.9.7";
factory.version = "1.9.8";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
module.exports = factory;
} else if (typeof define === "function") {
} else if (typeof define === "function" && define.amd) {
define(function () {
return factory;
});
Expand Down
6 changes: 3 additions & 3 deletions lib/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2015
* @license BSD-3-Clause
* @link http://haro.rocks
* @version 1.9.7
* @version 1.9.8
*/
"use strict";

Expand Down Expand Up @@ -1416,12 +1416,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}

factory.transform = cast;
factory.version = "1.9.7";
factory.version = "1.9.8";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
module.exports = factory;
} else if (typeof define === "function") {
} else if (typeof define === "function" && define.amd) {
define(function () {
return factory;
});
Expand Down
2 changes: 1 addition & 1 deletion lib/haro.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/haro.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haro",
"version": "1.9.7",
"version": "1.9.8",
"description": "Harō is a modern immutable DataStore using Maps, Sets, Promises, & Tuples",
"main": "lib/haro.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/outro.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Node, AMD & window supported
if (typeof exports !== "undefined") {
module.exports = factory;
} else if (typeof define === "function") {
} else if (typeof define === "function" && define.amd) {
define(function () {
return factory;
});
Expand Down

0 comments on commit ecad294

Please sign in to comment.