@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.
- package/lib/{factory-CFeJhRhj.cjs → factory-BraleEZU.cjs} +8 -4
- package/lib/{factory-CFeJhRhj.cjs.map → factory-BraleEZU.cjs.map} +1 -1
- package/lib/{factory-DA0LsbEO.mjs → factory-IqQiyE5J.mjs} +7 -3
- package/lib/{factory-DA0LsbEO.mjs.map → factory-IqQiyE5J.mjs.map} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.mts +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.worker.cjs +1 -1
- package/lib/index.worker.d.cts +1 -1
- package/lib/index.worker.d.mts +1 -1
- package/lib/index.worker.mjs +1 -1
- package/lib/{workos-E9suUIQ6.d.cts → workos-COj1yMhR.d.cts} +3 -2
- package/lib/{workos-b8GMX7lL.d.mts → workos-DluXltJr.d.mts} +3 -2
- package/package.json +5 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let
|
|
1
|
+
let eventemitter3 = require("eventemitter3");
|
|
2
2
|
//#region src/common/crypto/crypto-provider.ts
|
|
3
3
|
/**
|
|
4
4
|
* Interface encapsulating the various crypto computations used by the library,
|
|
@@ -3774,7 +3774,7 @@ const JITTER_FACTOR = .1;
|
|
|
3774
3774
|
const INITIAL_RETRY_MS = 1e3;
|
|
3775
3775
|
const MAX_RETRY_MS = 6e4;
|
|
3776
3776
|
const BACKOFF_MULTIPLIER = 2;
|
|
3777
|
-
var FeatureFlagsRuntimeClient = class extends
|
|
3777
|
+
var FeatureFlagsRuntimeClient = class extends eventemitter3.EventEmitter {
|
|
3778
3778
|
store;
|
|
3779
3779
|
evaluator;
|
|
3780
3780
|
pollingIntervalMs;
|
|
@@ -3827,6 +3827,10 @@ var FeatureFlagsRuntimeClient = class extends node_events.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.
|
|
4683
|
+
var version = "8.11.1";
|
|
4680
4684
|
//#endregion
|
|
4681
4685
|
//#region src/workos.ts
|
|
4682
4686
|
const DEFAULT_HOSTNAME = "api.workos.com";
|
|
@@ -5247,4 +5251,4 @@ Object.defineProperty(exports, "serializeRevokeSessionOptions", {
|
|
|
5247
5251
|
}
|
|
5248
5252
|
});
|
|
5249
5253
|
|
|
5250
|
-
//# sourceMappingURL=factory-
|
|
5254
|
+
//# sourceMappingURL=factory-BraleEZU.cjs.map
|