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

ajaxapi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajaxapi - npm Package Compare versions

Comparing version 0.0.0-pre3 to 0.0.0-pre4

11

index.js

@@ -60,2 +60,3 @@ /*

pro = pro
.then(this.catchCorsError.bind(this))
.then(this.saveResponse.bind(this))

@@ -157,2 +158,12 @@ .then(this.parseBody.bind(this));

/*
* (internal) catches cross origin request errors
*/
Api.prototype.catchCorsError = function (res) {
if (res && res.statusCode === 0) {
throw new Error("API failed due to cross-origin error");
}
};
/*
* export

@@ -159,0 +170,0 @@ */

2

package.json
{
"name": "ajaxapi",
"version": "0.0.0-pre3",
"version": "0.0.0-pre4",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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