Socket
Socket
Sign inDemoInstall

@workos-inc/node

Package Overview
Dependencies
Maintainers
6
Versions
155
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.3.0 to 0.4.0

dist/src/audit-trail/interfaces/event-options.interface.d.ts

20

dist/package.json
{
"version": "0.3.0",
"version": "0.4.0",
"name": "@workos-inc/node",

@@ -12,3 +12,3 @@ "author": "WorkOS",

"volta": {
"node": "10.20.1",
"node": "10.22.0",
"yarn": "1.22.4"

@@ -38,16 +38,16 @@ },

"pluralize": "8.0.0",
"query-string": "6.12.1"
"query-string": "6.13.1"
},
"devDependencies": {
"@types/jest": "25.2.1",
"@types/node": "12.12.37",
"@types/jest": "26.0.8",
"@types/node": "12.12.53",
"@types/pluralize": "0.0.29",
"axios-mock-adapter": "1.18.1",
"jest": "25.5.2",
"axios-mock-adapter": "1.18.2",
"jest": "26.2.2",
"prettier": "2.0.5",
"supertest": "4.0.2",
"ts-jest": "25.4.0",
"tslint": "6.1.2",
"typescript": "3.8.3"
"ts-jest": "26.1.4",
"tslint": "6.1.3",
"typescript": "3.9.7"
}
}
import { CreateEventOptions } from './interfaces/create-event-options.interface';
import { Event } from '../common/interfaces';
import { Event } from './interfaces/event.interface';
import { EventOptions } from './interfaces/event-options.interface';
import { List } from '../common/interfaces/list.interface';
import { ListEventsOptions } from './interfaces/list-events-options.interface';
import WorkOS from '../workos';

@@ -7,3 +10,4 @@ export declare class AuditTrail {

constructor(workos: WorkOS);
createEvent(event: Event, { idempotencyKey }?: CreateEventOptions): Promise<void>;
createEvent(event: EventOptions, { idempotencyKey }?: CreateEventOptions): Promise<void>;
listEvents(options?: ListEventsOptions): Promise<List<Event>>;
}

@@ -12,2 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AuditTrail = void 0;
class AuditTrail {

@@ -22,3 +23,9 @@ constructor(workos) {

}
listEvents(options) {
return __awaiter(this, void 0, void 0, function* () {
const { data } = yield this.workos.get('/events', options);
return data;
});
}
}
exports.AuditTrail = AuditTrail;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GenericServerException = void 0;
class GenericServerException {

@@ -4,0 +5,0 @@ constructor(status, message, requestID) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var generic_server_exception_1 = require("./generic-server.exception");
exports.GenericServerException = generic_server_exception_1.GenericServerException;
Object.defineProperty(exports, "GenericServerException", { enumerable: true, get: function () { return generic_server_exception_1.GenericServerException; } });
var no_api_key_provided_exception_1 = require("./no-api-key-provided.exception");
exports.NoApiKeyProvidedException = no_api_key_provided_exception_1.NoApiKeyProvidedException;
Object.defineProperty(exports, "NoApiKeyProvidedException", { enumerable: true, get: function () { return no_api_key_provided_exception_1.NoApiKeyProvidedException; } });
var not_found_exception_1 = require("./not-found.exception");
exports.NotFoundException = not_found_exception_1.NotFoundException;
Object.defineProperty(exports, "NotFoundException", { enumerable: true, get: function () { return not_found_exception_1.NotFoundException; } });
var unauthorized_exception_1 = require("./unauthorized.exception");
exports.UnauthorizedException = unauthorized_exception_1.UnauthorizedException;
Object.defineProperty(exports, "UnauthorizedException", { enumerable: true, get: function () { return unauthorized_exception_1.UnauthorizedException; } });
var unprocessable_entity_exception_1 = require("./unprocessable-entity.exception");
exports.UnprocessableEntityException = unprocessable_entity_exception_1.UnprocessableEntityException;
Object.defineProperty(exports, "UnprocessableEntityException", { enumerable: true, get: function () { return unprocessable_entity_exception_1.UnprocessableEntityException; } });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoApiKeyProvidedException = void 0;
class NoApiKeyProvidedException extends Error {

@@ -8,3 +9,3 @@ constructor() {

this.name = 'NoApiKeyProvidedException';
this.message = `Missing API key. Pass it to the constructor (new WorkOS({ key: "sk_test_Sz3IQjepeSWaI4cMS4ms4sMuU" })) ` +
this.message = `Missing API key. Pass it to the constructor (new WorkOS("sk_test_Sz3IQjepeSWaI4cMS4ms4sMuU")) ` +
`or define it in the WORKOS_API_KEY environment variable.`;

@@ -11,0 +12,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotFoundException = void 0;
class NotFoundException {

@@ -4,0 +5,0 @@ constructor(path, requestID) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnauthorizedException = void 0;
class UnauthorizedException {

@@ -4,0 +5,0 @@ constructor(requestID) {

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.UnprocessableEntityException = void 0;
const pluralize_1 = __importDefault(require("pluralize"));

@@ -8,0 +9,0 @@ class UnprocessableEntityException {

@@ -1,2 +0,1 @@

export { Event } from './event.interface';
export { HttpException } from './http-exception.interface';

@@ -3,0 +2,0 @@ export { UnprocessableEntityError } from './unprocessable-entity-error.interface';

@@ -12,2 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DirectorySync = void 0;
class DirectorySync {

@@ -14,0 +15,0 @@ constructor(workos) {

export interface Directory {
object: 'directory_endpoint';
object: 'directory';
id: string;

@@ -4,0 +4,0 @@ bearer_token?: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConnectionType = void 0;
var ConnectionType;

@@ -4,0 +5,0 @@ (function (ConnectionType) {

@@ -15,2 +15,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SSO = void 0;
const query_string_1 = __importDefault(require("query-string"));

@@ -17,0 +18,0 @@ class SSO {

@@ -15,2 +15,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkOS = void 0;
const axios_1 = __importDefault(require("axios"));

@@ -126,3 +127,3 @@ const audit_trail_1 = require("./audit-trail/audit-trail");

// tslint:disable:no-console
return console.warn(`Stripe: ${warning}`);
return console.warn(`WorkOS: ${warning}`);
}

@@ -129,0 +130,0 @@ return process.emitWarning(warning, 'WorkOS');

{
"version": "0.3.0",
"version": "0.4.0",
"name": "@workos-inc/node",

@@ -12,3 +12,3 @@ "author": "WorkOS",

"volta": {
"node": "10.20.1",
"node": "10.22.0",
"yarn": "1.22.4"

@@ -38,16 +38,16 @@ },

"pluralize": "8.0.0",
"query-string": "6.12.1"
"query-string": "6.13.1"
},
"devDependencies": {
"@types/jest": "25.2.1",
"@types/node": "12.12.37",
"@types/jest": "26.0.8",
"@types/node": "12.12.53",
"@types/pluralize": "0.0.29",
"axios-mock-adapter": "1.18.1",
"jest": "25.5.2",
"axios-mock-adapter": "1.18.2",
"jest": "26.2.2",
"prettier": "2.0.5",
"supertest": "4.0.2",
"ts-jest": "25.4.0",
"tslint": "6.1.2",
"typescript": "3.8.3"
"ts-jest": "26.1.4",
"tslint": "6.1.3",
"typescript": "3.9.7"
}
}
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