@workos-inc/node
Advanced tools
Comparing version 0.8.3 to 0.8.4
{ | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"name": "@workos-inc/node", | ||
@@ -12,3 +12,3 @@ "author": "WorkOS", | ||
"volta": { | ||
"node": "10.23.0", | ||
"node": "10.23.1", | ||
"yarn": "1.22.10" | ||
@@ -37,18 +37,18 @@ }, | ||
"dependencies": { | ||
"axios": "0.21.0", | ||
"axios": "0.21.1", | ||
"pluralize": "8.0.0", | ||
"query-string": "6.13.7" | ||
"query-string": "6.13.8" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "26.0.15", | ||
"@types/node": "12.19.6", | ||
"@types/jest": "26.0.20", | ||
"@types/node": "12.19.14", | ||
"@types/pluralize": "0.0.29", | ||
"axios-mock-adapter": "1.19.0", | ||
"jest": "26.6.3", | ||
"prettier": "2.2.0", | ||
"supertest": "6.0.1", | ||
"prettier": "2.2.1", | ||
"supertest": "6.1.1", | ||
"ts-jest": "26.4.4", | ||
"tslint": "6.1.3", | ||
"typescript": "4.1.2" | ||
"typescript": "4.1.3" | ||
} | ||
} |
@@ -5,3 +5,2 @@ export interface EventAction { | ||
name: string; | ||
project_id: string; | ||
} | ||
@@ -20,2 +19,3 @@ export interface Event { | ||
target_id: string; | ||
environment_id: string; | ||
occurred_at: Date; | ||
@@ -22,0 +22,0 @@ action: EventAction; |
@@ -8,5 +8,5 @@ export interface Directory { | ||
name: string; | ||
project_id: string; | ||
environment_id: string; | ||
state: 'unlinked' | 'linked'; | ||
type: string; | ||
} |
@@ -31,3 +31,3 @@ "use strict"; | ||
organization, | ||
returnUrl, | ||
return_url: returnUrl, | ||
}); | ||
@@ -34,0 +34,0 @@ return data; |
export interface AuthorizationURLOptions { | ||
clientID: string; | ||
domain?: string; | ||
projectID: string; | ||
/** | ||
* @deprecated The projectID parameter has been deprecated. Please use clientID. | ||
*/ | ||
projectID?: string; | ||
provider?: string; | ||
@@ -5,0 +9,0 @@ redirectURI: string; |
export interface GetProfileOptions { | ||
clientID: string; | ||
code: string; | ||
projectID: string; | ||
/** | ||
* @deprecated The projectID parameter has been deprecated. Please use clientID. | ||
*/ | ||
projectID?: string; | ||
} |
@@ -12,5 +12,5 @@ import { AuthorizationURLOptions } from './interfaces/authorization-url-options.interface'; | ||
createConnection({ source, }: CreateConnectionOptions): Promise<Connection>; | ||
getAuthorizationURL({ domain, projectID, provider, redirectURI, state, }: AuthorizationURLOptions): string; | ||
getProfile({ code, projectID }: GetProfileOptions): Promise<Profile>; | ||
getAuthorizationURL({ clientID, domain, provider, redirectURI, state, }: AuthorizationURLOptions): string; | ||
getProfile({ code, clientID }: GetProfileOptions): Promise<Profile>; | ||
promoteDraftConnection({ token }: PromoteDraftConnectionOptions): Promise<void>; | ||
} |
@@ -27,3 +27,3 @@ "use strict"; | ||
} | ||
getAuthorizationURL({ domain, projectID, provider, redirectURI, state, }) { | ||
getAuthorizationURL({ clientID, domain, provider, redirectURI, state, }) { | ||
if (!domain && !provider) { | ||
@@ -35,3 +35,3 @@ throw new Error(`Incomplete arguments. Need to specify either a 'domain' or 'provider'.`); | ||
provider, | ||
client_id: projectID, | ||
client_id: clientID, | ||
redirect_uri: redirectURI, | ||
@@ -43,6 +43,6 @@ response_type: 'code', | ||
} | ||
getProfile({ code, projectID }) { | ||
getProfile({ code, clientID }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const form = new URLSearchParams(); | ||
form.set('client_id', projectID); | ||
form.set('client_id', clientID); | ||
form.set('client_secret', this.workos.key); | ||
@@ -49,0 +49,0 @@ form.set('grant_type', 'authorization_code'); |
{ | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"name": "@workos-inc/node", | ||
@@ -12,3 +12,3 @@ "author": "WorkOS", | ||
"volta": { | ||
"node": "10.23.0", | ||
"node": "10.23.1", | ||
"yarn": "1.22.10" | ||
@@ -37,18 +37,18 @@ }, | ||
"dependencies": { | ||
"axios": "0.21.0", | ||
"axios": "0.21.1", | ||
"pluralize": "8.0.0", | ||
"query-string": "6.13.7" | ||
"query-string": "6.13.8" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "26.0.15", | ||
"@types/node": "12.19.6", | ||
"@types/jest": "26.0.20", | ||
"@types/node": "12.19.14", | ||
"@types/pluralize": "0.0.29", | ||
"axios-mock-adapter": "1.19.0", | ||
"jest": "26.6.3", | ||
"prettier": "2.2.0", | ||
"supertest": "6.0.1", | ||
"prettier": "2.2.1", | ||
"supertest": "6.1.1", | ||
"ts-jest": "26.4.4", | ||
"tslint": "6.1.3", | ||
"typescript": "4.1.2" | ||
"typescript": "4.1.3" | ||
} | ||
} |
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
46300
954
+ Addedaxios@0.21.1(transitive)
+ Addedquery-string@6.13.8(transitive)
- Removedaxios@0.21.0(transitive)
- Removedquery-string@6.13.7(transitive)
Updatedaxios@0.21.1
Updatedquery-string@6.13.8