cline 1.0.0-nightly.4 → 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.
- package/bin/cline +0 -0
- package/bin/cline-host +0 -0
- package/cline-1.0.0-nightly.5.tgz +0 -0
- package/extension/package.json +512 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/better-sqlite3/LICENSE +21 -0
- package/node_modules/better-sqlite3/README.md +99 -0
- package/node_modules/better-sqlite3/binding.gyp +38 -0
- package/node_modules/better-sqlite3/deps/common.gypi +68 -0
- package/node_modules/better-sqlite3/deps/copy.js +31 -0
- package/node_modules/better-sqlite3/deps/defines.gypi +41 -0
- package/node_modules/better-sqlite3/deps/download.sh +122 -0
- package/node_modules/better-sqlite3/deps/patches/1208.patch +15 -0
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +262875 -0
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +13775 -0
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +723 -0
- package/node_modules/better-sqlite3/deps/sqlite3.gyp +80 -0
- package/node_modules/better-sqlite3/deps/test_extension.c +21 -0
- package/node_modules/better-sqlite3/lib/database.js +90 -0
- package/node_modules/better-sqlite3/lib/index.js +3 -0
- package/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/node_modules/better-sqlite3/lib/util.js +12 -0
- package/node_modules/better-sqlite3/package.json +62 -0
- package/node_modules/better-sqlite3/src/better_sqlite3.cpp +2189 -0
- package/node_modules/better-sqlite3/src/better_sqlite3.hpp +1036 -0
- package/node_modules/bindings/LICENSE.md +22 -0
- package/node_modules/bindings/README.md +98 -0
- package/node_modules/bindings/bindings.js +221 -0
- package/node_modules/bindings/package.json +28 -0
- package/node_modules/bl/.travis.yml +17 -0
- package/node_modules/bl/BufferList.js +396 -0
- package/node_modules/bl/LICENSE.md +13 -0
- package/node_modules/bl/README.md +247 -0
- package/node_modules/bl/bl.js +84 -0
- package/node_modules/bl/package.json +37 -0
- package/node_modules/bl/test/convert.js +21 -0
- package/node_modules/bl/test/indexOf.js +492 -0
- package/node_modules/bl/test/isBufferList.js +32 -0
- package/node_modules/bl/test/test.js +869 -0
- package/node_modules/buffer/AUTHORS.md +70 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +186 -0
- package/node_modules/buffer/index.js +1817 -0
- package/node_modules/buffer/package.json +96 -0
- package/node_modules/chownr/LICENSE +15 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/chownr.js +167 -0
- package/node_modules/chownr/package.json +29 -0
- package/node_modules/decompress-response/index.d.ts +22 -0
- package/node_modules/decompress-response/index.js +58 -0
- package/node_modules/decompress-response/license +9 -0
- package/node_modules/decompress-response/package.json +56 -0
- package/node_modules/decompress-response/readme.md +48 -0
- package/node_modules/deep-extend/LICENSE +20 -0
- package/node_modules/deep-extend/README.md +91 -0
- package/node_modules/deep-extend/index.js +1 -0
- package/node_modules/deep-extend/lib/deep-extend.js +150 -0
- package/node_modules/deep-extend/package.json +62 -0
- package/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/detect-libc/README.md +163 -0
- package/node_modules/detect-libc/index.d.ts +14 -0
- package/node_modules/detect-libc/lib/detect-libc.js +267 -0
- package/node_modules/detect-libc/lib/filesystem.js +41 -0
- package/node_modules/detect-libc/lib/process.js +24 -0
- package/node_modules/detect-libc/package.json +41 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +96 -0
- package/node_modules/end-of-stream/package.json +37 -0
- package/node_modules/expand-template/.travis.yml +6 -0
- package/node_modules/expand-template/LICENSE +21 -0
- package/node_modules/expand-template/README.md +43 -0
- package/node_modules/expand-template/index.js +26 -0
- package/node_modules/expand-template/package.json +29 -0
- package/node_modules/expand-template/test.js +67 -0
- package/node_modules/file-uri-to-path/.npmignore +1 -0
- package/node_modules/file-uri-to-path/.travis.yml +30 -0
- package/node_modules/file-uri-to-path/History.md +21 -0
- package/node_modules/file-uri-to-path/LICENSE +20 -0
- package/node_modules/file-uri-to-path/README.md +74 -0
- package/node_modules/file-uri-to-path/index.d.ts +2 -0
- package/node_modules/file-uri-to-path/index.js +66 -0
- package/node_modules/file-uri-to-path/package.json +32 -0
- package/node_modules/file-uri-to-path/test/test.js +24 -0
- package/node_modules/file-uri-to-path/test/tests.json +13 -0
- package/node_modules/fs-constants/LICENSE +21 -0
- package/node_modules/fs-constants/README.md +26 -0
- package/node_modules/fs-constants/browser.js +1 -0
- package/node_modules/fs-constants/index.js +1 -0
- package/node_modules/fs-constants/package.json +19 -0
- package/node_modules/github-from-package/.travis.yml +4 -0
- package/node_modules/github-from-package/LICENSE +18 -0
- package/node_modules/github-from-package/example/package.json +8 -0
- package/node_modules/github-from-package/example/url.js +3 -0
- package/node_modules/github-from-package/index.js +17 -0
- package/node_modules/github-from-package/package.json +30 -0
- package/node_modules/github-from-package/readme.markdown +53 -0
- package/node_modules/github-from-package/test/a.json +8 -0
- package/node_modules/github-from-package/test/b.json +5 -0
- package/node_modules/github-from-package/test/c.json +5 -0
- package/node_modules/github-from-package/test/d.json +7 -0
- package/node_modules/github-from-package/test/e.json +5 -0
- package/node_modules/github-from-package/test/url.js +19 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/README.md +102 -0
- package/node_modules/ini/ini.js +206 -0
- package/node_modules/ini/package.json +33 -0
- package/node_modules/mimic-response/index.d.ts +17 -0
- package/node_modules/mimic-response/index.js +77 -0
- package/node_modules/mimic-response/license +9 -0
- package/node_modules/mimic-response/package.json +42 -0
- package/node_modules/mimic-response/readme.md +78 -0
- package/node_modules/minimist/.eslintrc +29 -0
- package/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/node_modules/minimist/.nycrc +14 -0
- package/node_modules/minimist/CHANGELOG.md +298 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/README.md +121 -0
- package/node_modules/minimist/example/parse.js +4 -0
- package/node_modules/minimist/index.js +263 -0
- package/node_modules/minimist/package.json +75 -0
- package/node_modules/minimist/test/all_bool.js +34 -0
- package/node_modules/minimist/test/bool.js +177 -0
- package/node_modules/minimist/test/dash.js +43 -0
- package/node_modules/minimist/test/default_bool.js +37 -0
- package/node_modules/minimist/test/dotted.js +24 -0
- package/node_modules/minimist/test/kv_short.js +32 -0
- package/node_modules/minimist/test/long.js +33 -0
- package/node_modules/minimist/test/num.js +38 -0
- package/node_modules/minimist/test/parse.js +209 -0
- package/node_modules/minimist/test/parse_modified.js +11 -0
- package/node_modules/minimist/test/proto.js +64 -0
- package/node_modules/minimist/test/short.js +69 -0
- package/node_modules/minimist/test/stop_early.js +17 -0
- package/node_modules/minimist/test/unknown.js +104 -0
- package/node_modules/minimist/test/whitespace.js +10 -0
- package/node_modules/mkdirp-classic/LICENSE +21 -0
- package/node_modules/mkdirp-classic/README.md +18 -0
- package/node_modules/mkdirp-classic/index.js +98 -0
- package/node_modules/mkdirp-classic/package.json +18 -0
- package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
- package/node_modules/napi-build-utils/LICENSE +21 -0
- package/node_modules/napi-build-utils/README.md +52 -0
- package/node_modules/napi-build-utils/index.js +214 -0
- package/node_modules/napi-build-utils/index.md +0 -0
- package/node_modules/napi-build-utils/package.json +42 -0
- package/node_modules/node-abi/LICENSE +21 -0
- package/node_modules/node-abi/README.md +54 -0
- package/node_modules/node-abi/abi_registry.json +408 -0
- package/node_modules/node-abi/index.js +179 -0
- package/node_modules/node-abi/package.json +45 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/prebuild-install/CHANGELOG.md +131 -0
- package/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
- package/node_modules/prebuild-install/LICENSE +21 -0
- package/node_modules/prebuild-install/README.md +163 -0
- package/node_modules/prebuild-install/asset.js +44 -0
- package/node_modules/prebuild-install/bin.js +78 -0
- package/node_modules/prebuild-install/download.js +142 -0
- package/node_modules/prebuild-install/error.js +14 -0
- package/node_modules/prebuild-install/help.txt +16 -0
- package/node_modules/prebuild-install/index.js +1 -0
- package/node_modules/prebuild-install/log.js +33 -0
- package/node_modules/prebuild-install/package.json +67 -0
- package/node_modules/prebuild-install/proxy.js +35 -0
- package/node_modules/prebuild-install/rc.js +64 -0
- package/node_modules/prebuild-install/util.js +143 -0
- package/node_modules/pump/.github/FUNDING.yml +2 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +74 -0
- package/node_modules/pump/SECURITY.md +5 -0
- package/node_modules/pump/index.js +86 -0
- package/node_modules/pump/package.json +24 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/rc/LICENSE.APACHE2 +15 -0
- package/node_modules/rc/LICENSE.BSD +26 -0
- package/node_modules/rc/LICENSE.MIT +24 -0
- package/node_modules/rc/README.md +227 -0
- package/node_modules/rc/browser.js +7 -0
- package/node_modules/rc/cli.js +4 -0
- package/node_modules/rc/index.js +53 -0
- package/node_modules/rc/lib/utils.js +104 -0
- package/node_modules/rc/package.json +29 -0
- package/node_modules/rc/test/ini.js +16 -0
- package/node_modules/rc/test/nested-env-vars.js +50 -0
- package/node_modules/rc/test/test.js +59 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +106 -0
- package/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +68 -0
- package/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +664 -0
- package/node_modules/semver/bin/semver.js +191 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +556 -0
- package/node_modules/semver/classes/semver.js +319 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +91 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +25 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/simple-concat/.travis.yml +3 -0
- package/node_modules/simple-concat/LICENSE +20 -0
- package/node_modules/simple-concat/README.md +44 -0
- package/node_modules/simple-concat/index.js +15 -0
- package/node_modules/simple-concat/package.json +47 -0
- package/node_modules/simple-concat/test/basic.js +41 -0
- package/node_modules/simple-get/.github/dependabot.yml +15 -0
- package/node_modules/simple-get/.github/workflows/ci.yml +23 -0
- package/node_modules/simple-get/LICENSE +20 -0
- package/node_modules/simple-get/README.md +333 -0
- package/node_modules/simple-get/index.js +108 -0
- package/node_modules/simple-get/package.json +67 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +34 -0
- package/node_modules/strip-json-comments/index.js +70 -0
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +42 -0
- package/node_modules/strip-json-comments/readme.md +64 -0
- package/node_modules/tar-fs/.travis.yml +6 -0
- package/node_modules/tar-fs/LICENSE +21 -0
- package/node_modules/tar-fs/README.md +165 -0
- package/node_modules/tar-fs/index.js +358 -0
- package/node_modules/tar-fs/package.json +41 -0
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
- package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/node_modules/tar-fs/test/index.js +346 -0
- package/node_modules/tar-stream/LICENSE +21 -0
- package/node_modules/tar-stream/README.md +168 -0
- package/node_modules/tar-stream/extract.js +257 -0
- package/node_modules/tar-stream/headers.js +295 -0
- package/node_modules/tar-stream/index.js +2 -0
- package/node_modules/tar-stream/pack.js +255 -0
- package/node_modules/tar-stream/package.json +58 -0
- package/node_modules/tar-stream/sandbox.js +11 -0
- package/node_modules/tunnel-agent/LICENSE +55 -0
- package/node_modules/tunnel-agent/README.md +4 -0
- package/node_modules/tunnel-agent/index.js +244 -0
- package/node_modules/tunnel-agent/package.json +22 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/package.json +2 -6
- package/postinstall.js +0 -117
- /package/{vscode → fake_node_modules/vscode}/enhanced-terminal.js +0 -0
- /package/{vscode → fake_node_modules/vscode}/index.js +0 -0
- /package/{vscode → fake_node_modules/vscode}/package.json +0 -0
- /package/{vscode → fake_node_modules/vscode}/stub-utils.js +0 -0
- /package/{vscode → fake_node_modules/vscode}/vscode-impls.js +0 -0
- /package/{vscode → fake_node_modules/vscode}/vscode-stubs.js +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 James Halliday (mail@substack.net) and Mathias Buus
|
|
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,18 @@
|
|
|
1
|
+
# mkdirp-classic
|
|
2
|
+
|
|
3
|
+
Just a non-deprecated mirror of [mkdirp 0.5.2](https://github.com/substack/node-mkdirp/tree/0.5.1)
|
|
4
|
+
for use in modules where we depend on the non promise interface.
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
npm install mkdirp-classic
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
``` js
|
|
13
|
+
// See the above link
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## License
|
|
17
|
+
|
|
18
|
+
MIT
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var path = require('path');
|
|
2
|
+
var fs = require('fs');
|
|
3
|
+
var _0777 = parseInt('0777', 8);
|
|
4
|
+
|
|
5
|
+
module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
6
|
+
|
|
7
|
+
function mkdirP (p, opts, f, made) {
|
|
8
|
+
if (typeof opts === 'function') {
|
|
9
|
+
f = opts;
|
|
10
|
+
opts = {};
|
|
11
|
+
}
|
|
12
|
+
else if (!opts || typeof opts !== 'object') {
|
|
13
|
+
opts = { mode: opts };
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
var mode = opts.mode;
|
|
17
|
+
var xfs = opts.fs || fs;
|
|
18
|
+
|
|
19
|
+
if (mode === undefined) {
|
|
20
|
+
mode = _0777 & (~process.umask());
|
|
21
|
+
}
|
|
22
|
+
if (!made) made = null;
|
|
23
|
+
|
|
24
|
+
var cb = f || function () {};
|
|
25
|
+
p = path.resolve(p);
|
|
26
|
+
|
|
27
|
+
xfs.mkdir(p, mode, function (er) {
|
|
28
|
+
if (!er) {
|
|
29
|
+
made = made || p;
|
|
30
|
+
return cb(null, made);
|
|
31
|
+
}
|
|
32
|
+
switch (er.code) {
|
|
33
|
+
case 'ENOENT':
|
|
34
|
+
mkdirP(path.dirname(p), opts, function (er, made) {
|
|
35
|
+
if (er) cb(er, made);
|
|
36
|
+
else mkdirP(p, opts, cb, made);
|
|
37
|
+
});
|
|
38
|
+
break;
|
|
39
|
+
|
|
40
|
+
// In the case of any other error, just see if there's a dir
|
|
41
|
+
// there already. If so, then hooray! If not, then something
|
|
42
|
+
// is borked.
|
|
43
|
+
default:
|
|
44
|
+
xfs.stat(p, function (er2, stat) {
|
|
45
|
+
// if the stat fails, then that's super weird.
|
|
46
|
+
// let the original error be the failure reason.
|
|
47
|
+
if (er2 || !stat.isDirectory()) cb(er, made)
|
|
48
|
+
else cb(null, made);
|
|
49
|
+
});
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
mkdirP.sync = function sync (p, opts, made) {
|
|
56
|
+
if (!opts || typeof opts !== 'object') {
|
|
57
|
+
opts = { mode: opts };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
var mode = opts.mode;
|
|
61
|
+
var xfs = opts.fs || fs;
|
|
62
|
+
|
|
63
|
+
if (mode === undefined) {
|
|
64
|
+
mode = _0777 & (~process.umask());
|
|
65
|
+
}
|
|
66
|
+
if (!made) made = null;
|
|
67
|
+
|
|
68
|
+
p = path.resolve(p);
|
|
69
|
+
|
|
70
|
+
try {
|
|
71
|
+
xfs.mkdirSync(p, mode);
|
|
72
|
+
made = made || p;
|
|
73
|
+
}
|
|
74
|
+
catch (err0) {
|
|
75
|
+
switch (err0.code) {
|
|
76
|
+
case 'ENOENT' :
|
|
77
|
+
made = sync(path.dirname(p), opts, made);
|
|
78
|
+
sync(p, opts, made);
|
|
79
|
+
break;
|
|
80
|
+
|
|
81
|
+
// In the case of any other error, just see if there's a dir
|
|
82
|
+
// there already. If so, then hooray! If not, then something
|
|
83
|
+
// is borked.
|
|
84
|
+
default:
|
|
85
|
+
var stat;
|
|
86
|
+
try {
|
|
87
|
+
stat = xfs.statSync(p);
|
|
88
|
+
}
|
|
89
|
+
catch (err1) {
|
|
90
|
+
throw err0;
|
|
91
|
+
}
|
|
92
|
+
if (!stat.isDirectory()) throw err0;
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return made;
|
|
98
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mkdirp-classic",
|
|
3
|
+
"version": "0.5.3",
|
|
4
|
+
"description": "Mirror of mkdirp 0.5.2",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"dependencies": {},
|
|
7
|
+
"devDependencies": {},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/mafintosh/mkdirp-classic.git"
|
|
11
|
+
},
|
|
12
|
+
"author": "Mathias Buus (@mafintosh)",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/mafintosh/mkdirp-classic/issues"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://github.com/mafintosh/mkdirp-classic"
|
|
18
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Run npm Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches: [ "main" ]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [ "main" ]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
node-version: [22, 23]
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout repository
|
|
20
|
+
uses: actions/checkout@v2
|
|
21
|
+
|
|
22
|
+
- name: Set up Node.js ${{ matrix.node-version }}
|
|
23
|
+
uses: actions/setup-node@v3
|
|
24
|
+
with:
|
|
25
|
+
node-version: ${{ matrix.node-version }}
|
|
26
|
+
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: npm install
|
|
29
|
+
|
|
30
|
+
- name: Run tests
|
|
31
|
+
run: npm test
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 inspiredware
|
|
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,52 @@
|
|
|
1
|
+
# napi-build-utils
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/napi-build-utils)
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
[](http://standardjs.com/)
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
|
|
9
|
+
A set of utilities to assist developers of tools that build [Node-API](https://nodejs.org/api/n-api.html#n_api_n_api) native add-ons.
|
|
10
|
+
|
|
11
|
+
## Background
|
|
12
|
+
|
|
13
|
+
This module is targeted to developers creating tools that build Node-API native add-ons.
|
|
14
|
+
|
|
15
|
+
It implements a set of functions that aid in determining the Node-API version supported by the currently running Node instance and the set of Node-API versions against which the Node-API native add-on is designed to be built. Other functions determine whether a particular Node-API version can be built and can issue console warnings for unsupported Node-API versions.
|
|
16
|
+
|
|
17
|
+
Unlike the modules this code is designed to facilitate building, this module is written entirely in JavaScript.
|
|
18
|
+
|
|
19
|
+
## Quick start
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install napi-build-utils
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The module exports a set of functions documented [here](./index.md). For example:
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
var napiBuildUtils = require('napi-build-utils');
|
|
29
|
+
var napiVersion = napiBuildUtils.getNapiVersion(); // Node-API version supported by Node, or undefined.
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Declaring supported Node-API versions
|
|
33
|
+
|
|
34
|
+
Native modules that are designed to work with [Node-API](https://nodejs.org/api/n-api.html#n_api_n_api) must explicitly declare the Node-API version(s) against which they are coded to build. This is accomplished by including a `binary.napi_versions` property in the module's `package.json` file. For example:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
"binary": {
|
|
38
|
+
"napi_versions": [2,3]
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
In the absence of a need to compile against a specific Node-API version, the value `3` is a good choice as this is the Node-API version that was supported when Node-API left experimental status.
|
|
43
|
+
|
|
44
|
+
Modules that are built against a specific Node-API version will continue to operate indefinitely, even as later versions of Node-API are introduced.
|
|
45
|
+
|
|
46
|
+
## History
|
|
47
|
+
|
|
48
|
+
**v2.0.0** This version was introduced to address a limitation when the Node-API version reached `10` in NodeJS `v23.6.0`. There was no change in the API, but a SemVer bump to `2.0.0` was made out of an abundance of caution.
|
|
49
|
+
|
|
50
|
+
## Support
|
|
51
|
+
|
|
52
|
+
If you run into problems or limitations, please file an issue and we'll take a look. Pull requests are also welcome.
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
// Copyright (c) 2018 inspiredware
|
|
3
|
+
|
|
4
|
+
var path = require('path')
|
|
5
|
+
var pkg = require(path.resolve('package.json'))
|
|
6
|
+
|
|
7
|
+
var versionArray = process.version
|
|
8
|
+
.substr(1)
|
|
9
|
+
.replace(/-.*$/, '')
|
|
10
|
+
.split('.')
|
|
11
|
+
.map(function (item) {
|
|
12
|
+
return +item
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* A set of utilities to assist developers of tools that build
|
|
18
|
+
* [N-API](https://nodejs.org/api/n-api.html#n_api_n_api) native add-ons.
|
|
19
|
+
*
|
|
20
|
+
* The main repository can be found
|
|
21
|
+
* [here](https://github.com/inspiredware/napi-build-utils#napi-build-utils).
|
|
22
|
+
*
|
|
23
|
+
* @module napi-build-utils
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Implements a consistent name of `napi` for N-API runtimes.
|
|
28
|
+
*
|
|
29
|
+
* @param {string} runtime The runtime string.
|
|
30
|
+
* @returns {boolean}
|
|
31
|
+
*/
|
|
32
|
+
exports.isNapiRuntime = function (runtime) {
|
|
33
|
+
return runtime === 'napi'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Determines whether the specified N-API version is supported
|
|
38
|
+
* by both the currently running Node instance and the package.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} napiVersion The N-API version to check.
|
|
41
|
+
* @returns {boolean}
|
|
42
|
+
*/
|
|
43
|
+
exports.isSupportedVersion = function (napiVersion) {
|
|
44
|
+
var version = parseInt(napiVersion, 10)
|
|
45
|
+
return version <= exports.getNapiVersion() && exports.packageSupportsVersion(version)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Determines whether the specified N-API version is supported by the package.
|
|
50
|
+
* The N-API version must be present in the `package.json`
|
|
51
|
+
* `binary.napi_versions` array.
|
|
52
|
+
*
|
|
53
|
+
* @param {number} napiVersion The N-API version to check.
|
|
54
|
+
* @returns {boolean}
|
|
55
|
+
* @private
|
|
56
|
+
*/
|
|
57
|
+
exports.packageSupportsVersion = function (napiVersion) {
|
|
58
|
+
if (pkg.binary && pkg.binary.napi_versions &&
|
|
59
|
+
pkg.binary.napi_versions instanceof Array) { // integer array
|
|
60
|
+
for (var i = 0; i < pkg.binary.napi_versions.length; i++) {
|
|
61
|
+
if (pkg.binary.napi_versions[i] === napiVersion) return true
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
return false
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Issues a warning to the supplied log if the N-API version is not supported
|
|
69
|
+
* by the current Node instance or if the N-API version is not supported
|
|
70
|
+
* by the package.
|
|
71
|
+
*
|
|
72
|
+
* @param {string} napiVersion The N-API version to check.
|
|
73
|
+
* @param {Object} log The log object to which the warnings are to be issued.
|
|
74
|
+
* Must implement the `warn` method.
|
|
75
|
+
*/
|
|
76
|
+
exports.logUnsupportedVersion = function (napiVersion, log) {
|
|
77
|
+
if (!exports.isSupportedVersion(napiVersion)) {
|
|
78
|
+
if (exports.packageSupportsVersion(napiVersion)) {
|
|
79
|
+
log.warn('This Node instance does not support N-API version ' + napiVersion)
|
|
80
|
+
} else {
|
|
81
|
+
log.warn('This package does not support N-API version ' + napiVersion)
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Issues warnings to the supplied log for those N-API versions not supported
|
|
88
|
+
* by the N-API runtime or the package.
|
|
89
|
+
*
|
|
90
|
+
* Note that this function is specific to the
|
|
91
|
+
* [`prebuild`](https://github.com/prebuild/prebuild#prebuild) package.
|
|
92
|
+
*
|
|
93
|
+
* `target` is the list of targets to be built and is determined in one of
|
|
94
|
+
* three ways from the command line arguments:
|
|
95
|
+
* (1) `--target` specifies a specific target to build.
|
|
96
|
+
* (2) `--all` specifies all N-API versions supported by the package.
|
|
97
|
+
* (3) Neither of these specifies to build the single "best version available."
|
|
98
|
+
*
|
|
99
|
+
* `prebuild` is an array of objects in the form `{runtime: 'napi', target: '2'}`.
|
|
100
|
+
* The array contains the list of N-API versions that are supported by both the
|
|
101
|
+
* package being built and the currently running Node instance.
|
|
102
|
+
*
|
|
103
|
+
* The objective of this function is to issue a warning for those items that appear
|
|
104
|
+
* in the `target` argument but not in the `prebuild` argument.
|
|
105
|
+
* If a specific target is supported by the package (`packageSupportsVersion`) but
|
|
106
|
+
* but note in `prebuild`, the assumption is that the target is not supported by
|
|
107
|
+
* Node.
|
|
108
|
+
*
|
|
109
|
+
* @param {(Array<string>|string)} target The N-API version(s) to check. Target is
|
|
110
|
+
* @param {Array<Object>} prebuild A config object created by the `prebuild` package.
|
|
111
|
+
* @param {Object} log The log object to which the warnings are to be issued.
|
|
112
|
+
* Must implement the `warn` method.
|
|
113
|
+
* @private
|
|
114
|
+
*/
|
|
115
|
+
exports.logMissingNapiVersions = function (target, prebuild, log) {
|
|
116
|
+
if (exports.getNapiBuildVersions()) {
|
|
117
|
+
var targets = [].concat(target)
|
|
118
|
+
targets.forEach(function (napiVersion) {
|
|
119
|
+
if (!prebuildExists(prebuild, napiVersion)) {
|
|
120
|
+
if (exports.packageSupportsVersion(parseInt(napiVersion, 10))) {
|
|
121
|
+
log.warn('This Node instance does not support N-API version ' + napiVersion)
|
|
122
|
+
} else {
|
|
123
|
+
log.warn('This package does not support N-API version ' + napiVersion)
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
})
|
|
127
|
+
} else {
|
|
128
|
+
log.error('Builds with runtime \'napi\' require a binary.napi_versions ' +
|
|
129
|
+
'property on the package.json file')
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Determines whether the specified N-API version exists in the prebuild
|
|
135
|
+
* configuration object.
|
|
136
|
+
*
|
|
137
|
+
* Note that this function is specific to the `prebuild` and `prebuild-install`
|
|
138
|
+
* packages.
|
|
139
|
+
*
|
|
140
|
+
* @param {Object} prebuild A config object created by the `prebuild` package.
|
|
141
|
+
* @param {string} napiVersion The N-APi version to be checked.
|
|
142
|
+
* @return {boolean}
|
|
143
|
+
* @private
|
|
144
|
+
*/
|
|
145
|
+
var prebuildExists = function (prebuild, napiVersion) {
|
|
146
|
+
if (prebuild) {
|
|
147
|
+
for (var i = 0; i < prebuild.length; i++) {
|
|
148
|
+
if (prebuild[i].target === napiVersion) return true
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return false
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Returns the best N-API version to build given the highest N-API
|
|
156
|
+
* version supported by the current Node instance and the N-API versions
|
|
157
|
+
* supported by the package, or undefined if a suitable N-API version
|
|
158
|
+
* cannot be determined.
|
|
159
|
+
*
|
|
160
|
+
* The best build version is the greatest N-API version supported by
|
|
161
|
+
* the package that is less than or equal to the highest N-API version
|
|
162
|
+
* supported by the current Node instance.
|
|
163
|
+
*
|
|
164
|
+
* @returns {number|undefined}
|
|
165
|
+
*/
|
|
166
|
+
exports.getBestNapiBuildVersion = function () {
|
|
167
|
+
var bestNapiBuildVersion = 0
|
|
168
|
+
var napiBuildVersions = exports.getNapiBuildVersions(pkg) // array of integer strings
|
|
169
|
+
if (napiBuildVersions) {
|
|
170
|
+
var ourNapiVersion = exports.getNapiVersion()
|
|
171
|
+
napiBuildVersions.forEach(function (napiBuildVersionStr) {
|
|
172
|
+
var napiBuildVersion = parseInt(napiBuildVersionStr, 10)
|
|
173
|
+
if (napiBuildVersion > bestNapiBuildVersion &&
|
|
174
|
+
napiBuildVersion <= ourNapiVersion) {
|
|
175
|
+
bestNapiBuildVersion = napiBuildVersion
|
|
176
|
+
}
|
|
177
|
+
})
|
|
178
|
+
}
|
|
179
|
+
return bestNapiBuildVersion === 0 ? undefined : bestNapiBuildVersion
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Returns an array of N-API versions supported by the package.
|
|
184
|
+
*
|
|
185
|
+
* @returns {Array<string>|undefined}
|
|
186
|
+
*/
|
|
187
|
+
exports.getNapiBuildVersions = function () {
|
|
188
|
+
var napiBuildVersions = []
|
|
189
|
+
// remove duplicates, convert to text
|
|
190
|
+
if (pkg.binary && pkg.binary.napi_versions) {
|
|
191
|
+
pkg.binary.napi_versions.forEach(function (napiVersion) {
|
|
192
|
+
var duplicated = napiBuildVersions.indexOf('' + napiVersion) !== -1
|
|
193
|
+
if (!duplicated) {
|
|
194
|
+
napiBuildVersions.push('' + napiVersion)
|
|
195
|
+
}
|
|
196
|
+
})
|
|
197
|
+
}
|
|
198
|
+
return napiBuildVersions.length ? napiBuildVersions : undefined
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Returns the highest N-API version supported by the current node instance
|
|
203
|
+
* or undefined if N-API is not supported.
|
|
204
|
+
*
|
|
205
|
+
* @returns {string|undefined}
|
|
206
|
+
*/
|
|
207
|
+
exports.getNapiVersion = function () {
|
|
208
|
+
var version = process.versions.napi // integer string, can be undefined
|
|
209
|
+
if (!version) { // this code should never need to be updated
|
|
210
|
+
if (versionArray[0] === 9 && versionArray[1] >= 3) version = '2' // 9.3.0+
|
|
211
|
+
else if (versionArray[0] === 8) version = '1' // 8.0.0+
|
|
212
|
+
}
|
|
213
|
+
return version
|
|
214
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "napi-build-utils",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A set of utilities to assist developers of tools that build N-API native add-ons",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"doc": "jsdoc2md index.js >index.md",
|
|
8
|
+
"test": "mocha test/ && npm run lint",
|
|
9
|
+
"lint": "standard",
|
|
10
|
+
"prepublishOnly": "npm run test"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"n-api",
|
|
14
|
+
"prebuild",
|
|
15
|
+
"prebuild-install"
|
|
16
|
+
],
|
|
17
|
+
"author": "Jim Schlight",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"homepage": "https://github.com/inspiredware/napi-build-utils#readme",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/inspiredware/napi-build-utils.git"
|
|
23
|
+
},
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/inspiredware/napi-build-utils/issues"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"chai": "^4.1.2",
|
|
29
|
+
"jsdoc-to-markdown": "^4.0.1",
|
|
30
|
+
"mocha": "^5.2.0",
|
|
31
|
+
"standard": "^12.0.1"
|
|
32
|
+
},
|
|
33
|
+
"binary": {
|
|
34
|
+
"note": "napi-build-tools is not an N-API module. This entry is for unit testing.",
|
|
35
|
+
"napi_versions": [
|
|
36
|
+
2,
|
|
37
|
+
2,
|
|
38
|
+
3,
|
|
39
|
+
10
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Lukas Geiger
|
|
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,54 @@
|
|
|
1
|
+
# Node.js ABI
|
|
2
|
+
|
|
3
|
+
[](https://github.com/electron/node-abi/actions/workflows/test.yml)
|
|
4
|
+
[](https://github.com/electron/node-abi/actions/workflows/update-abi.yml)
|
|
5
|
+
[](https://snyk.io/test/github/electron/node-abi)
|
|
6
|
+
[](https://npmjs.org/package/node-abi)
|
|
7
|
+
|
|
8
|
+
Get the Node ABI (application binary interface) for a given target and runtime, and vice versa.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```shell
|
|
13
|
+
npm install node-abi
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```javascript
|
|
19
|
+
const nodeAbi = require('node-abi')
|
|
20
|
+
|
|
21
|
+
nodeAbi.getAbi('7.2.0', 'node')
|
|
22
|
+
// '51'
|
|
23
|
+
nodeAbi.getAbi('1.4.10', 'electron')
|
|
24
|
+
// '50'
|
|
25
|
+
nodeAbi.getTarget('51', 'node')
|
|
26
|
+
// '7.2.0'
|
|
27
|
+
nodeAbi.getTarget('50', 'electron')
|
|
28
|
+
// '1.4.15'
|
|
29
|
+
|
|
30
|
+
nodeAbi.allTargets
|
|
31
|
+
// [
|
|
32
|
+
// { runtime: 'node', target: '0.10.48', abi: '11', lts: false },
|
|
33
|
+
// { runtime: 'node', target: '0.12.17', abi: '14', lts: false },
|
|
34
|
+
// { runtime: 'node', target: '4.6.1', abi: '46', lts: true },
|
|
35
|
+
// { runtime: 'node', target: '5.12.0', abi: '47', lts: false },
|
|
36
|
+
// { runtime: 'node', target: '6.9.4', abi: '48', lts: true },
|
|
37
|
+
// { runtime: 'node', target: '7.4.0', abi: '51', lts: false },
|
|
38
|
+
// { runtime: 'electron', target: '1.0.2', abi: '47', lts: false },
|
|
39
|
+
// { runtime: 'electron', target: '1.2.8', abi: '48', lts: false },
|
|
40
|
+
// { runtime: 'electron', target: '1.3.13', abi: '49', lts: false },
|
|
41
|
+
// { runtime: 'electron', target: '1.4.15', abi: '50', lts: false }
|
|
42
|
+
// ]
|
|
43
|
+
nodeAbi.deprecatedTargets
|
|
44
|
+
nodeAbi.supportedTargets
|
|
45
|
+
nodeAbi.additionalTargets
|
|
46
|
+
nodeAbi.futureTargets
|
|
47
|
+
// ...
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## References
|
|
51
|
+
|
|
52
|
+
- https://github.com/lgeiger/electron-abi
|
|
53
|
+
- https://nodejs.org/en/download/releases/
|
|
54
|
+
- https://github.com/nodejs/Release
|