@peacom/core 2.0.21 → 2.0.22
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/package.json
CHANGED
package/src/lib/api/fetch.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const myFetch: (url: any, opts
|
1
|
+
export declare const myFetch: (url: any, opts?: any) => Promise<Response>;
|
package/src/lib/api/fetch.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.myFetch = void 0;
|
4
|
-
const
|
4
|
+
const core_1 = require("@peacom/core");
|
5
5
|
const myFetch = (url, opts) => {
|
6
6
|
if (url.startsWith('https://')) {
|
7
|
-
opts.dispatcher =
|
7
|
+
opts.dispatcher = core_1.sslAgent;
|
8
8
|
}
|
9
9
|
return fetch(url, opts);
|
10
10
|
};
|
package/src/lib/api/fetch.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/api/fetch.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/api/fetch.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAE/B,MAAM,OAAO,GAAG,CAAC,GAAQ,EAAE,IAAU,EAAE,EAAE;IAC9C,IAAI,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QAC9B,IAAI,CAAC,UAAU,GAAG,eAAQ,CAAA;KAC3B;IACD,OAAO,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;AACzB,CAAC,CAAA;AALY,QAAA,OAAO,WAKnB"}
|