@optimizely/opti-cli
Advanced tools
Comparing version 1.0.0-beta.15 to 1.0.0-beta.16
@@ -19,3 +19,3 @@ "use strict"; | ||
try { | ||
this.render(await (await Rivendell_1.Rivendell.shards()).filter((s) => s.live)); | ||
this.render(await Rivendell_1.Rivendell.shards()); | ||
} | ||
@@ -22,0 +22,0 @@ catch (e) { |
@@ -226,3 +226,4 @@ "use strict"; | ||
const response = await RivendellApi_1.RivendellApi.get('shards'); | ||
return response.body; | ||
const me = await Rivendell.whoami(); | ||
return response.body.filter((s) => me.role === 'administrator' || s.live); | ||
} | ||
@@ -229,0 +230,0 @@ Rivendell.shards = shards; |
@@ -29,3 +29,3 @@ "use strict"; | ||
if (shards.includes('all')) { | ||
shards = (await Rivendell_1.Rivendell.shards()).filter((s) => s.live).map((s) => s.id); | ||
shards = (await Rivendell_1.Rivendell.shards()).map((s) => s.id); | ||
} | ||
@@ -32,0 +32,0 @@ return ['us'].concat(shards.filter((s) => s !== 'us').sort()); |
@@ -834,3 +834,3 @@ { | ||
"package": { | ||
"version": "1.0.0-beta.15", | ||
"version": "1.0.0-beta.16", | ||
"name": "@optimizely/opti-cli", | ||
@@ -837,0 +837,0 @@ "license": "Apache-2.0", |
{ | ||
"name": "@optimizely/opti-cli", | ||
"version": "1.0.0-beta.15", | ||
"version": "1.0.0-beta.16", | ||
"description": "Optimizely command line interface", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/ZaiusInc/opti-cli", |
@@ -16,3 +16,3 @@ import {command, help, namespace} from 'oo-cli'; | ||
try { | ||
this.render(await (await Rivendell.shards()).filter((s) => s.live)); | ||
this.render(await Rivendell.shards()); | ||
} catch (e) { | ||
@@ -19,0 +19,0 @@ die(formatError(e)); |
@@ -407,3 +407,4 @@ import {RivendellApi} from './RivendellApi'; | ||
const response = await RivendellApi.get<Shard[]>('shards'); | ||
return response.body; | ||
const me = await Rivendell.whoami(); | ||
return response.body.filter((s) => me.role === 'administrator' || s.live); | ||
} | ||
@@ -410,0 +411,0 @@ |
@@ -33,3 +33,3 @@ import { AppManifest } from '@zaiusinc/app-sdk'; | ||
if (shards.includes('all')) { | ||
shards = (await Rivendell.shards()).filter((s) => s.live).map((s) => s.id); | ||
shards = (await Rivendell.shards()).map((s) => s.id); | ||
} | ||
@@ -36,0 +36,0 @@ |
Sorry, the diff of this file is not supported yet
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
470285
9109