@launchdarkly/js-sdk-common 2.31.0 → 2.32.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/CHANGELOG.md +22 -0
- package/dist/cjs/datasource/CompositeDataSource.d.ts.map +1 -1
- package/dist/cjs/index.cjs +97 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/internal/events/EventProcessor.d.ts.map +1 -1
- package/dist/cjs/internal/events/EventSender.d.ts.map +1 -1
- package/dist/cjs/internal/events/InputCustomEvent.d.ts +2 -2
- package/dist/cjs/internal/events/InputCustomEvent.d.ts.map +1 -1
- package/dist/cjs/internal/events/MultiEventSummarizer.d.ts.map +1 -1
- package/dist/cjs/internal/fdv2/payloadProcessor.d.ts.map +1 -1
- package/dist/cjs/internal/fdv2/payloadStreamReader.d.ts.map +1 -1
- package/dist/cjs/internal/fdv2/protocolHandler.d.ts.map +1 -1
- package/dist/cjs/internal/fetch/followRedirects.d.ts +34 -0
- package/dist/cjs/internal/fetch/followRedirects.d.ts.map +1 -0
- package/dist/cjs/internal/fetch/index.d.ts +1 -0
- package/dist/cjs/internal/fetch/index.d.ts.map +1 -1
- package/dist/cjs/logging/createSafeLogger.d.ts.map +1 -1
- package/dist/cjs/utils/debounce.d.ts +1 -1
- package/dist/cjs/utils/debounce.d.ts.map +1 -1
- package/dist/cjs/utils/deepCompact.d.ts +1 -1
- package/dist/cjs/utils/deepCompact.d.ts.map +1 -1
- package/dist/cjs/utils/http.d.ts.map +1 -1
- package/dist/cjs/utils/isEmptyObject.d.ts.map +1 -1
- package/dist/cjs/utils/sleep.d.ts.map +1 -1
- package/dist/cjs/utils/timedPromise.d.ts.map +1 -1
- package/dist/esm/AttributeReference.d.ts +1 -1
- package/dist/esm/Context.d.ts +2 -2
- package/dist/esm/ContextFilter.d.ts +2 -2
- package/dist/esm/api/context/LDContext.d.ts +3 -3
- package/dist/esm/api/context/LDContextCommon.d.ts +1 -1
- package/dist/esm/api/context/LDMultiKindContext.d.ts +1 -1
- package/dist/esm/api/context/LDSingleKindContext.d.ts +1 -1
- package/dist/esm/api/context/index.d.ts +6 -6
- package/dist/esm/api/data/LDEvaluationDetail.d.ts +2 -2
- package/dist/esm/api/data/LDFlagSet.d.ts +1 -1
- package/dist/esm/api/data/index.d.ts +4 -4
- package/dist/esm/api/index.d.ts +7 -7
- package/dist/esm/api/integrations/index.d.ts +1 -1
- package/dist/esm/api/logging/BasicLoggerOptions.d.ts +1 -1
- package/dist/esm/api/logging/index.d.ts +3 -3
- package/dist/esm/api/options/LDClientContext.d.ts +2 -2
- package/dist/esm/api/options/index.d.ts +1 -1
- package/dist/esm/api/platform/EventSource.d.ts +1 -1
- package/dist/esm/api/platform/Info.d.ts +1 -1
- package/dist/esm/api/platform/Platform.d.ts +6 -6
- package/dist/esm/api/platform/Requests.d.ts +1 -1
- package/dist/esm/api/platform/index.d.ts +9 -9
- package/dist/esm/api/subsystem/DataSystem/CallbackHandler.d.ts +1 -1
- package/dist/esm/api/subsystem/DataSystem/index.d.ts +1 -1
- package/dist/esm/api/subsystem/LDContextDeduplicator.d.ts +1 -1
- package/dist/esm/api/subsystem/LDEventProcessor.d.ts +1 -1
- package/dist/esm/api/subsystem/index.d.ts +5 -5
- package/dist/esm/datasource/CompositeDataSource.d.ts +3 -3
- package/dist/esm/datasource/CompositeDataSource.d.ts.map +1 -1
- package/dist/esm/datasource/errors.d.ts +1 -1
- package/dist/esm/datasource/index.d.ts +5 -5
- package/dist/esm/datasource/retry/RetryState.d.ts +3 -3
- package/dist/esm/datasource/retry/index.d.ts +2 -2
- package/dist/esm/index.d.ts +11 -11
- package/dist/esm/index.mjs +97 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/internal/context/index.d.ts +1 -1
- package/dist/esm/internal/diagnostics/DiagnosticsManager.d.ts +2 -2
- package/dist/esm/internal/diagnostics/index.d.ts +1 -1
- package/dist/esm/internal/evaluation/EventFactoryBase.d.ts +3 -3
- package/dist/esm/internal/evaluation/index.d.ts +2 -2
- package/dist/esm/internal/events/EventProcessor.d.ts +6 -6
- package/dist/esm/internal/events/EventProcessor.d.ts.map +1 -1
- package/dist/esm/internal/events/EventSender.d.ts +3 -3
- package/dist/esm/internal/events/EventSender.d.ts.map +1 -1
- package/dist/esm/internal/events/InputClickEvent.d.ts +1 -1
- package/dist/esm/internal/events/InputCustomEvent.d.ts +3 -3
- package/dist/esm/internal/events/InputCustomEvent.d.ts.map +1 -1
- package/dist/esm/internal/events/InputEvalEvent.d.ts +2 -2
- package/dist/esm/internal/events/InputEvent.d.ts +6 -6
- package/dist/esm/internal/events/InputEventBase.d.ts +1 -1
- package/dist/esm/internal/events/InputIdentifyEvent.d.ts +1 -1
- package/dist/esm/internal/events/InputMigrationEvent.d.ts +1 -1
- package/dist/esm/internal/events/InputPageViewEvent.d.ts +1 -1
- package/dist/esm/internal/events/LDEventSummarizer.d.ts +1 -1
- package/dist/esm/internal/events/MultiEventSummarizer.d.ts +4 -4
- package/dist/esm/internal/events/MultiEventSummarizer.d.ts.map +1 -1
- package/dist/esm/internal/events/NullEventProcessor.d.ts +1 -1
- package/dist/esm/internal/events/guards.d.ts +4 -4
- package/dist/esm/internal/events/index.d.ts +10 -10
- package/dist/esm/internal/fdv2/FDv1PayloadAdaptor.d.ts +1 -1
- package/dist/esm/internal/fdv2/index.d.ts +8 -8
- package/dist/esm/internal/fdv2/payloadProcessor.d.ts +4 -4
- package/dist/esm/internal/fdv2/payloadProcessor.d.ts.map +1 -1
- package/dist/esm/internal/fdv2/payloadStreamReader.d.ts +3 -3
- package/dist/esm/internal/fdv2/payloadStreamReader.d.ts.map +1 -1
- package/dist/esm/internal/fdv2/protocolHandler.d.ts +2 -2
- package/dist/esm/internal/fdv2/protocolHandler.d.ts.map +1 -1
- package/dist/esm/internal/fetch/StreamingResponse.d.ts +1 -1
- package/dist/esm/internal/fetch/followRedirects.d.ts +34 -0
- package/dist/esm/internal/fetch/followRedirects.d.ts.map +1 -0
- package/dist/esm/internal/fetch/index.d.ts +3 -2
- package/dist/esm/internal/fetch/index.d.ts.map +1 -1
- package/dist/esm/internal/fetch/toRequestInit.d.ts +1 -1
- package/dist/esm/internal/index.d.ts +9 -9
- package/dist/esm/internal/json/index.d.ts +1 -1
- package/dist/esm/internal/metadata/index.d.ts +1 -1
- package/dist/esm/internal/plugins/index.d.ts +3 -3
- package/dist/esm/internal/plugins/safeGetHooks.d.ts +2 -2
- package/dist/esm/internal/plugins/safeGetName.d.ts +2 -2
- package/dist/esm/internal/plugins/safeRegisterPlugins.d.ts +2 -2
- package/dist/esm/logging/BasicLogger.d.ts +1 -1
- package/dist/esm/logging/SafeLogger.d.ts +1 -1
- package/dist/esm/logging/createSafeLogger.d.ts +3 -3
- package/dist/esm/logging/createSafeLogger.d.ts.map +1 -1
- package/dist/esm/logging/index.d.ts +3 -3
- package/dist/esm/options/ApplicationTags.d.ts +1 -1
- package/dist/esm/options/ClientContext.d.ts +3 -3
- package/dist/esm/options/index.d.ts +4 -4
- package/dist/esm/utils/cancelableTimedPromise.d.ts +1 -1
- package/dist/esm/utils/debounce.d.ts +1 -1
- package/dist/esm/utils/debounce.d.ts.map +1 -1
- package/dist/esm/utils/deepCompact.d.ts +1 -1
- package/dist/esm/utils/deepCompact.d.ts.map +1 -1
- package/dist/esm/utils/http.d.ts +2 -2
- package/dist/esm/utils/http.d.ts.map +1 -1
- package/dist/esm/utils/index.d.ts +12 -12
- package/dist/esm/utils/isEmptyObject.d.ts.map +1 -1
- package/dist/esm/utils/sleep.d.ts.map +1 -1
- package/dist/esm/utils/timedPromise.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import Context from '../../Context';
|
|
1
|
+
import Context from '../../Context.js';
|
|
2
2
|
export default class InputCustomEvent {
|
|
3
3
|
readonly context: Context;
|
|
4
4
|
readonly key: string;
|
|
5
|
-
readonly data?: any;
|
|
5
|
+
readonly data?: any | undefined;
|
|
6
6
|
readonly metricValue?: number | undefined;
|
|
7
7
|
readonly samplingRatio: number;
|
|
8
8
|
readonly url?: string | undefined;
|
|
9
9
|
readonly kind = "custom";
|
|
10
10
|
readonly creationDate: number;
|
|
11
|
-
constructor(context: Context, key: string, data?: any, metricValue?: number | undefined, samplingRatio?: number, url?: string | undefined);
|
|
11
|
+
constructor(context: Context, key: string, data?: any | undefined, metricValue?: number | undefined, samplingRatio?: number, url?: string | undefined);
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=InputCustomEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputCustomEvent.d.ts","sourceRoot":"","sources":["../../../src/internal/events/InputCustomEvent.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,gBAAgB;aAMjB,OAAO,EAAE,OAAO;aAChB,GAAG,EAAE,MAAM;aACX,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"InputCustomEvent.d.ts","sourceRoot":"","sources":["../../../src/internal/events/InputCustomEvent.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,gBAAgB;aAMjB,OAAO,EAAE,OAAO;aAChB,GAAG,EAAE,MAAM;aACX,IAAI,CAAC,EAAE,GAAG;aACV,WAAW,CAAC,EAAE,MAAM;aAGpB,aAAa,EAAE,MAAM;aAErB,GAAG,CAAC,EAAE,MAAM;IAb9B,SAAgB,IAAI,YAAY;IAEhC,SAAgB,YAAY,EAAE,MAAM,CAAC;gBAGnB,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,GAAG,YAAA,EACV,WAAW,CAAC,EAAE,MAAM,YAAA,EAGpB,aAAa,GAAE,MAAU,EAEzB,GAAG,CAAC,EAAE,MAAM,YAAA;CAK/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LDEvaluationReason, LDFlagValue } from '../../api/data';
|
|
2
|
-
import Context from '../../Context';
|
|
1
|
+
import { LDEvaluationReason, LDFlagValue } from '../../api/data/index.js';
|
|
2
|
+
import Context from '../../Context.js';
|
|
3
3
|
export default class InputEvalEvent {
|
|
4
4
|
readonly withReasons: boolean;
|
|
5
5
|
readonly context: Context;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import InputClickEvent from './InputClickEvent';
|
|
2
|
-
import InputCustomEvent from './InputCustomEvent';
|
|
3
|
-
import InputEvalEvent from './InputEvalEvent';
|
|
4
|
-
import InputIdentifyEvent from './InputIdentifyEvent';
|
|
5
|
-
import InputMigrationEvent from './InputMigrationEvent';
|
|
6
|
-
import InputPageViewEvent from './InputPageViewEvent';
|
|
1
|
+
import InputClickEvent from './InputClickEvent.js';
|
|
2
|
+
import InputCustomEvent from './InputCustomEvent.js';
|
|
3
|
+
import InputEvalEvent from './InputEvalEvent.js';
|
|
4
|
+
import InputIdentifyEvent from './InputIdentifyEvent.js';
|
|
5
|
+
import InputMigrationEvent from './InputMigrationEvent.js';
|
|
6
|
+
import InputPageViewEvent from './InputPageViewEvent.js';
|
|
7
7
|
type InputEvent = InputEvalEvent | InputCustomEvent | InputIdentifyEvent | InputMigrationEvent | InputClickEvent | InputPageViewEvent;
|
|
8
8
|
export default InputEvent;
|
|
9
9
|
//# sourceMappingURL=InputEvent.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LDLogger } from '../../api';
|
|
2
|
-
import ContextFilter from '../../ContextFilter';
|
|
3
|
-
import InputEvent from './InputEvent';
|
|
4
|
-
import { LDMultiEventSummarizer, SummarizedFlagsEvent } from './LDEventSummarizer';
|
|
1
|
+
import { LDLogger } from '../../api/index.js';
|
|
2
|
+
import ContextFilter from '../../ContextFilter.js';
|
|
3
|
+
import InputEvent from './InputEvent.js';
|
|
4
|
+
import { LDMultiEventSummarizer, SummarizedFlagsEvent } from './LDEventSummarizer.js';
|
|
5
5
|
export default class MultiEventSummarizer implements LDMultiEventSummarizer {
|
|
6
6
|
private readonly _contextFilter;
|
|
7
7
|
private readonly _logger?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiEventSummarizer.d.ts","sourceRoot":"","sources":["../../../src/internal/events/MultiEventSummarizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAGhD,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEnF,MAAM,CAAC,OAAO,OAAO,oBAAqB,YAAW,sBAAsB;IAEvE,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;gBADR,cAAc,EAAE,aAAa,EAC7B,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"MultiEventSummarizer.d.ts","sourceRoot":"","sources":["../../../src/internal/events/MultiEventSummarizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAGhD,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEnF,MAAM,CAAC,OAAO,OAAO,oBAAqB,YAAW,sBAAsB;IAEvE,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;gBADR,cAAc,EAAE,aAAa,EAC7B,OAAO,CAAC,EAAE,QAAQ,YAAA;IAErC,OAAO,CAAC,YAAY,CAAuC;IAE3D,cAAc,CAAC,KAAK,EAAE,UAAU;IAsBhC,YAAY,IAAI,oBAAoB,EAAE;CAKvC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import InputCustomEvent from './InputCustomEvent';
|
|
2
|
-
import InputEvalEvent from './InputEvalEvent';
|
|
3
|
-
import InputIdentifyEvent from './InputIdentifyEvent';
|
|
4
|
-
import InputMigrationEvent from './InputMigrationEvent';
|
|
1
|
+
import InputCustomEvent from './InputCustomEvent.js';
|
|
2
|
+
import InputEvalEvent from './InputEvalEvent.js';
|
|
3
|
+
import InputIdentifyEvent from './InputIdentifyEvent.js';
|
|
4
|
+
import InputMigrationEvent from './InputMigrationEvent.js';
|
|
5
5
|
export declare function isFeature(u: any): u is InputEvalEvent;
|
|
6
6
|
export declare function isCustom(u: any): u is InputCustomEvent;
|
|
7
7
|
export declare function isIdentify(u: any): u is InputIdentifyEvent;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import ClientMessages from './ClientMessages';
|
|
2
|
-
import EventProcessor, { EventProcessorOptions } from './EventProcessor';
|
|
3
|
-
import InputCustomEvent from './InputCustomEvent';
|
|
4
|
-
import InputEvalEvent from './InputEvalEvent';
|
|
5
|
-
import InputEvent from './InputEvent';
|
|
6
|
-
import InputIdentifyEvent from './InputIdentifyEvent';
|
|
7
|
-
import InputMigrationEvent from './InputMigrationEvent';
|
|
8
|
-
import type { LDInternalOptions } from './LDInternalOptions';
|
|
9
|
-
import NullEventProcessor from './NullEventProcessor';
|
|
10
|
-
import shouldSample from './sampling';
|
|
1
|
+
import ClientMessages from './ClientMessages.js';
|
|
2
|
+
import EventProcessor, { EventProcessorOptions } from './EventProcessor.js';
|
|
3
|
+
import InputCustomEvent from './InputCustomEvent.js';
|
|
4
|
+
import InputEvalEvent from './InputEvalEvent.js';
|
|
5
|
+
import InputEvent from './InputEvent.js';
|
|
6
|
+
import InputIdentifyEvent from './InputIdentifyEvent.js';
|
|
7
|
+
import InputMigrationEvent from './InputMigrationEvent.js';
|
|
8
|
+
import type { LDInternalOptions } from './LDInternalOptions.js';
|
|
9
|
+
import NullEventProcessor from './NullEventProcessor.js';
|
|
10
|
+
import shouldSample from './sampling.js';
|
|
11
11
|
export { ClientMessages, InputCustomEvent, InputEvalEvent, InputEvent, InputIdentifyEvent, InputMigrationEvent, EventProcessor, EventProcessorOptions, shouldSample, NullEventProcessor, LDInternalOptions, };
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { readFallbackDirective, readGoodbyeFallbackDirective } from './fallbackDirective';
|
|
2
|
-
import type { FallbackDirective } from './fallbackDirective';
|
|
3
|
-
import { fdv1PayloadAdaptor as FDv1PayloadAdaptor } from './FDv1PayloadAdaptor';
|
|
4
|
-
import { PayloadProcessor } from './payloadProcessor';
|
|
5
|
-
import { PayloadStreamReader } from './payloadStreamReader';
|
|
6
|
-
import type { FDv2Event, FDv2EventsCollection } from './proto';
|
|
7
|
-
import { createProtocolHandler } from './protocolHandler';
|
|
8
|
-
import type { ObjProcessors, Payload, PayloadListener, PayloadType, ProtocolAction, ProtocolErrorKind, ProtocolHandler, ProtocolState, Update } from './protocolHandler';
|
|
1
|
+
import { readFallbackDirective, readGoodbyeFallbackDirective } from './fallbackDirective.js';
|
|
2
|
+
import type { FallbackDirective } from './fallbackDirective.js';
|
|
3
|
+
import { fdv1PayloadAdaptor as FDv1PayloadAdaptor } from './FDv1PayloadAdaptor.js';
|
|
4
|
+
import { PayloadProcessor } from './payloadProcessor.js';
|
|
5
|
+
import { PayloadStreamReader } from './payloadStreamReader.js';
|
|
6
|
+
import type { FDv2Event, FDv2EventsCollection } from './proto.js';
|
|
7
|
+
import { createProtocolHandler } from './protocolHandler.js';
|
|
8
|
+
import type { ObjProcessors, Payload, PayloadListener, PayloadType, ProtocolAction, ProtocolErrorKind, ProtocolHandler, ProtocolState, Update } from './protocolHandler.js';
|
|
9
9
|
export { createProtocolHandler, FDv1PayloadAdaptor, PayloadProcessor, PayloadStreamReader, readFallbackDirective, readGoodbyeFallbackDirective, };
|
|
10
10
|
export type { FallbackDirective, FDv2Event, FDv2EventsCollection, ObjProcessors, Payload, PayloadListener, PayloadType, ProtocolAction, ProtocolErrorKind, ProtocolHandler, ProtocolState, Update, };
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LDLogger } from '../../api';
|
|
2
|
-
import { DataSourceErrorKind } from '../../datasource';
|
|
3
|
-
import { FDv2Event } from './proto';
|
|
4
|
-
import { ObjProcessors, PayloadListener } from './protocolHandler';
|
|
1
|
+
import { LDLogger } from '../../api/index.js';
|
|
2
|
+
import { DataSourceErrorKind } from '../../datasource/index.js';
|
|
3
|
+
import { FDv2Event } from './proto.js';
|
|
4
|
+
import { ObjProcessors, PayloadListener } from './protocolHandler.js';
|
|
5
5
|
/**
|
|
6
6
|
* Parses payloads from a stream of FDv2 events by delegating to a protocol handler.
|
|
7
7
|
* Sends completed payloads to registered listeners.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payloadProcessor.d.ts","sourceRoot":"","sources":["../../../src/internal/fdv2/payloadProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAEL,aAAa,EACb,eAAe,EAEhB,MAAM,mBAAmB,CAAC;AAY3B;;;;GAIG;AACH,qBAAa,gBAAgB;IAMzB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IAN3B,OAAO,CAAC,UAAU,CAAyB;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBAGxB,aAAa,EAAE,aAAa,EACX,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"payloadProcessor.d.ts","sourceRoot":"","sources":["../../../src/internal/fdv2/payloadProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAEL,aAAa,EACb,eAAe,EAEhB,MAAM,mBAAmB,CAAC;AAY3B;;;;GAIG;AACH,qBAAa,gBAAgB;IAMzB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IAN3B,OAAO,CAAC,UAAU,CAAyB;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBAGxB,aAAa,EAAE,aAAa,EACX,aAAa,CAAC,GAAE,CAAC,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,aAAA,EACzE,OAAO,CAAC,EAAE,QAAQ,YAAA;IAKrC,kBAAkB,CAAC,QAAQ,EAAE,eAAe;IAI5C,qBAAqB,CAAC,QAAQ,EAAE,eAAe;IAO/C,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE;CAmBlC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventListener, EventName, LDLogger } from '../../api';
|
|
2
|
-
import { DataSourceErrorKind } from '../../datasource';
|
|
3
|
-
import { ObjProcessors, PayloadListener } from './protocolHandler';
|
|
1
|
+
import { EventListener, EventName, LDLogger } from '../../api/index.js';
|
|
2
|
+
import { DataSourceErrorKind } from '../../datasource/index.js';
|
|
3
|
+
import { ObjProcessors, PayloadListener } from './protocolHandler.js';
|
|
4
4
|
/**
|
|
5
5
|
* Interface for an event stream. Only allows listening to events.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payloadStreamReader.d.ts","sourceRoot":"","sources":["../../../src/internal/fdv2/payloadStreamReader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,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EAAE,QAAQ,YAAA;IAWrC,kBAAkB,CAAC,QAAQ,EAAE,eAAe;IAI5C,qBAAqB,CAAC,QAAQ,EAAE,eAAe;IAI/C,OAAO,CAAC,cAAc;CAuBvB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LDLogger } from '../../api';
|
|
2
|
-
import { FDv2Event } from './proto';
|
|
1
|
+
import { LDLogger } from '../../api/index.js';
|
|
2
|
+
import { FDv2Event } from './proto.js';
|
|
3
3
|
/**
|
|
4
4
|
* Defines object processing between deserialization and payload emission.
|
|
5
5
|
* Can be used to provide object sanitization logic per kind.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocolHandler.d.ts","sourceRoot":"","sources":["../../../src/internal/fdv2/protocolHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EAEL,SAAS,EAKV,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;CACtC;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AAEzD;;;;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KAAK,IAAI,IAAI,CAAC;CACf;AAED,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,aAAa,EAC5B,MAAM,CAAC,EAAE,QAAQ,GAChB,eAAe,CA+NjB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Response, ResponseBody } from '../../api/platform/Requests';
|
|
1
|
+
import type { Response, ResponseBody } from '../../api/platform/Requests.js';
|
|
2
2
|
/**
|
|
3
3
|
* The shape of raw HTTP headers: names mapped to a value, a list of values, or no value.
|
|
4
4
|
* A Node `IncomingHttpHeaders` object satisfies this shape.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { RawHeaders } from './StreamingResponse.js';
|
|
2
|
+
/**
|
|
3
|
+
* The most redirect hops one streaming request follows. When a chain exceeds the cap, the last
|
|
4
|
+
* redirect response goes to the caller as an ordinary non-200 response. The caller's error
|
|
5
|
+
* handling decides whether to retry.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MAX_STREAMING_REDIRECT_HOPS = 5;
|
|
8
|
+
/**
|
|
9
|
+
* The response shape the redirect loop inspects. A Node `IncomingMessage` satisfies it.
|
|
10
|
+
*/
|
|
11
|
+
export interface RedirectResponseSource {
|
|
12
|
+
statusCode?: number;
|
|
13
|
+
headers: RawHeaders;
|
|
14
|
+
/**
|
|
15
|
+
* Destroys the stream, so a followed redirect response releases its connection at once. A
|
|
16
|
+
* source without it leaves the skipped body to the socket teardown.
|
|
17
|
+
*/
|
|
18
|
+
destroy?(): unknown;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Issues a streaming request and follows up to {@link MAX_STREAMING_REDIRECT_HOPS} hops of
|
|
22
|
+
* `301` and `307` redirects. Each hop calls `doRequest` again with the target URL, so the
|
|
23
|
+
* request carries the same method, body, and headers to each target, the `Authorization`
|
|
24
|
+
* header included. A `302` and every other status return to the caller unfollowed.
|
|
25
|
+
*
|
|
26
|
+
* The loop holds no state across calls. A reconnect starts from the original URL again and
|
|
27
|
+
* re-follows the chain.
|
|
28
|
+
*
|
|
29
|
+
* @param url The URL of the initial request.
|
|
30
|
+
* @param doRequest Issues one request and resolves with its response. The caller builds the
|
|
31
|
+
* options inside it from the given URL, so each hop gets options for its own target.
|
|
32
|
+
*/
|
|
33
|
+
export declare function followStreamingRedirects<T extends RedirectResponseSource>(url: string, doRequest: (requestUrl: string) => Promise<T>): Promise<T>;
|
|
34
|
+
//# sourceMappingURL=followRedirects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"followRedirects.d.ts","sourceRoot":"","sources":["../../../src/internal/fetch/followRedirects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC;CACrB;AAyBD;;;;;;;;;;;;GAYG;AACH,wBAAsB,wBAAwB,CAAC,CAAC,SAAS,sBAAsB,EAC7E,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAC5C,OAAO,CAAC,CAAC,CAAC,CAuBZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/fetch/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/fetch/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Options } from '../../api/platform/Requests';
|
|
1
|
+
import { Options } from '../../api/platform/Requests.js';
|
|
2
2
|
/**
|
|
3
3
|
* Converts the request options into the init shape a platform's native `fetch` accepts. A
|
|
4
4
|
* platform can declare its `AbortSignal` as a lexical class, which `AbortSignalLike`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './context';
|
|
2
|
-
export * from './diagnostics';
|
|
3
|
-
export * from './evaluation';
|
|
4
|
-
export * from './events';
|
|
5
|
-
export * from './fdv2';
|
|
6
|
-
export * from './fetch';
|
|
7
|
-
export * from './metadata';
|
|
8
|
-
export * from './plugins';
|
|
9
|
-
export * from './json';
|
|
1
|
+
export * from './context/index.js';
|
|
2
|
+
export * from './diagnostics/index.js';
|
|
3
|
+
export * from './evaluation/index.js';
|
|
4
|
+
export * from './events/index.js';
|
|
5
|
+
export * from './fdv2/index.js';
|
|
6
|
+
export * from './fetch/index.js';
|
|
7
|
+
export * from './metadata/index.js';
|
|
8
|
+
export * from './plugins/index.js';
|
|
9
|
+
export * from './json/index.js';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './canonicalize';
|
|
1
|
+
export * from './canonicalize.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './safeGetHooks';
|
|
2
|
-
export * from './safeGetName';
|
|
3
|
-
export * from './safeRegisterPlugins';
|
|
1
|
+
export * from './safeGetHooks.js';
|
|
2
|
+
export * from './safeGetName.js';
|
|
3
|
+
export * from './safeRegisterPlugins.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LDPluginBase, LDPluginEnvironmentMetadata } from '../../api/integrations/plugins';
|
|
2
|
-
import { LDLogger } from '../../api/logging/LDLogger';
|
|
1
|
+
import { LDPluginBase, LDPluginEnvironmentMetadata } from '../../api/integrations/plugins.js';
|
|
2
|
+
import { LDLogger } from '../../api/logging/LDLogger.js';
|
|
3
3
|
export declare function safeGetHooks<TClient, THook>(logger: LDLogger, environmentMetadata: LDPluginEnvironmentMetadata, plugins: LDPluginBase<TClient, THook>[]): THook[];
|
|
4
4
|
//# sourceMappingURL=safeGetHooks.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LDPluginBase } from '../../api/integrations/plugins';
|
|
2
|
-
import { LDLogger } from '../../api/logging/LDLogger';
|
|
1
|
+
import { LDPluginBase } from '../../api/integrations/plugins.js';
|
|
2
|
+
import { LDLogger } from '../../api/logging/LDLogger.js';
|
|
3
3
|
export declare function safeGetName<TClient, THook>(logger: LDLogger, plugin: LDPluginBase<TClient, THook>): string;
|
|
4
4
|
//# sourceMappingURL=safeGetName.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LDPluginBase, LDPluginEnvironmentMetadata } from '../../api/integrations/plugins';
|
|
2
|
-
import { LDLogger } from '../../api/logging/LDLogger';
|
|
1
|
+
import { LDPluginBase, LDPluginEnvironmentMetadata } from '../../api/integrations/plugins.js';
|
|
2
|
+
import { LDLogger } from '../../api/logging/LDLogger.js';
|
|
3
3
|
export declare function safeRegisterPlugins<TClient, THook>(logger: LDLogger, environmentMetadata: LDPluginEnvironmentMetadata, client: TClient, plugins: LDPluginBase<TClient, THook>[]): void;
|
|
4
4
|
//# sourceMappingURL=safeRegisterPlugins.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LDLogger } from '../api';
|
|
1
|
+
import type { LDLogger } from '../api/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* The safeLogger logic exists because we allow the application to pass in a custom logger, but
|
|
4
4
|
* there is no guarantee that the logger works correctly and if it ever throws exceptions there
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LDLogger } from '../api';
|
|
2
|
-
import BasicLogger from './BasicLogger';
|
|
3
|
-
import SafeLogger from './SafeLogger';
|
|
1
|
+
import { LDLogger } from '../api/index.js';
|
|
2
|
+
import BasicLogger from './BasicLogger.js';
|
|
3
|
+
import SafeLogger from './SafeLogger.js';
|
|
4
4
|
declare const createSafeLogger: (logger?: LDLogger) => BasicLogger | SafeLogger;
|
|
5
5
|
export default createSafeLogger;
|
|
6
6
|
//# sourceMappingURL=createSafeLogger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSafeLogger.d.ts","sourceRoot":"","sources":["../../src/logging/createSafeLogger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"createSafeLogger.d.ts","sourceRoot":"","sources":["../../src/logging/createSafeLogger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,gBAAgB,GAAI,SAAS,QAAQ,6BAQ1C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BasicLogger from './BasicLogger';
|
|
2
|
-
import createSafeLogger from './createSafeLogger';
|
|
3
|
-
import SafeLogger from './SafeLogger';
|
|
1
|
+
import BasicLogger from './BasicLogger.js';
|
|
2
|
+
import createSafeLogger from './createSafeLogger.js';
|
|
3
|
+
import SafeLogger from './SafeLogger.js';
|
|
4
4
|
export { BasicLogger, SafeLogger, createSafeLogger };
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LDClientContext, LDLogger, Platform } from '../api';
|
|
2
|
-
import ApplicationTags from './ApplicationTags';
|
|
3
|
-
import ServiceEndpoints from './ServiceEndpoints';
|
|
1
|
+
import { LDClientContext, LDLogger, Platform } from '../api/index.js';
|
|
2
|
+
import ApplicationTags from './ApplicationTags.js';
|
|
3
|
+
import ServiceEndpoints from './ServiceEndpoints.js';
|
|
4
4
|
/**
|
|
5
5
|
* Basic configuration applicable to many SDK components for both server and
|
|
6
6
|
* client SDKs.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ApplicationTags from './ApplicationTags';
|
|
2
|
-
import ClientContext from './ClientContext';
|
|
3
|
-
import OptionMessages from './OptionMessages';
|
|
4
|
-
import ServiceEndpoints, { getEventsUri, getPollingUri, getStreamingUri } from './ServiceEndpoints';
|
|
1
|
+
import ApplicationTags from './ApplicationTags.js';
|
|
2
|
+
import ClientContext from './ClientContext.js';
|
|
3
|
+
import OptionMessages from './OptionMessages.js';
|
|
4
|
+
import ServiceEndpoints, { getEventsUri, getPollingUri, getStreamingUri } from './ServiceEndpoints.js';
|
|
5
5
|
export { ApplicationTags, OptionMessages, ServiceEndpoints, ClientContext, getStreamingUri, getPollingUri, getEventsUri, };
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
* @param fn The function to be debounced.
|
|
19
19
|
* @param delayMs Defaults to 5 seconds.
|
|
20
20
|
*/
|
|
21
|
-
declare const debounce: <T extends (...args: any[]) => ReturnType<T>>(fn: T, delayMs?: number) => (...args: Parameters<T>) => void;
|
|
21
|
+
declare const debounce: <T extends (...args: any[]) => ReturnType<T>>(fn: T, delayMs?: number) => ((...args: Parameters<T>) => void);
|
|
22
22
|
export default debounce;
|
|
23
23
|
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../src/utils/debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../src/utils/debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,QAAQ,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,CAAC,CAAC,EAC3D,IAAI,CAAC,EACL,UAAS,MAAa,KACrB,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CASnC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* @param obj
|
|
7
7
|
* @param ignoreKeys
|
|
8
8
|
*/
|
|
9
|
-
declare const deepCompact: <T extends object>(obj?: T
|
|
9
|
+
declare const deepCompact: <T extends object>(obj?: T, ignoreKeys?: string[]) => T | undefined;
|
|
10
10
|
export default deepCompact;
|
|
11
11
|
//# sourceMappingURL=deepCompact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepCompact.d.ts","sourceRoot":"","sources":["../../src/utils/deepCompact.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"deepCompact.d.ts","sourceRoot":"","sources":["../../src/utils/deepCompact.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,MAAM,EAAE,kBAWpE,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/esm/utils/http.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Encoding, HttpErrorResponse, Info } from '../api';
|
|
2
|
-
import { ApplicationTags } from '../options';
|
|
1
|
+
import { Encoding, HttpErrorResponse, Info } from '../api/index.js';
|
|
2
|
+
import { ApplicationTags } from '../options/index.js';
|
|
3
3
|
export type LDHeaders = {
|
|
4
4
|
authorization?: string;
|
|
5
5
|
'user-agent'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/utils/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC,CAAC;AAEF,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,IAAI,CAAC,EAAE,eAAe,EACtB,0BAA0B,GAAE,OAAc,EAC1C,mBAAmB,GAAE,YAAY,GAAG,2BAA0C,EAC9E,UAAU,CAAC,EAAE,MAAM,GAClB,SAAS,CAiCX;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,iBAAiB,EACtB,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GACpB,MAAM,CASR;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,WAExD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/utils/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC,CAAC;AAEF,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,IAAI,CAAC,EAAE,eAAe,EACtB,0BAA0B,GAAE,OAAc,EAC1C,mBAAmB,GAAE,YAAY,GAAG,2BAA0C,EAC9E,UAAU,CAAC,EAAE,MAAM,GAClB,SAAS,CAiCX;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,iBAAiB,EACtB,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GACpB,MAAM,CASR;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,WAExD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,EAAE,UAAU,QAAQ,KAAG,MACa,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { cancelableTimedPromise, type CancelableTimeout } from './cancelableTimedPromise';
|
|
2
|
-
import clone from './clone';
|
|
3
|
-
import { secondsToMillis } from './date';
|
|
4
|
-
import debounce from './debounce';
|
|
5
|
-
import deepCompact from './deepCompact';
|
|
6
|
-
import fastDeepEqual from './fast-deep-equal';
|
|
7
|
-
import { base64UrlEncode, defaultHeaders, httpErrorMessage, LDHeaders, shouldRetry } from './http';
|
|
8
|
-
import noop from './noop';
|
|
9
|
-
import sleep from './sleep';
|
|
10
|
-
import { monotonicNow } from './time';
|
|
11
|
-
import timedPromise from './timedPromise';
|
|
12
|
-
import { VoidFunction } from './VoidFunction';
|
|
1
|
+
import { cancelableTimedPromise, type CancelableTimeout } from './cancelableTimedPromise.js';
|
|
2
|
+
import clone from './clone.js';
|
|
3
|
+
import { secondsToMillis } from './date.js';
|
|
4
|
+
import debounce from './debounce.js';
|
|
5
|
+
import deepCompact from './deepCompact.js';
|
|
6
|
+
import fastDeepEqual from './fast-deep-equal/index.js';
|
|
7
|
+
import { base64UrlEncode, defaultHeaders, httpErrorMessage, LDHeaders, shouldRetry } from './http.js';
|
|
8
|
+
import noop from './noop.js';
|
|
9
|
+
import sleep from './sleep.js';
|
|
10
|
+
import { monotonicNow } from './time.js';
|
|
11
|
+
import timedPromise from './timedPromise.js';
|
|
12
|
+
import { VoidFunction } from './VoidFunction.js';
|
|
13
13
|
export { base64UrlEncode, clone, debounce, deepCompact, defaultHeaders, fastDeepEqual, httpErrorMessage, monotonicNow, noop, LDHeaders, shouldRetry, secondsToMillis, sleep, timedPromise, VoidFunction, type CancelableTimeout, cancelableTimedPromise, };
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isEmptyObject.d.ts","sourceRoot":"","sources":["../../src/utils/isEmptyObject.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"isEmptyObject.d.ts","sourceRoot":"","sources":["../../src/utils/isEmptyObject.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,GAAI,KAAK,GAAG,YAAiC,CAAC;AAEjE,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../src/utils/sleep.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../src/utils/sleep.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK,GAAU,cAAa,MAAa,qBAG3C,CAAC;AAEL,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timedPromise.d.ts","sourceRoot":"","sources":["../../src/utils/timedPromise.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"timedPromise.d.ts","sourceRoot":"","sources":["../../src/utils/timedPromise.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,QAAA,MAAM,YAAY,GAAI,GAAG,MAAM,EAAE,UAAU,MAAM,kBAM7C,CAAC;AAEL,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@launchdarkly/js-sdk-common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/index.mjs",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"make-cjs-package-json": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
34
34
|
"make-esm-package-json": "echo '{\"type\":\"module\"}' > dist/esm/package.json",
|
|
35
35
|
"make-package-jsons": "npm run make-cjs-package-json && npm run make-esm-package-json",
|
|
36
|
-
"build": "npx tsc --noEmit && rollup -c rollup.config.js && npm run make-package-jsons",
|
|
36
|
+
"build": "npx tsc --noEmit && rollup -c rollup.config.js && node ../../../scripts/add-esm-declaration-extensions.js dist/esm && npm run make-package-jsons",
|
|
37
37
|
"clean": "rimraf dist",
|
|
38
38
|
"lint": "oxlint .",
|
|
39
39
|
"lint:fix": "yarn run lint --fix",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"rollup": "^3.23.0",
|
|
55
55
|
"ts-jest": "^29.0.5",
|
|
56
56
|
"tslib": "^2.7.0",
|
|
57
|
-
"typedoc": "0.
|
|
58
|
-
"typescript": "
|
|
57
|
+
"typedoc": "0.28.20",
|
|
58
|
+
"typescript": "6.0.3"
|
|
59
59
|
}
|
|
60
60
|
}
|