@sgedda/mockifyer-fetch 1.8.36 → 1.8.37
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.
- package/dist/index.js +2 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ catch (e) {
|
|
|
36
36
|
const mockifyer_core_1 = require("@sgedda/mockifyer-core");
|
|
37
37
|
const mockifyer_core_2 = require("@sgedda/mockifyer-core");
|
|
38
38
|
const core_proxy_1 = require("./core-proxy");
|
|
39
|
+
const proxy_upstream_tls_insecure_1 = require("@sgedda/mockifyer-core/utils/proxy-upstream-tls-insecure");
|
|
39
40
|
const fetch_client_1 = require("./clients/fetch-client");
|
|
40
41
|
class MockifyerClass {
|
|
41
42
|
/** Best-effort dashboard network log (skipped when traffic goes through `proxy.baseUrl`). */
|
|
@@ -182,7 +183,7 @@ class MockifyerClass {
|
|
|
182
183
|
clientId: this.config.clientId,
|
|
183
184
|
getClientId: () => this.config.clientId,
|
|
184
185
|
getStrictLaneScenario: () => (0, mockifyer_core_1.resolveProxyStrictLaneScenario)(this.config),
|
|
185
|
-
getUpstreamTlsInsecure: () => (0,
|
|
186
|
+
getUpstreamTlsInsecure: () => (0, proxy_upstream_tls_insecure_1.resolveProxyUpstreamTlsInsecure)(this.config),
|
|
186
187
|
getExplicitProxyScenarioContext: () => (0, mockifyer_core_1.isExplicitProxyScenarioContext)(this.config),
|
|
187
188
|
deviceId: this.config.deviceId,
|
|
188
189
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sgedda/mockifyer-fetch",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.37",
|
|
4
4
|
"description": "Mockifyer for Fetch - API mocking and logging utility for storing and replaying API responses",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"license": "MIT",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@sgedda/mockifyer-core": "^1.10.
|
|
52
|
+
"@sgedda/mockifyer-core": "^1.10.12"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^20.11.24",
|
package/src/index.ts
CHANGED
|
@@ -49,7 +49,6 @@ import {
|
|
|
49
49
|
resolveClientId,
|
|
50
50
|
resolveExplicitClientIdOnly,
|
|
51
51
|
resolveProxyStrictLaneScenario,
|
|
52
|
-
resolveProxyUpstreamTlsInsecure,
|
|
53
52
|
registerMockifyerInstance,
|
|
54
53
|
logMockifyerInitSummary,
|
|
55
54
|
tryGetClientIdFromLaunchArguments,
|
|
@@ -77,6 +76,7 @@ import {
|
|
|
77
76
|
type InitMockifyerForDashboardProxyOptions,
|
|
78
77
|
type InitMockifyerForLocalFilesystemOptions,
|
|
79
78
|
} from './core-proxy';
|
|
79
|
+
import { resolveProxyUpstreamTlsInsecure } from '@sgedda/mockifyer-core/utils/proxy-upstream-tls-insecure';
|
|
80
80
|
|
|
81
81
|
import { FetchHTTPClient } from './clients/fetch-client';
|
|
82
82
|
|