From 6f0b378c19a6cdaafac2393b9490bbedcccc4f24 Mon Sep 17 00:00:00 2001 From: Ziqiang Li Date: Mon, 11 Dec 2017 14:20:44 +0800 Subject: [PATCH] [fix] bump --- build/index.js | 1 + package.json | 2 +- src/index.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build/index.js b/build/index.js index a306dd0..65ed030 100644 --- a/build/index.js +++ b/build/index.js @@ -61,6 +61,7 @@ function jsonp(url, options) { } url += serialize(params); url = url.replace('?&', '?'); + return url; } promise = new Promise(function (resolve, reject) { diff --git a/package.json b/package.json index ae3b40c..0e315f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-jsonp-promise", - "version": "1.0.7", + "version": "1.0.8", "description": "", "main": "build/index.js", "scripts": { diff --git a/src/index.js b/src/index.js index d1d00db..4096183 100644 --- a/src/index.js +++ b/src/index.js @@ -54,6 +54,7 @@ function jsonp(url, options) { if (!~url.indexOf('?')) { url += '?'; } url += serialize(params); url = url.replace('?&', '?'); + return url; } promise = new Promise((resolve, reject) => {