@workos-inc/node 3.2.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,5 +4,6 @@ exports.serializeUpdateUserOptions = void 0;
|
|
|
4
4
|
const serializeUpdateUserOptions = (options) => ({
|
|
5
5
|
first_name: options.firstName,
|
|
6
6
|
last_name: options.lastName,
|
|
7
|
+
email_verified_at: options.emailVerifiedAt,
|
|
7
8
|
});
|
|
8
9
|
exports.serializeUpdateUserOptions = serializeUpdateUserOptions;
|
package/lib/users/users.spec.js
CHANGED
|
@@ -335,11 +335,13 @@ describe('UserManagement', () => {
|
|
|
335
335
|
userId,
|
|
336
336
|
firstName: 'Dane',
|
|
337
337
|
lastName: 'Williams',
|
|
338
|
+
emailVerifiedAt: '2023-07-17T20:07:20.055Z',
|
|
338
339
|
});
|
|
339
340
|
expect(mock.history.put[0].url).toEqual(`/users/${userId}`);
|
|
340
341
|
expect(JSON.parse(mock.history.put[0].data)).toEqual({
|
|
341
342
|
first_name: 'Dane',
|
|
342
343
|
last_name: 'Williams',
|
|
344
|
+
email_verified_at: '2023-07-17T20:07:20.055Z',
|
|
343
345
|
});
|
|
344
346
|
expect(resp).toMatchObject({
|
|
345
347
|
email: 'test01@example.com',
|
package/lib/workos.js
CHANGED
|
@@ -27,7 +27,7 @@ const mfa_1 = require("./mfa/mfa");
|
|
|
27
27
|
const audit_logs_1 = require("./audit-logs/audit-logs");
|
|
28
28
|
const users_1 = require("./users/users");
|
|
29
29
|
const bad_request_exception_1 = require("./common/exceptions/bad-request.exception");
|
|
30
|
-
const VERSION = '3.
|
|
30
|
+
const VERSION = '3.3.0';
|
|
31
31
|
const DEFAULT_HOSTNAME = 'api.workos.com';
|
|
32
32
|
class WorkOS {
|
|
33
33
|
constructor(key, options = {}) {
|
package/package.json
CHANGED