Splits ProtocolMessages exceeding NIP-44's 65,535-byte plaintext ceiling across multiple gift-wrapped events. Symmetric (both directions), fire-and-forget, backward-compatible via a new transport-level \`extensions\` field on \`dapp_ready\` and \`wallet_ready\`. Resolves the \"Failed to swap: invalid plaintext size\" error on aggregated swap requests and enables signed-tx responses up to the 1 MB BCH consensus limit (~2 MB hex).
49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"name": "@wizardconnect/core",
|
|
"version": "0.2.0",
|
|
"type": "module",
|
|
"description": "Transport and protocol primitives for WizardConnect",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitlab.com/riftenlabs/lib/wizardconnect",
|
|
"directory": "packages/core"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./hdwalletv1-serialize": {
|
|
"types": "./dist/protocols/hdwalletv1-serialize.d.ts",
|
|
"default": "./dist/protocols/hdwalletv1-serialize.js"
|
|
}
|
|
},
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist/"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest --config vitest.config.ts --run --passWithNoTests",
|
|
"lint:prettier": "prettier --ignore-path ../../.gitignore . --list-different",
|
|
"lint:eslint": "eslint .",
|
|
"lint": "npm run lint:eslint && npm run lint:prettier",
|
|
"fix": "npm run fix:eslint && npm run fix:prettier",
|
|
"fix:prettier": "prettier --ignore-path ../../.gitignore . --write",
|
|
"fix:eslint": "npm run lint:eslint -- --fix"
|
|
},
|
|
"dependencies": {
|
|
"@bch-wc2/interfaces": "^0.0.8",
|
|
"nostr-tools": "^2.23.0",
|
|
"@bitauth/libauth": "^3.1.0-next.2",
|
|
"eventemitter3": "^5.0.1",
|
|
"isomorphic-ws": "^5.0.0",
|
|
"lossless-json": "^4.3.0",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.6.2",
|
|
"vitest": "^3.2.3"
|
|
}
|
|
}
|