summaryrefslogtreecommitdiff
path: root/cli/npm/cache.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-04-13 10:47:45 -0400
committerGitHub <noreply@github.com>2023-04-13 10:47:45 -0400
commitefa7c19890f58d9d446477e03e460b1190023c85 (patch)
treecce52a3abd56dd0a65adbedd2b94bc88ea68f1c2 /cli/npm/cache.rs
parent2eb0f9fb5cc3fd4c0d318cd04bdc03603b9ef70a (diff)
refactor: upgrade to deno_npm 0.3.0 (#18671)
This allows us to specify the `@types/node` version constraint in the CLI instead of in deno_npm.
Diffstat (limited to 'cli/npm/cache.rs')
-rw-r--r--cli/npm/cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/npm/cache.rs b/cli/npm/cache.rs
index 3c37aebe9..1ad6bf72a 100644
--- a/cli/npm/cache.rs
+++ b/cli/npm/cache.rs
@@ -277,7 +277,7 @@ impl ReadonlyNpmCache {
let name = parts.join("/");
let (version, copy_index) =
if let Some((version, copy_count)) = version_part.split_once('_') {
- (version, copy_count.parse::<usize>().ok()?)
+ (version, copy_count.parse::<u8>().ok()?)
} else {
(version_part, 0)
};