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

cn-request

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cn-request - npm Package Compare versions

Comparing version 1.0.32 to 1.0.33

2

dist/index.js

@@ -209,3 +209,3 @@ (function (global, factory) {

var xsrfToken = getCookie('XSRF-TOKEN');
if (!xsrfToken) {
if (xsrfToken) {
axiosInstance.defaults.headers.common['X-XSRF-TOKEN'] = xsrfToken;

@@ -212,0 +212,0 @@ }

{
"name": "cn-request",
"version": "1.0.32",
"version": "1.0.33",
"description": "菜鸟前端统一请求库",

@@ -5,0 +5,0 @@ "author": "牛尔",

@@ -188,3 +188,3 @@ /**

const xsrfToken = getCookie('XSRF-TOKEN');
if(!xsrfToken){
if(xsrfToken){
axiosInstance.defaults.headers.common['X-XSRF-TOKEN'] = xsrfToken;

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