mirror of
https://github.com/dergigi/boris.git
synced 2025-12-24 18:14:21 +01:00
- Install applesauce-content package for content parsing - Use getParsedContent() to parse nostr content according to applesauce patterns - Create proper TypeScript interfaces for ParsedNode and ParsedContent - Add renderParsedContent() component to render parsed content with proper styling - Handle mentions, links, and text content with appropriate styling - Add CSS styles for nostr-mention and nostr-link classes - Follow applesauce-content documentation patterns for content rendering - Maintain type safety with proper interfaces instead of 'any' types This follows the applesauce-content documentation exactly as shown in the examples, providing proper content parsing and rendering.
146 lines
4.5 KiB
JSON
146 lines
4.5 KiB
JSON
{
|
|
"name": "@cashu/cashu-ts",
|
|
"version": "2.7.2",
|
|
"description": "cashu library for communicating with a cashu mint",
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=22.4.0"
|
|
},
|
|
"main": "lib/cashu-ts.cjs",
|
|
"module": "lib/cashu-ts.es.js",
|
|
"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": {
|
|
"compile": "vite build && node post-process-dts.js",
|
|
"compile:standalone": "BUILD_FORMAT=iife vite build && node post-process-dts.js",
|
|
"test:bundler": "node test/consumer-bundler/run-test.js",
|
|
"test:commonjs": "node test/consumer-commonjs/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:prepare": "npx playwright install chromium --with-deps",
|
|
"test": "vitest run --coverage --project node --project browser",
|
|
"test-integration": "vitest run --coverage --project integration",
|
|
"dev": "tsc --watch",
|
|
"lint": "eslint '**/*.{js,ts}' --fix",
|
|
"check-lint": "eslint '**/*.{js,ts}'",
|
|
"format": "prettier --write .",
|
|
"check-format": "prettier --check .",
|
|
"typedoc": "typedoc src/index.ts",
|
|
"api:check": "npm run compile && api-extractor run",
|
|
"api:update": "npm run compile && api-extractor run --local"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./lib/types/index.d.ts",
|
|
"require": "./lib/cashu-ts.cjs",
|
|
"import": "./lib/cashu-ts.es.js"
|
|
},
|
|
"./crypto/client": {
|
|
"types": "./lib/types/crypto/client/index.d.ts",
|
|
"require": "./lib/crypto/client.cjs",
|
|
"import": "./lib/crypto/client.es.js"
|
|
},
|
|
"./crypto/common": {
|
|
"types": "./lib/types/crypto/common/index.d.ts",
|
|
"require": "./lib/crypto/common.cjs",
|
|
"import": "./lib/crypto/common.es.js"
|
|
},
|
|
"./crypto/mint": {
|
|
"types": "./lib/types/crypto/mint/index.d.ts",
|
|
"require": "./lib/crypto/mint.cjs",
|
|
"import": "./lib/crypto/mint.es.js"
|
|
},
|
|
"./crypto/util": {
|
|
"types": "./lib/types/crypto/util/utils.d.ts",
|
|
"require": "./lib/crypto/util.cjs",
|
|
"import": "./lib/crypto/util.es.js"
|
|
},
|
|
"./crypto/client/NUT09": {
|
|
"types": "./lib/types/crypto/client/NUT09.d.ts",
|
|
"require": "./lib/crypto/client/NUT09.cjs",
|
|
"import": "./lib/crypto/client/NUT09.es.js"
|
|
},
|
|
"./crypto/client/NUT11": {
|
|
"types": "./lib/types/crypto/client/NUT11.d.ts",
|
|
"require": "./lib/crypto/client/NUT11.cjs",
|
|
"import": "./lib/crypto/client/NUT11.es.js"
|
|
},
|
|
"./crypto/client/NUT12": {
|
|
"types": "./lib/types/crypto/client/NUT12.d.ts",
|
|
"require": "./lib/crypto/client/NUT12.cjs",
|
|
"import": "./lib/crypto/client/NUT12.es.js"
|
|
},
|
|
"./crypto/client/NUT20": {
|
|
"types": "./lib/types/crypto/client/NUT20.d.ts",
|
|
"require": "./lib/crypto/client/NUT20.cjs",
|
|
"import": "./lib/crypto/client/NUT20.es.js"
|
|
},
|
|
"./crypto/common/NUT11": {
|
|
"types": "./lib/types/crypto/common/NUT11.d.ts",
|
|
"require": "./lib/crypto/common/NUT11.cjs",
|
|
"import": "./lib/crypto/common/NUT11.es.js"
|
|
},
|
|
"./crypto/mint/NUT11": {
|
|
"types": "./lib/types/crypto/mint/NUT11.d.ts",
|
|
"require": "./lib/crypto/mint/NUT11.cjs",
|
|
"import": "./lib/crypto/mint/NUT11.es.js"
|
|
},
|
|
"./crypto/mint/NUT12": {
|
|
"types": "./lib/types/crypto/mint/NUT12.d.ts",
|
|
"require": "./lib/crypto/mint/NUT12.cjs",
|
|
"import": "./lib/crypto/mint/NUT12.es.js"
|
|
}
|
|
},
|
|
"keywords": [
|
|
"cashu"
|
|
],
|
|
"author": "gandlaf21",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.31.0",
|
|
"@microsoft/api-extractor": "^7.52.4",
|
|
"@types/node-fetch": "^2.6.4",
|
|
"@types/ws": "^8.5.10",
|
|
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
"@typescript-eslint/parser": "^8.38.0",
|
|
"@vitest/browser": "^3.2.4",
|
|
"@vitest/coverage-v8": "^3.2.4",
|
|
"eslint": "^9.31.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
"eslint-plugin-import": "^2.32.0",
|
|
"eslint-plugin-n": "^17.21.1",
|
|
"eslint-plugin-promise": "^7.2.1",
|
|
"globals": "^16.3.0",
|
|
"mock-socket": "^9.3.1",
|
|
"msw": "^2.6.6",
|
|
"node-fetch": "^3.3.2",
|
|
"playwright": "^1.54.1",
|
|
"prettier": "^3.6.2",
|
|
"prettier-plugin-jsdoc": "^1.3.3",
|
|
"replace-in-file": "^8.3.0",
|
|
"tmp-promise": "^3.0.3",
|
|
"ts-node": "^10.9.2",
|
|
"typedoc": "^0.28.8",
|
|
"typescript": "^5.7.2",
|
|
"typescript-eslint": "^8.38.0",
|
|
"vite": "^7.0.6",
|
|
"vite-plugin-dts": "^4.5.4",
|
|
"vite-plugin-node-polyfills": "^0.24.0",
|
|
"vitest": "^3.2.4",
|
|
"ws": "^8.16.0"
|
|
},
|
|
"dependencies": {
|
|
"@noble/curves": "^1.9.5",
|
|
"@noble/hashes": "^1.5.0",
|
|
"@scure/bip32": "^1.5.0"
|
|
}
|
|
}
|