{"c8":{"exclude":["**/*.bench.js","**/*.spec.js","**/*.spec.helper.js",".pnp.*","**/ajv/validate-*.js"]},"ava":{"timeout":"60s","typescript":{"compile":false,"rewritePaths":{"src/":"build/"}},"nodeArguments":["--experimental-json-modules","--experimental-global-webcrypto","# ^ needed for node v18"]},"bugs":{"url":"https://github.com/bitauth/libauth/issues"},"dist":{"shasum":"e618706092fe9ea5e4103a2cf427cd5ae5287e1e","tarball":"https://registry.npmjs.org/@bitauth/libauth/-/libauth-2.1.0.tgz","fileCount":330,"integrity":"sha512-O0cIN7/UPUHg6gaWHuePXIYRkvNPrc3zHfi80guZkkO4Ke9nSaN5mSITqhC5lKFBwAakr6OSToClXHN/IxiOfA==","signatures":[{"sig":"MEUCIFaw4MJgVLKmFVn6OHfa2OsHFg4VFtjBirhnc9eX0RX1AiEA33WsyRtjWjSAPQaqdpNkFv7QvZhYTFRYM34m2lWQCMQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bitauth%2flibauth@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4433724},"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":"cf2eb349160cac0b740a869c9f4b81b4bec91c55","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:policies && yarn test:unit","bench":"yarn build && yarn bench:browser-deps && yarn bench:test","build":"yarn build:wasm && yarn build:tsc","watch":"yarn build -w","wallet":"node 'build/lib/vmb-tests/bch-vmb-tests.live.spec.helper.js'","release":"yarn build && yarn changeset publish","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","changeset":"changeset","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:fast":"echo '\n\nUsage:\n yarn test:fast src/lib/key/bip39.spec.ts                    # run a single test file \n yarn test:fast --match=\"!*crypto*\" --match=\"!*vmb_tests*\"   # include/exclude tests with names matching pattern(s) \n\n' && ava -v","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 '\n\nUsage:\n yarn watch:test src/lib/key/bip39.spec.ts                    # watch a single test file \n yarn watch:test --match=\"!*crypto*\" --match=\"!*vmb_tests*\"   # include/exclude tests with names matching pattern(s) \n\n' && 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:policies":"yarn test:deps && yarn test:schemas && yarn test:lint && yarn test:cycles","test:prettier":"prettier . --list-different","test:spelling":"cspell \"{README.md,.github/*.md,src/**/*.ts}\"","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')\"","changeset:version":"yarn changeset version && yarn fix:prettier","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","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.2.4","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.1","publishConfig":{"provenance":true},"_hasShrinkwrap":false,"packageManager":"yarn@4.0.2","devDependencies":{"c8":"^9.0.0","ava":"^6.0.1","bip39":"^3.1.0","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","@changesets/cli":"^2.27.1","@fast-check/ava":"^1.2.1","@types/elliptic":"^6.4.18","@playwright/test":"^1.41.2","bitcore-lib-cash":"^10.0.23","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","@changesets/changelog-github":"^0.5.0","eslint-plugin-eslint-comments":"^3.2.0","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/libauth_2.1.0_1708764220705_0.5978500817280468","host":"s3://npm-registry-packages"},"_id":"@bitauth/libauth@2.1.0","version":"2.1.0"}