lighthouse 13.5.0 → 13.6.0-dev.20261028

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 (272) hide show
  1. package/.agents/skills/update-ard-port/SKILL.md +171 -0
  2. package/.agents/skills/update-trace-engine/SKILL.md +154 -0
  3. package/cli/bin.d.ts +2 -2
  4. package/cli/bin.js +5 -4
  5. package/cli/cli-flags.d.ts +16 -1
  6. package/cli/cli-flags.js +53 -2
  7. package/cli/printer.js +5 -8
  8. package/cli/run.d.ts +5 -5
  9. package/cli/run.js +97 -47
  10. package/cli/sentry-prompt.js +3 -4
  11. package/cli/test/smokehouse/__snapshots__/report-assert-test.js.snap +1 -1
  12. package/cli/test/smokehouse/config/exclusions.js +3 -1
  13. package/cli/test/smokehouse/frontends/smokehouse-bin.js +5 -3
  14. package/cli/test/smokehouse/report-assert-test.js +65 -0
  15. package/cli/test/smokehouse/report-assert.js +24 -39
  16. package/cli/test/smokehouse/smokehouse-test.d.ts +2 -0
  17. package/cli/test/smokehouse/smokehouse-test.js +120 -0
  18. package/cli/test/smokehouse/smokehouse.js +37 -15
  19. package/cli/test/smokehouse/version-check-test.js +5 -0
  20. package/cli/test/smokehouse/version-check.d.ts +1 -1
  21. package/cli/test/smokehouse/version-check.js +1 -1
  22. package/commitlint.config.js +1 -1
  23. package/core/audits/accessibility/accesskeys.js +1 -1
  24. package/core/audits/accessibility/aria-allowed-attr.js +1 -1
  25. package/core/audits/accessibility/aria-allowed-role.js +1 -1
  26. package/core/audits/accessibility/aria-command-name.js +1 -1
  27. package/core/audits/accessibility/aria-conditional-attr.js +1 -1
  28. package/core/audits/accessibility/aria-deprecated-role.js +1 -1
  29. package/core/audits/accessibility/aria-dialog-name.js +1 -1
  30. package/core/audits/accessibility/aria-hidden-body.js +1 -1
  31. package/core/audits/accessibility/aria-hidden-focus.js +1 -1
  32. package/core/audits/accessibility/aria-input-field-name.js +1 -1
  33. package/core/audits/accessibility/aria-meter-name.js +1 -1
  34. package/core/audits/accessibility/aria-progressbar-name.js +1 -1
  35. package/core/audits/accessibility/aria-prohibited-attr.js +1 -1
  36. package/core/audits/accessibility/aria-required-attr.js +1 -1
  37. package/core/audits/accessibility/aria-required-children.js +1 -1
  38. package/core/audits/accessibility/aria-required-parent.js +1 -1
  39. package/core/audits/accessibility/aria-roles.js +1 -1
  40. package/core/audits/accessibility/aria-text.js +1 -1
  41. package/core/audits/accessibility/aria-toggle-field-name.js +1 -1
  42. package/core/audits/accessibility/aria-tooltip-name.js +1 -1
  43. package/core/audits/accessibility/aria-treeitem-name.js +1 -1
  44. package/core/audits/accessibility/aria-valid-attr-value.js +1 -1
  45. package/core/audits/accessibility/aria-valid-attr.js +1 -1
  46. package/core/audits/accessibility/autocomplete-valid.js +1 -1
  47. package/core/audits/accessibility/button-name.js +1 -1
  48. package/core/audits/accessibility/bypass.js +1 -1
  49. package/core/audits/accessibility/color-contrast.js +1 -1
  50. package/core/audits/accessibility/definition-list.js +1 -1
  51. package/core/audits/accessibility/dlitem.js +1 -1
  52. package/core/audits/accessibility/document-title.js +1 -1
  53. package/core/audits/accessibility/duplicate-id-aria.js +1 -1
  54. package/core/audits/accessibility/empty-heading.js +1 -1
  55. package/core/audits/accessibility/form-field-multiple-labels.js +1 -1
  56. package/core/audits/accessibility/frame-title.js +1 -1
  57. package/core/audits/accessibility/heading-order.js +1 -1
  58. package/core/audits/accessibility/html-has-lang.js +1 -1
  59. package/core/audits/accessibility/html-lang-valid.js +1 -1
  60. package/core/audits/accessibility/html-xml-lang-mismatch.js +1 -1
  61. package/core/audits/accessibility/identical-links-same-purpose.js +1 -1
  62. package/core/audits/accessibility/image-alt.js +1 -1
  63. package/core/audits/accessibility/image-redundant-alt.js +1 -1
  64. package/core/audits/accessibility/input-button-name.js +1 -1
  65. package/core/audits/accessibility/input-image-alt.js +1 -1
  66. package/core/audits/accessibility/label-content-name-mismatch.js +1 -1
  67. package/core/audits/accessibility/label.js +1 -1
  68. package/core/audits/accessibility/landmark-one-main.js +1 -1
  69. package/core/audits/accessibility/link-in-text-block.js +1 -1
  70. package/core/audits/accessibility/link-name.js +1 -1
  71. package/core/audits/accessibility/list.js +1 -1
  72. package/core/audits/accessibility/listitem.js +1 -1
  73. package/core/audits/accessibility/meta-refresh.js +1 -1
  74. package/core/audits/accessibility/meta-viewport.js +1 -1
  75. package/core/audits/accessibility/object-alt.js +1 -1
  76. package/core/audits/accessibility/presentation-role-conflict.js +1 -1
  77. package/core/audits/accessibility/select-name.js +1 -1
  78. package/core/audits/accessibility/skip-link.js +1 -1
  79. package/core/audits/accessibility/svg-img-alt.js +1 -1
  80. package/core/audits/accessibility/tabindex.js +1 -1
  81. package/core/audits/accessibility/table-duplicate-name.js +1 -1
  82. package/core/audits/accessibility/table-fake-caption.js +1 -1
  83. package/core/audits/accessibility/target-size.js +1 -1
  84. package/core/audits/accessibility/td-has-header.js +1 -1
  85. package/core/audits/accessibility/td-headers-attr.js +1 -1
  86. package/core/audits/accessibility/th-has-data-cells.js +1 -1
  87. package/core/audits/accessibility/valid-lang.js +1 -1
  88. package/core/audits/accessibility/video-caption.js +1 -1
  89. package/core/audits/agentic/ard-schema.d.ts +13 -0
  90. package/core/audits/agentic/ard-schema.js +81 -33
  91. package/core/audits/agentic/llms-txt.js +5 -2
  92. package/core/audits/baseline.d.ts +29 -7
  93. package/core/audits/baseline.js +19 -6
  94. package/core/audits/byte-efficiency/byte-efficiency-audit.js +2 -2
  95. package/core/audits/insights/insight-audit.d.ts +9 -0
  96. package/core/audits/insights/insight-audit.js +35 -28
  97. package/core/audits/long-tasks.js +2 -1
  98. package/core/audits/predictive-perf.js +2 -2
  99. package/core/audits/screenshot-thumbnails.d.ts +0 -13
  100. package/core/audits/screenshot-thumbnails.js +0 -45
  101. package/core/audits/script-treemap-data.js +26 -6
  102. package/core/audits/seo/robots-txt.js +3 -8
  103. package/core/audits/unsized-images.d.ts +0 -7
  104. package/core/audits/unsized-images.js +7 -26
  105. package/core/computed/lcp-image-record.d.ts +2 -23
  106. package/core/computed/lcp-image-record.js +3 -67
  107. package/core/computed/lcp-network-record.d.ts +24 -0
  108. package/core/computed/lcp-network-record.js +74 -0
  109. package/core/computed/metrics/lantern-metric.js +1 -1
  110. package/core/computed/metrics/lcp-breakdown.js +6 -6
  111. package/core/computed/metrics/time-to-first-byte.js +5 -3
  112. package/core/computed/navigation-insights.js +3 -2
  113. package/core/computed/page-dependency-graph.js +55 -5
  114. package/core/computed/speedline.js +20 -5
  115. package/core/computed/trace-engine-result.js +25 -5
  116. package/core/computed/unused-css.js +15 -2
  117. package/core/config/config-helpers.d.ts +5 -0
  118. package/core/config/config-helpers.js +17 -28
  119. package/core/config/config-plugin.d.ts +7 -0
  120. package/core/config/config-plugin.js +49 -0
  121. package/core/config/config.js +10 -2
  122. package/core/config/constants.d.ts +2 -28
  123. package/core/config/filters.js +1 -0
  124. package/core/config/lr-desktop-config.js +13 -0
  125. package/core/config/lr-mobile-config.js +13 -0
  126. package/core/gather/base-artifacts.js +7 -1
  127. package/core/gather/driver/storage.js +3 -2
  128. package/core/gather/gatherers/agentic/ard.d.ts +59 -4
  129. package/core/gather/gatherers/agentic/ard.js +218 -56
  130. package/core/gather/gatherers/full-page-screenshot.js +2 -2
  131. package/core/gather/gatherers/image-elements.d.ts +7 -0
  132. package/core/gather/gatherers/image-elements.js +75 -24
  133. package/core/gather/gatherers/inspector-issues.js +2 -0
  134. package/core/gather/gatherers/js-usage.js +2 -0
  135. package/core/gather/gatherers/scripts.d.ts +16 -3
  136. package/core/gather/gatherers/scripts.js +157 -14
  137. package/core/gather/gatherers/stylesheets.js +2 -0
  138. package/core/gather/gatherers/trace-elements.js +2 -1
  139. package/core/gather/gatherers/trace.d.ts +6 -0
  140. package/core/gather/gatherers/trace.js +56 -16
  141. package/core/index.d.ts +2 -0
  142. package/core/index.js +2 -0
  143. package/core/lib/arbitrary-equality-map.d.ts +14 -3
  144. package/core/lib/arbitrary-equality-map.js +113 -6
  145. package/core/lib/baseline/web-features-data.json +32 -11
  146. package/core/lib/baseline/web-features-metadata.json +1 -1
  147. package/core/lib/bf-cache-strings.js +237 -254
  148. package/core/lib/cdt/Common.d.ts +1 -1
  149. package/core/lib/cdt/Common.js +2 -2
  150. package/core/lib/cdt/Platform.d.ts +7 -7
  151. package/core/lib/cdt/Platform.js +11 -8
  152. package/core/lib/cdt/SDK.d.ts +5 -1
  153. package/core/lib/cdt/SDK.js +4 -2
  154. package/core/lib/cdt/generated/ParsedURL.d.ts +0 -1
  155. package/core/lib/cdt/generated/ParsedURL.js +3 -9
  156. package/core/lib/cdt/generated/SourceMap.d.ts +24 -25
  157. package/core/lib/cdt/generated/SourceMap.js +7 -15
  158. package/core/lib/deprecations-strings.d.ts +93 -88
  159. package/core/lib/deprecations-strings.js +20 -14
  160. package/core/lib/i18n/i18n.d.ts +2 -1
  161. package/core/lib/i18n/i18n.js +25 -13
  162. package/core/lib/legacy-javascript/legacy-javascript.d.ts +3 -2
  163. package/core/lib/legacy-javascript/legacy-javascript.js +235 -111
  164. package/core/lib/legacy-javascript/polyfill-graph-data.json +94 -89
  165. package/core/lib/legacy-javascript/polyfill-module-data.json +48 -7
  166. package/core/lib/minification-estimator.js +10 -10
  167. package/core/lib/network-request.d.ts +2 -0
  168. package/core/lib/network-request.js +21 -0
  169. package/core/lib/page-functions.js +2 -5
  170. package/core/lib/sentry.d.ts +1 -0
  171. package/core/lib/sentry.js +3 -0
  172. package/core/lib/trace-engine.d.ts +1 -0
  173. package/core/lib/trace-engine.js +2 -0
  174. package/core/runner.js +9 -3
  175. package/dist/report/bundle.esm.js +10 -10
  176. package/dist/report/flow.js +13 -13
  177. package/dist/report/standalone.js +5 -5
  178. package/flow-report/src/common.tsx +5 -2
  179. package/flow-report/src/i18n/i18n.d.ts +2 -0
  180. package/flow-report/src/summary/summary.tsx +9 -1
  181. package/flow-report/src/util.d.ts +1 -1
  182. package/package.json +62 -98
  183. package/readme.md +13 -18
  184. package/report/generator/file-namer.d.ts +1 -1
  185. package/report/generator/file-namer.js +5 -4
  186. package/report/generator/flow-report-assets.js +1 -3
  187. package/report/generator/report-assets.js +1 -2
  188. package/report/renderer/category-renderer.js +2 -2
  189. package/report/renderer/details-renderer.js +3 -2
  190. package/report/renderer/dom.d.ts +8 -2
  191. package/report/renderer/dom.js +29 -1
  192. package/report/renderer/element-screenshot-renderer.js +3 -0
  193. package/report/renderer/performance-category-renderer.js +3 -1
  194. package/report/renderer/report-renderer.js +4 -0
  195. package/report/renderer/report-utils.d.ts +1 -0
  196. package/report/renderer/report-utils.js +2 -0
  197. package/report/renderer/text-encoding.js +2 -2
  198. package/report/types/augment-dom.d.ts +4 -0
  199. package/shared/esm-utils.d.ts +0 -8
  200. package/shared/esm-utils.js +0 -18
  201. package/shared/localization/format.js +5 -3
  202. package/shared/localization/locales/ar-XB.json +157 -142
  203. package/shared/localization/locales/ar.json +157 -142
  204. package/shared/localization/locales/bg.json +154 -139
  205. package/shared/localization/locales/ca.json +157 -142
  206. package/shared/localization/locales/cs.json +148 -133
  207. package/shared/localization/locales/da.json +153 -138
  208. package/shared/localization/locales/de.json +152 -137
  209. package/shared/localization/locales/el.json +153 -138
  210. package/shared/localization/locales/en-GB.json +160 -145
  211. package/shared/localization/locales/en-US.json +239 -218
  212. package/shared/localization/locales/en-XL.json +239 -218
  213. package/shared/localization/locales/es-419.json +150 -135
  214. package/shared/localization/locales/es.json +149 -134
  215. package/shared/localization/locales/fi.json +151 -136
  216. package/shared/localization/locales/fil.json +154 -139
  217. package/shared/localization/locales/fr.json +150 -135
  218. package/shared/localization/locales/he.json +160 -145
  219. package/shared/localization/locales/hi.json +156 -141
  220. package/shared/localization/locales/hr.json +154 -139
  221. package/shared/localization/locales/hu.json +111 -96
  222. package/shared/localization/locales/id.json +153 -138
  223. package/shared/localization/locales/it.json +153 -138
  224. package/shared/localization/locales/ja.json +150 -135
  225. package/shared/localization/locales/ko.json +42 -27
  226. package/shared/localization/locales/lt.json +152 -137
  227. package/shared/localization/locales/lv.json +93 -78
  228. package/shared/localization/locales/nl.json +149 -134
  229. package/shared/localization/locales/no.json +152 -137
  230. package/shared/localization/locales/pl.json +153 -138
  231. package/shared/localization/locales/pt-PT.json +152 -137
  232. package/shared/localization/locales/pt.json +157 -142
  233. package/shared/localization/locales/ro.json +149 -134
  234. package/shared/localization/locales/ru.json +76 -61
  235. package/shared/localization/locales/sk.json +153 -138
  236. package/shared/localization/locales/sl.json +149 -134
  237. package/shared/localization/locales/sr-Latn.json +151 -136
  238. package/shared/localization/locales/sr.json +151 -136
  239. package/shared/localization/locales/sv.json +152 -137
  240. package/shared/localization/locales/ta.json +156 -141
  241. package/shared/localization/locales/te.json +157 -142
  242. package/shared/localization/locales/th.json +111 -96
  243. package/shared/localization/locales/tr.json +153 -138
  244. package/shared/localization/locales/uk.json +149 -134
  245. package/shared/localization/locales/vi.json +162 -147
  246. package/shared/localization/locales/zh-HK.json +150 -135
  247. package/shared/localization/locales/zh-TW.json +154 -139
  248. package/shared/localization/locales/zh.json +152 -137
  249. package/shared/localization/swap-locale.js +10 -5
  250. package/shared/root.js +1 -3
  251. package/third-party/ard/README.md +19 -10
  252. package/third-party/ard/ard-test.js +189 -266
  253. package/third-party/ard/ard.d.ts +18 -1
  254. package/third-party/ard/ard.js +282 -45
  255. package/third-party/ard/schema-validator.d.ts +14 -5
  256. package/third-party/ard/schema-validator.js +921 -1177
  257. package/third-party/ard/spec/schemas/ard-entry.schema.json +176 -0
  258. package/tsconfig.json +0 -2
  259. package/types/artifacts.d.ts +43 -7
  260. package/types/config.d.ts +6 -1
  261. package/types/externs.d.ts +4 -0
  262. package/types/internal/test.d.ts +1 -0
  263. package/build-tracker.config.js +0 -16
  264. package/core/lib/cdt/package.json +0 -4
  265. package/eslint-local-rules.d.cts +0 -9
  266. package/eslint.config.mjs +0 -242
  267. package/third-party/ard/spec/schemas/ai-catalog.schema.json +0 -292
  268. package/third-party/esbuild-plugins-polyfills/LICENSE +0 -3
  269. package/third-party/esbuild-plugins-polyfills/README.md +0 -7
  270. package/third-party/esbuild-plugins-polyfills/esbuild-polyfills.d.ts +0 -9
  271. package/third-party/esbuild-plugins-polyfills/esbuild-polyfills.js +0 -129
  272. package/types/internal/lookup-closest-locale.d.ts +0 -13
@@ -1,292 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://raw.githubusercontent.com/ards-project/ard-spec/main/spec/schemas/ai-catalog.schema.json",
4
- "title": "AICatalogManifest",
5
- "description": "JSON Schema for the ai-catalog.json capability manifest, defining how AI artifacts are advertised.",
6
- "type": "object",
7
- "required": [
8
- "specVersion",
9
- "entries"
10
- ],
11
- "properties": {
12
- "specVersion": {
13
- "type": "string",
14
- "description": "Version of the ai-catalog specification used in this manifest.",
15
- "enum": [
16
- "1.0"
17
- ]
18
- },
19
- "host": {
20
- "type": "object",
21
- "description": "Information about the catalog publisher or hosting entity.",
22
- "required": [
23
- "displayName"
24
- ],
25
- "properties": {
26
- "displayName": {
27
- "type": "string",
28
- "description": "Human-readable name of the host."
29
- },
30
- "identifier": {
31
- "type": "string",
32
- "description": "Cryptographic or verifiable identifier of the host (e.g. did:web:domain.com)."
33
- },
34
- "documentationUrl": {
35
- "type": "string",
36
- "format": "uri",
37
- "description": "URL to publisher documentation."
38
- },
39
- "logoUrl": {
40
- "type": "string",
41
- "format": "uri",
42
- "description": "URL to the publisher's logo image."
43
- },
44
- "trustManifest": {
45
- "$ref": "#/$defs/trustManifest"
46
- }
47
- },
48
- "additionalProperties": false
49
- },
50
- "entries": {
51
- "type": "array",
52
- "description": "List of AI agent or capability catalog entries.",
53
- "items": {
54
- "$ref": "#/$defs/catalogEntry"
55
- }
56
- }
57
- },
58
- "additionalProperties": false,
59
- "$defs": {
60
- "catalogEntry": {
61
- "type": "object",
62
- "description": "A single AI capability entry within the catalog.",
63
- "required": [
64
- "identifier",
65
- "displayName",
66
- "type"
67
- ],
68
- "oneOf": [
69
- {
70
- "required": [
71
- "url"
72
- ],
73
- "not": {
74
- "required": [
75
- "data"
76
- ]
77
- }
78
- },
79
- {
80
- "required": [
81
- "data"
82
- ],
83
- "not": {
84
- "required": [
85
- "url"
86
- ]
87
- }
88
- }
89
- ],
90
- "properties": {
91
- "identifier": {
92
- "type": "string",
93
- "pattern": "^urn:air:[a-zA-Z0-9.-]+(:[a-zA-Z0-9._-]+)+$",
94
- "description": "RFC 8141-compliant unique logical URN formatted as: urn:air:<publisher>:<namespace>:<agent-name>"
95
- },
96
- "displayName": {
97
- "type": "string",
98
- "description": "Human-friendly display name."
99
- },
100
- "type": {
101
- "type": "string",
102
- "description": "IANA Media Type indicating the specific protocol wrapper or payload structure (e.g. application/mcp-server-card+json)."
103
- },
104
- "url": {
105
- "type": "string",
106
- "format": "uri",
107
- "description": "HTTP URL reference to retrieve the full artifact document."
108
- },
109
- "data": {
110
- "type": "object",
111
- "description": "Embedded JSON object containing the complete artifact specification inline."
112
- },
113
- "description": {
114
- "type": "string",
115
- "description": "Brief natural-language description of the capability."
116
- },
117
- "tags": {
118
- "type": "array",
119
- "items": {
120
- "type": "string"
121
- },
122
- "description": "Tags or keywords for basic categorizing and filtering."
123
- },
124
- "capabilities": {
125
- "type": "array",
126
- "items": {
127
- "type": "string"
128
- },
129
- "description": "Explicit high-performance indexing tags representing skills, tools, or functions (e.g. ['WeatherTool', 'ForecastTool'])."
130
- },
131
- "representativeQueries": {
132
- "type": "array",
133
- "minItems": 2,
134
- "maxItems": 5,
135
- "items": {
136
- "type": "string"
137
- },
138
- "description": "Representative natural-language search queries used for indexing and vector embedding generation."
139
- },
140
- "version": {
141
- "type": "string",
142
- "description": "Semantic version of the capability."
143
- },
144
- "updatedAt": {
145
- "type": "string",
146
- "format": "date-time",
147
- "description": "ISO 8601 timestamp of the last modification."
148
- },
149
- "metadata": {
150
- "type": "object",
151
- "description": "Arbitrary key-value pairs for custom extensions.",
152
- "additionalProperties": {
153
- "type": [
154
- "string",
155
- "number",
156
- "boolean",
157
- "null"
158
- ]
159
- }
160
- },
161
- "trustManifest": {
162
- "$ref": "#/$defs/trustManifest"
163
- }
164
- }
165
- },
166
- "trustManifest": {
167
- "type": "object",
168
- "description": "Zero-trust security, identity, and compliance envelope metadata.",
169
- "required": [
170
- "identity"
171
- ],
172
- "properties": {
173
- "identity": {
174
- "type": "string",
175
- "description": "Globally unique cryptographic workload identifier principal (e.g. SPIFFE ID or DID URI)."
176
- },
177
- "identityType": {
178
- "type": "string",
179
- "enum": [
180
- "spiffe",
181
- "did",
182
- "https",
183
- "other"
184
- ],
185
- "description": "Hint representing the cryptographic format of the identity."
186
- },
187
- "trustSchema": {
188
- "$ref": "#/$defs/trustSchema"
189
- },
190
- "attestations": {
191
- "type": "array",
192
- "description": "List of verifiable claims (SOC 2 audits, compliance statements, HIPAA checks).",
193
- "items": {
194
- "type": "object",
195
- "required": [
196
- "type",
197
- "uri",
198
- "mediaType"
199
- ],
200
- "properties": {
201
- "type": {
202
- "type": "string",
203
- "description": "Attestation standard type (e.g., SOC2-Type2, HIPAA)."
204
- },
205
- "uri": {
206
- "type": "string",
207
- "format": "uri",
208
- "description": "Location of the attestation certificate or document."
209
- },
210
- "mediaType": {
211
- "type": "string",
212
- "description": "Format of the attestation document (e.g. application/pdf, text/html)."
213
- },
214
- "digest": {
215
- "type": "string",
216
- "description": "Cryptographic sha256 digest for document integrity verification."
217
- }
218
- },
219
- "additionalProperties": false
220
- }
221
- },
222
- "provenance": {
223
- "type": "array",
224
- "description": "Cryptographic lineage trail of the artifact.",
225
- "items": {
226
- "type": "object",
227
- "required": [
228
- "relation",
229
- "sourceId"
230
- ],
231
- "properties": {
232
- "relation": {
233
- "type": "string",
234
- "enum": [
235
- "derivedFrom",
236
- "publishedFrom",
237
- "copiedFrom"
238
- ],
239
- "description": "Lineage relation."
240
- },
241
- "sourceId": {
242
- "type": "string",
243
- "description": "Identifier of the source artifact."
244
- },
245
- "sourceDigest": {
246
- "type": "string",
247
- "description": "Optional sha256 digest for safety."
248
- }
249
- },
250
- "additionalProperties": false
251
- }
252
- },
253
- "signature": {
254
- "type": "string",
255
- "description": "Detached JWS signature generated over the fields of the trustManifest."
256
- }
257
- },
258
- "additionalProperties": false
259
- },
260
- "trustSchema": {
261
- "type": "object",
262
- "description": "Describes the trust framework applied to the artifact.",
263
- "required": [
264
- "identifier",
265
- "version"
266
- ],
267
- "properties": {
268
- "identifier": {
269
- "type": "string",
270
- "description": "Unique identifier of the trust schema/framework (e.g. URN)."
271
- },
272
- "version": {
273
- "type": "string",
274
- "description": "Version of the trust schema/framework."
275
- },
276
- "governanceUri": {
277
- "type": "string",
278
- "format": "uri",
279
- "description": "URI pointing to the governance policy document."
280
- },
281
- "verificationMethods": {
282
- "type": "array",
283
- "items": {
284
- "type": "string"
285
- },
286
- "description": "Verification methods supported by the schema (e.g., ['did', 'x509', 'dns-01'])."
287
- }
288
- },
289
- "additionalProperties": false
290
- }
291
- }
292
- }
@@ -1,3 +0,0 @@
1
- MIT
2
-
3
- https://github.com/remorses/esbuild-plugins/blob/d757c3bf5dff37a754d254168d4a3d88611e8175/package.json#L37
@@ -1,7 +0,0 @@
1
- # @esbuild-plugins/node-modules-polyfill
2
-
3
- This is `@esbuild-plugins/node-modules-polyfill`, with the following changes:
4
-
5
- - using a better library for polyfills as proposed by this PR ... https://github.com/remorses/esbuild-plugins/pull/19
6
- - ...but there are a couple correctness changes on top of the above PR, as described here: https://github.com/remorses/esbuild-plugins/pull/19#discussion_r990493080 (the PR has landed but is still broken for our use case)
7
- - File converted from TS to JS
@@ -1,9 +0,0 @@
1
- export function nodeModulesPolyfillPlugin(options?: {}): {
2
- name: any;
3
- setup: ({ onLoad, onResolve, initialOptions }: {
4
- onLoad: any;
5
- onResolve: any;
6
- initialOptions: any;
7
- }) => void;
8
- };
9
- //# sourceMappingURL=esbuild-polyfills.d.ts.map
@@ -1,129 +0,0 @@
1
- // @ts-nocheck
2
- /* eslint-disable */
3
-
4
- import path from 'path';
5
-
6
- import escapeStringRegexp from 'escape-string-regexp';
7
- import {getModules as builtinsPolyfills} from 'rollup-plugin-polyfill-node/dist/modules.js';
8
- import polyfillLib from 'rollup-plugin-polyfill-node/dist/polyfills.js';
9
-
10
- const NAME = 'node-modules-polyfills';
11
- const NAMESPACE = NAME;
12
-
13
- function removeEndingSlash(importee) {
14
- if (importee && importee.slice(-1) === '/') {
15
- importee = importee.slice(0, -1);
16
- }
17
- return importee;
18
- }
19
-
20
- function nodeModulesPolyfillPlugin(
21
- options = {}
22
- ) {
23
- const {namespace = NAMESPACE, name = NAME} = options;
24
- if (namespace.endsWith('commonjs')) {
25
- throw new Error(`namespace ${namespace} must not end with commonjs`);
26
- }
27
- // this namespace is needed to make ES modules expose their default export to require: require('assert') will give you import('assert').default
28
- const commonjsNamespace = namespace + '-commonjs';
29
- const polyfilledBuiltins = builtinsPolyfills();
30
- const polyfilledBuiltinsNames = [...polyfilledBuiltins.keys()];
31
-
32
- return {
33
- name,
34
- setup: function setup({onLoad, onResolve, initialOptions}) {
35
- // polyfills contain global keyword, it must be defined
36
- if (initialOptions?.define && !initialOptions.define?.global) {
37
- initialOptions.define['global'] = 'globalThis';
38
- } else if (!initialOptions?.define) {
39
- initialOptions.define = {global: 'globalThis'};
40
- }
41
-
42
- // TODO these polyfill module cannot import anything, is that ok?
43
- async function loader(
44
- args
45
- ) {
46
- try {
47
- const isCommonjs = args.namespace.endsWith('commonjs');
48
-
49
- const key = removeEndingSlash(args.path);
50
- const contents = polyfilledBuiltins.get(key) || polyfillLib[key + '.js'];
51
- const resolveDir = path.dirname(key);
52
-
53
- if (isCommonjs) {
54
- return {
55
- loader: 'js',
56
- contents: commonJsTemplate({
57
- importPath: args.path,
58
- }),
59
- resolveDir,
60
- };
61
- }
62
- return {
63
- loader: 'js',
64
- contents,
65
- resolveDir,
66
- };
67
- } catch (e) {
68
- console.error('node-modules-polyfill', e);
69
- return {
70
- contents: `export {}`,
71
- loader: 'js',
72
- };
73
- }
74
- }
75
- onLoad({filter: /.*/, namespace}, loader);
76
- onLoad({filter: /.*/, namespace: commonjsNamespace}, loader);
77
- const filter = new RegExp(
78
- polyfilledBuiltinsNames.map(escapeStringRegexp).join('|') // TODO builtins could end with slash, keep in mind in regex
79
- );
80
- async function resolver(args) {
81
- const ignoreRequire = args.namespace === commonjsNamespace;
82
-
83
- let key;
84
- if (args.path.startsWith('\0polyfill-node.')) {
85
- key = args.path.replace('\0polyfill-node.', '');
86
- } else {
87
- if (args.path.startsWith('.')) {
88
- key = path.join(path.dirname(args.importer), args.path);
89
- } else {
90
- key = args.path;
91
- }
92
- }
93
-
94
- if (!polyfilledBuiltins.has(key) && !polyfillLib[key + '.js']) {
95
- return;
96
- }
97
-
98
- const isCommonjs =
99
- !ignoreRequire && args.kind === 'require-call';
100
-
101
- return {
102
- namespace: isCommonjs ? commonjsNamespace : namespace,
103
- path: key,
104
- };
105
- }
106
- onResolve({filter}, resolver);
107
- onResolve({filter: /.*/, namespace}, resolver);
108
- },
109
- };
110
- }
111
-
112
- function commonJsTemplate({importPath}) {
113
- return `
114
- const polyfill = require('${importPath}')
115
-
116
- if (polyfill && polyfill.default) {
117
- module.exports = polyfill.default
118
- for (let k in polyfill) {
119
- module.exports[k] = polyfill[k]
120
- }
121
- } else if (polyfill) {
122
- module.exports = polyfill
123
- }
124
-
125
-
126
- `;
127
- }
128
-
129
- export {nodeModulesPolyfillPlugin};
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
-
7
- type Locale = import('../lhr/settings.js').Locale;
8
-
9
- declare module 'lookup-closest-locale' {
10
- function lookupClosestLocale(locale: string[]|string|undefined, available: Record<Locale, any>): Locale|undefined;
11
-
12
- export = lookupClosestLocale;
13
- }