From 9d115f2dc587bef1b4541225fc7fc6476fb50dde Mon Sep 17 00:00:00 2001 From: RangerMauve Date: Mon, 28 Jul 2014 14:06:09 -0400 Subject: [PATCH] Bumped version, rebuilt --- build/build.js | 23 ++++++++++++----------- component.json | 2 +- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/build/build.js b/build/build.js index 21975ca..ead0bc3 100644 --- a/build/build.js +++ b/build/build.js @@ -661,7 +661,7 @@ function coerce(val) { } }); -require.register("learnboost-jsonp/index.js", function(exports, require, module){ +require.register("webmodules-jsonp/index.js", function(exports, require, module){ /** * Module dependencies */ @@ -1182,14 +1182,15 @@ require.register("jsonp-promise/index.js", function(exports, require, module){ var jsonp = require("jsonp"); var Promise = require("promise"); -module.exports = function jsonp() { +module.exports = function jsonp_promise(url, options) { + var args = [].slice.call(arguments); return new Promise(function (resolve, reject) { - var args = [].slice.call(arguments).push(function (err, res) { + args.push(function (err, res) { if (err) reject(err) else resolve(res); }); - jsonp.apply(null,args); + jsonp.apply(null, args); }); }; @@ -1198,16 +1199,16 @@ module.exports = function jsonp() { -require.alias("learnboost-jsonp/index.js", "jsonp-promise/deps/jsonp/index.js"); -require.alias("learnboost-jsonp/index.js", "jsonp-promise/deps/jsonp/index.js"); -require.alias("learnboost-jsonp/index.js", "jsonp/index.js"); -require.alias("visionmedia-debug/browser.js", "learnboost-jsonp/deps/debug/browser.js"); -require.alias("visionmedia-debug/debug.js", "learnboost-jsonp/deps/debug/debug.js"); -require.alias("visionmedia-debug/browser.js", "learnboost-jsonp/deps/debug/index.js"); +require.alias("webmodules-jsonp/index.js", "jsonp-promise/deps/jsonp/index.js"); +require.alias("webmodules-jsonp/index.js", "jsonp-promise/deps/jsonp/index.js"); +require.alias("webmodules-jsonp/index.js", "jsonp/index.js"); +require.alias("visionmedia-debug/browser.js", "webmodules-jsonp/deps/debug/browser.js"); +require.alias("visionmedia-debug/debug.js", "webmodules-jsonp/deps/debug/debug.js"); +require.alias("visionmedia-debug/browser.js", "webmodules-jsonp/deps/debug/index.js"); require.alias("guille-ms.js/index.js", "visionmedia-debug/deps/ms/index.js"); require.alias("visionmedia-debug/browser.js", "visionmedia-debug/index.js"); -require.alias("learnboost-jsonp/index.js", "learnboost-jsonp/index.js"); +require.alias("webmodules-jsonp/index.js", "webmodules-jsonp/index.js"); require.alias("then-promise/index.js", "jsonp-promise/deps/promise/index.js"); require.alias("then-promise/core.js", "jsonp-promise/deps/promise/core.js"); require.alias("then-promise/index.js", "promise/index.js"); diff --git a/component.json b/component.json index dfcae12..e79be23 100644 --- a/component.json +++ b/component.json @@ -2,7 +2,7 @@ "name": "jsonp-promise", "repo": "rangermauve/jsonp-promise", "description": "A wrapper for webmodules/jsonp that uses promises", - "version": "1.0.1", + "version": "1.0.2", "keywords": [], "dependencies": { "webmodules/jsonp": "*",