@datadog/vite-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.
- package/dist/reports/datadog-vite-plugin/build.json +381 -0
- package/dist/reports/datadog-vite-plugin/bundler.json +3155 -0
- package/dist/reports/datadog-vite-plugin/dependencies.json +1184 -0
- package/dist/reports/datadog-vite-plugin/errors.json +1 -0
- package/dist/reports/datadog-vite-plugin/logs.json +555 -0
- package/dist/reports/datadog-vite-plugin/metrics.json +7052 -0
- package/dist/reports/datadog-vite-plugin/timings.json +1689 -0
- package/dist/reports/datadog-vite-plugin/warnings.json +1 -0
- package/dist/reports/dts-datadog-vite-plugin/build.json +72 -0
- package/dist/reports/dts-datadog-vite-plugin/bundler.json +365 -0
- package/dist/reports/dts-datadog-vite-plugin/dependencies.json +267 -0
- package/dist/reports/dts-datadog-vite-plugin/errors.json +1 -0
- package/dist/reports/dts-datadog-vite-plugin/logs.json +366 -0
- package/dist/reports/dts-datadog-vite-plugin/timings.json +982 -0
- package/dist/reports/dts-datadog-vite-plugin/warnings.json +14 -0
- package/dist/reports/privacy-helpers/build.json +55 -0
- package/dist/reports/privacy-helpers/bundler.json +68 -0
- package/dist/reports/privacy-helpers/dependencies.json +10 -0
- package/dist/reports/privacy-helpers/errors.json +1 -0
- package/dist/reports/privacy-helpers/logs.json +303 -0
- package/dist/reports/privacy-helpers/timings.json +903 -0
- package/dist/reports/privacy-helpers/warnings.json +1 -0
- package/dist/reports/rum-browser-sdk/build.json +468 -0
- package/dist/reports/rum-browser-sdk/bundler.json +2502 -0
- package/dist/reports/rum-browser-sdk/dependencies.json +3347 -0
- package/dist/reports/rum-browser-sdk/errors.json +1 -0
- package/dist/reports/rum-browser-sdk/logs.json +254 -0
- package/dist/reports/rum-browser-sdk/timings.json +2585 -0
- package/dist/reports/rum-browser-sdk/warnings.json +1 -0
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bundler": {
|
|
3
|
+
"name": "rollup",
|
|
4
|
+
"version": "4.45.1"
|
|
5
|
+
},
|
|
6
|
+
"metadata": {
|
|
7
|
+
"name": "dts:@datadog/vite-plugin"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"name": "index",
|
|
12
|
+
"filepath": "/home/runner/work/build-plugins/build-plugins/packages/published/vite-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/vite-plugin/src/index.ts",
|
|
31
|
+
"@datadog/browser-rum",
|
|
32
|
+
"unplugin",
|
|
33
|
+
"vite"
|
|
34
|
+
],
|
|
35
|
+
"size": 9457,
|
|
36
|
+
"type": "ts",
|
|
37
|
+
"outputs": [
|
|
38
|
+
"/home/runner/work/build-plugins/build-plugins/packages/published/vite-plugin/dist/src/index.d.ts"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"outputs": [
|
|
43
|
+
{
|
|
44
|
+
"name": "index.d.ts",
|
|
45
|
+
"filepath": "/home/runner/work/build-plugins/build-plugins/packages/published/vite-plugin/dist/src/index.d.ts",
|
|
46
|
+
"inputs": [
|
|
47
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/git/src/trackedFilesMatcher.ts",
|
|
48
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/types.ts",
|
|
49
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/constants.ts",
|
|
50
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/index.ts",
|
|
51
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/types.ts",
|
|
52
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/constants.ts",
|
|
53
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/index.ts",
|
|
54
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/constants.ts",
|
|
55
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/types.ts",
|
|
56
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/index.ts",
|
|
57
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/privacy/types.ts",
|
|
58
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/types.ts",
|
|
59
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/constants.ts",
|
|
60
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/index.ts",
|
|
61
|
+
"/home/runner/work/build-plugins/build-plugins/packages/core/src/constants.ts",
|
|
62
|
+
"/home/runner/work/build-plugins/build-plugins/packages/core/src/types.ts",
|
|
63
|
+
"/home/runner/work/build-plugins/build-plugins/packages/published/vite-plugin/src/index.ts",
|
|
64
|
+
"@datadog/browser-rum",
|
|
65
|
+
"unplugin",
|
|
66
|
+
"vite"
|
|
67
|
+
],
|
|
68
|
+
"size": 9457,
|
|
69
|
+
"type": "ts"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"index.d.ts": {
|
|
4
|
+
"exports": [
|
|
5
|
+
"ErrorTrackingTypes",
|
|
6
|
+
"MetricsTypes",
|
|
7
|
+
"OutputTypes",
|
|
8
|
+
"RumTypes",
|
|
9
|
+
"VitePluginOptions",
|
|
10
|
+
"datadogVitePlugin",
|
|
11
|
+
"helpers",
|
|
12
|
+
"version"
|
|
13
|
+
],
|
|
14
|
+
"facadeModuleId": "/home/runner/work/build-plugins/build-plugins/packages/published/vite-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/vite-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
|
+
"vite": [
|
|
51
|
+
"*"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"imports": [
|
|
55
|
+
"@datadog/browser-rum",
|
|
56
|
+
"unplugin",
|
|
57
|
+
"vite"
|
|
58
|
+
],
|
|
59
|
+
"modules": {
|
|
60
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/git/src/trackedFilesMatcher.ts": {
|
|
61
|
+
"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}",
|
|
62
|
+
"originalLength": 4379,
|
|
63
|
+
"removedExports": [],
|
|
64
|
+
"renderedExports": [
|
|
65
|
+
"TrackedFilesMatcher"
|
|
66
|
+
],
|
|
67
|
+
"renderedLength": 351
|
|
68
|
+
},
|
|
69
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/types.ts": {
|
|
70
|
+
"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};",
|
|
71
|
+
"originalLength": 1134,
|
|
72
|
+
"removedExports": [
|
|
73
|
+
"SourcemapsOptionsWithDefaults",
|
|
74
|
+
"ErrorTrackingOptionsWithDefaults",
|
|
75
|
+
"ErrorTrackingOptionsWithSourcemaps",
|
|
76
|
+
"Sourcemap"
|
|
77
|
+
],
|
|
78
|
+
"renderedExports": [
|
|
79
|
+
"MinifiedPathPrefix",
|
|
80
|
+
"SourcemapsOptions",
|
|
81
|
+
"ErrorTrackingOptions"
|
|
82
|
+
],
|
|
83
|
+
"renderedLength": 374
|
|
84
|
+
},
|
|
85
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/constants.ts": {
|
|
86
|
+
"code": "declare const CONFIG_KEY$3: \"errorTracking\";",
|
|
87
|
+
"originalLength": 413,
|
|
88
|
+
"removedExports": [
|
|
89
|
+
"PLUGIN_NAME"
|
|
90
|
+
],
|
|
91
|
+
"renderedExports": [
|
|
92
|
+
"CONFIG_KEY"
|
|
93
|
+
],
|
|
94
|
+
"renderedLength": 44
|
|
95
|
+
},
|
|
96
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/error-tracking/src/index.ts": {
|
|
97
|
+
"code": "type types$3 = {\n ErrorTrackingOptions: ErrorTrackingOptions;\n};",
|
|
98
|
+
"originalLength": 2564,
|
|
99
|
+
"removedExports": [
|
|
100
|
+
"getPlugins"
|
|
101
|
+
],
|
|
102
|
+
"renderedExports": [
|
|
103
|
+
"types"
|
|
104
|
+
],
|
|
105
|
+
"renderedLength": 67
|
|
106
|
+
},
|
|
107
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/types.ts": {
|
|
108
|
+
"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};",
|
|
109
|
+
"originalLength": 2697,
|
|
110
|
+
"removedExports": [
|
|
111
|
+
"MetricsOptionsWithDefaults",
|
|
112
|
+
"ModuleGraph",
|
|
113
|
+
"Compilation",
|
|
114
|
+
"Chunk",
|
|
115
|
+
"Hook",
|
|
116
|
+
"Tapable",
|
|
117
|
+
"MonitoredTaps",
|
|
118
|
+
"TapablesResult",
|
|
119
|
+
"TapAsync",
|
|
120
|
+
"Tap",
|
|
121
|
+
"TapPromise",
|
|
122
|
+
"Hooks",
|
|
123
|
+
"Dependency",
|
|
124
|
+
"Module",
|
|
125
|
+
"Event"
|
|
126
|
+
],
|
|
127
|
+
"renderedExports": [
|
|
128
|
+
"Filter",
|
|
129
|
+
"MetricsOptions"
|
|
130
|
+
],
|
|
131
|
+
"renderedLength": 274
|
|
132
|
+
},
|
|
133
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/constants.ts": {
|
|
134
|
+
"code": "declare const CONFIG_KEY$2: \"metrics\";",
|
|
135
|
+
"originalLength": 400,
|
|
136
|
+
"removedExports": [
|
|
137
|
+
"PLUGIN_NAME"
|
|
138
|
+
],
|
|
139
|
+
"renderedExports": [
|
|
140
|
+
"CONFIG_KEY"
|
|
141
|
+
],
|
|
142
|
+
"renderedLength": 38
|
|
143
|
+
},
|
|
144
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/metrics/src/index.ts": {
|
|
145
|
+
"code": "type types$2 = {\n Filter: Filter;\n Metric: Metric;\n MetricsOptions: MetricsOptions;\n};",
|
|
146
|
+
"originalLength": 5053,
|
|
147
|
+
"removedExports": [
|
|
148
|
+
"PLUGIN_NAME",
|
|
149
|
+
"helpers",
|
|
150
|
+
"getPlugins"
|
|
151
|
+
],
|
|
152
|
+
"renderedExports": [
|
|
153
|
+
"CONFIG_KEY",
|
|
154
|
+
"types"
|
|
155
|
+
],
|
|
156
|
+
"renderedLength": 95
|
|
157
|
+
},
|
|
158
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/constants.ts": {
|
|
159
|
+
"code": "declare const CONFIG_KEY$1: \"output\";\ndeclare const FILE_KEYS: readonly [\"build\", \"bundler\", \"dependencies\", \"errors\", \"logs\", \"metrics\", \"timings\", \"warnings\"];",
|
|
160
|
+
"originalLength": 557,
|
|
161
|
+
"removedExports": [
|
|
162
|
+
"PLUGIN_NAME"
|
|
163
|
+
],
|
|
164
|
+
"renderedExports": [
|
|
165
|
+
"CONFIG_KEY",
|
|
166
|
+
"FILE_KEYS"
|
|
167
|
+
],
|
|
168
|
+
"renderedLength": 161
|
|
169
|
+
},
|
|
170
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/types.ts": {
|
|
171
|
+
"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};",
|
|
172
|
+
"originalLength": 760,
|
|
173
|
+
"removedExports": [
|
|
174
|
+
"DefaultFileValue",
|
|
175
|
+
"OutputOptionsWithDefaults"
|
|
176
|
+
],
|
|
177
|
+
"renderedExports": [
|
|
178
|
+
"FileKey",
|
|
179
|
+
"FileValue",
|
|
180
|
+
"OutputOptions"
|
|
181
|
+
],
|
|
182
|
+
"renderedLength": 201
|
|
183
|
+
},
|
|
184
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/output/src/index.ts": {
|
|
185
|
+
"code": "type types$1 = {\n OutputOptions: OutputOptions;\n};",
|
|
186
|
+
"originalLength": 6364,
|
|
187
|
+
"removedExports": [
|
|
188
|
+
"PLUGIN_NAME",
|
|
189
|
+
"helpers",
|
|
190
|
+
"getFilePath",
|
|
191
|
+
"getPlugins"
|
|
192
|
+
],
|
|
193
|
+
"renderedExports": [
|
|
194
|
+
"CONFIG_KEY",
|
|
195
|
+
"types"
|
|
196
|
+
],
|
|
197
|
+
"renderedLength": 53
|
|
198
|
+
},
|
|
199
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/privacy/types.ts": {
|
|
200
|
+
"code": "interface PrivacyOptions {\n exclude?: RegExp[] | string[];\n include?: RegExp[] | string[];\n addToDictionaryFunctionName?: string;\n helperCodeExpression?: string;\n}",
|
|
201
|
+
"originalLength": 615,
|
|
202
|
+
"removedExports": [
|
|
203
|
+
"PrivacyOptionsWithDefaults"
|
|
204
|
+
],
|
|
205
|
+
"renderedExports": [
|
|
206
|
+
"PrivacyOptions"
|
|
207
|
+
],
|
|
208
|
+
"renderedLength": 175
|
|
209
|
+
},
|
|
210
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/types.ts": {
|
|
211
|
+
"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}>;",
|
|
212
|
+
"originalLength": 1847,
|
|
213
|
+
"removedExports": [
|
|
214
|
+
"SDKOptionsWithDefaults",
|
|
215
|
+
"RumOptionsWithDefaults",
|
|
216
|
+
"RumOptionsWithSdk"
|
|
217
|
+
],
|
|
218
|
+
"renderedExports": [
|
|
219
|
+
"RumOptions",
|
|
220
|
+
"RumPublicApi",
|
|
221
|
+
"RumInitConfiguration",
|
|
222
|
+
"SDKOptions"
|
|
223
|
+
],
|
|
224
|
+
"renderedLength": 266
|
|
225
|
+
},
|
|
226
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/constants.ts": {
|
|
227
|
+
"code": "declare const CONFIG_KEY: \"rum\";",
|
|
228
|
+
"originalLength": 392,
|
|
229
|
+
"removedExports": [
|
|
230
|
+
"PLUGIN_NAME"
|
|
231
|
+
],
|
|
232
|
+
"renderedExports": [
|
|
233
|
+
"CONFIG_KEY"
|
|
234
|
+
],
|
|
235
|
+
"renderedLength": 32
|
|
236
|
+
},
|
|
237
|
+
"/home/runner/work/build-plugins/build-plugins/packages/plugins/rum/src/index.ts": {
|
|
238
|
+
"code": "type types = {\n RumOptions: RumOptions;\n RumPublicApi: RumPublicApi;\n RumInitConfiguration: RumInitConfiguration;\n};",
|
|
239
|
+
"originalLength": 2460,
|
|
240
|
+
"removedExports": [
|
|
241
|
+
"PLUGIN_NAME",
|
|
242
|
+
"helpers",
|
|
243
|
+
"getPlugins"
|
|
244
|
+
],
|
|
245
|
+
"renderedExports": [
|
|
246
|
+
"CONFIG_KEY",
|
|
247
|
+
"types"
|
|
248
|
+
],
|
|
249
|
+
"renderedLength": 125
|
|
250
|
+
},
|
|
251
|
+
"/home/runner/work/build-plugins/build-plugins/packages/core/src/constants.ts": {
|
|
252
|
+
"code": "declare const ALL_ENVS: readonly [\"development\", \"production\", \"test\"];\ndeclare const SUPPORTED_BUNDLERS: readonly [\"webpack\", \"vite\", \"esbuild\", \"rollup\", \"rspack\"];",
|
|
253
|
+
"originalLength": 736,
|
|
254
|
+
"removedExports": [
|
|
255
|
+
"INJECTED_FILE",
|
|
256
|
+
"INJECTED_FILE_RX",
|
|
257
|
+
"ALL_BUNDLERS",
|
|
258
|
+
"ENV_VAR_REQUESTED_BUNDLERS",
|
|
259
|
+
"HOST_NAME"
|
|
260
|
+
],
|
|
261
|
+
"renderedExports": [
|
|
262
|
+
"ALL_ENVS",
|
|
263
|
+
"SUPPORTED_BUNDLERS"
|
|
264
|
+
],
|
|
265
|
+
"renderedLength": 166
|
|
266
|
+
},
|
|
267
|
+
"/home/runner/work/build-plugins/build-plugins/packages/core/src/types.ts": {
|
|
268
|
+
"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}",
|
|
269
|
+
"originalLength": 9865,
|
|
270
|
+
"removedExports": [
|
|
271
|
+
"IterableElement",
|
|
272
|
+
"SerializedEntry",
|
|
273
|
+
"SerializedInput",
|
|
274
|
+
"SerializedOutput",
|
|
275
|
+
"MetricToSend",
|
|
276
|
+
"SerializedBuildReport",
|
|
277
|
+
"FactoryMeta",
|
|
278
|
+
"GetPlugins",
|
|
279
|
+
"GetInternalPlugins",
|
|
280
|
+
"GetWrappedPlugins",
|
|
281
|
+
"RequestOpts",
|
|
282
|
+
"ResolvedEntry",
|
|
283
|
+
"LocalAppendOptions",
|
|
284
|
+
"FileValidity"
|
|
285
|
+
],
|
|
286
|
+
"renderedExports": [
|
|
287
|
+
"Assign",
|
|
288
|
+
"WithRequired",
|
|
289
|
+
"RepositoryData",
|
|
290
|
+
"FileReport",
|
|
291
|
+
"Input",
|
|
292
|
+
"Output",
|
|
293
|
+
"Entry",
|
|
294
|
+
"Metric",
|
|
295
|
+
"Log",
|
|
296
|
+
"LogTags",
|
|
297
|
+
"Timer",
|
|
298
|
+
"BuildMetadata",
|
|
299
|
+
"BuildReport",
|
|
300
|
+
"BundlerName",
|
|
301
|
+
"BundlerReport",
|
|
302
|
+
"InjectedValue",
|
|
303
|
+
"InjectPosition",
|
|
304
|
+
"ToInjectItem",
|
|
305
|
+
"TimeLogger",
|
|
306
|
+
"TimeLog",
|
|
307
|
+
"GetLogger",
|
|
308
|
+
"LogOptions",
|
|
309
|
+
"LoggerFn",
|
|
310
|
+
"Logger",
|
|
311
|
+
"LogData",
|
|
312
|
+
"DdLogOptions",
|
|
313
|
+
"Env",
|
|
314
|
+
"TriggerHook",
|
|
315
|
+
"GlobalContext",
|
|
316
|
+
"HookFn",
|
|
317
|
+
"AsyncHookFn",
|
|
318
|
+
"CustomHooks",
|
|
319
|
+
"PluginOptions",
|
|
320
|
+
"CustomPluginOptions",
|
|
321
|
+
"GetPluginsArg",
|
|
322
|
+
"GetCustomPlugins",
|
|
323
|
+
"LogLevel",
|
|
324
|
+
"AuthOptions",
|
|
325
|
+
"AuthOptionsWithDefaults",
|
|
326
|
+
"BaseOptions",
|
|
327
|
+
"Options",
|
|
328
|
+
"OptionsWithDefaults",
|
|
329
|
+
"PluginName",
|
|
330
|
+
"GlobalData",
|
|
331
|
+
"GlobalStores",
|
|
332
|
+
"TAP_TYPES",
|
|
333
|
+
"ValueContext",
|
|
334
|
+
"Value",
|
|
335
|
+
"Timing",
|
|
336
|
+
"TimingsMap",
|
|
337
|
+
"TimingsReport"
|
|
338
|
+
],
|
|
339
|
+
"renderedLength": 6390
|
|
340
|
+
},
|
|
341
|
+
"/home/runner/work/build-plugins/build-plugins/packages/published/vite-plugin/src/index.ts": {
|
|
342
|
+
"code": "type VitePluginOptions = Options;\n\ndeclare const datadogVitePlugin: (options: Options) => vite.Plugin<any>[];\ndeclare const version: string;\ndeclare const helpers: {\n metrics: {\n filters: ((metric: Metric) => Metric | null)[];\n };\n};",
|
|
343
|
+
"originalLength": 1117,
|
|
344
|
+
"removedExports": [],
|
|
345
|
+
"renderedExports": [
|
|
346
|
+
"ErrorTrackingTypes",
|
|
347
|
+
"MetricsTypes",
|
|
348
|
+
"OutputTypes",
|
|
349
|
+
"RumTypes",
|
|
350
|
+
"VitePluginOptions",
|
|
351
|
+
"datadogVitePlugin",
|
|
352
|
+
"version",
|
|
353
|
+
"helpers"
|
|
354
|
+
],
|
|
355
|
+
"renderedLength": 246
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"referencedFiles": [],
|
|
359
|
+
"code": "import { RumInitConfiguration as RumInitConfiguration$1, datadogRum } from '@datadog/browser-rum';\nimport { UnpluginOptions } from 'unplugin';\nimport * as vite from 'vite';\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 VitePluginOptions = Options;\n\ndeclare const datadogVitePlugin: (options: Options) => vite.Plugin<any>[];\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 types as RumTypes, type VitePluginOptions, datadogVitePlugin, helpers, version };\n",
|
|
360
|
+
"map": null,
|
|
361
|
+
"preliminaryFileName": "index.d.ts",
|
|
362
|
+
"sourcemapFileName": null
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
]
|