@tramvai/module-http-client 3.26.2 → 3.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  /// <reference types="jest" />
2
+ import fetch from 'node-fetch';
2
3
  import { getDiWrapper } from '@tramvai/test-helpers';
3
4
  import type { createMockEnvManager } from '@tramvai/test-mocks';
4
5
  type Options = Parameters<typeof getDiWrapper>[0] & {
@@ -6,7 +7,7 @@ type Options = Parameters<typeof getDiWrapper>[0] & {
6
7
  };
7
8
  export declare const testApi: (options: Options) => {
8
9
  di: import("@tinkoff/dippy").Container;
9
- fetchMock: jest.Mock<Promise<import("node-fetch").Response>, [url: import("node-fetch").RequestInfo, init?: import("node-fetch").RequestInit | undefined], any>;
10
+ fetchMock: jest.Mock<Promise<fetch.Response>, [url: fetch.RequestInfo, init?: fetch.RequestInit | undefined], any>;
10
11
  mockJsonResponse: (body: Record<string, any>, init?: ResponseInit) => Promise<void>;
11
12
  clearCaches: () => void;
12
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-http-client",
3
- "version": "3.26.2",
3
+ "version": "3.26.3",
4
4
  "initialVersion": "0.58.99",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@tramvai/http-client": "0.3.1",
29
- "@tramvai/tinkoff-request-http-client-adapter": "0.10.65",
30
- "@tramvai/tokens-http-client": "3.26.2",
31
- "@tramvai/tokens-common": "3.26.2",
32
- "@tramvai/tokens-server": "3.26.2",
33
- "@tramvai/tokens-server-private": "3.26.2"
29
+ "@tramvai/tinkoff-request-http-client-adapter": "0.10.66",
30
+ "@tramvai/tokens-http-client": "3.26.3",
31
+ "@tramvai/tokens-common": "3.26.3",
32
+ "@tramvai/tokens-server": "3.26.3",
33
+ "@tramvai/tokens-server-private": "3.26.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@tinkoff/request-core": "^0.9.2",
@@ -39,12 +39,12 @@
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@tinkoff/utils": "^2.1.2",
42
- "@tramvai/core": "3.26.2",
43
- "@tramvai/module-common": "3.26.2",
44
- "@tramvai/papi": "3.26.2",
45
- "@tramvai/test-helpers": "3.26.2",
46
- "@tramvai/test-unit": "3.26.2",
47
- "@tramvai/test-mocks": "3.26.2",
42
+ "@tramvai/core": "3.26.3",
43
+ "@tramvai/module-common": "3.26.3",
44
+ "@tramvai/papi": "3.26.3",
45
+ "@tramvai/test-helpers": "3.26.3",
46
+ "@tramvai/test-unit": "3.26.3",
47
+ "@tramvai/test-mocks": "3.26.3",
48
48
  "@tinkoff/dippy": "0.9.2",
49
49
  "node-fetch": "^2.6.1",
50
50
  "tslib": "^2.4.0"
package/tests.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /// <reference types="jest" />
2
+ import fetch from "node-fetch";
2
3
  import { getDiWrapper } from "@tramvai/test-helpers";
3
4
  import { createMockEnvManager } from "@tramvai/test-mocks";
4
5
  type Options = Parameters<typeof getDiWrapper>[0] & {
@@ -6,9 +7,9 @@ type Options = Parameters<typeof getDiWrapper>[0] & {
6
7
  };
7
8
  declare const testApi: (options: Options) => {
8
9
  di: import("@tinkoff/dippy").Container;
9
- fetchMock: jest.Mock<Promise<import("node-fetch").Response>, [
10
- url: import("node-fetch").RequestInfo,
11
- init?: import("node-fetch").RequestInit | undefined
10
+ fetchMock: jest.Mock<Promise<fetch.Response>, [
11
+ url: fetch.RequestInfo,
12
+ init?: fetch.RequestInit | undefined
12
13
  ], any>;
13
14
  mockJsonResponse: (body: Record<string, any>, init?: ResponseInit) => Promise<void>;
14
15
  clearCaches: () => void;