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

@marcopeg/utils

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marcopeg/utils - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

40

lib/request.js

@@ -167,2 +167,4 @@ 'use strict';

});
console.log('headers', headers);
options = Object.assign({}, config, {

@@ -173,10 +175,12 @@ method: 'POST',

});
_context3.next = 5;
console.log('options', options);
_context3.next = 7;
return wrappedFetch(url, options);
case 5:
case 7:
res = _context3.sent;
if (!(res.status !== 200)) {
_context3.next = 20;
_context3.next = 22;
break;

@@ -186,18 +190,18 @@ }

errMsg = void 0;
_context3.prev = 8;
_context3.next = 11;
_context3.prev = 10;
_context3.next = 13;
return res.text();
case 11:
case 13:
errMsg = _context3.sent;
_context3.next = 17;
_context3.next = 19;
break;
case 14:
_context3.prev = 14;
_context3.t0 = _context3['catch'](8);
case 16:
_context3.prev = 16;
_context3.t0 = _context3['catch'](10);
errMsg = res.statusText;
case 17:
case 19:
error = new Error(res.status + ' - ' + errMsg);

@@ -208,15 +212,15 @@

case 20:
_context3.next = 22;
case 22:
_context3.next = 24;
return res.json();
case 22:
case 24:
return _context3.abrupt('return', _context3.sent);
case 25:
_context3.prev = 25;
case 27:
_context3.prev = 27;
_context3.t1 = _context3['catch'](0);
throw _context3.t1;
case 28:
case 30:
case 'end':

@@ -226,3 +230,3 @@ return _context3.stop();

}
}, _callee3, undefined, [[0, 25], [8, 14]]);
}, _callee3, undefined, [[0, 27], [10, 16]]);
}));

@@ -229,0 +233,0 @@

{
"name": "@marcopeg/utils",
"version": "1.6.0",
"version": "1.6.1",
"description": "Javascript utils for server and client projects",

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

@@ -73,2 +73,3 @@ /* global fetch */

})
console.log('headers', headers)
const options = Object.assign({}, config, {

@@ -79,2 +80,3 @@ method: 'POST',

})
console.log('options', options)
const res = await wrappedFetch(url, options)

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