monkeypatchlist 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +61 -0
  3. package/README.md +183 -2
  4. package/catalog/catalog.json +552211 -0
  5. package/catalog/catalog.schema.json +787 -0
  6. package/catalog/changelog.json +3 -0
  7. package/dist/bin/monkeypatchlist.d.ts +2 -0
  8. package/dist/bin/monkeypatchlist.js +3 -0
  9. package/dist/catalog.d.ts +561 -0
  10. package/dist/catalog.js +58 -0
  11. package/dist/cli.d.ts +84 -0
  12. package/dist/cli.js +470 -0
  13. package/dist/index.d.ts +2 -0
  14. package/dist/index.js +1 -0
  15. package/dist/lockfile-input.d.ts +9 -0
  16. package/dist/lockfile-input.js +91 -0
  17. package/dist/packages/analysis/binding.d.ts +2 -0
  18. package/dist/packages/analysis/binding.js +5 -0
  19. package/dist/packages/analysis/index.d.ts +10 -0
  20. package/dist/packages/analysis/index.js +13 -0
  21. package/dist/packages/analysis/job.d.ts +33 -0
  22. package/dist/packages/analysis/job.js +85 -0
  23. package/dist/packages/analysis/lib/absence-tags.d.ts +34 -0
  24. package/dist/packages/analysis/lib/absence-tags.js +340 -0
  25. package/dist/packages/analysis/lib/ast.d.ts +28 -0
  26. package/dist/packages/analysis/lib/ast.js +64 -0
  27. package/dist/packages/analysis/lib/binding.d.ts +36 -0
  28. package/dist/packages/analysis/lib/binding.js +66 -0
  29. package/dist/packages/analysis/lib/budget.d.ts +80 -0
  30. package/dist/packages/analysis/lib/budget.js +31 -0
  31. package/dist/packages/analysis/lib/catch-arms.d.ts +19 -0
  32. package/dist/packages/analysis/lib/catch-arms.js +351 -0
  33. package/dist/packages/analysis/lib/chunk-loads.d.ts +160 -0
  34. package/dist/packages/analysis/lib/chunk-loads.js +882 -0
  35. package/dist/packages/analysis/lib/chunk-registry.d.ts +45 -0
  36. package/dist/packages/analysis/lib/chunk-registry.js +334 -0
  37. package/dist/packages/analysis/lib/code-routes.d.ts +52 -0
  38. package/dist/packages/analysis/lib/code-routes.js +921 -0
  39. package/dist/packages/analysis/lib/collisions.d.ts +22 -0
  40. package/dist/packages/analysis/lib/collisions.js +103 -0
  41. package/dist/packages/analysis/lib/definitions.d.ts +76 -0
  42. package/dist/packages/analysis/lib/definitions.js +782 -0
  43. package/dist/packages/analysis/lib/early-exits.d.ts +39 -0
  44. package/dist/packages/analysis/lib/early-exits.js +161 -0
  45. package/dist/packages/analysis/lib/effect.d.ts +138 -0
  46. package/dist/packages/analysis/lib/effect.js +800 -0
  47. package/dist/packages/analysis/lib/global-object.d.ts +581 -0
  48. package/dist/packages/analysis/lib/global-object.js +8240 -0
  49. package/dist/packages/analysis/lib/keys.d.ts +33 -0
  50. package/dist/packages/analysis/lib/keys.js +82 -0
  51. package/dist/packages/analysis/lib/line-starts.d.ts +41 -0
  52. package/dist/packages/analysis/lib/line-starts.js +79 -0
  53. package/dist/packages/analysis/lib/link-group.d.ts +51 -0
  54. package/dist/packages/analysis/lib/link-group.js +487 -0
  55. package/dist/packages/analysis/lib/module-links.d.ts +117 -0
  56. package/dist/packages/analysis/lib/module-links.js +1060 -0
  57. package/dist/packages/analysis/lib/nested-code.d.ts +38 -0
  58. package/dist/packages/analysis/lib/nested-code.js +200 -0
  59. package/dist/packages/analysis/lib/numeric.d.ts +16 -0
  60. package/dist/packages/analysis/lib/numeric.js +216 -0
  61. package/dist/packages/analysis/lib/once-flags.d.ts +12 -0
  62. package/dist/packages/analysis/lib/once-flags.js +190 -0
  63. package/dist/packages/analysis/lib/parameter-arguments.d.ts +12 -0
  64. package/dist/packages/analysis/lib/parameter-arguments.js +34 -0
  65. package/dist/packages/analysis/lib/parse.d.ts +10 -0
  66. package/dist/packages/analysis/lib/parse.js +39 -0
  67. package/dist/packages/analysis/lib/partial.d.ts +60 -0
  68. package/dist/packages/analysis/lib/partial.js +518 -0
  69. package/dist/packages/analysis/lib/print.d.ts +3 -0
  70. package/dist/packages/analysis/lib/print.js +150 -0
  71. package/dist/packages/analysis/lib/reachability.d.ts +137 -0
  72. package/dist/packages/analysis/lib/reachability.js +1295 -0
  73. package/dist/packages/analysis/lib/resolver.d.ts +13 -0
  74. package/dist/packages/analysis/lib/resolver.js +2886 -0
  75. package/dist/packages/analysis/lib/restores.d.ts +42 -0
  76. package/dist/packages/analysis/lib/restores.js +482 -0
  77. package/dist/packages/analysis/lib/rewritten-deletes.d.ts +6 -0
  78. package/dist/packages/analysis/lib/rewritten-deletes.js +142 -0
  79. package/dist/packages/analysis/lib/scope.d.ts +110 -0
  80. package/dist/packages/analysis/lib/scope.js +443 -0
  81. package/dist/packages/analysis/lib/script-loads.d.ts +56 -0
  82. package/dist/packages/analysis/lib/script-loads.js +359 -0
  83. package/dist/packages/analysis/lib/summaries.d.ts +177 -0
  84. package/dist/packages/analysis/lib/summaries.js +498 -0
  85. package/dist/packages/analysis/lib/types.d.ts +632 -0
  86. package/dist/packages/analysis/lib/types.js +128 -0
  87. package/dist/packages/analysis/lib/wrap.d.ts +34 -0
  88. package/dist/packages/analysis/lib/wrap.js +407 -0
  89. package/dist/packages/analysis/lib/writes.d.ts +358 -0
  90. package/dist/packages/analysis/lib/writes.js +1612 -0
  91. package/dist/packages/analysis/visit-order.d.ts +3 -0
  92. package/dist/packages/analysis/visit-order.js +23 -0
  93. package/dist/packages/attribution/index.d.ts +233 -0
  94. package/dist/packages/attribution/index.js +444 -0
  95. package/dist/packages/attribution/lib/containing-package.d.ts +76 -0
  96. package/dist/packages/attribution/lib/containing-package.js +304 -0
  97. package/dist/packages/attribution/lib/first-party.d.ts +37 -0
  98. package/dist/packages/attribution/lib/first-party.js +153 -0
  99. package/dist/packages/attribution/lib/lockfile-graph.d.ts +99 -0
  100. package/dist/packages/attribution/lib/lockfile-graph.js +158 -0
  101. package/dist/packages/attribution/lib/lockfile.d.ts +33 -0
  102. package/dist/packages/attribution/lib/lockfile.js +330 -0
  103. package/dist/packages/attribution/lib/path-rules.d.ts +29 -0
  104. package/dist/packages/attribution/lib/path-rules.js +84 -0
  105. package/dist/packages/attribution/lib/pnpm.d.ts +4 -0
  106. package/dist/packages/attribution/lib/pnpm.js +133 -0
  107. package/dist/packages/attribution/lib/remote-url.d.ts +7 -0
  108. package/dist/packages/attribution/lib/remote-url.js +24 -0
  109. package/dist/packages/attribution/lib/source-map.d.ts +51 -0
  110. package/dist/packages/attribution/lib/source-map.js +125 -0
  111. package/dist/packages/attribution/lib/yaml.d.ts +9 -0
  112. package/dist/packages/attribution/lib/yaml.js +277 -0
  113. package/dist/packages/attribution/lib/yarn.d.ts +7 -0
  114. package/dist/packages/attribution/lib/yarn.js +227 -0
  115. package/dist/packages/baseline/index.d.ts +45 -0
  116. package/dist/packages/baseline/index.js +41 -0
  117. package/dist/packages/baseline/lib/error.d.ts +15 -0
  118. package/dist/packages/baseline/lib/error.js +25 -0
  119. package/dist/packages/baseline/lib/format.d.ts +49 -0
  120. package/dist/packages/baseline/lib/format.js +22 -0
  121. package/dist/packages/baseline/lib/migrations.d.ts +19 -0
  122. package/dist/packages/baseline/lib/migrations.js +7 -0
  123. package/dist/packages/baseline/lib/previous.d.ts +23 -0
  124. package/dist/packages/baseline/lib/previous.js +64 -0
  125. package/dist/packages/baseline/lib/read.d.ts +39 -0
  126. package/dist/packages/baseline/lib/read.js +219 -0
  127. package/dist/packages/baseline/lib/report.d.ts +25 -0
  128. package/dist/packages/baseline/lib/report.js +104 -0
  129. package/dist/packages/baseline/lib/skew.d.ts +51 -0
  130. package/dist/packages/baseline/lib/skew.js +75 -0
  131. package/dist/packages/compare/index.d.ts +120 -0
  132. package/dist/packages/compare/index.js +274 -0
  133. package/dist/packages/compare/lib/catalog-notes.d.ts +73 -0
  134. package/dist/packages/compare/lib/catalog-notes.js +224 -0
  135. package/dist/packages/completeness/index.d.ts +246 -0
  136. package/dist/packages/completeness/index.js +249 -0
  137. package/dist/packages/confidence/index.d.ts +54 -0
  138. package/dist/packages/confidence/index.js +71 -0
  139. package/dist/packages/config/index.d.ts +107 -0
  140. package/dist/packages/config/index.js +95 -0
  141. package/dist/packages/config/lib/command-line.d.ts +23 -0
  142. package/dist/packages/config/lib/command-line.js +239 -0
  143. package/dist/packages/config/lib/config-file.d.ts +11 -0
  144. package/dist/packages/config/lib/config-file.js +119 -0
  145. package/dist/packages/config/lib/scan-config-id.d.ts +28 -0
  146. package/dist/packages/config/lib/scan-config-id.js +54 -0
  147. package/dist/packages/config/lib/schema.d.ts +2 -0
  148. package/dist/packages/config/lib/schema.js +31 -0
  149. package/dist/packages/config/lib/types.d.ts +64 -0
  150. package/dist/packages/config/lib/types.js +6 -0
  151. package/dist/packages/config/lib/urls.d.ts +6 -0
  152. package/dist/packages/config/lib/urls.js +9 -0
  153. package/dist/packages/discovery/index.d.ts +277 -0
  154. package/dist/packages/discovery/index.js +1950 -0
  155. package/dist/packages/discovery/lib/import-map.d.ts +68 -0
  156. package/dist/packages/discovery/lib/import-map.js +180 -0
  157. package/dist/packages/discovery/lib/requests.d.ts +58 -0
  158. package/dist/packages/discovery/lib/requests.js +591 -0
  159. package/dist/packages/discovery/lib/scopes.d.ts +6 -0
  160. package/dist/packages/discovery/lib/scopes.js +286 -0
  161. package/dist/packages/discovery/lib/source-maps.d.ts +56 -0
  162. package/dist/packages/discovery/lib/source-maps.js +209 -0
  163. package/dist/packages/discovery/lib/swept-code.d.ts +27 -0
  164. package/dist/packages/discovery/lib/swept-code.js +107 -0
  165. package/dist/packages/discovery/lib/syntax.d.ts +17 -0
  166. package/dist/packages/discovery/lib/syntax.js +39 -0
  167. package/dist/packages/findings/index.d.ts +106 -0
  168. package/dist/packages/findings/index.js +254 -0
  169. package/dist/packages/findings/lib/scope.d.ts +38 -0
  170. package/dist/packages/findings/lib/scope.js +110 -0
  171. package/dist/packages/parallel/index.d.ts +2 -0
  172. package/dist/packages/parallel/index.js +5 -0
  173. package/dist/packages/parallel/lib/protocol.d.ts +15 -0
  174. package/dist/packages/parallel/lib/protocol.js +2 -0
  175. package/dist/packages/parallel/lib/runner.d.ts +36 -0
  176. package/dist/packages/parallel/lib/runner.js +96 -0
  177. package/dist/packages/parallel/lib/schedule.d.ts +16 -0
  178. package/dist/packages/parallel/lib/schedule.js +52 -0
  179. package/dist/packages/parallel/lib/worker.d.ts +1 -0
  180. package/dist/packages/parallel/lib/worker.js +18 -0
  181. package/dist/packages/policy/index.d.ts +36 -0
  182. package/dist/packages/policy/index.js +22 -0
  183. package/dist/packages/report/explain.d.ts +26 -0
  184. package/dist/packages/report/explain.js +99 -0
  185. package/dist/packages/report/index.d.ts +210 -0
  186. package/dist/packages/report/index.js +388 -0
  187. package/dist/packages/report/terminal.d.ts +11 -0
  188. package/dist/packages/report/terminal.js +331 -0
  189. package/dist/packages/source-store/fixture.d.ts +22 -0
  190. package/dist/packages/source-store/fixture.js +58 -0
  191. package/dist/packages/source-store/index.d.ts +278 -0
  192. package/dist/packages/source-store/index.js +322 -0
  193. package/dist/packages/source-store/lib/addresses.d.ts +6 -0
  194. package/dist/packages/source-store/lib/addresses.js +91 -0
  195. package/dist/packages/source-store/lib/connection.d.ts +15 -0
  196. package/dist/packages/source-store/lib/connection.js +135 -0
  197. package/dist/packages/source-store/lib/content-types.d.ts +16 -0
  198. package/dist/packages/source-store/lib/content-types.js +75 -0
  199. package/dist/packages/source-store/lib/data-urls.d.ts +10 -0
  200. package/dist/packages/source-store/lib/data-urls.js +85 -0
  201. package/dist/packages/source-store/lib/deadline.d.ts +18 -0
  202. package/dist/packages/source-store/lib/deadline.js +44 -0
  203. package/dist/packages/source-store/lib/exchange.d.ts +29 -0
  204. package/dist/packages/source-store/lib/exchange.js +112 -0
  205. package/dist/packages/source-store/lib/integrity.d.ts +19 -0
  206. package/dist/packages/source-store/lib/integrity.js +86 -0
  207. package/dist/packages/source-store/lib/outcomes.d.ts +12 -0
  208. package/dist/packages/source-store/lib/outcomes.js +22 -0
  209. package/dist/packages/source-store/lib/proxy.d.ts +11 -0
  210. package/dist/packages/source-store/lib/proxy.js +53 -0
  211. package/dist/packages/source-store/lib/session.d.ts +12 -0
  212. package/dist/packages/source-store/lib/session.js +139 -0
  213. package/dist/packages/source-store/lib/urls.d.ts +6 -0
  214. package/dist/packages/source-store/lib/urls.js +15 -0
  215. package/dist/packages/source-store/resolve.d.ts +59 -0
  216. package/dist/packages/source-store/resolve.js +45 -0
  217. package/dist/scan.d.ts +65 -0
  218. package/dist/scan.js +592 -0
  219. package/package.json +95 -4
  220. package/schema/config.schema.json +133 -0
  221. package/schema/report.schema.json +1905 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,61 @@
1
+ monkeypatchlist
2
+ Copyright 2026 Adam Medford
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+
7
+ Catalog data sources
8
+ --------------------
9
+
10
+ monkeypatchlist's runtime catalog (catalog/catalog.json) is generated from the
11
+ upstream packages below, at the exact versions recorded in the catalog's
12
+ metadata.upstream, together with curated overlays that are part of monkeypatchlist.
13
+ The catalog records the names, owners and shapes of web platform and
14
+ ECMAScript APIs that these sources define.
15
+
16
+ @webref/idl (W3C webref)
17
+ https://github.com/w3c/webref
18
+ Web IDL extracted from the specifications of the web platform.
19
+ Package license: MIT.
20
+ The IDL comes from specifications published by the W3C, the WHATWG and
21
+ other groups, each under its own license. WHATWG Living Standards are
22
+ licensed under the Creative Commons Attribution 4.0 International License
23
+ (CC BY 4.0), copyright WHATWG (Apple, Google, Mozilla, Microsoft). W3C
24
+ specifications are copyright World Wide Web Consortium; code components
25
+ such as IDL are available under the W3C Software and Document License.
26
+
27
+ webidl2
28
+ https://github.com/w3c/webidl2.js
29
+ The Web IDL parser the generator reads @webref/idl with.
30
+ License: MIT (its LICENSE file; its package.json declares W3C, the W3C
31
+ Software and Document License). Copyright (c) 2014 Robin Berjon.
32
+
33
+ @tc39/ecma262-biblio and @tc39/ecma402-biblio
34
+ https://github.com/tc39/ecma262 and https://github.com/tc39/ecma402
35
+ The ECMA-262 (ECMAScript) and ECMA-402 (Internationalization API)
36
+ specification biblios, for the ECMAScript intrinsics.
37
+ Licensed under Ecma International TC39's Intellectual Property Policy:
38
+ natural language text under the alternative copyright notice of the Ecma
39
+ text copyright policy, and source code under the Ecma International Policy
40
+ on Submission, Inclusion and Licensing of Software. Copyright Ecma
41
+ International.
42
+
43
+ The catalog generator also cross-checks the catalog against two sources that
44
+ never change it, at exact-pinned versions:
45
+
46
+ ses (Endo) src/permits.js
47
+ https://github.com/endojs/endo
48
+ License: Apache-2.0. Copyright Endo Contributors.
49
+
50
+ @mdn/browser-compat-data
51
+ https://github.com/mdn/browser-compat-data
52
+ License: CC0-1.0. Data from MDN Web Docs and its contributors.
53
+
54
+
55
+ Runtime dependencies
56
+ --------------------
57
+
58
+ monkeypatchlist's runtime dependencies are installed separately by the package
59
+ manager, under their own licenses (MIT, BSD-2-Clause and BSD-3-Clause), and
60
+ none of their code is bundled into this package. In the source repository,
61
+ `npm run licenses:check` lists them.
package/README.md CHANGED
@@ -1,3 +1,184 @@
1
- # Temporary Holding Version
1
+ # monkeypatchlist
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ monkeypatchlist is a CI gate for the browser platform. It scans your deployed JavaScript statically, finds the code that changes native browser and ECMAScript APIs, says which package or source file that code came from, and tells you what changed since the baseline you last accepted:
4
+
5
+ > What changed the browser platform, who introduced it, and is that change new?
6
+
7
+ **Release 1 is an early release.** It models Chromium's behaviour, it is slow on large bundles (see [Performance](#performance)), and it has rough edges. Please [report what you find](https://github.com/adammedford/monkeypatchlist/issues).
8
+
9
+ ## Why
10
+
11
+ Monitoring SDKs, polyfills, zone libraries and your own code all reach into the platform the rest of the page shares. They wrap `fetch`, replace `history.pushState`, patch `XMLHttpRequest.prototype.open` and add methods to `Array.prototype`. Each change is usually deliberate, but it is rarely reviewed. A dependency upgrade can start wrapping a new API without a line of your code changing, and when something breaks in production, nobody knows which bundled package hooks `fetch`.
12
+
13
+ monkeypatchlist turns those changes into reviewed changes. You commit a baseline of the platform mutations your app makes today, and CI fails when a build adds a new one or changes an existing one. It names every mutation the same way on every build, so a rebuild, a renamed chunk or a new minifier never shows up as a change, and it reports what it couldn't analyze instead of passing silently.
14
+
15
+ ## Install
16
+
17
+ ```sh
18
+ npm i -D monkeypatchlist
19
+ ```
20
+
21
+ monkeypatchlist needs Node.js 24 or later. It runs offline by default and executes none of the code it scans.
22
+
23
+ ## Performance
24
+
25
+ Release 1's analyzer is slow, and scan time grows faster than bundle size. On an Apple M4 Pro, the SDK and polyfill builds in the validation corpus each scan in seconds to a few minutes. A synthetic 1 MB bundle took about 6 minutes, and a 2.5 MB bundle took about 10 hours. Try it on your own build before you add it to CI. A faster analyzer is planned. [Limitations](docs/limitations.md) has the measured numbers.
26
+
27
+ ## Quickstart
28
+
29
+ **1. Scan your build.** monkeypatchlist scans build output, not source. Point it at the directory you deploy, and tell it the URL that directory is served from with `--map`, so the references in your HTML resolve to files:
30
+
31
+ ```sh
32
+ npx monkeypatchlist scan dist --map https://shop.example/=.
33
+ ```
34
+
35
+ The report lists each platform mutation the build makes. Without source maps every finding's package is `unknown`, so the next step adds them.
36
+
37
+ **2. Save your settings.** Put the mapping, your source-map directory and your lockfile in `monkeypatchlist.config.json`, so every command picks them up. Source maps name the package behind each finding, and the lockfile adds its version:
38
+
39
+ <!-- docs-test: file monkeypatchlist.config.json -->
40
+ ```json
41
+ {
42
+ "name": "Storefront",
43
+ "mappings": [{ "url": "https://shop.example/", "dir": "." }],
44
+ "sourceMaps": ["maps"],
45
+ "lockfile": { "path": "package-lock.json" }
46
+ }
47
+ ```
48
+
49
+ **3. Accept what's there today.** Write a baseline of the current findings, and commit it next to your code:
50
+
51
+ ```sh
52
+ npx monkeypatchlist baseline init dist
53
+ git add monkeypatchlist.config.json monkeypatchlist.baseline.json
54
+ ```
55
+
56
+ **4. Gate CI.** Run the scan with `--fail-on added,changed` after your build. It passes while the build makes only the mutations the baseline accepted:
57
+
58
+ ```sh
59
+ npx monkeypatchlist scan dist --fail-on added,changed
60
+ ```
61
+
62
+ When a dependency upgrade starts wrapping `XMLHttpRequest.prototype.open`, the same command fails the build and names the package, its previous version and the line that does it:
63
+
64
+ <!-- docs-test: build v2 -->
65
+ ```sh
66
+ npx monkeypatchlist scan dist --fail-on added,changed # exits 1
67
+ ```
68
+
69
+ <!-- docs-test: output -->
70
+ ```text
71
+ monkeypatchlist 0.1.0 · catalog 1 · Storefront · surface protected · offline
72
+
73
+ Change since baseline
74
+ Added 1 Changed 0 Removed 0 Unconfirmed 0 Existing 2
75
+
76
+ Added
77
+ XMLHttpRequest.prototype.open wrap
78
+ Package @example/telemetry@2.0.0
79
+ Previous version @example/telemetry@1.4.0
80
+ Source ../../node_modules/@example/telemetry/index.js:17 (assets/main-RFTVJBC6.js:1:317)
81
+ Provenance bundled dependency · load · unconditional
82
+ Confidence target high · mutation high · attribution high
83
+ Fingerprint window|XMLHttpRequest.prototype.open|wrap|pkg:@example/telemetry
84
+
85
+ Notes
86
+ Window.fetch @example/telemetry 1.4.0 → 2.0.0
87
+ XMLHttpRequest.prototype.open @example/telemetry 1.4.0 → 2.0.0
88
+
89
+ Completeness complete
90
+ Known 1 · analyzed 1 · failed 0 · skipped 0
91
+ Inputs
92
+ Source maps 1 / 1 artifacts
93
+ Lockfile package-lock.json
94
+ Outside scope none
95
+ Ineffective writes 0
96
+
97
+ Gate fail-on added,changed → FAIL (1 finding) exit 1
98
+ ```
99
+
100
+ **5. Accept a change on purpose.** If the new mutation is intended, accept it into the baseline and commit the baseline with the upgrade, so the change is reviewed in the same pull request:
101
+
102
+ ```sh
103
+ npx monkeypatchlist baseline update dist
104
+ ```
105
+
106
+ The quickstart's build is the example in [docs/examples/storefront](docs/examples/storefront/).
107
+
108
+ ## A real scan
109
+
110
+ This is monkeypatchlist's report for a Vite build of an app that imports the [`whatwg-fetch`](https://github.com/JakeChampion/fetch) polyfill, from the validation corpus monkeypatchlist is tested against. The polyfill installs `fetch`, `Headers`, `Request` and `Response` only where the browser lacks them, which the scan reports as `guarded-native-absence`:
111
+
112
+ <!-- docs-test: corpus dist/vite/whatwg-fetch/maps -->
113
+ ```sh
114
+ npx monkeypatchlist scan dist/vite/whatwg-fetch/maps --map https://app.corpus.test/=.
115
+ ```
116
+
117
+ <!-- docs-test: output -->
118
+ ```text
119
+ monkeypatchlist 0.1.0 · catalog 1 · maps · surface protected · offline
120
+
121
+ Findings 4 (no baseline: run with --baseline to see the change)
122
+ Window.Headers replace
123
+ Package whatwg-fetch
124
+ Introduced by unknown (no lockfile)
125
+ Source ../../../../../node_modules/whatwg-fetch/fetch.js:639 (assets/index-9dL12JRx.js:2:3031)
126
+ Provenance bundled dependency · load · guarded-native-absence
127
+ Confidence target high · mutation high · attribution high
128
+ Fingerprint window|Window.Headers|replace|pkg:whatwg-fetch
129
+ Window.Request replace
130
+ Package whatwg-fetch
131
+ Introduced by unknown (no lockfile)
132
+ Source ../../../../../node_modules/whatwg-fetch/fetch.js:640 (assets/index-9dL12JRx.js:2:3043)
133
+ Provenance bundled dependency · load · guarded-native-absence
134
+ Confidence target high · mutation high · attribution high
135
+ Fingerprint window|Window.Request|replace|pkg:whatwg-fetch
136
+ Window.Response replace
137
+ Package whatwg-fetch
138
+ Introduced by unknown (no lockfile)
139
+ Source ../../../../../node_modules/whatwg-fetch/fetch.js:641 (assets/index-9dL12JRx.js:2:3055)
140
+ Provenance bundled dependency · load · guarded-native-absence
141
+ Confidence target high · mutation high · attribution high
142
+ Fingerprint window|Window.Response|replace|pkg:whatwg-fetch
143
+ Window.fetch replace
144
+ Package whatwg-fetch
145
+ Introduced by unknown (no lockfile)
146
+ Source ../../../../../node_modules/whatwg-fetch/fetch.js:638 (assets/index-9dL12JRx.js:2:3021)
147
+ Provenance bundled dependency · load · guarded-native-absence
148
+ Confidence target high · mutation high · attribution high
149
+ Fingerprint window|Window.fetch|replace|pkg:whatwg-fetch
150
+
151
+ Completeness complete
152
+ Known 1 · analyzed 1 · failed 0 · skipped 0
153
+ Inputs
154
+ Source maps 1 / 1 artifacts
155
+ Lockfile not given · no lockfile versions; Introduced by unknown
156
+ Outside scope other 1 (run with --surface all)
157
+ Ineffective writes 0
158
+
159
+ Gate not run (no --fail-on)
160
+ ```
161
+
162
+ ## What it covers
163
+
164
+ - **Tested on webpack, Vite, Rollup and esbuild.** monkeypatchlist reads build output, not bundler metadata, and recovers module structure from the code itself. Builds from other bundlers may scan with some modules left unlinked (see [Limitations](docs/limitations.md)).
165
+ - **Real mutations only.** Assigning a writable attribute such as `location.href` is API use, not a mutation, and a write the browser rejects is recorded as ineffective, never as a finding.
166
+ - **The APIs that matter by default.** Scans report the [protected surface](docs/concepts.md#protected-surface): networking, events, timers, navigation, storage, crypto, workers, `console` and the core ECMAScript built-ins. `--surface all` reports the whole native catalog.
167
+ - **Honest coverage.** Every report says whether the scan was `complete`, and lists what it could not analyze.
168
+
169
+ It does not run your code, crawl live sites, or look for malware. [Limitations](docs/limitations.md) lists what it can't see.
170
+
171
+ ## Documentation
172
+
173
+ - [Getting started](docs/getting-started.md): inputs, a first scan, reading the report, adopting monkeypatchlist on an existing app
174
+ - [CI recipes](docs/ci.md): GitHub Actions and any other CI
175
+ - [Configuration and CLI reference](docs/configuration.md): every command, flag and config key, and the exit codes
176
+ - [Report format](docs/report-format.md): the JSON report
177
+ - [Concepts](docs/concepts.md): findings, fingerprints, attribution, baseline states, completeness and the protected surface
178
+ - [Limitations](docs/limitations.md)
179
+
180
+ Design decisions are recorded in [docs/adr](docs/adr/), and the vocabulary in [CONTEXT.md](CONTEXT.md). To work on monkeypatchlist, see [CONTRIBUTING.md](CONTRIBUTING.md).
181
+
182
+ ## License
183
+
184
+ [Apache-2.0](LICENSE)