@stellar/stellar-sdk
Version:
A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.
218 lines (217 loc) • 8.29 kB
JSON
{
"name": "@stellar/stellar-sdk",
"version": "14.5.0",
"description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
"keywords": [
"stellar"
],
"homepage": "https://github.com/stellar/js-stellar-sdk",
"bugs": {
"url": "https://github.com/stellar/js-stellar-sdk/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/stellar/js-stellar-sdk.git"
},
"license": "Apache-2.0",
"author": "Stellar Development Foundation <hello@stellar.org>",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"browser": "./dist/stellar-sdk.min.js",
"files": [
"/types",
"/lib",
"/dist",
"/bin"
],
"bin": {
"stellar-js": "./bin/stellar-js"
},
"exports": {
".": {
"browser": "./dist/stellar-sdk.min.js",
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"./contract": {
"types": "./lib/contract/index.d.ts",
"default": "./lib/contract/index.js"
},
"./rpc": {
"types": "./lib/rpc/index.d.ts",
"default": "./lib/rpc/index.js"
},
"./no-axios": {
"browser": "./dist/stellar-sdk-no-axios.min.js",
"types": "./lib/no-axios/index.d.ts",
"default": "./lib/no-axios/index.js"
},
"./no-axios/contract": {
"types": "./lib/no-axios/contract/index.d.ts",
"default": "./lib/no-axios/contract/index.js"
},
"./no-axios/rpc": {
"types": "./lib/no-axios/rpc/index.d.ts",
"default": "./lib/no-axios/rpc/index.js"
},
"./no-eventsource": {
"browser": "./dist/stellar-sdk-no-eventsource.min.js",
"types": "./lib/no-eventsource/index.d.ts",
"default": "./lib/no-eventsource/index.js"
},
"./no-eventsource/contract": {
"types": "./lib/no-eventsource/contract/index.d.ts",
"default": "./lib/no-eventsource/contract/index.js"
},
"./no-eventsource/rpc": {
"types": "./lib/no-eventsource/rpc/index.d.ts",
"default": "./lib/no-eventsource/rpc/index.js"
},
"./minimal": {
"browser": "./dist/stellar-sdk-minimal.min.js",
"types": "./lib/minimal/index.d.ts",
"default": "./lib/minimal/index.js"
},
"./minimal/contract": {
"types": "./lib/minimal/contract/index.d.ts",
"default": "./lib/minimal/contract/index.js"
},
"./minimal/rpc": {
"types": "./lib/minimal/rpc/index.d.ts",
"default": "./lib/minimal/rpc/index.js"
}
},
"scripts": {
"setup": "git config blame.ignoreRevsFile .git-blame-ignore-revs",
"build": "cross-env NODE_ENV=development yarn _build",
"build:prod": "cross-env NODE_ENV=production yarn _build",
"build:node": "yarn _babel && yarn build:ts",
"build:node:no-axios": "cross-env OUTPUT_DIR=lib/no-axios USE_AXIOS=false yarn build:node",
"build:node:no-eventsource": "cross-env OUTPUT_DIR=lib/no-eventsource USE_EVENTSOURCE=false yarn build:node",
"build:node:minimal": "cross-env OUTPUT_DIR=lib/minimal USE_AXIOS=false USE_EVENTSOURCE=false yarn build:node",
"build:node:all": "yarn build:node && yarn build:node:no-axios && yarn build:node:no-eventsource && yarn build:node:minimal",
"clean:temp": "rm -f ./config/tsconfig.tmp.json",
"build:ts": "node config/set-output-dir.js && tsc -p ./config/tsconfig.tmp.json && yarn clean:temp",
"build:browser": "webpack -c config/webpack.config.browser.js",
"build:browser:no-axios": "cross-env USE_AXIOS=false webpack -c config/webpack.config.browser.js",
"build:browser:no-eventsource": "cross-env USE_EVENTSOURCE=false webpack -c config/webpack.config.browser.js",
"build:browser:minimal": "cross-env USE_AXIOS=false USE_EVENTSOURCE=false webpack -c config/webpack.config.browser.js",
"build:browser:all": "yarn build:browser && cross-env no_clean=true yarn build:browser:no-axios && cross-env no_clean=true yarn build:browser:no-eventsource && cross-env no_clean=true yarn build:browser:minimal",
"build:docs": "cross-env NODE_ENV=docs yarn _babel",
"clean": "rm -rf lib/ dist/ coverage/ .nyc_output/ jsdoc/ test/e2e/.soroban",
"docs": "yarn build:docs && jsdoc -c ./config/.jsdoc.json",
"test": "yarn test:node && yarn test:integration && yarn test:browser",
"test:all": "yarn test:node && yarn test:integration && yarn test:browser && yarn test:e2e",
"test:e2e": "./test/e2e/initialize.sh && vitest run --config config/vitest.config.e2e.ts --coverage",
"test:node": "vitest run test/unit --config config/vitest.config.ts --coverage",
"test:e2e:noeval": "NODE_OPTIONS=--disallow-code-generation-from-strings yarn test:e2e",
"test:integration": "vitest run test/integration --config config/vitest.config.ts --coverage",
"test:browser": "yarn build:browser && vitest run --config config/vitest.config.browser.ts test/unit --coverage",
"test:browser:no-axios": "cross-env USE_AXIOS=false yarn build:browser && cross-env USE_AXIOS=false vitest run --config config/vitest.config.browser.ts test/unit",
"fmt": "yarn _prettier && yarn eslint src/ --fix",
"preversion": "yarn clean && yarn _prettier && yarn build:prod && yarn test",
"prepare": "yarn build:prod && yarn setup",
"download-sac-spec": "node scripts/download-sac-spec.js",
"_build": "yarn build:node:all && yarn build:browser:all",
"_babel": "babel --extensions '.ts' --out-dir ${OUTPUT_DIR:-lib} src/",
"_nyc": "node node_modules/.bin/nyc --nycrc-path config/.nycrc",
"_prettier": "prettier --ignore-path config/.prettierignore --write './src/**/*.ts' './test/**/*.{js,ts}'"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{js,json,ts}": [
"yarn fmt"
]
},
"engines": {
"node": ">=20.0.0"
},
"nyc": {
"instrument": false,
"sourceMap": false,
"reporter": [
"text-summary"
]
},
"devDependencies": {
"@babel/cli": "^7.28.0",
"@babel/core": "^7.28.4",
"@babel/eslint-plugin": "^7.26.10",
"@babel/preset-env": "^7.28.0",
"@babel/preset-typescript": "^7.26.0",
"@babel/register": "^7.25.9",
"@definitelytyped/dtslint": "^0.2.29",
"@eslint/compat": "^1.4.1",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/detect-node": "^2.0.0",
"@types/eventsource": "^1.1.12",
"@types/json-schema": "^7.0.15",
"@types/lodash": "^4.17.20",
"@types/node": "^20.14.11",
"@types/randombytes": "^2.0.1",
"@types/urijs": "^1.19.20",
"@typescript-eslint/parser": "^8.46.4",
"@vitest/browser": "^3.2.4",
"@vitest/coverage-istanbul": "3.2.4",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"axios-mock-adapter": "^1.22.0",
"babel-loader": "^9.1.3",
"babel-plugin-istanbul": "^7.0.1",
"babel-plugin-transform-define": "^2.1.4",
"better-docs": "^2.7.3",
"buffer": "^6.0.3",
"cross-env": "^7.0.3",
"dotenv": "^16.6.0",
"eslint": "^9.39.1",
"eslint-config-airbnb-extended": "^2.3.2",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsdoc": "^61.1.12",
"eslint-plugin-prettier": "^5.5.4",
"eslint-webpack-plugin": "^5.0.2",
"ghooks": "^2.0.4",
"husky": "^9.1.6",
"jsdoc": "^4.0.4",
"jsdom": "^27.0.0",
"lint-staged": "^15.5.1",
"lodash": "^4.17.21",
"node-polyfill-webpack-plugin": "^3.0.0",
"null-loader": "^4.0.1",
"nyc": "^17.0.0",
"playwright": "^1.56.0",
"prettier": "^3.6.2",
"randombytes": "^2.1.0",
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.14",
"ts-node": "^10.9.2",
"typescript": "5.6.3",
"typescript-eslint": "^8.46.4",
"vitest": "^3.2.4",
"webpack": "^5.102.1",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@stellar/stellar-base": "^14.0.4",
"axios": "^1.13.3",
"bignumber.js": "^9.3.1",
"commander": "^14.0.2",
"eventsource": "^2.0.2",
"feaxios": "^0.0.23",
"randombytes": "^2.1.0",
"toml": "^3.0.0",
"urijs": "^1.19.1"
},
"overrides": {
"chalk": "5.3.0",
"strip-ansi": "7.1.0",
"color-convert": "2.0.1",
"color-name": "1.1.4"
}
}