{"c8":{"exclude":["**/*.bench.js","**/*.spec.js","**/*.spec.helper.js",".pnp.*"]},"ava":{"timeout":"20s","failFast":true,"typescript":{"compile":false,"rewritePaths":{"src/":"build/"}},"nodeArguments":["--experimental-json-modules"],"workerThreads":false},"bugs":{"url":"https://github.com/bitauth/libauth/issues"},"dist":{"shasum":"200a3c967bf1ab088a9ea17691ee354283aee0a6","tarball":"https://registry.npmjs.org/@bitauth/libauth/-/libauth-2.0.0.tgz","fileCount":316,"integrity":"sha512-wFnQtnJvz7S7jU7fQuBJzRQrVHk46DELd5s8D0F61bW567bKVVfMLbwNPCs12pzVckueQTlLwCS//I9skGI1zg==","signatures":[{"sig":"MEQCIHBZpFWHlDPCxFujEJ0Puqg7ARyrgMoqUbvzf+Z2m/fHAiARGD444pHreM9lJF3naoGPfPFJJTiXizUa68fWb0IZhQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4071154},"main":"./build/index.js","name":"@bitauth/libauth","type":"module","types":"./build/index.d.ts","config":{"commitizen":{"path":"cz-conventional-changelog"}},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"gitHead":"7c7e74d459bac5448c7d1b4eb222128f4e5191ed","license":"MIT","scripts":{"cov":"yarn build && yarn test:unit && yarn cov:html && yarn cov:lcov && open-cli coverage/index.html","doc":"yarn doc:html && yarn doc:html && open-cli build/docs/index.html","fix":"yarn fix:eslint && yarn fix:prettier","test":"yarn build && yarn test:deps && yarn test:schemas && yarn test:lint && yarn test:cycles && yarn test:unit","bench":"yarn build && yarn bench:browser-deps && yarn bench:test","build":"yarn build:wasm && yarn build:tsc","reset":"git clean -dfx && git reset --hard && yarn","watch":"yarn build -w","wallet":"node 'build/lib/vmb-tests/bch-vmb-tests.live.spec.helper.js'","version":"standard-version","cov:html":"c8 report --reporter=html","cov:lcov":"c8 report --reporter=lcov","doc:html":"typedoc src/index.ts --out build/docs","doc:logo":"cpy assets/libauth.svg build/docs","doc:next":"yarn build && yarn doc:extract && yarn doc:generate","build:tsc":"tsc -p tsconfig.json","cov:check":"c8 report && c8 check-coverage --lines 80 --functions 80 --branches 80","gen:graph":"mkdir -p temp && madge --image temp/deps-$(date +\"%FT%H%M\").svg build/index.js","test:deps":"node -e \"import('./package.json', { assert: { type: 'json' } }).then(p => typeof p.dependencies === 'undefined' ? console.log('No dependencies found.') : (console.error('Dependencies are not allowed.') && process.exit(1)));\"","test:lint":"yarn test:prettier && yarn test:eslint && yarn test:spelling","test:unit":"c8 ava","bench:test":"ava --config .ava.bench.config.js --serial --timeout=2m 2>&1 | tee bench.log","build:wasm":"cpy --flat src/lib/bin/secp256k1/secp256k1.wasm build/lib/bin/secp256k1 && cpy --flat src/lib/bin/sha1/sha1.wasm build/lib/bin/sha1 && cpy --flat src/lib/bin/sha256/sha256.wasm build/lib/bin/sha256 && cpy --flat src/lib/bin/sha512/sha512.wasm build/lib/bin/sha512 && cpy --flat src/lib/bin/ripemd160/ripemd160.wasm build/lib/bin/ripemd160","fix:eslint":"yarn test:eslint --fix","gen:schema":"yarn gen:schema:wallet-template && yarn gen:schema:bcmr","watch:test":"echo 'Usage: yarn watch:test --match=\"*pattern*\"' && ava -v --watch","doc:extract":"mkdir -p build/api && api-extractor run --local --typescript-compiler-folder node_modules/typescript","test:cycles":"madge --circular build/index.js","test:eslint":"eslint . -c .eslintrc","doc:generate":"api-documenter markdown -i temp -o build/api/markdown","fix:prettier":"prettier . --write","test:schemas":"yarn test:schemas:unchanged && echo \"Schemas are up to date.\" || echo \"Error: one or more schemas are outdated. Please review and commit the changes in src/lib/schema.\"","dev:vmb_tests":"yarn gen:vmb-tests && yarn build:tsc && ava src/lib/vmb-tests/bch-vmb-tests.spec.ts --serial --fail-fast","doc:check-api":"api-extractor run --typescript-compiler-folder node_modules/typescript","gen:templates":"yarn build && node 'build/lib/transaction/fixtures/generate-templates.spec.helper.js' 'p2pkh' > src/lib/transaction/fixtures/templates/p2pkh.json && node 'build/lib/transaction/fixtures/generate-templates.spec.helper.js' '2-of-3' > src/lib/transaction/fixtures/templates/2-of-3.json && node 'build/lib/transaction/fixtures/generate-templates.spec.helper.js' '2-of-2-recoverable' > src/lib/transaction/fixtures/templates/2-of-2-recoverable.json && node 'build/lib/transaction/fixtures/generate-templates.spec.helper.js' 'sig-of-sig' > src/lib/transaction/fixtures/templates/sig-of-sig.json && node 'build/lib/transaction/fixtures/generate-templates.spec.helper.js' 'cash-channels-v1' > src/lib/transaction/fixtures/templates/cash-channels-v1.json && prettier 'src/lib/transaction/fixtures/templates/*.json' --write","gen:vmb-tests":"yarn build && yarn gen:vmb-tests:bch && yarn gen:vmb-tests-prettier","test:prettier":"prettier . --list-different","test:spelling":"cspell \"{README.md,.github/*.md,src/**/*.ts}\"","version:alpha":"standard-version --prerelease alpha","compile:hashes":"docker build -f wasm/docker/hashes.Dockerfile . -t libauth-hashes && docker run -it --mount type=bind,src=$(pwd)/src/lib,dst=/libauth/out,consistency=delegated libauth-hashes","gen:schema-TODO":"//TODO: use ajv compile --code-esm option after merge: https://github.com/ajv-validator/ajv-cli/pull/200","gen:schema:bcmr":"ts-json-schema-generator --no-ref-encode --path 'src/lib/engine/types/bcmr-types.ts' --type 'MetadataRegistry' > src/lib/schema/bcmr.schema.json && prettier 'src/lib/schema/bcmr.schema.json' --write && ajv compile -s src/lib/schema/bcmr.schema.json --allowUnionTypes -o src/lib/schema/ajv/validate-bcmr.js && prettier 'src/lib/schema/ajv/validate-bcmr.js' --write && node -e \"const fs = require('fs'), path = 'src/lib/schema/ajv/validate-bcmr.js'; fs.writeFileSync(path, fs.readFileSync(path, 'utf8').replace(/'use strict'[\\s\\S]*module.exports.default =/, 'export default'), 'utf8')\"","prepare-release":"yarn reset && yarn test && yarn cov:check && yarn run version","compile:secp256k1":"docker build -f wasm/docker/secp256k1.Dockerfile . -t libauth-secp256k1 && docker run -it --mount type=bind,src=$(pwd)/src/lib,dst=/libauth/out,consistency=delegated libauth-secp256k1","gen:vmb-tests:bch":"node 'build/lib/vmb-tests/bch-vmb-tests.spec.helper.js' 'src/lib/vmb-tests/generated/bch' && yarn run gen:vmb-tests:bch:reasons","bench:browser-deps":"cpy '.yarn/artifacts/*.js' build/bench","test:unit:vmb_test":"node 'build/lib/vmb-tests/bch-vmb-test.spec.helper.js'","test:unit:vmb_tests":"c8 ava src/lib/vmb-tests/bch-vmb-tests.spec.ts --serial","compile:debug:hashes":"docker run -it libauth-hashes bash","prepare-release:alpha":"yarn reset && yarn test && yarn cov:check && yarn run version:alpha","gen:vmb-tests-prettier":"prettier 'src/lib/vmb-tests/generated/**/*.json' --write","test:schemas:unchanged":"yarn gen:schema && node -e \"child_process.exec('git status src/lib/schema --porcelain | head -c1 | wc -c', (err, stdout) => stdout.trim() === '0' ? process.exit(0) : process.exit(1) )\"","test:unit:script_tests":"c8 ava --match='*[script_tests]*' --serial","compile:debug:secp256k1":"docker run -it libauth-secp256k1 bash","gen:vmb-tests:bch:reasons":"node 'build/lib/vmb-tests/bch-vmb-tests-invalid.spec.helper.js'","gen:schema:wallet-template":"ts-json-schema-generator --no-ref-encode --path 'src/lib/engine/types/template-types.ts' --type 'WalletTemplate' > src/lib/schema/wallet-template.schema.json && prettier 'src/lib/schema/wallet-template.schema.json' --write && ajv compile -s src/lib/schema/wallet-template.schema.json --allowUnionTypes -o src/lib/schema/ajv/validate-wallet-template.js && prettier 'src/lib/schema/ajv/validate-wallet-template.js' --write && node -e \"const fs = require('fs'), path = 'src/lib/schema/ajv/validate-wallet-template.js'; fs.writeFileSync(path, fs.readFileSync(path, 'utf8').replace(/'use strict'[\\s\\S]*module.exports.default =/, 'export default'), 'utf8')\""},"_npmUser":{"name":"jasondreyzehner","email":"jason@dreyzehner.com"},"homepage":"https://libauth.org/","keywords":["authentication","bitauth","Bitcoin Cash","Bitcoin","cryptocurrency","wasm","crypto","sha256","ripemd160","secp256k1","sha1","sha512","HMAC","wallet","blockchain","typescript","webassembly","BCH","BTC"],"prettier":{"overrides":[{"files":["src/lib/vmb-tests/*bch-vmb-tests*.ts"],"options":{"printWidth":400}},{"files":["src/lib/vmb-tests/*bch-vmb-tests*.spec.*ts"],"options":{"printWidth":80}},{"files":["src/lib/vmb-tests/generated/**/*.json"],"options":{"printWidth":10000}}],"singleQuote":true},"repository":{"url":"git+https://github.com/bitauth/libauth.git","type":"git"},"_npmVersion":"10.1.0","description":"ultra-lightweight library for Bitcoin Cash, Bitcoin, and Bitauth","directories":{},"maintainers":[{"name":"jasondreyzehner","email":"jason@dreyzehner.com"}],"resolutions":{"eslint-config-bitauth":"portal:./config/eslint-config-bitauth"},"sideEffects":false,"_nodeVersion":"20.11.0","_hasShrinkwrap":false,"packageManager":"yarn@4.0.2","devDependencies":{"c8":"^9.0.0","ava":"^6.0.1","madge":"^6.1.0","chuhai":"^1.2.0","cspell":"^8.3.2","eslint":"8.56.0","rollup":"^4.9.4","ajv-cli":"^5.0.0","cpy-cli":"^5.0.0","express":"^4.18.2","hash.js":"^1.1.7","typedoc":"^0.25.7","elliptic":"^6.5.4","open-cli":"^8.0.0","prettier":"^3.1.1","secp256k1":"^5.0.0","fast-check":"^3.15.0","typescript":"^5.3.3","@types/node":"^20.11.0","asmcrypto.js":"^2.3.2","@types/express":"^4.17.21","@ava/typescript":"^4.1.0","@fast-check/ava":"^1.2.1","@types/elliptic":"^6.4.18","@playwright/test":"^1.40.1","bitcore-lib-cash":"^10.0.23","standard-version":"^9.5.0","source-map-support":"^0.5.21","eslint-plugin-tsdoc":"^0.2.17","@rollup/plugin-alias":"^5.1.0","eslint-plugin-import":"^2.29.1","eslint-config-bitauth":"5.0.0","eslint-config-prettier":"^9.1.0","@rollup/plugin-commonjs":"^25.0.7","@microsoft/api-extractor":"^7.39.1","eslint-plugin-functional":"^6.0.0","ts-json-schema-generator":"^1.5.0","@microsoft/api-documenter":"^7.23.16","@typescript-eslint/parser":"^6.18.1","cz-conventional-changelog":"^3.3.0","@rollup/plugin-node-resolve":"^15.2.3","eslint-plugin-eslint-comments":"^3.2.0","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/libauth_2.0.0_1705081641449_0.6459094302592776","host":"s3://npm-registry-packages"},"_id":"@bitauth/libauth@2.0.0","version":"2.0.0"}