@stellar/stellar-base
Version:
Low-level support library for the Stellar network.
137 lines (136 loc) • 4.22 kB
JSON
{
"name": "@stellar/stellar-base",
"version": "13.1.0",
"description": "Low-level support library for the Stellar network.",
"main": "./lib/index.js",
"browser": {
"main": "./dist/stellar-base.min.js",
"sodium-native": false
},
"types": "./types/index.d.ts",
"scripts": {
"build": "yarn build:node && yarn build:browser",
"build:node": "babel --out-dir ./lib/ ./src/",
"build:browser": "webpack -c ./config/webpack.config.browser.js",
"build:node:prod": "cross-env NODE_ENV=production yarn build",
"build:browser:prod": "cross-env NODE_ENV=production yarn build:browser",
"build:prod": "cross-env NODE_ENV=production yarn build",
"test": "yarn build && yarn test:node && yarn test:browser",
"test:node": "NODE_OPTIONS=$(test ! $(node -v | awk -F'.' '{printf substr($1,2)}') = '18' && echo '--no-experimental-detect-module') yarn _nyc mocha",
"test:browser": "karma start ./config/karma.conf.js",
"docs": "jsdoc -c ./config/.jsdoc.json --verbose",
"lint": "eslint -c ./config/.eslintrc.js src/ && dtslint --localTs node_modules/typescript/lib types/",
"preversion": "yarn clean && yarn fmt && yarn lint && yarn build:prod && yarn test",
"fmt": "prettier --config ./config/prettier.config.js --ignore-path ./config/.prettierignore --write './**/*.js'",
"prepare": "yarn build:prod",
"clean": "rm -rf lib/ dist/ coverage/ .nyc_output/",
"_nyc": "nyc --nycrc-path ./config/.nycrc"
},
"engines": {
"node": ">=18.0.0"
},
"mocha": {
"require": [
"@babel/register",
"./test/test-helper.js"
],
"reporter": "dot",
"recursive": true,
"timeout": 5000
},
"nyc": {
"sourceMap": false,
"instrument": false,
"reporter": "text-summary"
},
"files": [
"/dist/*.js",
"/lib/**/*.js",
"/types/*.d.ts"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{js,json}": [
"yarn fmt",
"yarn lint"
]
},
"repository": {
"type": "git",
"url": "https://github.com/stellar/js-stellar-base.git"
},
"keywords": [
"stellar"
],
"author": "Stellar Development Foundation <hello@stellar.org>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/stellar/js-stellar-base/issues"
},
"homepage": "https://github.com/stellar/js-stellar-base",
"devDependencies": {
"@babel/cli": "^7.27.0",
"@babel/core": "^7.26.10",
"@babel/eslint-parser": "^7.27.0",
"@babel/eslint-plugin": "^7.27.0",
"@babel/preset-env": "^7.26.9",
"@babel/register": "^7.25.9",
"@definitelytyped/dtslint": "^0.0.182",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@types/node": "^20.14.11",
"@typescript-eslint/parser": "^6.20.0",
"babel-loader": "^9.2.1",
"babel-plugin-istanbul": "^6.1.1",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.2",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-import": "^0.0.1",
"eslint-plugin-prettier": "^5.2.5",
"eslint-webpack-plugin": "^4.2.0",
"ghooks": "^2.0.4",
"husky": "^8.0.3",
"jsdoc": "^4.0.4",
"karma": "^6.4.4",
"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.5.0",
"minami": "^1.1.1",
"mocha": "^10.8.2",
"node-polyfill-webpack-plugin": "^3.0.0",
"nyc": "^15.1.0",
"prettier": "^3.5.3",
"randombytes": "^2.1.0",
"sinon": "^16.1.0",
"sinon-chai": "^3.7.0",
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.14",
"ts-node": "^10.9.2",
"typescript": "5.6.3",
"webpack": "^5.98.0",
"webpack-cli": "^5.1.1"
},
"dependencies": {
"@stellar/js-xdr": "^3.1.2",
"base32.js": "^0.1.0",
"bignumber.js": "^9.1.2",
"buffer": "^6.0.3",
"sha.js": "^2.3.6",
"tweetnacl": "^1.0.3"
},
"optionalDependencies": {
"sodium-native": "^4.3.3"
}
}