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

@kelbyone/services

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kelbyone/services - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

4

package.json
{
"name": "@kelbyone/services",
"version": "0.0.8",
"version": "0.0.9",
"description": "KelbyOne Services",

@@ -23,2 +23,2 @@ "main": "src/_services.js",

"homepage": "https://github.com/curthusting/-kelbyone-services#readme"
}
}

@@ -53,22 +53,22 @@ /**

}
try {
const response = await send(url, 'POST', headers, JSON.stringify(body));
const data = await response.json();
// try {
const response = await send(url, 'POST', headers, JSON.stringify(body));
const data = await response.json();
if (data.data.redirect && data.data.redirect.url) return window.location.replace(data.data.redirect.url);
if (data.data.redirect && data.data.redirect.url) return window.location.replace(data.data.redirect.url);
if ((response.status !== 200 && response.status !== 201) || response.success === false) {
return {
status: 'error',
data: data.data,
};
}
if ((response.status !== 200 && response.status !== 201) || response.success === false) {
return {
status: 'success',
status: 'error',
data: data.data,
};
}
return {
status: 'success',
data: data.data,
};
} catch (error) {
throw new Error('Unable to send POST request', error)
}
// } catch (error) {
// throw new Error('Unable to send POST request', error)
// }
},

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