Comparing version 1.5.0 to 1.6.0
@@ -0,1 +1,2 @@ | ||
import { RequestInit } from "node-fetch"; | ||
import { ErrorWithCode, ExtendedError } from "./error"; | ||
@@ -23,2 +24,3 @@ /** | ||
} | ||
export declare type Agent = RequestInit["agent"]; | ||
/** | ||
@@ -37,2 +39,3 @@ * Ошибка раскодировки ответа сервера | ||
protected readonly API_OK_RESPONSE_CODES: number[]; | ||
protected agent?: Agent; | ||
/** | ||
@@ -39,0 +42,0 @@ * Simplified http request function |
@@ -77,3 +77,4 @@ "use strict"; | ||
timeout: this.API_TIMEOUT, | ||
body | ||
body, | ||
agent: this.agent | ||
}); | ||
@@ -80,0 +81,0 @@ const contentType = (_a = response.headers.get("content-type")) === null || _a === void 0 ? void 0 : _a.split(";")[0]; |
import { ErrorWithCode } from "../error"; | ||
import { HttpAPI } from "../http"; | ||
import { Agent, HttpAPI } from "../http"; | ||
import type * as types from "./p2p.types"; | ||
@@ -26,2 +26,3 @@ import { AnyResponse } from "./shared.types"; | ||
static readonly Currency: typeof types.BillCurrency; | ||
agent?: Agent; | ||
protected readonly API_HEADERS: { | ||
@@ -28,0 +29,0 @@ Accept: string; |
/// <reference types="node" /> | ||
import { ExtendedError } from "../error"; | ||
import { HttpAPI } from "../http"; | ||
import { Agent, HttpAPI } from "../http"; | ||
import type * as types from "./personal.types"; | ||
@@ -32,2 +32,3 @@ /** | ||
static readonly ChequeFormat: typeof types.ChequeFormat; | ||
agent?: Agent; | ||
protected readonly API_HEADERS: { | ||
@@ -34,0 +35,0 @@ Accept: string; |
{ | ||
"name": "qiwi-sdk", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Typed, Promise based, QIWI API (P2P & Personal) client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
149698
2340