UNPKG

@cashu/cashu-ts

Version:

cashu library for communicating with a cashu mint

121 lines (120 loc) 4.77 kB
{ "name": "@cashu/cashu-ts", "version": "4.5.0", "description": "cashu library for communicating with a cashu mint", "type": "module", "engines": { "node": ">=22.4.0" }, "types": "lib/types/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/cashubtc/cashu-ts" }, "bugs": { "url": "https://github.com/cashubtc/cashu-ts/issues" }, "scripts": { "build:scripts": "tsc -p scripts/tsconfig.json", "compile:es": "BUILD_FORMAT=es vite build", "compile:standalone": "BUILD_FORMAT=iife vite build", "compile": "npm run compile:es", "test:bundler": "node test/consumer/bundler/run-test.js", "test:iife": "node test/consumer/iife/run-test.js", "test:nodenext": "node test/consumer/nodenext/run-test.js", "test:reactnative": "node test/consumer/reactnative/run-test.js", "test:consumer": "npm run test:bundler && npm run test:iife && npm run test:nodenext && npm run test:reactnative", "test:prepare": "npx playwright install chromium firefox webkit --with-deps", "test:prepare:ci:chromium": "npx playwright install chromium", "test:prepare:ci:firefox": "npx playwright install firefox", "test:prepare:ci:webkit": "npx playwright install webkit --with-deps", "test": "vitest run --coverage --project node --project browser", "test-integration": "vitest run --coverage --project integration", "test-integration:browser": "vitest run --coverage --project integration-browser", "test-integration:browser:chromium": "INTEGRATION_BROWSER=chromium npm run test-integration:browser", "test-integration:browser:firefox": "INTEGRATION_BROWSER=firefox npm run test-integration:browser", "test-integration:browser:webkit": "INTEGRATION_BROWSER=webkit npm run test-integration:browser", "test-integration:browser:local:cdk": "scripts/test-integration-browser-local.sh cdk", "test-integration:browser:local:nutshell": "scripts/test-integration-browser-local.sh nutshell", "dev": "tsc --watch", "lint": "eslint '**/*.{js,ts}' --fix", "check-lint": "eslint '**/*.{js,ts}'", "format": "prettier --write .", "check-format": "prettier --check .", "typedoc": "typedoc", "api:check": "npm run compile && api-extractor run", "api:update": "npm run compile && api-extractor run --local", "setup-hooks": "chmod +x scripts/install-git-hooks.sh && ./scripts/install-git-hooks.sh", "uninstall-hooks": "git config --local --unset core.hooksPath && [ \"${REMOVE_GITHOOKS:-0}\" = \"1\" ] && rm -rf .githooks || echo 'To remove the installed hooks set REMOVE_GITHOOKS=1'", "prtasks": "npm run lint && npm run format && npm run api:update && npm run test && git status", "prepare": "husky && [ \"$CI\" != \"true\" ] && npm run setup-git || true", "setup-git": "git config commit.template .gitmessage", "migrate-hooks": "REMOVE_GITHOOKS=1 npm run uninstall-hooks && npm install", "update-docker-versions": "npm run build:scripts && node dist-scripts/UpdateMakefileMintVersion.js" }, "exports": { ".": { "types": "./lib/types/index.d.ts", "import": "./lib/cashu-ts.es.js", "default": "./lib/cashu-ts.es.js" } }, "lint-staged": { "*.{js,ts}": [ "eslint --fix", "prettier --write" ], "*.{json,md,yml,yaml}": [ "prettier --write" ] }, "keywords": [ "cashu" ], "author": "gandlaf21", "license": "MIT", "devDependencies": { "@commitlint/cli": "^20.5.3", "@commitlint/config-conventional": "^20.5.3", "@eslint/js": "^9.39.4", "@microsoft/api-extractor": "^7.58.7", "@types/node": "^25.6.0", "@types/node-fetch": "^2.6.4", "@types/ws": "^8.5.10", "@vitest/browser": "^4.1.5", "@vitest/browser-playwright": "^4.1.5", "@vitest/coverage-v8": "^4.1.5", "eslint": "^9.39.4", "eslint-config-prettier": "^10.1.8", "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-import": "^2.32.0", "eslint-plugin-n": "^17.24.0", "eslint-plugin-promise": "^7.3.0", "globals": "^16.5.0", "husky": "^9.1.7", "lint-staged": "^16.4.0", "mock-socket": "^9.3.1", "msw": "^2.14.2", "node-fetch": "^3.3.2", "playwright": "^1.59.1", "prettier": "^3.8.3", "prettier-plugin-jsdoc": "^1.8.0", "replace-in-file": "^8.4.0", "ts-node": "^10.9.2", "tsx": "^4.21.0", "typedoc": "^0.28.19", "typedoc-plugin-pages": "^1.1.0", "typescript": "^5.9.3", "typescript-eslint": "^8.59.1", "vite": "^8.0.10", "vite-plugin-dts": "^4.5.4", "vitest": "^4.1.5", "ws": "^8.20.0" }, "dependencies": { "@noble/curves": "^2.2.0", "@noble/hashes": "^2.2.0", "@scure/base": "^2.2.0", "@scure/bip32": "^2.2.0" } }