node-srt/package.json
Stephan Hesse 074da05097
Worker-based Async API with await/Promise support (or plain callbacks) (#6)
* fix lint errors in eslint config :)

* index.d.s: add /* eslint-disable @typescript-eslint/triple-slash-reference */

* improve eslint calling script

* add async-worker version of the SRT JS API with await/Promise support
+ potentially out-of-order RPC-back/result-dequeuing is possible
with a type of call-ID generator and callback-map that we prototyped
(but not used atm since the worker is only doing sync/blocking internally
with the current SRT lib binding).

* add various examples for async API ("classic" callbacks / Promise / await)

* add .eslintignore (should go with commit where we just call "eslint .")

* index.js: add missing semi

* async.js: fix method name litteral in epollUWait

* async.js: allow for accept method to use a timeout opt (defaults to false),
and a custom timeout value option (default to default timeout),
which can potentially be set differently than the general default timeout.
+ make the timeout value a static class property so that it can be
user-defined module-load wide. defaults to constant in module top scope.

* async.js: fix for a rejected promise, make sure we don't resolve anymore
+ add a custom timeout value argument to _createAsyncWorkPromise

* async.js: rm an experiment

* fix a lint error in example

* add types for async api and fix some details on binding API types

* export async API to index

* async.js: add some missing docs for private methods

* include async types in index
2020-08-03 09:54:26 +02:00

63 lines
1.7 KiB
JSON

{
"name": "@eyevinn/srt",
"version": "0.3.1",
"description": "Nodejs bindings for Secure Reliable Transport SDK",
"main": "index.js",
"scripts": {
"preinstall": "npm install git-clone && node scripts/build-srt-sdk.js",
"install": "node-gyp rebuild -j 8",
"rebuild": "node-gyp rebuild",
"clean": "node-gyp clean",
"test": "$(npm bin)/jasmine",
"lint": "eslint . --ext .js --ext .ts",
"check-tsc": "./node_modules/.bin/tsc examples/srt.ts --outDir ./tsc-lib",
"postversion": "git push && git push --tags"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Eyevinn/node-srt.git"
},
"gypfile": true,
"author": "Eyevinn Technology AB <work@eyevinn.se>",
"contributors": [
"Jonas Rydholm Birmé <jonas.birme@eyevinn.se> (Eyevinn Technology AB)",
"Dillon Pentz <dillon@vodbox.io>",
"Stephan Hesse <stephan@emliri.com>"
],
"license": "MIT",
"devDependencies": {
"@types/node": "^14.0.23",
"@typescript-eslint/eslint-plugin": "^3.6.1",
"@typescript-eslint/parser": "^3.6.1",
"eslint": "^7.4.0",
"eslint-plugin-jasmine": "^4.1.1",
"jasmine": "^3.5.0",
"node-gyp": "^7.0.0",
"ts-node": "^8.10.2",
"typescript": "^3.9.6"
},
"dependencies": {
"debug": "^4.1.1",
"git-clone": "^0.1.0",
"node-addon-api": "^3.0.0"
},
"bugs": {
"url": "https://github.com/Eyevinn/node-srt/issues"
},
"homepage": "https://github.com/Eyevinn/node-srt#readme",
"directories": {
"example": "examples"
},
"keywords": [
"SRT",
"Secure",
"Reliable",
"Transport",
"Network",
"Protocol",
"UDP",
"Retransmission",
"Congestion",
"Control"
]
}