* add typescript definition files for this JS API * server.js: replace console.log by debug() call * server.js: set "iface" and "port" properties on SRTServer listen call + and init them with null in constructor * stream.js: SRTReadStream: init fd property with null in constructor * stream.js: SRTReadStream: add close method (to free the fd aquired with connect()), likewise the writable stream methods * example files: add "use strict"; directive on all * examples/srt.js: correctly state variable fhandle (this would crash in strict mode otherwise) * NAPI: NodeSRT::GetSockOpt: fix error handling to really reach ThrowAsJavaScriptException * add example: srt.ts (TypeScript usage) * add .editoconfig to project root (helps keeping files free of whitespaces and maintain indentation etc) * package.json: improve metadata quality (via npm init call) * package.json: add dev-deps for tsc/ts-node and node type-defs * package.json: add check-tsc script to compile typescript example * gitignore: add tsc-lib (typescript compiler test output) * add tsconfig.json (typescript compiler config) * some end-of-file newline and whitespace fixes * stream.js: add const decls for all the magic numbers in SRTReadStream * enable eslint static analysis to find possible issues upfront + and maintain codestyle * update package-lock * stream.js: fix whitespace and eof * add lint script for src, examples and types modules * types: lint error fix
61 lines
1.6 KiB
JSON
61 lines
1.6 KiB
JSON
{
|
|
"name": "@eyevinn/srt",
|
|
"version": "0.2.3",
|
|
"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 src examples types --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>"
|
|
],
|
|
"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",
|
|
"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"
|
|
]
|
|
}
|