gomtm 0.0.222 → 0.0.223

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,6 +1,4 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
2
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
3
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
4
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -16,7 +14,6 @@ var __spreadValues = (a, b) => {
16
14
  }
17
15
  return a;
18
16
  };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
17
  var __async = (__this, __arguments, generator) => {
21
18
  return new Promise((resolve, reject) => {
22
19
  var fulfilled = (value) => {
@@ -40,7 +37,6 @@ var __async = (__this, __arguments, generator) => {
40
37
  import { createPromiseClient } from "@connectrpc/connect";
41
38
  import { createConnectTransport } from "@connectrpc/connect-web";
42
39
  import { merge } from "lodash";
43
- import { fetchMiddleWithCache } from "mtxlib/http/fetchMiddleWithCache";
44
40
  import { MtmService } from "./gomtmpb/mtm/sppb/mtm_connect";
45
41
  function createMtmServiceClient(service, url) {
46
42
  const baseUrl = url || process.env.MTM_BACKEND;
@@ -93,15 +89,12 @@ const gomtmFetcher = (initGlobal) => {
93
89
  init = {};
94
90
  }
95
91
  init = __spreadValues(__spreadValues({}, init), {
96
- headers: __spreadValues(__spreadProps(__spreadValues({}, init.headers), {
92
+ headers: __spreadValues({
93
+ // ...init.headers,
97
94
  "Content-Type": "application/json"
98
- }), (initGlobal == null ? void 0 : initGlobal.cookieStr) && { "Cookie": initGlobal == null ? void 0 : initGlobal.cookieStr })
95
+ }, (initGlobal == null ? void 0 : initGlobal.cookieStr) && { "Cookie": initGlobal == null ? void 0 : initGlobal.cookieStr })
99
96
  });
100
- let fetcher = fetch;
101
- req.enableCache = false;
102
- if (req.enableCache) {
103
- fetcher = fetchMiddleWithCache(fetch);
104
- }
97
+ const fetcher = fetch;
105
98
  try {
106
99
  console.info("[mtmfetch]", {
107
100
  input,