void 0.1.6 → 0.7.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 (333) hide show
  1. package/AGENT_PROMPT.md +15 -0
  2. package/README.md +62 -123
  3. package/dist/auth-BdsJ0Aff.d.mts +43 -0
  4. package/dist/auth-cmd-DVKi6dzh.mjs +43 -0
  5. package/dist/auth-migrations-BAtAck2g.mjs +117 -0
  6. package/dist/better-auth-shared-C9_GHSkR.d.mts +71 -0
  7. package/dist/better-auth-shared-CdYmQGry.mjs +163 -0
  8. package/dist/cache-B0BgSTZi.mjs +47 -0
  9. package/dist/cancel-deploy-D9OFt5gA.mjs +59 -0
  10. package/dist/cf-access-Dee5cXxL.mjs +22 -0
  11. package/dist/chunk-DJd-R1mw.mjs +34 -0
  12. package/dist/cli/cli.d.mts +1 -0
  13. package/dist/cli/cli.mjs +1814 -0
  14. package/dist/client-BUdfE3QJ.mjs +622 -0
  15. package/dist/collect-CjeZgz5D.mjs +55 -0
  16. package/dist/config-BIa9HwVX.mjs +573 -0
  17. package/dist/config-BzM9Dy7T.mjs +37 -0
  18. package/dist/config-CvHtTM0q.mjs +30 -0
  19. package/dist/create-project-CN1pF-OQ.mjs +90 -0
  20. package/dist/db-BIP2kuEt.mjs +895 -0
  21. package/dist/defer-DcxEsVH1.mjs +49 -0
  22. package/dist/delete-DJTvwbr-.mjs +64 -0
  23. package/dist/deploy-BqXz1ycW.mjs +2723 -0
  24. package/dist/discover-B7FkXBLB.mjs +40 -0
  25. package/dist/dist-DUyXJLkq.mjs +2667 -0
  26. package/dist/dist-Dayj3gCK.mjs +1287 -0
  27. package/dist/domain-B-fIU3VE.mjs +79 -0
  28. package/dist/dotenv-DwO4ti0Z.mjs +173 -0
  29. package/dist/drizzle-NnudE_UN.mjs +232 -0
  30. package/dist/env-BwbZJd2x.mjs +301 -0
  31. package/dist/env-helpers-Dr9Y7RnE.d.mts +52 -0
  32. package/dist/env-raw-BDL4TvdN.mjs +32 -0
  33. package/dist/env-types-DknSA4SO.mjs +64 -0
  34. package/dist/env-validation-DJKjR_8q.mjs +163 -0
  35. package/dist/fetch-error-BQ8sZ5Nd.mjs +266 -0
  36. package/dist/fetch-error-CVZ5CGA-.d.mts +20 -0
  37. package/dist/gen-U0Ktr4Zd.mjs +761 -0
  38. package/dist/handler-B0ds0OHJ.d.mts +269 -0
  39. package/dist/head-P-egrtFE.d.mts +45 -0
  40. package/dist/headers-DCXc7mDs.mjs +279 -0
  41. package/dist/index.d.mts +32 -0
  42. package/dist/index.mjs +4695 -0
  43. package/dist/init-Bb_Qsdq6.mjs +2625 -0
  44. package/dist/link-D4d26PCm.mjs +49 -0
  45. package/dist/list-bQc1eQCZ.mjs +113 -0
  46. package/dist/log-DXdqnmhF.mjs +26 -0
  47. package/dist/login-RWUDCfdx.mjs +72 -0
  48. package/dist/logs-DrkTklop.mjs +98 -0
  49. package/dist/magic-string.es-D6g9UnIy.mjs +1011 -0
  50. package/dist/mcp-kZ4zg13a.mjs +373 -0
  51. package/dist/node-DDfXj10V.mjs +54 -0
  52. package/dist/output-BwlcIYSR.mjs +139 -0
  53. package/dist/pages/client.d.mts +198 -0
  54. package/dist/pages/client.mjs +980 -0
  55. package/dist/pages/head-client.d.mts +15 -0
  56. package/dist/pages/head-client.mjs +90 -0
  57. package/dist/pages/head.d.mts +2 -0
  58. package/dist/pages/head.mjs +112 -0
  59. package/dist/pages/index.d.mts +38 -0
  60. package/dist/pages/index.mjs +76 -0
  61. package/dist/pages/islands-plugin.d.mts +50 -0
  62. package/dist/pages/islands-plugin.mjs +195 -0
  63. package/dist/pages/prefetch.d.mts +31 -0
  64. package/dist/pages/prefetch.mjs +90 -0
  65. package/dist/pages/protocol.d.mts +3 -0
  66. package/dist/pages/protocol.mjs +193 -0
  67. package/dist/pages/serialize.d.mts +10 -0
  68. package/dist/pages/serialize.mjs +14 -0
  69. package/dist/pathe.M-eThtNZ-D-kmWkCS.mjs +150 -0
  70. package/dist/plugin-inference-oZ6Ybu2_.mjs +2447 -0
  71. package/dist/prepare-BAtWufvm.mjs +99 -0
  72. package/dist/preset-D4I73kT4.mjs +221 -0
  73. package/dist/project-TqORyHn8.mjs +72 -0
  74. package/dist/project-cmd-ATFi3kRm.mjs +67 -0
  75. package/dist/project-slug-CKam8lF9.mjs +11 -0
  76. package/dist/project-tsconfig-DfkESbDL.mjs +63 -0
  77. package/dist/protocol-BWzXs2A2.d.mts +34 -0
  78. package/dist/providers-B3aMxWzP.mjs +67 -0
  79. package/dist/resolve-project-Br5BR03U.mjs +29 -0
  80. package/dist/rollback-BSyita3C.mjs +92 -0
  81. package/dist/route-types-DReF1gUY.mjs +255 -0
  82. package/dist/routes-stub.d.mts +55 -0
  83. package/dist/routes-stub.mjs +1 -0
  84. package/dist/runner-6Ep3fNQu.mjs +123 -0
  85. package/dist/runner-pg-D0wWHYnr.mjs +57 -0
  86. package/dist/runtime/ai.d.mts +127 -0
  87. package/dist/runtime/ai.mjs +348 -0
  88. package/dist/runtime/auth-client-react.d.mts +8 -0
  89. package/dist/runtime/auth-client-react.mjs +6 -0
  90. package/dist/runtime/auth-client-solid.d.mts +8 -0
  91. package/dist/runtime/auth-client-solid.mjs +6 -0
  92. package/dist/runtime/auth-client-svelte.d.mts +8 -0
  93. package/dist/runtime/auth-client-svelte.mjs +6 -0
  94. package/dist/runtime/auth-client-vue.d.mts +8 -0
  95. package/dist/runtime/auth-client-vue.mjs +6 -0
  96. package/dist/runtime/auth-client.d.mts +8 -0
  97. package/dist/runtime/auth-client.mjs +6 -0
  98. package/dist/runtime/auth.d.mts +2 -0
  99. package/dist/runtime/auth.mjs +22 -0
  100. package/dist/runtime/better-auth-pg.d.mts +11 -0
  101. package/dist/runtime/better-auth-pg.mjs +51 -0
  102. package/dist/runtime/better-auth.d.mts +11 -0
  103. package/dist/runtime/better-auth.mjs +33 -0
  104. package/dist/runtime/client.d.mts +6 -0
  105. package/dist/runtime/client.mjs +5 -0
  106. package/dist/runtime/db-pg.d.mts +2 -0
  107. package/dist/runtime/db-pg.mjs +1 -0
  108. package/dist/runtime/db.d.mts +17 -0
  109. package/dist/runtime/db.mjs +30 -0
  110. package/dist/runtime/drizzle-arktype.d.mts +1 -0
  111. package/dist/runtime/drizzle-arktype.mjs +2 -0
  112. package/dist/runtime/drizzle-valibot.d.mts +1 -0
  113. package/dist/runtime/drizzle-valibot.mjs +2 -0
  114. package/dist/runtime/drizzle-zod.d.mts +1 -0
  115. package/dist/runtime/drizzle-zod.mjs +2 -0
  116. package/dist/runtime/env-helpers.d.mts +2 -0
  117. package/dist/runtime/env-helpers.mjs +173 -0
  118. package/dist/runtime/env-public-client.d.mts +22 -0
  119. package/dist/runtime/env-public-client.mjs +54 -0
  120. package/dist/runtime/env-public.d.mts +143 -0
  121. package/dist/runtime/env-public.mjs +366 -0
  122. package/dist/runtime/env.d.mts +13 -0
  123. package/dist/runtime/env.mjs +51 -0
  124. package/dist/runtime/fetch-stream.d.mts +51 -0
  125. package/dist/runtime/fetch-stream.mjs +81 -0
  126. package/dist/runtime/fetch.d.mts +59 -0
  127. package/dist/runtime/fetch.mjs +18 -0
  128. package/dist/runtime/handler.d.mts +3 -0
  129. package/dist/runtime/handler.mjs +85 -0
  130. package/dist/runtime/isr.d.mts +26 -0
  131. package/dist/runtime/isr.mjs +43 -0
  132. package/dist/runtime/kv.d.mts +48 -0
  133. package/dist/runtime/kv.mjs +106 -0
  134. package/dist/runtime/log.d.mts +24 -0
  135. package/dist/runtime/log.mjs +31 -0
  136. package/dist/runtime/migration-handler-pg.d.mts +6 -0
  137. package/dist/runtime/migration-handler-pg.mjs +85 -0
  138. package/dist/runtime/migration-handler.d.mts +19 -0
  139. package/dist/runtime/migration-handler.mjs +92 -0
  140. package/dist/runtime/queues.d.mts +7 -0
  141. package/dist/runtime/queues.mjs +8 -0
  142. package/dist/runtime/remote/binding-handler.d.mts +15 -0
  143. package/dist/runtime/remote/binding-handler.mjs +208 -0
  144. package/dist/runtime/remote/index.d.mts +8 -0
  145. package/dist/runtime/remote/index.mjs +461 -0
  146. package/dist/runtime/response.d.mts +14 -0
  147. package/dist/runtime/response.mjs +30 -0
  148. package/dist/runtime/sandbox.d.mts +17 -0
  149. package/dist/runtime/sandbox.mjs +19 -0
  150. package/dist/runtime/schema-d1.d.mts +1 -0
  151. package/dist/runtime/schema-d1.mjs +2 -0
  152. package/dist/runtime/schema-pg.d.mts +1 -0
  153. package/dist/runtime/schema-pg.mjs +2 -0
  154. package/dist/runtime/seed.d.mts +30 -0
  155. package/dist/runtime/seed.mjs +6 -0
  156. package/dist/runtime/storage.d.mts +7 -0
  157. package/dist/runtime/storage.mjs +14 -0
  158. package/dist/runtime/validator.d.mts +2 -0
  159. package/dist/runtime/validator.mjs +72 -0
  160. package/dist/runtime/ws-server.d.mts +26 -0
  161. package/dist/runtime/ws-server.mjs +296 -0
  162. package/dist/runtime/ws.d.mts +123 -0
  163. package/dist/runtime/ws.mjs +103 -0
  164. package/dist/scan-Ba4hFwlH.mjs +324 -0
  165. package/dist/scan-C6HMEIdW.mjs +318 -0
  166. package/dist/secret-DmjBDxB1.mjs +109 -0
  167. package/dist/skills-ipldjlKE.mjs +62 -0
  168. package/dist/standard-schema-9CRjx-uR.d.mts +42 -0
  169. package/dist/subcommand-prompt-BKjuNAPb.mjs +349 -0
  170. package/dist/sveltekit.d.mts +20 -0
  171. package/dist/sveltekit.mjs +61 -0
  172. package/dist/types-mHOEwpW4.d.mts +57 -0
  173. package/dist/validate-CaMavMxu.mjs +146 -0
  174. package/dist/yarn-pnp-BFqMV_bl.mjs +196 -0
  175. package/getting-started-prompt.txt +26 -0
  176. package/package.json +322 -30
  177. package/schema.json +364 -0
  178. package/skills/migrate-vite-cloudflare-to-void/SKILL.md +175 -0
  179. package/skills/void/SKILL.md +75 -0
  180. package/skills/void/command/void.md +7 -0
  181. package/skills/void/docs/guide/ai.md +235 -0
  182. package/skills/void/docs/guide/app-types.md +103 -0
  183. package/skills/void/docs/guide/auth.md +257 -0
  184. package/skills/void/docs/guide/database/d1.md +106 -0
  185. package/skills/void/docs/guide/database/postgresql.md +106 -0
  186. package/skills/void/docs/guide/database.md +418 -0
  187. package/skills/void/docs/guide/deployment.md +98 -0
  188. package/skills/void/docs/guide/edge/headers.md +79 -0
  189. package/skills/void/docs/guide/edge/prerendering.md +83 -0
  190. package/skills/void/docs/guide/edge/redirects.md +116 -0
  191. package/skills/void/docs/guide/edge/revalidation.md +131 -0
  192. package/skills/void/docs/guide/edge/rewrites.md +354 -0
  193. package/skills/void/docs/guide/edge/static-assets.md +72 -0
  194. package/skills/void/docs/guide/env-vars.md +298 -0
  195. package/skills/void/docs/guide/index.md +80 -0
  196. package/skills/void/docs/guide/jobs.md +91 -0
  197. package/skills/void/docs/guide/kv.md +107 -0
  198. package/skills/void/docs/guide/pages-routing/actions-and-forms.md +419 -0
  199. package/skills/void/docs/guide/pages-routing/head.md +130 -0
  200. package/skills/void/docs/guide/pages-routing/islands.md +405 -0
  201. package/skills/void/docs/guide/pages-routing/layouts.md +362 -0
  202. package/skills/void/docs/guide/pages-routing/loaders.md +267 -0
  203. package/skills/void/docs/guide/pages-routing/markdown.md +625 -0
  204. package/skills/void/docs/guide/pages-routing/overview.md +236 -0
  205. package/skills/void/docs/guide/pages-routing/view-transitions.md +140 -0
  206. package/skills/void/docs/guide/queues.md +140 -0
  207. package/skills/void/docs/guide/quickstart.md +233 -0
  208. package/skills/void/docs/guide/remote-dev.md +67 -0
  209. package/skills/void/docs/guide/sandboxes.md +82 -0
  210. package/skills/void/docs/guide/server-routing.md +246 -0
  211. package/skills/void/docs/guide/ssg.md +74 -0
  212. package/skills/void/docs/guide/ssr.md +105 -0
  213. package/skills/void/docs/guide/storage.md +67 -0
  214. package/skills/void/docs/guide/type-safety.md +179 -0
  215. package/skills/void/docs/guide/typed-fetch.md +113 -0
  216. package/skills/void/docs/guide/websockets.md +190 -0
  217. package/skills/void/docs/index.md +48 -0
  218. package/skills/void/docs/integrations/agents.md +84 -0
  219. package/skills/void/docs/integrations/cloudflare.md +284 -0
  220. package/skills/void/docs/integrations/frameworks/analog.md +182 -0
  221. package/skills/void/docs/integrations/frameworks/astro.md +197 -0
  222. package/skills/void/docs/integrations/frameworks/nuxt.md +164 -0
  223. package/skills/void/docs/integrations/frameworks/overview.md +136 -0
  224. package/skills/void/docs/integrations/frameworks/react-router.md +137 -0
  225. package/skills/void/docs/integrations/frameworks/sveltekit.md +191 -0
  226. package/skills/void/docs/integrations/frameworks/tanstack-start.md +140 -0
  227. package/skills/void/docs/integrations/hono.md +97 -0
  228. package/skills/void/docs/integrations/nodejs-bun-deno.md +210 -0
  229. package/skills/void/docs/node_modules/@iconify/vue/README.md +408 -0
  230. package/skills/void/docs/node_modules/@iconify/vue/offline/readme.md +5 -0
  231. package/skills/void/docs/node_modules/@voidzero-dev/vitepress-theme/README.md +103 -0
  232. package/skills/void/docs/node_modules/oxc-minify/README.md +78 -0
  233. package/skills/void/docs/node_modules/reka-ui/README.md +80 -0
  234. package/skills/void/docs/node_modules/vitepress/README.md +28 -0
  235. package/skills/void/docs/node_modules/vitepress/template/api-examples.md +49 -0
  236. package/skills/void/docs/node_modules/vitepress/template/index.md +28 -0
  237. package/skills/void/docs/node_modules/vitepress/template/markdown-examples.md +85 -0
  238. package/skills/void/docs/node_modules/vitepress-plugin-group-icons/README.md +101 -0
  239. package/skills/void/docs/node_modules/void/AGENTS.md +204 -0
  240. package/skills/void/docs/node_modules/void/AGENT_PROMPT.md +15 -0
  241. package/skills/void/docs/node_modules/void/README.md +89 -0
  242. package/skills/void/docs/node_modules/void/node_modules/@clack/prompts/CHANGELOG.md +591 -0
  243. package/skills/void/docs/node_modules/void/node_modules/@clack/prompts/README.md +375 -0
  244. package/skills/void/docs/node_modules/void/node_modules/@cloudflare/sandbox/README.md +174 -0
  245. package/skills/void/docs/node_modules/void/node_modules/@cloudflare/vite-plugin/README.md +37 -0
  246. package/skills/void/docs/node_modules/void/node_modules/@cloudflare/workers-types/README.md +135 -0
  247. package/skills/void/docs/node_modules/void/node_modules/@electric-sql/pglite/README.md +189 -0
  248. package/skills/void/docs/node_modules/void/node_modules/@hono/oauth-providers/CHANGELOG.md +143 -0
  249. package/skills/void/docs/node_modules/void/node_modules/@hono/oauth-providers/README.md +1272 -0
  250. package/skills/void/docs/node_modules/void/node_modules/@napi-rs/keyring/README.md +19 -0
  251. package/skills/void/docs/node_modules/void/node_modules/@types/better-sqlite3/README.md +15 -0
  252. package/skills/void/docs/node_modules/void/node_modules/@types/node/README.md +15 -0
  253. package/skills/void/docs/node_modules/void/node_modules/@types/pg/README.md +15 -0
  254. package/skills/void/docs/node_modules/void/node_modules/@typescript/native-preview/README.md +22 -0
  255. package/skills/void/docs/node_modules/void/node_modules/@typescript/native-preview/vendor/vscode-jsonrpc/README.md +69 -0
  256. package/skills/void/docs/node_modules/void/node_modules/@void/md/README.md +152 -0
  257. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@shikijs/engine-javascript/README.md +9 -0
  258. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@shikijs/transformers/README.md +9 -0
  259. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@types/node/README.md +15 -0
  260. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/gray-matter/CHANGELOG.md +24 -0
  261. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/gray-matter/README.md +565 -0
  262. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-exit/README.md +124 -0
  263. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-anchor/README.md +600 -0
  264. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-attrs/README.md +386 -0
  265. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-container/README.md +95 -0
  266. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-emoji/README.md +101 -0
  267. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/pathe/README.md +73 -0
  268. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/shiki/README.md +15 -0
  269. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/tinyglobby/README.md +25 -0
  270. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/tsdown/README.md +55 -0
  271. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite/LICENSE.md +2230 -0
  272. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite/README.md +20 -0
  273. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vue/README.md +58 -0
  274. package/skills/void/docs/node_modules/void/node_modules/arktype/README.md +165 -0
  275. package/skills/void/docs/node_modules/void/node_modules/better-auth/LICENSE.md +20 -0
  276. package/skills/void/docs/node_modules/void/node_modules/better-auth/README.md +32 -0
  277. package/skills/void/docs/node_modules/void/node_modules/better-sqlite3/README.md +99 -0
  278. package/skills/void/docs/node_modules/void/node_modules/blake3-jit/README.md +108 -0
  279. package/skills/void/docs/node_modules/void/node_modules/drizzle-arktype/README.md +51 -0
  280. package/skills/void/docs/node_modules/void/node_modules/drizzle-kit/README.md +79 -0
  281. package/skills/void/docs/node_modules/void/node_modules/drizzle-orm/README.md +44 -0
  282. package/skills/void/docs/node_modules/void/node_modules/drizzle-valibot/README.md +51 -0
  283. package/skills/void/docs/node_modules/void/node_modules/drizzle-zod/README.md +65 -0
  284. package/skills/void/docs/node_modules/void/node_modules/es-module-lexer/README.md +390 -0
  285. package/skills/void/docs/node_modules/void/node_modules/estree-walker/README.md +48 -0
  286. package/skills/void/docs/node_modules/void/node_modules/hono/README.md +85 -0
  287. package/skills/void/docs/node_modules/void/node_modules/ignore/README.md +452 -0
  288. package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/CHANGELOG.md +76 -0
  289. package/{LICENSE → skills/void/docs/node_modules/void/node_modules/jsonc-parser/LICENSE.md} +21 -21
  290. package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/README.md +364 -0
  291. package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/SECURITY.md +41 -0
  292. package/skills/void/docs/node_modules/void/node_modules/magic-string/README.md +325 -0
  293. package/skills/void/docs/node_modules/void/node_modules/ofetch/README.md +398 -0
  294. package/skills/void/docs/node_modules/void/node_modules/pathe/README.md +73 -0
  295. package/skills/void/docs/node_modules/void/node_modules/pg/README.md +95 -0
  296. package/skills/void/docs/node_modules/void/node_modules/pglite-server/LICENSE.md +21 -0
  297. package/skills/void/docs/node_modules/void/node_modules/pglite-server/README.md +135 -0
  298. package/skills/void/docs/node_modules/void/node_modules/picocolors/README.md +21 -0
  299. package/skills/void/docs/node_modules/void/node_modules/tinyglobby/README.md +25 -0
  300. package/skills/void/docs/node_modules/void/node_modules/tsdown/README.md +55 -0
  301. package/skills/void/docs/node_modules/void/node_modules/valibot/LICENSE.md +9 -0
  302. package/skills/void/docs/node_modules/void/node_modules/valibot/README.md +94 -0
  303. package/skills/void/docs/node_modules/void/node_modules/vite/LICENSE.md +2230 -0
  304. package/skills/void/docs/node_modules/void/node_modules/vite/README.md +20 -0
  305. package/skills/void/docs/node_modules/void/node_modules/wrangler/README.md +63 -0
  306. package/skills/void/docs/node_modules/void/node_modules/zod/README.md +191 -0
  307. package/skills/void/docs/node_modules/void/skills/migrate-vite-cloudflare-to-void/SKILL.md +175 -0
  308. package/skills/void/docs/node_modules/void/skills/void/SKILL.md +75 -0
  309. package/skills/void/docs/node_modules/void/skills/void/command/void.md +7 -0
  310. package/skills/void/docs/reference/api.md +917 -0
  311. package/skills/void/docs/reference/cli.md +564 -0
  312. package/skills/void/docs/reference/config.md +408 -0
  313. package/skills/void/docs/reference/resource-inference.md +149 -0
  314. package/skills/void/docs/reference/structure.md +176 -0
  315. package/.npmignore +0 -29
  316. package/.travis.yml +0 -9
  317. package/favicon.ico +0 -0
  318. package/index.js +0 -14
  319. package/lib/Job.js +0 -150
  320. package/lib/Void.js +0 -99
  321. package/lib/scan.js +0 -19
  322. package/test/credentials.js +0 -20
  323. package/test/job.js +0 -64
  324. package/test/static/dir1/test6.html +0 -0
  325. package/test/static/dir2/test7.html +0 -0
  326. package/test/static/dir2/test8.html +0 -0
  327. package/test/static/dir2/test9.html +0 -0
  328. package/test/static/test1.html +0 -0
  329. package/test/static/test2.html +0 -0
  330. package/test/static/test3.html +0 -0
  331. package/test/void.js +0 -31
  332. /package/{test/static/dir1/test4.html → skills/void/docs/integrations/auth-providers.md} +0 -0
  333. /package/{test/static/dir1/test5.html → skills/void/docs/integrations/payment-processors.md} +0 -0
@@ -0,0 +1,452 @@
1
+ | Linux / MacOS / Windows | Coverage | Downloads |
2
+ | ----------------------- | -------- | --------- |
3
+ | [![build][bb]][bl] | [![coverage][cb]][cl] | [![downloads][db]][dl] |
4
+
5
+ [bb]: https://github.com/kaelzhang/node-ignore/actions/workflows/nodejs.yml/badge.svg
6
+ [bl]: https://github.com/kaelzhang/node-ignore/actions/workflows/nodejs.yml
7
+
8
+ [cb]: https://codecov.io/gh/kaelzhang/node-ignore/branch/master/graph/badge.svg
9
+ [cl]: https://codecov.io/gh/kaelzhang/node-ignore
10
+
11
+ [db]: http://img.shields.io/npm/dm/ignore.svg
12
+ [dl]: https://www.npmjs.org/package/ignore
13
+
14
+ # ignore
15
+
16
+ `ignore` is a manager, filter and parser which implemented in pure JavaScript according to the [.gitignore spec 2.22.1](http://git-scm.com/docs/gitignore).
17
+
18
+ `ignore` is used by eslint, gitbook and [many others](https://www.npmjs.com/browse/depended/ignore).
19
+
20
+ Pay **ATTENTION** that [`minimatch`](https://www.npmjs.org/package/minimatch) (which used by `fstream-ignore`) does not follow the gitignore spec.
21
+
22
+ To filter filenames according to a .gitignore file, I recommend this npm package, `ignore`.
23
+
24
+ To parse an `.npmignore` file, you should use `minimatch`, because an `.npmignore` file is parsed by npm using `minimatch` and it does not work in the .gitignore way.
25
+
26
+ ### Tested on
27
+
28
+ `ignore` is fully tested, and has more than **five hundreds** of unit tests.
29
+
30
+ - Linux + Node: `0.8` - `7.x`
31
+ - Windows + Node: `0.10` - `7.x`, node < `0.10` is not tested due to the lack of support of appveyor.
32
+
33
+ Actually, `ignore` does not rely on any versions of node specially.
34
+
35
+ Since `4.0.0`, ignore will no longer support `node < 6` by default, to use in node < 6, `require('ignore/legacy')`. For details, see [CHANGELOG](https://github.com/kaelzhang/node-ignore/blob/master/CHANGELOG.md).
36
+
37
+ ## Table Of Main Contents
38
+
39
+ - [Usage](#usage)
40
+ - [`Pathname` Conventions](#pathname-conventions)
41
+ - See Also:
42
+ - [`glob-gitignore`](https://www.npmjs.com/package/glob-gitignore) matches files using patterns and filters them according to gitignore rules.
43
+ - [Upgrade Guide](#upgrade-guide)
44
+
45
+ ## Install
46
+
47
+ ```sh
48
+ npm i ignore
49
+ ```
50
+
51
+ ## Usage
52
+
53
+ ```js
54
+ import ignore from 'ignore'
55
+ const ig = ignore().add(['.abc/*', '!.abc/d/'])
56
+ ```
57
+
58
+ ### Filter the given paths
59
+
60
+ ```js
61
+ const paths = [
62
+ '.abc/a.js', // filtered out
63
+ '.abc/d/e.js' // included
64
+ ]
65
+
66
+ ig.filter(paths) // ['.abc/d/e.js']
67
+ ig.ignores('.abc/a.js') // true
68
+ ```
69
+
70
+ ### As the filter function
71
+
72
+ ```js
73
+ paths.filter(ig.createFilter()); // ['.abc/d/e.js']
74
+ ```
75
+
76
+ ### Win32 paths will be handled
77
+
78
+ ```js
79
+ ig.filter(['.abc\\a.js', '.abc\\d\\e.js'])
80
+ // if the code above runs on windows, the result will be
81
+ // ['.abc\\d\\e.js']
82
+ ```
83
+
84
+ ## Why another ignore?
85
+
86
+ - `ignore` is a standalone module, and is much simpler so that it could easy work with other programs, unlike [isaacs](https://npmjs.org/~isaacs)'s [fstream-ignore](https://npmjs.org/package/fstream-ignore) which must work with the modules of the fstream family.
87
+
88
+ - `ignore` only contains utility methods to filter paths according to the specified ignore rules, so
89
+ - `ignore` never try to find out ignore rules by traversing directories or fetching from git configurations.
90
+ - `ignore` don't cares about sub-modules of git projects.
91
+
92
+ - Exactly according to [gitignore man page](http://git-scm.com/docs/gitignore), fixes some known matching issues of fstream-ignore, such as:
93
+ - '`/*.js`' should only match '`a.js`', but not '`abc/a.js`'.
94
+ - '`**/foo`' should match '`foo`' anywhere.
95
+ - Prevent re-including a file if a parent directory of that file is excluded.
96
+ - Handle trailing whitespaces:
97
+ - `'a '`(one space) should not match `'a '`(two spaces).
98
+ - `'a \ '` matches `'a '`
99
+ - All test cases are verified with the result of `git check-ignore`.
100
+
101
+ # Methods
102
+
103
+ ## .add(pattern: string | Ignore): this
104
+ ## .add(patterns: Array<string | Ignore>): this
105
+ ## .add({pattern: string, mark?: string}): this since 7.0.0
106
+
107
+ - **pattern** `string | Ignore` An ignore pattern string, or the `Ignore` instance
108
+ - **patterns** `Array<string | Ignore>` Array of ignore patterns.
109
+ - **mark?** `string` Pattern mark, which is used to associate the pattern with a certain marker, such as the line no of the `.gitignore` file. Actually it could be an arbitrary string and is optional.
110
+
111
+ Adds a rule or several rules to the current manager.
112
+
113
+ Returns `this`
114
+
115
+ Notice that a line starting with `'#'`(hash) is treated as a comment. Put a backslash (`'\'`) in front of the first hash for patterns that begin with a hash, if you want to ignore a file with a hash at the beginning of the filename.
116
+
117
+ ```js
118
+ ignore().add('#abc').ignores('#abc') // false
119
+ ignore().add('\\#abc').ignores('#abc') // true
120
+ ```
121
+
122
+ `pattern` could either be a line of ignore pattern or a string of multiple ignore patterns, which means we could just `ignore().add()` the content of a ignore file:
123
+
124
+ ```js
125
+ ignore()
126
+ .add(fs.readFileSync(filenameOfGitignore).toString())
127
+ .filter(filenames)
128
+ ```
129
+
130
+ `pattern` could also be an `ignore` instance, so that we could easily inherit the rules of another `Ignore` instance.
131
+
132
+ ## .ignores(pathname: [Pathname](#pathname-conventions)): boolean
133
+
134
+ > new in 3.2.0
135
+
136
+ Returns `Boolean` whether `pathname` should be ignored.
137
+
138
+ ```js
139
+ ig.ignores('.abc/a.js') // true
140
+ ```
141
+
142
+ Please **PAY ATTENTION** that `.ignores()` is **NOT** equivalent to `git check-ignore` although in most cases they return equivalent results.
143
+
144
+ However, for the purposes of imitating the behavior of `git check-ignore`, please use `.checkIgnore()` instead.
145
+
146
+ ### `Pathname` Conventions:
147
+
148
+ #### 1. `Pathname` should be a `path.relative()`d pathname
149
+
150
+ `Pathname` should be a string that have been `path.join()`ed, or the return value of `path.relative()` to the current directory,
151
+
152
+ ```js
153
+ // WRONG, an error will be thrown
154
+ ig.ignores('./abc')
155
+
156
+ // WRONG, for it will never happen, and an error will be thrown
157
+ // If the gitignore rule locates at the root directory,
158
+ // `'/abc'` should be changed to `'abc'`.
159
+ // ```
160
+ // path.relative('/', '/abc') -> 'abc'
161
+ // ```
162
+ ig.ignores('/abc')
163
+
164
+ // WRONG, that it is an absolute path on Windows, an error will be thrown
165
+ ig.ignores('C:\\abc')
166
+
167
+ // Right
168
+ ig.ignores('abc')
169
+
170
+ // Right
171
+ ig.ignores(path.join('./abc')) // path.join('./abc') -> 'abc'
172
+ ```
173
+
174
+ In other words, each `Pathname` here should be a relative path to the directory of the gitignore rules.
175
+
176
+ Suppose the dir structure is:
177
+
178
+ ```
179
+ /path/to/your/repo
180
+ |-- a
181
+ | |-- a.js
182
+ |
183
+ |-- .b
184
+ |
185
+ |-- .c
186
+ |-- .DS_store
187
+ ```
188
+
189
+ Then the `paths` might be like this:
190
+
191
+ ```js
192
+ [
193
+ 'a/a.js'
194
+ '.b',
195
+ '.c/.DS_store'
196
+ ]
197
+ ```
198
+
199
+ #### 2. filenames and dirnames
200
+
201
+ `node-ignore` does NO `fs.stat` during path matching, so `node-ignore` treats
202
+ - `foo` as a file
203
+ - **`foo/` as a directory**
204
+
205
+ For the example below:
206
+
207
+ ```js
208
+ // First, we add a ignore pattern to ignore a directory
209
+ ig.add('config/')
210
+
211
+ // `ig` does NOT know if 'config', in the real world,
212
+ // is a normal file, directory or something.
213
+
214
+ ig.ignores('config')
215
+ // `ig` treats `config` as a file, so it returns `false`
216
+
217
+ ig.ignores('config/')
218
+ // returns `true`
219
+ ```
220
+
221
+ Specially for people who develop some library based on `node-ignore`, it is important to understand that.
222
+
223
+ Usually, you could use [`glob`](http://npmjs.org/package/glob) with `option.mark = true` to fetch the structure of the current directory:
224
+
225
+ ```js
226
+ import glob from 'glob'
227
+
228
+ glob('**', {
229
+ // Adds a / character to directory matches.
230
+ mark: true
231
+ }, (err, files) => {
232
+ if (err) {
233
+ return console.error(err)
234
+ }
235
+
236
+ let filtered = ignore().add(patterns).filter(files)
237
+ console.log(filtered)
238
+ })
239
+ ```
240
+
241
+
242
+ ## .filter(paths: Array&lt;Pathname&gt;): Array&lt;Pathname&gt;
243
+
244
+ ```ts
245
+ type Pathname = string
246
+ ```
247
+
248
+ Filters the given array of pathnames, and returns the filtered array.
249
+
250
+ - **paths** `Array.<Pathname>` The array of `pathname`s to be filtered.
251
+
252
+ ## .createFilter()
253
+
254
+ Creates a filter function which could filter an array of paths with `Array.prototype.filter`.
255
+
256
+ Returns `function(path)` the filter function.
257
+
258
+ ## .test(pathname: Pathname): TestResult
259
+
260
+ > New in 5.0.0
261
+
262
+ Returns `TestResult`
263
+
264
+ ```ts
265
+ // Since 5.0.0
266
+ interface TestResult {
267
+ ignored: boolean
268
+ // true if the `pathname` is finally unignored by some negative pattern
269
+ unignored: boolean
270
+ // The `IgnoreRule` which ignores the pathname
271
+ rule?: IgnoreRule
272
+ }
273
+
274
+ // Since 7.0.0
275
+ interface IgnoreRule {
276
+ // The original pattern
277
+ pattern: string
278
+ // Whether the pattern is a negative pattern
279
+ negative: boolean
280
+ // Which is used for other packages to build things upon `node-ignore`
281
+ mark?: string
282
+ }
283
+ ```
284
+
285
+ - `{ignored: true, unignored: false}`: the `pathname` is ignored
286
+ - `{ignored: false, unignored: true}`: the `pathname` is unignored
287
+ - `{ignored: false, unignored: false}`: the `pathname` is never matched by any ignore rules.
288
+
289
+ ## .checkIgnore(target: string): TestResult
290
+
291
+ > new in 7.0.0
292
+
293
+ Debugs gitignore / exclude files, which is equivalent to `git check-ignore -v`. Usually this method is used for other packages to implement the function of `git check-ignore -v` upon `node-ignore`
294
+
295
+ - **target** `string` the target to test.
296
+
297
+ Returns `TestResult`
298
+
299
+ ```js
300
+ ig.add({
301
+ pattern: 'foo/*',
302
+ mark: '60'
303
+ })
304
+
305
+ const {
306
+ ignored,
307
+ rule
308
+ } = checkIgnore('foo/')
309
+
310
+ if (ignored) {
311
+ console.log(`.gitignore:${result}:${rule.mark}:${rule.pattern} foo/`)
312
+ }
313
+
314
+ // .gitignore:60:foo/* foo/
315
+ ```
316
+
317
+ Please pay attention that this method does not have a strong built-in cache mechanism.
318
+
319
+ The purpose of introducing this method is to make it possible to implement the `git check-ignore` command in JavaScript based on `node-ignore`.
320
+
321
+ So do not use this method in those situations where performance is extremely important.
322
+
323
+ ## static `isPathValid(pathname): boolean` since 5.0.0
324
+
325
+ Check whether the `pathname` is an valid `path.relative()`d path according to the [convention](#1-pathname-should-be-a-pathrelatived-pathname).
326
+
327
+ This method is **NOT** used to check if an ignore pattern is valid.
328
+
329
+ ```js
330
+ import {isPathValid} from 'ignore'
331
+
332
+ isPathValid('./foo') // false
333
+ ```
334
+
335
+ ## <strike>.addIgnoreFile(path)</strike>
336
+
337
+ REMOVED in `3.x` for now.
338
+
339
+ To upgrade `ignore@2.x` up to `3.x`, use
340
+
341
+ ```js
342
+ import fs from 'fs'
343
+
344
+ if (fs.existsSync(filename)) {
345
+ ignore().add(fs.readFileSync(filename).toString())
346
+ }
347
+ ```
348
+
349
+ instead.
350
+
351
+ ## ignore(options)
352
+
353
+ ### `options.ignorecase` since 4.0.0
354
+
355
+ Similar to the `core.ignorecase` option of [git-config](https://git-scm.com/docs/git-config), `node-ignore` will be case insensitive if `options.ignorecase` is set to `true` (the default value), otherwise case sensitive.
356
+
357
+ ```js
358
+ const ig = ignore({
359
+ ignorecase: false
360
+ })
361
+
362
+ ig.add('*.png')
363
+
364
+ ig.ignores('*.PNG') // false
365
+ ```
366
+
367
+ ### `options.ignoreCase?: boolean` since 5.2.0
368
+
369
+ Which is an alternative to `options.ignoreCase`
370
+
371
+ ### `options.allowRelativePaths?: boolean` since 5.2.0
372
+
373
+ This option brings backward compatibility with projects which based on `ignore@4.x`. If `options.allowRelativePaths` is `true`, `ignore` will not check whether the given path to be tested is [`path.relative()`d](#pathname-conventions).
374
+
375
+ However, passing a relative path, such as `'./foo'` or `'../foo'`, to test if it is ignored or not is not a good practise, which might lead to unexpected behavior
376
+
377
+ ```js
378
+ ignore({
379
+ allowRelativePaths: true
380
+ }).ignores('../foo/bar.js') // And it will not throw
381
+ ```
382
+
383
+ ****
384
+
385
+ # Upgrade Guide
386
+
387
+ ## Upgrade 4.x -> 5.x
388
+
389
+ Since `5.0.0`, if an invalid `Pathname` passed into `ig.ignores()`, an error will be thrown, unless `options.allowRelative = true` is passed to the `Ignore` factory.
390
+
391
+ While `ignore < 5.0.0` did not make sure what the return value was, as well as
392
+
393
+ ```ts
394
+ .ignores(pathname: Pathname): boolean
395
+
396
+ .filter(pathnames: Array<Pathname>): Array<Pathname>
397
+
398
+ .createFilter(): (pathname: Pathname) => boolean
399
+
400
+ .test(pathname: Pathname): {ignored: boolean, unignored: boolean}
401
+ ```
402
+
403
+ See the convention [here](#1-pathname-should-be-a-pathrelatived-pathname) for details.
404
+
405
+ If there are invalid pathnames, the conversion and filtration should be done by users.
406
+
407
+ ```js
408
+ import {isPathValid} from 'ignore' // introduced in 5.0.0
409
+
410
+ const paths = [
411
+ // invalid
412
+ //////////////////
413
+ '',
414
+ false,
415
+ '../foo',
416
+ '.',
417
+ //////////////////
418
+
419
+ // valid
420
+ 'foo'
421
+ ]
422
+ .filter(isPathValid)
423
+
424
+ ig.filter(paths)
425
+ ```
426
+
427
+ ## Upgrade 3.x -> 4.x
428
+
429
+ Since `4.0.0`, `ignore` will no longer support node < 6, to use `ignore` in node < 6:
430
+
431
+ ```js
432
+ var ignore = require('ignore/legacy')
433
+ ```
434
+
435
+ ## Upgrade 2.x -> 3.x
436
+
437
+ - All `options` of 2.x are unnecessary and removed, so just remove them.
438
+ - `ignore()` instance is no longer an [`EventEmitter`](nodejs.org/api/events.html), and all events are unnecessary and removed.
439
+ - `.addIgnoreFile()` is removed, see the [.addIgnoreFile](#addignorefilepath) section for details.
440
+
441
+ ****
442
+
443
+ # Collaborators
444
+
445
+ - [@whitecolor](https://github.com/whitecolor) *Alex*
446
+ - [@SamyPesse](https://github.com/SamyPesse) *Samy Pessé*
447
+ - [@azproduction](https://github.com/azproduction) *Mikhail Davydov*
448
+ - [@TrySound](https://github.com/TrySound) *Bogdan Chadkin*
449
+ - [@JanMattner](https://github.com/JanMattner) *Jan Mattner*
450
+ - [@ntwb](https://github.com/ntwb) *Stephen Edgar*
451
+ - [@kasperisager](https://github.com/kasperisager) *Kasper Isager*
452
+ - [@sandersn](https://github.com/sandersn) *Nathan Shively-Sanders*
@@ -0,0 +1,76 @@
1
+ 3.3.0 2022-06-24
2
+ =================
3
+ - `JSONVisitor.onObjectBegin` and `JSONVisitor.onArrayBegin` can now return `false` to instruct the visitor that no children should be visited.
4
+
5
+
6
+ 3.2.0 2022-08-30
7
+ =================
8
+ - update the version of the bundled Javascript files to `es2020`.
9
+ - include all `const enum` values in the bundled JavaScript files (`ScanError`, `SyntaxKind`, `ParseErrorCode`).
10
+
11
+ 3.1.0 2022-07-07
12
+ ==================
13
+ * added new API `FormattingOptions.keepLines` : It leaves the initial line positions in the formatting.
14
+
15
+ 3.0.0 2020-11-13
16
+ ==================
17
+ * fixed API spec for `parseTree`. Can return `undefine` for empty input.
18
+ * added new API `FormattingOptions.insertFinalNewline`.
19
+
20
+
21
+ 2.3.0 2020-07-03
22
+ ==================
23
+ * new API `ModificationOptions.isArrayInsertion`: If `JSONPath` refers to an index of an array and `isArrayInsertion` is `true`, then `modify` will insert a new item at that location instead of overwriting its contents.
24
+ * `ModificationOptions.formattingOptions` is now optional. If not set, newly inserted content will not be formatted.
25
+
26
+
27
+ 2.2.0 2019-10-25
28
+ ==================
29
+ * added `ParseOptions.allowEmptyContent`. Default is `false`.
30
+ * new API `getNodeType`: Returns the type of a value returned by parse.
31
+ * `parse`: Fix issue with empty property name
32
+
33
+ 2.1.0 2019-03-29
34
+ ==================
35
+ * `JSONScanner` and `JSONVisitor` return lineNumber / character.
36
+
37
+ 2.0.0 2018-04-12
38
+ ==================
39
+ * renamed `Node.columnOffset` to `Node.colonOffset`
40
+ * new API `getNodePath`: Gets the JSON path of the given JSON DOM node
41
+ * new API `findNodeAtOffset`: Finds the most inner node at the given offset. If `includeRightBound` is set, also finds nodes that end at the given offset.
42
+
43
+ 1.0.3 2018-03-07
44
+ ==================
45
+ * provide ems modules
46
+
47
+ 1.0.2 2018-03-05
48
+ ==================
49
+ * added the `visit.onComment` API, reported when comments are allowed.
50
+ * added the `ParseErrorCode.InvalidCommentToken` enum value, reported when comments are disallowed.
51
+
52
+ 1.0.1
53
+ ==================
54
+ * added the `format` API: computes edits to format a JSON document.
55
+ * added the `modify` API: computes edits to insert, remove or replace a property or value in a JSON document.
56
+ * added the `allyEdits` API: applies edits to a document
57
+
58
+ 1.0.0
59
+ ==================
60
+ * remove nls dependency (remove `getParseErrorMessage`)
61
+
62
+ 0.4.2 / 2017-05-05
63
+ ==================
64
+ * added `ParseError.offset` & `ParseError.length`
65
+
66
+ 0.4.1 / 2017-04-02
67
+ ==================
68
+ * added `ParseOptions.allowTrailingComma`
69
+
70
+ 0.4.0 / 2017-02-23
71
+ ==================
72
+ * fix for `getLocation`. Now `getLocation` inside an object will always return a property from inside that property. Can be empty string if the object has no properties or if the offset is before a actual property `{ "a": { | }} will return location ['a', ' ']`
73
+
74
+ 0.3.0 / 2017-01-17
75
+ ==================
76
+ * Updating to typescript 2.0
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014 Eric Johnson
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Microsoft
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.