metal-ajax
Advanced tools
Comparing version 2.0.3 to 2.1.0
@@ -101,6 +101,10 @@ 'use strict'; | ||
url = new _metalUri2.default(url); | ||
if (opt_params) { | ||
url = new _metalUri2.default(url).addParametersFromMultiMap(opt_params).toString(); | ||
url.addParametersFromMultiMap(opt_params).toString(); | ||
} | ||
url = url.toString(); | ||
request.open(method, url, !opt_sync); | ||
@@ -107,0 +111,0 @@ |
{ | ||
"name": "metal-ajax", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "Metal.js utility to perform Ajax requests", | ||
@@ -5,0 +5,0 @@ "license": "BSD", |
@@ -77,6 +77,10 @@ 'use strict'; | ||
url = new Uri(url); | ||
if (opt_params) { | ||
url = new Uri(url).addParametersFromMultiMap(opt_params).toString(); | ||
url.addParametersFromMultiMap(opt_params).toString(); | ||
} | ||
url = url.toString(); | ||
request.open(method, url, !opt_sync); | ||
@@ -83,0 +87,0 @@ |
@@ -46,3 +46,3 @@ 'use strict'; | ||
Ajax.request().then(function(xhrResponse) { | ||
assert.strictEqual('', xhrResponse.url); | ||
assert.strictEqual('/', xhrResponse.url); | ||
assert.strictEqual('GET', xhrResponse.method); | ||
@@ -196,3 +196,3 @@ done(); | ||
}); | ||
this.requests[0].abort(); | ||
this.requests[0].error(); | ||
}); | ||
@@ -199,0 +199,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14742
374
1