@optimizely/opti-cli
Advanced tools
Comparing version 1.0.0-beta.12 to 1.0.0-beta.13
@@ -35,2 +35,6 @@ "use strict"; | ||
const appVersion = await Rivendell_1.Rivendell.fetchAppVersion({ appId, version }, 'us'); | ||
if (!['NEW', 'PUBLISHED', 'START_FAILED', 'STOPPED'].includes(appVersion.state)) { | ||
throw new Error(`AppVersion must be in a publishable state. ` + | ||
`Currently: ${formatVersionState_1.formatVersionState(appVersion.state)}`); | ||
} | ||
const manifest = JSON.parse(appVersion.manifestJson); | ||
@@ -37,0 +41,0 @@ const shards = await Shards_1.applicableShards('', manifest); |
@@ -33,2 +33,6 @@ "use strict"; | ||
const appVersion = await Rivendell_1.Rivendell.fetchAppVersion({ appId, version }, 'us'); | ||
if (!['RUNNING', 'START_FAILED', 'STOP_FAILED'].includes(appVersion.state)) { | ||
throw new Error(`AppVersion must be in an unpublishable state. ` + | ||
`Currently: ${formatVersionState_1.formatVersionState(appVersion.state)}`); | ||
} | ||
const manifest = JSON.parse(appVersion.manifestJson); | ||
@@ -35,0 +39,0 @@ const shards = await Shards_1.applicableShards(this.availability, manifest); |
@@ -834,3 +834,3 @@ { | ||
"package": { | ||
"version": "1.0.0-beta.12", | ||
"version": "1.0.0-beta.13", | ||
"name": "@optimizely/opti-cli", | ||
@@ -837,0 +837,0 @@ "license": "Apache-2.0", |
{ | ||
"name": "@optimizely/opti-cli", | ||
"version": "1.0.0-beta.12", | ||
"version": "1.0.0-beta.13", | ||
"description": "Optimizely command line interface", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/ZaiusInc/opti-cli", |
@@ -44,2 +44,8 @@ import chalk from 'chalk'; | ||
const appVersion = await Rivendell.fetchAppVersion({appId, version}, 'us'); | ||
if (!['NEW', 'PUBLISHED', 'START_FAILED', 'STOPPED'].includes(appVersion.state)) { | ||
throw new Error(`AppVersion must be in a publishable state. ` + | ||
`Currently: ${formatVersionState(appVersion.state as AppVersionState)}`); | ||
} | ||
const manifest = JSON.parse(appVersion.manifestJson) as AppManifest; | ||
@@ -46,0 +52,0 @@ const shards = await applicableShards('', manifest); |
@@ -46,2 +46,8 @@ import chalk from 'chalk'; | ||
const appVersion = await Rivendell.fetchAppVersion({appId, version}, 'us'); | ||
if (!['RUNNING', 'START_FAILED', 'STOP_FAILED'].includes(appVersion.state)) { | ||
throw new Error(`AppVersion must be in an unpublishable state. ` + | ||
`Currently: ${formatVersionState(appVersion.state as AppVersionState)}`); | ||
} | ||
const manifest = JSON.parse(appVersion.manifestJson) as AppManifest; | ||
@@ -48,0 +54,0 @@ const shards = await applicableShards(this.availability, manifest); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
469305
9091