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

@workos-inc/node

Package Overview
Dependencies
Maintainers
7
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workos-inc/node - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

18

dist/package.json
{
"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"
}
}
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