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.8 to 0.2.9

6

package.json
{
"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

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