@bemoje/api-util
Advanced tools
Comparing version 0.2.8 to 0.2.9
{ | ||
"name": "@bemoje/api-util", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "Utilities for working woth APIs.", | ||
@@ -15,5 +15,3 @@ "main": "./src/index.js", | ||
"dependencies": { | ||
"@bemoje/function": "latest", | ||
"@bemoje/os": "latest", | ||
"@bemoje/queue": "latest", | ||
"@bemoje/util": "latest", | ||
"async-retry": "^1.3.3", | ||
@@ -20,0 +18,0 @@ "level": "^8.0.0", |
/// <reference types="node" /> | ||
import type { IQueue, IQueueAddOptions } from '@bemoje/queue'; | ||
import { IPromiseQueueOptions, PromiseQueue } from '@bemoje/queue'; | ||
import type { IQueue, IQueueAddOptions } from '@bemoje/util'; | ||
import { IPromiseQueueOptions, PromiseQueue } from '@bemoje/util'; | ||
import EventEmitter from 'events'; | ||
@@ -5,0 +5,0 @@ import { ApiReponseCache } from './ApiReponseCache'; |
@@ -5,3 +5,3 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const function_1 = require("@bemoje/function"); | ||
const util_1 = require("@bemoje/util"); | ||
const async_retry_1 = tslib_1.__importDefault(require("async-retry")); | ||
@@ -87,3 +87,3 @@ const events_1 = tslib_1.__importDefault(require("events")); | ||
// add concurrency control | ||
const [queue, sendRequest] = (0, function_1.funAsyncRateLimit)(_sendRequest.bind(this), options.concurrency); | ||
const [queue, sendRequest] = (0, util_1.funAsyncRateLimit)(_sendRequest.bind(this), options.concurrency); | ||
this.queue = queue; | ||
@@ -90,0 +90,0 @@ this.sendRequest = sendRequest; |
@@ -5,3 +5,3 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const os_1 = require("@bemoje/os"); | ||
const util_1 = require("@bemoje/util"); | ||
const events_1 = tslib_1.__importDefault(require("events")); | ||
@@ -377,5 +377,5 @@ const fs = tslib_1.__importStar(require("fs")); | ||
name: 'default', | ||
dirpath: (0, os_1.getAppDataPath)('ApiReponseCache'), | ||
dirpath: (0, util_1.getAppDataPath)('ApiReponseCache'), | ||
maxAgeMs: 0, | ||
}; | ||
//# sourceMappingURL=ApiReponseCache.js.map |
@@ -1,2 +0,2 @@ | ||
import { IPromiseQueueOptions, IQueue, IQueueAddOptions } from '@bemoje/queue'; | ||
import { IPromiseQueueOptions, IQueue, IQueueAddOptions } from '@bemoje/util'; | ||
import type { Options as IAsyncRetryOptions } from 'async-retry'; | ||
@@ -3,0 +3,0 @@ import { IApiResponseCacheOptions } from './IApiResponseCacheOptions'; |
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
6
44685
+ Added@bemoje/util@latest
+ Added@bemoje/date@0.3.1(transitive)
+ Added@bemoje/fs@0.4.1(transitive)
+ Added@bemoje/path@0.1.9(transitive)
+ Added@bemoje/regex@0.0.8(transitive)
+ Added@bemoje/sort@0.2.12(transitive)
+ Added@bemoje/string@0.3.3(transitive)
+ Added@bemoje/util@0.8.0(transitive)
+ Addedansi-colors@4.1.3(transitive)
+ Addedfs-extra@11.2.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addeduniversalify@2.0.1(transitive)
- Removed@bemoje/function@latest
- Removed@bemoje/os@latest
- Removed@bemoje/queue@latest