Socket
Socket
Sign inDemoInstall

myfetchapi

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myfetchapi - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

dist/index.mjs

33

dist/index.js

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

"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
SET_MAX_CONCURRENT_REQUESTS: () => SET_MAX_CONCURRENT_REQUESTS,
myFetch: () => myFetch
});
module.exports = __toCommonJS(src_exports);
var MAX_CONCURRENT_REQUESTS = 500;

@@ -37,5 +62,5 @@ var currentRequests = 0;

retrying = true;
if (options?.retryCb)
await options?.retryCb(error, retryCount + 1, maxRetry);
executeRequest(retryCount + 1);
if (options?.retryCb)
options?.retryCb(error, retryCount + 1, maxRetry);
} else {

@@ -61,5 +86,1 @@ reject(error);

}
export {
SET_MAX_CONCURRENT_REQUESTS,
myFetch
};

7

package.json
{
"name": "myfetchapi",
"version": "1.1.0",
"version": "1.2.0",
"description": "mFetch is a JavaScript library that provides a utility function for making HTTP requests with queuing and retry functionality.",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc && esbuild src/index.ts --format=esm --bundle --outfile=dist/index.js"
"build": "tsc && esbuild src/index.ts --format=cjs --bundle --outfile=dist/index.js && esbuild src/index.ts --format=esm --bundle --outfile=dist/index.mjs"
},

@@ -31,2 +32,2 @@ "repository": {

"homepage": "https://github.com/ugo-studio/myfetch#readme"
}
}
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