async-call-rpc
Advanced tools
Comparing version 6.0.2 to 6.0.3
@@ -0,0 +0,0 @@ /// <reference types="./base.d.ts" /> |
@@ -0,0 +0,0 @@ /// <reference types="./full.d.ts" /> |
{ | ||
"name": "async-call-rpc", | ||
"version": "6.0.2", | ||
"packageManager": "pnpm@7.2.1", | ||
"version": "6.0.3", | ||
"description": "A lightweight JSON RPC server & client", | ||
@@ -10,2 +11,3 @@ "main": "out/base.js", | ||
".": { | ||
"types": "./out/base.d.ts", | ||
"require": "./out/base.js", | ||
@@ -15,2 +17,3 @@ "import": "./out/base.mjs" | ||
"./full": { | ||
"types": "./out/full.d.ts", | ||
"require": "./out/full.js", | ||
@@ -20,2 +23,3 @@ "import": "./out/full.mjs" | ||
"./full.min": { | ||
"types": "./out/full.d.ts", | ||
"require": "./out/full.min.js", | ||
@@ -25,2 +29,3 @@ "import": "./out/full.min.mjs" | ||
"./base": { | ||
"types": "./out/base.d.ts", | ||
"require": "./out/base.js", | ||
@@ -30,2 +35,3 @@ "import": "./out/base.mjs" | ||
"./base.min": { | ||
"types": "./out/base.d.ts", | ||
"require": "./out/base.min.js", | ||
@@ -52,2 +58,18 @@ "import": "./out/base.min.mjs" | ||
}, | ||
"scripts": { | ||
"prepublishOnly": "npm run clean && npm run test && npm run build", | ||
"clean": "rimraf ./out ./utils/web ./utils/node ./es ./coverage ./temp", | ||
"release": "npm run clean && npm run test && npm run build && standard-version", | ||
"watch:tsc": "tsc -b -w", | ||
"build:tsc": "tsc -b", | ||
"watch:rollup": "rollup -c -w", | ||
"build:rollup": "rollup -c", | ||
"build": "npm run build:tsc && npm run build:rollup && npm run doc", | ||
"doc:api": "api-extractor run --local --verbose", | ||
"doc:md": "api-documenter markdown -o docs -i temp", | ||
"doc": "run-s doc:api doc:md", | ||
"start": "run-p watch:rollup watch:tsc watch:test", | ||
"test": "jest --coverage", | ||
"watch:test": "jest --watch" | ||
}, | ||
"repository": { | ||
@@ -67,26 +89,25 @@ "type": "git", | ||
"devDependencies": { | ||
"@microsoft/api-documenter": "^7.15.3", | ||
"@microsoft/api-extractor": "^7.19.4", | ||
"@microsoft/api-documenter": "^7.17.17", | ||
"@microsoft/api-extractor": "^7.25.0", | ||
"@msgpack/msgpack": "^2.7.2", | ||
"@rollup/plugin-sucrase": "^3.1.1", | ||
"@types/bson": "^4.2.0", | ||
"@types/jest": "^26.0.24", | ||
"@types/node": "^14.18.12", | ||
"@types/ws": "^7.4.7", | ||
"@rollup/plugin-sucrase": "^4.0.4", | ||
"@types/jest": "^28.1.1", | ||
"@types/node": "^17.0.42", | ||
"@types/ws": "^8.5.3", | ||
"async-call-rpc": "link:", | ||
"bson": "^4.6.1", | ||
"jest": "^26.6.3", | ||
"bson": "^4.6.4", | ||
"jest": "^28.1.1", | ||
"jest-file-snapshot": "^0.5.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.5.1", | ||
"pretty-format": "^26.6.2", | ||
"prettier": "^2.6.2", | ||
"pretty-format": "^28.1.1", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.70.0", | ||
"rollup-plugin-dts": "^3.0.2", | ||
"rollup": "^2.75.6", | ||
"rollup-plugin-dts": "^4.2.2", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"standard-version": "^9.3.2", | ||
"ts-jest": "^26.5.6", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.6.2", | ||
"ws": "^7.5.7" | ||
"standard-version": "^9.5.0", | ||
"ts-jest": "^28.0.5", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.3", | ||
"ws": "^8.8.0" | ||
}, | ||
@@ -99,18 +120,3 @@ "files": [ | ||
"utils-src" | ||
], | ||
"scripts": { | ||
"clean": "rimraf ./out ./utils/web ./utils/node ./es ./coverage ./temp", | ||
"release": "npm run clean && npm run test && npm run build && standard-version", | ||
"watch:tsc": "tsc -b -w", | ||
"build:tsc": "tsc -b", | ||
"watch:rollup": "rollup -c -w", | ||
"build:rollup": "rollup -c", | ||
"build": "npm run build:tsc && npm run build:rollup && npm run doc", | ||
"doc:api": "api-extractor run --local --verbose", | ||
"doc:md": "api-documenter markdown -o docs -i temp", | ||
"doc": "run-s doc:api doc:md", | ||
"start": "run-p watch:rollup watch:tsc watch:test", | ||
"test": "jest --coverage", | ||
"watch:test": "jest --watch" | ||
} | ||
} | ||
] | ||
} |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { isString } from '../utils/constants' |
@@ -0,0 +0,0 @@ import { AsyncCallNotify } from '../utils/internalSymbol' |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ export const isString = (x: unknown): x is string => typeof x === 'string' |
@@ -0,0 +0,0 @@ class CustomError extends Error { |
export const generateRandomID = () => Math.random().toString(36).slice(2) |
@@ -0,0 +0,0 @@ const i = 'AsyncCall/' |
@@ -0,0 +0,0 @@ import { globalDOMException as DOMException, DOMExceptionHeader } from './error' |
@@ -0,0 +0,0 @@ import type { AsyncCallOptions } from '../Async-Call' |
@@ -0,0 +0,0 @@ //#region Serialization |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ import type { serialize as S, deserialize as D } from 'bson' |
@@ -0,0 +0,0 @@ import type { encode as S, decode as D } from '@msgpack/msgpack' |
@@ -0,0 +0,0 @@ import type { Server } from 'ws' |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ import type { EventBasedChannel } from 'async-call-rpc' |
@@ -0,0 +0,0 @@ import type { Serialization } from 'async-call-rpc' |
@@ -0,0 +0,0 @@ import type { encode as S, decode as D } from '@msgpack/msgpack' |
@@ -0,0 +0,0 @@ import type { EventBasedChannel } from 'async-call-rpc' |
@@ -0,0 +0,0 @@ import type { EventBasedChannel } from 'async-call-rpc' |
import type { Server } from 'ws'; | ||
import type WebSocket from 'ws'; | ||
import type { CallbackBasedChannel } from 'async-call-rpc'; | ||
@@ -7,5 +8,5 @@ declare type JSONRPCHandlerCallback = (data: unknown) => Promise<unknown>; | ||
constructor(server: Server); | ||
setup(callback: JSONRPCHandlerCallback): () => Server; | ||
setup(callback: JSONRPCHandlerCallback): () => Server<WebSocket.WebSocket>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=websocket.server.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
6309
757229