From 50cfe113da5fcc59c1d99b0dcf1050ace45803c7 Mon Sep 17 00:00:00 2001 From: gall0ws Date: Mon, 5 Aug 2019 16:34:43 +0100 Subject: [PATCH] doc: fixed typo for Number.MAX_SAFE_INTEGER Just replaced Integer.MAX_SAFE_INTEGER with Number.MAX_SAFE_INTEGER. PR-URL: https://github.com/npm/cli/pull/229 Credit: @gall0ws Close: #229 Reviewed-by: @isaacs --- doc/misc/semver.md | 2 +- node_modules/semver/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/misc/semver.md b/doc/misc/semver.md index 1a93f022b332b..247c21e0d8744 100644 --- a/doc/misc/semver.md +++ b/doc/misc/semver.md @@ -407,5 +407,5 @@ All surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes `3.4.0`). Only text which lacks digits will fail coercion (`version one` is not valid). The maximum length for any semver component considered for coercion is 16 characters; longer components will be ignored (`10000000000000000.4.7.4` becomes `4.7.4`). -The maximum value for any semver component is `Integer.MAX_SAFE_INTEGER || (2**53 - 1)`; +The maximum value for any semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value components are invalid (`9999999999999999.4.7.4` is likely invalid). diff --git a/node_modules/semver/README.md b/node_modules/semver/README.md index e5ccececf4808..c31bd64bea417 100644 --- a/node_modules/semver/README.md +++ b/node_modules/semver/README.md @@ -407,5 +407,5 @@ All surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes `3.4.0`). Only text which lacks digits will fail coercion (`version one` is not valid). The maximum length for any semver component considered for coercion is 16 characters; longer components will be ignored (`10000000000000000.4.7.4` becomes `4.7.4`). -The maximum value for any semver component is `Integer.MAX_SAFE_INTEGER || (2**53 - 1)`; +The maximum value for any semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value components are invalid (`9999999999999999.4.7.4` is likely invalid).