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

@bemoje/api-util

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bemoje/api-util - npm Package Compare versions

Comparing version 0.2.20 to 0.2.21

4

cjs/lib/AbstractApiClient.d.ts
/// <reference types="node" />
/// <reference types="async-retry" />
import EventEmitter from 'events';
import type { Any, IQueue, IQueueAddOptions } from '@bemoje/util';
import type { Any } from '@bemoje/util';
import { ApiReponseCache } from './ApiReponseCache';
import { IPromiseQueueOptions, PromiseQueue } from '@bemoje/util';
import { IAbstractApiClientOptions } from './types/IAbstractApiClientOptions';
import { IAsyncRetryOptions } from './types/IAsyncRetryOptions';
import { IPromiseQueueOptions, IQueue, IQueueAddOptions, PromiseQueue } from '@bemoje/queue';
import type { IResponseCacheOptions } from './types/IResponseCacheOptions';

@@ -10,0 +10,0 @@ /**

@@ -9,3 +9,3 @@ "use strict";

const lodash_1 = require("lodash");
const util_1 = require("@bemoje/util");
const queue_1 = require("@bemoje/queue");
/**

@@ -120,3 +120,3 @@ * A class representing some kind of client retrieving resources over the internet, like an API or SQL server.

// add concurrency control
const [queue, sendRequest] = (0, util_1.funAsyncRateLimit)(_sendRequest.bind(this), options.concurrency);
const [queue, sendRequest] = (0, queue_1.funAsyncRateLimit)(_sendRequest.bind(this), options.concurrency);
this.queue = queue;

@@ -123,0 +123,0 @@ this.sendRequest = sendRequest;

@@ -1,5 +0,5 @@

import { IPromiseQueueOptions, IQueue, IQueueAddOptions } from '@bemoje/util';
import type { Options as IAsyncRetryOptions } from 'async-retry';
import { IApiResponseCacheOptions } from './IApiResponseCacheOptions';
import { IPromiseQueueOptions, IQueue, IQueueAddOptions } from '@bemoje/queue';
import { IResponseCacheOptions } from './IResponseCacheOptions';
import type { Options as IAsyncRetryOptions } from 'async-retry';
/**

@@ -6,0 +6,0 @@ * Options for creating a new instance of AbstractApiClient.

{
"name": "@bemoje/api-util",
"version": "0.2.20",
"version": "0.2.21",
"type": "commonjs",

@@ -8,5 +8,7 @@ "main": "cjs/index.js",

"dependencies": {
"@bemoje/path": "latest",
"@bemoje/queue": "latest",
"@bemoje/util": "latest",
"async-retry": "^1.3.3",
"fs-extra": "^11.1.1",
"fs-extra": "^11.2.0",
"level": "^8.0.0",

@@ -13,0 +15,0 @@ "lodash": "^4.17.21",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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