New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

metal-ajax

Package Overview
Dependencies
Maintainers
9
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metal-ajax - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

6

lib/Ajax.js

@@ -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 @@

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc