stellar/js-stellar-base

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@stellar/stellar-base",
  "version": "11.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": "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"
  },
  "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.24.5",
    "@babel/core": "^7.24.5",
    "@babel/eslint-parser": "^7.24.5",
    "@babel/eslint-plugin": "^7.24.5",
    "@babel/preset-env": "^7.24.5",
    "@babel/register": "^7.23.7",
    "@definitelytyped/dtslint": "^0.0.182",
    "@istanbuljs/nyc-config-babel": "3.0.0",
    "@types/node": "^20.12.7",
    "@typescript-eslint/parser": "^6.20.0",
    "babel-loader": "^9.1.3",
    "babel-plugin-istanbul": "^6.1.1",
    "chai": "^4.3.10",
    "chai-as-promised": "^7.1.1",
    "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.29.1",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-prefer-import": "^0.0.1",
    "eslint-plugin-prettier": "^5.1.3",
    "eslint-webpack-plugin": "^4.1.0",
    "ghooks": "^2.0.4",
    "husky": "^8.0.3",
    "jsdoc": "^4.0.2",
    "karma": "^6.4.3",
    "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",
    "minami": "^1.1.1",
    "mocha": "^10.4.0",
    "node-polyfill-webpack-plugin": "^3.0.0",
    "nyc": "^15.1.0",
    "prettier": "^3.2.5",
    "randombytes": "^2.1.0",
    "sinon": "^16.1.0",
    "sinon-chai": "^3.7.0",
    "taffydb": "^2.7.3",
    "terser-webpack-plugin": "^5.3.10",
    "ts-node": "^10.9.2",
    "typescript": "^5.4.5",
    "webpack": "^5.90.3",
    "webpack-cli": "^5.1.1"
  },
  "dependencies": {
    "@stellar/js-xdr": "^3.1.1",
    "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.1.1"
  }
}