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

@prismatic-io/spectral

Package Overview
Dependencies
Maintainers
2
Versions
179
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 4.0.0 to 4.0.1

8

dist/testing.d.ts

@@ -26,5 +26,5 @@ /**

/** Return a OAuth2Credential assembled from provided token and optional redirectUri. */
oauth2: (token: string, redirectUri?: string) => OAuth2Credential;
oauth2: (token: string, redirectUri?: string, tokenUri?: string, clientId?: string, clientSecret?: string, headers?: {}) => OAuth2Credential;
/** Return a OAuth2Credential assembled from provided token. */
oauth2ClientCredentials: (token: string) => OAuth2Credential;
oauth2ClientCredentials: (token: string, redirectUri?: string, tokenUri?: string, clientId?: string, clientSecret?: string, headers?: {}) => OAuth2Credential;
/** Returns an arbitrary Credential using method. Generally used for testing negative support cases. */

@@ -75,5 +75,5 @@ generate: (method: AuthorizationMethod) => Credential;

/** Return a OAuth2Credential assembled from provided token and optional redirectUri. */
oauth2: (token: string, redirectUri?: string) => OAuth2Credential;
oauth2: (token: string, redirectUri?: string, tokenUri?: string, clientId?: string, clientSecret?: string, headers?: {}) => OAuth2Credential;
/** Return a OAuth2Credential assembled from provided token. */
oauth2ClientCredentials: (token: string) => OAuth2Credential;
oauth2ClientCredentials: (token: string, redirectUri?: string, tokenUri?: string, clientId?: string, clientSecret?: string, headers?: {}) => OAuth2Credential;
/** Returns an arbitrary Credential using method. Generally used for testing negative support cases. */

@@ -80,0 +80,0 @@ generate: (method: "basic" | "api_key" | "api_key_secret" | "private_key" | "oauth2" | "oauth2_client_credentials") => Credential;

@@ -66,9 +66,10 @@ "use strict";

/** Return a OAuth2Credential assembled from provided token and optional redirectUri. */
oauth2: (token, redirectUri = "") => ({
oauth2: (token, redirectUri = "", tokenUri = "", clientId = "", clientSecret = "", headers = {}) => ({
authorizationMethod: "oauth2",
redirectUri,
fields: {
client_id: "",
client_secret: "",
token_uri: "",
client_id: clientId,
client_secret: clientSecret,
token_uri: tokenUri,
headers,
},

@@ -79,9 +80,10 @@ token: { access_token: token, token_type: "bearer" },

/** Return a OAuth2Credential assembled from provided token. */
oauth2ClientCredentials: (token) => ({
oauth2ClientCredentials: (token, redirectUri = "", tokenUri = "", clientId = "", clientSecret = "", headers = {}) => ({
authorizationMethod: "oauth2_client_credentials",
redirectUri: "",
redirectUri: redirectUri,
fields: {
client_id: "",
client_secret: "",
token_uri: "",
client_id: clientId,
client_secret: clientSecret,
token_uri: tokenUri,
headers,
},

@@ -88,0 +90,0 @@ token: { access_token: token, token_type: "bearer" },

{
"name": "@prismatic-io/spectral",
"version": "4.0.0",
"version": "4.0.1",
"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