mirror of https://github.com/grpc/grpc-node.git
grpc-js: Remove explicit version compatibility check
This commit is contained in:
parent
b920292b59
commit
72136bcf0b
|
@ -22,7 +22,6 @@
|
|||
"@types/mocha": "^5.2.6",
|
||||
"@types/ncp": "^2.0.1",
|
||||
"@types/pify": "^3.0.2",
|
||||
"@types/semver": "^6.0.1",
|
||||
"@types/yargs": "^15.0.5",
|
||||
"clang-format": "^1.0.55",
|
||||
"execa": "^2.0.3",
|
||||
|
@ -57,8 +56,7 @@
|
|||
"posttest": "npm run check"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/node": ">=12.12.47",
|
||||
"semver": "^6.2.0"
|
||||
"@types/node": ">=12.12.47"
|
||||
},
|
||||
"files": [
|
||||
"src/**/*.ts",
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
import * as semver from 'semver';
|
||||
|
||||
import {
|
||||
ClientDuplexStream,
|
||||
ClientReadableStream,
|
||||
|
@ -66,11 +64,6 @@ import {
|
|||
ServerDuplexStream,
|
||||
} from './server-call';
|
||||
|
||||
const supportedNodeVersions = require('../../package.json').engines.node;
|
||||
if (!semver.satisfies(process.version, supportedNodeVersions)) {
|
||||
throw new Error(`@grpc/grpc-js only works on Node ${supportedNodeVersions}`);
|
||||
}
|
||||
|
||||
export { OAuth2Client };
|
||||
|
||||
/**** Client Credentials ****/
|
||||
|
|
Loading…
Reference in New Issue