@peacom/core 2.0.21 → 2.0.23

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peacom/core",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-s3": "3.554.0",
@@ -1 +1 @@
1
- export declare const myFetch: (url: any, opts: any) => Promise<Response>;
1
+ export declare const myFetch: (url: any, opts?: any) => Promise<Response>;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.myFetch = void 0;
4
- const https_server_1 = require("./certificate/https-server");
4
+ const core_1 = require("@peacom/core");
5
5
  const myFetch = (url, opts) => {
6
6
  if (url.startsWith('https://')) {
7
- opts.dispatcher = https_server_1.sslAgent;
7
+ opts.dispatcher = core_1.sslAgent;
8
8
  }
9
9
  return fetch(url, opts);
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/api/fetch.ts"],"names":[],"mappings":";;;AAAA,6DAAoD;AAE7C,MAAM,OAAO,GAAG,CAAC,GAAQ,EAAE,IAAS,EAAE,EAAE;IAC7C,IAAI,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QAC9B,IAAI,CAAC,UAAU,GAAG,uBAAQ,CAAA;KAC3B;IACD,OAAO,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;AACzB,CAAC,CAAA;AALY,QAAA,OAAO,WAKnB"}
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"}
@@ -3,3 +3,4 @@ export * from './queue/queue.api';
3
3
  export * from './core.api';
4
4
  export * from './micro-service.api';
5
5
  export * from './certificate/https-server';
6
+ export * from './fetch';
@@ -6,4 +6,5 @@ tslib_1.__exportStar(require("./queue/queue.api"), exports);
6
6
  tslib_1.__exportStar(require("./core.api"), exports);
7
7
  tslib_1.__exportStar(require("./micro-service.api"), exports);
8
8
  tslib_1.__exportStar(require("./certificate/https-server"), exports);
9
+ tslib_1.__exportStar(require("./fetch"), exports);
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/api/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B;AAC9B,4DAAiC;AACjC,qDAA0B;AAC1B,8DAAmC;AACnC,qEAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/api/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B;AAC9B,4DAAiC;AACjC,qDAA0B;AAC1B,8DAAmC;AACnC,qEAA0C;AAC1C,kDAAuB"}