@quantiya/codevibe-claude-plugin 1.0.13 → 1.0.14
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/.claude-plugin/plugin.json +1 -1
- package/node_modules/@quantiya/codevibe-core/README.md +179 -0
- package/node_modules/@quantiya/codevibe-core/bin/codevibe.js +7 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +132 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +16 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/auth-cli.d.ts +5 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/auth-service.d.ts +87 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/fetch-helpers.d.ts +11 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/config/config.d.ts +53 -0
- package/node_modules/@quantiya/codevibe-core/dist/config/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/crypto-service.d.ts +118 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/index.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +14 -0
- package/node_modules/@quantiya/codevibe-core/dist/index.js +218 -0
- package/node_modules/@quantiya/codevibe-core/dist/keychain/index.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-manager.d.ts +125 -0
- package/node_modules/@quantiya/codevibe-core/dist/logger/index.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/logger/logger.d.ts +35 -0
- package/node_modules/@quantiya/codevibe-core/dist/prompt-parser.d.ts +39 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/session-resume.d.ts +55 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/auth.d.ts +15 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/encryption.d.ts +54 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/events.d.ts +74 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/index.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/session.d.ts +59 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CHANGELOG.md +274 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/README.md +466 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/rng.js +18 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v35.js +66 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v4.js +29 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/stringify.js +33 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v35.js +66 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v4.js +29 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native-browser.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native.js +15 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng-browser.js +25 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/stringify.js +44 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v35.js +80 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v4.js +43 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/package.json +135 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/@quantiya/codevibe-core/package.json +54 -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/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/CHANGELOG.md +46 -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 +313 -0
- package/node_modules/detect-libc/lib/elf.js +39 -0
- package/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/node_modules/detect-libc/lib/process.js +24 -0
- package/node_modules/detect-libc/package.json +44 -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/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/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/keytar/LICENSE.md +20 -0
- package/node_modules/keytar/README.md +94 -0
- package/node_modules/keytar/binding.gyp +66 -0
- package/node_modules/keytar/build/Release/keytar.node +0 -0
- package/node_modules/keytar/keytar.d.ts +51 -0
- package/node_modules/keytar/lib/keytar.js +43 -0
- package/node_modules/keytar/package.json +66 -0
- package/node_modules/keytar/src/async.cc +242 -0
- package/node_modules/keytar/src/async.h +103 -0
- package/node_modules/keytar/src/credentials.h +13 -0
- package/node_modules/keytar/src/keytar.h +41 -0
- package/node_modules/keytar/src/keytar_mac.cc +296 -0
- package/node_modules/keytar/src/keytar_posix.cc +184 -0
- package/node_modules/keytar/src/keytar_win.cc +272 -0
- package/node_modules/keytar/src/main.cc +139 -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 +439 -0
- package/node_modules/node-abi/index.js +179 -0
- package/node_modules/node-abi/package.json +45 -0
- package/node_modules/node-addon-api/LICENSE.md +13 -0
- package/node_modules/node-addon-api/README.md +293 -0
- package/node_modules/node-addon-api/common.gypi +21 -0
- package/node_modules/node-addon-api/except.gypi +25 -0
- package/node_modules/node-addon-api/index.js +11 -0
- package/node_modules/node-addon-api/napi-inl.deprecated.h +192 -0
- package/node_modules/node-addon-api/napi-inl.h +6209 -0
- package/node_modules/node-addon-api/napi.h +2983 -0
- package/node_modules/node-addon-api/node_api.gyp +9 -0
- package/node_modules/node-addon-api/noexcept.gypi +26 -0
- package/node_modules/node-addon-api/nothing.c +0 -0
- package/node_modules/node-addon-api/package-support.json +21 -0
- package/node_modules/node-addon-api/package.json +399 -0
- package/node_modules/node-addon-api/tools/README.md +73 -0
- package/node_modules/node-addon-api/tools/check-napi.js +100 -0
- package/node_modules/node-addon-api/tools/clang-format.js +68 -0
- package/node_modules/node-addon-api/tools/conversion.js +309 -0
- package/node_modules/node-addon-api/tools/eslint-format.js +71 -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/empty.js +1 -0
- package/node_modules/pump/index.js +86 -0
- package/node_modules/pump/package.json +30 -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 +665 -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 +557 -0
- package/node_modules/semver/classes/semver.js +333 -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 +29 -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 +363 -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/package.json +2 -9
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "./lib/keytar.js",
|
|
3
|
+
"typings": "keytar.d.ts",
|
|
4
|
+
"name": "keytar",
|
|
5
|
+
"description": "Bindings to native Mac/Linux/Windows password APIs",
|
|
6
|
+
"version": "7.9.0",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/atom/node-keytar.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/atom/node-keytar/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "http://atom.github.io/node-keytar",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"keychain",
|
|
18
|
+
"password",
|
|
19
|
+
"passwords",
|
|
20
|
+
"credential",
|
|
21
|
+
"credentials",
|
|
22
|
+
"vault",
|
|
23
|
+
"credential vault"
|
|
24
|
+
],
|
|
25
|
+
"files": [
|
|
26
|
+
"lib",
|
|
27
|
+
"src",
|
|
28
|
+
"binding.gyp",
|
|
29
|
+
"keytar.d.ts"
|
|
30
|
+
],
|
|
31
|
+
"types": "./keytar.d.ts",
|
|
32
|
+
"scripts": {
|
|
33
|
+
"install": "prebuild-install || npm run build",
|
|
34
|
+
"build": "node-gyp rebuild",
|
|
35
|
+
"lint": "npm run cpplint",
|
|
36
|
+
"cpplint": "node-cpplint --filters legal-copyright,build-include,build-namespaces src/*.cc",
|
|
37
|
+
"test": "npm run lint && npm rebuild && mocha --require babel-core/register spec/",
|
|
38
|
+
"prebuild-napi-x64": "prebuild -t 3 -r napi -a x64 --strip",
|
|
39
|
+
"prebuild-napi-ia32": "prebuild -t 3 -r napi -a ia32 --strip",
|
|
40
|
+
"prebuild-napi-arm64": "prebuild -t 3 -r napi -a arm64 --strip",
|
|
41
|
+
"prebuild-napi-armv7l": "prebuild -t 3 -r napi -a armv7l --strip",
|
|
42
|
+
"upload": "node ./script/upload.js"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"babel-core": "^6.26.3",
|
|
46
|
+
"babel-plugin-transform-async-to-generator": "^6.24.1",
|
|
47
|
+
"chai": "^4.2.0",
|
|
48
|
+
"mocha": "^9.2.0",
|
|
49
|
+
"node-cpplint": "~0.4.0",
|
|
50
|
+
"node-gyp": "^8.4.1",
|
|
51
|
+
"prebuild": "^11.0.2"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"node-addon-api": "^4.3.0",
|
|
55
|
+
"prebuild-install": "^7.0.1"
|
|
56
|
+
},
|
|
57
|
+
"binary": {
|
|
58
|
+
"napi_versions": [
|
|
59
|
+
3
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"config": {
|
|
63
|
+
"runtime": "napi",
|
|
64
|
+
"target": 3
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
#include <string>
|
|
2
|
+
#include <vector>
|
|
3
|
+
|
|
4
|
+
#include "napi.h"
|
|
5
|
+
#include "keytar.h"
|
|
6
|
+
#include "async.h"
|
|
7
|
+
|
|
8
|
+
using keytar::KEYTAR_OP_RESULT;
|
|
9
|
+
|
|
10
|
+
SetPasswordWorker::SetPasswordWorker(
|
|
11
|
+
const std::string& service,
|
|
12
|
+
const std::string& account,
|
|
13
|
+
const std::string& password,
|
|
14
|
+
const Napi::Env &env
|
|
15
|
+
) : AsyncWorker(env),
|
|
16
|
+
service(service),
|
|
17
|
+
account(account),
|
|
18
|
+
password(password),
|
|
19
|
+
deferred(Napi::Promise::Deferred::New(env)) {}
|
|
20
|
+
|
|
21
|
+
SetPasswordWorker::~SetPasswordWorker() {}
|
|
22
|
+
|
|
23
|
+
Napi::Promise SetPasswordWorker::Promise() {
|
|
24
|
+
return deferred.Promise();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
void SetPasswordWorker::Execute() {
|
|
28
|
+
std::string error;
|
|
29
|
+
KEYTAR_OP_RESULT result = keytar::SetPassword(service,
|
|
30
|
+
account,
|
|
31
|
+
password,
|
|
32
|
+
&error);
|
|
33
|
+
if (result == keytar::FAIL_ERROR) {
|
|
34
|
+
SetError(error.c_str());
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
void SetPasswordWorker::OnOK() {
|
|
39
|
+
Napi::HandleScope scope(Env());
|
|
40
|
+
deferred.Resolve(Env().Undefined());
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
void SetPasswordWorker::OnError(Napi::Error const &error) {
|
|
44
|
+
Napi::HandleScope scope(Env());
|
|
45
|
+
deferred.Reject(error.Value());
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
GetPasswordWorker::GetPasswordWorker(
|
|
50
|
+
const std::string& service,
|
|
51
|
+
const std::string& account,
|
|
52
|
+
const Napi::Env &env
|
|
53
|
+
) : AsyncWorker(env),
|
|
54
|
+
service(service),
|
|
55
|
+
account(account),
|
|
56
|
+
deferred(Napi::Promise::Deferred::New(env)) {}
|
|
57
|
+
|
|
58
|
+
GetPasswordWorker::~GetPasswordWorker() {}
|
|
59
|
+
|
|
60
|
+
Napi::Promise GetPasswordWorker::Promise() {
|
|
61
|
+
return deferred.Promise();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
void GetPasswordWorker::Execute() {
|
|
65
|
+
std::string error;
|
|
66
|
+
KEYTAR_OP_RESULT result = keytar::GetPassword(service,
|
|
67
|
+
account,
|
|
68
|
+
&password,
|
|
69
|
+
&error);
|
|
70
|
+
if (result == keytar::FAIL_ERROR) {
|
|
71
|
+
SetError(error.c_str());
|
|
72
|
+
} else if (result == keytar::FAIL_NONFATAL) {
|
|
73
|
+
success = false;
|
|
74
|
+
} else {
|
|
75
|
+
success = true;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
void GetPasswordWorker::OnOK() {
|
|
80
|
+
Napi::HandleScope scope(Env());
|
|
81
|
+
Napi::Value val = Env().Null();
|
|
82
|
+
if (success) {
|
|
83
|
+
val = Napi::String::New(Env(), password.data(),
|
|
84
|
+
password.length());
|
|
85
|
+
}
|
|
86
|
+
deferred.Resolve(val);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
void GetPasswordWorker::OnError(Napi::Error const &error) {
|
|
90
|
+
Napi::HandleScope scope(Env());
|
|
91
|
+
deferred.Reject(error.Value());
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
DeletePasswordWorker::DeletePasswordWorker(
|
|
95
|
+
const std::string& service,
|
|
96
|
+
const std::string& account,
|
|
97
|
+
const Napi::Env &env
|
|
98
|
+
) : AsyncWorker(env),
|
|
99
|
+
service(service),
|
|
100
|
+
account(account),
|
|
101
|
+
deferred(Napi::Promise::Deferred::New(env)) {}
|
|
102
|
+
|
|
103
|
+
DeletePasswordWorker::~DeletePasswordWorker() {}
|
|
104
|
+
|
|
105
|
+
Napi::Promise DeletePasswordWorker::Promise() {
|
|
106
|
+
return deferred.Promise();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
void DeletePasswordWorker::Execute() {
|
|
110
|
+
std::string error;
|
|
111
|
+
KEYTAR_OP_RESULT result = keytar::DeletePassword(service, account, &error);
|
|
112
|
+
if (result == keytar::FAIL_ERROR) {
|
|
113
|
+
SetError(error.c_str());
|
|
114
|
+
} else if (result == keytar::FAIL_NONFATAL) {
|
|
115
|
+
success = false;
|
|
116
|
+
} else {
|
|
117
|
+
success = true;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
void DeletePasswordWorker::OnOK() {
|
|
122
|
+
Napi::HandleScope scope(Env());
|
|
123
|
+
deferred.Resolve(Napi::Boolean::New(Env(), success));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
void DeletePasswordWorker::OnError(Napi::Error const &error) {
|
|
127
|
+
Napi::HandleScope scope(Env());
|
|
128
|
+
deferred.Reject(error.Value());
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
FindPasswordWorker::FindPasswordWorker(
|
|
132
|
+
const std::string& service,
|
|
133
|
+
const Napi::Env &env
|
|
134
|
+
) : AsyncWorker(env),
|
|
135
|
+
service(service),
|
|
136
|
+
deferred(Napi::Promise::Deferred::New(env)) {}
|
|
137
|
+
|
|
138
|
+
FindPasswordWorker::~FindPasswordWorker() {}
|
|
139
|
+
|
|
140
|
+
Napi::Promise FindPasswordWorker::Promise() {
|
|
141
|
+
return deferred.Promise();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
void FindPasswordWorker::Execute() {
|
|
145
|
+
std::string error;
|
|
146
|
+
KEYTAR_OP_RESULT result = keytar::FindPassword(service,
|
|
147
|
+
&password,
|
|
148
|
+
&error);
|
|
149
|
+
if (result == keytar::FAIL_ERROR) {
|
|
150
|
+
SetError(error.c_str());
|
|
151
|
+
} else if (result == keytar::FAIL_NONFATAL) {
|
|
152
|
+
success = false;
|
|
153
|
+
} else {
|
|
154
|
+
success = true;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
void FindPasswordWorker::OnOK() {
|
|
159
|
+
Napi::HandleScope scope(Env());
|
|
160
|
+
Napi::Value val = Env().Null();
|
|
161
|
+
if (success) {
|
|
162
|
+
val = Napi::String::New(Env(), password.data(),
|
|
163
|
+
password.length());
|
|
164
|
+
}
|
|
165
|
+
deferred.Resolve(val);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
void FindPasswordWorker::OnError(Napi::Error const &error) {
|
|
169
|
+
Napi::HandleScope scope(Env());
|
|
170
|
+
deferred.Reject(error.Value());
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
FindCredentialsWorker::FindCredentialsWorker(
|
|
174
|
+
const std::string& service,
|
|
175
|
+
const Napi::Env &env
|
|
176
|
+
) : AsyncWorker(env),
|
|
177
|
+
service(service),
|
|
178
|
+
deferred(Napi::Promise::Deferred::New(env)) {}
|
|
179
|
+
|
|
180
|
+
FindCredentialsWorker::~FindCredentialsWorker() {}
|
|
181
|
+
|
|
182
|
+
Napi::Promise FindCredentialsWorker::Promise() {
|
|
183
|
+
return deferred.Promise();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
void FindCredentialsWorker::Execute() {
|
|
187
|
+
std::string error;
|
|
188
|
+
KEYTAR_OP_RESULT result = keytar::FindCredentials(service,
|
|
189
|
+
&credentials,
|
|
190
|
+
&error);
|
|
191
|
+
if (result == keytar::FAIL_ERROR) {
|
|
192
|
+
SetError(error.c_str());
|
|
193
|
+
} else if (result == keytar::FAIL_NONFATAL) {
|
|
194
|
+
success = false;
|
|
195
|
+
} else {
|
|
196
|
+
success = true;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
void FindCredentialsWorker::OnOK() {
|
|
201
|
+
Napi::HandleScope scope(Env());
|
|
202
|
+
Napi::Env env = Env();
|
|
203
|
+
|
|
204
|
+
if (success) {
|
|
205
|
+
Napi::Array val = Napi::Array::New(env, credentials.size());
|
|
206
|
+
unsigned int idx = 0;
|
|
207
|
+
std::vector<keytar::Credentials>::iterator it;
|
|
208
|
+
for (it = credentials.begin(); it != credentials.end(); it++) {
|
|
209
|
+
keytar::Credentials cred = *it;
|
|
210
|
+
Napi::Object obj = Napi::Object::New(env);
|
|
211
|
+
|
|
212
|
+
Napi::String account = Napi::String::New(env,
|
|
213
|
+
cred.first.data(),
|
|
214
|
+
cred.first.length());
|
|
215
|
+
|
|
216
|
+
Napi::String password = Napi::String::New(env,
|
|
217
|
+
cred.second.data(),
|
|
218
|
+
cred.second.length());
|
|
219
|
+
|
|
220
|
+
#ifndef _WIN32
|
|
221
|
+
#pragma GCC diagnostic ignored "-Wunused-result"
|
|
222
|
+
#endif
|
|
223
|
+
obj.Set("account", account);
|
|
224
|
+
#ifndef _WIN32
|
|
225
|
+
#pragma GCC diagnostic ignored "-Wunused-result"
|
|
226
|
+
#endif
|
|
227
|
+
obj.Set("password", password);
|
|
228
|
+
|
|
229
|
+
(val).Set(idx, obj);
|
|
230
|
+
++idx;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
deferred.Resolve(val);
|
|
234
|
+
} else {
|
|
235
|
+
deferred.Resolve(Napi::Array::New(env, 0));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
void FindCredentialsWorker::OnError(Napi::Error const &error) {
|
|
240
|
+
Napi::HandleScope scope(Env());
|
|
241
|
+
deferred.Reject(error.Value());
|
|
242
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
#ifndef SRC_ASYNC_H_
|
|
2
|
+
#define SRC_ASYNC_H_
|
|
3
|
+
|
|
4
|
+
#include <string>
|
|
5
|
+
#include "napi.h"
|
|
6
|
+
|
|
7
|
+
#include "credentials.h"
|
|
8
|
+
|
|
9
|
+
class SetPasswordWorker : public Napi::AsyncWorker {
|
|
10
|
+
public:
|
|
11
|
+
SetPasswordWorker(const std::string& service, const std::string& account, const std::string& password,
|
|
12
|
+
const Napi::Env &env);
|
|
13
|
+
|
|
14
|
+
~SetPasswordWorker();
|
|
15
|
+
|
|
16
|
+
void Execute();
|
|
17
|
+
void OnOK();
|
|
18
|
+
void OnError(Napi::Error const &error);
|
|
19
|
+
Napi::Promise Promise();
|
|
20
|
+
|
|
21
|
+
private:
|
|
22
|
+
const std::string service;
|
|
23
|
+
const std::string account;
|
|
24
|
+
const std::string password;
|
|
25
|
+
Napi::Promise::Deferred deferred;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
class GetPasswordWorker : public Napi::AsyncWorker {
|
|
29
|
+
public:
|
|
30
|
+
GetPasswordWorker(const std::string& service, const std::string& account,
|
|
31
|
+
const Napi::Env &env);
|
|
32
|
+
|
|
33
|
+
~GetPasswordWorker();
|
|
34
|
+
|
|
35
|
+
void Execute();
|
|
36
|
+
void OnOK();
|
|
37
|
+
void OnError(Napi::Error const &error);
|
|
38
|
+
Napi::Promise Promise();
|
|
39
|
+
|
|
40
|
+
private:
|
|
41
|
+
const std::string service;
|
|
42
|
+
const std::string account;
|
|
43
|
+
std::string password;
|
|
44
|
+
bool success;
|
|
45
|
+
const Napi::Promise::Deferred deferred;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
class DeletePasswordWorker : public Napi::AsyncWorker {
|
|
49
|
+
public:
|
|
50
|
+
DeletePasswordWorker(const std::string& service, const std::string& account,
|
|
51
|
+
const Napi::Env &env);
|
|
52
|
+
|
|
53
|
+
~DeletePasswordWorker();
|
|
54
|
+
|
|
55
|
+
void Execute();
|
|
56
|
+
void OnOK();
|
|
57
|
+
void OnError(Napi::Error const &error);
|
|
58
|
+
Napi::Promise Promise();
|
|
59
|
+
|
|
60
|
+
private:
|
|
61
|
+
const std::string service;
|
|
62
|
+
const std::string account;
|
|
63
|
+
bool success;
|
|
64
|
+
Napi::Promise::Deferred deferred;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
class FindPasswordWorker : public Napi::AsyncWorker {
|
|
68
|
+
public:
|
|
69
|
+
FindPasswordWorker(const std::string& service, const Napi::Env &env);
|
|
70
|
+
|
|
71
|
+
~FindPasswordWorker();
|
|
72
|
+
|
|
73
|
+
void Execute();
|
|
74
|
+
void OnOK();
|
|
75
|
+
void OnError(Napi::Error const &error);
|
|
76
|
+
Napi::Promise Promise();
|
|
77
|
+
|
|
78
|
+
private:
|
|
79
|
+
const std::string service;
|
|
80
|
+
std::string password;
|
|
81
|
+
bool success;
|
|
82
|
+
const Napi::Promise::Deferred deferred;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
class FindCredentialsWorker : public Napi::AsyncWorker {
|
|
86
|
+
public:
|
|
87
|
+
FindCredentialsWorker(const std::string& service, const Napi::Env &env);
|
|
88
|
+
|
|
89
|
+
~FindCredentialsWorker();
|
|
90
|
+
|
|
91
|
+
void Execute();
|
|
92
|
+
void OnOK();
|
|
93
|
+
void OnError(Napi::Error const &error);
|
|
94
|
+
Napi::Promise Promise();
|
|
95
|
+
|
|
96
|
+
private:
|
|
97
|
+
const std::string service;
|
|
98
|
+
std::vector<keytar::Credentials> credentials;
|
|
99
|
+
bool success;
|
|
100
|
+
const Napi::Promise::Deferred deferred;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
#endif // SRC_ASYNC_H_
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#ifndef SRC_KEYTAR_H_
|
|
2
|
+
#define SRC_KEYTAR_H_
|
|
3
|
+
|
|
4
|
+
#include <string>
|
|
5
|
+
#include <vector>
|
|
6
|
+
|
|
7
|
+
#include "credentials.h"
|
|
8
|
+
|
|
9
|
+
namespace keytar {
|
|
10
|
+
|
|
11
|
+
enum KEYTAR_OP_RESULT {
|
|
12
|
+
SUCCESS,
|
|
13
|
+
FAIL_ERROR,
|
|
14
|
+
FAIL_NONFATAL
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
KEYTAR_OP_RESULT SetPassword(const std::string& service,
|
|
18
|
+
const std::string& account,
|
|
19
|
+
const std::string& password,
|
|
20
|
+
std::string* error);
|
|
21
|
+
|
|
22
|
+
KEYTAR_OP_RESULT GetPassword(const std::string& service,
|
|
23
|
+
const std::string& account,
|
|
24
|
+
std::string* password,
|
|
25
|
+
std::string* error);
|
|
26
|
+
|
|
27
|
+
KEYTAR_OP_RESULT DeletePassword(const std::string& service,
|
|
28
|
+
const std::string& account,
|
|
29
|
+
std::string* error);
|
|
30
|
+
|
|
31
|
+
KEYTAR_OP_RESULT FindPassword(const std::string& service,
|
|
32
|
+
std::string* password,
|
|
33
|
+
std::string* error);
|
|
34
|
+
|
|
35
|
+
KEYTAR_OP_RESULT FindCredentials(const std::string& service,
|
|
36
|
+
std::vector<Credentials>*,
|
|
37
|
+
std::string* error);
|
|
38
|
+
|
|
39
|
+
} // namespace keytar
|
|
40
|
+
|
|
41
|
+
#endif // SRC_KEYTAR_H_
|