{ "name": "@stellar/stellar-sdk", "version": "11.3.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 ", "main": "./lib/index.js", "types": "./lib/index.d.ts", "browser": "./dist/stellar-sdk.min.js", "files": [ "/types", "/lib", "/dist" ], "scripts": { "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:ts": "tsc -p ./config/tsconfig.json", "build:test": "tsc -p ./test/unit/tsconfig.json", "build:browser": "webpack -c config/webpack.config.browser.js", "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 --verbose", "test": "yarn build:test && yarn test:node && yarn test:integration && yarn test:browser", "test:e2e": "./test/e2e/initialize.sh && ava", "test:node": "yarn _nyc mocha --recursive 'test/unit/**/*.js'", "test:integration": "yarn _nyc mocha --recursive 'test/integration/**/*.js'", "test:browser": "karma start config/karma.conf.js", "fmt": "yarn eslint -c .eslintrc.js src/ --fix && yarn _prettier", "preversion": "yarn clean && yarn fmt && yarn build:prod && yarn test", "prepare": "yarn build:prod", "_build": "yarn build:node && yarn build:test && yarn build:browser", "_babel": "babel --extensions '.ts' --out-dir lib/ src/", "_nyc": "nyc --nycrc-path config/.nycrc", "_prettier": "prettier --ignore-path config/.prettierignore --write './test/**/*.js'" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "**/*.{js,json,ts}": [ "yarn fmt" ] }, "mocha": { "reporter": "spec", "require": [ "@babel/register", "test/test-nodejs.js" ], "exclude": [ "test/test-browser.js" ], "sort": true, "recursive": true, "timeout": 30000 }, "nyc": { "instrument": false, "sourceMap": false, "reporter": [ "text-summary" ] }, "devDependencies": { "@babel/cli": "^7.24.1", "@babel/core": "^7.24.3", "@babel/eslint-parser": "^7.24.1", "@babel/eslint-plugin": "^7.22.10", "@babel/preset-env": "^7.24.3", "@babel/preset-typescript": "^7.24.1", "@babel/register": "^7.23.7", "@definitelytyped/dtslint": "^0.1.2", "@istanbuljs/nyc-config-babel": "3.0.0", "@stellar/tsconfig": "^1.0.2", "@types/chai": "^4.3.14", "@types/detect-node": "^2.0.0", "@types/eventsource": "^1.1.12", "@types/json-schema": "^7.0.15", "@types/lodash": "^4.17.0", "@types/mocha": "^10.0.2", "@types/node": "^20.11.30", "@types/randombytes": "^2.0.1", "@types/sinon": "^17.0.2", "@types/urijs": "^1.19.20", "@typescript-eslint/parser": "^6.20.0", "ava": "^5.3.1", "axios-mock-adapter": "^1.22.0", "babel-loader": "^9.1.3", "babel-plugin-istanbul": "^6.1.1", "buffer": "^6.0.3", "chai": "^4.3.10", "chai-as-promised": "^7.1.1", "chai-http": "^4.3.0", "cross-env": "^7.0.3", "dotenv": "^16.4.5", "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prefer-import": "^0.0.1", "eslint-plugin-prettier": "^5.1.2", "eslint-webpack-plugin": "^4.1.0", "ghooks": "^2.0.4", "husky": "^8.0.3", "jsdoc": "^4.0.2", "json-schema-faker": "^0.5.6", "karma": "^6.4.3", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^3.1.0", "karma-coverage": "^2.2.1", "karma-firefox-launcher": "^2.1.3", "karma-mocha": "^2.0.0", "karma-sinon-chai": "^2.0.2", "karma-webpack": "^5.0.1", "lint-staged": "^15.2.2", "lodash": "^4.17.21", "minami": "^1.1.1", "mocha": "^10.3.0", "node-polyfill-webpack-plugin": "^3.0.0", "nyc": "^15.1.0", "prettier": "^3.2.5", "randombytes": "^2.1.0", "sinon": "^17.0.1", "sinon-chai": "^3.7.0", "taffydb": "^2.7.3", "terser-webpack-plugin": "^5.3.10", "ts-node": "^10.9.2", "typescript": "^5.4.3", "webpack": "^5.91.0", "webpack-cli": "^5.0.1" }, "dependencies": { "@stellar/stellar-base": "^11.0.1", "axios": "^1.6.8", "bignumber.js": "^9.1.2", "eventsource": "^2.0.2", "randombytes": "^2.1.0", "toml": "^3.0.0", "urijs": "^1.19.1" }, "ava": { "files": [ "./test/e2e/src/test-*" ], "require": [ "dotenv/config" ], "timeout": "2m" } }