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

dx-lib

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dx-lib - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

14

lib/ajax/index.js

@@ -25,3 +25,3 @@ import { param } from '../param/index.js'

data: null,
headers: null,
headers: {},
timeout: 30 * 1000,

@@ -91,7 +91,13 @@ async: true,

xhr.onerror = err => {
let message = ''
if (err) {
onerror(new Error(err.message || err.name || err.type || 'Request Error'))
} else {
onerror(new Error('Request Error'))
message = err.message || err.name || err.type
}
if (!message || message === 'error') {
message = xhr.responseText || 'Request Error'
}
onerror(new Error(message))
}

@@ -98,0 +104,0 @@ }

{
"name": "dx-lib",
"version": "0.2.2",
"version": "0.2.3",
"description": "dx fe lib",

@@ -5,0 +5,0 @@ "main": "index.js",

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