Skip to content

Commit e1f7fa5

Browse files
committed
fix: root factory variable Module
1 parent 89b07ed commit e1f7fa5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
(function (root, factory) {
22
if (typeof define === 'function' && define.amd) {
3-
define(["./client"], function(CoCreateShipengine) {
4-
return factory(CoCreateShipengine)
3+
define(["./client"], function(Module) {
4+
return factory(Module)
55
});
66
} else if (typeof module === 'object' && module.exports) {
7-
const CoCreateShipengine = require("./server.js")
8-
module.exports = factory(CoCreateShipengine);
7+
const Module = require("./server.js")
8+
module.exports = factory(Module);
99
} else {
1010
root.returnExports = factory(root["./client.js"]);
1111
}
12-
}(typeof self !== 'undefined' ? self : this, function (CoCreateShipengine) {
13-
return CoCreateShipengine;
12+
}(typeof self !== 'undefined' ? self : this, function (Module) {
13+
return Module;
1414
}));

0 commit comments

Comments
 (0)