Socket
Socket
Sign inDemoInstall

@prismatic-io/spectral

Package Overview
Dependencies
Maintainers
2
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismatic-io/spectral - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

dist/testing.d.ts

1

dist/index.d.ts

@@ -7,1 +7,2 @@ import { ComponentDefinition, ActionDefinition, InputFieldDefinition } from "./types";

export * from "./types";
export { default as testing } from "./testing";

@@ -22,1 +22,3 @@ "use strict";

__exportStar(require("./types"), exports);
var testing_1 = require("./testing");
Object.defineProperty(exports, "testing", { enumerable: true, get: function () { return testing_1.default; } });

@@ -27,12 +27,55 @@ /// <reference types="node" />

}
export declare type AuthorizationMethod = "api_key_secret" | "basic" | "private_key" | "api_key" | "oauth2";
export interface Credential {
authorizationMethod: AuthorizationMethod;
redirectUri?: string;
declare const authorizationMethods: readonly ["basic", "api_key", "api_key_secret", "private_key", "oauth2"];
export declare type AuthorizationMethod = typeof authorizationMethods[number];
export declare const AvailableAuthorizationMethods: AuthorizationMethod[];
export interface BasicCredential {
authorizationMethod: "basic";
fields: {
username: string;
password: string;
};
}
export interface ApiKeyCredential {
authorizationMethod: "api_key";
fields: {
api_key: string;
};
}
export interface ApiKeySecretCredential {
authorizationMethod: "api_key_secret";
fields: {
api_key: string;
api_secret: string;
};
}
export interface PrivateKeyCredential {
authorizationMethod: "private_key";
fields: {
username: string;
private_key: string;
};
}
export interface OAuth2Credential {
authorizationMethod: "oauth2";
redirectUri: string;
fields: {
client_id: string;
client_secret: string;
auth_uri: string;
token_uri: string;
scopes: string;
};
token: {
[key: string]: string | undefined;
access_token?: string;
refresh_token?: string;
token_type?: string;
expires_at?: string;
expires_in?: string;
};
context: {
[key: string]: string;
};
token?: object;
context?: object;
}
export declare type Credential = BasicCredential | ApiKeyCredential | ApiKeySecretCredential | PrivateKeyCredential | OAuth2Credential;
/** Base definition of Display properties. */

@@ -81,2 +124,4 @@ interface DisplayDefinition {

dynamicBranchInput?: string;
/**An example of the payload outputted by an Action*/
examplePayload?: PerformDataStructureReturn | PerformBranchingDataStructureReturn;
}

@@ -90,3 +135,3 @@ /** Action-specific Display attributes. */

}
declare type ActionLoggerFunction = (...args: unknown[]) => void;
export declare type ActionLoggerFunction = (...args: unknown[]) => void;
export interface ActionLogger {

@@ -93,0 +138,0 @@ debug: ActionLoggerFunction;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AvailableAuthorizationMethods = void 0;
const authorizationMethods = [
"basic",
"api_key",
"api_key_secret",
"private_key",
"oauth2",
];
exports.AvailableAuthorizationMethods = [
...authorizationMethods,
];

2

package.json
{
"name": "@prismatic-io/spectral",
"version": "1.0.2",
"version": "1.0.3",
"description": "Utility library for building Prismatic components",

@@ -5,0 +5,0 @@ "keywords": [

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