@gfdelarue/testkit 0.3.7 → 0.4.1

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 (258) hide show
  1. package/README.md +125 -0
  2. package/dist/app/bugs/areas.d.ts +38 -0
  3. package/dist/app/bugs/areas.js +1 -0
  4. package/dist/app/bugs/assessment.d.ts +9 -0
  5. package/dist/app/bugs/assessment.js +1 -0
  6. package/dist/app/bugs/categories.d.ts +41 -0
  7. package/dist/app/bugs/categories.js +1 -0
  8. package/dist/app/bugs/ci-report.d.ts +21 -0
  9. package/dist/app/bugs/ci-report.js +2 -0
  10. package/dist/app/bugs/ci-summary.d.ts +13 -0
  11. package/dist/app/bugs/ci-summary.js +5 -0
  12. package/dist/app/bugs/draft.d.ts +70 -0
  13. package/dist/app/bugs/draft.js +4 -0
  14. package/dist/app/bugs/facts.d.ts +48 -0
  15. package/dist/app/bugs/facts.js +2 -0
  16. package/dist/app/bugs/file.d.ts +45 -0
  17. package/dist/app/bugs/file.js +1 -0
  18. package/dist/app/bugs/gate.d.ts +22 -0
  19. package/dist/app/bugs/gate.js +1 -0
  20. package/dist/app/bugs/guide.d.ts +20 -0
  21. package/dist/app/bugs/guide.js +8 -0
  22. package/dist/app/bugs/issue.d.ts +18 -0
  23. package/dist/app/bugs/issue.js +6 -0
  24. package/dist/app/bugs/known-failures.d.ts +49 -0
  25. package/dist/app/bugs/known-failures.js +1 -0
  26. package/dist/app/bugs/record.d.ts +14 -0
  27. package/dist/app/bugs/record.js +2 -0
  28. package/dist/app/bugs/run-reading.d.ts +51 -0
  29. package/dist/app/bugs/run-reading.js +1 -0
  30. package/dist/app/bugs/store.d.ts +34 -0
  31. package/dist/app/bugs/store.js +2 -0
  32. package/dist/app/campaigns/brief.d.ts +7 -0
  33. package/dist/app/campaigns/brief.js +10 -0
  34. package/dist/app/campaigns/campaign.d.ts +14 -0
  35. package/dist/app/campaigns/campaign.js +1 -0
  36. package/dist/app/campaigns/index.d.ts +38 -0
  37. package/dist/app/campaigns/index.js +2 -0
  38. package/dist/app/campaigns/store.d.ts +5 -0
  39. package/dist/app/campaigns/store.js +1 -0
  40. package/dist/app/campaigns/summary.d.ts +13 -0
  41. package/dist/app/campaigns/summary.js +8 -0
  42. package/dist/app/run/engine-execution.d.ts +1 -0
  43. package/dist/app/run/engine-execution.js +1 -1
  44. package/dist/app/run/failure-details.d.ts +1 -0
  45. package/dist/app/run/failure-details.js +1 -1
  46. package/dist/app/tracker/index.d.ts +8 -0
  47. package/dist/app/tracker/index.js +1 -0
  48. package/dist/app/tracker/remote.d.ts +13 -0
  49. package/dist/app/tracker/remote.js +1 -0
  50. package/dist/app/tracker/token.d.ts +7 -0
  51. package/dist/app/tracker/token.js +5 -0
  52. package/dist/cli/command-catalog.d.ts +21 -122
  53. package/dist/cli/command-catalog.js +1 -1
  54. package/dist/cli/command-registry.d.ts +1 -0
  55. package/dist/cli/command-registry.js +1 -1
  56. package/dist/cli/commands/bug/file.d.ts +16 -0
  57. package/dist/cli/commands/bug/file.js +2 -0
  58. package/dist/cli/commands/bug/guide.d.ts +5 -0
  59. package/dist/cli/commands/bug/guide.js +1 -0
  60. package/dist/cli/commands/bug/record.d.ts +9 -0
  61. package/dist/cli/commands/bug/record.js +2 -0
  62. package/dist/cli/commands/campaign/finish.d.ts +10 -0
  63. package/dist/cli/commands/campaign/finish.js +1 -0
  64. package/dist/cli/commands/campaign/start.d.ts +7 -0
  65. package/dist/cli/commands/campaign/start.js +1 -0
  66. package/dist/cli/commands/campaign/status.d.ts +13 -0
  67. package/dist/cli/commands/campaign/status.js +2 -0
  68. package/dist/cli/commands/ci/report.d.ts +15 -0
  69. package/dist/cli/commands/ci/report.js +2 -0
  70. package/dist/cli/commands/run.d.ts +1 -1
  71. package/dist/cli/commands/run.js +2 -1
  72. package/dist/cli/entrypoint.js +1 -1
  73. package/dist/cli/framework/execute.d.ts +1 -0
  74. package/dist/cli/framework/execute.js +6 -6
  75. package/dist/cli/index.js +1 -1
  76. package/dist/cli/renderers/bug/text.d.ts +8 -0
  77. package/dist/cli/renderers/bug/text.js +1 -0
  78. package/dist/cli/renderers/campaign/text.d.ts +2 -0
  79. package/dist/cli/renderers/campaign/text.js +1 -0
  80. package/dist/cli/renderers/ci/text.d.ts +2 -0
  81. package/dist/cli/renderers/ci/text.js +1 -0
  82. package/dist/cli/version-drift.js +7 -7
  83. package/dist/config/authoring/index.d.ts +10 -5
  84. package/dist/config/loader/bugs.d.ts +15 -0
  85. package/dist/config/loader/bugs.js +1 -0
  86. package/dist/config/loader/index.d.ts +0 -1
  87. package/dist/config/loader/index.js +1 -1
  88. package/dist/engines/adapters/execution.d.ts +4 -0
  89. package/dist/engines/adapters/execution.js +1 -1
  90. package/dist/engines/k6/adapter/executor.js +1 -1
  91. package/dist/engines/k6/runtime/checks.js +1 -1
  92. package/dist/engines/k6/runtime/http-assertions.d.ts +2 -2
  93. package/dist/engines/k6/runtime/http-assertions.js +1 -1
  94. package/dist/engines/k6/runtime/types.d.ts +2 -0
  95. package/dist/engines/node-vitest/adapter/evidence.js +2 -2
  96. package/dist/engines/node-vitest/adapter/failure-details.d.ts +1 -0
  97. package/dist/engines/node-vitest/adapter/failure-details.js +2 -2
  98. package/dist/engines/playwright/adapter/adapter.js +1 -1
  99. package/dist/engines/playwright/adapter/attachments.d.ts +1 -0
  100. package/dist/engines/playwright/adapter/config.js +3 -3
  101. package/dist/engines/playwright/adapter/evidence.js +1 -1
  102. package/dist/engines/playwright/adapter/reporter.js +1 -1
  103. package/dist/evidence/bundles.d.ts +2 -3
  104. package/dist/evidence/bundles.js +1 -1
  105. package/dist/evidence/contracts.d.ts +0 -8
  106. package/dist/evidence/index.d.ts +1 -1
  107. package/dist/evidence/index.js +1 -1
  108. package/dist/kernel/redaction.d.ts +1 -0
  109. package/dist/kernel/redaction.js +1 -1
  110. package/dist/process/execa-bundle.json +1 -1
  111. package/dist/process/files/json-file.d.ts +1 -0
  112. package/dist/process/files/json-file.js +1 -1
  113. package/dist/repo/history.d.ts +17 -0
  114. package/dist/repo/history.js +4 -0
  115. package/dist/repo/tree-listing.d.ts +10 -0
  116. package/dist/repo/tree-listing.js +1 -0
  117. package/dist/tracker/gitea.d.ts +14 -0
  118. package/dist/tracker/gitea.js +1 -0
  119. package/dist/tracker/github.d.ts +14 -0
  120. package/dist/tracker/github.js +1 -0
  121. package/dist/tracker/http.d.ts +33 -0
  122. package/dist/tracker/http.js +1 -0
  123. package/dist/tracker/index.d.ts +4 -0
  124. package/dist/tracker/index.js +1 -0
  125. package/dist/tracker/redaction.d.ts +4 -0
  126. package/dist/tracker/redaction.js +2 -0
  127. package/dist/tracker/requests.d.ts +17 -0
  128. package/dist/tracker/requests.js +1 -0
  129. package/dist/tracker/responses.d.ts +24 -0
  130. package/dist/tracker/responses.js +1 -0
  131. package/dist/tracker/types.d.ts +51 -0
  132. package/docs/bug-records.md +303 -0
  133. package/package.json +4 -10
  134. package/testkit-config-schema.md +50 -23
  135. package/dist/app/cloud/campaigns.d.ts +0 -6
  136. package/dist/app/cloud/campaigns.js +0 -1
  137. package/dist/app/cloud/control-actions.d.ts +0 -12
  138. package/dist/app/cloud/control-actions.js +0 -2
  139. package/dist/app/cloud/control-links.d.ts +0 -5
  140. package/dist/app/cloud/control-links.js +0 -1
  141. package/dist/app/cloud/control-read.d.ts +0 -24
  142. package/dist/app/cloud/control-read.js +0 -1
  143. package/dist/app/cloud/control-resources.d.ts +0 -3
  144. package/dist/app/cloud/control-resources.js +0 -1
  145. package/dist/app/cloud/control.d.ts +0 -34
  146. package/dist/app/cloud/control.js +0 -5
  147. package/dist/app/cloud/credentials.d.ts +0 -11
  148. package/dist/app/cloud/credentials.js +0 -2
  149. package/dist/app/cloud/index.d.ts +0 -22
  150. package/dist/app/cloud/index.js +0 -2
  151. package/dist/app/cloud/login.d.ts +0 -63
  152. package/dist/app/cloud/login.js +0 -2
  153. package/dist/app/cloud/migration/archive.d.ts +0 -13
  154. package/dist/app/cloud/migration/archive.js +0 -1
  155. package/dist/app/cloud/migration/commands.d.ts +0 -8
  156. package/dist/app/cloud/migration/commands.js +0 -1
  157. package/dist/app/cloud/migration/evidence.d.ts +0 -13
  158. package/dist/app/cloud/migration/evidence.js +0 -2
  159. package/dist/app/cloud/migration/files.d.ts +0 -16
  160. package/dist/app/cloud/migration/files.js +0 -2
  161. package/dist/app/cloud/migration/index.d.ts +0 -6
  162. package/dist/app/cloud/migration/index.js +0 -1
  163. package/dist/app/cloud/migration/journal.d.ts +0 -64
  164. package/dist/app/cloud/migration/journal.js +0 -1
  165. package/dist/app/cloud/migration/mapping-dispositions.d.ts +0 -3
  166. package/dist/app/cloud/migration/mapping-dispositions.js +0 -1
  167. package/dist/app/cloud/migration/mapping.d.ts +0 -11
  168. package/dist/app/cloud/migration/mapping.js +0 -2
  169. package/dist/app/cloud/migration/model.d.ts +0 -175
  170. package/dist/app/cloud/migration/plan.d.ts +0 -7
  171. package/dist/app/cloud/migration/plan.js +0 -1
  172. package/dist/app/cloud/migration/progress.d.ts +0 -19
  173. package/dist/app/cloud/migration/progress.js +0 -1
  174. package/dist/app/cloud/migration/reconcile.d.ts +0 -22
  175. package/dist/app/cloud/migration/reconcile.js +0 -1
  176. package/dist/app/cloud/migration/reconciliation-spool.d.ts +0 -4
  177. package/dist/app/cloud/migration/reconciliation-spool.js +0 -1
  178. package/dist/app/cloud/migration/state.d.ts +0 -15
  179. package/dist/app/cloud/migration/state.js +0 -1
  180. package/dist/app/cloud/migration/transfer.d.ts +0 -6
  181. package/dist/app/cloud/migration/transfer.js +0 -1
  182. package/dist/cli/cloud-apply-help.d.ts +0 -1
  183. package/dist/cli/cloud-apply-help.js +0 -56
  184. package/dist/cli/cloud-selection.d.ts +0 -2
  185. package/dist/cli/cloud-selection.js +0 -3
  186. package/dist/cli/commands/cloud/apply.d.ts +0 -5
  187. package/dist/cli/commands/cloud/apply.js +0 -1
  188. package/dist/cli/commands/cloud/campaign/create.d.ts +0 -5
  189. package/dist/cli/commands/cloud/campaign/create.js +0 -1
  190. package/dist/cli/commands/cloud/download.d.ts +0 -5
  191. package/dist/cli/commands/cloud/download.js +0 -1
  192. package/dist/cli/commands/cloud/list.d.ts +0 -5
  193. package/dist/cli/commands/cloud/list.js +0 -1
  194. package/dist/cli/commands/cloud/login.d.ts +0 -13
  195. package/dist/cli/commands/cloud/login.js +0 -2
  196. package/dist/cli/commands/cloud/logout.d.ts +0 -7
  197. package/dist/cli/commands/cloud/logout.js +0 -1
  198. package/dist/cli/commands/cloud/migrate/apply.d.ts +0 -2
  199. package/dist/cli/commands/cloud/migrate/apply.js +0 -1
  200. package/dist/cli/commands/cloud/migrate/plan.d.ts +0 -7
  201. package/dist/cli/commands/cloud/migrate/plan.js +0 -1
  202. package/dist/cli/commands/cloud/migrate/progress.d.ts +0 -2
  203. package/dist/cli/commands/cloud/migrate/progress.js +0 -2
  204. package/dist/cli/commands/cloud/migrate/reconcile.d.ts +0 -2
  205. package/dist/cli/commands/cloud/migrate/reconcile.js +0 -1
  206. package/dist/cli/commands/cloud/policy/preview.d.ts +0 -5
  207. package/dist/cli/commands/cloud/policy/preview.js +0 -1
  208. package/dist/cli/commands/cloud/project/create.d.ts +0 -5
  209. package/dist/cli/commands/cloud/project/create.js +0 -1
  210. package/dist/cli/commands/cloud/publish.d.ts +0 -7
  211. package/dist/cli/commands/cloud/publish.js +0 -1
  212. package/dist/cli/commands/cloud/session/revoke.d.ts +0 -8
  213. package/dist/cli/commands/cloud/session/revoke.js +0 -1
  214. package/dist/cli/commands/cloud/show.d.ts +0 -5
  215. package/dist/cli/commands/cloud/show.js +0 -1
  216. package/dist/cli/commands/cloud/snapshot.d.ts +0 -5
  217. package/dist/cli/commands/cloud/snapshot.js +0 -1
  218. package/dist/cli/commands/cloud/status.d.ts +0 -33
  219. package/dist/cli/commands/cloud/status.js +0 -1
  220. package/dist/cloud/account.d.ts +0 -34
  221. package/dist/cloud/account.js +0 -1
  222. package/dist/cloud/archive-contract.d.ts +0 -1
  223. package/dist/cloud/archive-contract.js +0 -1
  224. package/dist/cloud/archive.d.ts +0 -12
  225. package/dist/cloud/archive.js +0 -1
  226. package/dist/cloud/campaigns.d.ts +0 -200
  227. package/dist/cloud/campaigns.js +0 -2
  228. package/dist/cloud/client.d.ts +0 -68
  229. package/dist/cloud/client.js +0 -4
  230. package/dist/cloud/download.d.ts +0 -5
  231. package/dist/cloud/download.js +0 -1
  232. package/dist/cloud/historical-contract.d.ts +0 -224
  233. package/dist/cloud/historical-contract.js +0 -1
  234. package/dist/cloud/historical-json.d.ts +0 -16
  235. package/dist/cloud/historical-json.js +0 -1
  236. package/dist/cloud/historical.d.ts +0 -69
  237. package/dist/cloud/historical.js +0 -1
  238. package/dist/cloud/pagination.d.ts +0 -5
  239. package/dist/cloud/pagination.js +0 -1
  240. package/dist/cloud/transport.d.ts +0 -18
  241. package/dist/cloud/transport.js +0 -1
  242. package/dist/config/loader/cloud.d.ts +0 -2
  243. package/dist/config/loader/cloud.js +0 -1
  244. package/docs/cloud-control.md +0 -108
  245. package/docs/testkit-cloud-boundary.md +0 -628
  246. package/node_modules/buffer-crc32/LICENSE +0 -19
  247. package/node_modules/buffer-crc32/README.md +0 -55
  248. package/node_modules/buffer-crc32/dist/index.cjs +0 -306
  249. package/node_modules/buffer-crc32/dist/index.d.cts +0 -35
  250. package/node_modules/buffer-crc32/dist/index.d.mts +0 -35
  251. package/node_modules/buffer-crc32/dist/index.mjs +0 -304
  252. package/node_modules/buffer-crc32/index.d.ts +0 -35
  253. package/node_modules/buffer-crc32/package.json +0 -54
  254. package/node_modules/yazl/LICENSE +0 -21
  255. package/node_modules/yazl/README.md +0 -457
  256. package/node_modules/yazl/index.js +0 -826
  257. package/node_modules/yazl/package.json +0 -34
  258. /package/dist/{app/cloud/migration/model.js → tracker/types.js} +0 -0
@@ -1,55 +0,0 @@
1
- # buffer-crc32
2
-
3
- [![NPM Version](https://img.shields.io/npm/v/buffer-crc32.svg)](https://npmjs.org/package/buffer-crc32)
4
- [![Build Status](https://github.com/brianloveswords/buffer-crc32/actions/workflows/ci.yml/badge.svg)](https://github.com/brianloveswords/buffer-crc32/actions/workflows/ci.yml)
5
-
6
- crc32 that works with binary data and fancy character sets, outputs
7
- buffer, signed or unsigned data and has tests.
8
-
9
- Derived from the sample CRC implementation in the PNG specification: http://www.w3.org/TR/PNG/#D-CRCAppendix
10
-
11
- This package requires Node 8+ to work.
12
-
13
- # install
14
-
15
- ```
16
- npm install buffer-crc32
17
- ```
18
-
19
- # example
20
-
21
- ```js
22
- const crc32 = require('buffer-crc32');
23
- // works with buffers
24
- const buf = Buffer([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);
25
- crc32(buf); // -> <Buffer 94 5a ab 4a>
26
-
27
- // has convenience methods for getting signed or unsigned ints
28
- crc32.signed(buf); // -> -1805997238
29
- crc32.unsigned(buf); // -> 2488970058
30
-
31
- // will cast to buffer if given a string, so you can
32
- // directly use foreign characters safely
33
- crc32('自動販売機'); // -> <Buffer cb 03 1a c5>
34
-
35
- // and works in append mode too
36
- const partialCrc = crc32('hey');
37
- const partialCrc = crc32(' ', partialCrc);
38
- const partialCrc = crc32('sup', partialCrc);
39
- const partialCrc = crc32(' ', partialCrc);
40
- const finalCrc = crc32('bros', partialCrc); // -> <Buffer 47 fa 55 70>
41
- ```
42
-
43
- # tests
44
-
45
- This was tested against the output of zlib's crc32 method. You can run
46
- the tests with`npm test` (requires tap)
47
-
48
- # see also
49
-
50
- https://github.com/alexgorbatchev/node-crc, `crc.buffer.crc32` also
51
- supports buffer inputs and return unsigned ints (thanks @tjholowaychuk).
52
-
53
- # license
54
-
55
- MIT/X11
@@ -1,306 +0,0 @@
1
- 'use strict';
2
-
3
- function getDefaultExportFromCjs (x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
- }
6
-
7
- const CRC_TABLE = new Int32Array([
8
- 0,
9
- 1996959894,
10
- 3993919788,
11
- 2567524794,
12
- 124634137,
13
- 1886057615,
14
- 3915621685,
15
- 2657392035,
16
- 249268274,
17
- 2044508324,
18
- 3772115230,
19
- 2547177864,
20
- 162941995,
21
- 2125561021,
22
- 3887607047,
23
- 2428444049,
24
- 498536548,
25
- 1789927666,
26
- 4089016648,
27
- 2227061214,
28
- 450548861,
29
- 1843258603,
30
- 4107580753,
31
- 2211677639,
32
- 325883990,
33
- 1684777152,
34
- 4251122042,
35
- 2321926636,
36
- 335633487,
37
- 1661365465,
38
- 4195302755,
39
- 2366115317,
40
- 997073096,
41
- 1281953886,
42
- 3579855332,
43
- 2724688242,
44
- 1006888145,
45
- 1258607687,
46
- 3524101629,
47
- 2768942443,
48
- 901097722,
49
- 1119000684,
50
- 3686517206,
51
- 2898065728,
52
- 853044451,
53
- 1172266101,
54
- 3705015759,
55
- 2882616665,
56
- 651767980,
57
- 1373503546,
58
- 3369554304,
59
- 3218104598,
60
- 565507253,
61
- 1454621731,
62
- 3485111705,
63
- 3099436303,
64
- 671266974,
65
- 1594198024,
66
- 3322730930,
67
- 2970347812,
68
- 795835527,
69
- 1483230225,
70
- 3244367275,
71
- 3060149565,
72
- 1994146192,
73
- 31158534,
74
- 2563907772,
75
- 4023717930,
76
- 1907459465,
77
- 112637215,
78
- 2680153253,
79
- 3904427059,
80
- 2013776290,
81
- 251722036,
82
- 2517215374,
83
- 3775830040,
84
- 2137656763,
85
- 141376813,
86
- 2439277719,
87
- 3865271297,
88
- 1802195444,
89
- 476864866,
90
- 2238001368,
91
- 4066508878,
92
- 1812370925,
93
- 453092731,
94
- 2181625025,
95
- 4111451223,
96
- 1706088902,
97
- 314042704,
98
- 2344532202,
99
- 4240017532,
100
- 1658658271,
101
- 366619977,
102
- 2362670323,
103
- 4224994405,
104
- 1303535960,
105
- 984961486,
106
- 2747007092,
107
- 3569037538,
108
- 1256170817,
109
- 1037604311,
110
- 2765210733,
111
- 3554079995,
112
- 1131014506,
113
- 879679996,
114
- 2909243462,
115
- 3663771856,
116
- 1141124467,
117
- 855842277,
118
- 2852801631,
119
- 3708648649,
120
- 1342533948,
121
- 654459306,
122
- 3188396048,
123
- 3373015174,
124
- 1466479909,
125
- 544179635,
126
- 3110523913,
127
- 3462522015,
128
- 1591671054,
129
- 702138776,
130
- 2966460450,
131
- 3352799412,
132
- 1504918807,
133
- 783551873,
134
- 3082640443,
135
- 3233442989,
136
- 3988292384,
137
- 2596254646,
138
- 62317068,
139
- 1957810842,
140
- 3939845945,
141
- 2647816111,
142
- 81470997,
143
- 1943803523,
144
- 3814918930,
145
- 2489596804,
146
- 225274430,
147
- 2053790376,
148
- 3826175755,
149
- 2466906013,
150
- 167816743,
151
- 2097651377,
152
- 4027552580,
153
- 2265490386,
154
- 503444072,
155
- 1762050814,
156
- 4150417245,
157
- 2154129355,
158
- 426522225,
159
- 1852507879,
160
- 4275313526,
161
- 2312317920,
162
- 282753626,
163
- 1742555852,
164
- 4189708143,
165
- 2394877945,
166
- 397917763,
167
- 1622183637,
168
- 3604390888,
169
- 2714866558,
170
- 953729732,
171
- 1340076626,
172
- 3518719985,
173
- 2797360999,
174
- 1068828381,
175
- 1219638859,
176
- 3624741850,
177
- 2936675148,
178
- 906185462,
179
- 1090812512,
180
- 3747672003,
181
- 2825379669,
182
- 829329135,
183
- 1181335161,
184
- 3412177804,
185
- 3160834842,
186
- 628085408,
187
- 1382605366,
188
- 3423369109,
189
- 3138078467,
190
- 570562233,
191
- 1426400815,
192
- 3317316542,
193
- 2998733608,
194
- 733239954,
195
- 1555261956,
196
- 3268935591,
197
- 3050360625,
198
- 752459403,
199
- 1541320221,
200
- 2607071920,
201
- 3965973030,
202
- 1969922972,
203
- 40735498,
204
- 2617837225,
205
- 3943577151,
206
- 1913087877,
207
- 83908371,
208
- 2512341634,
209
- 3803740692,
210
- 2075208622,
211
- 213261112,
212
- 2463272603,
213
- 3855990285,
214
- 2094854071,
215
- 198958881,
216
- 2262029012,
217
- 4057260610,
218
- 1759359992,
219
- 534414190,
220
- 2176718541,
221
- 4139329115,
222
- 1873836001,
223
- 414664567,
224
- 2282248934,
225
- 4279200368,
226
- 1711684554,
227
- 285281116,
228
- 2405801727,
229
- 4167216745,
230
- 1634467795,
231
- 376229701,
232
- 2685067896,
233
- 3608007406,
234
- 1308918612,
235
- 956543938,
236
- 2808555105,
237
- 3495958263,
238
- 1231636301,
239
- 1047427035,
240
- 2932959818,
241
- 3654703836,
242
- 1088359270,
243
- 936918e3,
244
- 2847714899,
245
- 3736837829,
246
- 1202900863,
247
- 817233897,
248
- 3183342108,
249
- 3401237130,
250
- 1404277552,
251
- 615818150,
252
- 3134207493,
253
- 3453421203,
254
- 1423857449,
255
- 601450431,
256
- 3009837614,
257
- 3294710456,
258
- 1567103746,
259
- 711928724,
260
- 3020668471,
261
- 3272380065,
262
- 1510334235,
263
- 755167117
264
- ]);
265
- function ensureBuffer(input) {
266
- if (Buffer.isBuffer(input)) {
267
- return input;
268
- }
269
- if (typeof input === "number") {
270
- return Buffer.alloc(input);
271
- } else if (typeof input === "string") {
272
- return Buffer.from(input);
273
- } else {
274
- throw new Error("input must be buffer, number, or string, received " + typeof input);
275
- }
276
- }
277
- function bufferizeInt(num) {
278
- const tmp = ensureBuffer(4);
279
- tmp.writeInt32BE(num, 0);
280
- return tmp;
281
- }
282
- function _crc32(buf, previous) {
283
- buf = ensureBuffer(buf);
284
- if (Buffer.isBuffer(previous)) {
285
- previous = previous.readUInt32BE(0);
286
- }
287
- let crc = ~~previous ^ -1;
288
- for (var n = 0; n < buf.length; n++) {
289
- crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
290
- }
291
- return crc ^ -1;
292
- }
293
- function crc32() {
294
- return bufferizeInt(_crc32.apply(null, arguments));
295
- }
296
- crc32.signed = function() {
297
- return _crc32.apply(null, arguments);
298
- };
299
- crc32.unsigned = function() {
300
- return _crc32.apply(null, arguments) >>> 0;
301
- };
302
- var bufferCrc32 = crc32;
303
-
304
- const index = /*@__PURE__*/getDefaultExportFromCjs(bufferCrc32);
305
-
306
- module.exports = index;
@@ -1,35 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- /**
4
- * These definitions were written by BendingBender (https://github.com/BendingBender)
5
- */
6
-
7
- export = crc32;
8
-
9
- declare function crc32(input: string | Buffer, partialCrc?: Buffer | number): Buffer;
10
-
11
- declare namespace crc32 {
12
- /**
13
- * Convenience method that returns a signed int instead of a `Buffer`.
14
- *
15
- * @example
16
- * import crc32 = require('buffer-crc32');
17
- *
18
- * // works with buffers
19
- * const buf = Buffer.from([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);
20
- * crc32.signed(buf); // -> -1805997238
21
- */
22
- function signed(buffer: string | Buffer, partialCrc?: Buffer | number): number;
23
-
24
- /**
25
- * Convenience method that returns an unsigned int instead of a `Buffer`.
26
- *
27
- * @example
28
- * import crc32 = require('buffer-crc32');
29
- *
30
- * // works with buffers
31
- * const buf = Buffer.from([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);
32
- * crc32.unsigned(buf); // -> 2488970058
33
- */
34
- function unsigned(buffer: string | Buffer, partialCrc?: Buffer | number): number;
35
- }
@@ -1,35 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- /**
4
- * These definitions were written by BendingBender (https://github.com/BendingBender)
5
- */
6
-
7
- export = crc32;
8
-
9
- declare function crc32(input: string | Buffer, partialCrc?: Buffer | number): Buffer;
10
-
11
- declare namespace crc32 {
12
- /**
13
- * Convenience method that returns a signed int instead of a `Buffer`.
14
- *
15
- * @example
16
- * import crc32 = require('buffer-crc32');
17
- *
18
- * // works with buffers
19
- * const buf = Buffer.from([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);
20
- * crc32.signed(buf); // -> -1805997238
21
- */
22
- function signed(buffer: string | Buffer, partialCrc?: Buffer | number): number;
23
-
24
- /**
25
- * Convenience method that returns an unsigned int instead of a `Buffer`.
26
- *
27
- * @example
28
- * import crc32 = require('buffer-crc32');
29
- *
30
- * // works with buffers
31
- * const buf = Buffer.from([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);
32
- * crc32.unsigned(buf); // -> 2488970058
33
- */
34
- function unsigned(buffer: string | Buffer, partialCrc?: Buffer | number): number;
35
- }
@@ -1,304 +0,0 @@
1
- function getDefaultExportFromCjs (x) {
2
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
- }
4
-
5
- const CRC_TABLE = new Int32Array([
6
- 0,
7
- 1996959894,
8
- 3993919788,
9
- 2567524794,
10
- 124634137,
11
- 1886057615,
12
- 3915621685,
13
- 2657392035,
14
- 249268274,
15
- 2044508324,
16
- 3772115230,
17
- 2547177864,
18
- 162941995,
19
- 2125561021,
20
- 3887607047,
21
- 2428444049,
22
- 498536548,
23
- 1789927666,
24
- 4089016648,
25
- 2227061214,
26
- 450548861,
27
- 1843258603,
28
- 4107580753,
29
- 2211677639,
30
- 325883990,
31
- 1684777152,
32
- 4251122042,
33
- 2321926636,
34
- 335633487,
35
- 1661365465,
36
- 4195302755,
37
- 2366115317,
38
- 997073096,
39
- 1281953886,
40
- 3579855332,
41
- 2724688242,
42
- 1006888145,
43
- 1258607687,
44
- 3524101629,
45
- 2768942443,
46
- 901097722,
47
- 1119000684,
48
- 3686517206,
49
- 2898065728,
50
- 853044451,
51
- 1172266101,
52
- 3705015759,
53
- 2882616665,
54
- 651767980,
55
- 1373503546,
56
- 3369554304,
57
- 3218104598,
58
- 565507253,
59
- 1454621731,
60
- 3485111705,
61
- 3099436303,
62
- 671266974,
63
- 1594198024,
64
- 3322730930,
65
- 2970347812,
66
- 795835527,
67
- 1483230225,
68
- 3244367275,
69
- 3060149565,
70
- 1994146192,
71
- 31158534,
72
- 2563907772,
73
- 4023717930,
74
- 1907459465,
75
- 112637215,
76
- 2680153253,
77
- 3904427059,
78
- 2013776290,
79
- 251722036,
80
- 2517215374,
81
- 3775830040,
82
- 2137656763,
83
- 141376813,
84
- 2439277719,
85
- 3865271297,
86
- 1802195444,
87
- 476864866,
88
- 2238001368,
89
- 4066508878,
90
- 1812370925,
91
- 453092731,
92
- 2181625025,
93
- 4111451223,
94
- 1706088902,
95
- 314042704,
96
- 2344532202,
97
- 4240017532,
98
- 1658658271,
99
- 366619977,
100
- 2362670323,
101
- 4224994405,
102
- 1303535960,
103
- 984961486,
104
- 2747007092,
105
- 3569037538,
106
- 1256170817,
107
- 1037604311,
108
- 2765210733,
109
- 3554079995,
110
- 1131014506,
111
- 879679996,
112
- 2909243462,
113
- 3663771856,
114
- 1141124467,
115
- 855842277,
116
- 2852801631,
117
- 3708648649,
118
- 1342533948,
119
- 654459306,
120
- 3188396048,
121
- 3373015174,
122
- 1466479909,
123
- 544179635,
124
- 3110523913,
125
- 3462522015,
126
- 1591671054,
127
- 702138776,
128
- 2966460450,
129
- 3352799412,
130
- 1504918807,
131
- 783551873,
132
- 3082640443,
133
- 3233442989,
134
- 3988292384,
135
- 2596254646,
136
- 62317068,
137
- 1957810842,
138
- 3939845945,
139
- 2647816111,
140
- 81470997,
141
- 1943803523,
142
- 3814918930,
143
- 2489596804,
144
- 225274430,
145
- 2053790376,
146
- 3826175755,
147
- 2466906013,
148
- 167816743,
149
- 2097651377,
150
- 4027552580,
151
- 2265490386,
152
- 503444072,
153
- 1762050814,
154
- 4150417245,
155
- 2154129355,
156
- 426522225,
157
- 1852507879,
158
- 4275313526,
159
- 2312317920,
160
- 282753626,
161
- 1742555852,
162
- 4189708143,
163
- 2394877945,
164
- 397917763,
165
- 1622183637,
166
- 3604390888,
167
- 2714866558,
168
- 953729732,
169
- 1340076626,
170
- 3518719985,
171
- 2797360999,
172
- 1068828381,
173
- 1219638859,
174
- 3624741850,
175
- 2936675148,
176
- 906185462,
177
- 1090812512,
178
- 3747672003,
179
- 2825379669,
180
- 829329135,
181
- 1181335161,
182
- 3412177804,
183
- 3160834842,
184
- 628085408,
185
- 1382605366,
186
- 3423369109,
187
- 3138078467,
188
- 570562233,
189
- 1426400815,
190
- 3317316542,
191
- 2998733608,
192
- 733239954,
193
- 1555261956,
194
- 3268935591,
195
- 3050360625,
196
- 752459403,
197
- 1541320221,
198
- 2607071920,
199
- 3965973030,
200
- 1969922972,
201
- 40735498,
202
- 2617837225,
203
- 3943577151,
204
- 1913087877,
205
- 83908371,
206
- 2512341634,
207
- 3803740692,
208
- 2075208622,
209
- 213261112,
210
- 2463272603,
211
- 3855990285,
212
- 2094854071,
213
- 198958881,
214
- 2262029012,
215
- 4057260610,
216
- 1759359992,
217
- 534414190,
218
- 2176718541,
219
- 4139329115,
220
- 1873836001,
221
- 414664567,
222
- 2282248934,
223
- 4279200368,
224
- 1711684554,
225
- 285281116,
226
- 2405801727,
227
- 4167216745,
228
- 1634467795,
229
- 376229701,
230
- 2685067896,
231
- 3608007406,
232
- 1308918612,
233
- 956543938,
234
- 2808555105,
235
- 3495958263,
236
- 1231636301,
237
- 1047427035,
238
- 2932959818,
239
- 3654703836,
240
- 1088359270,
241
- 936918e3,
242
- 2847714899,
243
- 3736837829,
244
- 1202900863,
245
- 817233897,
246
- 3183342108,
247
- 3401237130,
248
- 1404277552,
249
- 615818150,
250
- 3134207493,
251
- 3453421203,
252
- 1423857449,
253
- 601450431,
254
- 3009837614,
255
- 3294710456,
256
- 1567103746,
257
- 711928724,
258
- 3020668471,
259
- 3272380065,
260
- 1510334235,
261
- 755167117
262
- ]);
263
- function ensureBuffer(input) {
264
- if (Buffer.isBuffer(input)) {
265
- return input;
266
- }
267
- if (typeof input === "number") {
268
- return Buffer.alloc(input);
269
- } else if (typeof input === "string") {
270
- return Buffer.from(input);
271
- } else {
272
- throw new Error("input must be buffer, number, or string, received " + typeof input);
273
- }
274
- }
275
- function bufferizeInt(num) {
276
- const tmp = ensureBuffer(4);
277
- tmp.writeInt32BE(num, 0);
278
- return tmp;
279
- }
280
- function _crc32(buf, previous) {
281
- buf = ensureBuffer(buf);
282
- if (Buffer.isBuffer(previous)) {
283
- previous = previous.readUInt32BE(0);
284
- }
285
- let crc = ~~previous ^ -1;
286
- for (var n = 0; n < buf.length; n++) {
287
- crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
288
- }
289
- return crc ^ -1;
290
- }
291
- function crc32() {
292
- return bufferizeInt(_crc32.apply(null, arguments));
293
- }
294
- crc32.signed = function() {
295
- return _crc32.apply(null, arguments);
296
- };
297
- crc32.unsigned = function() {
298
- return _crc32.apply(null, arguments) >>> 0;
299
- };
300
- var bufferCrc32 = crc32;
301
-
302
- const index = /*@__PURE__*/getDefaultExportFromCjs(bufferCrc32);
303
-
304
- export { index as default };