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

@symbolic/lib

Package Overview
Dependencies
Maintainers
4
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@symbolic/lib - npm Package Compare versions

Comparing version 1.0.28 to 1.0.29

25

dist/index.js

@@ -7,3 +7,2 @@ 'use strict';

var axios = _interopDefault(require('axios'));
var _$1 = _interopDefault(require('lodash'));

@@ -30,3 +29,25 @@ var Cookies = _interopDefault(require('js-cookie'));

try {
var response = await axios.post(url, body);
var response = await fetch(url, {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
});
if (!response.ok) {
if (shouldAlert && !isReactNative) {
alert('Something went wrong');
}
var responseText = await response.text();
console.log(responseText);
throw new Error(responseText);
}
else {
response = await response.json();
}
}

@@ -33,0 +54,0 @@ catch (error) {

2

package.json
{
"name": "@symbolic/lib",
"version": "1.0.28",
"version": "1.0.29",
"description": "plain js utilities",

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

@@ -1,2 +0,1 @@

import axios from 'axios';
import _ from 'lodash';

@@ -23,3 +22,25 @@ import Cookies from 'js-cookie';

try {
var response = await axios.post(url, body);
var response = await fetch(url, {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
});
if (!response.ok) {
if (shouldAlert && !isReactNative) {
alert('Something went wrong');
}
var responseText = await response.text();
console.log(responseText);
throw new Error(responseText);
}
else {
response = await response.json();
}
}

@@ -26,0 +47,0 @@ catch (error) {

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