Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ajax-best-promise

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajax-best-promise - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

15

bin/ajax-best-promise.js

@@ -100,2 +100,17 @@ "use strict";

}
var extraLines=ajax.responseText.split(/\r?\n/);
for(var i=1; i<extraLines.length; i++){
var line=extraLines[i];
if(line.trim()==='' || /^--------+\s*$/.test(line)){
break;
}
var matches = line.match(/^(\w+):\s(.*)$/);
if(matches){
try{
var value=JSON.parse(matches[2]);
error[matches[1]]=value;
}catch(errJson){
}
}
}
reject(error);

@@ -102,0 +117,0 @@ }else{

3

package.json
{
"name": "ajax-best-promise",
"description": "Ajax with best promise - Ajax with stream data",
"version": "0.3.2",
"version": "0.3.3",
"author": "Codenautas <codenautas@googlegroups.com>",

@@ -48,2 +48,3 @@ "license": "MIT",

"extension-serve-static": "^0.1.6",
"mini-tools": "~0.3.13",
"require-bro": "~0.1.4"

@@ -50,0 +51,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