Skip to content

Commit

Permalink
v4.0.3 (#953)
Browse files Browse the repository at this point in the history
## Description

Adds fix for serializing options on auto paginated list objects and
bumps patch version.

## Documentation

Does this require changes to the WorkOS Docs? E.g. the [API
Reference](https://workos.com/docs/reference) or code snippets need
updates.

```
[ ] Yes
```

If yes, link a related docs PR and add a docs maintainer as a reviewer.
Their approval is required.
  • Loading branch information
blairworkos authored Jan 25, 2024
1 parent 408f2b5 commit 5553cb4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.2",
"version": "4.0.3",
"name": "@workos-inc/node",
"author": "WorkOS",
"description": "A Node wrapper for the WorkOS API",
Expand Down
2 changes: 1 addition & 1 deletion src/directory-sync/directory-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class DirectorySync {
deserializeDirectory,
params,
),
options,
options ? serializeListDirectoriesOptions(options) : undefined,
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/sso/__snapshots__/sso.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ exports[`SSO SSO getProfileAndToken with all information provided sends a reques
"Accept": "application/json, text/plain, */*",
"Authorization": "Bearer sk_test_Sz3IQjepeSWaI4cMS4ms4sMuU",
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
"User-Agent": "workos-node/4.0.2",
"User-Agent": "workos-node/4.0.3",
}
`;

Expand Down Expand Up @@ -72,7 +72,7 @@ exports[`SSO SSO getProfileAndToken without a groups attribute sends a request t
"Accept": "application/json, text/plain, */*",
"Authorization": "Bearer sk_test_Sz3IQjepeSWaI4cMS4ms4sMuU",
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
"User-Agent": "workos-node/4.0.2",
"User-Agent": "workos-node/4.0.3",
}
`;

Expand Down
2 changes: 1 addition & 1 deletion src/sso/sso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class SSO {
deserializeConnection,
params,
),
options,
options ? serializeListConnectionsOptions(options) : undefined,
);
}
async deleteConnection(id: string) {
Expand Down
8 changes: 5 additions & 3 deletions src/user-management/user-management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class UserManagement {
deserializeUser,
params,
),
options,
options ? serializeListUsersOptions(options) : undefined,
);
}

Expand Down Expand Up @@ -400,7 +400,9 @@ export class UserManagement {
deserializeOrganizationMembership,
params,
),
options,
options
? serializeListOrganizationMembershipsOptions(options)
: undefined,
);
}

Expand Down Expand Up @@ -452,7 +454,7 @@ export class UserManagement {
deserializeInvitation,
params,
),
options,
options ? serializeListInvitationsOptions(options) : undefined,
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/workos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { AuditLogs } from './audit-logs/audit-logs';
import { UserManagement } from './user-management/user-management';
import { BadRequestException } from './common/exceptions/bad-request.exception';

const VERSION = '4.0.2';
const VERSION = '4.0.3';

const DEFAULT_HOSTNAME = 'api.workos.com';

Expand Down

0 comments on commit 5553cb4

Please sign in to comment.