ajax-best-promise
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -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{ |
{ | ||
"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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16933
256
27