Files
stacks-blockchain-api/client/package.json
Matthew Little 5634522132 feat: add listener callback to socket-io client subscription functions (#1799)
* feat: add listener callback to socket-io client subscription functions

* chore: fix test

* test: add unit tests for socket-io-client

* docs: update socket-io client docs

* chore: lint fix in client lib src

* test: fix flaky pox test
2024-01-05 16:41:32 +01:00

73 lines
3.1 KiB
JSON

{
"name": "@stacks/blockchain-api-client",
"version": "0.1.2",
"access": "public",
"description": "Client for the Stacks Blockchain API",
"homepage": "https://github.com/hirosystems/stacks-blockchain-api/tree/master/client#readme",
"author": "Hiro Systems PBC <engineering@hiro.so> (https://hiro.so)",
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/hirosystems/stacks-blockchain-api.git",
"directory": "client"
},
"bugs": {
"url": "https://github.com/hirosystems/stacks-blockchain-api/issues"
},
"main": "lib/index.js",
"unpkg": "lib/index.umd.js",
"scripts": {
"prepublishOnly": "npm run build",
"build": "rimraf ./lib && npm run generate-openapi && npm run build:node && npm run build:browser",
"build:node": "tsc",
"build:browser": "microbundle -i src/index.ts -o lib/index.umd.js --no-pkg-main -f umd --external none --globals none --no-compress --tsconfig tsconfig.browser.json --name StacksBlockchainApiClient",
"build:browser:watch": "npm run build:browser -- watch",
"start": "concurrently npm:build:browser:watch npm:open",
"test": "ts-node test/test.ts",
"lint": "eslint . --ext .ts -f unix",
"lint:prettier": "prettier --check ./src/**/*.ts",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx -f unix --fix && prettier --write --check src/**/*.ts",
"open": "http-server -o 9222 -o index.html",
"prep-openapi": "rimraf ./.tmp && rimraf ./src/generated && swagger-cli bundle --dereference -o ./.tmp/openapi-temp.json ../docs/openapi.yaml && shx sed -i '^.*\\$schema.*$' '' ./.tmp/openapi-temp.json > ./.tmp/openapi.json",
"generate-openapi": "npm run prep-openapi && openapi-generator-cli generate --skip-validate-spec -g typescript-fetch --additional-properties=withInterfaces=true,typescriptThreePlus=true,supportsES6=true,legacyDiscriminatorBehavior=false,enumPropertyNaming=original,modelPropertyNaming=original -i ./.tmp/openapi.json -o ./src/generated > ./.tmp/gen.log",
"openapi-generator-version": "openapi-generator-cli version-manager list",
"generate:docs": "npm run generate-openapi && typedoc src/**/*.ts"
},
"prettier": "@stacks/prettier-config",
"files": [
"src",
"lib"
],
"dependencies": {
"@stacks/stacks-blockchain-api-types": "*",
"@types/ws": "7.4.7",
"cross-fetch": "3.1.5",
"eventemitter3": "4.0.7",
"jsonrpc-lite": "2.2.0",
"socket.io-client": "4.7.3",
"ws": "8.16.0"
},
"devDependencies": {
"@apidevtools/swagger-cli": "4.0.4",
"@openapitools/openapi-generator-cli": "2.4.21",
"@stacks/eslint-config": "2.0.0",
"@stacks/prettier-config": "0.0.10",
"@types/node": "20.10.6",
"@typescript-eslint/eslint-plugin": "6.17.0",
"@typescript-eslint/parser": "6.17.0",
"concurrently": "7.6.0",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.2",
"eslint-plugin-unused-imports": "3.0.0",
"http-server": "14.0.0",
"microbundle": "0.13.3",
"prettier": "3.1.1",
"rimraf": "5.0.0",
"shx": "0.3.3",
"ts-node": "10.9.2",
"typedoc": "0.25.6",
"typescript": "5.3.3"
}
}