@o2s/modules.surveyjs 0.5.3 → 0.5.4
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/dist/frontend/sdk/index.d.ts.map +1 -1
- package/dist/frontend/sdk/index.js +6 -5
- package/dist/sdk/sdk/index.d.ts.map +1 -1
- package/dist/sdk/sdk/index.js +6 -5
- package/dist/sdk/sdk/index.js.map +1 -1
- package/dist/tsconfig.frontend.tsbuildinfo +1 -1
- package/dist/tsconfig.sdk.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,GAAG;;;;;CAKd,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
// this unused import is necessary for TypeScript to properly resolve API methods
|
|
2
|
+
import { env } from 'next-runtime-env';
|
|
2
3
|
import { extendSdk, getSdk } from '@o2s/framework/sdk';
|
|
3
4
|
import { surveyjs } from './surveyjs';
|
|
4
|
-
const API_URL = (typeof window === 'undefined' ? process.env.
|
|
5
|
-
|
|
5
|
+
const API_URL = (typeof window === 'undefined' ? process.env.API_URL_INTERNAL : env('NEXT_PUBLIC_API_URL')) ||
|
|
6
|
+
env('NEXT_PUBLIC_API_URL');
|
|
6
7
|
const internalSdk = getSdk({
|
|
7
8
|
apiUrl: API_URL,
|
|
8
9
|
logger: {
|
|
9
10
|
// @ts-expect-error missing types
|
|
10
|
-
level: process.env.
|
|
11
|
+
level: process.env.LOG_LEVEL,
|
|
11
12
|
// @ts-expect-error missing types
|
|
12
|
-
format: process.env.
|
|
13
|
-
colorsEnabled: process.env.
|
|
13
|
+
format: process.env.LOG_FORMAT,
|
|
14
|
+
colorsEnabled: process.env.LOG_COLORS_ENABLED === 'true',
|
|
14
15
|
},
|
|
15
16
|
});
|
|
16
17
|
export const sdk = extendSdk(internalSdk, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,GAAG;;;;;CAKd,CAAC"}
|
package/dist/sdk/sdk/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sdk = void 0;
|
|
4
|
+
const next_runtime_env_1 = require("next-runtime-env");
|
|
4
5
|
const sdk_1 = require("@o2s/framework/sdk");
|
|
5
6
|
const surveyjs_1 = require("./surveyjs");
|
|
6
|
-
const API_URL = (typeof window === 'undefined' ? process.env.
|
|
7
|
-
|
|
7
|
+
const API_URL = (typeof window === 'undefined' ? process.env.API_URL_INTERNAL : (0, next_runtime_env_1.env)('NEXT_PUBLIC_API_URL')) ||
|
|
8
|
+
(0, next_runtime_env_1.env)('NEXT_PUBLIC_API_URL');
|
|
8
9
|
const internalSdk = (0, sdk_1.getSdk)({
|
|
9
10
|
apiUrl: API_URL,
|
|
10
11
|
logger: {
|
|
11
|
-
level: process.env.
|
|
12
|
-
format: process.env.
|
|
13
|
-
colorsEnabled: process.env.
|
|
12
|
+
level: process.env.LOG_LEVEL,
|
|
13
|
+
format: process.env.LOG_FORMAT,
|
|
14
|
+
colorsEnabled: process.env.LOG_COLORS_ENABLED === 'true',
|
|
14
15
|
},
|
|
15
16
|
});
|
|
16
17
|
exports.sdk = (0, sdk_1.extendSdk)(internalSdk, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":";;;AACA,4CAAuD;AAEvD,yCAAsC;AAEtC,MAAM,OAAO,GACT,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":";;;AACA,uDAAuC;AAEvC,4CAAuD;AAEvD,yCAAsC;AAEtC,MAAM,OAAO,GACT,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAA,sBAAG,EAAC,qBAAqB,CAAC,CAAC;IAC3F,IAAA,sBAAG,EAAC,qBAAqB,CAAC,CAAC;AAE/B,MAAM,WAAW,GAAG,IAAA,YAAM,EAAC;IACvB,MAAM,EAAE,OAAQ;IAChB,MAAM,EAAE;QAEJ,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;QAE5B,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAC9B,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,KAAK,MAAM;KAC3D;CACJ,CAAC,CAAC;AAEU,QAAA,GAAG,GAAG,IAAA,eAAS,EAAC,WAAW,EAAE;IACtC,OAAO,EAAE;QACL,SAAS,EAAE,IAAA,mBAAQ,EAAC,WAAW,CAAC,CAAC,OAAO,CAAC,SAAS;QAClD,YAAY,EAAE,IAAA,mBAAQ,EAAC,WAAW,CAAC,CAAC,OAAO,CAAC,YAAY;KAC3D;CACJ,CAAC,CAAC"}
|