@workos-inc/node 7.65.0 → 7.66.1

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.
@@ -53,7 +53,7 @@ class AutoPaginatable {
53
53
  yield yield __await(result.data);
54
54
  if (result.listMetadata.after) {
55
55
  // Delay of 4rps to respect list users rate limits
56
- yield __await(new Promise((resolve) => setTimeout(resolve, 250)));
56
+ yield __await(new Promise((resolve) => setTimeout(resolve, 350)));
57
57
  yield __await(yield* __asyncDelegator(__asyncValues(this.generatePages({ after: result.listMetadata.after }))));
58
58
  }
59
59
  });
@@ -78,7 +78,7 @@ class Organizations {
78
78
  listOrganizationFeatureFlags(options) {
79
79
  return __awaiter(this, void 0, void 0, function* () {
80
80
  const { organizationId } = options, paginationOptions = __rest(options, ["organizationId"]);
81
- return new pagination_1.AutoPaginatable(yield (0, fetch_and_deserialize_1.fetchAndDeserialize)(this.workos, `/organizations/${organizationId}/feature_flags`, feature_flag_serializer_1.deserializeFeatureFlag, paginationOptions), (params) => (0, fetch_and_deserialize_1.fetchAndDeserialize)(this.workos, `/organizations/${organizationId}/feature_flags`, feature_flag_serializer_1.deserializeFeatureFlag, params), paginationOptions);
81
+ return new pagination_1.AutoPaginatable(yield (0, fetch_and_deserialize_1.fetchAndDeserialize)(this.workos, `/organizations/${organizationId}/feature-flags`, feature_flag_serializer_1.deserializeFeatureFlag, paginationOptions), (params) => (0, fetch_and_deserialize_1.fetchAndDeserialize)(this.workos, `/organizations/${organizationId}/feature-flags`, feature_flag_serializer_1.deserializeFeatureFlag, params), paginationOptions);
82
82
  });
83
83
  }
84
84
  }
@@ -362,7 +362,7 @@ describe('Organizations', () => {
362
362
  const { data, object, listMetadata } = yield workos.organizations.listOrganizationFeatureFlags({
363
363
  organizationId: 'org_01EHT88Z8J8795GZNQ4ZP1J81T',
364
364
  });
365
- expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature_flags');
365
+ expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags');
366
366
  expect(object).toEqual('list');
367
367
  expect(listMetadata).toEqual({});
368
368
  expect(data).toHaveLength(3);
@@ -407,7 +407,7 @@ describe('Organizations', () => {
407
407
  before: 'flag_before_id',
408
408
  order: 'desc',
409
409
  });
410
- expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature_flags');
410
+ expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags');
411
411
  expect(data).toHaveLength(3);
412
412
  }));
413
413
  });
@@ -422,7 +422,7 @@ describe('Organizations', () => {
422
422
  after: 'flag_after_id',
423
423
  order: 'desc',
424
424
  });
425
- expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature_flags');
425
+ expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags');
426
426
  expect(data).toHaveLength(3);
427
427
  }));
428
428
  });
@@ -437,7 +437,7 @@ describe('Organizations', () => {
437
437
  limit: '10',
438
438
  order: 'desc',
439
439
  });
440
- expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature_flags');
440
+ expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags');
441
441
  expect(data).toHaveLength(3);
442
442
  }));
443
443
  });
package/lib/workos.js CHANGED
@@ -32,7 +32,7 @@ const actions_1 = require("./actions/actions");
32
32
  const vault_1 = require("./vault/vault");
33
33
  const conflict_exception_1 = require("./common/exceptions/conflict.exception");
34
34
  const parse_error_1 = require("./common/exceptions/parse-error");
35
- const VERSION = '7.65.0';
35
+ const VERSION = '7.66.1';
36
36
  const DEFAULT_HOSTNAME = 'api.workos.com';
37
37
  const HEADER_AUTHORIZATION = 'Authorization';
38
38
  const HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.65.0",
2
+ "version": "7.66.1",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",
@@ -9,7 +9,6 @@
9
9
  "workos"
10
10
  ],
11
11
  "volta": {
12
- "node": "19.9.0",
13
12
  "yarn": "1.22.19"
14
13
  },
15
14
  "engines": {