Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stepzen/sdk

Package Overview
Dependencies
Maintainers
6
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stepzen/sdk - npm Package Compare versions

Comparing version 0.9.27 to 0.9.28

lib/commands/list.d.ts

21

lib/index.d.ts

@@ -1,1 +0,20 @@

export {};
declare const stepzen: {
client: (options?: {
account: string;
adminkey: string;
}) => Promise<{
deploy: (destination: string, properties: {
configurationsets?: string[];
schema: string;
}) => Promise<import("./shared/types").ZenCtlResponse>;
list: {
configurationsets: () => Promise<import("./shared/types").ZenCtlResponse>;
schemas: () => Promise<import("./shared/types").ZenCtlResponse>;
};
upload: {
configurationset: (destination: string, file: string) => Promise<import("./shared/types").ZenCtlResponse>;
schema: (destination: string, directory: string) => Promise<import("./shared/types").ZenCtlResponse>;
};
}>;
};
export default stepzen;

31

lib/index.js

@@ -6,4 +6,5 @@ "use strict";

const deploy_1 = require("./commands/deploy");
const list_1 = require("./commands/list");
const upload_1 = require("./commands/upload");
module.exports = {
const stepzen = {
client: async (options = {

@@ -25,23 +26,25 @@ account: '',

return {
deploy: (destination, properties) => {
return deploy_1.default(Object.assign({ destination }, properties), account);
},
list: {
configurationsets: async () => {
return list_1.default({ type: 'configurationsets' }, account);
},
schemas: async () => {
return list_1.default({ type: 'schemas' }, account);
},
},
upload: {
configurationset: async (destination, file) => {
return upload_1.default({
type: 'configurationset',
destination,
file,
}, account);
return upload_1.default({ type: 'configurationset', destination, file }, account);
},
schema: async (destination, directory) => {
return upload_1.default({
type: 'schema',
destination,
directory,
}, account);
return upload_1.default({ type: 'schema', destination, directory }, account);
},
},
deploy: (destination, properties) => {
return deploy_1.default(Object.assign({ destination }, properties), account);
},
};
}
};
exports.default = stepzen;
module.exports = stepzen;
export declare const ADMIN_DEPLOY_URL = "/cli/admin/deploy";
export declare const ADMIN_LIST_URL = "/cli/admin/list";
export declare const ADMIN_UPLOAD_URL = "/cli/admin/upload";
export declare const ADMIN_VERIFY_URL = "/cli/admin/verify";
"use strict";
// Copyright (c) 2020,2021, StepZen, Inc.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ADMIN_VERIFY_URL = exports.ADMIN_UPLOAD_URL = exports.ADMIN_DEPLOY_URL = void 0;
exports.ADMIN_VERIFY_URL = exports.ADMIN_UPLOAD_URL = exports.ADMIN_LIST_URL = exports.ADMIN_DEPLOY_URL = void 0;
exports.ADMIN_DEPLOY_URL = '/cli/admin/deploy';
exports.ADMIN_LIST_URL = '/cli/admin/list';
exports.ADMIN_UPLOAD_URL = '/cli/admin/upload';
exports.ADMIN_VERIFY_URL = '/cli/admin/verify';

@@ -12,2 +12,5 @@ export interface StepZenAccount {

}
export interface StepZenList {
type: string;
}
export interface StepZenUpload {

@@ -14,0 +17,0 @@ destination: string;

{
"name": "@stepzen/sdk",
"version": "0.9.27",
"version": "0.9.28",
"license": "MIT",

@@ -8,2 +8,4 @@ "files": [

],
"author": "Darren Waddell <darren@stepzen.com>",
"homepage": "https://stepzen.com",
"main": "lib/index.js",

@@ -10,0 +12,0 @@ "scripts": {

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