@sentry/node 10.56.0 → 10.58.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 (82) hide show
  1. package/build/cjs/integrations/tracing/anthropic-ai/index.js.map +1 -1
  2. package/build/cjs/integrations/tracing/dataloader/index.js +2 -22
  3. package/build/cjs/integrations/tracing/dataloader/index.js.map +1 -1
  4. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js +93 -120
  5. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
  6. package/build/cjs/integrations/tracing/genericPool/index.js +1 -1
  7. package/build/cjs/integrations/tracing/genericPool/index.js.map +1 -1
  8. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js +14 -26
  9. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js.map +1 -1
  10. package/build/cjs/integrations/tracing/google-genai/index.js.map +1 -1
  11. package/build/cjs/integrations/tracing/langchain/index.js.map +1 -1
  12. package/build/cjs/integrations/tracing/langgraph/index.js.map +1 -1
  13. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js +8 -11
  14. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
  15. package/build/cjs/integrations/tracing/openai/index.js.map +1 -1
  16. package/build/cjs/integrations/tracing/postgresjs.js +1 -1
  17. package/build/cjs/integrations/tracing/postgresjs.js.map +1 -1
  18. package/build/cjs/integrations/tracing/redis/index.js +1 -1
  19. package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
  20. package/build/cjs/integrations/tracing/utils/sql-common.js.map +1 -1
  21. package/build/esm/integrations/tracing/anthropic-ai/index.js.map +1 -1
  22. package/build/esm/integrations/tracing/dataloader/index.js +4 -24
  23. package/build/esm/integrations/tracing/dataloader/index.js.map +1 -1
  24. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js +95 -122
  25. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
  26. package/build/esm/integrations/tracing/genericPool/index.js +1 -1
  27. package/build/esm/integrations/tracing/genericPool/index.js.map +1 -1
  28. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js +15 -27
  29. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js.map +1 -1
  30. package/build/esm/integrations/tracing/google-genai/index.js.map +1 -1
  31. package/build/esm/integrations/tracing/langchain/index.js.map +1 -1
  32. package/build/esm/integrations/tracing/langgraph/index.js.map +1 -1
  33. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js +8 -11
  34. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
  35. package/build/esm/integrations/tracing/openai/index.js.map +1 -1
  36. package/build/esm/integrations/tracing/postgresjs.js +1 -1
  37. package/build/esm/integrations/tracing/postgresjs.js.map +1 -1
  38. package/build/esm/integrations/tracing/redis/index.js +1 -1
  39. package/build/esm/integrations/tracing/redis/index.js.map +1 -1
  40. package/build/esm/integrations/tracing/utils/sql-common.js.map +1 -1
  41. package/build/esm/package.json +1 -1
  42. package/build/types/integrations/tracing/anthropic-ai/index.d.ts +4 -3
  43. package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +1 -1
  44. package/build/types/integrations/tracing/dataloader/index.d.ts.map +1 -1
  45. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts +2 -5
  46. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts.map +1 -1
  47. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts +20 -8
  48. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts.map +1 -1
  49. package/build/types/integrations/tracing/genericPool/index.d.ts.map +1 -1
  50. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +1 -1
  51. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts.map +1 -1
  52. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts +2 -1
  53. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts.map +1 -1
  54. package/build/types/integrations/tracing/google-genai/index.d.ts +8 -7
  55. package/build/types/integrations/tracing/google-genai/index.d.ts.map +1 -1
  56. package/build/types/integrations/tracing/langchain/index.d.ts +9 -8
  57. package/build/types/integrations/tracing/langchain/index.d.ts.map +1 -1
  58. package/build/types/integrations/tracing/langgraph/index.d.ts +4 -3
  59. package/build/types/integrations/tracing/langgraph/index.d.ts.map +1 -1
  60. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +2 -2
  61. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts.map +1 -1
  62. package/build/types/integrations/tracing/openai/index.d.ts +4 -3
  63. package/build/types/integrations/tracing/openai/index.d.ts.map +1 -1
  64. package/build/types/integrations/tracing/postgresjs.d.ts.map +1 -1
  65. package/build/types/integrations/tracing/utils/sql-common.d.ts +1 -1
  66. package/build/types/integrations/tracing/utils/sql-common.d.ts.map +1 -1
  67. package/build/types/integrations/tracing/vercelai/types.d.ts +2 -2
  68. package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +4 -3
  69. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/instrumentation.d.ts +2 -5
  70. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/types.d.ts +20 -8
  71. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +1 -1
  72. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/instrumentation.d.ts +2 -1
  73. package/build/types-ts3.8/integrations/tracing/google-genai/index.d.ts +8 -7
  74. package/build/types-ts3.8/integrations/tracing/langchain/index.d.ts +9 -8
  75. package/build/types-ts3.8/integrations/tracing/langgraph/index.d.ts +4 -3
  76. package/build/types-ts3.8/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +2 -2
  77. package/build/types-ts3.8/integrations/tracing/openai/index.d.ts +4 -3
  78. package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +2 -2
  79. package/package.json +5 -5
  80. package/build/types/integrations/tracing/dataloader/vendored/dataloader-types.d.ts +0 -14
  81. package/build/types/integrations/tracing/dataloader/vendored/dataloader-types.d.ts.map +0 -1
  82. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/dataloader-types.d.ts +0 -14
@@ -38,13 +38,13 @@ export type TelemetrySettings = {
38
38
  export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
39
39
  export interface VercelAiOptions {
40
40
  /**
41
- * Enable or disable input recording. Enabled if `sendDefaultPii` or `dataCollection.genAI.inputs` is `true`
41
+ * Enable or disable input recording. Enabled if `dataCollection.genAI.inputs` (or the deprecated `sendDefaultPii` option) is `true`
42
42
  * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
43
43
  * Integration-level options take precedence over global `dataCollection` config.
44
44
  */
45
45
  recordInputs?: boolean;
46
46
  /**
47
- * Enable or disable output recording. Enabled if `sendDefaultPii` or `dataCollection.genAI.outputs` is `true`
47
+ * Enable or disable output recording. Enabled if `dataCollection.genAI.outputs` (or the deprecated `sendDefaultPii` option) is `true`
48
48
  * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
49
49
  * Integration-level options take precedence over global `dataCollection` config.
50
50
  */
@@ -21,13 +21,14 @@ export declare const instrumentAnthropicAi: ((options?: AnthropicAiOptions | und
21
21
  *
22
22
  * ## Options
23
23
  *
24
- * - `recordInputs`: Whether to record prompt messages (default: follows `sendDefaultPii` or `dataCollection.genAI.inputs`)
25
- * - `recordOutputs`: Whether to record response text (default: follows `sendDefaultPii` or `dataCollection.genAI.outputs`)
24
+ * - `recordInputs`: Whether to record prompt messages (default: follows `dataCollection.genAI.inputs`, or the deprecated `sendDefaultPii` option)
25
+ * - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`, or the deprecated `sendDefaultPii` option)
26
26
  *
27
27
  * ### Default Behavior
28
28
  *
29
29
  * By default, the integration will:
30
- * - Record inputs and outputs based on `sendDefaultPii` or `dataCollection.genAI` in your Sentry client options
30
+ * - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
31
+ * (or the deprecated `sendDefaultPii` option, for backwards compatibility)
31
32
  * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
32
33
  *
33
34
  * @example
@@ -1,10 +1,7 @@
1
1
  import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
- import { DataloaderInstrumentationConfig } from './types';
3
- export declare class DataloaderInstrumentation extends InstrumentationBase<DataloaderInstrumentationConfig> {
4
- constructor(config?: DataloaderInstrumentationConfig);
2
+ export declare class DataloaderInstrumentation extends InstrumentationBase {
3
+ constructor(config?: {});
5
4
  protected init(): InstrumentationNodeModuleDefinition[];
6
- private shouldCreateSpans;
7
- private getSpanName;
8
5
  private _wrapBatchLoadFn;
9
6
  private _getPatchedConstructor;
10
7
  private _patchLoad;
@@ -1,10 +1,22 @@
1
- import { InstrumentationConfig } from '@opentelemetry/instrumentation';
2
- export interface DataloaderInstrumentationConfig extends InstrumentationConfig {
3
- /**
4
- * Whether the instrumentation requires a parent span, if set to true
5
- * and there is no parent span, no additional spans are created
6
- * (default: true)
7
- */
8
- requireParentSpan?: boolean;
1
+ import { SpanLink } from '@sentry/core';
2
+ export type BatchLoadFn<K, V> = (keys: ReadonlyArray<K>) => PromiseLike<ArrayLike<V | Error>>;
3
+ /** A `DataLoader` instance. */
4
+ export interface DataLoader<K = unknown, V = unknown> {
5
+ _batchLoadFn: BatchLoadFn<K, V>;
6
+ _batch: {
7
+ spanLinks?: SpanLink[];
8
+ } | null;
9
+ load(key: K): Promise<V>;
10
+ loadMany(keys: ArrayLike<K>): Promise<Array<V | Error>>;
11
+ prime(key: K, value: V | Error): this;
12
+ clear(key: K): this;
13
+ clearAll(): this;
14
+ name: string | undefined;
15
+ [key: string]: any;
16
+ }
17
+ /** The `DataLoader` class/constructor. */
18
+ export interface DataLoaderConstructor {
19
+ new <K, V>(batchLoadFn: BatchLoadFn<K, V>, options?: any): DataLoader<K, V>;
20
+ prototype: DataLoader<unknown, unknown>;
9
21
  }
10
22
  //# sourceMappingURL=types.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export declare class Pool<T> {
2
2
  acquire(priority?: number): PromiseLike<T>;
3
- [key: string]: any;
3
+ [key: string]: unknown;
4
4
  }
5
5
  //# sourceMappingURL=generic-pool-types.d.ts.map
@@ -1,4 +1,5 @@
1
- import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
1
+ import { InstrumentationConfig } from '@opentelemetry/instrumentation';
2
+ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
3
  export declare class GenericPoolInstrumentation extends InstrumentationBase {
3
4
  private _isDisabled;
4
5
  constructor(config?: InstrumentationConfig);
@@ -21,18 +21,19 @@ export declare const instrumentGoogleGenAI: ((options?: GoogleGenAIOptions | und
21
21
  *
22
22
  * ## Options
23
23
  *
24
- * - `recordInputs`: Whether to record prompt messages (default: respects `sendDefaultPii` client option)
25
- * - `recordOutputs`: Whether to record response text (default: respects `sendDefaultPii` client option)
24
+ * - `recordInputs`: Whether to record prompt messages (default: follows `dataCollection.genAI.inputs`)
25
+ * - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`)
26
26
  *
27
27
  * ### Default Behavior
28
28
  *
29
29
  * By default, the integration will:
30
- * - Record inputs and outputs ONLY if `sendDefaultPii` is set to `true` in your Sentry client options
31
- * - Otherwise, inputs and outputs are NOT recorded unless explicitly enabled
30
+ * - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
31
+ * (or the deprecated `sendDefaultPii` option, for backwards compatibility)
32
+ * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
32
33
  *
33
34
  * @example
34
35
  * ```javascript
35
- * // Record inputs and outputs when sendDefaultPii is false
36
+ * // Always record inputs and outputs regardless of global dataCollection config
36
37
  * Sentry.init({
37
38
  * integrations: [
38
39
  * Sentry.googleGenAiIntegration({
@@ -42,9 +43,9 @@ export declare const instrumentGoogleGenAI: ((options?: GoogleGenAIOptions | und
42
43
  * ],
43
44
  * });
44
45
  *
45
- * // Never record inputs/outputs regardless of sendDefaultPii
46
+ * // Never record inputs/outputs regardless of global dataCollection config
46
47
  * Sentry.init({
47
- * sendDefaultPii: true,
48
+ * dataCollection: { genAI: { inputs: true, outputs: true } },
48
49
  * integrations: [
49
50
  * Sentry.googleGenAiIntegration({
50
51
  * recordInputs: false,
@@ -21,7 +21,7 @@ export declare const instrumentLangChain: ((options?: LangChainOptions | undefin
21
21
  *
22
22
  * Sentry.init({
23
23
  * integrations: [Sentry.langChainIntegration()],
24
- * sendDefaultPii: true, // Enable to record inputs/outputs
24
+ * dataCollection: { genAI: { inputs: true, outputs: true } }, // Enable to record inputs/outputs
25
25
  * });
26
26
  *
27
27
  * // LangChain calls are automatically instrumented
@@ -52,18 +52,19 @@ export declare const instrumentLangChain: ((options?: LangChainOptions | undefin
52
52
  *
53
53
  * ## Options
54
54
  *
55
- * - `recordInputs`: Whether to record input messages/prompts (default: respects `sendDefaultPii` client option)
56
- * - `recordOutputs`: Whether to record response text (default: respects `sendDefaultPii` client option)
55
+ * - `recordInputs`: Whether to record input messages/prompts (default: follows `dataCollection.genAI.inputs`, or the deprecated `sendDefaultPii` option)
56
+ * - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`, or the deprecated `sendDefaultPii` option)
57
57
  *
58
58
  * ### Default Behavior
59
59
  *
60
60
  * By default, the integration will:
61
- * - Record inputs and outputs ONLY if `sendDefaultPii` is set to `true` in your Sentry client options
62
- * - Otherwise, inputs and outputs are NOT recorded unless explicitly enabled
61
+ * - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
62
+ * (or the deprecated `sendDefaultPii` option, for backwards compatibility)
63
+ * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
63
64
  *
64
65
  * @example
65
66
  * ```javascript
66
- * // Record inputs and outputs when sendDefaultPii is false
67
+ * // Always record inputs and outputs regardless of global dataCollection config
67
68
  * Sentry.init({
68
69
  * integrations: [
69
70
  * Sentry.langChainIntegration({
@@ -73,9 +74,9 @@ export declare const instrumentLangChain: ((options?: LangChainOptions | undefin
73
74
  * ],
74
75
  * });
75
76
  *
76
- * // Never record inputs/outputs regardless of sendDefaultPii
77
+ * // Never record inputs/outputs regardless of global dataCollection config
77
78
  * Sentry.init({
78
- * sendDefaultPii: true,
79
+ * dataCollection: { genAI: { inputs: true, outputs: true } },
79
80
  * integrations: [
80
81
  * Sentry.langChainIntegration({
81
82
  * recordInputs: false,
@@ -21,13 +21,14 @@ export declare const instrumentLangGraph: ((options?: LangGraphOptions | undefin
21
21
  *
22
22
  * ## Options
23
23
  *
24
- * - `recordInputs`: Whether to record prompt messages (default: follows `sendDefaultPii` or `dataCollection.genAI.inputs`)
25
- * - `recordOutputs`: Whether to record response text (default: follows `sendDefaultPii` or `dataCollection.genAI.outputs`)
24
+ * - `recordInputs`: Whether to record prompt messages (default: follows `dataCollection.genAI.inputs`, or the deprecated `sendDefaultPii` option)
25
+ * - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`, or the deprecated `sendDefaultPii` option)
26
26
  *
27
27
  * ### Default Behavior
28
28
  *
29
29
  * By default, the integration will:
30
- * - Record inputs and outputs based on `sendDefaultPii` or `dataCollection.genAI` in your Sentry client options
30
+ * - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
31
+ * (or the deprecated `sendDefaultPii` option, for backwards compatibility)
31
32
  * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
32
33
  *
33
34
  * @example
@@ -1,6 +1,6 @@
1
- import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
1
+ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
2
  export declare class LruMemoizerInstrumentation extends InstrumentationBase {
3
- constructor(config?: InstrumentationConfig);
3
+ constructor();
4
4
  init(): InstrumentationNodeModuleDefinition[];
5
5
  }
6
6
  //# sourceMappingURL=instrumentation.d.ts.map
@@ -21,13 +21,14 @@ export declare const instrumentOpenAi: ((options?: OpenAiOptions | undefined) =>
21
21
  *
22
22
  * ## Options
23
23
  *
24
- * - `recordInputs`: Whether to record prompt messages (default: follows `sendDefaultPii` or `dataCollection.genAI.inputs`)
25
- * - `recordOutputs`: Whether to record response text (default: follows `sendDefaultPii` or `dataCollection.genAI.outputs`)
24
+ * - `recordInputs`: Whether to record input messages/prompts (default: follows `dataCollection.genAI.inputs`, or the deprecated `sendDefaultPii` option)
25
+ * - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`, or the deprecated `sendDefaultPii` option)
26
26
  *
27
27
  * ### Default Behavior
28
28
  *
29
29
  * By default, the integration will:
30
- * - Record inputs and outputs based on `sendDefaultPii` or `dataCollection.genAI` in your Sentry client options
30
+ * - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
31
+ * (or the deprecated `sendDefaultPii` option, for backwards compatibility)
31
32
  * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
32
33
  *
33
34
  * @example
@@ -38,13 +38,13 @@ export type TelemetrySettings = {
38
38
  export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
39
39
  export interface VercelAiOptions {
40
40
  /**
41
- * Enable or disable input recording. Enabled if `sendDefaultPii` or `dataCollection.genAI.inputs` is `true`
41
+ * Enable or disable input recording. Enabled if `dataCollection.genAI.inputs` (or the deprecated `sendDefaultPii` option) is `true`
42
42
  * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
43
43
  * Integration-level options take precedence over global `dataCollection` config.
44
44
  */
45
45
  recordInputs?: boolean;
46
46
  /**
47
- * Enable or disable output recording. Enabled if `sendDefaultPii` or `dataCollection.genAI.outputs` is `true`
47
+ * Enable or disable output recording. Enabled if `dataCollection.genAI.outputs` (or the deprecated `sendDefaultPii` option) is `true`
48
48
  * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
49
49
  * Integration-level options take precedence over global `dataCollection` config.
50
50
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/node",
3
- "version": "10.56.0",
3
+ "version": "10.58.0",
4
4
  "description": "Sentry Node SDK using OpenTelemetry for performance instrumentation",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
@@ -70,10 +70,10 @@
70
70
  "@opentelemetry/instrumentation": "^0.214.0",
71
71
  "@opentelemetry/sdk-trace-base": "^2.6.1",
72
72
  "@opentelemetry/semantic-conventions": "^1.40.0",
73
- "@sentry-internal/server-utils": "10.56.0",
74
- "@sentry/core": "10.56.0",
75
- "@sentry/node-core": "10.56.0",
76
- "@sentry/opentelemetry": "10.56.0",
73
+ "@sentry/core": "10.58.0",
74
+ "@sentry/node-core": "10.58.0",
75
+ "@sentry/opentelemetry": "10.58.0",
76
+ "@sentry/server-utils": "10.58.0",
77
77
  "import-in-the-middle": "^3.0.0"
78
78
  },
79
79
  "devDependencies": {
@@ -1,14 +0,0 @@
1
- declare class DataLoader<K, V, _C = K> {
2
- constructor(batchLoadFn: DataLoader.BatchLoadFn<K, V>, options?: any);
3
- load(key: K): Promise<V>;
4
- loadMany(keys: ArrayLike<K>): Promise<Array<V | Error>>;
5
- prime(key: K, value: V | Error): this;
6
- clear(key: K): this;
7
- clearAll(): this;
8
- [key: string]: any;
9
- }
10
- declare namespace DataLoader {
11
- type BatchLoadFn<K, V> = (keys: ReadonlyArray<K>) => PromiseLike<ArrayLike<V | Error>>;
12
- }
13
- export = DataLoader;
14
- //# sourceMappingURL=dataloader-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataloader-types.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/dataloader/vendored/dataloader-types.ts"],"names":[],"mappings":"AAIA,OAAO,OAAO,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC;gBACvB,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,GAAG;IACpE,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;IACvD,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,IAAI;IACrC,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI;IACnB,QAAQ,IAAI,IAAI;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,OAAO,WAAW,UAAU,CAAC;IAC3B,KAAK,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;CACxF;AAED,SAAS,UAAU,CAAC"}
@@ -1,14 +0,0 @@
1
- declare class DataLoader<K, V, _C = K> {
2
- constructor(batchLoadFn: DataLoader.BatchLoadFn<K, V>, options?: any);
3
- load(key: K): Promise<V>;
4
- loadMany(keys: ArrayLike<K>): Promise<Array<V | Error>>;
5
- prime(key: K, value: V | Error): this;
6
- clear(key: K): this;
7
- clearAll(): this;
8
- [key: string]: any;
9
- }
10
- declare namespace DataLoader {
11
- type BatchLoadFn<K, V> = (keys: ReadonlyArray<K>) => PromiseLike<ArrayLike<V | Error>>;
12
- }
13
- export = DataLoader;
14
- //# sourceMappingURL=dataloader-types.d.ts.map