|
| 1 | +{ |
| 2 | + "name": "@solana/offchain-messages", |
| 3 | + "version": "5.0.0", |
| 4 | + "description": "Helpers for encoding and decoding messages according to the offchain message specification", |
| 5 | + "homepage": "https://www.solanakit.com/api#solanaoffchain-messages", |
| 6 | + "exports": { |
| 7 | + "edge-light": { |
| 8 | + "import": "./dist/index.node.mjs", |
| 9 | + "require": "./dist/index.node.cjs" |
| 10 | + }, |
| 11 | + "workerd": { |
| 12 | + "import": "./dist/index.node.mjs", |
| 13 | + "require": "./dist/index.node.cjs" |
| 14 | + }, |
| 15 | + "browser": { |
| 16 | + "import": "./dist/index.browser.mjs", |
| 17 | + "require": "./dist/index.browser.cjs" |
| 18 | + }, |
| 19 | + "node": { |
| 20 | + "import": "./dist/index.node.mjs", |
| 21 | + "require": "./dist/index.node.cjs" |
| 22 | + }, |
| 23 | + "react-native": "./dist/index.native.mjs", |
| 24 | + "types": "./dist/types/index.d.ts" |
| 25 | + }, |
| 26 | + "browser": { |
| 27 | + "./dist/index.node.cjs": "./dist/index.browser.cjs", |
| 28 | + "./dist/index.node.mjs": "./dist/index.browser.mjs" |
| 29 | + }, |
| 30 | + "main": "./dist/index.node.cjs", |
| 31 | + "module": "./dist/index.node.mjs", |
| 32 | + "react-native": "./dist/index.native.mjs", |
| 33 | + "types": "./dist/types/index.d.ts", |
| 34 | + "type": "commonjs", |
| 35 | + "files": [ |
| 36 | + "./dist/" |
| 37 | + ], |
| 38 | + "sideEffects": false, |
| 39 | + "keywords": [ |
| 40 | + "blockchain", |
| 41 | + "solana", |
| 42 | + "web3" |
| 43 | + ], |
| 44 | + "scripts": { |
| 45 | + "compile:docs": "typedoc", |
| 46 | + "compile:js": "tsup --config build-scripts/tsup.config.package.ts", |
| 47 | + "compile:typedefs": "tsc -p ./tsconfig.declarations.json", |
| 48 | + "dev": "NODE_OPTIONS=\"--localstorage-file=/tmp/node-localstorage-$(head /dev/urandom | tr -dc a-zA-Z0-9 | head -c 8)\" jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch", |
| 49 | + "prepublishOnly": "pnpm pkg delete devDependencies", |
| 50 | + "publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || (pnpm publish --tag ${PUBLISH_TAG:-canary} --access public --no-git-checks && (([ -n \"${GITHUB_OUTPUT:-}\" ] && echo 'published=true' >> \"$GITHUB_OUTPUT\") || true) && (([ \"$PUBLISH_TAG\" != \"canary\" ] && ../build-scripts/maybe-tag-latest.ts $npm_package_name@$npm_package_version) || true))", |
| 51 | + "publish-packages": "pnpm prepublishOnly && pnpm publish-impl", |
| 52 | + "style:fix": "pnpm eslint --fix src && pnpm prettier --log-level warn --ignore-unknown --write ./*", |
| 53 | + "test:lint": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent", |
| 54 | + "test:prettier": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent", |
| 55 | + "test:treeshakability:browser": "agadoo dist/index.browser.mjs", |
| 56 | + "test:treeshakability:native": "agadoo dist/index.native.mjs", |
| 57 | + "test:treeshakability:node": "agadoo dist/index.node.mjs", |
| 58 | + "test:typecheck": "tsc --noEmit", |
| 59 | + "test:unit:browser": "NODE_OPTIONS=\"--localstorage-file=/tmp/node-localstorage-$(head /dev/urandom | tr -dc a-zA-Z0-9 | head -c 8)\" TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent", |
| 60 | + "test:unit:node": "NODE_OPTIONS=\"--localstorage-file=/tmp/node-localstorage-$(head /dev/urandom | tr -dc a-zA-Z0-9 | head -c 8)\" TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent" |
| 61 | + }, |
| 62 | + "author": "Solana Labs Maintainers <maintainers@solanalabs.com>", |
| 63 | + "license": "MIT", |
| 64 | + "repository": { |
| 65 | + "type": "git", |
| 66 | + "url": "https://github.com/anza-xyz/kit" |
| 67 | + }, |
| 68 | + "bugs": { |
| 69 | + "url": "https://github.com/anza-xyz/kit/issues" |
| 70 | + }, |
| 71 | + "browserslist": [ |
| 72 | + "supports bigint and not dead", |
| 73 | + "maintained node versions" |
| 74 | + ], |
| 75 | + "dependencies": { |
| 76 | + "@solana/addresses": "workspace:*", |
| 77 | + "@solana/codecs-core": "workspace:*", |
| 78 | + "@solana/codecs-data-structures": "workspace:*", |
| 79 | + "@solana/codecs-numbers": "workspace:*", |
| 80 | + "@solana/codecs-strings": "workspace:*", |
| 81 | + "@solana/errors": "workspace:*", |
| 82 | + "@solana/keys": "workspace:*", |
| 83 | + "@solana/nominal-types": "workspace:*" |
| 84 | + }, |
| 85 | + "peerDependencies": { |
| 86 | + "typescript": ">=5.3.3" |
| 87 | + }, |
| 88 | + "engines": { |
| 89 | + "node": ">=20.18.0" |
| 90 | + } |
| 91 | +} |
0 commit comments