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

anx-api

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anx-api - npm Package Compare versions

Comparing version 7.0.0-2 to 7.0.0

17

lib/concurrencyAdapter.d.ts

@@ -1,2 +0,7 @@

import { IConfig } from './api';
import { IRequestOptions } from './api';
import { IRequestQueueItem } from './request-queue';
export interface IConcurrencyQueueOptions {
limit: number;
request: (opts: any) => any;
}
export declare class ConcurrencyQueue {

@@ -6,7 +11,7 @@ private options;

private running;
constructor(options: IConfig);
push(opts: any): Promise<any>;
finished(requestPromise: any): void;
makeRequest(reqInfo: any): void;
constructor(options: IConcurrencyQueueOptions);
push(opts: IRequestOptions): Promise<any>;
finished(requestPromise: IRequestQueueItem): void;
makeRequest(reqInfo: IRequestQueueItem): void;
}
export declare const concurrencyAdapter: (options: any) => (opts: any) => Promise<any>;
export declare const concurrencyAdapter: (options: IConcurrencyQueueOptions) => (opts: IRequestOptions) => Promise<any>;

@@ -12,6 +12,6 @@ "use strict";

if (this.running.length < this.options.limit) {
const requestPromise = this.options.request(opts).then(function success(res) {
const requestPromise = this.options.request(opts).then((res) => {
this.finished(requestPromise);
return res;
}, function failure(err) {
}, (err) => {
this.finished(requestPromise);

@@ -51,2 +51,2 @@ throw err;

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uY3VycmVuY3lBZGFwdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbmN1cnJlbmN5QWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDRCQUE0QjtBQUc1QixNQUFhLGdCQUFnQjtJQUs1QixZQUFZLE9BQWdCO1FBQzNCLElBQUksQ0FBQyxPQUFPLEdBQUcsQ0FBQyxDQUFDLE1BQU0sQ0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HRoaXMucXVldWUubGVuZ3RoID4gMCkge1xuXHRcdFx0dGhpcy5tYWtlUmVxdWVzdCh0aGlzLnF1ZXVlLnNoaWZ0KCkpO1xuXHRcdH1cblx0fVxuXG5cdHB1YmxpYyBtYWtlUmVxdWVzdChyZXFJbmZvOiBJUmVxdWVzdFF1ZXVlSXRlbSk6IHZvaWQge1xuXHRcdGNvbnN0IHJlcXVlc3RQcm9taXNlID0gdGhpcy5vcHRpb25zLnJlcXVlc3QocmVxSW5mby5vcHRzKS50aGVuKChyZXMpID0+IHtcblx0XHRcdHRoaXMuZmluaXNoZWQocmVxdWVzdFByb21pc2UpO1xuXHRcdFx0cmVxSW5mby5yZXNvbHZlKHJlcyk7XG5cdFx0XHRyZXR1cm4gbnVsbDtcblx0XHR9KS5jYXRjaCgoZXJyKSA9PiB7XG5cdFx0XHR0aGlzLmZpbmlzaGVkKHJlcXVlc3RQcm9taXNlKTtcblx0XHRcdHJlcUluZm8ucmVqZWN0KGVycik7XG5cdFx0fSk7XG5cdFx0dGhpcy5ydW5uaW5nLnB1c2gocmVxdWVzdFByb21pc2UpO1xuXHR9XG5cbn1cblxuZXhwb3J0IGNvbnN0IGNvbmN1cnJlbmN5QWRhcHRlciA9IChvcHRpb25zOiBJQ29uY3VycmVuY3lRdWV1ZU9wdGlvbnMpID0+IChvcHRzOiBJUmVxdWVzdE9wdGlvbnMpOiBQcm9taXNlPGFueT4gPT4ge1xuXHRjb25zdCBjb25jdXJyZW5jeVF1ZXVlID0gbmV3IENvbmN1cnJlbmN5UXVldWUob3B0aW9ucyk7XG5cdHJldHVybiBjb25jdXJyZW5jeVF1ZXVlLnB1c2gob3B0cyk7XG59O1xuIl19

@@ -1,1 +0,12 @@

export declare const rateLimitAdapter: (options: any) => (opts: any) => Promise<void>;
import { IRequestOptions } from './api';
export interface IRateLimitAdapterOptions {
request: () => any;
rateLimitRead?: number;
rateLimitReadSeconds?: number;
rateLimitWrite?: number;
rateLimitWriteSeconds?: number;
onRateLimitExceeded?: (err: any) => any;
onRateLimitPause?: () => any;
onRateLimitResume?: () => any;
}
export declare const rateLimitAdapter: (options: IRateLimitAdapterOptions) => (opts: IRequestOptions) => Promise<void>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _ = require("lodash");
const api_1 = require("./api");
const request_queue_1 = require("./request-queue");

@@ -11,11 +12,2 @@ const DEFAULT_READ_LIMIT = 100;

const DEFAULT_WRITE_LIMIT_HEADER = 'x-ratelimit-write';
// Rate Limit Options:
// request
// rateLimitRead
// rateLimitReadSeconds
// rateLimitWrite
// rateLimitWriteSeconds
// onRateLimitExceeded
// onRateLimitPause
// onRateLimitResume
exports.rateLimitAdapter = (options) => {

@@ -41,5 +33,5 @@ const readQueue = new request_queue_1.RequestQueue({

return (opts) => {
return opts.method === 'GET' ? readQueue.enqueue(opts) : writeQueue.enqueue(opts);
return opts.method === api_1.Method.GET ? readQueue.enqueue(opts) : writeQueue.enqueue(opts);
};
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0ZUxpbWl0QWRhcHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9yYXRlTGltaXRBZGFwdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNEJBQTRCO0FBQzVCLG1EQUErQztBQUUvQyxNQUFNLGtCQUFrQixHQUFHLEdBQUcsQ0FBQztBQUMvQixNQUFNLDBCQUEwQixHQUFHLEVBQUUsQ0FBQztBQUN0QyxNQUFNLHlCQUF5QixHQUFHLGtCQUFrQixDQUFDO0FBQ3JELE1BQU0sbUJBQW1CLEdBQUcsRUFBRSxDQUFDO0FBQy9CLE1BQU0sMkJBQTJCLEdBQUcsRUFBRSxDQUFDO0FBQ3ZDLE1BQU0sMEJBQTBCLEdBQUcsbUJBQW1CLENBQUM7QUFFdkQsc0JBQXNCO0FBQ3RCLFVBQVU7QUFDVixnQkFBZ0I7QUFD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YXVzZSB8fCBfLm5vb3AsICdXUklURScpLFxuXHRcdG9uUmF0ZUxpbWl0UmVzdW1lOiBfLnBhcnRpYWwob3B0aW9ucy5vblJhdGVMaW1pdFJlc3VtZSB8fCBfLm5vb3AsICdXUklURScpLFxuXHR9KTtcblx0cmV0dXJuIChvcHRzOiBJUmVxdWVzdE9wdGlvbnMpOiBQcm9taXNlPHZvaWQ+ID0+IHtcblx0XHRyZXR1cm4gb3B0cy5tZXRob2QgPT09IE1ldGhvZC5HRVQgPyByZWFkUXVldWUuZW5xdWV1ZShvcHRzKSA6IHdyaXRlUXVldWUuZW5xdWV1ZShvcHRzKTtcblx0fTtcbn07XG4iXX0=

@@ -0,1 +1,3 @@

import { IRequestOptions } from './api';
import { RateLimitExceededError } from './errors';
export interface IRequestQueueOptions {

@@ -6,6 +8,11 @@ request: any;

limitHeader: string;
onRateLimitExceeded: any;
onRateLimitPause: any;
onRateLimitResume: any;
onRateLimitExceeded: (err: RateLimitExceededError) => any;
onRateLimitPause: () => any;
onRateLimitResume: () => any;
}
export interface IRequestQueueItem {
opts: IRequestOptions;
resolve: (value?: void | PromiseLike<void>) => void;
reject: (reason?: any) => void;
}
export declare class RequestQueue {

@@ -18,5 +25,5 @@ private options;

constructor(options: IRequestQueueOptions);
enqueue(opts: any): Promise<void>;
dequeue(): () => any[];
paused(): any;
enqueue(opts: IRequestOptions): Promise<void>;
dequeue(): IRequestQueueItem;
paused(): boolean;
private _processQueue;

@@ -23,0 +30,0 @@ private _schedule;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _ = require("lodash");
const errors = require("./errors");
const errors_1 = require("./errors");
const DEFAULT_LIMIT = 60;

@@ -78,3 +78,3 @@ const DEFAULT_LIMIT_SECONDS = 60;

}).catch((err) => {
if (err instanceof errors.RateLimitExceededError) {
if (err instanceof errors_1.RateLimitExceededError) {
this.options.onRateLimitExceeded(err);

@@ -107,2 +107,2 @@ if (_.isNil(err.retryAfter)) {

exports.RequestQueue = RequestQueue;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RoaXMucXVldWUucHVzaChyZXFJbmZvKTtcblx0XHRcdFx0dGhpcy5fcHJvY2Vzc1F1ZXVlKHJldHJ5QWZ0ZXIpO1xuXHRcdFx0fSBlbHNlIHtcblx0XHRcdFx0cmV0dXJuIHJlcUluZm8ucmVqZWN0KGVycik7XG5cdFx0XHR9XG5cdFx0fSk7XG5cdH1cblxuXHRwcml2YXRlIF9jaGVja0hlYWRlcnMocmVzOiBhbnkpOiB2b2lkIHtcblx0XHRpZiAocmVzLmhlYWRlcnNbdGhpcy5vcHRpb25zLmxpbWl0SGVhZGVyXSkge1xuXHRcdFx0Y29uc3QgbGltaXQgPSBwYXJzZUludChyZXMuaGVhZGVyc1t0aGlzLm9wdGlvbnMubGltaXRIZWFkZXJdLCAxMCkgfHwgREVGQVVMVF9MSU1JVDtcblx0XHRcdGlmIChsaW1pdCAhPT0gdGhpcy5vcHRpb25zLmxpbWl0KSB7XG5cdFx0XHRcdHRoaXMub3B0aW9ucy5saW1pdCA9IGxpbWl0O1xuXHRcdFx0XHR0aGlzLl9yZXNldFRpbWVvdXQoKTtcblx0XHRcdFx0dGhpcy5fcHJvY2Vzc1F1ZXVlKCk7XG5cdFx0XHR9XG5cdFx0fVxuXHR9XG59XG4iXX0=

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

if (!warnings.experimental[methodName + className]) {
warnings.experimental[methodName + className] = _.once(function warnOnce() {
warnings.experimental[methodName + className] = _.once(() => {
// tslint:disable-next-line:no-console

@@ -21,3 +21,3 @@ const log = (console.warn || console.log || _.noop).bind(console);

if (!warnings.deprecated[methodName + className + useName]) {
warnings.deprecated[methodName + className + useName] = _.once(function warnOnce() {
warnings.deprecated[methodName + className + useName] = _.once(() => {
// tslint:disable-next-line:no-console

@@ -30,2 +30,2 @@ const log = (console.warn || console.log || _.noop).bind(console);

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhYmlsaXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZ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Hx8IF8ubm9vcCkuYmluZChjb25zb2xlKTtcblx0XHRcdGxvZyhgTWV0aG9kICR7Y2xhc3NOYW1lfS4ke21ldGhvZE5hbWV9IGlzIGV4cGVyaW1lbnRhbCwgdXNlIHdpdGggY2F1dGlvbi5gKTtcblx0XHR9KTtcblx0fVxuXHR3YXJuaW5ncy5leHBlcmltZW50YWxbbWV0aG9kTmFtZSArIGNsYXNzTmFtZV0oKTtcbn07XG5cbmV4cG9ydCBjb25zdCBkZXByZWNhdGVkTWV0aG9kID0gKG1ldGhvZE5hbWU6IHN0cmluZywgY2xhc3NOYW1lOiBzdHJpbmcsIHVzZU5hbWU6IHN0cmluZyk6IHZvaWQgPT4ge1xuXHRpZiAoIXdhcm5pbmdzLmRlcHJlY2F0ZWRbbWV0aG9kTmFtZSArIGNsYXNzTmFtZSArIHVzZU5hbWVdKSB7XG5cdFx0d2FybmluZ3MuZGVwcmVjYXRlZFttZXRob2ROYW1lICsgY2xhc3NOYW1lICsgdXNlTmFtZV0gPSBfLm9uY2UoKCkgPT4ge1xuXHRcdFx0Ly8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOm5vLWNvbnNvbGVcblx0XHRcdGNvbnN0IGxvZyA9IChjb25zb2xlLndhcm4gfHwgY29uc29sZS5sb2cgfHwgXy5ub29wKS5iaW5kKGNvbnNvbGUpO1xuXHRcdFx0bG9nKGBNZXRob2QgJHtjbGFzc05hbWV9LiR7bWV0aG9kTmFtZX0gaXMgZGVwcmVjYXRlZCwgdXNlICR7Y2xhc3NOYW1lfS4ke3VzZU5hbWUgfSBpbnN0ZWFkLmApO1xuXHRcdH0pO1xuXHR9XG5cdHdhcm5pbmdzLmRlcHJlY2F0ZWRbbWV0aG9kTmFtZSArIGNsYXNzTmFtZSArIHVzZU5hbWVdKCk7XG59O1xuIl19
{
"name": "anx-api",
"version": "7.0.0-2",
"version": "7.0.0",
"description": "AppNexus Api Wrapper",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/appnexus/anx-api",

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