@workos-inc/node 8.11.0 → 8.11.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.
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from "node:events";
1
+ import { EventEmitter } from "eventemitter3";
2
2
  //#region src/common/crypto/crypto-provider.ts
3
3
  /**
4
4
  * Interface encapsulating the various crypto computations used by the library,
@@ -3827,6 +3827,10 @@ var FeatureFlagsRuntimeClient = class extends EventEmitter {
3827
3827
  clearTimeout(timeoutId);
3828
3828
  });
3829
3829
  }
3830
+ emit(event, ...args) {
3831
+ if (event === "error" && this.listenerCount(event) === 0) throw args[0] instanceof Error ? args[0] : new Error(String(args[0]));
3832
+ return super.emit(event, ...args);
3833
+ }
3830
3834
  close() {
3831
3835
  this.closed = true;
3832
3836
  this.pollAbortController?.abort();
@@ -4676,7 +4680,7 @@ function extractBunVersionFromUserAgent() {
4676
4680
  }
4677
4681
  //#endregion
4678
4682
  //#region package.json
4679
- var version = "8.11.0";
4683
+ var version = "8.11.1";
4680
4684
  //#endregion
4681
4685
  //#region src/workos.ts
4682
4686
  const DEFAULT_HOSTNAME = "api.workos.com";
@@ -5056,4 +5060,4 @@ function createWorkOS(options) {
5056
5060
  //#endregion
5057
5061
  export { ApiKeyRequiredException as A, SignatureVerificationException as C, NoApiKeyProvidedException as D, NotFoundException as E, SubtleCryptoProvider as M, BadRequestException as O, UnauthorizedException as S, OauthException as T, AutoPaginatable as _, OrganizationDomainVerificationStrategy as a, Actions as b, FeatureFlagsRuntimeClient as c, CheckResult as d, CheckOp as f, AuthenticateWithSessionCookieFailureReason as g, serializeRevokeSessionOptions as h, OrganizationDomainState as i, FetchHttpClient as j, GenericServerException as k, WarrantOp as l, RefreshSessionFailureReason as m, ConnectionType as n, DomainDataState as o, CookieSession as p, GeneratePortalLinkIntent as r, WorkOS as s, createWorkOS as t, ResourceOp as u, PKCE as v, RateLimitExceededException as w, UnprocessableEntityException as x, Webhooks as y };
5058
5062
 
5059
- //# sourceMappingURL=factory-DA0LsbEO.mjs.map
5063
+ //# sourceMappingURL=factory-IqQiyE5J.mjs.map