Socket
Socket
Sign inDemoInstall

@arianee/utils

Package Overview
Dependencies
Maintainers
9
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arianee/utils - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

4

package.json
{
"name": "@arianee/utils",
"version": "1.11.0",
"version": "1.11.1",
"type": "commonjs",

@@ -9,3 +9,3 @@ "dependencies": {

"peerDependencies": {
"@arianee/common-types": "1.11.0",
"@arianee/common-types": "1.11.1",
"tslib": "2.5.0"

@@ -12,0 +12,0 @@ },

@@ -24,4 +24,5 @@ "use strict";

const timeout = (_a = init === null || init === void 0 ? void 0 : init.timeout) !== null && _a !== void 0 ? _a : 30000;
let timeoutInstance;
const timeoutPromise = new Promise((_, reject) => {
setTimeout(() => {
timeoutInstance = setTimeout(() => {
controller.abort();

@@ -32,3 +33,5 @@ reject(new Error(`Request to ${input} timed out after ${timeout}ms`));

init === null || init === void 0 ? true : delete init.timeout;
const fetchPromise = _fetch(input, Object.assign(Object.assign({ signal: controller.signal }, init), { redirect: 'follow' }));
const fetchPromise = _fetch(input, Object.assign(Object.assign({ signal: controller.signal }, init), { redirect: 'follow' })).finally(() => {
clearTimeout(timeoutInstance);
});
return Promise.race([fetchPromise, timeoutPromise]);

@@ -35,0 +38,0 @@ };

Sorry, the diff of this file is not supported yet

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