@vibedeckx/darwin-arm64 0.1.22 → 0.1.23

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 (354) hide show
  1. package/dist/bin.js +1 -0
  2. package/dist/ui/404/index.html +1 -1
  3. package/dist/ui/404.html +1 -1
  4. package/dist/ui/__next.__PAGE__.txt +2 -2
  5. package/dist/ui/__next._full.txt +2 -2
  6. package/dist/ui/__next._head.txt +1 -1
  7. package/dist/ui/__next._index.txt +1 -1
  8. package/dist/ui/__next._tree.txt +1 -1
  9. package/dist/ui/_next/static/chunks/{adfe7f92bed81cd8.js → 9393cbbff01bb58d.js} +1 -1
  10. package/dist/ui/_not-found/__next._full.txt +1 -1
  11. package/dist/ui/_not-found/__next._head.txt +1 -1
  12. package/dist/ui/_not-found/__next._index.txt +1 -1
  13. package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
  14. package/dist/ui/_not-found/__next._not-found.txt +1 -1
  15. package/dist/ui/_not-found/__next._tree.txt +1 -1
  16. package/dist/ui/_not-found/index.html +1 -1
  17. package/dist/ui/_not-found/index.txt +1 -1
  18. package/dist/ui/index.html +1 -1
  19. package/dist/ui/index.txt +2 -2
  20. package/node_modules/better-sqlite3/package.json +0 -4
  21. package/node_modules/node-pty/package.json +0 -3
  22. package/package.json +3 -2
  23. package/dist/bin.js.map +0 -7
  24. package/node_modules/base64-js/LICENSE +0 -21
  25. package/node_modules/base64-js/README.md +0 -34
  26. package/node_modules/base64-js/base64js.min.js +0 -1
  27. package/node_modules/base64-js/index.d.ts +0 -3
  28. package/node_modules/base64-js/index.js +0 -150
  29. package/node_modules/base64-js/package.json +0 -47
  30. package/node_modules/bindings/LICENSE.md +0 -22
  31. package/node_modules/bindings/README.md +0 -98
  32. package/node_modules/bindings/bindings.js +0 -221
  33. package/node_modules/bindings/package.json +0 -28
  34. package/node_modules/bl/BufferList.js +0 -396
  35. package/node_modules/bl/LICENSE.md +0 -13
  36. package/node_modules/bl/README.md +0 -247
  37. package/node_modules/bl/bl.js +0 -84
  38. package/node_modules/bl/package.json +0 -37
  39. package/node_modules/bl/test/convert.js +0 -21
  40. package/node_modules/bl/test/indexOf.js +0 -492
  41. package/node_modules/bl/test/isBufferList.js +0 -32
  42. package/node_modules/bl/test/test.js +0 -869
  43. package/node_modules/buffer/AUTHORS.md +0 -70
  44. package/node_modules/buffer/LICENSE +0 -21
  45. package/node_modules/buffer/README.md +0 -410
  46. package/node_modules/buffer/index.d.ts +0 -186
  47. package/node_modules/buffer/index.js +0 -1817
  48. package/node_modules/buffer/package.json +0 -96
  49. package/node_modules/chownr/LICENSE +0 -15
  50. package/node_modules/chownr/README.md +0 -3
  51. package/node_modules/chownr/chownr.js +0 -167
  52. package/node_modules/chownr/package.json +0 -29
  53. package/node_modules/decompress-response/index.d.ts +0 -22
  54. package/node_modules/decompress-response/index.js +0 -58
  55. package/node_modules/decompress-response/license +0 -9
  56. package/node_modules/decompress-response/package.json +0 -56
  57. package/node_modules/decompress-response/readme.md +0 -48
  58. package/node_modules/deep-extend/LICENSE +0 -20
  59. package/node_modules/deep-extend/README.md +0 -91
  60. package/node_modules/deep-extend/index.js +0 -1
  61. package/node_modules/deep-extend/lib/deep-extend.js +0 -150
  62. package/node_modules/deep-extend/package.json +0 -62
  63. package/node_modules/detect-libc/LICENSE +0 -201
  64. package/node_modules/detect-libc/README.md +0 -163
  65. package/node_modules/detect-libc/index.d.ts +0 -14
  66. package/node_modules/detect-libc/lib/detect-libc.js +0 -313
  67. package/node_modules/detect-libc/lib/elf.js +0 -39
  68. package/node_modules/detect-libc/lib/filesystem.js +0 -51
  69. package/node_modules/detect-libc/lib/process.js +0 -24
  70. package/node_modules/detect-libc/package.json +0 -44
  71. package/node_modules/end-of-stream/LICENSE +0 -21
  72. package/node_modules/end-of-stream/README.md +0 -54
  73. package/node_modules/end-of-stream/index.js +0 -96
  74. package/node_modules/end-of-stream/package.json +0 -37
  75. package/node_modules/expand-template/LICENSE +0 -21
  76. package/node_modules/expand-template/README.md +0 -43
  77. package/node_modules/expand-template/index.js +0 -26
  78. package/node_modules/expand-template/package.json +0 -29
  79. package/node_modules/expand-template/test.js +0 -67
  80. package/node_modules/file-uri-to-path/History.md +0 -21
  81. package/node_modules/file-uri-to-path/LICENSE +0 -20
  82. package/node_modules/file-uri-to-path/README.md +0 -74
  83. package/node_modules/file-uri-to-path/index.d.ts +0 -2
  84. package/node_modules/file-uri-to-path/index.js +0 -66
  85. package/node_modules/file-uri-to-path/package.json +0 -32
  86. package/node_modules/file-uri-to-path/test/test.js +0 -24
  87. package/node_modules/file-uri-to-path/test/tests.json +0 -13
  88. package/node_modules/fs-constants/LICENSE +0 -21
  89. package/node_modules/fs-constants/README.md +0 -26
  90. package/node_modules/fs-constants/browser.js +0 -1
  91. package/node_modules/fs-constants/index.js +0 -1
  92. package/node_modules/fs-constants/package.json +0 -19
  93. package/node_modules/github-from-package/LICENSE +0 -18
  94. package/node_modules/github-from-package/example/package.json +0 -8
  95. package/node_modules/github-from-package/example/url.js +0 -3
  96. package/node_modules/github-from-package/index.js +0 -17
  97. package/node_modules/github-from-package/package.json +0 -30
  98. package/node_modules/github-from-package/readme.markdown +0 -53
  99. package/node_modules/github-from-package/test/a.json +0 -8
  100. package/node_modules/github-from-package/test/b.json +0 -5
  101. package/node_modules/github-from-package/test/c.json +0 -5
  102. package/node_modules/github-from-package/test/d.json +0 -7
  103. package/node_modules/github-from-package/test/e.json +0 -5
  104. package/node_modules/github-from-package/test/url.js +0 -19
  105. package/node_modules/ieee754/LICENSE +0 -11
  106. package/node_modules/ieee754/README.md +0 -51
  107. package/node_modules/ieee754/index.d.ts +0 -10
  108. package/node_modules/ieee754/index.js +0 -85
  109. package/node_modules/ieee754/package.json +0 -52
  110. package/node_modules/inherits/LICENSE +0 -16
  111. package/node_modules/inherits/README.md +0 -42
  112. package/node_modules/inherits/inherits.js +0 -9
  113. package/node_modules/inherits/inherits_browser.js +0 -27
  114. package/node_modules/inherits/package.json +0 -29
  115. package/node_modules/ini/LICENSE +0 -15
  116. package/node_modules/ini/README.md +0 -102
  117. package/node_modules/ini/ini.js +0 -206
  118. package/node_modules/ini/package.json +0 -33
  119. package/node_modules/mimic-response/index.d.ts +0 -17
  120. package/node_modules/mimic-response/index.js +0 -77
  121. package/node_modules/mimic-response/license +0 -9
  122. package/node_modules/mimic-response/package.json +0 -42
  123. package/node_modules/mimic-response/readme.md +0 -78
  124. package/node_modules/minimist/CHANGELOG.md +0 -298
  125. package/node_modules/minimist/LICENSE +0 -18
  126. package/node_modules/minimist/README.md +0 -121
  127. package/node_modules/minimist/example/parse.js +0 -4
  128. package/node_modules/minimist/index.js +0 -263
  129. package/node_modules/minimist/package.json +0 -75
  130. package/node_modules/minimist/test/all_bool.js +0 -34
  131. package/node_modules/minimist/test/bool.js +0 -177
  132. package/node_modules/minimist/test/dash.js +0 -43
  133. package/node_modules/minimist/test/default_bool.js +0 -37
  134. package/node_modules/minimist/test/dotted.js +0 -24
  135. package/node_modules/minimist/test/kv_short.js +0 -32
  136. package/node_modules/minimist/test/long.js +0 -33
  137. package/node_modules/minimist/test/num.js +0 -38
  138. package/node_modules/minimist/test/parse.js +0 -209
  139. package/node_modules/minimist/test/parse_modified.js +0 -11
  140. package/node_modules/minimist/test/proto.js +0 -64
  141. package/node_modules/minimist/test/short.js +0 -69
  142. package/node_modules/minimist/test/stop_early.js +0 -17
  143. package/node_modules/minimist/test/unknown.js +0 -104
  144. package/node_modules/minimist/test/whitespace.js +0 -10
  145. package/node_modules/mkdirp-classic/LICENSE +0 -21
  146. package/node_modules/mkdirp-classic/README.md +0 -18
  147. package/node_modules/mkdirp-classic/index.js +0 -98
  148. package/node_modules/mkdirp-classic/package.json +0 -18
  149. package/node_modules/napi-build-utils/LICENSE +0 -21
  150. package/node_modules/napi-build-utils/README.md +0 -52
  151. package/node_modules/napi-build-utils/index.js +0 -214
  152. package/node_modules/napi-build-utils/index.md +0 -0
  153. package/node_modules/napi-build-utils/package.json +0 -42
  154. package/node_modules/node-abi/LICENSE +0 -21
  155. package/node_modules/node-abi/README.md +0 -54
  156. package/node_modules/node-abi/abi_registry.json +0 -439
  157. package/node_modules/node-abi/index.js +0 -179
  158. package/node_modules/node-abi/package.json +0 -45
  159. package/node_modules/node-addon-api/LICENSE.md +0 -9
  160. package/node_modules/node-addon-api/README.md +0 -319
  161. package/node_modules/node-addon-api/common.gypi +0 -20
  162. package/node_modules/node-addon-api/except.gypi +0 -25
  163. package/node_modules/node-addon-api/index.js +0 -12
  164. package/node_modules/node-addon-api/napi-inl.deprecated.h +0 -186
  165. package/node_modules/node-addon-api/napi-inl.h +0 -6607
  166. package/node_modules/node-addon-api/napi.h +0 -3201
  167. package/node_modules/node-addon-api/node_addon_api.gyp +0 -32
  168. package/node_modules/node-addon-api/node_api.gyp +0 -9
  169. package/node_modules/node-addon-api/noexcept.gypi +0 -26
  170. package/node_modules/node-addon-api/nothing.c +0 -0
  171. package/node_modules/node-addon-api/package-support.json +0 -21
  172. package/node_modules/node-addon-api/package.json +0 -480
  173. package/node_modules/node-addon-api/tools/README.md +0 -73
  174. package/node_modules/node-addon-api/tools/check-napi.js +0 -99
  175. package/node_modules/node-addon-api/tools/clang-format.js +0 -71
  176. package/node_modules/node-addon-api/tools/conversion.js +0 -301
  177. package/node_modules/node-addon-api/tools/eslint-format.js +0 -79
  178. package/node_modules/once/LICENSE +0 -15
  179. package/node_modules/once/README.md +0 -79
  180. package/node_modules/once/once.js +0 -42
  181. package/node_modules/once/package.json +0 -33
  182. package/node_modules/prebuild-install/CHANGELOG.md +0 -131
  183. package/node_modules/prebuild-install/CONTRIBUTING.md +0 -6
  184. package/node_modules/prebuild-install/LICENSE +0 -21
  185. package/node_modules/prebuild-install/README.md +0 -163
  186. package/node_modules/prebuild-install/asset.js +0 -44
  187. package/node_modules/prebuild-install/bin.js +0 -78
  188. package/node_modules/prebuild-install/download.js +0 -142
  189. package/node_modules/prebuild-install/error.js +0 -14
  190. package/node_modules/prebuild-install/help.txt +0 -16
  191. package/node_modules/prebuild-install/index.js +0 -1
  192. package/node_modules/prebuild-install/log.js +0 -33
  193. package/node_modules/prebuild-install/package.json +0 -67
  194. package/node_modules/prebuild-install/proxy.js +0 -35
  195. package/node_modules/prebuild-install/rc.js +0 -64
  196. package/node_modules/prebuild-install/util.js +0 -143
  197. package/node_modules/pump/LICENSE +0 -21
  198. package/node_modules/pump/README.md +0 -74
  199. package/node_modules/pump/SECURITY.md +0 -5
  200. package/node_modules/pump/empty.js +0 -1
  201. package/node_modules/pump/index.js +0 -86
  202. package/node_modules/pump/package.json +0 -30
  203. package/node_modules/pump/test-browser.js +0 -66
  204. package/node_modules/pump/test-node.js +0 -53
  205. package/node_modules/rc/LICENSE.APACHE2 +0 -15
  206. package/node_modules/rc/LICENSE.BSD +0 -26
  207. package/node_modules/rc/LICENSE.MIT +0 -24
  208. package/node_modules/rc/README.md +0 -227
  209. package/node_modules/rc/browser.js +0 -7
  210. package/node_modules/rc/cli.js +0 -4
  211. package/node_modules/rc/index.js +0 -53
  212. package/node_modules/rc/lib/utils.js +0 -104
  213. package/node_modules/rc/package.json +0 -29
  214. package/node_modules/rc/test/ini.js +0 -16
  215. package/node_modules/rc/test/nested-env-vars.js +0 -50
  216. package/node_modules/rc/test/test.js +0 -59
  217. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  218. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  219. package/node_modules/readable-stream/LICENSE +0 -47
  220. package/node_modules/readable-stream/README.md +0 -106
  221. package/node_modules/readable-stream/errors-browser.js +0 -127
  222. package/node_modules/readable-stream/errors.js +0 -116
  223. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  224. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  225. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  226. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  227. package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  228. package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  229. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  230. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  231. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  232. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  233. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  234. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  235. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  236. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  237. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  238. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  239. package/node_modules/readable-stream/package.json +0 -68
  240. package/node_modules/readable-stream/readable-browser.js +0 -9
  241. package/node_modules/readable-stream/readable.js +0 -16
  242. package/node_modules/safe-buffer/LICENSE +0 -21
  243. package/node_modules/safe-buffer/README.md +0 -584
  244. package/node_modules/safe-buffer/index.d.ts +0 -187
  245. package/node_modules/safe-buffer/index.js +0 -65
  246. package/node_modules/safe-buffer/package.json +0 -51
  247. package/node_modules/semver/LICENSE +0 -15
  248. package/node_modules/semver/README.md +0 -665
  249. package/node_modules/semver/bin/semver.js +0 -191
  250. package/node_modules/semver/classes/comparator.js +0 -143
  251. package/node_modules/semver/classes/index.js +0 -7
  252. package/node_modules/semver/classes/range.js +0 -557
  253. package/node_modules/semver/classes/semver.js +0 -333
  254. package/node_modules/semver/functions/clean.js +0 -8
  255. package/node_modules/semver/functions/cmp.js +0 -54
  256. package/node_modules/semver/functions/coerce.js +0 -62
  257. package/node_modules/semver/functions/compare-build.js +0 -9
  258. package/node_modules/semver/functions/compare-loose.js +0 -5
  259. package/node_modules/semver/functions/compare.js +0 -7
  260. package/node_modules/semver/functions/diff.js +0 -60
  261. package/node_modules/semver/functions/eq.js +0 -5
  262. package/node_modules/semver/functions/gt.js +0 -5
  263. package/node_modules/semver/functions/gte.js +0 -5
  264. package/node_modules/semver/functions/inc.js +0 -21
  265. package/node_modules/semver/functions/lt.js +0 -5
  266. package/node_modules/semver/functions/lte.js +0 -5
  267. package/node_modules/semver/functions/major.js +0 -5
  268. package/node_modules/semver/functions/minor.js +0 -5
  269. package/node_modules/semver/functions/neq.js +0 -5
  270. package/node_modules/semver/functions/parse.js +0 -18
  271. package/node_modules/semver/functions/patch.js +0 -5
  272. package/node_modules/semver/functions/prerelease.js +0 -8
  273. package/node_modules/semver/functions/rcompare.js +0 -5
  274. package/node_modules/semver/functions/rsort.js +0 -5
  275. package/node_modules/semver/functions/satisfies.js +0 -12
  276. package/node_modules/semver/functions/sort.js +0 -5
  277. package/node_modules/semver/functions/valid.js +0 -8
  278. package/node_modules/semver/index.js +0 -91
  279. package/node_modules/semver/internal/constants.js +0 -37
  280. package/node_modules/semver/internal/debug.js +0 -11
  281. package/node_modules/semver/internal/identifiers.js +0 -29
  282. package/node_modules/semver/internal/lrucache.js +0 -42
  283. package/node_modules/semver/internal/parse-options.js +0 -17
  284. package/node_modules/semver/internal/re.js +0 -223
  285. package/node_modules/semver/package.json +0 -78
  286. package/node_modules/semver/preload.js +0 -4
  287. package/node_modules/semver/range.bnf +0 -16
  288. package/node_modules/semver/ranges/gtr.js +0 -6
  289. package/node_modules/semver/ranges/intersects.js +0 -9
  290. package/node_modules/semver/ranges/ltr.js +0 -6
  291. package/node_modules/semver/ranges/max-satisfying.js +0 -27
  292. package/node_modules/semver/ranges/min-satisfying.js +0 -26
  293. package/node_modules/semver/ranges/min-version.js +0 -63
  294. package/node_modules/semver/ranges/outside.js +0 -82
  295. package/node_modules/semver/ranges/simplify.js +0 -49
  296. package/node_modules/semver/ranges/subset.js +0 -249
  297. package/node_modules/semver/ranges/to-comparators.js +0 -10
  298. package/node_modules/semver/ranges/valid.js +0 -13
  299. package/node_modules/simple-concat/LICENSE +0 -20
  300. package/node_modules/simple-concat/README.md +0 -44
  301. package/node_modules/simple-concat/index.js +0 -15
  302. package/node_modules/simple-concat/package.json +0 -47
  303. package/node_modules/simple-concat/test/basic.js +0 -41
  304. package/node_modules/simple-get/LICENSE +0 -20
  305. package/node_modules/simple-get/README.md +0 -333
  306. package/node_modules/simple-get/index.js +0 -108
  307. package/node_modules/simple-get/package.json +0 -67
  308. package/node_modules/string_decoder/LICENSE +0 -48
  309. package/node_modules/string_decoder/README.md +0 -47
  310. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  311. package/node_modules/string_decoder/package.json +0 -34
  312. package/node_modules/strip-json-comments/index.js +0 -70
  313. package/node_modules/strip-json-comments/license +0 -21
  314. package/node_modules/strip-json-comments/package.json +0 -42
  315. package/node_modules/strip-json-comments/readme.md +0 -64
  316. package/node_modules/tar-fs/LICENSE +0 -21
  317. package/node_modules/tar-fs/README.md +0 -165
  318. package/node_modules/tar-fs/index.js +0 -363
  319. package/node_modules/tar-fs/package.json +0 -41
  320. package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  321. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  322. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  323. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  324. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  325. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  326. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  327. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  328. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  329. package/node_modules/tar-fs/test/index.js +0 -346
  330. package/node_modules/tar-stream/LICENSE +0 -21
  331. package/node_modules/tar-stream/README.md +0 -168
  332. package/node_modules/tar-stream/extract.js +0 -257
  333. package/node_modules/tar-stream/headers.js +0 -295
  334. package/node_modules/tar-stream/index.js +0 -2
  335. package/node_modules/tar-stream/pack.js +0 -255
  336. package/node_modules/tar-stream/package.json +0 -58
  337. package/node_modules/tar-stream/sandbox.js +0 -11
  338. package/node_modules/tunnel-agent/LICENSE +0 -55
  339. package/node_modules/tunnel-agent/README.md +0 -4
  340. package/node_modules/tunnel-agent/index.js +0 -244
  341. package/node_modules/tunnel-agent/package.json +0 -22
  342. package/node_modules/util-deprecate/History.md +0 -16
  343. package/node_modules/util-deprecate/LICENSE +0 -24
  344. package/node_modules/util-deprecate/README.md +0 -53
  345. package/node_modules/util-deprecate/browser.js +0 -67
  346. package/node_modules/util-deprecate/node.js +0 -6
  347. package/node_modules/util-deprecate/package.json +0 -27
  348. package/node_modules/wrappy/LICENSE +0 -15
  349. package/node_modules/wrappy/README.md +0 -36
  350. package/node_modules/wrappy/package.json +0 -29
  351. package/node_modules/wrappy/wrappy.js +0 -33
  352. /package/dist/ui/_next/static/{RRGcvhHfSg9Hi88CSZtgd → _oIkVA-8sboc_20lcPBrb}/_buildManifest.js +0 -0
  353. /package/dist/ui/_next/static/{RRGcvhHfSg9Hi88CSZtgd → _oIkVA-8sboc_20lcPBrb}/_clientMiddlewareManifest.json +0 -0
  354. /package/dist/ui/_next/static/{RRGcvhHfSg9Hi88CSZtgd → _oIkVA-8sboc_20lcPBrb}/_ssgManifest.js +0 -0
@@ -1,21 +0,0 @@
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.
@@ -1,34 +0,0 @@
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
@@ -1 +0,0 @@
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},{}]},{},[])("/")});
@@ -1,3 +0,0 @@
1
- export function byteLength(b64: string): number;
2
- export function toByteArray(b64: string): Uint8Array;
3
- export function fromByteArray(uint8: Uint8Array): string;
@@ -1,150 +0,0 @@
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
- }
@@ -1,47 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- 'Software'), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,98 +0,0 @@
1
- node-bindings
2
- =============
3
- ### Helper module for loading your native module's `.node` file
4
-
5
- This is a helper module for authors of Node.js native addon modules.
6
- It is basically the "swiss army knife" of `require()`ing your native module's
7
- `.node` file.
8
-
9
- Throughout the course of Node's native addon history, addons have ended up being
10
- compiled in a variety of different places, depending on which build tool and which
11
- version of node was used. To make matters worse, now the `gyp` build tool can
12
- produce either a __Release__ or __Debug__ build, each being built into different
13
- locations.
14
-
15
- This module checks _all_ the possible locations that a native addon would be built
16
- at, and returns the first one that loads successfully.
17
-
18
-
19
- Installation
20
- ------------
21
-
22
- Install with `npm`:
23
-
24
- ``` bash
25
- $ npm install --save bindings
26
- ```
27
-
28
- Or add it to the `"dependencies"` section of your `package.json` file.
29
-
30
-
31
- Example
32
- -------
33
-
34
- `require()`ing the proper bindings file for the current node version, platform
35
- and architecture is as simple as:
36
-
37
- ``` js
38
- var bindings = require('bindings')('binding.node')
39
-
40
- // Use your bindings defined in your C files
41
- bindings.your_c_function()
42
- ```
43
-
44
-
45
- Nice Error Output
46
- -----------------
47
-
48
- When the `.node` file could not be loaded, `node-bindings` throws an Error with
49
- a nice error message telling you exactly what was tried. You can also check the
50
- `err.tries` Array property.
51
-
52
- ```
53
- Error: Could not load the bindings file. Tried:
54
- → /Users/nrajlich/ref/build/binding.node
55
- → /Users/nrajlich/ref/build/Debug/binding.node
56
- → /Users/nrajlich/ref/build/Release/binding.node
57
- → /Users/nrajlich/ref/out/Debug/binding.node
58
- → /Users/nrajlich/ref/Debug/binding.node
59
- → /Users/nrajlich/ref/out/Release/binding.node
60
- → /Users/nrajlich/ref/Release/binding.node
61
- → /Users/nrajlich/ref/build/default/binding.node
62
- → /Users/nrajlich/ref/compiled/0.8.2/darwin/x64/binding.node
63
- at bindings (/Users/nrajlich/ref/node_modules/bindings/bindings.js:84:13)
64
- at Object.<anonymous> (/Users/nrajlich/ref/lib/ref.js:5:47)
65
- at Module._compile (module.js:449:26)
66
- at Object.Module._extensions..js (module.js:467:10)
67
- at Module.load (module.js:356:32)
68
- at Function.Module._load (module.js:312:12)
69
- ...
70
- ```
71
-
72
- The searching for the `.node` file will originate from the first directory in which has a `package.json` file is found.
73
-
74
- License
75
- -------
76
-
77
- (The MIT License)
78
-
79
- Copyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
80
-
81
- Permission is hereby granted, free of charge, to any person obtaining
82
- a copy of this software and associated documentation files (the
83
- 'Software'), to deal in the Software without restriction, including
84
- without limitation the rights to use, copy, modify, merge, publish,
85
- distribute, sublicense, and/or sell copies of the Software, and to
86
- permit persons to whom the Software is furnished to do so, subject to
87
- the following conditions:
88
-
89
- The above copyright notice and this permission notice shall be
90
- included in all copies or substantial portions of the Software.
91
-
92
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
93
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
94
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
95
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
96
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
97
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
98
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,221 +0,0 @@
1
- /**
2
- * Module dependencies.
3
- */
4
-
5
- var fs = require('fs'),
6
- path = require('path'),
7
- fileURLToPath = require('file-uri-to-path'),
8
- join = path.join,
9
- dirname = path.dirname,
10
- exists =
11
- (fs.accessSync &&
12
- function(path) {
13
- try {
14
- fs.accessSync(path);
15
- } catch (e) {
16
- return false;
17
- }
18
- return true;
19
- }) ||
20
- fs.existsSync ||
21
- path.existsSync,
22
- defaults = {
23
- arrow: process.env.NODE_BINDINGS_ARROW || ' → ',
24
- compiled: process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled',
25
- platform: process.platform,
26
- arch: process.arch,
27
- nodePreGyp:
28
- 'node-v' +
29
- process.versions.modules +
30
- '-' +
31
- process.platform +
32
- '-' +
33
- process.arch,
34
- version: process.versions.node,
35
- bindings: 'bindings.node',
36
- try: [
37
- // node-gyp's linked version in the "build" dir
38
- ['module_root', 'build', 'bindings'],
39
- // node-waf and gyp_addon (a.k.a node-gyp)
40
- ['module_root', 'build', 'Debug', 'bindings'],
41
- ['module_root', 'build', 'Release', 'bindings'],
42
- // Debug files, for development (legacy behavior, remove for node v0.9)
43
- ['module_root', 'out', 'Debug', 'bindings'],
44
- ['module_root', 'Debug', 'bindings'],
45
- // Release files, but manually compiled (legacy behavior, remove for node v0.9)
46
- ['module_root', 'out', 'Release', 'bindings'],
47
- ['module_root', 'Release', 'bindings'],
48
- // Legacy from node-waf, node <= 0.4.x
49
- ['module_root', 'build', 'default', 'bindings'],
50
- // Production "Release" buildtype binary (meh...)
51
- ['module_root', 'compiled', 'version', 'platform', 'arch', 'bindings'],
52
- // node-qbs builds
53
- ['module_root', 'addon-build', 'release', 'install-root', 'bindings'],
54
- ['module_root', 'addon-build', 'debug', 'install-root', 'bindings'],
55
- ['module_root', 'addon-build', 'default', 'install-root', 'bindings'],
56
- // node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch}
57
- ['module_root', 'lib', 'binding', 'nodePreGyp', 'bindings']
58
- ]
59
- };
60
-
61
- /**
62
- * The main `bindings()` function loads the compiled bindings for a given module.
63
- * It uses V8's Error API to determine the parent filename that this function is
64
- * being invoked from, which is then used to find the root directory.
65
- */
66
-
67
- function bindings(opts) {
68
- // Argument surgery
69
- if (typeof opts == 'string') {
70
- opts = { bindings: opts };
71
- } else if (!opts) {
72
- opts = {};
73
- }
74
-
75
- // maps `defaults` onto `opts` object
76
- Object.keys(defaults).map(function(i) {
77
- if (!(i in opts)) opts[i] = defaults[i];
78
- });
79
-
80
- // Get the module root
81
- if (!opts.module_root) {
82
- opts.module_root = exports.getRoot(exports.getFileName());
83
- }
84
-
85
- // Ensure the given bindings name ends with .node
86
- if (path.extname(opts.bindings) != '.node') {
87
- opts.bindings += '.node';
88
- }
89
-
90
- // https://github.com/webpack/webpack/issues/4175#issuecomment-342931035
91
- var requireFunc =
92
- typeof __webpack_require__ === 'function'
93
- ? __non_webpack_require__
94
- : require;
95
-
96
- var tries = [],
97
- i = 0,
98
- l = opts.try.length,
99
- n,
100
- b,
101
- err;
102
-
103
- for (; i < l; i++) {
104
- n = join.apply(
105
- null,
106
- opts.try[i].map(function(p) {
107
- return opts[p] || p;
108
- })
109
- );
110
- tries.push(n);
111
- try {
112
- b = opts.path ? requireFunc.resolve(n) : requireFunc(n);
113
- if (!opts.path) {
114
- b.path = n;
115
- }
116
- return b;
117
- } catch (e) {
118
- if (e.code !== 'MODULE_NOT_FOUND' &&
119
- e.code !== 'QUALIFIED_PATH_RESOLUTION_FAILED' &&
120
- !/not find/i.test(e.message)) {
121
- throw e;
122
- }
123
- }
124
- }
125
-
126
- err = new Error(
127
- 'Could not locate the bindings file. Tried:\n' +
128
- tries
129
- .map(function(a) {
130
- return opts.arrow + a;
131
- })
132
- .join('\n')
133
- );
134
- err.tries = tries;
135
- throw err;
136
- }
137
- module.exports = exports = bindings;
138
-
139
- /**
140
- * Gets the filename of the JavaScript file that invokes this function.
141
- * Used to help find the root directory of a module.
142
- * Optionally accepts an filename argument to skip when searching for the invoking filename
143
- */
144
-
145
- exports.getFileName = function getFileName(calling_file) {
146
- var origPST = Error.prepareStackTrace,
147
- origSTL = Error.stackTraceLimit,
148
- dummy = {},
149
- fileName;
150
-
151
- Error.stackTraceLimit = 10;
152
-
153
- Error.prepareStackTrace = function(e, st) {
154
- for (var i = 0, l = st.length; i < l; i++) {
155
- fileName = st[i].getFileName();
156
- if (fileName !== __filename) {
157
- if (calling_file) {
158
- if (fileName !== calling_file) {
159
- return;
160
- }
161
- } else {
162
- return;
163
- }
164
- }
165
- }
166
- };
167
-
168
- // run the 'prepareStackTrace' function above
169
- Error.captureStackTrace(dummy);
170
- dummy.stack;
171
-
172
- // cleanup
173
- Error.prepareStackTrace = origPST;
174
- Error.stackTraceLimit = origSTL;
175
-
176
- // handle filename that starts with "file://"
177
- var fileSchema = 'file://';
178
- if (fileName.indexOf(fileSchema) === 0) {
179
- fileName = fileURLToPath(fileName);
180
- }
181
-
182
- return fileName;
183
- };
184
-
185
- /**
186
- * Gets the root directory of a module, given an arbitrary filename
187
- * somewhere in the module tree. The "root directory" is the directory
188
- * containing the `package.json` file.
189
- *
190
- * In: /home/nate/node-native-module/lib/index.js
191
- * Out: /home/nate/node-native-module
192
- */
193
-
194
- exports.getRoot = function getRoot(file) {
195
- var dir = dirname(file),
196
- prev;
197
- while (true) {
198
- if (dir === '.') {
199
- // Avoids an infinite loop in rare cases, like the REPL
200
- dir = process.cwd();
201
- }
202
- if (
203
- exists(join(dir, 'package.json')) ||
204
- exists(join(dir, 'node_modules'))
205
- ) {
206
- // Found the 'package.json' file or 'node_modules' dir; we're done
207
- return dir;
208
- }
209
- if (prev === dir) {
210
- // Got to the top
211
- throw new Error(
212
- 'Could not find module root given file: "' +
213
- file +
214
- '". Do you have a `package.json` file? '
215
- );
216
- }
217
- // Try the parent dir next
218
- prev = dir;
219
- dir = join(dir, '..');
220
- }
221
- };
@@ -1,28 +0,0 @@
1
- {
2
- "name": "bindings",
3
- "description": "Helper module for loading your native module's .node file",
4
- "keywords": [
5
- "native",
6
- "addon",
7
- "bindings",
8
- "gyp",
9
- "waf",
10
- "c",
11
- "c++"
12
- ],
13
- "version": "1.5.0",
14
- "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)",
15
- "repository": {
16
- "type": "git",
17
- "url": "git://github.com/TooTallNate/node-bindings.git"
18
- },
19
- "main": "./bindings.js",
20
- "bugs": {
21
- "url": "https://github.com/TooTallNate/node-bindings/issues"
22
- },
23
- "homepage": "https://github.com/TooTallNate/node-bindings",
24
- "license": "MIT",
25
- "dependencies": {
26
- "file-uri-to-path": "1.0.0"
27
- }
28
- }