cline 1.0.0-nightly.5 → 1.0.0-nightly.6

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 (355) hide show
  1. package/bin/cline +0 -0
  2. package/bin/cline-host +0 -0
  3. package/node_modules/base64-js/LICENSE +21 -0
  4. package/node_modules/base64-js/README.md +34 -0
  5. package/node_modules/base64-js/base64js.min.js +1 -0
  6. package/node_modules/base64-js/index.d.ts +3 -0
  7. package/node_modules/base64-js/index.js +150 -0
  8. package/node_modules/base64-js/package.json +47 -0
  9. package/node_modules/better-sqlite3/LICENSE +21 -0
  10. package/node_modules/better-sqlite3/README.md +99 -0
  11. package/node_modules/better-sqlite3/binding.gyp +38 -0
  12. package/node_modules/better-sqlite3/deps/common.gypi +68 -0
  13. package/node_modules/better-sqlite3/deps/copy.js +31 -0
  14. package/node_modules/better-sqlite3/deps/defines.gypi +41 -0
  15. package/node_modules/better-sqlite3/deps/download.sh +122 -0
  16. package/node_modules/better-sqlite3/deps/patches/1208.patch +15 -0
  17. package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +262875 -0
  18. package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +13775 -0
  19. package/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +723 -0
  20. package/node_modules/better-sqlite3/deps/sqlite3.gyp +80 -0
  21. package/node_modules/better-sqlite3/deps/test_extension.c +21 -0
  22. package/node_modules/better-sqlite3/lib/database.js +90 -0
  23. package/node_modules/better-sqlite3/lib/index.js +3 -0
  24. package/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  25. package/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  26. package/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  27. package/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  28. package/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  29. package/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  30. package/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  31. package/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
  32. package/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  33. package/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  34. package/node_modules/better-sqlite3/lib/util.js +12 -0
  35. package/node_modules/better-sqlite3/package.json +62 -0
  36. package/node_modules/better-sqlite3/src/better_sqlite3.cpp +2189 -0
  37. package/node_modules/better-sqlite3/src/better_sqlite3.hpp +1036 -0
  38. package/node_modules/bindings/LICENSE.md +22 -0
  39. package/node_modules/bindings/README.md +98 -0
  40. package/node_modules/bindings/bindings.js +221 -0
  41. package/node_modules/bindings/package.json +28 -0
  42. package/node_modules/bl/.travis.yml +17 -0
  43. package/node_modules/bl/BufferList.js +396 -0
  44. package/node_modules/bl/LICENSE.md +13 -0
  45. package/node_modules/bl/README.md +247 -0
  46. package/node_modules/bl/bl.js +84 -0
  47. package/node_modules/bl/package.json +37 -0
  48. package/node_modules/bl/test/convert.js +21 -0
  49. package/node_modules/bl/test/indexOf.js +492 -0
  50. package/node_modules/bl/test/isBufferList.js +32 -0
  51. package/node_modules/bl/test/test.js +869 -0
  52. package/node_modules/buffer/AUTHORS.md +70 -0
  53. package/node_modules/buffer/LICENSE +21 -0
  54. package/node_modules/buffer/README.md +410 -0
  55. package/node_modules/buffer/index.d.ts +186 -0
  56. package/node_modules/buffer/index.js +1817 -0
  57. package/node_modules/buffer/package.json +96 -0
  58. package/node_modules/chownr/LICENSE +15 -0
  59. package/node_modules/chownr/README.md +3 -0
  60. package/node_modules/chownr/chownr.js +167 -0
  61. package/node_modules/chownr/package.json +29 -0
  62. package/node_modules/decompress-response/index.d.ts +22 -0
  63. package/node_modules/decompress-response/index.js +58 -0
  64. package/node_modules/decompress-response/license +9 -0
  65. package/node_modules/decompress-response/package.json +56 -0
  66. package/node_modules/decompress-response/readme.md +48 -0
  67. package/node_modules/deep-extend/LICENSE +20 -0
  68. package/node_modules/deep-extend/README.md +91 -0
  69. package/node_modules/deep-extend/index.js +1 -0
  70. package/node_modules/deep-extend/lib/deep-extend.js +150 -0
  71. package/node_modules/deep-extend/package.json +62 -0
  72. package/node_modules/detect-libc/LICENSE +201 -0
  73. package/node_modules/detect-libc/README.md +163 -0
  74. package/node_modules/detect-libc/index.d.ts +14 -0
  75. package/node_modules/detect-libc/lib/detect-libc.js +267 -0
  76. package/node_modules/detect-libc/lib/filesystem.js +41 -0
  77. package/node_modules/detect-libc/lib/process.js +24 -0
  78. package/node_modules/detect-libc/package.json +41 -0
  79. package/node_modules/end-of-stream/LICENSE +21 -0
  80. package/node_modules/end-of-stream/README.md +54 -0
  81. package/node_modules/end-of-stream/index.js +96 -0
  82. package/node_modules/end-of-stream/package.json +37 -0
  83. package/node_modules/expand-template/.travis.yml +6 -0
  84. package/node_modules/expand-template/LICENSE +21 -0
  85. package/node_modules/expand-template/README.md +43 -0
  86. package/node_modules/expand-template/index.js +26 -0
  87. package/node_modules/expand-template/package.json +29 -0
  88. package/node_modules/expand-template/test.js +67 -0
  89. package/node_modules/file-uri-to-path/.npmignore +1 -0
  90. package/node_modules/file-uri-to-path/.travis.yml +30 -0
  91. package/node_modules/file-uri-to-path/History.md +21 -0
  92. package/node_modules/file-uri-to-path/LICENSE +20 -0
  93. package/node_modules/file-uri-to-path/README.md +74 -0
  94. package/node_modules/file-uri-to-path/index.d.ts +2 -0
  95. package/node_modules/file-uri-to-path/index.js +66 -0
  96. package/node_modules/file-uri-to-path/package.json +32 -0
  97. package/node_modules/file-uri-to-path/test/test.js +24 -0
  98. package/node_modules/file-uri-to-path/test/tests.json +13 -0
  99. package/node_modules/fs-constants/LICENSE +21 -0
  100. package/node_modules/fs-constants/README.md +26 -0
  101. package/node_modules/fs-constants/browser.js +1 -0
  102. package/node_modules/fs-constants/index.js +1 -0
  103. package/node_modules/fs-constants/package.json +19 -0
  104. package/node_modules/github-from-package/.travis.yml +4 -0
  105. package/node_modules/github-from-package/LICENSE +18 -0
  106. package/node_modules/github-from-package/example/package.json +8 -0
  107. package/node_modules/github-from-package/example/url.js +3 -0
  108. package/node_modules/github-from-package/index.js +17 -0
  109. package/node_modules/github-from-package/package.json +30 -0
  110. package/node_modules/github-from-package/readme.markdown +53 -0
  111. package/node_modules/github-from-package/test/a.json +8 -0
  112. package/node_modules/github-from-package/test/b.json +5 -0
  113. package/node_modules/github-from-package/test/c.json +5 -0
  114. package/node_modules/github-from-package/test/d.json +7 -0
  115. package/node_modules/github-from-package/test/e.json +5 -0
  116. package/node_modules/github-from-package/test/url.js +19 -0
  117. package/node_modules/ieee754/LICENSE +11 -0
  118. package/node_modules/ieee754/README.md +51 -0
  119. package/node_modules/ieee754/index.d.ts +10 -0
  120. package/node_modules/ieee754/index.js +85 -0
  121. package/node_modules/ieee754/package.json +52 -0
  122. package/node_modules/inherits/LICENSE +16 -0
  123. package/node_modules/inherits/README.md +42 -0
  124. package/node_modules/inherits/inherits.js +9 -0
  125. package/node_modules/inherits/inherits_browser.js +27 -0
  126. package/node_modules/inherits/package.json +29 -0
  127. package/node_modules/ini/LICENSE +15 -0
  128. package/node_modules/ini/README.md +102 -0
  129. package/node_modules/ini/ini.js +206 -0
  130. package/node_modules/ini/package.json +33 -0
  131. package/node_modules/mimic-response/index.d.ts +17 -0
  132. package/node_modules/mimic-response/index.js +77 -0
  133. package/node_modules/mimic-response/license +9 -0
  134. package/node_modules/mimic-response/package.json +42 -0
  135. package/node_modules/mimic-response/readme.md +78 -0
  136. package/node_modules/minimist/.eslintrc +29 -0
  137. package/node_modules/minimist/.github/FUNDING.yml +12 -0
  138. package/node_modules/minimist/.nycrc +14 -0
  139. package/node_modules/minimist/CHANGELOG.md +298 -0
  140. package/node_modules/minimist/LICENSE +18 -0
  141. package/node_modules/minimist/README.md +121 -0
  142. package/node_modules/minimist/example/parse.js +4 -0
  143. package/node_modules/minimist/index.js +263 -0
  144. package/node_modules/minimist/package.json +75 -0
  145. package/node_modules/minimist/test/all_bool.js +34 -0
  146. package/node_modules/minimist/test/bool.js +177 -0
  147. package/node_modules/minimist/test/dash.js +43 -0
  148. package/node_modules/minimist/test/default_bool.js +37 -0
  149. package/node_modules/minimist/test/dotted.js +24 -0
  150. package/node_modules/minimist/test/kv_short.js +32 -0
  151. package/node_modules/minimist/test/long.js +33 -0
  152. package/node_modules/minimist/test/num.js +38 -0
  153. package/node_modules/minimist/test/parse.js +209 -0
  154. package/node_modules/minimist/test/parse_modified.js +11 -0
  155. package/node_modules/minimist/test/proto.js +64 -0
  156. package/node_modules/minimist/test/short.js +69 -0
  157. package/node_modules/minimist/test/stop_early.js +17 -0
  158. package/node_modules/minimist/test/unknown.js +104 -0
  159. package/node_modules/minimist/test/whitespace.js +10 -0
  160. package/node_modules/mkdirp-classic/LICENSE +21 -0
  161. package/node_modules/mkdirp-classic/README.md +18 -0
  162. package/node_modules/mkdirp-classic/index.js +98 -0
  163. package/node_modules/mkdirp-classic/package.json +18 -0
  164. package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
  165. package/node_modules/napi-build-utils/LICENSE +21 -0
  166. package/node_modules/napi-build-utils/README.md +52 -0
  167. package/node_modules/napi-build-utils/index.js +214 -0
  168. package/node_modules/napi-build-utils/index.md +0 -0
  169. package/node_modules/napi-build-utils/package.json +42 -0
  170. package/node_modules/node-abi/LICENSE +21 -0
  171. package/node_modules/node-abi/README.md +54 -0
  172. package/node_modules/node-abi/abi_registry.json +408 -0
  173. package/node_modules/node-abi/index.js +179 -0
  174. package/node_modules/node-abi/package.json +45 -0
  175. package/node_modules/once/LICENSE +15 -0
  176. package/node_modules/once/README.md +79 -0
  177. package/node_modules/once/once.js +42 -0
  178. package/node_modules/once/package.json +33 -0
  179. package/node_modules/prebuild-install/CHANGELOG.md +131 -0
  180. package/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
  181. package/node_modules/prebuild-install/LICENSE +21 -0
  182. package/node_modules/prebuild-install/README.md +163 -0
  183. package/node_modules/prebuild-install/asset.js +44 -0
  184. package/node_modules/prebuild-install/bin.js +78 -0
  185. package/node_modules/prebuild-install/download.js +142 -0
  186. package/node_modules/prebuild-install/error.js +14 -0
  187. package/node_modules/prebuild-install/help.txt +16 -0
  188. package/node_modules/prebuild-install/index.js +1 -0
  189. package/node_modules/prebuild-install/log.js +33 -0
  190. package/node_modules/prebuild-install/package.json +67 -0
  191. package/node_modules/prebuild-install/proxy.js +35 -0
  192. package/node_modules/prebuild-install/rc.js +64 -0
  193. package/node_modules/prebuild-install/util.js +143 -0
  194. package/node_modules/pump/.github/FUNDING.yml +2 -0
  195. package/node_modules/pump/.travis.yml +5 -0
  196. package/node_modules/pump/LICENSE +21 -0
  197. package/node_modules/pump/README.md +74 -0
  198. package/node_modules/pump/SECURITY.md +5 -0
  199. package/node_modules/pump/index.js +86 -0
  200. package/node_modules/pump/package.json +24 -0
  201. package/node_modules/pump/test-browser.js +66 -0
  202. package/node_modules/pump/test-node.js +53 -0
  203. package/node_modules/rc/LICENSE.APACHE2 +15 -0
  204. package/node_modules/rc/LICENSE.BSD +26 -0
  205. package/node_modules/rc/LICENSE.MIT +24 -0
  206. package/node_modules/rc/README.md +227 -0
  207. package/node_modules/rc/browser.js +7 -0
  208. package/node_modules/rc/cli.js +4 -0
  209. package/node_modules/rc/index.js +53 -0
  210. package/node_modules/rc/lib/utils.js +104 -0
  211. package/node_modules/rc/package.json +29 -0
  212. package/node_modules/rc/test/ini.js +16 -0
  213. package/node_modules/rc/test/nested-env-vars.js +50 -0
  214. package/node_modules/rc/test/test.js +59 -0
  215. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  216. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  217. package/node_modules/readable-stream/LICENSE +47 -0
  218. package/node_modules/readable-stream/README.md +106 -0
  219. package/node_modules/readable-stream/errors-browser.js +127 -0
  220. package/node_modules/readable-stream/errors.js +116 -0
  221. package/node_modules/readable-stream/experimentalWarning.js +17 -0
  222. package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  223. package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  224. package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  225. package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  226. package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  227. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  228. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  229. package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  230. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  231. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  232. package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  233. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  234. package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  235. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  236. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  237. package/node_modules/readable-stream/package.json +68 -0
  238. package/node_modules/readable-stream/readable-browser.js +9 -0
  239. package/node_modules/readable-stream/readable.js +16 -0
  240. package/node_modules/safe-buffer/LICENSE +21 -0
  241. package/node_modules/safe-buffer/README.md +584 -0
  242. package/node_modules/safe-buffer/index.d.ts +187 -0
  243. package/node_modules/safe-buffer/index.js +65 -0
  244. package/node_modules/safe-buffer/package.json +51 -0
  245. package/node_modules/semver/LICENSE +15 -0
  246. package/node_modules/semver/README.md +664 -0
  247. package/node_modules/semver/bin/semver.js +191 -0
  248. package/node_modules/semver/classes/comparator.js +143 -0
  249. package/node_modules/semver/classes/index.js +7 -0
  250. package/node_modules/semver/classes/range.js +556 -0
  251. package/node_modules/semver/classes/semver.js +319 -0
  252. package/node_modules/semver/functions/clean.js +8 -0
  253. package/node_modules/semver/functions/cmp.js +54 -0
  254. package/node_modules/semver/functions/coerce.js +62 -0
  255. package/node_modules/semver/functions/compare-build.js +9 -0
  256. package/node_modules/semver/functions/compare-loose.js +5 -0
  257. package/node_modules/semver/functions/compare.js +7 -0
  258. package/node_modules/semver/functions/diff.js +60 -0
  259. package/node_modules/semver/functions/eq.js +5 -0
  260. package/node_modules/semver/functions/gt.js +5 -0
  261. package/node_modules/semver/functions/gte.js +5 -0
  262. package/node_modules/semver/functions/inc.js +21 -0
  263. package/node_modules/semver/functions/lt.js +5 -0
  264. package/node_modules/semver/functions/lte.js +5 -0
  265. package/node_modules/semver/functions/major.js +5 -0
  266. package/node_modules/semver/functions/minor.js +5 -0
  267. package/node_modules/semver/functions/neq.js +5 -0
  268. package/node_modules/semver/functions/parse.js +18 -0
  269. package/node_modules/semver/functions/patch.js +5 -0
  270. package/node_modules/semver/functions/prerelease.js +8 -0
  271. package/node_modules/semver/functions/rcompare.js +5 -0
  272. package/node_modules/semver/functions/rsort.js +5 -0
  273. package/node_modules/semver/functions/satisfies.js +12 -0
  274. package/node_modules/semver/functions/sort.js +5 -0
  275. package/node_modules/semver/functions/valid.js +8 -0
  276. package/node_modules/semver/index.js +91 -0
  277. package/node_modules/semver/internal/constants.js +37 -0
  278. package/node_modules/semver/internal/debug.js +11 -0
  279. package/node_modules/semver/internal/identifiers.js +25 -0
  280. package/node_modules/semver/internal/lrucache.js +42 -0
  281. package/node_modules/semver/internal/parse-options.js +17 -0
  282. package/node_modules/semver/internal/re.js +223 -0
  283. package/node_modules/semver/package.json +78 -0
  284. package/node_modules/semver/preload.js +4 -0
  285. package/node_modules/semver/range.bnf +16 -0
  286. package/node_modules/semver/ranges/gtr.js +6 -0
  287. package/node_modules/semver/ranges/intersects.js +9 -0
  288. package/node_modules/semver/ranges/ltr.js +6 -0
  289. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  290. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  291. package/node_modules/semver/ranges/min-version.js +63 -0
  292. package/node_modules/semver/ranges/outside.js +82 -0
  293. package/node_modules/semver/ranges/simplify.js +49 -0
  294. package/node_modules/semver/ranges/subset.js +249 -0
  295. package/node_modules/semver/ranges/to-comparators.js +10 -0
  296. package/node_modules/semver/ranges/valid.js +13 -0
  297. package/node_modules/simple-concat/.travis.yml +3 -0
  298. package/node_modules/simple-concat/LICENSE +20 -0
  299. package/node_modules/simple-concat/README.md +44 -0
  300. package/node_modules/simple-concat/index.js +15 -0
  301. package/node_modules/simple-concat/package.json +47 -0
  302. package/node_modules/simple-concat/test/basic.js +41 -0
  303. package/node_modules/simple-get/.github/dependabot.yml +15 -0
  304. package/node_modules/simple-get/.github/workflows/ci.yml +23 -0
  305. package/node_modules/simple-get/LICENSE +20 -0
  306. package/node_modules/simple-get/README.md +333 -0
  307. package/node_modules/simple-get/index.js +108 -0
  308. package/node_modules/simple-get/package.json +67 -0
  309. package/node_modules/string_decoder/LICENSE +48 -0
  310. package/node_modules/string_decoder/README.md +47 -0
  311. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  312. package/node_modules/string_decoder/package.json +34 -0
  313. package/node_modules/strip-json-comments/index.js +70 -0
  314. package/node_modules/strip-json-comments/license +21 -0
  315. package/node_modules/strip-json-comments/package.json +42 -0
  316. package/node_modules/strip-json-comments/readme.md +64 -0
  317. package/node_modules/tar-fs/.travis.yml +6 -0
  318. package/node_modules/tar-fs/LICENSE +21 -0
  319. package/node_modules/tar-fs/README.md +165 -0
  320. package/node_modules/tar-fs/index.js +358 -0
  321. package/node_modules/tar-fs/package.json +41 -0
  322. package/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  323. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  324. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  325. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  326. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  327. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  328. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  329. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  330. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  331. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  332. package/node_modules/tar-fs/test/index.js +346 -0
  333. package/node_modules/tar-stream/LICENSE +21 -0
  334. package/node_modules/tar-stream/README.md +168 -0
  335. package/node_modules/tar-stream/extract.js +257 -0
  336. package/node_modules/tar-stream/headers.js +295 -0
  337. package/node_modules/tar-stream/index.js +2 -0
  338. package/node_modules/tar-stream/pack.js +255 -0
  339. package/node_modules/tar-stream/package.json +58 -0
  340. package/node_modules/tar-stream/sandbox.js +11 -0
  341. package/node_modules/tunnel-agent/LICENSE +55 -0
  342. package/node_modules/tunnel-agent/README.md +4 -0
  343. package/node_modules/tunnel-agent/index.js +244 -0
  344. package/node_modules/tunnel-agent/package.json +22 -0
  345. package/node_modules/util-deprecate/History.md +16 -0
  346. package/node_modules/util-deprecate/LICENSE +24 -0
  347. package/node_modules/util-deprecate/README.md +53 -0
  348. package/node_modules/util-deprecate/browser.js +67 -0
  349. package/node_modules/util-deprecate/node.js +6 -0
  350. package/node_modules/util-deprecate/package.json +27 -0
  351. package/node_modules/wrappy/LICENSE +15 -0
  352. package/node_modules/wrappy/README.md +36 -0
  353. package/node_modules/wrappy/package.json +29 -0
  354. package/node_modules/wrappy/wrappy.js +33 -0
  355. package/package.json +1 -1
package/bin/cline CHANGED
Binary file
package/bin/cline-host CHANGED
Binary file
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Jameson Little
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,34 @@
1
+ base64-js
2
+ =========
3
+
4
+ `base64-js` does basic base64 encoding/decoding in pure JS.
5
+
6
+ [![build status](https://secure.travis-ci.org/beatgammit/base64-js.png)](http://travis-ci.org/beatgammit/base64-js)
7
+
8
+ Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.
9
+
10
+ Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.
11
+
12
+ ## install
13
+
14
+ With [npm](https://npmjs.org) do:
15
+
16
+ `npm install base64-js` and `var base64js = require('base64-js')`
17
+
18
+ For use in web browsers do:
19
+
20
+ `<script src="base64js.min.js"></script>`
21
+
22
+ [Get supported base64-js with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-base64-js?utm_source=npm-base64-js&utm_medium=referral&utm_campaign=readme)
23
+
24
+ ## methods
25
+
26
+ `base64js` has three exposed functions, `byteLength`, `toByteArray` and `fromByteArray`, which both take a single argument.
27
+
28
+ * `byteLength` - Takes a base64 string and returns length of byte array
29
+ * `toByteArray` - Takes a base64 string and returns a byte array
30
+ * `fromByteArray` - Takes a byte array and returns a base64 string
31
+
32
+ ## license
33
+
34
+ MIT
@@ -0,0 +1 @@
1
+ (function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,b.base64js=a()}})(function(){return function(){function b(d,e,g){function a(j,i){if(!e[j]){if(!d[j]){var f="function"==typeof require&&require;if(!i&&f)return f(j,!0);if(h)return h(j,!0);var c=new Error("Cannot find module '"+j+"'");throw c.code="MODULE_NOT_FOUND",c}var k=e[j]={exports:{}};d[j][0].call(k.exports,function(b){var c=d[j][1][b];return a(c||b)},k,k.exports,b,d,e,g)}return e[j].exports}for(var h="function"==typeof require&&require,c=0;c<g.length;c++)a(g[c]);return a}return b}()({"/":[function(a,b,c){'use strict';function d(a){var b=a.length;if(0<b%4)throw new Error("Invalid string. Length must be a multiple of 4");var c=a.indexOf("=");-1===c&&(c=b);var d=c===b?0:4-c%4;return[c,d]}function e(a,b,c){return 3*(b+c)/4-c}function f(a){var b,c,f=d(a),g=f[0],h=f[1],j=new m(e(a,g,h)),k=0,n=0<h?g-4:g;for(c=0;c<n;c+=4)b=l[a.charCodeAt(c)]<<18|l[a.charCodeAt(c+1)]<<12|l[a.charCodeAt(c+2)]<<6|l[a.charCodeAt(c+3)],j[k++]=255&b>>16,j[k++]=255&b>>8,j[k++]=255&b;return 2===h&&(b=l[a.charCodeAt(c)]<<2|l[a.charCodeAt(c+1)]>>4,j[k++]=255&b),1===h&&(b=l[a.charCodeAt(c)]<<10|l[a.charCodeAt(c+1)]<<4|l[a.charCodeAt(c+2)]>>2,j[k++]=255&b>>8,j[k++]=255&b),j}function g(a){return k[63&a>>18]+k[63&a>>12]+k[63&a>>6]+k[63&a]}function h(a,b,c){for(var d,e=[],f=b;f<c;f+=3)d=(16711680&a[f]<<16)+(65280&a[f+1]<<8)+(255&a[f+2]),e.push(g(d));return e.join("")}function j(a){for(var b,c=a.length,d=c%3,e=[],f=16383,g=0,j=c-d;g<j;g+=f)e.push(h(a,g,g+f>j?j:g+f));return 1===d?(b=a[c-1],e.push(k[b>>2]+k[63&b<<4]+"==")):2===d&&(b=(a[c-2]<<8)+a[c-1],e.push(k[b>>10]+k[63&b>>4]+k[63&b<<2]+"=")),e.join("")}c.byteLength=function(a){var b=d(a),c=b[0],e=b[1];return 3*(c+e)/4-e},c.toByteArray=f,c.fromByteArray=j;for(var k=[],l=[],m="undefined"==typeof Uint8Array?Array:Uint8Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,p=n.length;o<p;++o)k[o]=n[o],l[n.charCodeAt(o)]=o;l[45]=62,l[95]=63},{}]},{},[])("/")});
@@ -0,0 +1,3 @@
1
+ export function byteLength(b64: string): number;
2
+ export function toByteArray(b64: string): Uint8Array;
3
+ export function fromByteArray(uint8: Uint8Array): string;
@@ -0,0 +1,150 @@
1
+ 'use strict'
2
+
3
+ exports.byteLength = byteLength
4
+ exports.toByteArray = toByteArray
5
+ exports.fromByteArray = fromByteArray
6
+
7
+ var lookup = []
8
+ var revLookup = []
9
+ var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
10
+
11
+ var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
12
+ for (var i = 0, len = code.length; i < len; ++i) {
13
+ lookup[i] = code[i]
14
+ revLookup[code.charCodeAt(i)] = i
15
+ }
16
+
17
+ // Support decoding URL-safe base64 strings, as Node.js does.
18
+ // See: https://en.wikipedia.org/wiki/Base64#URL_applications
19
+ revLookup['-'.charCodeAt(0)] = 62
20
+ revLookup['_'.charCodeAt(0)] = 63
21
+
22
+ function getLens (b64) {
23
+ var len = b64.length
24
+
25
+ if (len % 4 > 0) {
26
+ throw new Error('Invalid string. Length must be a multiple of 4')
27
+ }
28
+
29
+ // Trim off extra bytes after placeholder bytes are found
30
+ // See: https://github.com/beatgammit/base64-js/issues/42
31
+ var validLen = b64.indexOf('=')
32
+ if (validLen === -1) validLen = len
33
+
34
+ var placeHoldersLen = validLen === len
35
+ ? 0
36
+ : 4 - (validLen % 4)
37
+
38
+ return [validLen, placeHoldersLen]
39
+ }
40
+
41
+ // base64 is 4/3 + up to two characters of the original data
42
+ function byteLength (b64) {
43
+ var lens = getLens(b64)
44
+ var validLen = lens[0]
45
+ var placeHoldersLen = lens[1]
46
+ return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
47
+ }
48
+
49
+ function _byteLength (b64, validLen, placeHoldersLen) {
50
+ return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
51
+ }
52
+
53
+ function toByteArray (b64) {
54
+ var tmp
55
+ var lens = getLens(b64)
56
+ var validLen = lens[0]
57
+ var placeHoldersLen = lens[1]
58
+
59
+ var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
60
+
61
+ var curByte = 0
62
+
63
+ // if there are placeholders, only get up to the last complete 4 chars
64
+ var len = placeHoldersLen > 0
65
+ ? validLen - 4
66
+ : validLen
67
+
68
+ var i
69
+ for (i = 0; i < len; i += 4) {
70
+ tmp =
71
+ (revLookup[b64.charCodeAt(i)] << 18) |
72
+ (revLookup[b64.charCodeAt(i + 1)] << 12) |
73
+ (revLookup[b64.charCodeAt(i + 2)] << 6) |
74
+ revLookup[b64.charCodeAt(i + 3)]
75
+ arr[curByte++] = (tmp >> 16) & 0xFF
76
+ arr[curByte++] = (tmp >> 8) & 0xFF
77
+ arr[curByte++] = tmp & 0xFF
78
+ }
79
+
80
+ if (placeHoldersLen === 2) {
81
+ tmp =
82
+ (revLookup[b64.charCodeAt(i)] << 2) |
83
+ (revLookup[b64.charCodeAt(i + 1)] >> 4)
84
+ arr[curByte++] = tmp & 0xFF
85
+ }
86
+
87
+ if (placeHoldersLen === 1) {
88
+ tmp =
89
+ (revLookup[b64.charCodeAt(i)] << 10) |
90
+ (revLookup[b64.charCodeAt(i + 1)] << 4) |
91
+ (revLookup[b64.charCodeAt(i + 2)] >> 2)
92
+ arr[curByte++] = (tmp >> 8) & 0xFF
93
+ arr[curByte++] = tmp & 0xFF
94
+ }
95
+
96
+ return arr
97
+ }
98
+
99
+ function tripletToBase64 (num) {
100
+ return lookup[num >> 18 & 0x3F] +
101
+ lookup[num >> 12 & 0x3F] +
102
+ lookup[num >> 6 & 0x3F] +
103
+ lookup[num & 0x3F]
104
+ }
105
+
106
+ function encodeChunk (uint8, start, end) {
107
+ var tmp
108
+ var output = []
109
+ for (var i = start; i < end; i += 3) {
110
+ tmp =
111
+ ((uint8[i] << 16) & 0xFF0000) +
112
+ ((uint8[i + 1] << 8) & 0xFF00) +
113
+ (uint8[i + 2] & 0xFF)
114
+ output.push(tripletToBase64(tmp))
115
+ }
116
+ return output.join('')
117
+ }
118
+
119
+ function fromByteArray (uint8) {
120
+ var tmp
121
+ var len = uint8.length
122
+ var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
123
+ var parts = []
124
+ var maxChunkLength = 16383 // must be multiple of 3
125
+
126
+ // go through the array every three bytes, we'll deal with trailing stuff later
127
+ for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
128
+ parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
129
+ }
130
+
131
+ // pad the end with zeros, but make sure to not forget the extra bytes
132
+ if (extraBytes === 1) {
133
+ tmp = uint8[len - 1]
134
+ parts.push(
135
+ lookup[tmp >> 2] +
136
+ lookup[(tmp << 4) & 0x3F] +
137
+ '=='
138
+ )
139
+ } else if (extraBytes === 2) {
140
+ tmp = (uint8[len - 2] << 8) + uint8[len - 1]
141
+ parts.push(
142
+ lookup[tmp >> 10] +
143
+ lookup[(tmp >> 4) & 0x3F] +
144
+ lookup[(tmp << 2) & 0x3F] +
145
+ '='
146
+ )
147
+ }
148
+
149
+ return parts.join('')
150
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "base64-js",
3
+ "description": "Base64 encoding/decoding in pure JS",
4
+ "version": "1.5.1",
5
+ "author": "T. Jameson Little <t.jameson.little@gmail.com>",
6
+ "typings": "index.d.ts",
7
+ "bugs": {
8
+ "url": "https://github.com/beatgammit/base64-js/issues"
9
+ },
10
+ "devDependencies": {
11
+ "babel-minify": "^0.5.1",
12
+ "benchmark": "^2.1.4",
13
+ "browserify": "^16.3.0",
14
+ "standard": "*",
15
+ "tape": "4.x"
16
+ },
17
+ "homepage": "https://github.com/beatgammit/base64-js",
18
+ "keywords": [
19
+ "base64"
20
+ ],
21
+ "license": "MIT",
22
+ "main": "index.js",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git://github.com/beatgammit/base64-js.git"
26
+ },
27
+ "scripts": {
28
+ "build": "browserify -s base64js -r ./ | minify > base64js.min.js",
29
+ "lint": "standard",
30
+ "test": "npm run lint && npm run unit",
31
+ "unit": "tape test/*.js"
32
+ },
33
+ "funding": [
34
+ {
35
+ "type": "github",
36
+ "url": "https://github.com/sponsors/feross"
37
+ },
38
+ {
39
+ "type": "patreon",
40
+ "url": "https://www.patreon.com/feross"
41
+ },
42
+ {
43
+ "type": "consulting",
44
+ "url": "https://feross.org/support"
45
+ }
46
+ ]
47
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Joshua Wise
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.
@@ -0,0 +1,99 @@
1
+ # better-sqlite3 [![Build Status](https://github.com/JoshuaWise/better-sqlite3/actions/workflows/build.yml/badge.svg)](https://github.com/JoshuaWise/better-sqlite3/actions/workflows/build.yml?query=branch%3Amaster)
2
+
3
+ The fastest and simplest library for SQLite in Node.js.
4
+
5
+ - Full transaction support
6
+ - High performance, efficiency, and safety
7
+ - Easy-to-use synchronous API *(better concurrency than an asynchronous API... yes, you read that correctly)*
8
+ - Support for user-defined functions, aggregates, virtual tables, and extensions
9
+ - 64-bit integers *(invisible until you need them)*
10
+ - Worker thread support *(for large/slow queries)*
11
+
12
+ ## Help this project stay strong! &#128170;
13
+
14
+ `better-sqlite3` is used by thousands of developers and engineers on a daily basis. Long nights and weekends were spent keeping this project strong and dependable, with no ask for compensation or funding, until now. If your company uses `better-sqlite3`, ask your manager to consider supporting the project:
15
+
16
+ - [Become a GitHub sponsor](https://github.com/sponsors/JoshuaWise)
17
+ - [Become a backer on Patreon](https://www.patreon.com/joshuawise)
18
+ - [Make a one-time donation on PayPal](https://www.paypal.me/joshuathomaswise)
19
+
20
+ ## How other libraries compare
21
+
22
+ | |select 1 row &nbsp;`get()`&nbsp;|select 100 rows &nbsp;&nbsp;`all()`&nbsp;&nbsp;|select 100 rows `iterate()` 1-by-1|insert 1 row `run()`|insert 100 rows in a transaction|
23
+ |---|---|---|---|---|---|
24
+ |better-sqlite3|1x|1x|1x|1x|1x|
25
+ |[sqlite](https://www.npmjs.com/package/sqlite) and [sqlite3](https://www.npmjs.com/package/sqlite3)|11.7x slower|2.9x slower|24.4x slower|2.8x slower|15.6x slower|
26
+
27
+ > You can verify these results by [running the benchmark yourself](./docs/benchmark.md).
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ npm install better-sqlite3
33
+ ```
34
+
35
+ > Requires Node.js v14.21.1 or later. Prebuilt binaries are available for [LTS versions](https://nodejs.org/en/about/releases/). If you have trouble installing, check the [troubleshooting guide](./docs/troubleshooting.md).
36
+
37
+ ## Usage
38
+
39
+ ```js
40
+ const db = require('better-sqlite3')('foobar.db', options);
41
+
42
+ const row = db.prepare('SELECT * FROM users WHERE id = ?').get(userId);
43
+ console.log(row.firstName, row.lastName, row.email);
44
+ ```
45
+
46
+ Though not required, [it is generally important to set the WAL pragma for performance reasons](https://github.com/WiseLibs/better-sqlite3/blob/master/docs/performance.md).
47
+
48
+ ```js
49
+ db.pragma('journal_mode = WAL');
50
+ ```
51
+
52
+ ##### In ES6 module notation:
53
+
54
+ ```js
55
+ import Database from 'better-sqlite3';
56
+ const db = new Database('foobar.db', options);
57
+ db.pragma('journal_mode = WAL');
58
+ ```
59
+
60
+ ## Why should I use this instead of [node-sqlite3](https://github.com/mapbox/node-sqlite3)?
61
+
62
+ - `node-sqlite3` uses asynchronous APIs for tasks that are either CPU-bound or serialized. That's not only bad design, but it wastes tons of resources. It also causes [mutex thrashing](https://en.wikipedia.org/wiki/Resource_contention) which has devastating effects on performance.
63
+ - `node-sqlite3` exposes low-level (C language) memory management functions. `better-sqlite3` does it the JavaScript way, allowing the garbage collector to worry about memory management.
64
+ - `better-sqlite3` is simpler to use, and it provides nice utilities for some operations that are very difficult or impossible in `node-sqlite3`.
65
+ - `better-sqlite3` is much faster than `node-sqlite3` in most cases, and just as fast in all other cases.
66
+
67
+ #### When is this library not appropriate?
68
+
69
+ In most cases, if you're attempting something that cannot be reasonably accomplished with `better-sqlite3`, it probably cannot be reasonably accomplished with SQLite in general. For example, if you're executing queries that take one second to complete, and you expect to have many concurrent users executing those queries, no amount of asynchronicity will save you from SQLite's serialized nature. Fortunately, SQLite is very *very* fast. With proper indexing, we've been able to achieve upward of 2000 queries per second with 5-way-joins in a 60 GB database, where each query was handling 5–50 kilobytes of real data.
70
+
71
+ If you have a performance problem, the most likely causes are inefficient queries, improper indexing, or a lack of [WAL mode](./docs/performance.md)—not `better-sqlite3` itself. However, there are some cases where `better-sqlite3` could be inappropriate:
72
+
73
+ - If you expect a high volume of concurrent reads each returning many megabytes of data (i.e., videos)
74
+ - If you expect a high volume of concurrent writes (i.e., a social media site)
75
+ - If your database's size is near the terabyte range
76
+
77
+ For these situations, you should probably use a full-fledged RDBMS such as [PostgreSQL](https://www.postgresql.org/).
78
+
79
+ ## Upgrading
80
+
81
+ Upgrading your `better-sqlite3` dependency can potentially introduce breaking changes, either in the `better-sqlite3` API (if you upgrade to a new [major version](https://semver.org/)), or between your existing database(s) and the underlying version of SQLite. Before upgrading, review:
82
+
83
+ * [`better-sqlite3` release notes](https://github.com/WiseLibs/better-sqlite3/releases)
84
+ * [SQLite release history](https://www.sqlite.org/changes.html)
85
+
86
+ # Documentation
87
+
88
+ - [API documentation](./docs/api.md)
89
+ - [Performance](./docs/performance.md) (also see [benchmark results](./docs/benchmark.md))
90
+ - [64-bit integer support](./docs/integer.md)
91
+ - [Worker thread support](./docs/threads.md)
92
+ - [Unsafe mode (advanced)](./docs/unsafe.md)
93
+ - [SQLite compilation (advanced)](./docs/compilation.md)
94
+ - [Contribution rules](./docs/contribution.md)
95
+ - [Code of conduct](./docs/conduct.md)
96
+
97
+ # License
98
+
99
+ [MIT](./LICENSE)
@@ -0,0 +1,38 @@
1
+ # ===
2
+ # This is the main GYP file, which builds better-sqlite3 with SQLite itself.
3
+ # ===
4
+
5
+ {
6
+ 'includes': ['deps/common.gypi'],
7
+ 'targets': [
8
+ {
9
+ 'target_name': 'better_sqlite3',
10
+ 'dependencies': ['deps/sqlite3.gyp:sqlite3'],
11
+ 'sources': ['src/better_sqlite3.cpp'],
12
+ 'cflags_cc': ['-std=c++20'],
13
+ 'xcode_settings': {
14
+ 'OTHER_CPLUSPLUSFLAGS': ['-std=c++20', '-stdlib=libc++'],
15
+ },
16
+ 'msvs_settings': {
17
+ 'VCCLCompilerTool': {
18
+ 'AdditionalOptions': [
19
+ '/std:c++20',
20
+ ],
21
+ },
22
+ },
23
+ 'conditions': [
24
+ ['OS=="linux"', {
25
+ 'ldflags': [
26
+ '-Wl,-Bsymbolic',
27
+ '-Wl,--exclude-libs,ALL',
28
+ ],
29
+ }],
30
+ ],
31
+ },
32
+ {
33
+ 'target_name': 'test_extension',
34
+ 'dependencies': ['deps/sqlite3.gyp:sqlite3'],
35
+ 'conditions': [['sqlite3 == ""', { 'sources': ['deps/test_extension.c'] }]],
36
+ },
37
+ ],
38
+ }
@@ -0,0 +1,68 @@
1
+ # ===
2
+ # This configuration defines the differences between Release and Debug builds.
3
+ # Some miscellaneous Windows settings are also defined here.
4
+ # ===
5
+
6
+ {
7
+ 'variables': { 'sqlite3%': '' },
8
+ 'target_defaults': {
9
+ 'default_configuration': 'Release',
10
+ 'msvs_settings': {
11
+ 'VCCLCompilerTool': {
12
+ 'ExceptionHandling': 1,
13
+ },
14
+ },
15
+ 'conditions': [
16
+ ['OS == "win"', {
17
+ 'defines': ['WIN32'],
18
+ }],
19
+ ],
20
+ 'configurations': {
21
+ 'Debug': {
22
+ 'defines!': [
23
+ 'NDEBUG',
24
+ ],
25
+ 'defines': [
26
+ 'DEBUG',
27
+ '_DEBUG',
28
+ 'SQLITE_DEBUG',
29
+ 'SQLITE_MEMDEBUG',
30
+ 'SQLITE_ENABLE_API_ARMOR',
31
+ 'SQLITE_WIN32_MALLOC_VALIDATE',
32
+ ],
33
+ 'cflags': [
34
+ '-O0',
35
+ ],
36
+ 'xcode_settings': {
37
+ 'MACOSX_DEPLOYMENT_TARGET': '10.7',
38
+ 'GCC_OPTIMIZATION_LEVEL': '0',
39
+ 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES',
40
+ },
41
+ 'msvs_settings': {
42
+ 'VCLinkerTool': {
43
+ 'GenerateDebugInformation': 'true',
44
+ },
45
+ },
46
+ },
47
+ 'Release': {
48
+ 'defines!': [
49
+ 'DEBUG',
50
+ '_DEBUG',
51
+ ],
52
+ 'defines': [
53
+ 'NDEBUG',
54
+ ],
55
+ 'cflags': [
56
+ '-O3',
57
+ ],
58
+ 'xcode_settings': {
59
+ 'MACOSX_DEPLOYMENT_TARGET': '10.7',
60
+ 'GCC_OPTIMIZATION_LEVEL': '3',
61
+ 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
62
+ 'DEAD_CODE_STRIPPING': 'YES',
63
+ 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
64
+ },
65
+ },
66
+ },
67
+ },
68
+ }
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+
5
+ const dest = process.argv[2];
6
+ const source = path.resolve(path.sep, process.argv[3] || path.join(__dirname, 'sqlite3'));
7
+ const files = [
8
+ { filename: 'sqlite3.c', optional: false },
9
+ { filename: 'sqlite3.h', optional: false },
10
+ ];
11
+
12
+ if (process.argv[3]) {
13
+ // Support "_HAVE_SQLITE_CONFIG_H" in custom builds.
14
+ files.push({ filename: 'config.h', optional: true });
15
+ } else {
16
+ // Required for some tests.
17
+ files.push({ filename: 'sqlite3ext.h', optional: false });
18
+ }
19
+
20
+ for (const { filename, optional } of files) {
21
+ const sourceFilepath = path.join(source, filename);
22
+ const destFilepath = path.join(dest, filename);
23
+
24
+ if (optional && !fs.existsSync(sourceFilepath)) {
25
+ continue;
26
+ }
27
+
28
+ fs.accessSync(sourceFilepath);
29
+ fs.mkdirSync(path.dirname(destFilepath), { recursive: true });
30
+ fs.copyFileSync(sourceFilepath, destFilepath);
31
+ }
@@ -0,0 +1,41 @@
1
+ # THIS FILE IS AUTOMATICALLY GENERATED BY deps/download.sh (DO NOT EDIT)
2
+
3
+ {
4
+ 'defines': [
5
+ 'HAVE_INT16_T=1',
6
+ 'HAVE_INT32_T=1',
7
+ 'HAVE_INT8_T=1',
8
+ 'HAVE_STDINT_H=1',
9
+ 'HAVE_UINT16_T=1',
10
+ 'HAVE_UINT32_T=1',
11
+ 'HAVE_UINT8_T=1',
12
+ 'HAVE_USLEEP=1',
13
+ 'SQLITE_DEFAULT_CACHE_SIZE=-16000',
14
+ 'SQLITE_DEFAULT_FOREIGN_KEYS=1',
15
+ 'SQLITE_DEFAULT_MEMSTATUS=0',
16
+ 'SQLITE_DEFAULT_WAL_SYNCHRONOUS=1',
17
+ 'SQLITE_DQS=0',
18
+ 'SQLITE_ENABLE_COLUMN_METADATA',
19
+ 'SQLITE_ENABLE_DBSTAT_VTAB',
20
+ 'SQLITE_ENABLE_DESERIALIZE',
21
+ 'SQLITE_ENABLE_FTS3',
22
+ 'SQLITE_ENABLE_FTS3_PARENTHESIS',
23
+ 'SQLITE_ENABLE_FTS4',
24
+ 'SQLITE_ENABLE_FTS5',
25
+ 'SQLITE_ENABLE_GEOPOLY',
26
+ 'SQLITE_ENABLE_JSON1',
27
+ 'SQLITE_ENABLE_MATH_FUNCTIONS',
28
+ 'SQLITE_ENABLE_RTREE',
29
+ 'SQLITE_ENABLE_STAT4',
30
+ 'SQLITE_ENABLE_UPDATE_DELETE_LIMIT',
31
+ 'SQLITE_LIKE_DOESNT_MATCH_BLOBS',
32
+ 'SQLITE_OMIT_DEPRECATED',
33
+ 'SQLITE_OMIT_PROGRESS_CALLBACK',
34
+ 'SQLITE_OMIT_SHARED_CACHE',
35
+ 'SQLITE_OMIT_TCL_VARIABLE',
36
+ 'SQLITE_SOUNDEX',
37
+ 'SQLITE_THREADSAFE=2',
38
+ 'SQLITE_TRACE_SIZE_LIMIT=32',
39
+ 'SQLITE_USE_URI=0',
40
+ ],
41
+ }