New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tsjsonrpc

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsjsonrpc - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

bundles/index.esm.js

108

package.json
{
"name": "tsjsonrpc",
"version": "1.0.0",
"version": "1.0.1",
"description": "TypeScript library with decorators for JSONRPC protocol. Powered by typescript-lib-starter",

@@ -12,110 +12,10 @@ "main": "./bundles/index.umd.js",

"type": "git",
"url": "https://www.github.com/Hotell/typescript-lib-starter"
"url": "https://github.com/SoEasy/tsjsonrpc"
},
"author": "Vladimir Sannikov",
"license": "MIT",
"engines": {
"node": ">=8.5"
},
"scripts": {
"cleanup": "shx rm -rf dist",
"prebuild": "npm run cleanup && npm run verify",
"build": "tsc && tsc --target es2018 --outDir dist/esm2015 && rollup -c config/rollup.config.js && rollup -c config/rollup.config.js --environment NODE_ENV:production",
"postbuild": "node scripts/copy.js && npm run size",
"docs": "typedoc -p . --theme minimal --target 'es6' --excludeNotExported --excludePrivate --ignoreCompilerErrors --exclude \"**/src/**/__tests__/*.*\" --out docs src/",
"test": "jest -c ./config/jest.config.js",
"test:watch": "npm t -- --watch",
"test:coverage": "npm t -- --coverage",
"test:ci": "npm t -- --ci",
"validate-js": "tsc -p ./config && tsc -p ./scripts",
"verify": "npm run validate-js && npm run test:ci",
"commit": "git-cz",
"style": "npm run format -- --list-different && npm run lint",
"style:fix": "npm run format:fix && npm run lint:fix",
"format": "prettier --config config/prettier.config.js \"**/*.{ts,tsx,js,jsx,css,scss,sass,less,md}\"",
"format:fix": "npm run format -- --write",
"lint": "tslint --project tsconfig.json --format codeFrame",
"lint:fix": "npm run lint -- --fix",
"prerelease": "npm run build",
"release": "standard-version",
"postrelease": "node scripts/copy.js && npm run release:github && npm run release:npm",
"release:github": "git push --no-verify --follow-tags origin master",
"release:npm": "cd dist && npm publish",
"release:preflight": "cd dist && npm pack",
"size": "npm run size:umd && npm run size:fesm",
"size:umd": "shx echo \"Gzipped+minified UMD bundle Size:\" && cross-var strip-json-comments --no-whitespace \"./dist/bundles/index.umd.min.js\" | gzip-size",
"size:fesm": "shx echo \"Gzipped+minified FESM bundle Size:\" && strip-json-comments --no-whitespace \"./dist/bundles/index.esm.min.js\" | gzip-size"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"validate-commit-msg": {
"types": "conventional-commit-types",
"maxSubjectLength": 120
}
},
"husky": {
"hooks": {
"commit-msg": "validate-commit-msg",
"pre-commit": "lint-staged",
"pre-push": "npm test -- --bail --onlyChanged"
}
},
"lint-staged": {
"**/*.{ts,tsx,js,jsx,css,scss,sass,less,md}": [
"prettier --config config/prettier.config.js --write",
"git add"
],
"src/**/*.{ts,tsx}": [
"npm run lint:fix",
"git add"
]
},
"peerDependencies": {
"tslib": ">=1.9.0"
},
"dependencies": {},
"devDependencies": {
"@types/chokidar": "1.7.5",
"@types/jest": "23.3.1",
"@types/json5": "0.0.30",
"@types/node": "10.9.2",
"@types/prettier": "1.13.2",
"@types/webpack-config-utils": "2.3.0",
"awesome-typescript-loader": "5.2.0",
"commitizen": "2.10.1",
"cross-var": "1.1.0",
"cz-conventional-changelog": "2.1.0",
"gzip-size-cli": "3.0.0",
"husky": "1.0.0-rc.13",
"jest": "23.5.0",
"jest-watch-typeahead": "0.2.0",
"json5": "2.0.1",
"lint-staged": "7.2.2",
"prettier": "1.14.2",
"rollup": "0.65.0",
"rollup-plugin-commonjs": "9.1.6",
"rollup-plugin-json": "3.0.0",
"rollup-plugin-node-resolve": "3.3.0",
"rollup-plugin-replace": "2.0.0",
"rollup-plugin-sourcemaps": "0.4.2",
"rollup-plugin-terser": "1.0.1",
"rollup-plugin-uglify": "4.0.0",
"shx": "0.3.2",
"sort-object-keys": "1.1.2",
"standard-version": "4.4.0",
"strip-json-comments-cli": "1.0.1",
"ts-jest": "23.1.4",
"tslib": "1.9.3",
"tslint": "5.11.0",
"tslint-config-prettier": "1.15.0",
"tslint-config-standard": "7.1.0",
"tslint-etc": "1.2.3",
"tslint-react": "3.6.0",
"typedoc": "0.12.0",
"typescript": "2.9.2",
"validate-commit-msg": "2.14.0",
"webpack-config-utils": "2.3.0"
}
}
"dependencies": {}
}

@@ -86,3 +86,3 @@ # tsjsonrpc

class HttpClientApater implements IHttpClient {
class HttpClientAdapter implements IHttpClient {
// Каким угодно способом закиньте ваш класс транспорта в адаптер

@@ -120,3 +120,3 @@ // В данном случае - внедрение через конструктор

@JsonRpcService.make({ service: 'services/auth', endpoint: 'private' })
@JsonRpcService.make('services/auth/private')
class AuthTransportService {

@@ -198,3 +198,3 @@ @JsonRpcMethod({ method: 'login' })

### JsonRpcService.make(config: { service: string, endpoint: string })
### JsonRpcService.make(endpoint?: string)
Декоратор для класса, в котором будут удаленные методы

@@ -201,0 +201,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc