134 lines
4.0 KiB
JSON
134 lines
4.0 KiB
JSON
{
|
|
"name": "@stellar/stellar-base",
|
|
"version": "12.1.1",
|
|
"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.25.6",
|
|
"@babel/core": "^7.25.2",
|
|
"@babel/eslint-parser": "^7.25.1",
|
|
"@babel/eslint-plugin": "^7.25.1",
|
|
"@babel/preset-env": "^7.25.4",
|
|
"@babel/register": "^7.24.6",
|
|
"@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.1.3",
|
|
"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.30.0",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-prefer-import": "^0.0.1",
|
|
"eslint-plugin-prettier": "^5.2.1",
|
|
"eslint-webpack-plugin": "^4.2.0",
|
|
"ghooks": "^2.0.4",
|
|
"husky": "^8.0.3",
|
|
"jsdoc": "^4.0.3",
|
|
"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.2.10",
|
|
"minami": "^1.1.1",
|
|
"mocha": "^10.7.3",
|
|
"node-polyfill-webpack-plugin": "^3.0.0",
|
|
"nyc": "^15.1.0",
|
|
"prettier": "^3.3.3",
|
|
"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.6.2",
|
|
"webpack": "^5.93.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.1.1"
|
|
}
|
|
}
|