grpc-js: Remove explicit version compatibility check

This commit is contained in:
Michael Lumish 2021-04-06 10:57:11 -07:00
parent b920292b59
commit 72136bcf0b
2 changed files with 1 additions and 10 deletions

View File

@ -22,7 +22,6 @@
"@types/mocha": "^5.2.6", "@types/mocha": "^5.2.6",
"@types/ncp": "^2.0.1", "@types/ncp": "^2.0.1",
"@types/pify": "^3.0.2", "@types/pify": "^3.0.2",
"@types/semver": "^6.0.1",
"@types/yargs": "^15.0.5", "@types/yargs": "^15.0.5",
"clang-format": "^1.0.55", "clang-format": "^1.0.55",
"execa": "^2.0.3", "execa": "^2.0.3",
@ -57,8 +56,7 @@
"posttest": "npm run check" "posttest": "npm run check"
}, },
"dependencies": { "dependencies": {
"@types/node": ">=12.12.47", "@types/node": ">=12.12.47"
"semver": "^6.2.0"
}, },
"files": [ "files": [
"src/**/*.ts", "src/**/*.ts",

View File

@ -15,8 +15,6 @@
* *
*/ */
import * as semver from 'semver';
import { import {
ClientDuplexStream, ClientDuplexStream,
ClientReadableStream, ClientReadableStream,
@ -66,11 +64,6 @@ import {
ServerDuplexStream, ServerDuplexStream,
} from './server-call'; } 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 }; export { OAuth2Client };
/**** Client Credentials ****/ /**** Client Credentials ****/