@workos-inc/node
Advanced tools
Comparing version 0.8.2 to 0.8.3
{ | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"name": "@workos-inc/node", | ||
@@ -42,12 +42,12 @@ "author": "WorkOS", | ||
"@types/jest": "26.0.15", | ||
"@types/node": "12.19.5", | ||
"@types/node": "12.19.6", | ||
"@types/pluralize": "0.0.29", | ||
"axios-mock-adapter": "1.19.0", | ||
"jest": "26.6.3", | ||
"prettier": "2.1.2", | ||
"prettier": "2.2.0", | ||
"supertest": "6.0.1", | ||
"ts-jest": "26.4.4", | ||
"tslint": "6.1.3", | ||
"typescript": "4.0.5" | ||
"typescript": "4.1.2" | ||
} | ||
} |
@@ -8,4 +8,4 @@ import { WorkOS } from '../workos'; | ||
constructor(workos: WorkOS); | ||
createSession(options: CreatePasswordlessSessionOptions): Promise<PasswordlessSession>; | ||
createSession({ redirectURI, ...options }: CreatePasswordlessSessionOptions): Promise<PasswordlessSession>; | ||
sendSession(sessionId: string): Promise<SendSessionResponse>; | ||
} |
@@ -11,2 +11,13 @@ "use strict"; | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -18,5 +29,6 @@ exports.Passwordless = void 0; | ||
} | ||
createSession(options) { | ||
createSession(_a) { | ||
var { redirectURI } = _a, options = __rest(_a, ["redirectURI"]); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const { data } = yield this.workos.post('/passwordless/sessions', options); | ||
const { data } = yield this.workos.post('/passwordless/sessions', Object.assign(Object.assign({}, options), { redirect_uri: redirectURI })); | ||
return data; | ||
@@ -23,0 +35,0 @@ }); |
{ | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"name": "@workos-inc/node", | ||
@@ -42,12 +42,12 @@ "author": "WorkOS", | ||
"@types/jest": "26.0.15", | ||
"@types/node": "12.19.5", | ||
"@types/node": "12.19.6", | ||
"@types/pluralize": "0.0.29", | ||
"axios-mock-adapter": "1.19.0", | ||
"jest": "26.6.3", | ||
"prettier": "2.1.2", | ||
"prettier": "2.2.0", | ||
"supertest": "6.0.1", | ||
"ts-jest": "26.4.4", | ||
"tslint": "6.1.3", | ||
"typescript": "4.0.5" | ||
"typescript": "4.1.2" | ||
} | ||
} |
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
46036
946