* [bug#67666] [PATCH] gnu: Add node-safe-stable-stringify.
@ 2023-12-06 20:03 Rikard Nordgren
2023-12-22 16:41 ` bug#67666: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Rikard Nordgren @ 2023-12-06 20:03 UTC (permalink / raw)
To: 67666; +Cc: hrn
* gnu/packages/node-xyz.scm (node-safe-stable-stringify): New variable.
Change-Id: Ia54a44403807479652fe5831b08acdb661dca9e1
---
gnu/packages/node-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 6c16417309..48bfdb534c 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -467,6 +467,48 @@ (define-public node-resolve-protobuf-schema
resolve all imports.")
(license license:expat)))
+(define-public node-safe-stable-stringify
+ (package
+ (name "node-safe-stable-stringify")
+ (version "2.4.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/BridgeAR/safe-stable-stringify")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "008adig8j13rn2a21ngnp770y4zz6yq176ix5rkskjbb8g2qwapg"))))
+ (build-system node-build-system)
+ (arguments
+ '(#:tests? #f
+ #:phases (modify-phases %standard-phases
+ (add-after 'patch-dependencies 'delete-dependencies
+ (lambda _
+ (delete-dependencies '("benchmark" "clone"
+ "fast-json-stable-stringify"
+ "fast-safe-stringify"
+ "fast-stable-stringify"
+ "faster-stable-stringify"
+ "fastest-stable-stringify"
+ "json-stable-stringify"
+ "json-stringify-deterministic"
+ "json-stringify-safe"
+ "standard"
+ "tap"
+ "typescript"
+ "@types/node"
+ "@types/json-stable-stringify")))))))
+ (home-page "https://github.com/BridgeAR/safe-stable-stringify")
+ (synopsis "Serialization of javascript objects")
+ (description
+ "Safe, deterministic and fast serialization alternative to JSON.stringify.
+Gracefully handles circular structures and bigint instead of throwing.
+Optional custom circular values, deterministic behavior or strict JSON
+compatibility check.")
+ (license license:expat)))
+
(define-public node-stack-trace
;; There have been improvements since the last release.
(let ((commit "4fd379ee78965ce7ce8820b436f1b1b590d5dbcf")
base-commit: 23627b1706af25a0a30b96b9169a3495279aff1b
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#67666: [PATCH] gnu: Add node-safe-stable-stringify.
2023-12-06 20:03 [bug#67666] [PATCH] gnu: Add node-safe-stable-stringify Rikard Nordgren
@ 2023-12-22 16:41 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-12-22 16:41 UTC (permalink / raw)
To: Rikard Nordgren; +Cc: 67666-done
Rikard Nordgren <hrn@posteo.net> skribis:
> * gnu/packages/node-xyz.scm (node-safe-stable-stringify): New variable.
>
> Change-Id: Ia54a44403807479652fe5831b08acdb661dca9e1
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-22 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-06 20:03 [bug#67666] [PATCH] gnu: Add node-safe-stable-stringify Rikard Nordgren
2023-12-22 16:41 ` bug#67666: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).