clawatch 1.0.22 → 1.0.26

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 (388) hide show
  1. package/backend/dist/alertChecker.d.ts.map +1 -1
  2. package/backend/dist/alertChecker.js +44 -0
  3. package/backend/dist/alertChecker.js.map +1 -1
  4. package/backend/dist/db.d.ts +33 -3
  5. package/backend/dist/db.d.ts.map +1 -1
  6. package/backend/dist/db.js +140 -10
  7. package/backend/dist/db.js.map +1 -1
  8. package/backend/dist/index.js +41 -34
  9. package/backend/dist/index.js.map +1 -1
  10. package/backend/dist/routes.d.ts.map +1 -1
  11. package/backend/dist/routes.js +118 -11
  12. package/backend/dist/routes.js.map +1 -1
  13. package/backend/dist/seed.js +115 -109
  14. package/backend/dist/seed.js.map +1 -1
  15. package/backend/dist/sessions.d.ts +2 -0
  16. package/backend/dist/sessions.d.ts.map +1 -1
  17. package/backend/dist/sessions.js +9 -0
  18. package/backend/dist/sessions.js.map +1 -1
  19. package/backend/dist/sync.d.ts +1 -4
  20. package/backend/dist/sync.d.ts.map +1 -1
  21. package/backend/dist/sync.js +4 -0
  22. package/backend/dist/sync.js.map +1 -1
  23. package/backend/node_modules/.package-lock.json +4 -380
  24. package/backend/node_modules/sql.js/.devcontainer/Dockerfile +76 -0
  25. package/backend/node_modules/sql.js/.devcontainer/devcontainer.json +20 -0
  26. package/backend/node_modules/sql.js/.jsdoc.config.json +38 -0
  27. package/backend/node_modules/sql.js/.nojekyll +0 -0
  28. package/backend/node_modules/sql.js/AUTHORS +8 -0
  29. package/backend/node_modules/sql.js/dist/sql-asm-debug.js +140890 -0
  30. package/backend/node_modules/sql.js/dist/sql-asm-memory-growth.js +204 -0
  31. package/backend/node_modules/sql.js/dist/sql-asm.js +202 -0
  32. package/backend/node_modules/sql.js/dist/sql-wasm-browser-debug.js +7157 -0
  33. package/backend/node_modules/sql.js/dist/sql-wasm-browser-debug.wasm +0 -0
  34. package/backend/node_modules/sql.js/dist/sql-wasm-browser.js +183 -0
  35. package/backend/node_modules/sql.js/dist/sql-wasm-browser.wasm +0 -0
  36. package/backend/node_modules/sql.js/dist/sql-wasm-debug.js +7265 -0
  37. package/backend/node_modules/sql.js/dist/sql-wasm-debug.wasm +0 -0
  38. package/backend/node_modules/sql.js/dist/sql-wasm.js +185 -0
  39. package/backend/node_modules/sql.js/dist/sql-wasm.wasm +0 -0
  40. package/backend/node_modules/sql.js/dist/worker.sql-asm-debug.js +141011 -0
  41. package/backend/node_modules/sql.js/dist/worker.sql-asm.js +323 -0
  42. package/backend/node_modules/sql.js/dist/worker.sql-wasm-debug.js +7386 -0
  43. package/backend/node_modules/sql.js/dist/worker.sql-wasm.js +306 -0
  44. package/backend/node_modules/sql.js/eslint.config.cjs +57 -0
  45. package/backend/node_modules/sql.js/logo.svg +13 -0
  46. package/backend/node_modules/sql.js/package.json +58 -0
  47. package/backend/package-lock.json +5 -392
  48. package/backend/package.json +1 -2
  49. package/dist/cli.js +0 -38
  50. package/dist/cli.js.map +1 -1
  51. package/frontend/.env +1 -0
  52. package/frontend/.next/BUILD_ID +1 -1
  53. package/frontend/.next/app-path-routes-manifest.json +1 -0
  54. package/frontend/.next/build-manifest.json +2 -2
  55. package/frontend/.next/prerender-manifest.json +24 -0
  56. package/frontend/.next/routes-manifest.json +6 -0
  57. package/frontend/.next/server/app/_global-error.html +2 -2
  58. package/frontend/.next/server/app/_global-error.rsc +1 -1
  59. package/frontend/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  60. package/frontend/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  61. package/frontend/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  62. package/frontend/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  63. package/frontend/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  64. package/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  65. package/frontend/.next/server/app/_not-found.html +1 -1
  66. package/frontend/.next/server/app/_not-found.rsc +2 -2
  67. package/frontend/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  68. package/frontend/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  69. package/frontend/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  70. package/frontend/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  71. package/frontend/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  72. package/frontend/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  73. package/frontend/.next/server/app/dashboard/costs/page/app-paths-manifest.json +3 -0
  74. package/frontend/.next/server/app/dashboard/costs/page/build-manifest.json +17 -0
  75. package/frontend/.next/server/app/dashboard/costs/page/next-font-manifest.json +11 -0
  76. package/frontend/.next/server/app/dashboard/costs/page/react-loadable-manifest.json +1 -0
  77. package/frontend/.next/server/app/dashboard/costs/page/server-reference-manifest.json +4 -0
  78. package/frontend/.next/server/app/dashboard/costs/page.js +16 -0
  79. package/frontend/.next/server/app/dashboard/costs/page.js.map +5 -0
  80. package/frontend/.next/server/app/dashboard/costs/page.js.nft.json +1 -0
  81. package/frontend/.next/server/app/dashboard/costs/page_client-reference-manifest.js +2 -0
  82. package/frontend/.next/server/app/dashboard/costs.html +1 -0
  83. package/frontend/.next/server/app/dashboard/costs.meta +16 -0
  84. package/frontend/.next/server/app/dashboard/costs.rsc +20 -0
  85. package/frontend/.next/server/app/dashboard/costs.segments/_full.segment.rsc +20 -0
  86. package/frontend/.next/server/app/dashboard/costs.segments/_head.segment.rsc +6 -0
  87. package/frontend/.next/server/app/dashboard/costs.segments/_index.segment.rsc +5 -0
  88. package/frontend/.next/server/app/dashboard/costs.segments/_tree.segment.rsc +4 -0
  89. package/frontend/.next/server/app/dashboard/costs.segments/dashboard/costs/__PAGE__.segment.rsc +9 -0
  90. package/frontend/.next/server/app/dashboard/costs.segments/dashboard/costs.segment.rsc +4 -0
  91. package/frontend/.next/server/app/dashboard/costs.segments/dashboard.segment.rsc +4 -0
  92. package/frontend/.next/server/app/dashboard/page.js.nft.json +1 -1
  93. package/frontend/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
  94. package/frontend/.next/server/app/dashboard/projects/[id]/page.js.nft.json +1 -1
  95. package/frontend/.next/server/app/dashboard/projects/[id]/page_client-reference-manifest.js +1 -1
  96. package/frontend/.next/server/app/dashboard/sessions/[id]/page.js.nft.json +1 -1
  97. package/frontend/.next/server/app/dashboard/sessions/[id]/page_client-reference-manifest.js +1 -1
  98. package/frontend/.next/server/app/dashboard.html +1 -1
  99. package/frontend/.next/server/app/dashboard.rsc +3 -3
  100. package/frontend/.next/server/app/dashboard.segments/_full.segment.rsc +3 -3
  101. package/frontend/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
  102. package/frontend/.next/server/app/dashboard.segments/_index.segment.rsc +2 -2
  103. package/frontend/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  104. package/frontend/.next/server/app/dashboard.segments/dashboard/__PAGE__.segment.rsc +2 -2
  105. package/frontend/.next/server/app/dashboard.segments/dashboard.segment.rsc +1 -1
  106. package/frontend/.next/server/app/index.html +1 -1
  107. package/frontend/.next/server/app/index.rsc +3 -3
  108. package/frontend/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  109. package/frontend/.next/server/app/index.segments/_full.segment.rsc +3 -3
  110. package/frontend/.next/server/app/index.segments/_head.segment.rsc +1 -1
  111. package/frontend/.next/server/app/index.segments/_index.segment.rsc +2 -2
  112. package/frontend/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  113. package/frontend/.next/server/app/page.js.nft.json +1 -1
  114. package/frontend/.next/server/app/page_client-reference-manifest.js +1 -1
  115. package/frontend/.next/server/app-paths-manifest.json +1 -0
  116. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__96998d39._.js +3 -0
  117. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__ad9c7c6a._.js +3 -0
  118. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__cb471d02._.js +3 -0
  119. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__f99f8278._.js +3 -0
  120. package/frontend/.next/server/chunks/ssr/{_2bfdd77b._.js → _7062b9c0._.js} +2 -2
  121. package/frontend/.next/server/chunks/ssr/_81435076._.js +3 -0
  122. package/frontend/.next/server/chunks/ssr/_8f399861._.js +4 -0
  123. package/frontend/.next/server/chunks/ssr/{_f26b1aca._.js → _aa02b285._.js} +2 -2
  124. package/frontend/.next/server/chunks/ssr/_b0ae6d33._.js +1 -1
  125. package/frontend/.next/server/chunks/ssr/_next-internal_server_app_dashboard_costs_page_actions_b5efa95e.js +3 -0
  126. package/frontend/.next/server/chunks/ssr/node_modules_09eef5ec._.js +3 -0
  127. package/frontend/.next/server/chunks/ssr/node_modules_b4c16e3a._.js +3 -0
  128. package/frontend/.next/server/chunks/ssr/src_app_dashboard_page_tsx_196c74b5._.js +3 -0
  129. package/frontend/.next/server/chunks/ssr/src_app_page_tsx_a7111f3e._.js +1 -1
  130. package/frontend/.next/server/chunks/ssr/src_components_ui_button_tsx_d75cfe12._.js +3 -0
  131. package/frontend/.next/server/next-font-manifest.js +1 -1
  132. package/frontend/.next/server/next-font-manifest.json +4 -0
  133. package/frontend/.next/server/pages/404.html +1 -1
  134. package/frontend/.next/server/pages/500.html +2 -2
  135. package/frontend/.next/static/chunks/139d48bcbc462224.js +1 -0
  136. package/frontend/.next/static/chunks/25c0d885ca7bcbe1.js +1 -0
  137. package/frontend/.next/static/chunks/31f0905710e3dfc3.js +1 -0
  138. package/frontend/.next/static/chunks/34b822c87d271e34.js +1 -0
  139. package/frontend/.next/static/chunks/790649543cff1084.js +1 -0
  140. package/frontend/.next/static/chunks/88a2c1056ccf4825.js +1 -0
  141. package/frontend/.next/static/chunks/9dc87ca9ab86c348.css +3 -0
  142. package/frontend/.next/static/chunks/b1b1c7e52e2182c7.js +1 -0
  143. package/frontend/.next/static/chunks/be5e61723b600d44.js +1 -0
  144. package/frontend/.next/static/chunks/c3af0c75d8e1b7b4.js +1 -0
  145. package/frontend/.next/static/chunks/f5dbb90939b55e4f.js +1 -0
  146. package/frontend/public/providers/nanobot.png +0 -0
  147. package/frontend/public/providers/nanoclaw.webp +0 -0
  148. package/frontend/public/providers/picoclaw.ico +0 -0
  149. package/frontend/public/providers/trustclaw.svg +1 -0
  150. package/frontend/public/providers/zeroclaw.png +0 -0
  151. package/package.json +2 -2
  152. package/backend/node_modules/base64-js/base64js.min.js +0 -1
  153. package/backend/node_modules/base64-js/index.d.ts +0 -3
  154. package/backend/node_modules/base64-js/index.js +0 -150
  155. package/backend/node_modules/base64-js/package.json +0 -47
  156. package/backend/node_modules/better-sqlite3/binding.gyp +0 -38
  157. package/backend/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  158. package/backend/node_modules/better-sqlite3/deps/common.gypi +0 -68
  159. package/backend/node_modules/better-sqlite3/deps/copy.js +0 -31
  160. package/backend/node_modules/better-sqlite3/deps/defines.gypi +0 -41
  161. package/backend/node_modules/better-sqlite3/deps/download.sh +0 -122
  162. package/backend/node_modules/better-sqlite3/deps/patches/1208.patch +0 -15
  163. package/backend/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +0 -261480
  164. package/backend/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +0 -13715
  165. package/backend/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +0 -719
  166. package/backend/node_modules/better-sqlite3/deps/sqlite3.gyp +0 -80
  167. package/backend/node_modules/better-sqlite3/deps/test_extension.c +0 -21
  168. package/backend/node_modules/better-sqlite3/lib/database.js +0 -90
  169. package/backend/node_modules/better-sqlite3/lib/index.js +0 -3
  170. package/backend/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
  171. package/backend/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
  172. package/backend/node_modules/better-sqlite3/lib/methods/function.js +0 -31
  173. package/backend/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
  174. package/backend/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
  175. package/backend/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
  176. package/backend/node_modules/better-sqlite3/lib/methods/table.js +0 -189
  177. package/backend/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
  178. package/backend/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
  179. package/backend/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
  180. package/backend/node_modules/better-sqlite3/lib/util.js +0 -12
  181. package/backend/node_modules/better-sqlite3/package.json +0 -54
  182. package/backend/node_modules/better-sqlite3/src/better_sqlite3.cpp +0 -2186
  183. package/backend/node_modules/better-sqlite3/src/better_sqlite3.hpp +0 -1036
  184. package/backend/node_modules/bindings/bindings.js +0 -221
  185. package/backend/node_modules/bindings/package.json +0 -28
  186. package/backend/node_modules/buffer/index.d.ts +0 -186
  187. package/backend/node_modules/buffer/index.js +0 -1817
  188. package/backend/node_modules/buffer/package.json +0 -96
  189. package/backend/node_modules/chownr/chownr.js +0 -167
  190. package/backend/node_modules/chownr/package.json +0 -29
  191. package/backend/node_modules/decompress-response/index.d.ts +0 -22
  192. package/backend/node_modules/decompress-response/index.js +0 -58
  193. package/backend/node_modules/decompress-response/license +0 -9
  194. package/backend/node_modules/decompress-response/package.json +0 -56
  195. package/backend/node_modules/deep-extend/index.js +0 -1
  196. package/backend/node_modules/deep-extend/lib/deep-extend.js +0 -150
  197. package/backend/node_modules/deep-extend/package.json +0 -62
  198. package/backend/node_modules/detect-libc/index.d.ts +0 -14
  199. package/backend/node_modules/detect-libc/lib/detect-libc.js +0 -313
  200. package/backend/node_modules/detect-libc/lib/elf.js +0 -39
  201. package/backend/node_modules/detect-libc/lib/filesystem.js +0 -51
  202. package/backend/node_modules/detect-libc/lib/process.js +0 -24
  203. package/backend/node_modules/detect-libc/package.json +0 -44
  204. package/backend/node_modules/expand-template/.travis.yml +0 -6
  205. package/backend/node_modules/expand-template/index.js +0 -26
  206. package/backend/node_modules/expand-template/package.json +0 -29
  207. package/backend/node_modules/expand-template/test.js +0 -67
  208. package/backend/node_modules/file-uri-to-path/.travis.yml +0 -30
  209. package/backend/node_modules/file-uri-to-path/index.d.ts +0 -2
  210. package/backend/node_modules/file-uri-to-path/index.js +0 -66
  211. package/backend/node_modules/file-uri-to-path/package.json +0 -32
  212. package/backend/node_modules/fs-constants/browser.js +0 -1
  213. package/backend/node_modules/fs-constants/index.js +0 -1
  214. package/backend/node_modules/fs-constants/package.json +0 -19
  215. package/backend/node_modules/github-from-package/.travis.yml +0 -4
  216. package/backend/node_modules/github-from-package/index.js +0 -17
  217. package/backend/node_modules/github-from-package/package.json +0 -30
  218. package/backend/node_modules/github-from-package/readme.markdown +0 -53
  219. package/backend/node_modules/ieee754/index.d.ts +0 -10
  220. package/backend/node_modules/ieee754/index.js +0 -85
  221. package/backend/node_modules/ieee754/package.json +0 -52
  222. package/backend/node_modules/ini/ini.js +0 -206
  223. package/backend/node_modules/ini/package.json +0 -33
  224. package/backend/node_modules/mimic-response/index.d.ts +0 -17
  225. package/backend/node_modules/mimic-response/index.js +0 -77
  226. package/backend/node_modules/mimic-response/license +0 -9
  227. package/backend/node_modules/mimic-response/package.json +0 -42
  228. package/backend/node_modules/minimist/.github/FUNDING.yml +0 -12
  229. package/backend/node_modules/minimist/.nycrc +0 -14
  230. package/backend/node_modules/minimist/index.js +0 -263
  231. package/backend/node_modules/minimist/package.json +0 -75
  232. package/backend/node_modules/mkdirp-classic/index.js +0 -98
  233. package/backend/node_modules/mkdirp-classic/package.json +0 -18
  234. package/backend/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +0 -31
  235. package/backend/node_modules/napi-build-utils/index.js +0 -214
  236. package/backend/node_modules/napi-build-utils/package.json +0 -42
  237. package/backend/node_modules/node-abi/abi_registry.json +0 -432
  238. package/backend/node_modules/node-abi/index.js +0 -179
  239. package/backend/node_modules/node-abi/package.json +0 -45
  240. package/backend/node_modules/prebuild-install/asset.js +0 -44
  241. package/backend/node_modules/prebuild-install/bin.js +0 -78
  242. package/backend/node_modules/prebuild-install/download.js +0 -142
  243. package/backend/node_modules/prebuild-install/error.js +0 -14
  244. package/backend/node_modules/prebuild-install/help.txt +0 -16
  245. package/backend/node_modules/prebuild-install/index.js +0 -1
  246. package/backend/node_modules/prebuild-install/log.js +0 -33
  247. package/backend/node_modules/prebuild-install/node_modules/pump/.github/FUNDING.yml +0 -2
  248. package/backend/node_modules/prebuild-install/node_modules/pump/.travis.yml +0 -5
  249. package/backend/node_modules/prebuild-install/node_modules/pump/LICENSE +0 -21
  250. package/backend/node_modules/prebuild-install/node_modules/pump/README.md +0 -74
  251. package/backend/node_modules/prebuild-install/node_modules/pump/SECURITY.md +0 -5
  252. package/backend/node_modules/prebuild-install/node_modules/pump/empty.js +0 -1
  253. package/backend/node_modules/prebuild-install/node_modules/pump/index.js +0 -86
  254. package/backend/node_modules/prebuild-install/node_modules/pump/package.json +0 -30
  255. package/backend/node_modules/prebuild-install/node_modules/pump/test-browser.js +0 -66
  256. package/backend/node_modules/prebuild-install/node_modules/pump/test-node.js +0 -53
  257. package/backend/node_modules/prebuild-install/package.json +0 -67
  258. package/backend/node_modules/prebuild-install/proxy.js +0 -35
  259. package/backend/node_modules/prebuild-install/rc.js +0 -64
  260. package/backend/node_modules/prebuild-install/util.js +0 -143
  261. package/backend/node_modules/rc/browser.js +0 -7
  262. package/backend/node_modules/rc/cli.js +0 -4
  263. package/backend/node_modules/rc/index.js +0 -53
  264. package/backend/node_modules/rc/lib/utils.js +0 -104
  265. package/backend/node_modules/rc/package.json +0 -29
  266. package/backend/node_modules/semver/bin/semver.js +0 -191
  267. package/backend/node_modules/semver/classes/comparator.js +0 -143
  268. package/backend/node_modules/semver/classes/index.js +0 -7
  269. package/backend/node_modules/semver/classes/range.js +0 -557
  270. package/backend/node_modules/semver/classes/semver.js +0 -333
  271. package/backend/node_modules/semver/functions/clean.js +0 -8
  272. package/backend/node_modules/semver/functions/cmp.js +0 -54
  273. package/backend/node_modules/semver/functions/coerce.js +0 -62
  274. package/backend/node_modules/semver/functions/compare-build.js +0 -9
  275. package/backend/node_modules/semver/functions/compare-loose.js +0 -5
  276. package/backend/node_modules/semver/functions/compare.js +0 -7
  277. package/backend/node_modules/semver/functions/diff.js +0 -60
  278. package/backend/node_modules/semver/functions/eq.js +0 -5
  279. package/backend/node_modules/semver/functions/gt.js +0 -5
  280. package/backend/node_modules/semver/functions/gte.js +0 -5
  281. package/backend/node_modules/semver/functions/inc.js +0 -21
  282. package/backend/node_modules/semver/functions/lt.js +0 -5
  283. package/backend/node_modules/semver/functions/lte.js +0 -5
  284. package/backend/node_modules/semver/functions/major.js +0 -5
  285. package/backend/node_modules/semver/functions/minor.js +0 -5
  286. package/backend/node_modules/semver/functions/neq.js +0 -5
  287. package/backend/node_modules/semver/functions/parse.js +0 -18
  288. package/backend/node_modules/semver/functions/patch.js +0 -5
  289. package/backend/node_modules/semver/functions/prerelease.js +0 -8
  290. package/backend/node_modules/semver/functions/rcompare.js +0 -5
  291. package/backend/node_modules/semver/functions/rsort.js +0 -5
  292. package/backend/node_modules/semver/functions/satisfies.js +0 -12
  293. package/backend/node_modules/semver/functions/sort.js +0 -5
  294. package/backend/node_modules/semver/functions/valid.js +0 -8
  295. package/backend/node_modules/semver/index.js +0 -91
  296. package/backend/node_modules/semver/internal/constants.js +0 -37
  297. package/backend/node_modules/semver/internal/debug.js +0 -11
  298. package/backend/node_modules/semver/internal/identifiers.js +0 -29
  299. package/backend/node_modules/semver/internal/lrucache.js +0 -42
  300. package/backend/node_modules/semver/internal/parse-options.js +0 -17
  301. package/backend/node_modules/semver/internal/re.js +0 -223
  302. package/backend/node_modules/semver/package.json +0 -78
  303. package/backend/node_modules/semver/preload.js +0 -4
  304. package/backend/node_modules/semver/range.bnf +0 -16
  305. package/backend/node_modules/semver/ranges/gtr.js +0 -6
  306. package/backend/node_modules/semver/ranges/intersects.js +0 -9
  307. package/backend/node_modules/semver/ranges/ltr.js +0 -6
  308. package/backend/node_modules/semver/ranges/max-satisfying.js +0 -27
  309. package/backend/node_modules/semver/ranges/min-satisfying.js +0 -26
  310. package/backend/node_modules/semver/ranges/min-version.js +0 -63
  311. package/backend/node_modules/semver/ranges/outside.js +0 -82
  312. package/backend/node_modules/semver/ranges/simplify.js +0 -49
  313. package/backend/node_modules/semver/ranges/subset.js +0 -249
  314. package/backend/node_modules/semver/ranges/to-comparators.js +0 -10
  315. package/backend/node_modules/semver/ranges/valid.js +0 -13
  316. package/backend/node_modules/simple-concat/.travis.yml +0 -3
  317. package/backend/node_modules/simple-concat/index.js +0 -15
  318. package/backend/node_modules/simple-concat/package.json +0 -47
  319. package/backend/node_modules/simple-get/.github/dependabot.yml +0 -15
  320. package/backend/node_modules/simple-get/.github/workflows/ci.yml +0 -23
  321. package/backend/node_modules/simple-get/index.js +0 -108
  322. package/backend/node_modules/simple-get/package.json +0 -67
  323. package/backend/node_modules/strip-json-comments/index.js +0 -70
  324. package/backend/node_modules/strip-json-comments/license +0 -21
  325. package/backend/node_modules/strip-json-comments/package.json +0 -42
  326. package/backend/node_modules/tar-fs/.travis.yml +0 -6
  327. package/backend/node_modules/tar-fs/index.js +0 -363
  328. package/backend/node_modules/tar-fs/node_modules/pump/.github/FUNDING.yml +0 -2
  329. package/backend/node_modules/tar-fs/node_modules/pump/.travis.yml +0 -5
  330. package/backend/node_modules/tar-fs/node_modules/pump/LICENSE +0 -21
  331. package/backend/node_modules/tar-fs/node_modules/pump/README.md +0 -74
  332. package/backend/node_modules/tar-fs/node_modules/pump/SECURITY.md +0 -5
  333. package/backend/node_modules/tar-fs/node_modules/pump/empty.js +0 -1
  334. package/backend/node_modules/tar-fs/node_modules/pump/index.js +0 -86
  335. package/backend/node_modules/tar-fs/node_modules/pump/package.json +0 -30
  336. package/backend/node_modules/tar-fs/node_modules/pump/test-browser.js +0 -66
  337. package/backend/node_modules/tar-fs/node_modules/pump/test-node.js +0 -53
  338. package/backend/node_modules/tar-fs/package.json +0 -41
  339. package/backend/node_modules/tar-stream/extract.js +0 -257
  340. package/backend/node_modules/tar-stream/headers.js +0 -295
  341. package/backend/node_modules/tar-stream/index.js +0 -2
  342. package/backend/node_modules/tar-stream/node_modules/bl/.travis.yml +0 -17
  343. package/backend/node_modules/tar-stream/node_modules/bl/BufferList.js +0 -396
  344. package/backend/node_modules/tar-stream/node_modules/bl/LICENSE.md +0 -13
  345. package/backend/node_modules/tar-stream/node_modules/bl/README.md +0 -247
  346. package/backend/node_modules/tar-stream/node_modules/bl/bl.js +0 -84
  347. package/backend/node_modules/tar-stream/node_modules/bl/package.json +0 -37
  348. package/backend/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  349. package/backend/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +0 -136
  350. package/backend/node_modules/tar-stream/node_modules/readable-stream/LICENSE +0 -47
  351. package/backend/node_modules/tar-stream/node_modules/readable-stream/README.md +0 -106
  352. package/backend/node_modules/tar-stream/node_modules/readable-stream/errors-browser.js +0 -127
  353. package/backend/node_modules/tar-stream/node_modules/readable-stream/errors.js +0 -116
  354. package/backend/node_modules/tar-stream/node_modules/readable-stream/experimentalWarning.js +0 -17
  355. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  356. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  357. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  358. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  359. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  360. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  361. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  362. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  363. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  364. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  365. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  366. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  367. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  368. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  369. package/backend/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  370. package/backend/node_modules/tar-stream/node_modules/readable-stream/package.json +0 -68
  371. package/backend/node_modules/tar-stream/node_modules/readable-stream/readable-browser.js +0 -9
  372. package/backend/node_modules/tar-stream/node_modules/readable-stream/readable.js +0 -16
  373. package/backend/node_modules/tar-stream/pack.js +0 -255
  374. package/backend/node_modules/tar-stream/package.json +0 -58
  375. package/backend/node_modules/tar-stream/sandbox.js +0 -11
  376. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__008d27c3._.js +0 -3
  377. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__69cb56c5._.js +0 -3
  378. package/frontend/.next/server/chunks/ssr/_e17fe96b._.js +0 -3
  379. package/frontend/.next/static/chunks/641e855850e79de9.css +0 -3
  380. package/frontend/.next/static/chunks/88faea50dcf8f778.js +0 -1
  381. package/frontend/.next/static/chunks/8ffedcb68f4a998f.js +0 -1
  382. package/frontend/.next/static/chunks/a909e37955d0604e.js +0 -1
  383. package/frontend/.next/static/chunks/ba72b58eb8cb3f4e.js +0 -1
  384. package/frontend/.next/static/chunks/c8ee4845be50f9b7.js +0 -1
  385. package/frontend/.next/static/chunks/e975763f7a359fb5.js +0 -1
  386. /package/frontend/.next/static/{3i-dBEEyQLocTNHX5oPZn → w4h18_Clp_ODehKO0HkwI}/_buildManifest.js +0 -0
  387. /package/frontend/.next/static/{3i-dBEEyQLocTNHX5oPZn → w4h18_Clp_ODehKO0HkwI}/_clientMiddlewareManifest.json +0 -0
  388. /package/frontend/.next/static/{3i-dBEEyQLocTNHX5oPZn → w4h18_Clp_ODehKO0HkwI}/_ssgManifest.js +0 -0
@@ -1,86 +0,0 @@
1
- var once = require('once')
2
- var eos = require('end-of-stream')
3
- var fs
4
-
5
- try {
6
- fs = require('fs') // we only need fs to get the ReadStream and WriteStream prototypes
7
- } catch (e) {}
8
-
9
- var noop = function () {}
10
- var ancient = typeof process === 'undefined' ? false : /^v?\.0/.test(process.version)
11
-
12
- var isFn = function (fn) {
13
- return typeof fn === 'function'
14
- }
15
-
16
- var isFS = function (stream) {
17
- if (!ancient) return false // newer node version do not need to care about fs is a special way
18
- if (!fs) return false // browser
19
- return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)
20
- }
21
-
22
- var isRequest = function (stream) {
23
- return stream.setHeader && isFn(stream.abort)
24
- }
25
-
26
- var destroyer = function (stream, reading, writing, callback) {
27
- callback = once(callback)
28
-
29
- var closed = false
30
- stream.on('close', function () {
31
- closed = true
32
- })
33
-
34
- eos(stream, {readable: reading, writable: writing}, function (err) {
35
- if (err) return callback(err)
36
- closed = true
37
- callback()
38
- })
39
-
40
- var destroyed = false
41
- return function (err) {
42
- if (closed) return
43
- if (destroyed) return
44
- destroyed = true
45
-
46
- if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks
47
- if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want
48
-
49
- if (isFn(stream.destroy)) return stream.destroy()
50
-
51
- callback(err || new Error('stream was destroyed'))
52
- }
53
- }
54
-
55
- var call = function (fn) {
56
- fn()
57
- }
58
-
59
- var pipe = function (from, to) {
60
- return from.pipe(to)
61
- }
62
-
63
- var pump = function () {
64
- var streams = Array.prototype.slice.call(arguments)
65
- var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop
66
-
67
- if (Array.isArray(streams[0])) streams = streams[0]
68
- if (streams.length < 2) throw new Error('pump requires two streams per minimum')
69
-
70
- var error
71
- var destroys = streams.map(function (stream, i) {
72
- var reading = i < streams.length - 1
73
- var writing = i > 0
74
- return destroyer(stream, reading, writing, function (err) {
75
- if (!error) error = err
76
- if (err) destroys.forEach(call)
77
- if (reading) return
78
- destroys.forEach(call)
79
- callback(error)
80
- })
81
- })
82
-
83
- return streams.reduce(pipe)
84
- }
85
-
86
- module.exports = pump
@@ -1,30 +0,0 @@
1
- {
2
- "name": "pump",
3
- "version": "3.0.4",
4
- "repository": "git://github.com/mafintosh/pump.git",
5
- "license": "MIT",
6
- "description": "pipe streams together and close all of them if one of them closes",
7
- "browser": {
8
- "fs": false
9
- },
10
- "imports": {
11
- "fs": {
12
- "bare": "./empty.js",
13
- "default": "fs"
14
- }
15
- },
16
- "keywords": [
17
- "streams",
18
- "pipe",
19
- "destroy",
20
- "callback"
21
- ],
22
- "author": "Mathias Buus Madsen <mathiasbuus@gmail.com>",
23
- "dependencies": {
24
- "end-of-stream": "^1.1.0",
25
- "once": "^1.3.1"
26
- },
27
- "scripts": {
28
- "test": "node test-browser.js && node test-node.js"
29
- }
30
- }
@@ -1,66 +0,0 @@
1
- var stream = require('stream')
2
- var pump = require('./index')
3
-
4
- var rs = new stream.Readable()
5
- var ws = new stream.Writable()
6
-
7
- rs._read = function (size) {
8
- this.push(Buffer(size).fill('abc'))
9
- }
10
-
11
- ws._write = function (chunk, encoding, cb) {
12
- setTimeout(function () {
13
- cb()
14
- }, 100)
15
- }
16
-
17
- var toHex = function () {
18
- var reverse = new (require('stream').Transform)()
19
-
20
- reverse._transform = function (chunk, enc, callback) {
21
- reverse.push(chunk.toString('hex'))
22
- callback()
23
- }
24
-
25
- return reverse
26
- }
27
-
28
- var wsClosed = false
29
- var rsClosed = false
30
- var callbackCalled = false
31
-
32
- var check = function () {
33
- if (wsClosed && rsClosed && callbackCalled) {
34
- console.log('test-browser.js passes')
35
- clearTimeout(timeout)
36
- }
37
- }
38
-
39
- ws.on('finish', function () {
40
- wsClosed = true
41
- check()
42
- })
43
-
44
- rs.on('end', function () {
45
- rsClosed = true
46
- check()
47
- })
48
-
49
- var res = pump(rs, toHex(), toHex(), toHex(), ws, function () {
50
- callbackCalled = true
51
- check()
52
- })
53
-
54
- if (res !== ws) {
55
- throw new Error('should return last stream')
56
- }
57
-
58
- setTimeout(function () {
59
- rs.push(null)
60
- rs.emit('close')
61
- }, 1000)
62
-
63
- var timeout = setTimeout(function () {
64
- check()
65
- throw new Error('timeout')
66
- }, 5000)
@@ -1,53 +0,0 @@
1
- var pump = require('./index')
2
-
3
- var rs = require('fs').createReadStream('/dev/random')
4
- var ws = require('fs').createWriteStream('/dev/null')
5
-
6
- var toHex = function () {
7
- var reverse = new (require('stream').Transform)()
8
-
9
- reverse._transform = function (chunk, enc, callback) {
10
- reverse.push(chunk.toString('hex'))
11
- callback()
12
- }
13
-
14
- return reverse
15
- }
16
-
17
- var wsClosed = false
18
- var rsClosed = false
19
- var callbackCalled = false
20
-
21
- var check = function () {
22
- if (wsClosed && rsClosed && callbackCalled) {
23
- console.log('test-node.js passes')
24
- clearTimeout(timeout)
25
- }
26
- }
27
-
28
- ws.on('close', function () {
29
- wsClosed = true
30
- check()
31
- })
32
-
33
- rs.on('close', function () {
34
- rsClosed = true
35
- check()
36
- })
37
-
38
- var res = pump(rs, toHex(), toHex(), toHex(), ws, function () {
39
- callbackCalled = true
40
- check()
41
- })
42
-
43
- if (res !== ws) {
44
- throw new Error('should return last stream')
45
- }
46
-
47
- setTimeout(function () {
48
- rs.destroy()
49
- }, 1000)
50
-
51
- var timeout = setTimeout(function () {
52
- throw new Error('timeout')
53
- }, 5000)
@@ -1,67 +0,0 @@
1
- {
2
- "name": "prebuild-install",
3
- "version": "7.1.3",
4
- "description": "A command line tool to easily install prebuilt binaries for multiple version of node/iojs on a specific platform",
5
- "scripts": {
6
- "test": "standard && hallmark && tape test/*-test.js",
7
- "hallmark": "hallmark --fix"
8
- },
9
- "keywords": [
10
- "prebuilt",
11
- "binaries",
12
- "native",
13
- "addon",
14
- "module",
15
- "c",
16
- "c++",
17
- "bindings",
18
- "devops",
19
- "napi"
20
- ],
21
- "dependencies": {
22
- "detect-libc": "^2.0.0",
23
- "expand-template": "^2.0.3",
24
- "github-from-package": "0.0.0",
25
- "minimist": "^1.2.3",
26
- "mkdirp-classic": "^0.5.3",
27
- "napi-build-utils": "^2.0.0",
28
- "node-abi": "^3.3.0",
29
- "pump": "^3.0.0",
30
- "rc": "^1.2.7",
31
- "simple-get": "^4.0.0",
32
- "tar-fs": "^2.0.0",
33
- "tunnel-agent": "^0.6.0"
34
- },
35
- "devDependencies": {
36
- "a-native-module": "^1.0.0",
37
- "hallmark": "^4.0.0",
38
- "nock": "^10.0.6",
39
- "rimraf": "^2.5.2",
40
- "standard": "^16.0.4",
41
- "tape": "^5.3.1",
42
- "tempy": "0.2.1"
43
- },
44
- "bin": "./bin.js",
45
- "repository": {
46
- "type": "git",
47
- "url": "https://github.com/prebuild/prebuild-install.git"
48
- },
49
- "author": "Mathias Buus (@mafintosh)",
50
- "contributors": [
51
- "Julian Gruber <julian@juliangruber.com> (https://github.com/juliangruber)",
52
- "Brett Lawson <brett19@gmail.com> (https://github.com/brett19)",
53
- "Pieter Hintjens <ph@imatix.com> (https://github.com/hintjens)",
54
- "Lars-Magnus Skog <ralphtheninja@riseup.net> (https://github.com/ralphtheninja)",
55
- "Jesús Leganés Combarro <piranna@gmail.com> (https://github.com/piranna)",
56
- "Mathias Küsel <mathiask@hotmail.de> (https://github.com/mathiask88)",
57
- "Lukas Geiger <lukas.geiger94@gmail.com> (https://github.com/lgeiger)"
58
- ],
59
- "license": "MIT",
60
- "bugs": {
61
- "url": "https://github.com/prebuild/prebuild-install/issues"
62
- },
63
- "homepage": "https://github.com/prebuild/prebuild-install",
64
- "engines": {
65
- "node": ">=10"
66
- }
67
- }
@@ -1,35 +0,0 @@
1
- const url = require('url')
2
- const tunnel = require('tunnel-agent')
3
- const util = require('./util')
4
-
5
- function applyProxy (reqOpts, opts) {
6
- const log = opts.log || util.noopLogger
7
-
8
- const proxy = opts['https-proxy'] || opts.proxy
9
-
10
- if (proxy) {
11
- // eslint-disable-next-line node/no-deprecated-api
12
- const parsedDownloadUrl = url.parse(reqOpts.url)
13
- // eslint-disable-next-line node/no-deprecated-api
14
- const parsedProxy = url.parse(proxy)
15
- const uriProtocol = (parsedDownloadUrl.protocol === 'https:' ? 'https' : 'http')
16
- const proxyProtocol = (parsedProxy.protocol === 'https:' ? 'Https' : 'Http')
17
- const tunnelFnName = [uriProtocol, proxyProtocol].join('Over')
18
- reqOpts.agent = tunnel[tunnelFnName]({
19
- proxy: {
20
- host: parsedProxy.hostname,
21
- port: +parsedProxy.port,
22
- proxyAuth: parsedProxy.auth
23
- }
24
- })
25
- log.http('request', 'Proxy setup detected (Host: ' +
26
- parsedProxy.hostname + ', Port: ' +
27
- parsedProxy.port + ', Authentication: ' +
28
- (parsedProxy.auth ? 'Yes' : 'No') + ')' +
29
- ' Tunneling with ' + tunnelFnName)
30
- }
31
-
32
- return reqOpts
33
- }
34
-
35
- module.exports = applyProxy
@@ -1,64 +0,0 @@
1
- const path = require('path')
2
- const minimist = require('minimist')
3
- const getAbi = require('node-abi').getAbi
4
- const detectLibc = require('detect-libc')
5
- const napi = require('napi-build-utils')
6
-
7
- const env = process.env
8
-
9
- const libc = env.LIBC || process.env.npm_config_libc ||
10
- (detectLibc.isNonGlibcLinuxSync() && detectLibc.familySync()) || ''
11
-
12
- // Get the configuration
13
- module.exports = function (pkg) {
14
- const pkgConf = pkg.config || {}
15
- const buildFromSource = env.npm_config_build_from_source
16
-
17
- const rc = require('rc')('prebuild-install', {
18
- target: pkgConf.target || env.npm_config_target || process.versions.node,
19
- runtime: pkgConf.runtime || env.npm_config_runtime || 'node',
20
- arch: pkgConf.arch || env.npm_config_arch || process.arch,
21
- libc: libc,
22
- platform: env.npm_config_platform || process.platform,
23
- debug: env.npm_config_debug === 'true',
24
- force: false,
25
- verbose: env.npm_config_verbose === 'true',
26
- buildFromSource: buildFromSource === pkg.name || buildFromSource === 'true',
27
- path: '.',
28
- proxy: env.npm_config_proxy || env.http_proxy || env.HTTP_PROXY,
29
- 'https-proxy': env.npm_config_https_proxy || env.https_proxy || env.HTTPS_PROXY,
30
- 'local-address': env.npm_config_local_address,
31
- 'local-prebuilds': 'prebuilds',
32
- 'tag-prefix': 'v',
33
- download: env.npm_config_download
34
- }, minimist(process.argv, {
35
- alias: {
36
- target: 't',
37
- runtime: 'r',
38
- help: 'h',
39
- arch: 'a',
40
- path: 'p',
41
- version: 'v',
42
- download: 'd',
43
- buildFromSource: 'build-from-source',
44
- token: 'T'
45
- }
46
- }))
47
-
48
- rc.path = path.resolve(rc.path === true ? '.' : rc.path || '.')
49
-
50
- if (napi.isNapiRuntime(rc.runtime) && rc.target === process.versions.node) {
51
- rc.target = napi.getBestNapiBuildVersion()
52
- }
53
-
54
- rc.abi = napi.isNapiRuntime(rc.runtime) ? rc.target : getAbi(rc.target, rc.runtime)
55
-
56
- rc.libc = rc.platform !== 'linux' || rc.libc === detectLibc.GLIBC ? '' : rc.libc
57
-
58
- return rc
59
- }
60
-
61
- // Print the configuration values when executed standalone for testing purposses
62
- if (!module.parent) {
63
- console.log(JSON.stringify(module.exports({}), null, 2))
64
- }
@@ -1,143 +0,0 @@
1
- const path = require('path')
2
- const github = require('github-from-package')
3
- const home = require('os').homedir
4
- const crypto = require('crypto')
5
- const expandTemplate = require('expand-template')()
6
-
7
- function getDownloadUrl (opts) {
8
- const pkgName = opts.pkg.name.replace(/^@[a-zA-Z0-9_\-.~]+\//, '')
9
- return expandTemplate(urlTemplate(opts), {
10
- name: pkgName,
11
- package_name: pkgName,
12
- version: opts.pkg.version,
13
- major: opts.pkg.version.split('.')[0],
14
- minor: opts.pkg.version.split('.')[1],
15
- patch: opts.pkg.version.split('.')[2],
16
- prerelease: opts.pkg.version.split('-')[1],
17
- build: opts.pkg.version.split('+')[1],
18
- abi: opts.abi || process.versions.modules,
19
- node_abi: process.versions.modules,
20
- runtime: opts.runtime || 'node',
21
- platform: opts.platform,
22
- arch: opts.arch,
23
- libc: opts.libc || '',
24
- configuration: (opts.debug ? 'Debug' : 'Release'),
25
- module_name: opts.pkg.binary && opts.pkg.binary.module_name,
26
- tag_prefix: opts['tag-prefix']
27
- })
28
- }
29
-
30
- function getApiUrl (opts) {
31
- return github(opts.pkg).replace('github.com', 'api.github.com/repos') + '/releases'
32
- }
33
-
34
- function getAssetUrl (opts, assetId) {
35
- return getApiUrl(opts) + '/assets/' + assetId
36
- }
37
-
38
- function urlTemplate (opts) {
39
- if (typeof opts.download === 'string') {
40
- return opts.download
41
- }
42
-
43
- const packageName = '{name}-v{version}-{runtime}-v{abi}-{platform}{libc}-{arch}.tar.gz'
44
- const hostMirrorUrl = getHostMirrorUrl(opts)
45
-
46
- if (hostMirrorUrl) {
47
- return hostMirrorUrl + '/{tag_prefix}{version}/' + packageName
48
- }
49
-
50
- if (opts.pkg.binary && opts.pkg.binary.host) {
51
- return [
52
- opts.pkg.binary.host,
53
- opts.pkg.binary.remote_path,
54
- opts.pkg.binary.package_name || packageName
55
- ].map(function (path) {
56
- return trimSlashes(path)
57
- }).filter(Boolean).join('/')
58
- }
59
-
60
- return github(opts.pkg) + '/releases/download/{tag_prefix}{version}/' + packageName
61
- }
62
-
63
- function getEnvPrefix (pkgName) {
64
- return 'npm_config_' + (pkgName || '').replace(/[^a-zA-Z0-9]/g, '_').replace(/^_/, '')
65
- }
66
-
67
- function getHostMirrorUrl (opts) {
68
- const propName = getEnvPrefix(opts.pkg.name) + '_binary_host'
69
- return process.env[propName] || process.env[propName + '_mirror']
70
- }
71
-
72
- function trimSlashes (str) {
73
- if (str) return str.replace(/^\.\/|^\/|\/$/g, '')
74
- }
75
-
76
- function cachedPrebuild (url) {
77
- const digest = crypto.createHash('sha512').update(url).digest('hex').slice(0, 6)
78
- return path.join(prebuildCache(), digest + '-' + path.basename(url).replace(/[^a-zA-Z0-9.]+/g, '-'))
79
- }
80
-
81
- function npmCache () {
82
- const env = process.env
83
- return env.npm_config_cache || (env.APPDATA ? path.join(env.APPDATA, 'npm-cache') : path.join(home(), '.npm'))
84
- }
85
-
86
- function prebuildCache () {
87
- return path.join(npmCache(), '_prebuilds')
88
- }
89
-
90
- function tempFile (cached) {
91
- return cached + '.' + process.pid + '-' + Math.random().toString(16).slice(2) + '.tmp'
92
- }
93
-
94
- function packageOrigin (env, pkg) {
95
- // npm <= 6: metadata is stored on disk in node_modules
96
- if (pkg._from) {
97
- return pkg._from
98
- }
99
-
100
- // npm 7: metadata is exposed to environment by arborist
101
- if (env.npm_package_from) {
102
- // NOTE: seems undefined atm (npm 7.0.2)
103
- return env.npm_package_from
104
- }
105
-
106
- if (env.npm_package_resolved) {
107
- // NOTE: not sure about the difference with _from, but it's all we have
108
- return env.npm_package_resolved
109
- }
110
- }
111
-
112
- function localPrebuild (url, opts) {
113
- const propName = getEnvPrefix(opts.pkg.name) + '_local_prebuilds'
114
- const prefix = process.env[propName] || opts['local-prebuilds'] || 'prebuilds'
115
- return path.join(prefix, path.basename(url))
116
- }
117
-
118
- const noopLogger = {
119
- http: function () {},
120
- silly: function () {},
121
- debug: function () {},
122
- info: function () {},
123
- warn: function () {},
124
- error: function () {},
125
- critical: function () {},
126
- alert: function () {},
127
- emergency: function () {},
128
- notice: function () {},
129
- verbose: function () {},
130
- fatal: function () {}
131
- }
132
-
133
- exports.getDownloadUrl = getDownloadUrl
134
- exports.getApiUrl = getApiUrl
135
- exports.getAssetUrl = getAssetUrl
136
- exports.urlTemplate = urlTemplate
137
- exports.cachedPrebuild = cachedPrebuild
138
- exports.localPrebuild = localPrebuild
139
- exports.prebuildCache = prebuildCache
140
- exports.npmCache = npmCache
141
- exports.tempFile = tempFile
142
- exports.packageOrigin = packageOrigin
143
- exports.noopLogger = noopLogger
@@ -1,7 +0,0 @@
1
-
2
- // when this is loaded into the browser,
3
- // just use the defaults...
4
-
5
- module.exports = function (name, defaults) {
6
- return defaults
7
- }
@@ -1,4 +0,0 @@
1
- #! /usr/bin/env node
2
- var rc = require('./index')
3
-
4
- console.log(JSON.stringify(rc(process.argv[2]), false, 2))
@@ -1,53 +0,0 @@
1
- var cc = require('./lib/utils')
2
- var join = require('path').join
3
- var deepExtend = require('deep-extend')
4
- var etc = '/etc'
5
- var win = process.platform === "win32"
6
- var home = win
7
- ? process.env.USERPROFILE
8
- : process.env.HOME
9
-
10
- module.exports = function (name, defaults, argv, parse) {
11
- if('string' !== typeof name)
12
- throw new Error('rc(name): name *must* be string')
13
- if(!argv)
14
- argv = require('minimist')(process.argv.slice(2))
15
- defaults = (
16
- 'string' === typeof defaults
17
- ? cc.json(defaults) : defaults
18
- ) || {}
19
-
20
- parse = parse || cc.parse
21
-
22
- var env = cc.env(name + '_')
23
-
24
- var configs = [defaults]
25
- var configFiles = []
26
- function addConfigFile (file) {
27
- if (configFiles.indexOf(file) >= 0) return
28
- var fileConfig = cc.file(file)
29
- if (fileConfig) {
30
- configs.push(parse(fileConfig))
31
- configFiles.push(file)
32
- }
33
- }
34
-
35
- // which files do we look at?
36
- if (!win)
37
- [join(etc, name, 'config'),
38
- join(etc, name + 'rc')].forEach(addConfigFile)
39
- if (home)
40
- [join(home, '.config', name, 'config'),
41
- join(home, '.config', name),
42
- join(home, '.' + name, 'config'),
43
- join(home, '.' + name + 'rc')].forEach(addConfigFile)
44
- addConfigFile(cc.find('.'+name+'rc'))
45
- if (env.config) addConfigFile(env.config)
46
- if (argv.config) addConfigFile(argv.config)
47
-
48
- return deepExtend.apply(null, configs.concat([
49
- env,
50
- argv,
51
- configFiles.length ? {configs: configFiles, config: configFiles[configFiles.length - 1]} : undefined,
52
- ]))
53
- }