cline 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/bin/cline +0 -0
  2. package/bin/cline-darwin-amd64 +0 -0
  3. package/bin/cline-darwin-arm64 +0 -0
  4. package/bin/cline-host +0 -0
  5. package/bin/cline-host-darwin-amd64 +0 -0
  6. package/bin/cline-host-darwin-arm64 +0 -0
  7. package/bin/cline-host-linux-amd64 +0 -0
  8. package/bin/cline-host-linux-arm64 +0 -0
  9. package/bin/cline-linux-amd64 +0 -0
  10. package/bin/cline-linux-arm64 +0 -0
  11. package/cline-core.js +24143 -16610
  12. package/extension/package.json +12 -4
  13. package/node_modules/b4a/LICENSE +201 -0
  14. package/node_modules/b4a/README.md +153 -0
  15. package/node_modules/b4a/browser.js +563 -0
  16. package/node_modules/b4a/index.js +188 -0
  17. package/node_modules/b4a/lib/ascii.js +31 -0
  18. package/node_modules/b4a/lib/base64.js +65 -0
  19. package/node_modules/b4a/lib/hex.js +51 -0
  20. package/node_modules/b4a/lib/utf16le.js +40 -0
  21. package/node_modules/b4a/lib/utf8.js +141 -0
  22. package/node_modules/b4a/package.json +49 -0
  23. package/node_modules/b4a/react-native.js +5 -0
  24. package/node_modules/bare-events/LICENSE +201 -0
  25. package/node_modules/bare-events/README.md +25 -0
  26. package/node_modules/bare-events/global.d.ts +15 -0
  27. package/node_modules/bare-events/global.js +5 -0
  28. package/node_modules/bare-events/index.d.ts +94 -0
  29. package/node_modules/bare-events/index.js +355 -0
  30. package/node_modules/bare-events/lib/errors.js +32 -0
  31. package/node_modules/bare-events/package.json +61 -0
  32. package/node_modules/bare-events/web.d.ts +79 -0
  33. package/node_modules/bare-events/web.js +347 -0
  34. package/node_modules/bare-fs/CMakeLists.txt +13 -0
  35. package/node_modules/bare-fs/LICENSE +201 -0
  36. package/node_modules/bare-fs/README.md +29 -0
  37. package/node_modules/bare-fs/binding.c +2238 -0
  38. package/node_modules/bare-fs/binding.js +1 -0
  39. package/node_modules/bare-fs/index.d.ts +1115 -0
  40. package/node_modules/bare-fs/index.js +2330 -0
  41. package/node_modules/bare-fs/lib/constants.d.ts +49 -0
  42. package/node_modules/bare-fs/lib/constants.js +49 -0
  43. package/node_modules/bare-fs/lib/errors.d.ts +11 -0
  44. package/node_modules/bare-fs/lib/errors.js +55 -0
  45. package/node_modules/bare-fs/package.json +71 -0
  46. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  47. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  48. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  49. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  50. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  51. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  52. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  53. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  54. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  55. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  56. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  57. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  58. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  59. package/node_modules/bare-fs/promises.d.ts +282 -0
  60. package/node_modules/bare-fs/promises.js +90 -0
  61. package/node_modules/bare-os/CMakeLists.txt +13 -0
  62. package/node_modules/bare-os/LICENSE +201 -0
  63. package/node_modules/bare-os/README.md +11 -0
  64. package/node_modules/bare-os/binding.c +1119 -0
  65. package/node_modules/bare-os/binding.js +1 -0
  66. package/node_modules/bare-os/index.d.ts +109 -0
  67. package/node_modules/bare-os/index.js +99 -0
  68. package/node_modules/bare-os/lib/constants.js +6 -0
  69. package/node_modules/bare-os/lib/errors.js +22 -0
  70. package/node_modules/bare-os/package.json +46 -0
  71. package/node_modules/bare-os/prebuilds/android-arm/bare-os.bare +0 -0
  72. package/node_modules/bare-os/prebuilds/android-arm64/bare-os.bare +0 -0
  73. package/node_modules/bare-os/prebuilds/android-ia32/bare-os.bare +0 -0
  74. package/node_modules/bare-os/prebuilds/android-x64/bare-os.bare +0 -0
  75. package/node_modules/bare-os/prebuilds/darwin-arm64/bare-os.bare +0 -0
  76. package/node_modules/bare-os/prebuilds/darwin-x64/bare-os.bare +0 -0
  77. package/node_modules/bare-os/prebuilds/ios-arm64/bare-os.bare +0 -0
  78. package/node_modules/bare-os/prebuilds/ios-arm64-simulator/bare-os.bare +0 -0
  79. package/node_modules/bare-os/prebuilds/ios-x64-simulator/bare-os.bare +0 -0
  80. package/node_modules/bare-os/prebuilds/linux-arm64/bare-os.bare +0 -0
  81. package/node_modules/bare-os/prebuilds/linux-x64/bare-os.bare +0 -0
  82. package/node_modules/bare-os/prebuilds/win32-arm64/bare-os.bare +0 -0
  83. package/node_modules/bare-os/prebuilds/win32-x64/bare-os.bare +0 -0
  84. package/node_modules/bare-path/LICENSE +201 -0
  85. package/node_modules/bare-path/NOTICE +28 -0
  86. package/node_modules/bare-path/README.md +19 -0
  87. package/node_modules/bare-path/index.js +11 -0
  88. package/node_modules/bare-path/lib/constants.js +11 -0
  89. package/node_modules/bare-path/lib/posix.js +242 -0
  90. package/node_modules/bare-path/lib/shared.js +67 -0
  91. package/node_modules/bare-path/lib/win32.js +513 -0
  92. package/node_modules/bare-path/package.json +36 -0
  93. package/node_modules/bare-stream/LICENSE +201 -0
  94. package/node_modules/bare-stream/README.md +15 -0
  95. package/node_modules/bare-stream/global.js +8 -0
  96. package/node_modules/bare-stream/index.d.ts +237 -0
  97. package/node_modules/bare-stream/index.js +355 -0
  98. package/node_modules/bare-stream/package.json +61 -0
  99. package/node_modules/bare-stream/promises.js +3 -0
  100. package/node_modules/bare-stream/web.d.ts +73 -0
  101. package/node_modules/bare-stream/web.js +229 -0
  102. package/node_modules/bare-url/CMakeLists.txt +27 -0
  103. package/node_modules/bare-url/LICENSE +201 -0
  104. package/node_modules/bare-url/README.md +19 -0
  105. package/node_modules/bare-url/binding.c +188 -0
  106. package/node_modules/bare-url/binding.js +1 -0
  107. package/node_modules/bare-url/global.d.ts +12 -0
  108. package/node_modules/bare-url/global.js +2 -0
  109. package/node_modules/bare-url/index.d.ts +39 -0
  110. package/node_modules/bare-url/index.js +450 -0
  111. package/node_modules/bare-url/lib/errors.d.ts +8 -0
  112. package/node_modules/bare-url/lib/errors.js +38 -0
  113. package/node_modules/bare-url/lib/url-search-params.d.ts +21 -0
  114. package/node_modules/bare-url/lib/url-search-params.js +176 -0
  115. package/node_modules/bare-url/package.json +51 -0
  116. package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
  117. package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
  118. package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
  119. package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
  120. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  121. package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
  122. package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
  123. package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
  124. package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
  125. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  126. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  127. package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
  128. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  129. package/node_modules/better-sqlite3/deps/download.sh +1 -1
  130. package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +122 -81
  131. package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +45 -45
  132. package/node_modules/better-sqlite3/lib/database.js +1 -1
  133. package/node_modules/better-sqlite3/package.json +4 -7
  134. package/node_modules/better-sqlite3/src/addon.cpp +47 -0
  135. package/node_modules/better-sqlite3/src/better_sqlite3.cpp +44 -2164
  136. package/node_modules/better-sqlite3/src/objects/backup.cpp +120 -0
  137. package/node_modules/better-sqlite3/src/objects/backup.hpp +36 -0
  138. package/node_modules/better-sqlite3/src/objects/database.cpp +417 -0
  139. package/node_modules/better-sqlite3/src/objects/database.hpp +103 -0
  140. package/node_modules/better-sqlite3/src/objects/statement-iterator.cpp +113 -0
  141. package/node_modules/better-sqlite3/src/objects/statement-iterator.hpp +50 -0
  142. package/node_modules/better-sqlite3/src/objects/statement.cpp +383 -0
  143. package/node_modules/better-sqlite3/src/objects/statement.hpp +58 -0
  144. package/node_modules/better-sqlite3/src/util/bind-map.cpp +73 -0
  145. package/node_modules/better-sqlite3/src/util/binder.cpp +193 -0
  146. package/node_modules/better-sqlite3/src/util/constants.cpp +172 -0
  147. package/node_modules/better-sqlite3/src/util/custom-aggregate.cpp +121 -0
  148. package/node_modules/better-sqlite3/src/util/custom-function.cpp +59 -0
  149. package/node_modules/better-sqlite3/src/util/custom-table.cpp +409 -0
  150. package/node_modules/better-sqlite3/src/util/data-converter.cpp +17 -0
  151. package/node_modules/better-sqlite3/src/util/data.cpp +194 -0
  152. package/node_modules/better-sqlite3/src/util/helpers.cpp +109 -0
  153. package/node_modules/better-sqlite3/src/util/macros.cpp +63 -0
  154. package/node_modules/better-sqlite3/src/util/query-macros.cpp +71 -0
  155. package/node_modules/better-sqlite3/src/util/row-builder.cpp +49 -0
  156. package/node_modules/events-universal/LICENSE +201 -0
  157. package/node_modules/events-universal/README.md +17 -0
  158. package/node_modules/events-universal/bare.js +1 -0
  159. package/node_modules/events-universal/default.js +1 -0
  160. package/node_modules/events-universal/index.js +1 -0
  161. package/node_modules/events-universal/package.json +39 -0
  162. package/node_modules/events-universal/react-native.js +1 -0
  163. package/node_modules/{fs-constants → fast-fifo}/LICENSE +1 -1
  164. package/node_modules/fast-fifo/README.md +78 -0
  165. package/node_modules/fast-fifo/fixed-size.js +39 -0
  166. package/node_modules/fast-fifo/index.js +48 -0
  167. package/node_modules/fast-fifo/package.json +28 -0
  168. package/node_modules/{base64-js → streamx}/LICENSE +1 -1
  169. package/node_modules/streamx/README.md +489 -0
  170. package/node_modules/streamx/index.js +1184 -0
  171. package/node_modules/streamx/package.json +34 -0
  172. package/node_modules/tar-fs/README.md +23 -34
  173. package/node_modules/tar-fs/index.js +211 -184
  174. package/node_modules/tar-fs/package.json +27 -7
  175. package/node_modules/tar-stream/README.md +34 -19
  176. package/node_modules/tar-stream/constants.js +14 -0
  177. package/node_modules/tar-stream/extract.js +341 -192
  178. package/node_modules/tar-stream/headers.js +201 -175
  179. package/node_modules/tar-stream/pack.js +226 -194
  180. package/node_modules/tar-stream/package.json +23 -46
  181. package/node_modules/text-decoder/LICENSE +201 -0
  182. package/node_modules/text-decoder/README.md +36 -0
  183. package/node_modules/text-decoder/index.js +64 -0
  184. package/node_modules/text-decoder/lib/browser-decoder.js +17 -0
  185. package/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
  186. package/node_modules/text-decoder/lib/utf8-decoder.js +104 -0
  187. package/node_modules/text-decoder/package.json +38 -0
  188. package/package.json +1 -1
  189. package/proto/cline/account.proto +10 -8
  190. package/proto/cline/browser.proto +3 -1
  191. package/proto/cline/checkpoints.proto +5 -3
  192. package/proto/cline/commands.proto +4 -2
  193. package/proto/cline/common.proto +5 -7
  194. package/proto/cline/dictation.proto +3 -1
  195. package/proto/cline/file.proto +36 -34
  196. package/proto/cline/hooks.proto +3 -2
  197. package/proto/cline/mcp.proto +6 -4
  198. package/proto/cline/models.proto +189 -19
  199. package/proto/cline/oca_account.proto +6 -7
  200. package/proto/cline/slash.proto +3 -1
  201. package/proto/cline/state.proto +144 -292
  202. package/proto/cline/task.proto +4 -2
  203. package/proto/cline/ui.proto +25 -24
  204. package/proto/cline/web.proto +3 -1
  205. package/proto/descriptor_set.pb +0 -0
  206. package/proto/host/diff.proto +5 -4
  207. package/proto/host/env.proto +8 -7
  208. package/proto/host/testing.proto +3 -3
  209. package/proto/host/window.proto +2 -2
  210. package/proto/host/workspace.proto +13 -12
  211. package/node_modules/base64-js/README.md +0 -34
  212. package/node_modules/base64-js/base64js.min.js +0 -1
  213. package/node_modules/base64-js/index.d.ts +0 -3
  214. package/node_modules/base64-js/index.js +0 -150
  215. package/node_modules/base64-js/package.json +0 -47
  216. package/node_modules/better-sqlite3/src/better_sqlite3.hpp +0 -1036
  217. package/node_modules/bl/.travis.yml +0 -17
  218. package/node_modules/bl/BufferList.js +0 -396
  219. package/node_modules/bl/LICENSE.md +0 -13
  220. package/node_modules/bl/README.md +0 -247
  221. package/node_modules/bl/bl.js +0 -84
  222. package/node_modules/bl/package.json +0 -37
  223. package/node_modules/bl/test/convert.js +0 -21
  224. package/node_modules/bl/test/indexOf.js +0 -492
  225. package/node_modules/bl/test/isBufferList.js +0 -32
  226. package/node_modules/bl/test/test.js +0 -869
  227. package/node_modules/buffer/AUTHORS.md +0 -70
  228. package/node_modules/buffer/LICENSE +0 -21
  229. package/node_modules/buffer/README.md +0 -410
  230. package/node_modules/buffer/index.d.ts +0 -186
  231. package/node_modules/buffer/index.js +0 -1817
  232. package/node_modules/buffer/package.json +0 -96
  233. package/node_modules/chownr/LICENSE +0 -15
  234. package/node_modules/chownr/README.md +0 -3
  235. package/node_modules/chownr/chownr.js +0 -167
  236. package/node_modules/chownr/package.json +0 -29
  237. package/node_modules/fs-constants/README.md +0 -26
  238. package/node_modules/fs-constants/browser.js +0 -1
  239. package/node_modules/fs-constants/index.js +0 -1
  240. package/node_modules/fs-constants/package.json +0 -19
  241. package/node_modules/ieee754/LICENSE +0 -11
  242. package/node_modules/ieee754/README.md +0 -51
  243. package/node_modules/ieee754/index.d.ts +0 -10
  244. package/node_modules/ieee754/index.js +0 -85
  245. package/node_modules/ieee754/package.json +0 -52
  246. package/node_modules/inherits/LICENSE +0 -16
  247. package/node_modules/inherits/README.md +0 -42
  248. package/node_modules/inherits/inherits.js +0 -9
  249. package/node_modules/inherits/inherits_browser.js +0 -27
  250. package/node_modules/inherits/package.json +0 -29
  251. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  252. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  253. package/node_modules/readable-stream/LICENSE +0 -47
  254. package/node_modules/readable-stream/README.md +0 -106
  255. package/node_modules/readable-stream/errors-browser.js +0 -127
  256. package/node_modules/readable-stream/errors.js +0 -116
  257. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  258. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  259. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  260. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  261. package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  262. package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  263. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  264. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  265. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  266. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  267. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  268. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  269. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  270. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  271. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  272. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  273. package/node_modules/readable-stream/package.json +0 -68
  274. package/node_modules/readable-stream/readable-browser.js +0 -9
  275. package/node_modules/readable-stream/readable.js +0 -16
  276. package/node_modules/string_decoder/LICENSE +0 -48
  277. package/node_modules/string_decoder/README.md +0 -47
  278. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  279. package/node_modules/string_decoder/package.json +0 -34
  280. package/node_modules/tar-fs/.travis.yml +0 -6
  281. package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  282. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  283. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  284. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  285. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  286. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  287. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  288. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  289. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  290. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  291. package/node_modules/tar-fs/test/index.js +0 -346
  292. package/node_modules/tar-stream/sandbox.js +0 -11
  293. package/node_modules/util-deprecate/History.md +0 -16
  294. package/node_modules/util-deprecate/LICENSE +0 -24
  295. package/node_modules/util-deprecate/README.md +0 -53
  296. package/node_modules/util-deprecate/browser.js +0 -67
  297. package/node_modules/util-deprecate/node.js +0 -6
  298. package/node_modules/util-deprecate/package.json +0 -27
  299. package/test-startup.sh +0 -14
@@ -1,96 +0,0 @@
1
- {
2
- "name": "buffer",
3
- "description": "Node.js Buffer API, for the browser",
4
- "version": "5.7.1",
5
- "author": {
6
- "name": "Feross Aboukhadijeh",
7
- "email": "feross@feross.org",
8
- "url": "https://feross.org"
9
- },
10
- "bugs": {
11
- "url": "https://github.com/feross/buffer/issues"
12
- },
13
- "contributors": [
14
- "Romain Beauxis <toots@rastageeks.org>",
15
- "James Halliday <mail@substack.net>"
16
- ],
17
- "dependencies": {
18
- "base64-js": "^1.3.1",
19
- "ieee754": "^1.1.13"
20
- },
21
- "devDependencies": {
22
- "airtap": "^3.0.0",
23
- "benchmark": "^2.1.4",
24
- "browserify": "^17.0.0",
25
- "concat-stream": "^2.0.0",
26
- "hyperquest": "^2.1.3",
27
- "is-buffer": "^2.0.4",
28
- "is-nan": "^1.3.0",
29
- "split": "^1.0.1",
30
- "standard": "*",
31
- "tape": "^5.0.1",
32
- "through2": "^4.0.2",
33
- "uglify-js": "^3.11.3"
34
- },
35
- "homepage": "https://github.com/feross/buffer",
36
- "jspm": {
37
- "map": {
38
- "./index.js": {
39
- "node": "@node/buffer"
40
- }
41
- }
42
- },
43
- "keywords": [
44
- "arraybuffer",
45
- "browser",
46
- "browserify",
47
- "buffer",
48
- "compatible",
49
- "dataview",
50
- "uint8array"
51
- ],
52
- "license": "MIT",
53
- "main": "index.js",
54
- "types": "index.d.ts",
55
- "repository": {
56
- "type": "git",
57
- "url": "git://github.com/feross/buffer.git"
58
- },
59
- "scripts": {
60
- "perf": "browserify --debug perf/bracket-notation.js > perf/bundle.js && open perf/index.html",
61
- "perf-node": "node perf/bracket-notation.js && node perf/concat.js && node perf/copy-big.js && node perf/copy.js && node perf/new-big.js && node perf/new.js && node perf/readDoubleBE.js && node perf/readFloatBE.js && node perf/readUInt32LE.js && node perf/slice.js && node perf/writeFloatBE.js",
62
- "size": "browserify -r ./ | uglifyjs -c -m | gzip | wc -c",
63
- "test": "standard && node ./bin/test.js",
64
- "test-browser-es5": "airtap -- test/*.js",
65
- "test-browser-es5-local": "airtap --local -- test/*.js",
66
- "test-browser-es6": "airtap -- test/*.js test/node/*.js",
67
- "test-browser-es6-local": "airtap --local -- test/*.js test/node/*.js",
68
- "test-node": "tape test/*.js test/node/*.js",
69
- "update-authors": "./bin/update-authors.sh"
70
- },
71
- "standard": {
72
- "ignore": [
73
- "test/node/**/*.js",
74
- "test/common.js",
75
- "test/_polyfill.js",
76
- "perf/**/*.js"
77
- ],
78
- "globals": [
79
- "SharedArrayBuffer"
80
- ]
81
- },
82
- "funding": [
83
- {
84
- "type": "github",
85
- "url": "https://github.com/sponsors/feross"
86
- },
87
- {
88
- "type": "patreon",
89
- "url": "https://www.patreon.com/feross"
90
- },
91
- {
92
- "type": "consulting",
93
- "url": "https://feross.org/support"
94
- }
95
- ]
96
- }
@@ -1,15 +0,0 @@
1
- The ISC License
2
-
3
- Copyright (c) Isaac Z. Schlueter and Contributors
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,3 +0,0 @@
1
- Like `chown -R`.
2
-
3
- Takes the same arguments as `fs.chown()`
@@ -1,167 +0,0 @@
1
- 'use strict'
2
- const fs = require('fs')
3
- const path = require('path')
4
-
5
- /* istanbul ignore next */
6
- const LCHOWN = fs.lchown ? 'lchown' : 'chown'
7
- /* istanbul ignore next */
8
- const LCHOWNSYNC = fs.lchownSync ? 'lchownSync' : 'chownSync'
9
-
10
- /* istanbul ignore next */
11
- const needEISDIRHandled = fs.lchown &&
12
- !process.version.match(/v1[1-9]+\./) &&
13
- !process.version.match(/v10\.[6-9]/)
14
-
15
- const lchownSync = (path, uid, gid) => {
16
- try {
17
- return fs[LCHOWNSYNC](path, uid, gid)
18
- } catch (er) {
19
- if (er.code !== 'ENOENT')
20
- throw er
21
- }
22
- }
23
-
24
- /* istanbul ignore next */
25
- const chownSync = (path, uid, gid) => {
26
- try {
27
- return fs.chownSync(path, uid, gid)
28
- } catch (er) {
29
- if (er.code !== 'ENOENT')
30
- throw er
31
- }
32
- }
33
-
34
- /* istanbul ignore next */
35
- const handleEISDIR =
36
- needEISDIRHandled ? (path, uid, gid, cb) => er => {
37
- // Node prior to v10 had a very questionable implementation of
38
- // fs.lchown, which would always try to call fs.open on a directory
39
- // Fall back to fs.chown in those cases.
40
- if (!er || er.code !== 'EISDIR')
41
- cb(er)
42
- else
43
- fs.chown(path, uid, gid, cb)
44
- }
45
- : (_, __, ___, cb) => cb
46
-
47
- /* istanbul ignore next */
48
- const handleEISDirSync =
49
- needEISDIRHandled ? (path, uid, gid) => {
50
- try {
51
- return lchownSync(path, uid, gid)
52
- } catch (er) {
53
- if (er.code !== 'EISDIR')
54
- throw er
55
- chownSync(path, uid, gid)
56
- }
57
- }
58
- : (path, uid, gid) => lchownSync(path, uid, gid)
59
-
60
- // fs.readdir could only accept an options object as of node v6
61
- const nodeVersion = process.version
62
- let readdir = (path, options, cb) => fs.readdir(path, options, cb)
63
- let readdirSync = (path, options) => fs.readdirSync(path, options)
64
- /* istanbul ignore next */
65
- if (/^v4\./.test(nodeVersion))
66
- readdir = (path, options, cb) => fs.readdir(path, cb)
67
-
68
- const chown = (cpath, uid, gid, cb) => {
69
- fs[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, er => {
70
- // Skip ENOENT error
71
- cb(er && er.code !== 'ENOENT' ? er : null)
72
- }))
73
- }
74
-
75
- const chownrKid = (p, child, uid, gid, cb) => {
76
- if (typeof child === 'string')
77
- return fs.lstat(path.resolve(p, child), (er, stats) => {
78
- // Skip ENOENT error
79
- if (er)
80
- return cb(er.code !== 'ENOENT' ? er : null)
81
- stats.name = child
82
- chownrKid(p, stats, uid, gid, cb)
83
- })
84
-
85
- if (child.isDirectory()) {
86
- chownr(path.resolve(p, child.name), uid, gid, er => {
87
- if (er)
88
- return cb(er)
89
- const cpath = path.resolve(p, child.name)
90
- chown(cpath, uid, gid, cb)
91
- })
92
- } else {
93
- const cpath = path.resolve(p, child.name)
94
- chown(cpath, uid, gid, cb)
95
- }
96
- }
97
-
98
-
99
- const chownr = (p, uid, gid, cb) => {
100
- readdir(p, { withFileTypes: true }, (er, children) => {
101
- // any error other than ENOTDIR or ENOTSUP means it's not readable,
102
- // or doesn't exist. give up.
103
- if (er) {
104
- if (er.code === 'ENOENT')
105
- return cb()
106
- else if (er.code !== 'ENOTDIR' && er.code !== 'ENOTSUP')
107
- return cb(er)
108
- }
109
- if (er || !children.length)
110
- return chown(p, uid, gid, cb)
111
-
112
- let len = children.length
113
- let errState = null
114
- const then = er => {
115
- if (errState)
116
- return
117
- if (er)
118
- return cb(errState = er)
119
- if (-- len === 0)
120
- return chown(p, uid, gid, cb)
121
- }
122
-
123
- children.forEach(child => chownrKid(p, child, uid, gid, then))
124
- })
125
- }
126
-
127
- const chownrKidSync = (p, child, uid, gid) => {
128
- if (typeof child === 'string') {
129
- try {
130
- const stats = fs.lstatSync(path.resolve(p, child))
131
- stats.name = child
132
- child = stats
133
- } catch (er) {
134
- if (er.code === 'ENOENT')
135
- return
136
- else
137
- throw er
138
- }
139
- }
140
-
141
- if (child.isDirectory())
142
- chownrSync(path.resolve(p, child.name), uid, gid)
143
-
144
- handleEISDirSync(path.resolve(p, child.name), uid, gid)
145
- }
146
-
147
- const chownrSync = (p, uid, gid) => {
148
- let children
149
- try {
150
- children = readdirSync(p, { withFileTypes: true })
151
- } catch (er) {
152
- if (er.code === 'ENOENT')
153
- return
154
- else if (er.code === 'ENOTDIR' || er.code === 'ENOTSUP')
155
- return handleEISDirSync(p, uid, gid)
156
- else
157
- throw er
158
- }
159
-
160
- if (children && children.length)
161
- children.forEach(child => chownrKidSync(p, child, uid, gid))
162
-
163
- return handleEISDirSync(p, uid, gid)
164
- }
165
-
166
- module.exports = chownr
167
- chownr.sync = chownrSync
@@ -1,29 +0,0 @@
1
- {
2
- "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
3
- "name": "chownr",
4
- "description": "like `chown -R`",
5
- "version": "1.1.4",
6
- "repository": {
7
- "type": "git",
8
- "url": "git://github.com/isaacs/chownr.git"
9
- },
10
- "main": "chownr.js",
11
- "files": [
12
- "chownr.js"
13
- ],
14
- "devDependencies": {
15
- "mkdirp": "0.3",
16
- "rimraf": "^2.7.1",
17
- "tap": "^14.10.6"
18
- },
19
- "tap": {
20
- "check-coverage": true
21
- },
22
- "scripts": {
23
- "test": "tap",
24
- "preversion": "npm test",
25
- "postversion": "npm publish",
26
- "prepublishOnly": "git push origin --follow-tags"
27
- },
28
- "license": "ISC"
29
- }
@@ -1,26 +0,0 @@
1
- # fs-constants
2
-
3
- Small module that allows you to get the fs constants across
4
- Node and the browser.
5
-
6
- ```
7
- npm install fs-constants
8
- ```
9
-
10
- Previously you would use `require('constants')` for this in node but that has been
11
- deprecated and changed to `require('fs').constants` which does not browserify.
12
-
13
- This module uses `require('constants')` in the browser and `require('fs').constants` in node to work around this
14
-
15
-
16
- ## Usage
17
-
18
- ``` js
19
- var constants = require('fs-constants')
20
-
21
- console.log('constants:', constants)
22
- ```
23
-
24
- ## License
25
-
26
- MIT
@@ -1 +0,0 @@
1
- module.exports = require('constants')
@@ -1 +0,0 @@
1
- module.exports = require('fs').constants || require('constants')
@@ -1,19 +0,0 @@
1
- {
2
- "name": "fs-constants",
3
- "version": "1.0.0",
4
- "description": "Require constants across node and the browser",
5
- "main": "index.js",
6
- "browser": "browser.js",
7
- "dependencies": {},
8
- "devDependencies": {},
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/mafintosh/fs-constants.git"
12
- },
13
- "author": "Mathias Buus (@mafintosh)",
14
- "license": "MIT",
15
- "bugs": {
16
- "url": "https://github.com/mafintosh/fs-constants/issues"
17
- },
18
- "homepage": "https://github.com/mafintosh/fs-constants"
19
- }
@@ -1,11 +0,0 @@
1
- Copyright 2008 Fair Oaks Labs, Inc.
2
-
3
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
-
5
- 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
-
7
- 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
-
9
- 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
-
11
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,51 +0,0 @@
1
- # ieee754 [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
2
-
3
- [travis-image]: https://img.shields.io/travis/feross/ieee754/master.svg
4
- [travis-url]: https://travis-ci.org/feross/ieee754
5
- [npm-image]: https://img.shields.io/npm/v/ieee754.svg
6
- [npm-url]: https://npmjs.org/package/ieee754
7
- [downloads-image]: https://img.shields.io/npm/dm/ieee754.svg
8
- [downloads-url]: https://npmjs.org/package/ieee754
9
- [standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
10
- [standard-url]: https://standardjs.com
11
-
12
- [![saucelabs][saucelabs-image]][saucelabs-url]
13
-
14
- [saucelabs-image]: https://saucelabs.com/browser-matrix/ieee754.svg
15
- [saucelabs-url]: https://saucelabs.com/u/ieee754
16
-
17
- ### Read/write IEEE754 floating point numbers from/to a Buffer or array-like object.
18
-
19
- ## install
20
-
21
- ```
22
- npm install ieee754
23
- ```
24
-
25
- ## methods
26
-
27
- `var ieee754 = require('ieee754')`
28
-
29
- The `ieee754` object has the following functions:
30
-
31
- ```
32
- ieee754.read = function (buffer, offset, isLE, mLen, nBytes)
33
- ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes)
34
- ```
35
-
36
- The arguments mean the following:
37
-
38
- - buffer = the buffer
39
- - offset = offset into the buffer
40
- - value = value to set (only for `write`)
41
- - isLe = is little endian?
42
- - mLen = mantissa length
43
- - nBytes = number of bytes
44
-
45
- ## what is ieee754?
46
-
47
- The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation. [Read more](http://en.wikipedia.org/wiki/IEEE_floating_point).
48
-
49
- ## license
50
-
51
- BSD 3 Clause. Copyright (c) 2008, Fair Oaks Labs, Inc.
@@ -1,10 +0,0 @@
1
- declare namespace ieee754 {
2
- export function read(
3
- buffer: Uint8Array, offset: number, isLE: boolean, mLen: number,
4
- nBytes: number): number;
5
- export function write(
6
- buffer: Uint8Array, value: number, offset: number, isLE: boolean,
7
- mLen: number, nBytes: number): void;
8
- }
9
-
10
- export = ieee754;
@@ -1,85 +0,0 @@
1
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2
- exports.read = function (buffer, offset, isLE, mLen, nBytes) {
3
- var e, m
4
- var eLen = (nBytes * 8) - mLen - 1
5
- var eMax = (1 << eLen) - 1
6
- var eBias = eMax >> 1
7
- var nBits = -7
8
- var i = isLE ? (nBytes - 1) : 0
9
- var d = isLE ? -1 : 1
10
- var s = buffer[offset + i]
11
-
12
- i += d
13
-
14
- e = s & ((1 << (-nBits)) - 1)
15
- s >>= (-nBits)
16
- nBits += eLen
17
- for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
18
-
19
- m = e & ((1 << (-nBits)) - 1)
20
- e >>= (-nBits)
21
- nBits += mLen
22
- for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
23
-
24
- if (e === 0) {
25
- e = 1 - eBias
26
- } else if (e === eMax) {
27
- return m ? NaN : ((s ? -1 : 1) * Infinity)
28
- } else {
29
- m = m + Math.pow(2, mLen)
30
- e = e - eBias
31
- }
32
- return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
33
- }
34
-
35
- exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
36
- var e, m, c
37
- var eLen = (nBytes * 8) - mLen - 1
38
- var eMax = (1 << eLen) - 1
39
- var eBias = eMax >> 1
40
- var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
41
- var i = isLE ? 0 : (nBytes - 1)
42
- var d = isLE ? 1 : -1
43
- var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
44
-
45
- value = Math.abs(value)
46
-
47
- if (isNaN(value) || value === Infinity) {
48
- m = isNaN(value) ? 1 : 0
49
- e = eMax
50
- } else {
51
- e = Math.floor(Math.log(value) / Math.LN2)
52
- if (value * (c = Math.pow(2, -e)) < 1) {
53
- e--
54
- c *= 2
55
- }
56
- if (e + eBias >= 1) {
57
- value += rt / c
58
- } else {
59
- value += rt * Math.pow(2, 1 - eBias)
60
- }
61
- if (value * c >= 2) {
62
- e++
63
- c /= 2
64
- }
65
-
66
- if (e + eBias >= eMax) {
67
- m = 0
68
- e = eMax
69
- } else if (e + eBias >= 1) {
70
- m = ((value * c) - 1) * Math.pow(2, mLen)
71
- e = e + eBias
72
- } else {
73
- m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
74
- e = 0
75
- }
76
- }
77
-
78
- for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
79
-
80
- e = (e << mLen) | m
81
- eLen += mLen
82
- for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
83
-
84
- buffer[offset + i - d] |= s * 128
85
- }
@@ -1,52 +0,0 @@
1
- {
2
- "name": "ieee754",
3
- "description": "Read/write IEEE754 floating point numbers from/to a Buffer or array-like object",
4
- "version": "1.2.1",
5
- "author": {
6
- "name": "Feross Aboukhadijeh",
7
- "email": "feross@feross.org",
8
- "url": "https://feross.org"
9
- },
10
- "contributors": [
11
- "Romain Beauxis <toots@rastageeks.org>"
12
- ],
13
- "devDependencies": {
14
- "airtap": "^3.0.0",
15
- "standard": "*",
16
- "tape": "^5.0.1"
17
- },
18
- "keywords": [
19
- "IEEE 754",
20
- "buffer",
21
- "convert",
22
- "floating point",
23
- "ieee754"
24
- ],
25
- "license": "BSD-3-Clause",
26
- "main": "index.js",
27
- "types": "index.d.ts",
28
- "repository": {
29
- "type": "git",
30
- "url": "git://github.com/feross/ieee754.git"
31
- },
32
- "scripts": {
33
- "test": "standard && npm run test-node && npm run test-browser",
34
- "test-browser": "airtap -- test/*.js",
35
- "test-browser-local": "airtap --local -- test/*.js",
36
- "test-node": "tape test/*.js"
37
- },
38
- "funding": [
39
- {
40
- "type": "github",
41
- "url": "https://github.com/sponsors/feross"
42
- },
43
- {
44
- "type": "patreon",
45
- "url": "https://www.patreon.com/feross"
46
- },
47
- {
48
- "type": "consulting",
49
- "url": "https://feross.org/support"
50
- }
51
- ]
52
- }
@@ -1,16 +0,0 @@
1
- The ISC License
2
-
3
- Copyright (c) Isaac Z. Schlueter
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11
- FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
- PERFORMANCE OF THIS SOFTWARE.
16
-
@@ -1,42 +0,0 @@
1
- Browser-friendly inheritance fully compatible with standard node.js
2
- [inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
3
-
4
- This package exports standard `inherits` from node.js `util` module in
5
- node environment, but also provides alternative browser-friendly
6
- implementation through [browser
7
- field](https://gist.github.com/shtylman/4339901). Alternative
8
- implementation is a literal copy of standard one located in standalone
9
- module to avoid requiring of `util`. It also has a shim for old
10
- browsers with no `Object.create` support.
11
-
12
- While keeping you sure you are using standard `inherits`
13
- implementation in node.js environment, it allows bundlers such as
14
- [browserify](https://github.com/substack/node-browserify) to not
15
- include full `util` package to your client code if all you need is
16
- just `inherits` function. It worth, because browser shim for `util`
17
- package is large and `inherits` is often the single function you need
18
- from it.
19
-
20
- It's recommended to use this package instead of
21
- `require('util').inherits` for any code that has chances to be used
22
- not only in node.js but in browser too.
23
-
24
- ## usage
25
-
26
- ```js
27
- var inherits = require('inherits');
28
- // then use exactly as the standard one
29
- ```
30
-
31
- ## note on version ~1.0
32
-
33
- Version ~1.0 had completely different motivation and is not compatible
34
- neither with 2.0 nor with standard node.js `inherits`.
35
-
36
- If you are using version ~1.0 and planning to switch to ~2.0, be
37
- careful:
38
-
39
- * new version uses `super_` instead of `super` for referencing
40
- superclass
41
- * new version overwrites current prototype while old one preserves any
42
- existing fields on it
@@ -1,9 +0,0 @@
1
- try {
2
- var util = require('util');
3
- /* istanbul ignore next */
4
- if (typeof util.inherits !== 'function') throw '';
5
- module.exports = util.inherits;
6
- } catch (e) {
7
- /* istanbul ignore next */
8
- module.exports = require('./inherits_browser.js');
9
- }
@@ -1,27 +0,0 @@
1
- if (typeof Object.create === 'function') {
2
- // implementation from standard node.js 'util' module
3
- module.exports = function inherits(ctor, superCtor) {
4
- if (superCtor) {
5
- ctor.super_ = superCtor
6
- ctor.prototype = Object.create(superCtor.prototype, {
7
- constructor: {
8
- value: ctor,
9
- enumerable: false,
10
- writable: true,
11
- configurable: true
12
- }
13
- })
14
- }
15
- };
16
- } else {
17
- // old school shim for old browsers
18
- module.exports = function inherits(ctor, superCtor) {
19
- if (superCtor) {
20
- ctor.super_ = superCtor
21
- var TempCtor = function () {}
22
- TempCtor.prototype = superCtor.prototype
23
- ctor.prototype = new TempCtor()
24
- ctor.prototype.constructor = ctor
25
- }
26
- }
27
- }