{ "name": "@switchboard-xyz/switchboard-v2", "version": "0.0.126", "license": "MIT", "author": "mitch@switchboard.xyz", "description": "API wrapper for intergating with the Switchboardv2 program", "keywords": [ "oracle", "solana", "Defi" ], "repository": { "type": "git", "url": "https://github.com/switchboard-xyz/switchboard-v2", "directory": "libraries/ts" }, "homepage": "https://docs.switchboard.xyz", "files": [ "lib", "src", "package.json" ], "exports": { ".": { "import": "./lib/esm/index.js", "require": "./lib/cjs/index.js" }, "./package.json": "./package.json" }, "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "types": "lib/cjs/index.d.ts", "scripts": { "docgen": "typedoc --entryPoints src/index.ts --out ../../website/static/api/ts", "build:protos": "shx mkdir -p src/protos; pbjs --root sbv2Protos -t static-module -o src/protos/index.js ../protos/*.proto && pbts -o src/protos/index.d.ts src/protos/index.js; ", "build:cjs:protos": "shx rm -rf lib/cjs/protos; shx mkdir -p lib/cjs/protos; pbjs --root sbv2Protos -t static-module -o lib/cjs/protos/index.js ../protos/*.proto && pbts -o lib/cjs/protos/index.d.ts lib/cjs/protos/index.js", "build:esm:protos": "shx rm -rf lib/esm/protos; shx mkdir -p lib/esm/protos; pbjs --root sbv2Protos -t static-module --es6 -w \"es6\" -o lib/esm/protos/index.js ../protos/*.proto && pbts -o lib/esm/protos/index.d.ts lib/esm/protos/index.js && shx --silent sed -i 'protobufjs/minimal' 'protobufjs/minimal.js' lib/esm/protos/index.js && shx --silent sed -i 'import \\* as' 'import' lib/esm/protos/index.js", "build:cjs": "tsc -p tsconfig.cjs.json && yarn build:cjs:protos", "build:esm": "tsc && yarn build:esm:protos", "build": "yarn build:protos && yarn build:cjs && yarn build:esm", "watch": "tsc -p tsconfig.cjs.json --watch", "test": "mocha --extension ts --require ts-node/register -t 1000000 tests/", "lint": "eslint --fix-dry-run --ext .ts src/**/*.ts", "prepublish": "shx rm -rf lib && yarn build" }, "peerDependencies": { "@solana/spl-governance": "^0.0.34", "@solana/web3.js": "^1.44.3" }, "dependencies": { "@project-serum/anchor": "^0.24.2", "@solana/spl-governance": "^0.0.34", "@solana/spl-token-v2": "npm:@solana/spl-token@^0.2.0", "@solana/web3.js": "^1.44.3", "@types/big.js": "^6.1.4", "assert": "^2.0.0", "big.js": "^6.2.0", "bs58": "^5.0.0", "chan": "^0.6.1", "crypto-js": "^4.0.0", "glob": "^8.0.3", "long": "^4.0.0", "mocha": "^9.1.1", "node-fetch": "^3.2.6", "protobufjs": "^6.11.3" }, "devDependencies": { "@types/big.js": "^6.1.4", "@types/long": "^4.0.1", "@types/mocha": "^9.0.0", "@types/node": "^17.0.45", "shx": "^0.3.4", "typedoc": "^0.23.8", "typescript": "^4.7" } }