Skip to content

Commit

Permalink
Exporting Promise from module, too
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalFlow committed Oct 22, 2016
1 parent e20bdb8 commit 2281dba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"scripts": {
"lint": "jshint src/js/WebApiClient.js",
"build-js": "browserify src/js/WebApiClient.js --standalone XrmWebApiClient > Publish/WebApiClient.js",
"build-js": "browserify src/js/WebApiClient.js -o Publish/WebApiClient.js",
"prebuild-js": "npm run lint && mkdir -p Publish",
"test": "karma start karma.conf.js --single-run",
"pretest": "npm run build-js",
Expand Down
6 changes: 3 additions & 3 deletions src/js/WebApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
* SOFTWARE.
*
*/
(function (WebApiClient, undefined) {
(function (WebApiClient, Promise, undefined) {
"use strict";

var Promise = require("bluebird");
Promise = require("bluebird");

var ApiVersion = "8.0";

Expand Down Expand Up @@ -220,4 +220,4 @@

return SendRequest("DELETE", url, null, params.headers);
};
} (window.WebApiClient = window.WebApiClient || {}));
} (window.WebApiClient = window.WebApiClient || {}, window.Promise = window.Promise || {}));

0 comments on commit 2281dba

Please sign in to comment.