[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/11: gnu: Add node-safe-stable-stringify.
From: |
guix-commits |
Subject: |
10/11: gnu: Add node-safe-stable-stringify. |
Date: |
Fri, 22 Dec 2023 11:50:44 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 211c66d49e720eb32c866234ec450d51f322584c
Author: Rikard Nordgren <hrn@posteo.net>
AuthorDate: Wed Dec 6 20:03:48 2023 +0000
gnu: Add node-safe-stable-stringify.
* gnu/packages/node-xyz.scm (node-safe-stable-stringify): New variable.
Change-Id: Ia54a44403807479652fe5831b08acdb661dca9e1
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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 9eb8595add..9097d611a6 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -496,6 +496,48 @@ written in Javascript.")
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")
- 02/11: gnu: Add python-pyqt, version 6.5.2., (continued)
- 02/11: gnu: Add python-pyqt, version 6.5.2., guix-commits, 2023/12/22
- 05/11: gnu: node-lts: Update to 18.19.0., guix-commits, 2023/12/22
- 03/11: gnu: Add python-pyqtwebengine, version 6.6.0., guix-commits, 2023/12/22
- 04/11: deprecation: Fix docstring typo., guix-commits, 2023/12/22
- 08/11: gnu: tensorflow-lite: Update to 2.13.1, guix-commits, 2023/12/22
- 09/11: gnu: Add node-normalize-path., guix-commits, 2023/12/22
- 11/11: gnu: dante: Enable preloading support., guix-commits, 2023/12/22
- 01/11: gnu: Add python-pyqt6-sip., guix-commits, 2023/12/22
- 06/11: gnu: Add liquidprompt., guix-commits, 2023/12/22
- 07/11: gnu: emacs-jinx: Update to 1.0., guix-commits, 2023/12/22
- 10/11: gnu: Add node-safe-stable-stringify.,
guix-commits <=