diff --git a/bower.json b/bower.json index e65e9bb..e0c680b 100644 --- a/bower.json +++ b/bower.json @@ -6,7 +6,7 @@ "Paolo Scanferla " ], "description": "A lightweight and flexible alternative to Meteor's client-side framework", - "main": "dist/asteroid.js", + "main": "dist/asteroid.browser.js", "moduleType": [ "amd", "globals", diff --git a/dist/asteroid.browser.js b/dist/asteroid.browser.js index 2133412..2e4d63a 100644 --- a/dist/asteroid.browser.js +++ b/dist/asteroid.browser.js @@ -1,12 +1,15 @@ (function (root, factory) { if (typeof define === "function" && define.amd) { - define(factory); + define(['ddp.js', 'q'], factory); } else if (typeof exports === "object") { - module.exports = factory(); + var DDP = require('ddp.js'); + var Q = require('q'); + + module.exports = factory(DDP, Q); } else { - root.Asteroid = factory(); + root.Asteroid = factory(root.DDP, root.Q); } -}(this, function () { +}(this, function (DDP, Q) { "use strict"; diff --git a/dist/asteroid.chrome.js b/dist/asteroid.chrome.js index 7e7405c..cdc32d6 100644 --- a/dist/asteroid.chrome.js +++ b/dist/asteroid.chrome.js @@ -1,12 +1,15 @@ (function (root, factory) { if (typeof define === "function" && define.amd) { - define(factory); + define(['ddp.js', 'q'], factory); } else if (typeof exports === "object") { - module.exports = factory(); + var DDP = require('ddp.js'); + var Q = require('q'); + + module.exports = factory(DDP, Q); } else { - root.Asteroid = factory(); + root.Asteroid = factory(root.DDP, root.Q); } -}(this, function () { +}(this, function (DDP, Q) { "use strict"; diff --git a/dist/asteroid.cordova.js b/dist/asteroid.cordova.js index 3c3d33e..3787cf0 100644 --- a/dist/asteroid.cordova.js +++ b/dist/asteroid.cordova.js @@ -1,12 +1,15 @@ (function (root, factory) { if (typeof define === "function" && define.amd) { - define(factory); + define(['ddp.js', 'q'], factory); } else if (typeof exports === "object") { - module.exports = factory(); + var DDP = require('ddp.js'); + var Q = require('q'); + + module.exports = factory(DDP, Q); } else { - root.Asteroid = factory(); + root.Asteroid = factory(root.DDP, root.Q); } -}(this, function () { +}(this, function (DDP, Q) { "use strict"; diff --git a/src/platforms/browser/wrapper/head.js b/src/platforms/browser/wrapper/head.js index f251a3c..0c8d8e4 100644 --- a/src/platforms/browser/wrapper/head.js +++ b/src/platforms/browser/wrapper/head.js @@ -1,11 +1,14 @@ (function (root, factory) { if (typeof define === "function" && define.amd) { - define(factory); + define(['ddp.js', 'q'], factory); } else if (typeof exports === "object") { - module.exports = factory(); + var DDP = require('ddp.js'); + var Q = require('q'); + + module.exports = factory(DDP, Q); } else { - root.Asteroid = factory(); + root.Asteroid = factory(root.DDP, root.Q); } -}(this, function () { +}(this, function (DDP, Q) { "use strict"; diff --git a/src/platforms/chrome/wrapper/head.js b/src/platforms/chrome/wrapper/head.js index f251a3c..0c8d8e4 100644 --- a/src/platforms/chrome/wrapper/head.js +++ b/src/platforms/chrome/wrapper/head.js @@ -1,11 +1,14 @@ (function (root, factory) { if (typeof define === "function" && define.amd) { - define(factory); + define(['ddp.js', 'q'], factory); } else if (typeof exports === "object") { - module.exports = factory(); + var DDP = require('ddp.js'); + var Q = require('q'); + + module.exports = factory(DDP, Q); } else { - root.Asteroid = factory(); + root.Asteroid = factory(root.DDP, root.Q); } -}(this, function () { +}(this, function (DDP, Q) { "use strict"; diff --git a/src/platforms/cordova/wrapper/head.js b/src/platforms/cordova/wrapper/head.js index f251a3c..0c8d8e4 100644 --- a/src/platforms/cordova/wrapper/head.js +++ b/src/platforms/cordova/wrapper/head.js @@ -1,11 +1,14 @@ (function (root, factory) { if (typeof define === "function" && define.amd) { - define(factory); + define(['ddp.js', 'q'], factory); } else if (typeof exports === "object") { - module.exports = factory(); + var DDP = require('ddp.js'); + var Q = require('q'); + + module.exports = factory(DDP, Q); } else { - root.Asteroid = factory(); + root.Asteroid = factory(root.DDP, root.Q); } -}(this, function () { +}(this, function (DDP, Q) { "use strict";