@datadog/rspack-plugin 3.0.3 → 3.0.5

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 (33) hide show
  1. package/dist/reports/datadog-rspack-plugin/build.json +381 -0
  2. package/dist/reports/datadog-rspack-plugin/bundler.json +3155 -0
  3. package/dist/reports/datadog-rspack-plugin/dependencies.json +1184 -0
  4. package/dist/reports/datadog-rspack-plugin/errors.json +1 -0
  5. package/dist/reports/datadog-rspack-plugin/logs.json +569 -0
  6. package/dist/reports/datadog-rspack-plugin/metrics.json +7052 -0
  7. package/dist/reports/datadog-rspack-plugin/timings.json +1689 -0
  8. package/dist/reports/datadog-rspack-plugin/warnings.json +1 -0
  9. package/dist/reports/dts-datadog-rspack-plugin/build.json +70 -0
  10. package/dist/reports/dts-datadog-rspack-plugin/bundler.json +362 -0
  11. package/dist/reports/dts-datadog-rspack-plugin/dependencies.json +258 -0
  12. package/dist/reports/dts-datadog-rspack-plugin/errors.json +1 -0
  13. package/dist/reports/dts-datadog-rspack-plugin/logs.json +324 -0
  14. package/dist/reports/dts-datadog-rspack-plugin/timings.json +983 -0
  15. package/dist/reports/dts-datadog-rspack-plugin/warnings.json +14 -0
  16. package/dist/reports/privacy-helpers/build.json +55 -0
  17. package/dist/reports/privacy-helpers/bundler.json +68 -0
  18. package/dist/reports/privacy-helpers/dependencies.json +10 -0
  19. package/dist/reports/privacy-helpers/errors.json +1 -0
  20. package/dist/reports/privacy-helpers/logs.json +303 -0
  21. package/dist/reports/privacy-helpers/timings.json +903 -0
  22. package/dist/reports/privacy-helpers/warnings.json +1 -0
  23. package/dist/reports/rum-browser-sdk/build.json +468 -0
  24. package/dist/reports/rum-browser-sdk/bundler.json +2502 -0
  25. package/dist/reports/rum-browser-sdk/dependencies.json +3347 -0
  26. package/dist/reports/rum-browser-sdk/errors.json +1 -0
  27. package/dist/reports/rum-browser-sdk/logs.json +254 -0
  28. package/dist/reports/rum-browser-sdk/timings.json +2585 -0
  29. package/dist/reports/rum-browser-sdk/warnings.json +1 -0
  30. package/dist/src/index.js +1 -1
  31. package/dist/src/index.js.map +1 -1
  32. package/dist/src/index.mjs +2 -2
  33. package/package.json +2 -2
@@ -0,0 +1,70 @@
1
+ {
2
+ "bundler": {
3
+ "name": "rollup",
4
+ "version": "4.45.1"
5
+ },
6
+ "metadata": {
7
+ "name": "dts:@datadog/rspack-plugin"
8
+ },
9
+ "entries": [
10
+ {
11
+ "name": "index",
12
+ "filepath": "/home/runner/work/build-plugins/build-plugins/packages/published/rspack-plugin/dist/src/index.d.ts",
13
+ "inputs": [
14
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/git/src/trackedFilesMatcher.ts",
15
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/types.ts",
16
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/constants.ts",
17
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/index.ts",
18
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/types.ts",
19
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/constants.ts",
20
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/index.ts",
21
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/constants.ts",
22
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/types.ts",
23
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/index.ts",
24
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/privacy/types.ts",
25
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/types.ts",
26
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/constants.ts",
27
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/index.ts",
28
+ "/home/runner/work/build-plugins/build-plugins/packages/core/src/constants.ts",
29
+ "/home/runner/work/build-plugins/build-plugins/packages/core/src/types.ts",
30
+ "/home/runner/work/build-plugins/build-plugins/packages/published/rspack-plugin/src/index.ts",
31
+ "@datadog/browser-rum",
32
+ "unplugin"
33
+ ],
34
+ "size": 9484,
35
+ "type": "ts",
36
+ "outputs": [
37
+ "/home/runner/work/build-plugins/build-plugins/packages/published/rspack-plugin/dist/src/index.d.ts"
38
+ ]
39
+ }
40
+ ],
41
+ "outputs": [
42
+ {
43
+ "name": "index.d.ts",
44
+ "filepath": "/home/runner/work/build-plugins/build-plugins/packages/published/rspack-plugin/dist/src/index.d.ts",
45
+ "inputs": [
46
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/git/src/trackedFilesMatcher.ts",
47
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/types.ts",
48
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/constants.ts",
49
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/index.ts",
50
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/types.ts",
51
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/constants.ts",
52
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/index.ts",
53
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/constants.ts",
54
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/types.ts",
55
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/index.ts",
56
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/privacy/types.ts",
57
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/types.ts",
58
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/constants.ts",
59
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/index.ts",
60
+ "/home/runner/work/build-plugins/build-plugins/packages/core/src/constants.ts",
61
+ "/home/runner/work/build-plugins/build-plugins/packages/core/src/types.ts",
62
+ "/home/runner/work/build-plugins/build-plugins/packages/published/rspack-plugin/src/index.ts",
63
+ "@datadog/browser-rum",
64
+ "unplugin"
65
+ ],
66
+ "size": 9484,
67
+ "type": "ts"
68
+ }
69
+ ]
70
+ }
@@ -0,0 +1,362 @@
1
+ [
2
+ {
3
+ "index.d.ts": {
4
+ "exports": [
5
+ "ErrorTrackingTypes",
6
+ "MetricsTypes",
7
+ "OutputTypes",
8
+ "RspackPluginOptions",
9
+ "RumTypes",
10
+ "datadogRspackPlugin",
11
+ "helpers",
12
+ "version"
13
+ ],
14
+ "facadeModuleId": "/home/runner/work/build-plugins/build-plugins/packages/published/rspack-plugin/src/index.ts",
15
+ "isDynamicEntry": false,
16
+ "isEntry": true,
17
+ "isImplicitEntry": false,
18
+ "moduleIds": [
19
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/git/src/trackedFilesMatcher.ts",
20
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/types.ts",
21
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/constants.ts",
22
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/index.ts",
23
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/types.ts",
24
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/constants.ts",
25
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/index.ts",
26
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/constants.ts",
27
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/types.ts",
28
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/index.ts",
29
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/privacy/types.ts",
30
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/types.ts",
31
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/constants.ts",
32
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/index.ts",
33
+ "/home/runner/work/build-plugins/build-plugins/packages/core/src/constants.ts",
34
+ "/home/runner/work/build-plugins/build-plugins/packages/core/src/types.ts",
35
+ "/home/runner/work/build-plugins/build-plugins/packages/published/rspack-plugin/src/index.ts"
36
+ ],
37
+ "name": "index",
38
+ "type": "chunk",
39
+ "dynamicImports": [],
40
+ "fileName": "index.d.ts",
41
+ "implicitlyLoadedBefore": [],
42
+ "importedBindings": {
43
+ "@datadog/browser-rum": [
44
+ "RumInitConfiguration",
45
+ "datadogRum"
46
+ ],
47
+ "unplugin": [
48
+ "UnpluginOptions",
49
+ "*"
50
+ ]
51
+ },
52
+ "imports": [
53
+ "@datadog/browser-rum",
54
+ "unplugin"
55
+ ],
56
+ "modules": {
57
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/git/src/trackedFilesMatcher.ts": {
58
+ "code": "declare class TrackedFilesMatcher {\n private trackedFilenames;\n constructor(trackedFiles: string[]);\n private displaySource;\n matchSourcemap(srcmapPath: string, onSourcesNotFound: (reason: string) => void): string[] | undefined;\n matchSources(sources: string[]): string[];\n rawTrackedFilesList(): string[];\n private getFilename;\n}",
59
+ "originalLength": 4379,
60
+ "removedExports": [],
61
+ "renderedExports": [
62
+ "TrackedFilesMatcher"
63
+ ],
64
+ "renderedLength": 351
65
+ },
66
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/types.ts": {
67
+ "code": "type MinifiedPathPrefix = `http://${string}` | `https://${string}` | `/${string}`;\ntype SourcemapsOptions = {\n bailOnError?: boolean;\n dryRun?: boolean;\n maxConcurrency?: number;\n minifiedPathPrefix: MinifiedPathPrefix;\n releaseVersion: string;\n service: string;\n};\ntype ErrorTrackingOptions = {\n enable?: boolean;\n sourcemaps?: SourcemapsOptions;\n};",
68
+ "originalLength": 1134,
69
+ "removedExports": [
70
+ "SourcemapsOptionsWithDefaults",
71
+ "ErrorTrackingOptionsWithDefaults",
72
+ "ErrorTrackingOptionsWithSourcemaps",
73
+ "Sourcemap"
74
+ ],
75
+ "renderedExports": [
76
+ "MinifiedPathPrefix",
77
+ "SourcemapsOptions",
78
+ "ErrorTrackingOptions"
79
+ ],
80
+ "renderedLength": 374
81
+ },
82
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/constants.ts": {
83
+ "code": "declare const CONFIG_KEY$3: \"errorTracking\";",
84
+ "originalLength": 413,
85
+ "removedExports": [
86
+ "PLUGIN_NAME"
87
+ ],
88
+ "renderedExports": [
89
+ "CONFIG_KEY"
90
+ ],
91
+ "renderedLength": 44
92
+ },
93
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/index.ts": {
94
+ "code": "type types$3 = {\n ErrorTrackingOptions: ErrorTrackingOptions;\n};",
95
+ "originalLength": 2564,
96
+ "removedExports": [
97
+ "getPlugins"
98
+ ],
99
+ "renderedExports": [
100
+ "types"
101
+ ],
102
+ "renderedLength": 67
103
+ },
104
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/types.ts": {
105
+ "code": "type Filter = (metric: Metric) => Metric | null;\ntype MetricsOptions = {\n enable?: boolean;\n enableDefaultPrefix?: boolean;\n /** @deprecated */\n enableTracing?: boolean;\n filters?: Filter[];\n prefix?: string;\n tags?: string[];\n timestamp?: number;\n};",
106
+ "originalLength": 2697,
107
+ "removedExports": [
108
+ "MetricsOptionsWithDefaults",
109
+ "ModuleGraph",
110
+ "Compilation",
111
+ "Chunk",
112
+ "Hook",
113
+ "Tapable",
114
+ "MonitoredTaps",
115
+ "TapablesResult",
116
+ "TapAsync",
117
+ "Tap",
118
+ "TapPromise",
119
+ "Hooks",
120
+ "Dependency",
121
+ "Module",
122
+ "Event"
123
+ ],
124
+ "renderedExports": [
125
+ "Filter",
126
+ "MetricsOptions"
127
+ ],
128
+ "renderedLength": 274
129
+ },
130
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/constants.ts": {
131
+ "code": "declare const CONFIG_KEY$2: \"metrics\";",
132
+ "originalLength": 400,
133
+ "removedExports": [
134
+ "PLUGIN_NAME"
135
+ ],
136
+ "renderedExports": [
137
+ "CONFIG_KEY"
138
+ ],
139
+ "renderedLength": 38
140
+ },
141
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/index.ts": {
142
+ "code": "type types$2 = {\n Filter: Filter;\n Metric: Metric;\n MetricsOptions: MetricsOptions;\n};",
143
+ "originalLength": 5053,
144
+ "removedExports": [
145
+ "PLUGIN_NAME",
146
+ "helpers",
147
+ "getPlugins"
148
+ ],
149
+ "renderedExports": [
150
+ "CONFIG_KEY",
151
+ "types"
152
+ ],
153
+ "renderedLength": 95
154
+ },
155
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/constants.ts": {
156
+ "code": "declare const CONFIG_KEY$1: \"output\";\ndeclare const FILE_KEYS: readonly [\"build\", \"bundler\", \"dependencies\", \"errors\", \"logs\", \"metrics\", \"timings\", \"warnings\"];",
157
+ "originalLength": 557,
158
+ "removedExports": [
159
+ "PLUGIN_NAME"
160
+ ],
161
+ "renderedExports": [
162
+ "CONFIG_KEY",
163
+ "FILE_KEYS"
164
+ ],
165
+ "renderedLength": 161
166
+ },
167
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/types.ts": {
168
+ "code": "type FileKey = (typeof FILE_KEYS)[number];\ntype FileValue = boolean | string;\ntype OutputOptions = {\n enable?: boolean;\n files?: {\n [K in FileKey]?: FileValue;\n };\n path?: string;\n};",
169
+ "originalLength": 760,
170
+ "removedExports": [
171
+ "DefaultFileValue",
172
+ "OutputOptionsWithDefaults"
173
+ ],
174
+ "renderedExports": [
175
+ "FileKey",
176
+ "FileValue",
177
+ "OutputOptions"
178
+ ],
179
+ "renderedLength": 201
180
+ },
181
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/index.ts": {
182
+ "code": "type types$1 = {\n OutputOptions: OutputOptions;\n};",
183
+ "originalLength": 6364,
184
+ "removedExports": [
185
+ "PLUGIN_NAME",
186
+ "helpers",
187
+ "getFilePath",
188
+ "getPlugins"
189
+ ],
190
+ "renderedExports": [
191
+ "CONFIG_KEY",
192
+ "types"
193
+ ],
194
+ "renderedLength": 53
195
+ },
196
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/privacy/types.ts": {
197
+ "code": "interface PrivacyOptions {\n exclude?: RegExp[] | string[];\n include?: RegExp[] | string[];\n addToDictionaryFunctionName?: string;\n helperCodeExpression?: string;\n}",
198
+ "originalLength": 615,
199
+ "removedExports": [
200
+ "PrivacyOptionsWithDefaults"
201
+ ],
202
+ "renderedExports": [
203
+ "PrivacyOptions"
204
+ ],
205
+ "renderedLength": 175
206
+ },
207
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/types.ts": {
208
+ "code": "type RumOptions = {\n enable?: boolean;\n sdk?: SDKOptions;\n privacy?: PrivacyOptions;\n};\ntype RumPublicApi = typeof datadogRum;\ntype RumInitConfiguration = RumInitConfiguration$1;\ntype SDKOptions = Assign<RumInitConfiguration, {\n clientToken?: string;\n}>;",
209
+ "originalLength": 1847,
210
+ "removedExports": [
211
+ "SDKOptionsWithDefaults",
212
+ "RumOptionsWithDefaults",
213
+ "RumOptionsWithSdk"
214
+ ],
215
+ "renderedExports": [
216
+ "RumOptions",
217
+ "RumPublicApi",
218
+ "RumInitConfiguration",
219
+ "SDKOptions"
220
+ ],
221
+ "renderedLength": 266
222
+ },
223
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/constants.ts": {
224
+ "code": "declare const CONFIG_KEY: \"rum\";",
225
+ "originalLength": 392,
226
+ "removedExports": [
227
+ "PLUGIN_NAME"
228
+ ],
229
+ "renderedExports": [
230
+ "CONFIG_KEY"
231
+ ],
232
+ "renderedLength": 32
233
+ },
234
+ "/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/index.ts": {
235
+ "code": "type types = {\n RumOptions: RumOptions;\n RumPublicApi: RumPublicApi;\n RumInitConfiguration: RumInitConfiguration;\n};",
236
+ "originalLength": 2460,
237
+ "removedExports": [
238
+ "PLUGIN_NAME",
239
+ "helpers",
240
+ "getPlugins"
241
+ ],
242
+ "renderedExports": [
243
+ "CONFIG_KEY",
244
+ "types"
245
+ ],
246
+ "renderedLength": 125
247
+ },
248
+ "/home/runner/work/build-plugins/build-plugins/packages/core/src/constants.ts": {
249
+ "code": "declare const ALL_ENVS: readonly [\"development\", \"production\", \"test\"];\ndeclare const SUPPORTED_BUNDLERS: readonly [\"webpack\", \"vite\", \"esbuild\", \"rollup\", \"rspack\"];",
250
+ "originalLength": 736,
251
+ "removedExports": [
252
+ "INJECTED_FILE",
253
+ "INJECTED_FILE_RX",
254
+ "ALL_BUNDLERS",
255
+ "ENV_VAR_REQUESTED_BUNDLERS",
256
+ "HOST_NAME"
257
+ ],
258
+ "renderedExports": [
259
+ "ALL_ENVS",
260
+ "SUPPORTED_BUNDLERS"
261
+ ],
262
+ "renderedLength": 166
263
+ },
264
+ "/home/runner/work/build-plugins/build-plugins/packages/core/src/types.ts": {
265
+ "code": "type Assign<A, B> = Omit<A, keyof B> & B;\ntype WithRequired<T, K extends keyof T> = T & {\n [P in K]-?: T[P];\n};\ninterface RepositoryData {\n commit: {\n hash: string;\n message: string;\n author: {\n name: string;\n email: string;\n date: string;\n };\n committer: {\n name: string;\n email: string;\n date: string;\n };\n };\n hash: string;\n branch: string;\n remote: string;\n trackedFilesMatcher: TrackedFilesMatcher;\n}\ntype FileReport = {\n filepath: string;\n name: string;\n size: number;\n type: string;\n};\ntype Input = FileReport & {\n dependencies: Set<Input>;\n dependents: Set<Input>;\n};\ntype Output = FileReport & {\n inputs: (Input | Output)[];\n};\ntype Entry = Output & {\n outputs: Output[];\n};\ninterface Metric {\n metric: string;\n type: 'count' | 'size' | 'duration';\n points: [number, number][];\n tags: string[];\n}\ntype Log = {\n bundler?: BundlerName;\n pluginName: string;\n type: LogLevel;\n message: string;\n time: number;\n};\ntype LogTags = string[];\ntype Timer = {\n label: string;\n pluginName: string;\n spans: {\n start: number;\n end?: number;\n tags: LogTags;\n }[];\n tags: LogTags;\n total: number;\n logLevel: LogLevel;\n};\ntype BuildMetadata = {\n name?: string;\n};\ntype BuildReport = {\n bundler: GlobalData['bundler'];\n errors: GlobalStores['errors'];\n warnings: GlobalStores['warnings'];\n logs: GlobalStores['logs'];\n timings: GlobalStores['timings'];\n metadata: GlobalData['metadata'];\n entries?: Entry[];\n inputs?: Input[];\n outputs?: Output[];\n start?: number;\n end?: number;\n duration?: number;\n writeDuration?: number;\n};\ntype BundlerName = (typeof SUPPORTED_BUNDLERS)[number];\ntype BundlerReport = GlobalData['bundler'] & {\n outDir: string;\n rawConfig?: any;\n};\ntype InjectedValue = string | (() => Promise<string>);\ndeclare enum InjectPosition {\n BEFORE = 0,\n MIDDLE = 1,\n AFTER = 2\n}\ntype ToInjectItem = {\n type: 'file' | 'code';\n value: InjectedValue;\n position?: InjectPosition;\n fallback?: ToInjectItem;\n};\ntype TimeLogger = {\n timer: Timer;\n resume: (startTime?: number) => void;\n end: (endTime?: number) => void;\n pause: (pauseTime?: number, warn?: boolean) => void;\n tag: (tags: LogTags, opts?: {\n span?: boolean;\n }) => void;\n};\ntype TimeLog = (label: string, opts?: {\n level?: LogLevel;\n start?: boolean | number;\n log?: boolean;\n tags?: LogTags;\n}) => TimeLogger;\ntype GetLogger = (name: string) => Logger;\ntype LogOptions = {\n forward?: boolean;\n};\ntype LoggerFn = (text: any, opts?: LogOptions) => void;\ntype Logger = {\n getLogger: GetLogger;\n time: TimeLog;\n error: LoggerFn;\n warn: LoggerFn;\n info: LoggerFn;\n debug: LoggerFn;\n};\ntype RestContext = string | string[] | number | boolean;\ntype LogData = Record<string, RestContext | Record<string, RestContext>>;\ntype DdLogOptions = {\n message: string;\n context?: LogData;\n};\ntype Env = (typeof ALL_ENVS)[number];\ntype TriggerHook<R> = <K extends keyof CustomHooks>(name: K, ...args: Parameters<NonNullable<CustomHooks[K]>>) => R;\ntype GlobalContext = {\n asyncHook: TriggerHook<Promise<void[]>>;\n auth: AuthOptionsWithDefaults;\n build: BuildReport;\n bundler: BundlerReport;\n buildRoot: string;\n env: GlobalData['env'];\n getLogger: GetLogger;\n git?: RepositoryData;\n hook: TriggerHook<void>;\n inject: (item: ToInjectItem) => void;\n pluginNames: string[];\n plugins: (PluginOptions | CustomPluginOptions)[];\n queue: (promise: Promise<any>) => void;\n sendLog: (args: DdLogOptions) => Promise<void>;\n start: number;\n version: GlobalData['version'];\n};\ntype HookFn<T extends Array<any>> = (...args: T) => void;\ntype AsyncHookFn<T extends Array<any>> = (...args: T) => Promise<void> | void;\ntype CustomHooks = {\n asyncTrueEnd?: () => Promise<void> | void;\n buildRoot?: HookFn<[string]>;\n init?: HookFn<[GlobalContext]>;\n buildReport?: AsyncHookFn<[BuildReport]>;\n bundlerReport?: HookFn<[BundlerReport]>;\n git?: AsyncHookFn<[RepositoryData]>;\n metrics?: AsyncHookFn<[Set<Metric>]>;\n syncTrueEnd?: () => void;\n timings?: AsyncHookFn<[TimingsReport]>;\n};\ntype PluginOptions = Assign<UnpluginOptions & CustomHooks, {\n name: PluginName;\n}>;\ntype CustomPluginOptions = Assign<PluginOptions, {\n name: string;\n}>;\ntype GetPluginsArg = {\n bundler: any;\n context: GlobalContext;\n options: OptionsWithDefaults;\n data: GlobalData;\n stores: GlobalStores;\n};\ntype GetCustomPlugins = (arg: GetPluginsArg) => CustomPluginOptions[];\ntype LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none';\ntype AuthOptions = {\n apiKey?: string;\n appKey?: string;\n site?: string;\n};\ntype AuthOptionsWithDefaults = WithRequired<AuthOptions, 'site'>;\ninterface BaseOptions {\n auth?: AuthOptions;\n metadata?: BuildMetadata;\n enableGit?: boolean;\n logLevel?: LogLevel;\n}\ninterface Options extends BaseOptions {\n [CONFIG_KEY$3]?: ErrorTrackingOptions;\n [CONFIG_KEY$2]?: MetricsOptions;\n [CONFIG_KEY$1]?: OutputOptions;\n [CONFIG_KEY]?: RumOptions;\n customPlugins?: GetCustomPlugins;\n}\ntype OptionsWithDefaults = Assign<Assign<Options, Required<BaseOptions>>, {\n auth: AuthOptionsWithDefaults;\n}>;\ntype PluginName = `datadog-${Lowercase<string>}-plugin`;\ntype GlobalData = {\n bundler: {\n name: BundlerName;\n version: string;\n };\n env: Env;\n metadata: BuildMetadata;\n packageName: string;\n version: string;\n};\ntype GlobalStores = {\n errors: string[];\n logs: Log[];\n queue: Promise<any>[];\n timings: Timer[];\n warnings: string[];\n};\ntype TAP_TYPES = 'default' | 'async' | 'promise';\ninterface ValueContext {\n type: string;\n name: string;\n value?: string;\n}\ninterface Value {\n start: number;\n end: number;\n duration: number;\n context?: ValueContext[];\n type?: TAP_TYPES;\n}\ninterface Timing {\n name: string;\n duration: number;\n increment: number;\n events: {\n [key: string]: {\n name: string;\n values: Value[];\n };\n };\n}\ntype TimingsMap = Map<string, Timing>;\ninterface TimingsReport {\n tapables?: TimingsMap;\n loaders?: TimingsMap;\n modules?: TimingsMap;\n}",
266
+ "originalLength": 9865,
267
+ "removedExports": [
268
+ "IterableElement",
269
+ "SerializedEntry",
270
+ "SerializedInput",
271
+ "SerializedOutput",
272
+ "MetricToSend",
273
+ "SerializedBuildReport",
274
+ "FactoryMeta",
275
+ "GetPlugins",
276
+ "GetInternalPlugins",
277
+ "GetWrappedPlugins",
278
+ "RequestOpts",
279
+ "ResolvedEntry",
280
+ "LocalAppendOptions",
281
+ "FileValidity"
282
+ ],
283
+ "renderedExports": [
284
+ "Assign",
285
+ "WithRequired",
286
+ "RepositoryData",
287
+ "FileReport",
288
+ "Input",
289
+ "Output",
290
+ "Entry",
291
+ "Metric",
292
+ "Log",
293
+ "LogTags",
294
+ "Timer",
295
+ "BuildMetadata",
296
+ "BuildReport",
297
+ "BundlerName",
298
+ "BundlerReport",
299
+ "InjectedValue",
300
+ "InjectPosition",
301
+ "ToInjectItem",
302
+ "TimeLogger",
303
+ "TimeLog",
304
+ "GetLogger",
305
+ "LogOptions",
306
+ "LoggerFn",
307
+ "Logger",
308
+ "LogData",
309
+ "DdLogOptions",
310
+ "Env",
311
+ "TriggerHook",
312
+ "GlobalContext",
313
+ "HookFn",
314
+ "AsyncHookFn",
315
+ "CustomHooks",
316
+ "PluginOptions",
317
+ "CustomPluginOptions",
318
+ "GetPluginsArg",
319
+ "GetCustomPlugins",
320
+ "LogLevel",
321
+ "AuthOptions",
322
+ "AuthOptionsWithDefaults",
323
+ "BaseOptions",
324
+ "Options",
325
+ "OptionsWithDefaults",
326
+ "PluginName",
327
+ "GlobalData",
328
+ "GlobalStores",
329
+ "TAP_TYPES",
330
+ "ValueContext",
331
+ "Value",
332
+ "Timing",
333
+ "TimingsMap",
334
+ "TimingsReport"
335
+ ],
336
+ "renderedLength": 6390
337
+ },
338
+ "/home/runner/work/build-plugins/build-plugins/packages/published/rspack-plugin/src/index.ts": {
339
+ "code": "type RspackPluginOptions = Options;\n\ndeclare const datadogRspackPlugin: (options: Options) => unplugin.RspackPluginInstance;\ndeclare const version: string;\ndeclare const helpers: {\n metrics: {\n filters: ((metric: Metric) => Metric | null)[];\n };\n};",
340
+ "originalLength": 1130,
341
+ "removedExports": [],
342
+ "renderedExports": [
343
+ "ErrorTrackingTypes",
344
+ "MetricsTypes",
345
+ "OutputTypes",
346
+ "RumTypes",
347
+ "RspackPluginOptions",
348
+ "datadogRspackPlugin",
349
+ "version",
350
+ "helpers"
351
+ ],
352
+ "renderedLength": 261
353
+ }
354
+ },
355
+ "referencedFiles": [],
356
+ "code": "import { RumInitConfiguration as RumInitConfiguration$1, datadogRum } from '@datadog/browser-rum';\nimport * as unplugin from 'unplugin';\nimport { UnpluginOptions } from 'unplugin';\n\ndeclare class TrackedFilesMatcher {\n private trackedFilenames;\n constructor(trackedFiles: string[]);\n private displaySource;\n matchSourcemap(srcmapPath: string, onSourcesNotFound: (reason: string) => void): string[] | undefined;\n matchSources(sources: string[]): string[];\n rawTrackedFilesList(): string[];\n private getFilename;\n}\n\ntype MinifiedPathPrefix = `http://${string}` | `https://${string}` | `/${string}`;\ntype SourcemapsOptions = {\n bailOnError?: boolean;\n dryRun?: boolean;\n maxConcurrency?: number;\n minifiedPathPrefix: MinifiedPathPrefix;\n releaseVersion: string;\n service: string;\n};\ntype ErrorTrackingOptions = {\n enable?: boolean;\n sourcemaps?: SourcemapsOptions;\n};\n\ndeclare const CONFIG_KEY$3: \"errorTracking\";\n\ntype types$3 = {\n ErrorTrackingOptions: ErrorTrackingOptions;\n};\n\ntype Filter = (metric: Metric) => Metric | null;\ntype MetricsOptions = {\n enable?: boolean;\n enableDefaultPrefix?: boolean;\n /** @deprecated */\n enableTracing?: boolean;\n filters?: Filter[];\n prefix?: string;\n tags?: string[];\n timestamp?: number;\n};\n\ndeclare const CONFIG_KEY$2: \"metrics\";\n\ntype types$2 = {\n Filter: Filter;\n Metric: Metric;\n MetricsOptions: MetricsOptions;\n};\n\ndeclare const CONFIG_KEY$1: \"output\";\ndeclare const FILE_KEYS: readonly [\"build\", \"bundler\", \"dependencies\", \"errors\", \"logs\", \"metrics\", \"timings\", \"warnings\"];\n\ntype FileKey = (typeof FILE_KEYS)[number];\ntype FileValue = boolean | string;\ntype OutputOptions = {\n enable?: boolean;\n files?: {\n [K in FileKey]?: FileValue;\n };\n path?: string;\n};\n\ntype types$1 = {\n OutputOptions: OutputOptions;\n};\n\ninterface PrivacyOptions {\n exclude?: RegExp[] | string[];\n include?: RegExp[] | string[];\n addToDictionaryFunctionName?: string;\n helperCodeExpression?: string;\n}\n\ntype RumOptions = {\n enable?: boolean;\n sdk?: SDKOptions;\n privacy?: PrivacyOptions;\n};\ntype RumPublicApi = typeof datadogRum;\ntype RumInitConfiguration = RumInitConfiguration$1;\ntype SDKOptions = Assign<RumInitConfiguration, {\n clientToken?: string;\n}>;\n\ndeclare const CONFIG_KEY: \"rum\";\n\ntype types = {\n RumOptions: RumOptions;\n RumPublicApi: RumPublicApi;\n RumInitConfiguration: RumInitConfiguration;\n};\n\ndeclare const ALL_ENVS: readonly [\"development\", \"production\", \"test\"];\ndeclare const SUPPORTED_BUNDLERS: readonly [\"webpack\", \"vite\", \"esbuild\", \"rollup\", \"rspack\"];\n\ntype Assign<A, B> = Omit<A, keyof B> & B;\ntype WithRequired<T, K extends keyof T> = T & {\n [P in K]-?: T[P];\n};\ninterface RepositoryData {\n commit: {\n hash: string;\n message: string;\n author: {\n name: string;\n email: string;\n date: string;\n };\n committer: {\n name: string;\n email: string;\n date: string;\n };\n };\n hash: string;\n branch: string;\n remote: string;\n trackedFilesMatcher: TrackedFilesMatcher;\n}\ntype FileReport = {\n filepath: string;\n name: string;\n size: number;\n type: string;\n};\ntype Input = FileReport & {\n dependencies: Set<Input>;\n dependents: Set<Input>;\n};\ntype Output = FileReport & {\n inputs: (Input | Output)[];\n};\ntype Entry = Output & {\n outputs: Output[];\n};\ninterface Metric {\n metric: string;\n type: 'count' | 'size' | 'duration';\n points: [number, number][];\n tags: string[];\n}\ntype Log = {\n bundler?: BundlerName;\n pluginName: string;\n type: LogLevel;\n message: string;\n time: number;\n};\ntype LogTags = string[];\ntype Timer = {\n label: string;\n pluginName: string;\n spans: {\n start: number;\n end?: number;\n tags: LogTags;\n }[];\n tags: LogTags;\n total: number;\n logLevel: LogLevel;\n};\ntype BuildMetadata = {\n name?: string;\n};\ntype BuildReport = {\n bundler: GlobalData['bundler'];\n errors: GlobalStores['errors'];\n warnings: GlobalStores['warnings'];\n logs: GlobalStores['logs'];\n timings: GlobalStores['timings'];\n metadata: GlobalData['metadata'];\n entries?: Entry[];\n inputs?: Input[];\n outputs?: Output[];\n start?: number;\n end?: number;\n duration?: number;\n writeDuration?: number;\n};\ntype BundlerName = (typeof SUPPORTED_BUNDLERS)[number];\ntype BundlerReport = GlobalData['bundler'] & {\n outDir: string;\n rawConfig?: any;\n};\ntype InjectedValue = string | (() => Promise<string>);\ndeclare enum InjectPosition {\n BEFORE = 0,\n MIDDLE = 1,\n AFTER = 2\n}\ntype ToInjectItem = {\n type: 'file' | 'code';\n value: InjectedValue;\n position?: InjectPosition;\n fallback?: ToInjectItem;\n};\ntype TimeLogger = {\n timer: Timer;\n resume: (startTime?: number) => void;\n end: (endTime?: number) => void;\n pause: (pauseTime?: number, warn?: boolean) => void;\n tag: (tags: LogTags, opts?: {\n span?: boolean;\n }) => void;\n};\ntype TimeLog = (label: string, opts?: {\n level?: LogLevel;\n start?: boolean | number;\n log?: boolean;\n tags?: LogTags;\n}) => TimeLogger;\ntype GetLogger = (name: string) => Logger;\ntype LogOptions = {\n forward?: boolean;\n};\ntype LoggerFn = (text: any, opts?: LogOptions) => void;\ntype Logger = {\n getLogger: GetLogger;\n time: TimeLog;\n error: LoggerFn;\n warn: LoggerFn;\n info: LoggerFn;\n debug: LoggerFn;\n};\ntype RestContext = string | string[] | number | boolean;\ntype LogData = Record<string, RestContext | Record<string, RestContext>>;\ntype DdLogOptions = {\n message: string;\n context?: LogData;\n};\ntype Env = (typeof ALL_ENVS)[number];\ntype TriggerHook<R> = <K extends keyof CustomHooks>(name: K, ...args: Parameters<NonNullable<CustomHooks[K]>>) => R;\ntype GlobalContext = {\n asyncHook: TriggerHook<Promise<void[]>>;\n auth: AuthOptionsWithDefaults;\n build: BuildReport;\n bundler: BundlerReport;\n buildRoot: string;\n env: GlobalData['env'];\n getLogger: GetLogger;\n git?: RepositoryData;\n hook: TriggerHook<void>;\n inject: (item: ToInjectItem) => void;\n pluginNames: string[];\n plugins: (PluginOptions | CustomPluginOptions)[];\n queue: (promise: Promise<any>) => void;\n sendLog: (args: DdLogOptions) => Promise<void>;\n start: number;\n version: GlobalData['version'];\n};\ntype HookFn<T extends Array<any>> = (...args: T) => void;\ntype AsyncHookFn<T extends Array<any>> = (...args: T) => Promise<void> | void;\ntype CustomHooks = {\n asyncTrueEnd?: () => Promise<void> | void;\n buildRoot?: HookFn<[string]>;\n init?: HookFn<[GlobalContext]>;\n buildReport?: AsyncHookFn<[BuildReport]>;\n bundlerReport?: HookFn<[BundlerReport]>;\n git?: AsyncHookFn<[RepositoryData]>;\n metrics?: AsyncHookFn<[Set<Metric>]>;\n syncTrueEnd?: () => void;\n timings?: AsyncHookFn<[TimingsReport]>;\n};\ntype PluginOptions = Assign<UnpluginOptions & CustomHooks, {\n name: PluginName;\n}>;\ntype CustomPluginOptions = Assign<PluginOptions, {\n name: string;\n}>;\ntype GetPluginsArg = {\n bundler: any;\n context: GlobalContext;\n options: OptionsWithDefaults;\n data: GlobalData;\n stores: GlobalStores;\n};\ntype GetCustomPlugins = (arg: GetPluginsArg) => CustomPluginOptions[];\ntype LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none';\ntype AuthOptions = {\n apiKey?: string;\n appKey?: string;\n site?: string;\n};\ntype AuthOptionsWithDefaults = WithRequired<AuthOptions, 'site'>;\ninterface BaseOptions {\n auth?: AuthOptions;\n metadata?: BuildMetadata;\n enableGit?: boolean;\n logLevel?: LogLevel;\n}\ninterface Options extends BaseOptions {\n [CONFIG_KEY$3]?: ErrorTrackingOptions;\n [CONFIG_KEY$2]?: MetricsOptions;\n [CONFIG_KEY$1]?: OutputOptions;\n [CONFIG_KEY]?: RumOptions;\n customPlugins?: GetCustomPlugins;\n}\ntype OptionsWithDefaults = Assign<Assign<Options, Required<BaseOptions>>, {\n auth: AuthOptionsWithDefaults;\n}>;\ntype PluginName = `datadog-${Lowercase<string>}-plugin`;\ntype GlobalData = {\n bundler: {\n name: BundlerName;\n version: string;\n };\n env: Env;\n metadata: BuildMetadata;\n packageName: string;\n version: string;\n};\ntype GlobalStores = {\n errors: string[];\n logs: Log[];\n queue: Promise<any>[];\n timings: Timer[];\n warnings: string[];\n};\ntype TAP_TYPES = 'default' | 'async' | 'promise';\ninterface ValueContext {\n type: string;\n name: string;\n value?: string;\n}\ninterface Value {\n start: number;\n end: number;\n duration: number;\n context?: ValueContext[];\n type?: TAP_TYPES;\n}\ninterface Timing {\n name: string;\n duration: number;\n increment: number;\n events: {\n [key: string]: {\n name: string;\n values: Value[];\n };\n };\n}\ntype TimingsMap = Map<string, Timing>;\ninterface TimingsReport {\n tapables?: TimingsMap;\n loaders?: TimingsMap;\n modules?: TimingsMap;\n}\n\ntype RspackPluginOptions = Options;\n\ndeclare const datadogRspackPlugin: (options: Options) => unplugin.RspackPluginInstance;\ndeclare const version: string;\ndeclare const helpers: {\n metrics: {\n filters: ((metric: Metric) => Metric | null)[];\n };\n};\n\nexport { type types$3 as ErrorTrackingTypes, type types$2 as MetricsTypes, type types$1 as OutputTypes, type RspackPluginOptions, type types as RumTypes, datadogRspackPlugin, helpers, version };\n",
357
+ "map": null,
358
+ "preliminaryFileName": "index.d.ts",
359
+ "sourcemapFileName": null
360
+ }
361
+ }
362
+ ]