@prismatic-io/spectral
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -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": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
99402
1847
0