whitelabel-db 1.1.68 → 1.1.69
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/libs/liteapiv3.js
CHANGED
package/dist/models/Project.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export declare class Project extends Model<Partial<Project>> {
|
|
|
16
16
|
appearance?: object;
|
|
17
17
|
generateSession(secret: string): string;
|
|
18
18
|
getLiteApiClient(): LiteApiClient;
|
|
19
|
-
getLiteApiClientV3(
|
|
19
|
+
getLiteApiClientV3(): LiteApiClientV3;
|
|
20
20
|
}
|
package/dist/models/Project.js
CHANGED
|
@@ -44,12 +44,13 @@ let Project = class Project extends sequelize_typescript_1.Model {
|
|
|
44
44
|
throw err;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
getLiteApiClientV3(
|
|
47
|
+
getLiteApiClientV3() {
|
|
48
48
|
try {
|
|
49
49
|
let key = this.settings.liteApiKey;
|
|
50
50
|
if (!key || !key.length) {
|
|
51
51
|
key = process.env.LITEAPI_KEY;
|
|
52
52
|
}
|
|
53
|
+
const environment = this.settings.liteApiEnvironment || 'production';
|
|
53
54
|
if (!clientV3[key]) {
|
|
54
55
|
clientV3[key] = new liteapiv3_1.LiteApiClientV3(key, environment);
|
|
55
56
|
}
|