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

febs-browser

Package Overview
Dependencies
Maintainers
3
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

febs-browser - npm Package Compare versions

Comparing version 0.8.19 to 0.8.20

dist/febs-0.8.20/febs.base.js

11

libs/net.ajax.js

@@ -115,2 +115,6 @@ /**

var element = ctx.headers[key];
if (key == 'Content-Type' && element === false) {
continue;
}
xhr.setRequestHeader(key, element);

@@ -126,7 +130,10 @@ }

var data_content = ctx.data;
if (data_content && (!ctx.headers || !ctx.headers.hasOwnProperty('Content-Type'))) {
if (data_content) {
if (typeof data_content !== 'string') {
try {
data_content = JSON.stringify(data_content);
xhr.setRequestHeader('Content-Type', 'application/json');
if (!ctx.headers || !ctx.headers.hasOwnProperty('Content-Type')) {
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
}
} catch (e) {

@@ -133,0 +140,0 @@ console.log('ajax stringify data error');

2

package.json

@@ -74,3 +74,3 @@ {

"name": "febs-browser",
"version": "0.8.19"
"version": "0.8.20"
}
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