@xfe-repo/mini-utils 0.0.7 → 0.0.9

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.
@@ -93,6 +93,9 @@ var isApp = isSaasAPP;
93
93
  var _a3, _b, _c;
94
94
  var appVersion = isApp ? ((_c = (_b = (_a3 = window == null ? void 0 : window.navigator) == null ? void 0 : _a3.userAgent) == null ? void 0 : _b.match(/version:(\d+\.\d+\.\d+);/)) == null ? void 0 : _c[1]) || "" : "";
95
95
  var apiEnv = process.env.API_ENV || getLocalData3("apiEnv");
96
+ var jwtAud = process.env.XFE_JWT_AUD;
97
+ var jwtPrivateKey = process.env.XFE_JWT_PRIVATE_KEY;
98
+ var jwtkeyId = process.env.XFE_JWT_KEY_ID;
96
99
 
97
100
  // src/appJSBridge.ts
98
101
  var import_compare_versions = require("compare-versions");
@@ -3,7 +3,7 @@ import {
3
3
  isApp,
4
4
  isSaasAndroidApp,
5
5
  isSaasIOSApp
6
- } from "./chunk-7KLLRNFF.mjs";
6
+ } from "./chunk-NA2KE7QL.mjs";
7
7
  import "./chunk-L74XPUIL.mjs";
8
8
  import "./chunk-52AS66K5.mjs";
9
9
  import "./chunk-6BTIQCMF.mjs";
@@ -19,6 +19,9 @@ var isApp = isSaasAPP;
19
19
  var _a3, _b, _c;
20
20
  var appVersion = isApp ? ((_c = (_b = (_a3 = window == null ? void 0 : window.navigator) == null ? void 0 : _a3.userAgent) == null ? void 0 : _b.match(/version:(\d+\.\d+\.\d+);/)) == null ? void 0 : _c[1]) || "" : "";
21
21
  var apiEnv = process.env.API_ENV || getLocalData("apiEnv");
22
+ var jwtAud = process.env.XFE_JWT_AUD;
23
+ var jwtPrivateKey = process.env.XFE_JWT_PRIVATE_KEY;
24
+ var jwtkeyId = process.env.XFE_JWT_KEY_ID;
22
25
 
23
26
  export {
24
27
  ENV,
@@ -32,5 +35,8 @@ export {
32
35
  isSaasAPP,
33
36
  isApp,
34
37
  appVersion,
35
- apiEnv
38
+ apiEnv,
39
+ jwtAud,
40
+ jwtPrivateKey,
41
+ jwtkeyId
36
42
  };
package/dist/env.d.mts CHANGED
@@ -11,5 +11,8 @@ declare const isSaasAPP: boolean;
11
11
  declare const isApp: boolean;
12
12
  declare const appVersion: string;
13
13
  declare const apiEnv: ApiEnv;
14
+ declare const jwtAud: string | undefined;
15
+ declare const jwtPrivateKey: string | undefined;
16
+ declare const jwtkeyId: string | undefined;
14
17
 
15
- export { type ApiEnv, ENV, apiEnv, appVersion, isApp, isH5, isProduction, isSaasAPP, isSaasAndroidApp, isSaasIOSApp, isWeapp, platform, version };
18
+ export { type ApiEnv, ENV, apiEnv, appVersion, isApp, isH5, isProduction, isSaasAPP, isSaasAndroidApp, isSaasIOSApp, isWeapp, jwtAud, jwtPrivateKey, jwtkeyId, platform, version };
package/dist/env.d.ts CHANGED
@@ -11,5 +11,8 @@ declare const isSaasAPP: boolean;
11
11
  declare const isApp: boolean;
12
12
  declare const appVersion: string;
13
13
  declare const apiEnv: ApiEnv;
14
+ declare const jwtAud: string | undefined;
15
+ declare const jwtPrivateKey: string | undefined;
16
+ declare const jwtkeyId: string | undefined;
14
17
 
15
- export { type ApiEnv, ENV, apiEnv, appVersion, isApp, isH5, isProduction, isSaasAPP, isSaasAndroidApp, isSaasIOSApp, isWeapp, platform, version };
18
+ export { type ApiEnv, ENV, apiEnv, appVersion, isApp, isH5, isProduction, isSaasAPP, isSaasAndroidApp, isSaasIOSApp, isWeapp, jwtAud, jwtPrivateKey, jwtkeyId, platform, version };
package/dist/env.js CHANGED
@@ -40,6 +40,9 @@ __export(env_exports, {
40
40
  isSaasAndroidApp: () => isSaasAndroidApp,
41
41
  isSaasIOSApp: () => isSaasIOSApp,
42
42
  isWeapp: () => isWeapp2,
43
+ jwtAud: () => jwtAud,
44
+ jwtPrivateKey: () => jwtPrivateKey,
45
+ jwtkeyId: () => jwtkeyId,
43
46
  platform: () => platform2,
44
47
  version: () => version
45
48
  });
@@ -79,6 +82,9 @@ var isApp = isSaasAPP;
79
82
  var _a3, _b, _c;
80
83
  var appVersion = isApp ? ((_c = (_b = (_a3 = window == null ? void 0 : window.navigator) == null ? void 0 : _a3.userAgent) == null ? void 0 : _b.match(/version:(\d+\.\d+\.\d+);/)) == null ? void 0 : _c[1]) || "" : "";
81
84
  var apiEnv = process.env.API_ENV || getLocalData3("apiEnv");
85
+ var jwtAud = process.env.XFE_JWT_AUD;
86
+ var jwtPrivateKey = process.env.XFE_JWT_PRIVATE_KEY;
87
+ var jwtkeyId = process.env.XFE_JWT_KEY_ID;
82
88
  // Annotate the CommonJS export names for ESM import in node:
83
89
  0 && (module.exports = {
84
90
  ENV,
@@ -91,6 +97,9 @@ var apiEnv = process.env.API_ENV || getLocalData3("apiEnv");
91
97
  isSaasAndroidApp,
92
98
  isSaasIOSApp,
93
99
  isWeapp,
100
+ jwtAud,
101
+ jwtPrivateKey,
102
+ jwtkeyId,
94
103
  platform,
95
104
  version
96
105
  });
package/dist/env.mjs CHANGED
@@ -9,9 +9,12 @@ import {
9
9
  isSaasAndroidApp,
10
10
  isSaasIOSApp,
11
11
  isWeapp,
12
+ jwtAud,
13
+ jwtPrivateKey,
14
+ jwtkeyId,
12
15
  platform,
13
16
  version
14
- } from "./chunk-7KLLRNFF.mjs";
17
+ } from "./chunk-NA2KE7QL.mjs";
15
18
  import "./chunk-L74XPUIL.mjs";
16
19
  import "./chunk-52AS66K5.mjs";
17
20
  import "./chunk-6BTIQCMF.mjs";
@@ -27,6 +30,9 @@ export {
27
30
  isSaasAndroidApp,
28
31
  isSaasIOSApp,
29
32
  isWeapp,
33
+ jwtAud,
34
+ jwtPrivateKey,
35
+ jwtkeyId,
30
36
  platform,
31
37
  version
32
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/mini-utils",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "sideEffects": false,
5
5
  "module": "dist/*.js",
6
6
  "types": "types/*.d.ts",