@optimizely/ocp-cli 1.2.10 → 1.2.11
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.
|
@@ -263,7 +263,7 @@ let CreateCommand = class CreateCommand {
|
|
|
263
263
|
async getSDKVersions(stage = 'stable') {
|
|
264
264
|
try {
|
|
265
265
|
// TODO: use semver to only get the latest allowable by the templates to avoid major version incompatibilities
|
|
266
|
-
const deps = await (0, node_fetch_1.default)((0, Config_1.getDependencyFileUrl)('
|
|
266
|
+
const deps = await (0, node_fetch_1.default)((0, Config_1.getDependencyFileUrl)('node22'));
|
|
267
267
|
const json = await deps.json();
|
|
268
268
|
this.substitutions['app_sdk_version'] = this.getLatestSDKVersion(json['@zaiusinc/app-sdk'], stage);
|
|
269
269
|
this.substitutions['node_sdk_version'] = this.getLatestSDKVersion(json['@zaiusinc/node-sdk'], stage);
|
package/package.json
CHANGED
package/src/commands/app/Init.ts
CHANGED
|
@@ -296,7 +296,7 @@ export class CreateCommand {
|
|
|
296
296
|
private async getSDKVersions(stage: DependencyStage = 'stable') {
|
|
297
297
|
try {
|
|
298
298
|
// TODO: use semver to only get the latest allowable by the templates to avoid major version incompatibilities
|
|
299
|
-
const deps = await fetch(getDependencyFileUrl('
|
|
299
|
+
const deps = await fetch(getDependencyFileUrl('node22'));
|
|
300
300
|
const json = await deps.json() as any;
|
|
301
301
|
this.substitutions['app_sdk_version'] = this.getLatestSDKVersion(json['@zaiusinc/app-sdk'], stage);
|
|
302
302
|
this.substitutions['node_sdk_version'] = this.getLatestSDKVersion(json['@zaiusinc/node-sdk'], stage);
|