@launchdarkly/js-sdk-common 2.30.0 → 2.32.0

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.
Files changed (111) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/api/data/LDEvaluationReason.d.ts +11 -0
  3. package/dist/cjs/api/data/LDEvaluationReason.d.ts.map +1 -1
  4. package/dist/cjs/api/platform/Filesystem.d.ts +31 -1
  5. package/dist/cjs/api/platform/Filesystem.d.ts.map +1 -1
  6. package/dist/cjs/index.cjs +105 -7
  7. package/dist/cjs/index.cjs.map +1 -1
  8. package/dist/cjs/internal/evaluation/EventFactoryBase.d.ts +1 -0
  9. package/dist/cjs/internal/evaluation/EventFactoryBase.d.ts.map +1 -1
  10. package/dist/cjs/internal/events/EventProcessor.d.ts.map +1 -1
  11. package/dist/cjs/internal/events/InputEvalEvent.d.ts +7 -1
  12. package/dist/cjs/internal/events/InputEvalEvent.d.ts.map +1 -1
  13. package/dist/cjs/internal/events/LDEventSummarizer.d.ts.map +1 -1
  14. package/dist/cjs/internal/fdv2/protocolHandler.d.ts.map +1 -1
  15. package/dist/cjs/internal/fetch/followRedirects.d.ts +34 -0
  16. package/dist/cjs/internal/fetch/followRedirects.d.ts.map +1 -0
  17. package/dist/cjs/internal/fetch/index.d.ts +1 -0
  18. package/dist/cjs/internal/fetch/index.d.ts.map +1 -1
  19. package/dist/esm/AttributeReference.d.ts +1 -1
  20. package/dist/esm/Context.d.ts +2 -2
  21. package/dist/esm/ContextFilter.d.ts +2 -2
  22. package/dist/esm/api/context/LDContext.d.ts +3 -3
  23. package/dist/esm/api/context/LDContextCommon.d.ts +1 -1
  24. package/dist/esm/api/context/LDMultiKindContext.d.ts +1 -1
  25. package/dist/esm/api/context/LDSingleKindContext.d.ts +1 -1
  26. package/dist/esm/api/context/index.d.ts +6 -6
  27. package/dist/esm/api/data/LDEvaluationDetail.d.ts +2 -2
  28. package/dist/esm/api/data/LDEvaluationReason.d.ts +11 -0
  29. package/dist/esm/api/data/LDEvaluationReason.d.ts.map +1 -1
  30. package/dist/esm/api/data/LDFlagSet.d.ts +1 -1
  31. package/dist/esm/api/data/index.d.ts +4 -4
  32. package/dist/esm/api/index.d.ts +7 -7
  33. package/dist/esm/api/integrations/index.d.ts +1 -1
  34. package/dist/esm/api/logging/BasicLoggerOptions.d.ts +1 -1
  35. package/dist/esm/api/logging/index.d.ts +3 -3
  36. package/dist/esm/api/options/LDClientContext.d.ts +2 -2
  37. package/dist/esm/api/options/index.d.ts +1 -1
  38. package/dist/esm/api/platform/EventSource.d.ts +1 -1
  39. package/dist/esm/api/platform/Filesystem.d.ts +31 -1
  40. package/dist/esm/api/platform/Filesystem.d.ts.map +1 -1
  41. package/dist/esm/api/platform/Info.d.ts +1 -1
  42. package/dist/esm/api/platform/Platform.d.ts +6 -6
  43. package/dist/esm/api/platform/Requests.d.ts +1 -1
  44. package/dist/esm/api/platform/index.d.ts +9 -9
  45. package/dist/esm/api/subsystem/DataSystem/CallbackHandler.d.ts +1 -1
  46. package/dist/esm/api/subsystem/DataSystem/index.d.ts +1 -1
  47. package/dist/esm/api/subsystem/LDContextDeduplicator.d.ts +1 -1
  48. package/dist/esm/api/subsystem/LDEventProcessor.d.ts +1 -1
  49. package/dist/esm/api/subsystem/index.d.ts +5 -5
  50. package/dist/esm/datasource/CompositeDataSource.d.ts +3 -3
  51. package/dist/esm/datasource/errors.d.ts +1 -1
  52. package/dist/esm/datasource/index.d.ts +5 -5
  53. package/dist/esm/datasource/retry/RetryState.d.ts +3 -3
  54. package/dist/esm/datasource/retry/index.d.ts +2 -2
  55. package/dist/esm/index.d.ts +11 -11
  56. package/dist/esm/index.mjs +105 -7
  57. package/dist/esm/index.mjs.map +1 -1
  58. package/dist/esm/internal/context/index.d.ts +1 -1
  59. package/dist/esm/internal/diagnostics/DiagnosticsManager.d.ts +2 -2
  60. package/dist/esm/internal/diagnostics/index.d.ts +1 -1
  61. package/dist/esm/internal/evaluation/EventFactoryBase.d.ts +4 -3
  62. package/dist/esm/internal/evaluation/EventFactoryBase.d.ts.map +1 -1
  63. package/dist/esm/internal/evaluation/index.d.ts +2 -2
  64. package/dist/esm/internal/events/EventProcessor.d.ts +6 -6
  65. package/dist/esm/internal/events/EventProcessor.d.ts.map +1 -1
  66. package/dist/esm/internal/events/EventSender.d.ts +3 -3
  67. package/dist/esm/internal/events/InputClickEvent.d.ts +1 -1
  68. package/dist/esm/internal/events/InputCustomEvent.d.ts +1 -1
  69. package/dist/esm/internal/events/InputEvalEvent.d.ts +9 -3
  70. package/dist/esm/internal/events/InputEvalEvent.d.ts.map +1 -1
  71. package/dist/esm/internal/events/InputEvent.d.ts +6 -6
  72. package/dist/esm/internal/events/InputEventBase.d.ts +1 -1
  73. package/dist/esm/internal/events/InputIdentifyEvent.d.ts +1 -1
  74. package/dist/esm/internal/events/InputMigrationEvent.d.ts +1 -1
  75. package/dist/esm/internal/events/InputPageViewEvent.d.ts +1 -1
  76. package/dist/esm/internal/events/LDEventSummarizer.d.ts +1 -1
  77. package/dist/esm/internal/events/LDEventSummarizer.d.ts.map +1 -1
  78. package/dist/esm/internal/events/MultiEventSummarizer.d.ts +4 -4
  79. package/dist/esm/internal/events/NullEventProcessor.d.ts +1 -1
  80. package/dist/esm/internal/events/guards.d.ts +4 -4
  81. package/dist/esm/internal/events/index.d.ts +10 -10
  82. package/dist/esm/internal/fdv2/FDv1PayloadAdaptor.d.ts +1 -1
  83. package/dist/esm/internal/fdv2/index.d.ts +8 -8
  84. package/dist/esm/internal/fdv2/payloadProcessor.d.ts +4 -4
  85. package/dist/esm/internal/fdv2/payloadStreamReader.d.ts +3 -3
  86. package/dist/esm/internal/fdv2/protocolHandler.d.ts +2 -2
  87. package/dist/esm/internal/fdv2/protocolHandler.d.ts.map +1 -1
  88. package/dist/esm/internal/fetch/StreamingResponse.d.ts +1 -1
  89. package/dist/esm/internal/fetch/followRedirects.d.ts +34 -0
  90. package/dist/esm/internal/fetch/followRedirects.d.ts.map +1 -0
  91. package/dist/esm/internal/fetch/index.d.ts +3 -2
  92. package/dist/esm/internal/fetch/index.d.ts.map +1 -1
  93. package/dist/esm/internal/fetch/toRequestInit.d.ts +1 -1
  94. package/dist/esm/internal/index.d.ts +9 -9
  95. package/dist/esm/internal/json/index.d.ts +1 -1
  96. package/dist/esm/internal/metadata/index.d.ts +1 -1
  97. package/dist/esm/internal/plugins/index.d.ts +3 -3
  98. package/dist/esm/internal/plugins/safeGetHooks.d.ts +2 -2
  99. package/dist/esm/internal/plugins/safeGetName.d.ts +2 -2
  100. package/dist/esm/internal/plugins/safeRegisterPlugins.d.ts +2 -2
  101. package/dist/esm/logging/BasicLogger.d.ts +1 -1
  102. package/dist/esm/logging/SafeLogger.d.ts +1 -1
  103. package/dist/esm/logging/createSafeLogger.d.ts +3 -3
  104. package/dist/esm/logging/index.d.ts +3 -3
  105. package/dist/esm/options/ApplicationTags.d.ts +1 -1
  106. package/dist/esm/options/ClientContext.d.ts +3 -3
  107. package/dist/esm/options/index.d.ts +4 -4
  108. package/dist/esm/utils/cancelableTimedPromise.d.ts +1 -1
  109. package/dist/esm/utils/http.d.ts +2 -2
  110. package/dist/esm/utils/index.d.ts +12 -12
  111. package/package.json +2 -2
@@ -0,0 +1,34 @@
1
+ import type { RawHeaders } from './StreamingResponse';
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,3 +1,4 @@
1
+ export * from './followRedirects';
1
2
  export * from './StreamingResponse';
2
3
  export * from './toRequestInit';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -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 { LDContextCommon } from './api/context/LDContextCommon';
1
+ import { LDContextCommon } from './api/context/LDContextCommon.js';
2
2
  export default class AttributeReference {
3
3
  readonly isValid: boolean;
4
4
  /**
@@ -1,5 +1,5 @@
1
- import type { LDContext, LDContextCommon } from './api';
2
- import AttributeReference from './AttributeReference';
1
+ import type { LDContext, LDContextCommon } from './api/index.js';
2
+ import AttributeReference from './AttributeReference.js';
3
3
  /**
4
4
  * Container for a context/contexts. Because contexts come from external code
5
5
  * they must be thoroughly validated and then formed to comply with
@@ -1,5 +1,5 @@
1
- import AttributeReference from './AttributeReference';
2
- import Context from './Context';
1
+ import AttributeReference from './AttributeReference.js';
2
+ import Context from './Context.js';
3
3
  export default class ContextFilter {
4
4
  private readonly _allAttributesPrivate;
5
5
  private readonly _privateAttributes;
@@ -1,6 +1,6 @@
1
- import { LDMultiKindContext } from './LDMultiKindContext';
2
- import { LDSingleKindContext } from './LDSingleKindContext';
3
- import { LDUser } from './LDUser';
1
+ import { LDMultiKindContext } from './LDMultiKindContext.js';
2
+ import { LDSingleKindContext } from './LDSingleKindContext.js';
3
+ import { LDUser } from './LDUser.js';
4
4
  /**
5
5
  * A LaunchDarkly context object. LaunchDarkly contexts are objects representing users, devices, organizations, and
6
6
  * other entities that feature flags serve different variations to according to your flag targeting rules. These data
@@ -1,4 +1,4 @@
1
- import { LDContextMeta } from './LDContextMeta';
1
+ import { LDContextMeta } from './LDContextMeta.js';
2
2
  /**
3
3
  * Common attributes shared by the various context types.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { LDContextCommon } from './LDContextCommon';
1
+ import { LDContextCommon } from './LDContextCommon.js';
2
2
  /**
3
3
  * A context which represents multiple kinds. Each kind having its own key and attributes.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { LDContextCommon } from './LDContextCommon';
1
+ import { LDContextCommon } from './LDContextCommon.js';
2
2
  /**
3
3
  * A context which represents a single kind.
4
4
  *
@@ -1,7 +1,7 @@
1
- export * from './LDContextCommon';
2
- export * from './LDContextMeta';
3
- export * from './LDMultiKindContext';
4
- export * from './LDSingleKindContext';
5
- export * from './LDUser';
6
- export * from './LDContext';
1
+ export * from './LDContextCommon.js';
2
+ export * from './LDContextMeta.js';
3
+ export * from './LDMultiKindContext.js';
4
+ export * from './LDSingleKindContext.js';
5
+ export * from './LDUser.js';
6
+ export * from './LDContext.js';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { LDEvaluationReason } from './LDEvaluationReason';
2
- import { LDFlagValue } from './LDFlagValue';
1
+ import { LDEvaluationReason } from './LDEvaluationReason.js';
2
+ import { LDFlagValue } from './LDFlagValue.js';
3
3
  /**
4
4
  * An object that combines the result of a feature flag evaluation with information about
5
5
  * how it was calculated.
@@ -53,5 +53,16 @@ export interface LDEvaluationReason {
53
53
  * instance due to a database error.
54
54
  */
55
55
  bigSegmentsStatus?: 'HEALTHY' | 'STALE' | 'NOT_CONFIGURED' | 'STORE_ERROR';
56
+ /**
57
+ * True when an override affected the evaluation, directly or transitively.
58
+ *
59
+ * This is the case when the evaluated flag came from the SDK's override store, or when a
60
+ * prerequisite flag at any depth or a segment read during the evaluation came from that store.
61
+ * Otherwise it is false or undefined. In the JSON representation of the reason the property is
62
+ * present only when it is true.
63
+ *
64
+ * @experimental Flag overrides are currently experimental and subject to change.
65
+ */
66
+ overrideAffected?: boolean;
56
67
  }
57
68
  //# sourceMappingURL=LDEvaluationReason.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LDEvaluationReason.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDEvaluationReason.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,gBAAgB,GAAG,aAAa,CAAC;CAC5E"}
1
+ {"version":3,"file":"LDEvaluationReason.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDEvaluationReason.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,gBAAgB,GAAG,aAAa,CAAC;IAE3E;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
@@ -1,4 +1,4 @@
1
- import { LDFlagValue } from './LDFlagValue';
1
+ import { LDFlagValue } from './LDFlagValue.js';
2
2
  /**
3
3
  * A map of feature flags from their keys to their values.
4
4
  */
@@ -1,5 +1,5 @@
1
- export * from './LDEvaluationDetail';
2
- export * from './LDEvaluationReason';
3
- export * from './LDFlagSet';
4
- export * from './LDFlagValue';
1
+ export * from './LDEvaluationDetail.js';
2
+ export * from './LDEvaluationReason.js';
3
+ export * from './LDFlagSet.js';
4
+ export * from './LDFlagValue.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
- export * from './context';
2
- export * from './logging';
3
- export * from './data';
4
- export * from './options';
5
- export * from './platform';
6
- export * as subsystem from './subsystem';
7
- export * from './integrations';
1
+ export * from './context/index.js';
2
+ export * from './logging/index.js';
3
+ export * from './data/index.js';
4
+ export * from './options/index.js';
5
+ export * from './platform/index.js';
6
+ export * as subsystem from './subsystem/index.js';
7
+ export * from './integrations/index.js';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './plugins';
1
+ export * from './plugins.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { LDLogLevel } from './LDLogLevel';
1
+ import { LDLogLevel } from './LDLogLevel.js';
2
2
  /**
3
3
  * Configuration for {@link basicLogger}.
4
4
  */
@@ -1,4 +1,4 @@
1
- export * from './BasicLoggerOptions';
2
- export * from './LDLogger';
3
- export * from './LDLogLevel';
1
+ export * from './BasicLoggerOptions.js';
2
+ export * from './LDLogger.js';
3
+ export * from './LDLogLevel.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { LDLogger } from '../logging';
2
- import { Platform } from '../platform';
1
+ import { LDLogger } from '../logging/index.js';
2
+ import { Platform } from '../platform/index.js';
3
3
  /**
4
4
  * Specifies the base service URIs used by SDK components.
5
5
  */
@@ -1,3 +1,3 @@
1
- import { LDClientContext } from './LDClientContext';
1
+ import { LDClientContext } from './LDClientContext.js';
2
2
  export { LDClientContext };
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { HttpErrorResponse } from './Requests';
1
+ import type { HttpErrorResponse } from './Requests.js';
2
2
  export type EventName = string;
3
3
  export type EventListener = (event?: {
4
4
  data?: any;
@@ -4,6 +4,20 @@ export interface WatchHandle {
4
4
  */
5
5
  close(): void;
6
6
  }
7
+ /**
8
+ * Metadata of a file that a component can compare between two observations to detect a
9
+ * change.
10
+ */
11
+ export interface FileStats {
12
+ /**
13
+ * The time, in ms since POSIX epoch, that the file was last modified.
14
+ */
15
+ timestamp: number;
16
+ /**
17
+ * The size of the file in bytes.
18
+ */
19
+ size: number;
20
+ }
7
21
  /**
8
22
  * Interface for doing filesystem operations on the platform.
9
23
  */
@@ -24,6 +38,16 @@ export interface Filesystem {
24
38
  * rejected if the operation fails.
25
39
  */
26
40
  readFile(path: string): Promise<string>;
41
+ /**
42
+ * Get the metadata of a file. Components use it to detect that a file changed, appeared, or
43
+ * disappeared.
44
+ *
45
+ * @param path The path of the file.
46
+ *
47
+ * @returns A promise which will resolve to the file metadata, or to undefined when the file
48
+ * does not exist. The promise is rejected when the operation fails for another reason.
49
+ */
50
+ getFileStats?(path: string): Promise<FileStats | undefined>;
27
51
  /**
28
52
  * Watch for changes to the specified path.
29
53
  *
@@ -31,10 +55,16 @@ export interface Filesystem {
31
55
  * it should not keep the containing process running as long as it is
32
56
  * executing. For node this means setting the persistent option to false.
33
57
  *
58
+ * When the watch itself fails, the implementation should invoke the callback with the event
59
+ * type `error` instead of raising, so that the owner of the watch can set it up again.
60
+ *
34
61
  * @param path The path to watch.
62
+ * @param callback Receives the event type, the watched path, and, when the platform reports
63
+ * it, the name of the entry within the watched path that changed. The name is undefined when
64
+ * the platform does not report it.
35
65
  *
36
66
  * @returns An async iterator that watches for changes to `path`.
37
67
  */
38
- watch(path: string, callback: (eventType: string, filename: string) => void): WatchHandle;
68
+ watch(path: string, callback: (eventType: string, filename: string, changedName?: string) => void): WatchHandle;
39
69
  }
40
70
  //# sourceMappingURL=Filesystem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Filesystem.d.ts","sourceRoot":"","sources":["../../../src/api/platform/Filesystem.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAExC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,GAAG,WAAW,CAAC;CAC3F"}
1
+ {"version":3,"file":"Filesystem.d.ts","sourceRoot":"","sources":["../../../src/api/platform/Filesystem.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAExC;;;;;;;;OAQG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAE5D;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CACH,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,GAC5E,WAAW,CAAC;CAChB"}
@@ -1,4 +1,4 @@
1
- import type { LDApplication, LDDevice } from './AutoEnv';
1
+ import type { LDApplication, LDDevice } from './AutoEnv.js';
2
2
  /**
3
3
  * Information about the platform of the SDK and the environment it is executing.
4
4
  */
@@ -1,9 +1,9 @@
1
- import { Crypto } from './Crypto';
2
- import { Encoding } from './Encoding';
3
- import { Filesystem } from './Filesystem';
4
- import { Info } from './Info';
5
- import { Requests } from './Requests';
6
- import { Storage } from './Storage';
1
+ import { Crypto } from './Crypto.js';
2
+ import { Encoding } from './Encoding.js';
3
+ import { Filesystem } from './Filesystem.js';
4
+ import { Info } from './Info.js';
5
+ import { Requests } from './Requests.js';
6
+ import { Storage } from './Storage.js';
7
7
  export interface Platform {
8
8
  /**
9
9
  * The interface for performing encoding operations.
@@ -1,4 +1,4 @@
1
- import type { EventSource, EventSourceInitDict } from './EventSource';
1
+ import type { EventSource, EventSourceInitDict } from './EventSource.js';
2
2
  /**
3
3
  * Interface for headers that are part of a fetch response.
4
4
  */
@@ -1,10 +1,10 @@
1
- export * from './AutoEnv';
2
- export * from './Crypto';
3
- export * from './Encoding';
4
- export * from './EventSource';
5
- export * from './Filesystem';
6
- export * from './Info';
7
- export * from './Platform';
8
- export * from './Requests';
9
- export * from './Storage';
1
+ export * from './AutoEnv.js';
2
+ export * from './Crypto.js';
3
+ export * from './Encoding.js';
4
+ export * from './EventSource.js';
5
+ export * from './Filesystem.js';
6
+ export * from './Info.js';
7
+ export * from './Platform.js';
8
+ export * from './Requests.js';
9
+ export * from './Storage.js';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { DataSourceState } from './DataSource';
1
+ import { DataSourceState } from './DataSource.js';
2
2
  /**
3
3
  * Handler that connects the current {@link DataSource} to the {@link CompositeDataSource}. A single
4
4
  * {@link CallbackHandler} should only be given to one {@link DataSource}. Use {@link disable()} to
@@ -1,2 +1,2 @@
1
- export { DataSource, DataSourceState, LDDataSourceFactory } from './DataSource';
1
+ export { DataSource, DataSourceState, LDDataSourceFactory } from './DataSource.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import Context from '../../Context';
1
+ import Context from '../../Context.js';
2
2
  /**
3
3
  * Interface for a strategy for removing duplicate contexts from the event stream.
4
4
  * Client side event processors do not do this de-duplication, so the implementation
@@ -1,4 +1,4 @@
1
- import InputEvent from '../../internal/events/InputEvent';
1
+ import InputEvent from '../../internal/events/InputEvent.js';
2
2
  export default interface LDEventProcessor {
3
3
  close(): void;
4
4
  flush(): Promise<void>;
@@ -1,7 +1,7 @@
1
- import { DataSource, DataSourceState, LDDataSourceFactory } from './DataSystem';
2
- import LDContextDeduplicator from './LDContextDeduplicator';
3
- import LDEventProcessor from './LDEventProcessor';
4
- import LDEventSender, { LDDeliveryStatus, LDEventSenderResult, LDEventType } from './LDEventSender';
5
- import { LDStreamProcessor } from './LDStreamProcessor';
1
+ import { DataSource, DataSourceState, LDDataSourceFactory } from './DataSystem/index.js';
2
+ import LDContextDeduplicator from './LDContextDeduplicator.js';
3
+ import LDEventProcessor from './LDEventProcessor.js';
4
+ import LDEventSender, { LDDeliveryStatus, LDEventSenderResult, LDEventType } from './LDEventSender.js';
5
+ import { LDStreamProcessor } from './LDStreamProcessor.js';
6
6
  export { DataSource, DataSourceState, LDDataSourceFactory, LDEventProcessor, LDContextDeduplicator, LDEventSender, LDDeliveryStatus, LDEventType, LDEventSenderResult, LDStreamProcessor, };
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- import { LDLogger } from '../api/logging';
2
- import { DataSource, DataSourceState, LDDataSourceFactory } from '../api/subsystem/DataSystem/DataSource';
3
- import { Backoff } from './Backoff';
1
+ import { LDLogger } from '../api/logging/index.js';
2
+ import { DataSource, DataSourceState, LDDataSourceFactory } from '../api/subsystem/DataSystem/DataSource.js';
3
+ import { Backoff } from './Backoff.js';
4
4
  /**
5
5
  * Represents a transition between data sources.
6
6
  */
@@ -1,4 +1,4 @@
1
- import { DataSourceErrorKind } from './DataSourceErrorKinds';
1
+ import { DataSourceErrorKind } from './DataSourceErrorKinds.js';
2
2
  export declare class LDFileDataSourceError extends Error {
3
3
  constructor(message: string);
4
4
  }
@@ -1,7 +1,7 @@
1
- import { Backoff, DefaultBackoff } from './Backoff';
2
- import { CompositeDataSource } from './CompositeDataSource';
3
- import { DataSourceErrorKind } from './DataSourceErrorKinds';
4
- import { LDFileDataSourceError, LDFlagDeliveryFallbackError, LDPollingError, LDStreamingError, StreamingErrorHandler } from './errors';
5
- import { createAfterConsecutiveSuccesses, createAfterHealthyFor, createRetryState, forPolling, forStreaming, ResetPolicy, RetryState, RetryStateConfig } from './retry';
1
+ import { Backoff, DefaultBackoff } from './Backoff.js';
2
+ import { CompositeDataSource } from './CompositeDataSource.js';
3
+ import { DataSourceErrorKind } from './DataSourceErrorKinds.js';
4
+ import { LDFileDataSourceError, LDFlagDeliveryFallbackError, LDPollingError, LDStreamingError, StreamingErrorHandler } from './errors.js';
5
+ import { createAfterConsecutiveSuccesses, createAfterHealthyFor, createRetryState, forPolling, forStreaming, ResetPolicy, RetryState, RetryStateConfig } from './retry/index.js';
6
6
  export { Backoff, CompositeDataSource, createAfterConsecutiveSuccesses, createAfterHealthyFor, createRetryState, DefaultBackoff, DataSourceErrorKind, forPolling, forStreaming, LDFileDataSourceError, LDFlagDeliveryFallbackError, LDPollingError, LDStreamingError, ResetPolicy, RetryState, RetryStateConfig, StreamingErrorHandler, };
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- import { LDLogger } from '../../api/logging/LDLogger';
2
- import { FailureKind } from '../../errors';
3
- import { ResetPolicy } from './ResetPolicy';
1
+ import { LDLogger } from '../../api/logging/LDLogger.js';
2
+ import { FailureKind } from '../../errors.js';
3
+ import { ResetPolicy } from './ResetPolicy.js';
4
4
  /**
5
5
  * Configuration for a {@link RetryState}.
6
6
  *
@@ -1,4 +1,4 @@
1
- import { createAfterConsecutiveSuccesses, createAfterHealthyFor, ResetPolicy } from './ResetPolicy';
2
- import { createRetryState, forPolling, forStreaming, RetryState, RetryStateConfig } from './RetryState';
1
+ import { createAfterConsecutiveSuccesses, createAfterHealthyFor, ResetPolicy } from './ResetPolicy.js';
2
+ import { createRetryState, forPolling, forStreaming, RetryState, RetryStateConfig } from './RetryState.js';
3
3
  export { createAfterConsecutiveSuccesses, createAfterHealthyFor, createRetryState, forPolling, forStreaming, ResetPolicy, RetryState, RetryStateConfig, };
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,13 +1,13 @@
1
- import AttributeReference from './AttributeReference';
2
- import Context from './Context';
3
- import ContextFilter from './ContextFilter';
4
- import { Backoff, CompositeDataSource, createAfterConsecutiveSuccesses, createAfterHealthyFor, createRetryState, DataSourceErrorKind, DefaultBackoff, forPolling, forStreaming, LDFileDataSourceError, LDFlagDeliveryFallbackError, LDPollingError, LDStreamingError, ResetPolicy, RetryState, RetryStateConfig, StreamingErrorHandler } from './datasource';
5
- export * from './api';
6
- export * from './validators';
7
- export * from './logging';
8
- export * from './options';
9
- export * from './utils';
10
- export * as internal from './internal';
11
- export * from './errors';
1
+ import AttributeReference from './AttributeReference.js';
2
+ import Context from './Context.js';
3
+ import ContextFilter from './ContextFilter.js';
4
+ import { Backoff, CompositeDataSource, createAfterConsecutiveSuccesses, createAfterHealthyFor, createRetryState, DataSourceErrorKind, DefaultBackoff, forPolling, forStreaming, LDFileDataSourceError, LDFlagDeliveryFallbackError, LDPollingError, LDStreamingError, ResetPolicy, RetryState, RetryStateConfig, StreamingErrorHandler } from './datasource/index.js';
5
+ export * from './api/index.js';
6
+ export * from './validators.js';
7
+ export * from './logging/index.js';
8
+ export * from './options/index.js';
9
+ export * from './utils/index.js';
10
+ export * as internal from './internal/index.js';
11
+ export * from './errors.js';
12
12
  export { AttributeReference, Context, ContextFilter, CompositeDataSource, DataSourceErrorKind, Backoff, DefaultBackoff, LDPollingError, LDStreamingError, StreamingErrorHandler, LDFileDataSourceError, LDFlagDeliveryFallbackError, createAfterConsecutiveSuccesses, createAfterHealthyFor, createRetryState, forPolling, forStreaming, ResetPolicy, RetryState, RetryStateConfig, };
13
13
  //# sourceMappingURL=index.d.ts.map