summaryrefslogtreecommitdiff
path: root/cli/standalone/binary.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-01-22 16:31:12 -0500
committerGitHub <noreply@github.com>2024-01-22 22:31:12 +0100
commit69d5f136badfd7cfa9b979ff2fee7caf397098ca (patch)
tree665c6686fbf6f0732d84984f5f48557e45b4c7b6 /cli/standalone/binary.rs
parentd20c9e75d1540b1a27e721d0cf66d29ba6a2c3fb (diff)
feat(lockfile): track JSR and npm dependencies in config file (#22004)
See overview in https://github.com/denoland/deno_lockfile/pull/13
Diffstat (limited to 'cli/standalone/binary.rs')
-rw-r--r--cli/standalone/binary.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/cli/standalone/binary.rs b/cli/standalone/binary.rs
index 3204ca397..f8bb1e21c 100644
--- a/cli/standalone/binary.rs
+++ b/cli/standalone/binary.rs
@@ -18,7 +18,6 @@ use deno_core::futures::AsyncReadExt;
use deno_core::futures::AsyncSeekExt;
use deno_core::serde_json;
use deno_core::url::Url;
-use deno_npm::registry::PackageDepNpmSchemeValueParseError;
use deno_npm::NpmSystemInfo;
use deno_runtime::permissions::PermissionsOptions;
use deno_semver::package::PackageReq;
@@ -51,7 +50,6 @@ const MAGIC_TRAILER: &[u8; 8] = b"d3n0l4nd";
#[derive(Serialize, Deserialize)]
enum SerializablePackageJsonDepValueParseError {
- SchemeValue(String),
Specifier(String),
Unsupported { scheme: String },
}
@@ -59,9 +57,6 @@ enum SerializablePackageJsonDepValueParseError {
impl SerializablePackageJsonDepValueParseError {
pub fn from_err(err: PackageJsonDepValueParseError) -> Self {
match err {
- PackageJsonDepValueParseError::SchemeValue(err) => {
- Self::SchemeValue(err.value)
- }
PackageJsonDepValueParseError::Specifier(err) => {
Self::Specifier(err.source.to_string())
}
@@ -73,11 +68,6 @@ impl SerializablePackageJsonDepValueParseError {
pub fn into_err(self) -> PackageJsonDepValueParseError {
match self {
- SerializablePackageJsonDepValueParseError::SchemeValue(value) => {
- PackageJsonDepValueParseError::SchemeValue(
- PackageDepNpmSchemeValueParseError { value },
- )
- }
SerializablePackageJsonDepValueParseError::Specifier(source) => {
PackageJsonDepValueParseError::Specifier(
VersionReqSpecifierParseError {