From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GHmCFPLTcGW/fwAAauVa8A:P1 (envelope-from ) for ; Wed, 06 Dec 2023 21:05:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GHmCFPLTcGW/fwAAauVa8A (envelope-from ) for ; Wed, 06 Dec 2023 21:05:06 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 845BE5EAE0 for ; Wed, 6 Dec 2023 21:05:05 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=n2FqljhZ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701893106; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XKevcCpcrfOlumsJEnXPSvMfazEF98PGSXvMj0z3Tl0=; b=gcKAC3ie802ljooj6MR574MTyX0SysacO7GPWvG6UqhiMP0jgdwQFbrBPl90QpvTmtvJ3+ 6muPu5AzETcjdT1lpXoWLXMZZuGRF7bsK73Kbfqjh58rQ6N58k4Hd2vgH0YRykqr8OhdpA Nil9TkjEdE9x8fCx+c/yGGSI9/R+0vnwe3CLmuHq7v76aFgnw6oVQXjqARaTixJiJ/yAsy wzcApEhL84g+Q8nlOq+2wQCZEHrwtHQPIia+T1XRyPrkkzgwVES8EssRMGVaHV9A9r7BS3 rI2KGmdgC1ME52Ub37chmujo2s3gLtRIp/eTQ+cYHncDlxXSwjo8DULZXzakdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=n2FqljhZ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701893106; a=rsa-sha256; cv=none; b=i15VMng/vC8fcmwLpj8jOEW93P0/sJakOoPB2eDRtQ5KvTcC9bVTbdJGWGxoADI8dVHDB7 upCkv2d0I0BptjOHEOvP4Xlhl9ABTF9FhL30YLGABIWYfZyoehDC1103KYEJud7yR3nnCT 4DypvuvR33eD0ee/Kt7A0RYqwe4oDl0X9eeME+FKNv6bi4UfTY4xqjRPTh15oTEbbwnm/p Hm5+1+gUTdwS5q7MJ6Sjy/H4HUKiGlnYKY3e7zKR7rsu5lplTKFTmZ8beBeHvLe9eV7us4 OpdzRI6EtiB3pJtmsbmkBzkzLnOLmNxygkUPSOHWRaikCxPp7BnHNpfgM3mw0A== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAy8a-0005tC-2j; Wed, 06 Dec 2023 15:04:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAy8Y-0005t2-Gv for guix-patches@gnu.org; Wed, 06 Dec 2023 15:04:50 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rAy8Y-0007mK-8l for guix-patches@gnu.org; Wed, 06 Dec 2023 15:04:50 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rAy8k-0000Do-4K for guix-patches@gnu.org; Wed, 06 Dec 2023 15:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67666] [PATCH] gnu: Add node-safe-stable-stringify. Resent-From: Rikard Nordgren Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Dec 2023 20:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67666 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67666@debbugs.gnu.org Cc: hrn@posteo.net X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1701893063798 (code B ref -1); Wed, 06 Dec 2023 20:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Dec 2023 20:04:23 +0000 Received: from localhost ([127.0.0.1]:40475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAy86-0000Co-IH for submit@debbugs.gnu.org; Wed, 06 Dec 2023 15:04:22 -0500 Received: from lists.gnu.org ([2001:470:142::17]:58590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAy84-0000Ca-HB for submit@debbugs.gnu.org; Wed, 06 Dec 2023 15:04:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAy7n-0005nf-AV for guix-patches@gnu.org; Wed, 06 Dec 2023 15:04:03 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAy7k-0007k2-Ij for guix-patches@gnu.org; Wed, 06 Dec 2023 15:04:03 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 81774240103 for ; Wed, 6 Dec 2023 21:03:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1701893038; bh=9XiovSi06ppVr5LYGrV+Lts7HtG5Q8pxoHzcZ81TSgA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=n2FqljhZo2DFUa8jPMRC2UFp3uNvkuxFGLeenGz+ExZ0tCyPrG0iDpu3GpRCTHB89 bq0yE+MYSZBvBS5VKlIK41UQCZ5cuO3hzP4gbn9VxCAWDNSioNxzbyn9szJcQwBvAy YS+J9tuqahTbBrEQrXtj7WpSxI8E8P4z9j5aYhRxYupSlAIf/sPW+PNbVgIxFZizL4 LwPlJ7qy95IoT1bGabfMuLNqhk3oqwKMqlImkiMQVv6PTho/d/e0StWkwvTMv6bVWV whCYzzqpHPCivpX7/KS7QL0cI0iCzcjI+OuglfjNI41l3t+ZCzuWDkEVOwJTVKdRoj TcnA+GgfGeIJw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SlpJF5HfYz6twr; Wed, 6 Dec 2023 21:03:57 +0100 (CET) From: Rikard Nordgren Date: Wed, 6 Dec 2023 20:03:48 +0000 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=hrn@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 4.15 X-Spam-Score: 4.15 X-Migadu-Queue-Id: 845BE5EAE0 X-Migadu-Scanner: mx12.migadu.com X-TUID: mRsyIeIEusGv * 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