softkave-node-utils 0.4.0 → 0.4.1

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,5 +1,5 @@
1
1
  export declare const getClientConfig: () => {
2
- publicURL: string;
2
+ publicURL: string | undefined;
3
3
  fimidxAppId: string;
4
4
  fimidxClientToken: string;
5
5
  fimidxServerUrl: string | undefined;
@@ -1,16 +1,16 @@
1
1
  import assert from 'assert';
2
- const publicURL = process.env.NEXT_PUBLIC_URL;
3
- const fimidxAppId = process.env.NEXT_PUBLIC_FIMIDX_LOGGER_APP_ID;
4
- const fimidxClientToken = process.env.NEXT_PUBLIC_FIMIDX_LOGGER_CLIENT_TOKEN;
5
- const fimidxServerUrl = process.env.NEXT_PUBLIC_FIMIDX_LOGGER_SERVER_URL;
6
- const nodeEnv = process.env.NEXT_PUBLIC_APP_ENV;
7
- const fimidxLoggerEnabled = process.env.NEXT_PUBLIC_FIMIDX_LOGGER_ENABLED === 'true';
8
- assert(publicURL, 'NEXT_PUBLIC_URL is not set');
9
- assert(fimidxAppId, 'NEXT_PUBLIC_FIMIDX_LOGGER_APP_ID is not set');
10
- assert(fimidxClientToken, 'NEXT_PUBLIC_FIMIDX_LOGGER_CLIENT_TOKEN is not set');
11
- // assert(fimidxServerUrl, "NEXT_PUBLIC_FIMIDX_LOGGER_SERVER_URL is not set");
12
- assert(nodeEnv, 'NEXT_PUBLIC_APP_ENV is not set');
13
2
  export const getClientConfig = () => {
3
+ const publicURL = process.env.NEXT_PUBLIC_URL;
4
+ const fimidxAppId = process.env.NEXT_PUBLIC_FIMIDX_LOGGER_APP_ID;
5
+ const fimidxClientToken = process.env.NEXT_PUBLIC_FIMIDX_LOGGER_CLIENT_TOKEN;
6
+ const fimidxServerUrl = process.env.NEXT_PUBLIC_FIMIDX_LOGGER_SERVER_URL;
7
+ const nodeEnv = process.env.NEXT_PUBLIC_APP_ENV;
8
+ const fimidxLoggerEnabled = process.env.NEXT_PUBLIC_FIMIDX_LOGGER_ENABLED === 'true';
9
+ // assert(publicURL, 'NEXT_PUBLIC_URL is not set');
10
+ assert(fimidxAppId, 'NEXT_PUBLIC_FIMIDX_LOGGER_APP_ID is not set');
11
+ assert(fimidxClientToken, 'NEXT_PUBLIC_FIMIDX_LOGGER_CLIENT_TOKEN is not set');
12
+ // assert(fimidxServerUrl, "NEXT_PUBLIC_FIMIDX_LOGGER_SERVER_URL is not set");
13
+ assert(nodeEnv, 'NEXT_PUBLIC_APP_ENV is not set');
14
14
  return {
15
15
  publicURL,
16
16
  fimidxAppId,
@@ -1 +1 @@
1
- {"version":3,"file":"getClientConfig.js","sourceRoot":"","sources":["../../src/common/getClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;AAC9C,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;AACjE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC;AAC7E,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC;AACzE,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;AAChD,MAAM,mBAAmB,GACvB,OAAO,CAAC,GAAG,CAAC,iCAAiC,KAAK,MAAM,CAAC;AAE3D,MAAM,CAAC,SAAS,EAAE,4BAA4B,CAAC,CAAC;AAChD,MAAM,CAAC,WAAW,EAAE,6CAA6C,CAAC,CAAC;AACnE,MAAM,CAAC,iBAAiB,EAAE,mDAAmD,CAAC,CAAC;AAC/E,8EAA8E;AAC9E,MAAM,CAAC,OAAO,EAAE,gCAAgC,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,OAAO;QACL,SAAS;QACT,WAAW;QACX,iBAAiB;QACjB,eAAe;QACf,OAAO;QACP,mBAAmB;KACpB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"getClientConfig.js","sourceRoot":"","sources":["../../src/common/getClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;IAC9C,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;IACjE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC;IAC7E,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC;IACzE,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;IAChD,MAAM,mBAAmB,GACvB,OAAO,CAAC,GAAG,CAAC,iCAAiC,KAAK,MAAM,CAAC;IAE3D,mDAAmD;IACnD,MAAM,CAAC,WAAW,EAAE,6CAA6C,CAAC,CAAC;IACnE,MAAM,CACJ,iBAAiB,EACjB,mDAAmD,CACpD,CAAC;IACF,8EAA8E;IAC9E,MAAM,CAAC,OAAO,EAAE,gCAAgC,CAAC,CAAC;IAElD,OAAO;QACL,SAAS;QACT,WAAW;QACX,iBAAiB;QACjB,eAAe;QACf,OAAO;QACP,mBAAmB;KACpB,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "softkave-node-utils",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Softkave Node.js utilities",
5
5
  "author": {
6
6
  "email": "ywordk@gmail.com",