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

febs

Package Overview
Dependencies
Maintainers
3
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

febs - npm Package Compare versions

Comparing version 0.8.13 to 0.8.15

browser/dist/febs-0.8.15/febs.base.js

23

browser/libs/net.ajax.js

@@ -142,9 +142,2 @@ /**

}
// auto content-type.
if (!ctx.headers.hasOwnProperty('Content-Type')) {
if (typeof ctx.data !== 'string') {
xhr.setRequestHeader('Content-Type', 'application/json');
}
}
}

@@ -156,2 +149,16 @@ else {

// auto content-type.
var data_content = ctx.data;
if (data_content && (!ctx.headers || !ctx.headers.hasOwnProperty('Content-Type'))) {
if (typeof data_content !== 'string') {
try {
data_content = JSON.stringify(data_content);
xhr.setRequestHeader('Content-Type', 'application/json');
} catch (e) {
console.log('ajax stringify data error');
console.log(e);
}
}
}
if (ctx.beforeSend) {

@@ -161,3 +168,3 @@ ctx.beforeSend(xhr);

xhr.send(ctx.data);
xhr.send(data_content);

@@ -164,0 +171,0 @@ return {

@@ -86,3 +86,3 @@ {

"name": "febs",
"version": "0.8.13"
"version": "0.8.15"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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