summaryrefslogtreecommitdiff
path: root/cli/npm/semver/specifier.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-09-28 13:04:16 -0400
committerGitHub <noreply@github.com>2022-09-28 13:04:16 -0400
commitd677ba67f50e5edb0491d8ed1e4171473d662081 (patch)
tree9f8740666298ac8e1041fa3e169d8f3a9e074448 /cli/npm/semver/specifier.rs
parent23125b275f282f96a6316d11f97e5603dab0d009 (diff)
feat(npm): functionality to support child_process.fork (#15891)
Diffstat (limited to 'cli/npm/semver/specifier.rs')
-rw-r--r--cli/npm/semver/specifier.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/npm/semver/specifier.rs b/cli/npm/semver/specifier.rs
index 64e3c4f9b..220e0a601 100644
--- a/cli/npm/semver/specifier.rs
+++ b/cli/npm/semver/specifier.rs
@@ -3,6 +3,8 @@
use deno_core::anyhow::Context;
use deno_core::error::AnyError;
use monch::*;
+use serde::Deserialize;
+use serde::Serialize;
use super::errors::with_failure_handling;
use super::range::Partial;
@@ -11,7 +13,7 @@ use super::range::XRange;
use super::NpmVersion;
/// Version requirement found in npm specifiers.
-#[derive(Clone, Debug, PartialEq, Eq, Hash)]
+#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct SpecifierVersionReq {
raw_text: String,
range: VersionRange,