@bemoje/api-util
Advanced tools
Comparing version 0.2.20 to 0.2.21
/// <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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46772
9
+ Added@bemoje/path@latest
+ Added@bemoje/queue@latest
Updatedfs-extra@^11.2.0