create-leo-app 0.7.2 → 0.7.3

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 (379) hide show
  1. package/package.json +10 -2
  2. package/template-extension/README.md +4 -0
  3. package/template-extension/package.json +15 -0
  4. package/template-extension/rollup.config.js +21 -0
  5. package/template-extension/src/offscreen.js +1 -0
  6. package/template-extension/src/service_worker.js +20 -0
  7. package/template-extension/src/worker.js +34 -0
  8. package/template-extension/static/manifest.json +16 -0
  9. package/template-extension/static/offscreen.html +9 -0
  10. package/template-nextjs-ts/README.md +19 -0
  11. package/template-nextjs-ts/_gitignore +35 -0
  12. package/template-nextjs-ts/next-env.d.ts +5 -0
  13. package/template-nextjs-ts/next.config.js +32 -0
  14. package/template-nextjs-ts/node_modules/@types/node/LICENSE +21 -0
  15. package/template-nextjs-ts/node_modules/@types/node/README.md +15 -0
  16. package/template-nextjs-ts/node_modules/@types/node/assert/strict.d.ts +8 -0
  17. package/template-nextjs-ts/node_modules/@types/node/assert.d.ts +1040 -0
  18. package/template-nextjs-ts/node_modules/@types/node/async_hooks.d.ts +541 -0
  19. package/template-nextjs-ts/node_modules/@types/node/buffer.d.ts +2301 -0
  20. package/template-nextjs-ts/node_modules/@types/node/child_process.d.ts +1544 -0
  21. package/template-nextjs-ts/node_modules/@types/node/cluster.d.ts +578 -0
  22. package/template-nextjs-ts/node_modules/@types/node/console.d.ts +452 -0
  23. package/template-nextjs-ts/node_modules/@types/node/constants.d.ts +19 -0
  24. package/template-nextjs-ts/node_modules/@types/node/crypto.d.ts +4524 -0
  25. package/template-nextjs-ts/node_modules/@types/node/dgram.d.ts +596 -0
  26. package/template-nextjs-ts/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
  27. package/template-nextjs-ts/node_modules/@types/node/dns/promises.d.ts +476 -0
  28. package/template-nextjs-ts/node_modules/@types/node/dns.d.ts +864 -0
  29. package/template-nextjs-ts/node_modules/@types/node/dom-events.d.ts +124 -0
  30. package/template-nextjs-ts/node_modules/@types/node/domain.d.ts +170 -0
  31. package/template-nextjs-ts/node_modules/@types/node/events.d.ts +931 -0
  32. package/template-nextjs-ts/node_modules/@types/node/fs/promises.d.ts +1245 -0
  33. package/template-nextjs-ts/node_modules/@types/node/fs.d.ts +4317 -0
  34. package/template-nextjs-ts/node_modules/@types/node/globals.d.ts +503 -0
  35. package/template-nextjs-ts/node_modules/@types/node/globals.global.d.ts +1 -0
  36. package/template-nextjs-ts/node_modules/@types/node/http.d.ts +1908 -0
  37. package/template-nextjs-ts/node_modules/@types/node/http2.d.ts +2418 -0
  38. package/template-nextjs-ts/node_modules/@types/node/https.d.ts +550 -0
  39. package/template-nextjs-ts/node_modules/@types/node/index.d.ts +89 -0
  40. package/template-nextjs-ts/node_modules/@types/node/inspector.d.ts +3696 -0
  41. package/template-nextjs-ts/node_modules/@types/node/module.d.ts +315 -0
  42. package/template-nextjs-ts/node_modules/@types/node/net.d.ts +999 -0
  43. package/template-nextjs-ts/node_modules/@types/node/os.d.ts +495 -0
  44. package/template-nextjs-ts/node_modules/@types/node/package.json +217 -0
  45. package/template-nextjs-ts/node_modules/@types/node/path.d.ts +191 -0
  46. package/template-nextjs-ts/node_modules/@types/node/perf_hooks.d.ts +934 -0
  47. package/template-nextjs-ts/node_modules/@types/node/process.d.ts +1879 -0
  48. package/template-nextjs-ts/node_modules/@types/node/punycode.d.ts +117 -0
  49. package/template-nextjs-ts/node_modules/@types/node/querystring.d.ts +153 -0
  50. package/template-nextjs-ts/node_modules/@types/node/readline/promises.d.ts +150 -0
  51. package/template-nextjs-ts/node_modules/@types/node/readline.d.ts +540 -0
  52. package/template-nextjs-ts/node_modules/@types/node/repl.d.ts +430 -0
  53. package/template-nextjs-ts/node_modules/@types/node/sea.d.ts +153 -0
  54. package/template-nextjs-ts/node_modules/@types/node/stream/consumers.d.ts +12 -0
  55. package/template-nextjs-ts/node_modules/@types/node/stream/promises.d.ts +83 -0
  56. package/template-nextjs-ts/node_modules/@types/node/stream/web.d.ts +521 -0
  57. package/template-nextjs-ts/node_modules/@types/node/stream.d.ts +1707 -0
  58. package/template-nextjs-ts/node_modules/@types/node/string_decoder.d.ts +67 -0
  59. package/template-nextjs-ts/node_modules/@types/node/test.d.ts +1874 -0
  60. package/template-nextjs-ts/node_modules/@types/node/timers/promises.d.ts +97 -0
  61. package/template-nextjs-ts/node_modules/@types/node/timers.d.ts +240 -0
  62. package/template-nextjs-ts/node_modules/@types/node/tls.d.ts +1217 -0
  63. package/template-nextjs-ts/node_modules/@types/node/trace_events.d.ts +197 -0
  64. package/template-nextjs-ts/node_modules/@types/node/tty.d.ts +208 -0
  65. package/template-nextjs-ts/node_modules/@types/node/url.d.ts +952 -0
  66. package/template-nextjs-ts/node_modules/@types/node/util.d.ts +2298 -0
  67. package/template-nextjs-ts/node_modules/@types/node/v8.d.ts +808 -0
  68. package/template-nextjs-ts/node_modules/@types/node/vm.d.ts +924 -0
  69. package/template-nextjs-ts/node_modules/@types/node/wasi.d.ts +181 -0
  70. package/template-nextjs-ts/node_modules/@types/node/worker_threads.d.ts +694 -0
  71. package/template-nextjs-ts/node_modules/@types/node/zlib.d.ts +539 -0
  72. package/template-nextjs-ts/package.json +24 -0
  73. package/template-nextjs-ts/public/aleo.svg +8 -0
  74. package/template-nextjs-ts/public/next.svg +1 -0
  75. package/template-nextjs-ts/src/app/favicon.ico +0 -0
  76. package/template-nextjs-ts/src/app/globals.css +126 -0
  77. package/template-nextjs-ts/src/app/layout.tsx +22 -0
  78. package/template-nextjs-ts/src/app/page.module.css +160 -0
  79. package/template-nextjs-ts/src/app/page.tsx +94 -0
  80. package/template-nextjs-ts/src/app/worker.ts +47 -0
  81. package/template-nextjs-ts/tsconfig.json +27 -0
  82. package/template-node/README.md +5 -0
  83. package/template-node/_gitignore +24 -0
  84. package/template-node/package.json +12 -0
  85. package/template-node-ts/README.md +5 -0
  86. package/template-node-ts/_gitignore +24 -0
  87. package/template-node-ts/package.json +19 -0
  88. package/template-node-ts/rollup.config.js +19 -0
  89. package/template-node-ts/src/index.ts +65 -0
  90. package/template-node-ts/tsconfig.json +15 -0
  91. package/template-offline-public-transaction-ts/README.md +52 -0
  92. package/template-offline-public-transaction-ts/_gitignore +24 -0
  93. package/template-offline-public-transaction-ts/package.json +19 -0
  94. package/template-offline-public-transaction-ts/rollup.config.js +19 -0
  95. package/template-offline-public-transaction-ts/src/helpers.ts +70 -0
  96. package/template-offline-public-transaction-ts/src/index.ts +171 -0
  97. package/template-offline-public-transaction-ts/tsconfig.json +15 -0
  98. package/template-react-leo/.babelrc +6 -0
  99. package/template-react-leo/.eslintrc.cjs +20 -0
  100. package/template-react-leo/README.md +90 -0
  101. package/template-react-leo/_gitignore +24 -0
  102. package/template-react-leo/_headers +3 -0
  103. package/template-react-leo/helloworld/.env.example +2 -0
  104. package/template-react-leo/helloworld/README.md +13 -0
  105. package/template-react-leo/helloworld/build/main.aleo +7 -0
  106. package/template-react-leo/helloworld/build/program.json +6 -0
  107. package/template-react-leo/helloworld/inputs/helloworld.in +4 -0
  108. package/template-react-leo/helloworld/program.json +6 -0
  109. package/template-react-leo/helloworld/src/main.leo +7 -0
  110. package/template-react-leo/index.html +88 -0
  111. package/template-react-leo/install.sh +30 -0
  112. package/template-react-leo/package.json +44 -0
  113. package/template-react-leo/public/favicon.ico +0 -0
  114. package/template-react-leo/src/App.css +42 -0
  115. package/template-react-leo/src/App.jsx +103 -0
  116. package/template-react-leo/src/assets/aleo.svg +5 -0
  117. package/template-react-leo/src/assets/react.svg +1 -0
  118. package/template-react-leo/src/index.css +69 -0
  119. package/template-react-leo/src/main.jsx +10 -0
  120. package/template-react-leo/src/workers/AleoWorker.js +20 -0
  121. package/template-react-leo/src/workers/worker.js +72 -0
  122. package/template-react-leo/vite.config.js +16 -0
  123. package/template-react-leo/webpack.config.js +102 -0
  124. package/template-react-managed-worker/.babelrc +6 -0
  125. package/template-react-managed-worker/.eslintrc.cjs +20 -0
  126. package/template-react-managed-worker/README.md +8 -0
  127. package/template-react-managed-worker/_gitignore +24 -0
  128. package/template-react-managed-worker/index.html +88 -0
  129. package/template-react-managed-worker/package.json +41 -0
  130. package/template-react-managed-worker/public/favicon.ico +0 -0
  131. package/template-react-managed-worker/src/App.css +42 -0
  132. package/template-react-managed-worker/src/App.jsx +78 -0
  133. package/template-react-managed-worker/src/assets/aleo.png +0 -0
  134. package/template-react-managed-worker/src/assets/react.svg +1 -0
  135. package/template-react-managed-worker/src/index.css +69 -0
  136. package/template-react-managed-worker/src/main.jsx +10 -0
  137. package/template-react-managed-worker/vite.config.js +20 -0
  138. package/template-react-managed-worker/webpack.config.js +90 -0
  139. package/template-react-ts/.babelrc +7 -0
  140. package/template-react-ts/.eslintrc.cjs +20 -0
  141. package/template-react-ts/README.md +90 -0
  142. package/template-react-ts/_gitignore +24 -0
  143. package/template-react-ts/_headers +3 -0
  144. package/template-react-ts/helloworld/.env.example +2 -0
  145. package/template-react-ts/helloworld/README.md +13 -0
  146. package/template-react-ts/helloworld/build/main.aleo +7 -0
  147. package/template-react-ts/helloworld/build/program.json +6 -0
  148. package/template-react-ts/helloworld/inputs/helloworld.in +4 -0
  149. package/template-react-ts/helloworld/program.json +6 -0
  150. package/template-react-ts/helloworld/src/main.leo +7 -0
  151. package/template-react-ts/index.html +88 -0
  152. package/template-react-ts/install.sh +30 -0
  153. package/template-react-ts/node_modules/@types/node/LICENSE +21 -0
  154. package/template-react-ts/node_modules/@types/node/README.md +15 -0
  155. package/template-react-ts/node_modules/@types/node/assert/strict.d.ts +8 -0
  156. package/template-react-ts/node_modules/@types/node/assert.d.ts +1040 -0
  157. package/template-react-ts/node_modules/@types/node/async_hooks.d.ts +541 -0
  158. package/template-react-ts/node_modules/@types/node/buffer.d.ts +2301 -0
  159. package/template-react-ts/node_modules/@types/node/child_process.d.ts +1544 -0
  160. package/template-react-ts/node_modules/@types/node/cluster.d.ts +578 -0
  161. package/template-react-ts/node_modules/@types/node/console.d.ts +452 -0
  162. package/template-react-ts/node_modules/@types/node/constants.d.ts +19 -0
  163. package/template-react-ts/node_modules/@types/node/crypto.d.ts +4524 -0
  164. package/template-react-ts/node_modules/@types/node/dgram.d.ts +596 -0
  165. package/template-react-ts/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
  166. package/template-react-ts/node_modules/@types/node/dns/promises.d.ts +476 -0
  167. package/template-react-ts/node_modules/@types/node/dns.d.ts +864 -0
  168. package/template-react-ts/node_modules/@types/node/dom-events.d.ts +124 -0
  169. package/template-react-ts/node_modules/@types/node/domain.d.ts +170 -0
  170. package/template-react-ts/node_modules/@types/node/events.d.ts +931 -0
  171. package/template-react-ts/node_modules/@types/node/fs/promises.d.ts +1245 -0
  172. package/template-react-ts/node_modules/@types/node/fs.d.ts +4317 -0
  173. package/template-react-ts/node_modules/@types/node/globals.d.ts +503 -0
  174. package/template-react-ts/node_modules/@types/node/globals.global.d.ts +1 -0
  175. package/template-react-ts/node_modules/@types/node/http.d.ts +1908 -0
  176. package/template-react-ts/node_modules/@types/node/http2.d.ts +2418 -0
  177. package/template-react-ts/node_modules/@types/node/https.d.ts +550 -0
  178. package/template-react-ts/node_modules/@types/node/index.d.ts +89 -0
  179. package/template-react-ts/node_modules/@types/node/inspector.d.ts +3696 -0
  180. package/template-react-ts/node_modules/@types/node/module.d.ts +315 -0
  181. package/template-react-ts/node_modules/@types/node/net.d.ts +999 -0
  182. package/template-react-ts/node_modules/@types/node/os.d.ts +495 -0
  183. package/template-react-ts/node_modules/@types/node/package.json +217 -0
  184. package/template-react-ts/node_modules/@types/node/path.d.ts +191 -0
  185. package/template-react-ts/node_modules/@types/node/perf_hooks.d.ts +934 -0
  186. package/template-react-ts/node_modules/@types/node/process.d.ts +1879 -0
  187. package/template-react-ts/node_modules/@types/node/punycode.d.ts +117 -0
  188. package/template-react-ts/node_modules/@types/node/querystring.d.ts +153 -0
  189. package/template-react-ts/node_modules/@types/node/readline/promises.d.ts +150 -0
  190. package/template-react-ts/node_modules/@types/node/readline.d.ts +540 -0
  191. package/template-react-ts/node_modules/@types/node/repl.d.ts +430 -0
  192. package/template-react-ts/node_modules/@types/node/sea.d.ts +153 -0
  193. package/template-react-ts/node_modules/@types/node/stream/consumers.d.ts +12 -0
  194. package/template-react-ts/node_modules/@types/node/stream/promises.d.ts +83 -0
  195. package/template-react-ts/node_modules/@types/node/stream/web.d.ts +521 -0
  196. package/template-react-ts/node_modules/@types/node/stream.d.ts +1707 -0
  197. package/template-react-ts/node_modules/@types/node/string_decoder.d.ts +67 -0
  198. package/template-react-ts/node_modules/@types/node/test.d.ts +1874 -0
  199. package/template-react-ts/node_modules/@types/node/timers/promises.d.ts +97 -0
  200. package/template-react-ts/node_modules/@types/node/timers.d.ts +240 -0
  201. package/template-react-ts/node_modules/@types/node/tls.d.ts +1217 -0
  202. package/template-react-ts/node_modules/@types/node/trace_events.d.ts +197 -0
  203. package/template-react-ts/node_modules/@types/node/tty.d.ts +208 -0
  204. package/template-react-ts/node_modules/@types/node/url.d.ts +952 -0
  205. package/template-react-ts/node_modules/@types/node/util.d.ts +2298 -0
  206. package/template-react-ts/node_modules/@types/node/v8.d.ts +808 -0
  207. package/template-react-ts/node_modules/@types/node/vm.d.ts +924 -0
  208. package/template-react-ts/node_modules/@types/node/wasi.d.ts +181 -0
  209. package/template-react-ts/node_modules/@types/node/worker_threads.d.ts +694 -0
  210. package/template-react-ts/node_modules/@types/node/zlib.d.ts +539 -0
  211. package/template-react-ts/node_modules/diff/CONTRIBUTING.md +39 -0
  212. package/template-react-ts/node_modules/diff/LICENSE +31 -0
  213. package/template-react-ts/node_modules/diff/README.md +207 -0
  214. package/template-react-ts/node_modules/diff/dist/diff.js +1585 -0
  215. package/template-react-ts/node_modules/diff/dist/diff.min.js +38 -0
  216. package/template-react-ts/node_modules/diff/lib/convert/dmp.js +32 -0
  217. package/template-react-ts/node_modules/diff/lib/convert/xml.js +42 -0
  218. package/template-react-ts/node_modules/diff/lib/diff/array.js +45 -0
  219. package/template-react-ts/node_modules/diff/lib/diff/base.js +304 -0
  220. package/template-react-ts/node_modules/diff/lib/diff/character.js +37 -0
  221. package/template-react-ts/node_modules/diff/lib/diff/css.js +41 -0
  222. package/template-react-ts/node_modules/diff/lib/diff/json.js +163 -0
  223. package/template-react-ts/node_modules/diff/lib/diff/line.js +89 -0
  224. package/template-react-ts/node_modules/diff/lib/diff/sentence.js +41 -0
  225. package/template-react-ts/node_modules/diff/lib/diff/word.js +107 -0
  226. package/template-react-ts/node_modules/diff/lib/index.es6.js +1519 -0
  227. package/template-react-ts/node_modules/diff/lib/index.js +216 -0
  228. package/template-react-ts/node_modules/diff/lib/patch/apply.js +243 -0
  229. package/template-react-ts/node_modules/diff/lib/patch/create.js +247 -0
  230. package/template-react-ts/node_modules/diff/lib/patch/merge.js +609 -0
  231. package/template-react-ts/node_modules/diff/lib/patch/parse.js +156 -0
  232. package/template-react-ts/node_modules/diff/lib/util/array.js +32 -0
  233. package/template-react-ts/node_modules/diff/lib/util/distance-iterator.js +57 -0
  234. package/template-react-ts/node_modules/diff/lib/util/params.js +24 -0
  235. package/template-react-ts/node_modules/diff/package.json +73 -0
  236. package/template-react-ts/node_modules/diff/release-notes.md +261 -0
  237. package/template-react-ts/node_modules/diff/runtime.js +3 -0
  238. package/template-react-ts/node_modules/ts-node/LICENSE +21 -0
  239. package/template-react-ts/node_modules/ts-node/README.md +1442 -0
  240. package/template-react-ts/node_modules/ts-node/child-loader.mjs +8 -0
  241. package/template-react-ts/node_modules/ts-node/dist/bin-cwd.d.ts +2 -0
  242. package/template-react-ts/node_modules/ts-node/dist/bin-cwd.js +6 -0
  243. package/template-react-ts/node_modules/ts-node/dist/bin-cwd.js.map +1 -0
  244. package/template-react-ts/node_modules/ts-node/dist/bin-esm.d.ts +2 -0
  245. package/template-react-ts/node_modules/ts-node/dist/bin-esm.js +6 -0
  246. package/template-react-ts/node_modules/ts-node/dist/bin-esm.js.map +1 -0
  247. package/template-react-ts/node_modules/ts-node/dist/bin-script-deprecated.d.ts +2 -0
  248. package/template-react-ts/node_modules/ts-node/dist/bin-script-deprecated.js +7 -0
  249. package/template-react-ts/node_modules/ts-node/dist/bin-script-deprecated.js.map +1 -0
  250. package/template-react-ts/node_modules/ts-node/dist/bin-script.d.ts +2 -0
  251. package/template-react-ts/node_modules/ts-node/dist/bin-script.js +6 -0
  252. package/template-react-ts/node_modules/ts-node/dist/bin-script.js.map +1 -0
  253. package/template-react-ts/node_modules/ts-node/dist/bin-transpile.d.ts +2 -0
  254. package/template-react-ts/node_modules/ts-node/dist/bin-transpile.js +6 -0
  255. package/template-react-ts/node_modules/ts-node/dist/bin-transpile.js.map +1 -0
  256. package/template-react-ts/node_modules/ts-node/dist/bin.d.ts +11 -0
  257. package/template-react-ts/node_modules/ts-node/dist/bin.js +581 -0
  258. package/template-react-ts/node_modules/ts-node/dist/bin.js.map +1 -0
  259. package/template-react-ts/node_modules/ts-node/dist/child/argv-payload.d.ts +1 -0
  260. package/template-react-ts/node_modules/ts-node/dist/child/argv-payload.js +19 -0
  261. package/template-react-ts/node_modules/ts-node/dist/child/argv-payload.js.map +1 -0
  262. package/template-react-ts/node_modules/ts-node/dist/child/child-entrypoint.d.ts +1 -0
  263. package/template-react-ts/node_modules/ts-node/dist/child/child-entrypoint.js +24 -0
  264. package/template-react-ts/node_modules/ts-node/dist/child/child-entrypoint.js.map +1 -0
  265. package/template-react-ts/node_modules/ts-node/dist/child/child-loader.d.ts +1 -0
  266. package/template-react-ts/node_modules/ts-node/dist/child/child-loader.js +32 -0
  267. package/template-react-ts/node_modules/ts-node/dist/child/child-loader.js.map +1 -0
  268. package/template-react-ts/node_modules/ts-node/dist/child/child-require.d.ts +7 -0
  269. package/template-react-ts/node_modules/ts-node/dist/child/child-require.js +22 -0
  270. package/template-react-ts/node_modules/ts-node/dist/child/child-require.js.map +1 -0
  271. package/template-react-ts/node_modules/ts-node/dist/child/spawn-child.d.ts +1 -0
  272. package/template-react-ts/node_modules/ts-node/dist/child/spawn-child.js +49 -0
  273. package/template-react-ts/node_modules/ts-node/dist/child/spawn-child.js.map +1 -0
  274. package/template-react-ts/node_modules/ts-node/dist/cjs-resolve-hooks.d.ts +1 -0
  275. package/template-react-ts/node_modules/ts-node/dist/cjs-resolve-hooks.js +29 -0
  276. package/template-react-ts/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +1 -0
  277. package/template-react-ts/node_modules/ts-node/dist/configuration.d.ts +1 -0
  278. package/template-react-ts/node_modules/ts-node/dist/configuration.js +308 -0
  279. package/template-react-ts/node_modules/ts-node/dist/configuration.js.map +1 -0
  280. package/template-react-ts/node_modules/ts-node/dist/esm.d.ts +53 -0
  281. package/template-react-ts/node_modules/ts-node/dist/esm.js +228 -0
  282. package/template-react-ts/node_modules/ts-node/dist/esm.js.map +1 -0
  283. package/template-react-ts/node_modules/ts-node/dist/file-extensions.d.ts +1 -0
  284. package/template-react-ts/node_modules/ts-node/dist/file-extensions.js +133 -0
  285. package/template-react-ts/node_modules/ts-node/dist/file-extensions.js.map +1 -0
  286. package/template-react-ts/node_modules/ts-node/dist/index.d.ts +332 -0
  287. package/template-react-ts/node_modules/ts-node/dist/index.js +953 -0
  288. package/template-react-ts/node_modules/ts-node/dist/index.js.map +1 -0
  289. package/template-react-ts/node_modules/ts-node/dist/module-type-classifier.d.ts +1 -0
  290. package/template-react-ts/node_modules/ts-node/dist/module-type-classifier.js +64 -0
  291. package/template-react-ts/node_modules/ts-node/dist/module-type-classifier.js.map +1 -0
  292. package/template-react-ts/node_modules/ts-node/dist/node-module-type-classifier.d.ts +1 -0
  293. package/template-react-ts/node_modules/ts-node/dist/node-module-type-classifier.js +39 -0
  294. package/template-react-ts/node_modules/ts-node/dist/node-module-type-classifier.js.map +1 -0
  295. package/template-react-ts/node_modules/ts-node/dist/repl.d.ts +78 -0
  296. package/template-react-ts/node_modules/ts-node/dist/repl.js +561 -0
  297. package/template-react-ts/node_modules/ts-node/dist/repl.js.map +1 -0
  298. package/template-react-ts/node_modules/ts-node/dist/resolver-functions.d.ts +1 -0
  299. package/template-react-ts/node_modules/ts-node/dist/resolver-functions.js +143 -0
  300. package/template-react-ts/node_modules/ts-node/dist/resolver-functions.js.map +1 -0
  301. package/template-react-ts/node_modules/ts-node/dist/transpilers/swc.d.ts +11 -0
  302. package/template-react-ts/node_modules/ts-node/dist/transpilers/swc.js +218 -0
  303. package/template-react-ts/node_modules/ts-node/dist/transpilers/swc.js.map +1 -0
  304. package/template-react-ts/node_modules/ts-node/dist/transpilers/types.d.ts +35 -0
  305. package/template-react-ts/node_modules/ts-node/dist/transpilers/types.js +3 -0
  306. package/template-react-ts/node_modules/ts-node/dist/transpilers/types.js.map +1 -0
  307. package/template-react-ts/node_modules/ts-node/dist/ts-compiler-types.d.ts +63 -0
  308. package/template-react-ts/node_modules/ts-node/dist/ts-compiler-types.js +3 -0
  309. package/template-react-ts/node_modules/ts-node/dist/ts-compiler-types.js.map +1 -0
  310. package/template-react-ts/node_modules/ts-node/dist/ts-internals.d.ts +6 -0
  311. package/template-react-ts/node_modules/ts-node/dist/ts-internals.js +321 -0
  312. package/template-react-ts/node_modules/ts-node/dist/ts-internals.js.map +1 -0
  313. package/template-react-ts/node_modules/ts-node/dist/ts-transpile-module.d.ts +1 -0
  314. package/template-react-ts/node_modules/ts-node/dist/ts-transpile-module.js +100 -0
  315. package/template-react-ts/node_modules/ts-node/dist/ts-transpile-module.js.map +1 -0
  316. package/template-react-ts/node_modules/ts-node/dist/tsconfig-schema.d.ts +13 -0
  317. package/template-react-ts/node_modules/ts-node/dist/tsconfig-schema.js +3 -0
  318. package/template-react-ts/node_modules/ts-node/dist/tsconfig-schema.js.map +1 -0
  319. package/template-react-ts/node_modules/ts-node/dist/tsconfigs.d.ts +1 -0
  320. package/template-react-ts/node_modules/ts-node/dist/tsconfigs.js +36 -0
  321. package/template-react-ts/node_modules/ts-node/dist/tsconfigs.js.map +1 -0
  322. package/template-react-ts/node_modules/ts-node/dist/util.d.ts +4 -0
  323. package/template-react-ts/node_modules/ts-node/dist/util.js +175 -0
  324. package/template-react-ts/node_modules/ts-node/dist/util.js.map +1 -0
  325. package/template-react-ts/node_modules/ts-node/dist-raw/NODE-LICENSE.md +24 -0
  326. package/template-react-ts/node_modules/ts-node/dist-raw/README.md +36 -0
  327. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-constants.js +4 -0
  328. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-errors.js +82 -0
  329. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-cjs-helpers.js +89 -0
  330. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-cjs-loader.js +593 -0
  331. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-esm-get_format.js +106 -0
  332. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js +962 -0
  333. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-package_json_reader.js +44 -0
  334. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-repl-await.js +254 -0
  335. package/template-react-ts/node_modules/ts-node/dist-raw/node-internalBinding-fs.js +58 -0
  336. package/template-react-ts/node_modules/ts-node/dist-raw/node-nativemodule.js +9 -0
  337. package/template-react-ts/node_modules/ts-node/dist-raw/node-options.js +103 -0
  338. package/template-react-ts/node_modules/ts-node/dist-raw/node-primordials.js +37 -0
  339. package/template-react-ts/node_modules/ts-node/dist-raw/runmain-hack.js +9 -0
  340. package/template-react-ts/node_modules/ts-node/esm/transpile-only.mjs +8 -0
  341. package/template-react-ts/node_modules/ts-node/esm.mjs +8 -0
  342. package/template-react-ts/node_modules/ts-node/node10/tsconfig.json +3 -0
  343. package/template-react-ts/node_modules/ts-node/node12/tsconfig.json +3 -0
  344. package/template-react-ts/node_modules/ts-node/node14/tsconfig.json +3 -0
  345. package/template-react-ts/node_modules/ts-node/node16/tsconfig.json +3 -0
  346. package/template-react-ts/node_modules/ts-node/package.json +182 -0
  347. package/template-react-ts/node_modules/ts-node/register/files.js +3 -0
  348. package/template-react-ts/node_modules/ts-node/register/index.js +1 -0
  349. package/template-react-ts/node_modules/ts-node/register/transpile-only.js +3 -0
  350. package/template-react-ts/node_modules/ts-node/register/type-check.js +3 -0
  351. package/template-react-ts/node_modules/ts-node/transpilers/swc-experimental.js +1 -0
  352. package/template-react-ts/node_modules/ts-node/transpilers/swc.js +1 -0
  353. package/template-react-ts/node_modules/ts-node/tsconfig.schema.json +183 -0
  354. package/template-react-ts/node_modules/ts-node/tsconfig.schemastore-schema.json +1326 -0
  355. package/template-react-ts/package.json +49 -0
  356. package/template-react-ts/public/favicon.ico +0 -0
  357. package/template-react-ts/src/App.css +42 -0
  358. package/template-react-ts/src/App.tsx +103 -0
  359. package/template-react-ts/src/assets/aleo.svg +5 -0
  360. package/template-react-ts/src/assets/react.svg +1 -0
  361. package/template-react-ts/src/custom.d.ts +16 -0
  362. package/template-react-ts/src/index.css +69 -0
  363. package/template-react-ts/src/main.tsx +10 -0
  364. package/template-react-ts/src/workers/AleoWorker.ts +21 -0
  365. package/template-react-ts/src/workers/worker.ts +73 -0
  366. package/template-react-ts/tsconfig.json +16 -0
  367. package/template-react-ts/vite.config.ts +16 -0
  368. package/template-react-ts/webpack.config.ts +112 -0
  369. package/template-vanilla/_gitignore +24 -0
  370. package/template-vanilla/_headers +3 -0
  371. package/template-vanilla/index.html +13 -0
  372. package/template-vanilla/javascript.svg +1 -0
  373. package/template-vanilla/main.js +48 -0
  374. package/template-vanilla/package.json +16 -0
  375. package/template-vanilla/public/aleo.svg +76 -0
  376. package/template-vanilla/public/vite.svg +1 -0
  377. package/template-vanilla/style.css +97 -0
  378. package/template-vanilla/vite.config.js +12 -0
  379. package/template-vanilla/worker.js +95 -0
@@ -0,0 +1,539 @@
1
+ /**
2
+ * The `node:zlib` module provides compression functionality implemented using
3
+ * Gzip, Deflate/Inflate, and Brotli.
4
+ *
5
+ * To access it:
6
+ *
7
+ * ```js
8
+ * const zlib = require('node:zlib');
9
+ * ```
10
+ *
11
+ * Compression and decompression are built around the Node.js
12
+ * [Streams API](https://nodejs.org/docs/latest-v20.x/api/stream.html).
13
+ *
14
+ * Compressing or decompressing a stream (such as a file) can be accomplished by
15
+ * piping the source stream through a `zlib` `Transform` stream into a destination
16
+ * stream:
17
+ *
18
+ * ```js
19
+ * const { createGzip } = require('node:zlib');
20
+ * const { pipeline } = require('node:stream');
21
+ * const {
22
+ * createReadStream,
23
+ * createWriteStream,
24
+ * } = require('node:fs');
25
+ *
26
+ * const gzip = createGzip();
27
+ * const source = createReadStream('input.txt');
28
+ * const destination = createWriteStream('input.txt.gz');
29
+ *
30
+ * pipeline(source, gzip, destination, (err) => {
31
+ * if (err) {
32
+ * console.error('An error occurred:', err);
33
+ * process.exitCode = 1;
34
+ * }
35
+ * });
36
+ *
37
+ * // Or, Promisified
38
+ *
39
+ * const { promisify } = require('node:util');
40
+ * const pipe = promisify(pipeline);
41
+ *
42
+ * async function do_gzip(input, output) {
43
+ * const gzip = createGzip();
44
+ * const source = createReadStream(input);
45
+ * const destination = createWriteStream(output);
46
+ * await pipe(source, gzip, destination);
47
+ * }
48
+ *
49
+ * do_gzip('input.txt', 'input.txt.gz')
50
+ * .catch((err) => {
51
+ * console.error('An error occurred:', err);
52
+ * process.exitCode = 1;
53
+ * });
54
+ * ```
55
+ *
56
+ * It is also possible to compress or decompress data in a single step:
57
+ *
58
+ * ```js
59
+ * const { deflate, unzip } = require('node:zlib');
60
+ *
61
+ * const input = '.................................';
62
+ * deflate(input, (err, buffer) => {
63
+ * if (err) {
64
+ * console.error('An error occurred:', err);
65
+ * process.exitCode = 1;
66
+ * }
67
+ * console.log(buffer.toString('base64'));
68
+ * });
69
+ *
70
+ * const buffer = Buffer.from('eJzT0yMAAGTvBe8=', 'base64');
71
+ * unzip(buffer, (err, buffer) => {
72
+ * if (err) {
73
+ * console.error('An error occurred:', err);
74
+ * process.exitCode = 1;
75
+ * }
76
+ * console.log(buffer.toString());
77
+ * });
78
+ *
79
+ * // Or, Promisified
80
+ *
81
+ * const { promisify } = require('node:util');
82
+ * const do_unzip = promisify(unzip);
83
+ *
84
+ * do_unzip(buffer)
85
+ * .then((buf) => console.log(buf.toString()))
86
+ * .catch((err) => {
87
+ * console.error('An error occurred:', err);
88
+ * process.exitCode = 1;
89
+ * });
90
+ * ```
91
+ * @since v0.5.8
92
+ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/zlib.js)
93
+ */
94
+ declare module "zlib" {
95
+ import * as stream from "node:stream";
96
+ interface ZlibOptions {
97
+ /**
98
+ * @default constants.Z_NO_FLUSH
99
+ */
100
+ flush?: number | undefined;
101
+ /**
102
+ * @default constants.Z_FINISH
103
+ */
104
+ finishFlush?: number | undefined;
105
+ /**
106
+ * @default 16*1024
107
+ */
108
+ chunkSize?: number | undefined;
109
+ windowBits?: number | undefined;
110
+ level?: number | undefined; // compression only
111
+ memLevel?: number | undefined; // compression only
112
+ strategy?: number | undefined; // compression only
113
+ dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined; // deflate/inflate only, empty dictionary by default
114
+ /**
115
+ * If `true`, returns an object with `buffer` and `engine`.
116
+ */
117
+ info?: boolean | undefined;
118
+ /**
119
+ * Limits output size when using convenience methods.
120
+ * @default buffer.kMaxLength
121
+ */
122
+ maxOutputLength?: number | undefined;
123
+ }
124
+ interface BrotliOptions {
125
+ /**
126
+ * @default constants.BROTLI_OPERATION_PROCESS
127
+ */
128
+ flush?: number | undefined;
129
+ /**
130
+ * @default constants.BROTLI_OPERATION_FINISH
131
+ */
132
+ finishFlush?: number | undefined;
133
+ /**
134
+ * @default 16*1024
135
+ */
136
+ chunkSize?: number | undefined;
137
+ params?:
138
+ | {
139
+ /**
140
+ * Each key is a `constants.BROTLI_*` constant.
141
+ */
142
+ [key: number]: boolean | number;
143
+ }
144
+ | undefined;
145
+ /**
146
+ * Limits output size when using [convenience methods](https://nodejs.org/docs/latest-v20.x/api/zlib.html#convenience-methods).
147
+ * @default buffer.kMaxLength
148
+ */
149
+ maxOutputLength?: number | undefined;
150
+ }
151
+ interface Zlib {
152
+ /** @deprecated Use bytesWritten instead. */
153
+ readonly bytesRead: number;
154
+ readonly bytesWritten: number;
155
+ shell?: boolean | string | undefined;
156
+ close(callback?: () => void): void;
157
+ flush(kind?: number, callback?: () => void): void;
158
+ flush(callback?: () => void): void;
159
+ }
160
+ interface ZlibParams {
161
+ params(level: number, strategy: number, callback: () => void): void;
162
+ }
163
+ interface ZlibReset {
164
+ reset(): void;
165
+ }
166
+ interface BrotliCompress extends stream.Transform, Zlib {}
167
+ interface BrotliDecompress extends stream.Transform, Zlib {}
168
+ interface Gzip extends stream.Transform, Zlib {}
169
+ interface Gunzip extends stream.Transform, Zlib {}
170
+ interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
171
+ interface Inflate extends stream.Transform, Zlib, ZlibReset {}
172
+ interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
173
+ interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
174
+ interface Unzip extends stream.Transform, Zlib {}
175
+ /**
176
+ * Computes a 32-bit [Cyclic Redundancy Check](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of `data`.
177
+ * If `value` is specified, it is used as the starting value of the checksum, otherwise, 0 is used as the starting value.
178
+ * @param data When `data` is a string, it will be encoded as UTF-8 before being used for computation.
179
+ * @param value An optional starting value. It must be a 32-bit unsigned integer. @default 0
180
+ * @returns A 32-bit unsigned integer containing the checksum.
181
+ * @since v20.15.0
182
+ */
183
+ function crc32(data: string | Buffer | NodeJS.ArrayBufferView, value?: number): number;
184
+ /**
185
+ * Creates and returns a new `BrotliCompress` object.
186
+ * @since v11.7.0, v10.16.0
187
+ */
188
+ function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
189
+ /**
190
+ * Creates and returns a new `BrotliDecompress` object.
191
+ * @since v11.7.0, v10.16.0
192
+ */
193
+ function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
194
+ /**
195
+ * Creates and returns a new `Gzip` object.
196
+ * See `example`.
197
+ * @since v0.5.8
198
+ */
199
+ function createGzip(options?: ZlibOptions): Gzip;
200
+ /**
201
+ * Creates and returns a new `Gunzip` object.
202
+ * @since v0.5.8
203
+ */
204
+ function createGunzip(options?: ZlibOptions): Gunzip;
205
+ /**
206
+ * Creates and returns a new `Deflate` object.
207
+ * @since v0.5.8
208
+ */
209
+ function createDeflate(options?: ZlibOptions): Deflate;
210
+ /**
211
+ * Creates and returns a new `Inflate` object.
212
+ * @since v0.5.8
213
+ */
214
+ function createInflate(options?: ZlibOptions): Inflate;
215
+ /**
216
+ * Creates and returns a new `DeflateRaw` object.
217
+ *
218
+ * An upgrade of zlib from 1.2.8 to 1.2.11 changed behavior when `windowBits` is set to 8 for raw deflate streams. zlib would automatically set `windowBits` to 9 if was initially set to 8. Newer
219
+ * versions of zlib will throw an exception,
220
+ * so Node.js restored the original behavior of upgrading a value of 8 to 9,
221
+ * since passing `windowBits = 9` to zlib actually results in a compressed stream
222
+ * that effectively uses an 8-bit window only.
223
+ * @since v0.5.8
224
+ */
225
+ function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
226
+ /**
227
+ * Creates and returns a new `InflateRaw` object.
228
+ * @since v0.5.8
229
+ */
230
+ function createInflateRaw(options?: ZlibOptions): InflateRaw;
231
+ /**
232
+ * Creates and returns a new `Unzip` object.
233
+ * @since v0.5.8
234
+ */
235
+ function createUnzip(options?: ZlibOptions): Unzip;
236
+ type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
237
+ type CompressCallback = (error: Error | null, result: Buffer) => void;
238
+ /**
239
+ * @since v11.7.0, v10.16.0
240
+ */
241
+ function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
242
+ function brotliCompress(buf: InputType, callback: CompressCallback): void;
243
+ namespace brotliCompress {
244
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
245
+ }
246
+ /**
247
+ * Compress a chunk of data with `BrotliCompress`.
248
+ * @since v11.7.0, v10.16.0
249
+ */
250
+ function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
251
+ /**
252
+ * @since v11.7.0, v10.16.0
253
+ */
254
+ function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
255
+ function brotliDecompress(buf: InputType, callback: CompressCallback): void;
256
+ namespace brotliDecompress {
257
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
258
+ }
259
+ /**
260
+ * Decompress a chunk of data with `BrotliDecompress`.
261
+ * @since v11.7.0, v10.16.0
262
+ */
263
+ function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
264
+ /**
265
+ * @since v0.6.0
266
+ */
267
+ function deflate(buf: InputType, callback: CompressCallback): void;
268
+ function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
269
+ namespace deflate {
270
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
271
+ }
272
+ /**
273
+ * Compress a chunk of data with `Deflate`.
274
+ * @since v0.11.12
275
+ */
276
+ function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
277
+ /**
278
+ * @since v0.6.0
279
+ */
280
+ function deflateRaw(buf: InputType, callback: CompressCallback): void;
281
+ function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
282
+ namespace deflateRaw {
283
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
284
+ }
285
+ /**
286
+ * Compress a chunk of data with `DeflateRaw`.
287
+ * @since v0.11.12
288
+ */
289
+ function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
290
+ /**
291
+ * @since v0.6.0
292
+ */
293
+ function gzip(buf: InputType, callback: CompressCallback): void;
294
+ function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
295
+ namespace gzip {
296
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
297
+ }
298
+ /**
299
+ * Compress a chunk of data with `Gzip`.
300
+ * @since v0.11.12
301
+ */
302
+ function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
303
+ /**
304
+ * @since v0.6.0
305
+ */
306
+ function gunzip(buf: InputType, callback: CompressCallback): void;
307
+ function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
308
+ namespace gunzip {
309
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
310
+ }
311
+ /**
312
+ * Decompress a chunk of data with `Gunzip`.
313
+ * @since v0.11.12
314
+ */
315
+ function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
316
+ /**
317
+ * @since v0.6.0
318
+ */
319
+ function inflate(buf: InputType, callback: CompressCallback): void;
320
+ function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
321
+ namespace inflate {
322
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
323
+ }
324
+ /**
325
+ * Decompress a chunk of data with `Inflate`.
326
+ * @since v0.11.12
327
+ */
328
+ function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
329
+ /**
330
+ * @since v0.6.0
331
+ */
332
+ function inflateRaw(buf: InputType, callback: CompressCallback): void;
333
+ function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
334
+ namespace inflateRaw {
335
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
336
+ }
337
+ /**
338
+ * Decompress a chunk of data with `InflateRaw`.
339
+ * @since v0.11.12
340
+ */
341
+ function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
342
+ /**
343
+ * @since v0.6.0
344
+ */
345
+ function unzip(buf: InputType, callback: CompressCallback): void;
346
+ function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
347
+ namespace unzip {
348
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
349
+ }
350
+ /**
351
+ * Decompress a chunk of data with `Unzip`.
352
+ * @since v0.11.12
353
+ */
354
+ function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
355
+ namespace constants {
356
+ const BROTLI_DECODE: number;
357
+ const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
358
+ const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number;
359
+ const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number;
360
+ const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number;
361
+ const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number;
362
+ const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number;
363
+ const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number;
364
+ const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number;
365
+ const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number;
366
+ const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number;
367
+ const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number;
368
+ const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number;
369
+ const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number;
370
+ const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number;
371
+ const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number;
372
+ const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number;
373
+ const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number;
374
+ const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number;
375
+ const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number;
376
+ const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number;
377
+ const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number;
378
+ const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number;
379
+ const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number;
380
+ const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number;
381
+ const BROTLI_DECODER_ERROR_UNREACHABLE: number;
382
+ const BROTLI_DECODER_NEEDS_MORE_INPUT: number;
383
+ const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number;
384
+ const BROTLI_DECODER_NO_ERROR: number;
385
+ const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number;
386
+ const BROTLI_DECODER_PARAM_LARGE_WINDOW: number;
387
+ const BROTLI_DECODER_RESULT_ERROR: number;
388
+ const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number;
389
+ const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number;
390
+ const BROTLI_DECODER_RESULT_SUCCESS: number;
391
+ const BROTLI_DECODER_SUCCESS: number;
392
+ const BROTLI_DEFAULT_MODE: number;
393
+ const BROTLI_DEFAULT_QUALITY: number;
394
+ const BROTLI_DEFAULT_WINDOW: number;
395
+ const BROTLI_ENCODE: number;
396
+ const BROTLI_LARGE_MAX_WINDOW_BITS: number;
397
+ const BROTLI_MAX_INPUT_BLOCK_BITS: number;
398
+ const BROTLI_MAX_QUALITY: number;
399
+ const BROTLI_MAX_WINDOW_BITS: number;
400
+ const BROTLI_MIN_INPUT_BLOCK_BITS: number;
401
+ const BROTLI_MIN_QUALITY: number;
402
+ const BROTLI_MIN_WINDOW_BITS: number;
403
+ const BROTLI_MODE_FONT: number;
404
+ const BROTLI_MODE_GENERIC: number;
405
+ const BROTLI_MODE_TEXT: number;
406
+ const BROTLI_OPERATION_EMIT_METADATA: number;
407
+ const BROTLI_OPERATION_FINISH: number;
408
+ const BROTLI_OPERATION_FLUSH: number;
409
+ const BROTLI_OPERATION_PROCESS: number;
410
+ const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number;
411
+ const BROTLI_PARAM_LARGE_WINDOW: number;
412
+ const BROTLI_PARAM_LGBLOCK: number;
413
+ const BROTLI_PARAM_LGWIN: number;
414
+ const BROTLI_PARAM_MODE: number;
415
+ const BROTLI_PARAM_NDIRECT: number;
416
+ const BROTLI_PARAM_NPOSTFIX: number;
417
+ const BROTLI_PARAM_QUALITY: number;
418
+ const BROTLI_PARAM_SIZE_HINT: number;
419
+ const DEFLATE: number;
420
+ const DEFLATERAW: number;
421
+ const GUNZIP: number;
422
+ const GZIP: number;
423
+ const INFLATE: number;
424
+ const INFLATERAW: number;
425
+ const UNZIP: number;
426
+ // Allowed flush values.
427
+ const Z_NO_FLUSH: number;
428
+ const Z_PARTIAL_FLUSH: number;
429
+ const Z_SYNC_FLUSH: number;
430
+ const Z_FULL_FLUSH: number;
431
+ const Z_FINISH: number;
432
+ const Z_BLOCK: number;
433
+ const Z_TREES: number;
434
+ // Return codes for the compression/decompression functions.
435
+ // Negative values are errors, positive values are used for special but normal events.
436
+ const Z_OK: number;
437
+ const Z_STREAM_END: number;
438
+ const Z_NEED_DICT: number;
439
+ const Z_ERRNO: number;
440
+ const Z_STREAM_ERROR: number;
441
+ const Z_DATA_ERROR: number;
442
+ const Z_MEM_ERROR: number;
443
+ const Z_BUF_ERROR: number;
444
+ const Z_VERSION_ERROR: number;
445
+ // Compression levels.
446
+ const Z_NO_COMPRESSION: number;
447
+ const Z_BEST_SPEED: number;
448
+ const Z_BEST_COMPRESSION: number;
449
+ const Z_DEFAULT_COMPRESSION: number;
450
+ // Compression strategy.
451
+ const Z_FILTERED: number;
452
+ const Z_HUFFMAN_ONLY: number;
453
+ const Z_RLE: number;
454
+ const Z_FIXED: number;
455
+ const Z_DEFAULT_STRATEGY: number;
456
+ const Z_DEFAULT_WINDOWBITS: number;
457
+
458
+ const Z_MIN_WINDOWBITS: number;
459
+ const Z_MAX_WINDOWBITS: number;
460
+ const Z_MIN_CHUNK: number;
461
+ const Z_MAX_CHUNK: number;
462
+ const Z_DEFAULT_CHUNK: number;
463
+ const Z_MIN_MEMLEVEL: number;
464
+ const Z_MAX_MEMLEVEL: number;
465
+ const Z_DEFAULT_MEMLEVEL: number;
466
+ const Z_MIN_LEVEL: number;
467
+ const Z_MAX_LEVEL: number;
468
+ const Z_DEFAULT_LEVEL: number;
469
+ const ZLIB_VERNUM: number;
470
+ }
471
+ // Allowed flush values.
472
+ /** @deprecated Use `constants.Z_NO_FLUSH` */
473
+ const Z_NO_FLUSH: number;
474
+ /** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
475
+ const Z_PARTIAL_FLUSH: number;
476
+ /** @deprecated Use `constants.Z_SYNC_FLUSH` */
477
+ const Z_SYNC_FLUSH: number;
478
+ /** @deprecated Use `constants.Z_FULL_FLUSH` */
479
+ const Z_FULL_FLUSH: number;
480
+ /** @deprecated Use `constants.Z_FINISH` */
481
+ const Z_FINISH: number;
482
+ /** @deprecated Use `constants.Z_BLOCK` */
483
+ const Z_BLOCK: number;
484
+ /** @deprecated Use `constants.Z_TREES` */
485
+ const Z_TREES: number;
486
+ // Return codes for the compression/decompression functions.
487
+ // Negative values are errors, positive values are used for special but normal events.
488
+ /** @deprecated Use `constants.Z_OK` */
489
+ const Z_OK: number;
490
+ /** @deprecated Use `constants.Z_STREAM_END` */
491
+ const Z_STREAM_END: number;
492
+ /** @deprecated Use `constants.Z_NEED_DICT` */
493
+ const Z_NEED_DICT: number;
494
+ /** @deprecated Use `constants.Z_ERRNO` */
495
+ const Z_ERRNO: number;
496
+ /** @deprecated Use `constants.Z_STREAM_ERROR` */
497
+ const Z_STREAM_ERROR: number;
498
+ /** @deprecated Use `constants.Z_DATA_ERROR` */
499
+ const Z_DATA_ERROR: number;
500
+ /** @deprecated Use `constants.Z_MEM_ERROR` */
501
+ const Z_MEM_ERROR: number;
502
+ /** @deprecated Use `constants.Z_BUF_ERROR` */
503
+ const Z_BUF_ERROR: number;
504
+ /** @deprecated Use `constants.Z_VERSION_ERROR` */
505
+ const Z_VERSION_ERROR: number;
506
+ // Compression levels.
507
+ /** @deprecated Use `constants.Z_NO_COMPRESSION` */
508
+ const Z_NO_COMPRESSION: number;
509
+ /** @deprecated Use `constants.Z_BEST_SPEED` */
510
+ const Z_BEST_SPEED: number;
511
+ /** @deprecated Use `constants.Z_BEST_COMPRESSION` */
512
+ const Z_BEST_COMPRESSION: number;
513
+ /** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
514
+ const Z_DEFAULT_COMPRESSION: number;
515
+ // Compression strategy.
516
+ /** @deprecated Use `constants.Z_FILTERED` */
517
+ const Z_FILTERED: number;
518
+ /** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
519
+ const Z_HUFFMAN_ONLY: number;
520
+ /** @deprecated Use `constants.Z_RLE` */
521
+ const Z_RLE: number;
522
+ /** @deprecated Use `constants.Z_FIXED` */
523
+ const Z_FIXED: number;
524
+ /** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
525
+ const Z_DEFAULT_STRATEGY: number;
526
+ /** @deprecated */
527
+ const Z_BINARY: number;
528
+ /** @deprecated */
529
+ const Z_TEXT: number;
530
+ /** @deprecated */
531
+ const Z_ASCII: number;
532
+ /** @deprecated */
533
+ const Z_UNKNOWN: number;
534
+ /** @deprecated */
535
+ const Z_DEFLATED: number;
536
+ }
537
+ declare module "node:zlib" {
538
+ export * from "zlib";
539
+ }
@@ -0,0 +1,39 @@
1
+ # How to Contribute
2
+
3
+ ## Pull Requests
4
+
5
+ We also accept [pull requests][pull-request]!
6
+
7
+ Generally we like to see pull requests that
8
+
9
+ - Maintain the existing code style
10
+ - Are focused on a single change (i.e. avoid large refactoring or style adjustments in untouched code if not the primary goal of the pull request)
11
+ - Have [good commit messages](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
12
+ - Have tests
13
+ - Don't decrease the current code coverage (see coverage/lcov-report/index.html)
14
+
15
+ ## Building
16
+
17
+ ```
18
+ npm install
19
+ npm test
20
+ ```
21
+
22
+ The `npm test -- dev` implements watching for tests within Node and `karma start` may be used for manual testing in browsers.
23
+
24
+ If you notice any problems, please report them to the GitHub issue tracker at
25
+ [http://github.com/kpdecker/jsdiff/issues](http://github.com/kpdecker/jsdiff/issues).
26
+
27
+ ## Releasing
28
+
29
+ JsDiff utilizes the [release yeoman generator][generator-release] to perform most release tasks.
30
+
31
+ A full release may be completed with the following:
32
+
33
+ ```
34
+ yo release
35
+ npm publish
36
+ ```
37
+
38
+ [generator-release]: https://github.com/walmartlabs/generator-release
39
+ [pull-request]: https://github.com/kpdecker/jsdiff/pull/new/master
@@ -0,0 +1,31 @@
1
+ Software License Agreement (BSD License)
2
+
3
+ Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
4
+
5
+ All rights reserved.
6
+
7
+ Redistribution and use of this software in source and binary forms, with or without modification,
8
+ are permitted provided that the following conditions are met:
9
+
10
+ * Redistributions of source code must retain the above
11
+ copyright notice, this list of conditions and the
12
+ following disclaimer.
13
+
14
+ * Redistributions in binary form must reproduce the above
15
+ copyright notice, this list of conditions and the
16
+ following disclaimer in the documentation and/or other
17
+ materials provided with the distribution.
18
+
19
+ * Neither the name of Kevin Decker nor the names of its
20
+ contributors may be used to endorse or promote products
21
+ derived from this software without specific prior
22
+ written permission.
23
+
24
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
25
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
26
+ FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
27
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
30
+ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.