Socket
Socket
Sign inDemoInstall

@optimizely/opti-cli

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@optimizely/opti-cli - npm Package Compare versions

Comparing version 1.0.0-beta.26 to 1.0.0-beta.27

dist/commands/jobs/Terminate.d.ts

4

dist/lib/Rivendell.d.ts

@@ -276,3 +276,7 @@ import { AppContext } from './AppContext';

function shards(): Promise<Shard[]>;
/**
* Search Jobs.
*/
function terminateJob(jobId: string, shard: string): Promise<void>;
function jwt(shard: string): Promise<string>;
}

@@ -253,2 +253,9 @@ "use strict";

/**
* Search Jobs.
*/
async function terminateJob(jobId, shard) {
await RivendellApi_1.RivendellApi.delete_(path(shard, `jobs/${jobId}`));
}
Rivendell.terminateJob = terminateJob;
/**
* Get Moria JWT for this developer.

@@ -255,0 +262,0 @@ */

@@ -19,4 +19,5 @@ import { Response } from 'node-fetch';

export function put<T>(uri: string, body: any): Promise<ApiResponse<T>>;
export function delete_<T>(uri: string): Promise<ApiResponse<T>>;
export function request<T>(method: Method, uri: string, body?: any): Promise<ApiResponse<T>>;
export {};
}

@@ -33,2 +33,6 @@ "use strict";

RivendellApi.put = put;
async function delete_(uri) {
return request('DELETE', uri);
}
RivendellApi.delete_ = delete_;
async function request(method, uri, body) {

@@ -35,0 +39,0 @@ const url = `${Config_1.runtimeConfig().rivendell}/${uri}`;

@@ -831,2 +831,38 @@ {

},
"jobs": {
"namespaces": {},
"commands": [
{
"path": "commands/jobs/Terminate.js",
"className": "TerminateCommand",
"key": "terminate",
"command": "terminate",
"aliases": [],
"help": "Terminate a job",
"documentation": "TBD",
"flags": [],
"options": [
{
"name": "availability",
"key": "availability",
"aliases": [
"a"
],
"help": "The availability zone that will be targeted (default: us)",
"optional": true,
"multiple": false
}
],
"params": [
{
"name": "jobId",
"key": "jobId",
"help": "ID of Job to terminate",
"optional": false,
"multiple": false
}
]
}
]
},
"review": {

@@ -880,3 +916,3 @@ "namespaces": {},

"package": {
"version": "1.0.0-beta.26",
"version": "1.0.0-beta.27",
"name": "@optimizely/opti-cli",

@@ -883,0 +919,0 @@ "license": "Apache-2.0",

2

package.json
{
"name": "@optimizely/opti-cli",
"version": "1.0.0-beta.26",
"version": "1.0.0-beta.27",
"description": "Optimizely command line interface",

@@ -5,0 +5,0 @@ "repository": "https://github.com/ZaiusInc/opti-cli",

@@ -442,2 +442,9 @@ import {RivendellApi} from './RivendellApi';

/**
* Search Jobs.
*/
export async function terminateJob(jobId: string, shard: string): Promise<void> {
await RivendellApi.delete_(path(shard, `jobs/${jobId}`));
}
/**
* Get Moria JWT for this developer.

@@ -444,0 +451,0 @@ */

@@ -35,2 +35,6 @@ import fetch, {RequestInit, Response} from 'node-fetch';

export async function delete_<T>(uri: string): Promise<ApiResponse<T>> {
return request('DELETE', uri);
}
export async function request<T>(method: Method, uri: string, body?: any): Promise<ApiResponse<T>> {

@@ -37,0 +41,0 @@ const url = `${runtimeConfig().rivendell}/${uri}`;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc