From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SEfnLmA012HWLwAAgWs5BA (envelope-from ) for ; Thu, 06 Jan 2022 19:26:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OBqVJ2A012FWBwAAG6o9tA (envelope-from ) for ; Thu, 06 Jan 2022 19:26:40 +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 6141029F7D for ; Thu, 6 Jan 2022 19:26:40 +0100 (CET) Received: from localhost ([::1]:42588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5XTD-00085d-IT for larch@yhetil.org; Thu, 06 Jan 2022 13:26:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XSn-0007U1-C4 for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:15 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5XSn-00014X-2j for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:13 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5XSm-00057u-Vc for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:12 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v8 29/41] gnu: Add node-ms. References: <20211114124151.36743-1-philip@philipmcgrath.com> In-Reply-To: <20211114124151.36743-1-philip@philipmcgrath.com> Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Jan 2022 18:26:12 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath Cc: 51838@debbugs.gnu.org, Timothy Sample , Pierre Langlois , Jelle Licht , Leo Famulari Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.164149352019333 (code B ref 51838); Thu, 06 Jan 2022 18:26:12 +0000 Received: (at 51838) by debbugs.gnu.org; 6 Jan 2022 18:25:20 +0000 Received: from localhost ([127.0.0.1]:42249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XRv-00051e-SK for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:25:20 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:35591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XRN-0004vD-Aj for 51838@debbugs.gnu.org; Thu, 06 Jan 2022 13:24:45 -0500 Received: by mail-wr1-f66.google.com with SMTP id e9so4974095wra.2 for <51838@debbugs.gnu.org>; Thu, 06 Jan 2022 10:24:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:subject:to:cc:content-transfer-encoding:message-id :mime-version; bh=IxDkdaXLeNVdl7jSU3e/qgjiSLSI+/vveKyJr/Auog8=; b=Fk6/3OoZ0gtejckGzoX4PoUQbsmEDIEfiziopHMUPnyZm77gmtRaCXafU0UvfZKR/B nAILgQScgk0M73YNNHcu4YaIWEXwXv5/gAIr0/nwnkqcbGZhcf7MTNzHISq4z8F07iDg GldVz8bnYhU/3cX1SIW8k4AycTcah72WJRDvKsVaSOMe9Rv/VRF8PvjxHLaHktbv3cQL WbM+x9NnTxuagjk8fHEWRqJIsHja1RPKsqMTb17pRd/0D8WBqk5Wu9MgGBDd/HPlNlmE dmz7LatmVJb22tJct56XWOHCoHA7A7H9fvlDseFu0TuZtUBFelwbrFwJwnFOHHiIc4na QRKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:to:cc :content-transfer-encoding:message-id:mime-version; bh=IxDkdaXLeNVdl7jSU3e/qgjiSLSI+/vveKyJr/Auog8=; b=wNjjV3XoWlkCf2qmhc2SlJSalwRBh5GoQ5sT3ODNpW2TACEUKQ+4iArAwAw1riqD/q SSXAMtk1pUxnozCfk2PAIrbkCiGXoLiu42bNiNl2ocBDI7DrBE+hy6gmm6O7hO+0TE7q Lf6OjDFjeu0mQfvXJcysTip8DewaIeYdJ0jW6w7DmF/i9XYgo3ZK9WVn9AhsdaUcazOP woXCNmlCln/yyWW9NB4D2hwJ9QB8w6iBv2kLZiPsCU8NRojhk/CqikoxXEZjAJaNktpx /ZhIDPaYfdQ2vknVOfoPKaxJD4QAzd2gSs0I583FkaCFHX4eMoXAr5AdeAnZVKJ40shk +ziA== X-Gm-Message-State: AOAM533nNGtvoNNH3ecMksg4fhJXzTUP4XW49DVUQ5VrTq32W++1Rb3i HK0hFwpUEQiiKrqKP0h3jXg= X-Google-Smtp-Source: ABdhPJxMF0i+L46+6vcpA8oRlLosV2EZWTozZyZ3xw56lUKc5DZbRAr1gXUWg55Gwl6ku1jk255HWg== X-Received: by 2002:adf:e6c9:: with SMTP id y9mr52350835wrm.697.1641493479893; Thu, 06 Jan 2022 10:24:39 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id b17sm2693311wrq.91.2022.01.06.10.24.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 10:24:39 -0800 (PST) From: Liliana Marie Prikler Date: Thu, 30 Dec 2021 02:39:07 -0500 Content-Transfer-Encoding: 7bit Message-ID: MIME-Version: 1.0 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641493600; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IxDkdaXLeNVdl7jSU3e/qgjiSLSI+/vveKyJr/Auog8=; b=FEjG2Zrm2KgkbA+O539xbq/wMnyBT2ePvK4gabrMq0R2k/jxy5Ycn+diflwjPiprjADImM NYAHd9WGjwNQS2hrj8ItXga1jfyOV6OHXI3l7v9oN5ASVUH3jROYe2eUTYfBvG3wpn2SMn ayEeBCIPeA3ji+ocaKJ/JY838xR217uk2qQUwPf2QBVtaRVuuPIJvsmNgzKmRgytoJipzm bnNTn8Tqr40p4cYmauMo0ardIUDZLVSZ0IVn/Uxc8h7DfEUPoOiN6RVVH+qVcZm3PakKt9 dW2BtOLKmgntAy/Oy0cweAKAQkl9f/CS7EvBaZ9c6C2EvGsKQjareK8UtI8xLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641493600; a=rsa-sha256; cv=none; b=qY0xyawFrwkoN5Y1nF21VLUFCUYV+whm2gYnzn1EFmL81f69RC6mDV06QcYqA1avUxUakt uBYqof4vte66Q9iVE4FhCqyGyCyAD9zvqxGFnkw4Hcuu95EAUAPTpoUD/In1jOMkdQS85W 4xEqGZuwbHPv0ZA0+eSvE6GfXMOkBebPn6wTOadJtXJgYM/JJ815kxA8PnOXRFwVIgxLIW Pgz5sZvQeUlK0Ae7TkwAhRIXQ7eM7bvJatKs+7T9h1tBfWk5yg3qt9MDT5ZnEe5lrJLUMi xBRbvk//knebry7dx6E6bLqiF6NVqTSgD7GdLb8V/8Le9xMOSxGlv+94IEjDUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="Fk6/3OoZ"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: -2.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="Fk6/3OoZ"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 6141029F7D X-Spam-Score: -2.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: W8+01Rumu829 * gnu/packages/node-xyz.scm (node-ms): New variable. Signed-off-by: Liliana Marie Prikler --- gnu/packages/node-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index e4cfb1796a..d8ff3d2b97 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -918,3 +918,49 @@ (define-public node-segfault-handler @code{SIGSEGV} signal is raised, the module will print a native stack trace to both @code{STDERR} and to a timestamped file.") (license license:bsd-3))) + +(define-public node-ms + (package + (name "node-ms") + (version "2.1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vercel/ms") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1l74kmmwffmzdz38lli0v5mdb9p9jmsjxpb48ncknqw2n74cgf08")))) + (build-system node-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'patch-dependencies 'delete-dependencies + (lambda args + (delete-dependencies `("^eslint$" + "^expect\\.js$" + "^husky$" + "^lint-staged$" + "^mocha$" + "^prettier$"))))) + #:tests? #f)) + (home-page "https://github.com/vercel/ms") + (synopsis "Tiny millisecond conversion utility") + (description "Use this package to easily convert various time formats to +milliseconds. + +Features: +@itemize @bullet +@item +Works both in Node.js and in the browser. +@item +If a number is supplied to @code{ms}, a string with a unit is returned. +@item +If a string that contains the number is supplied, it returns it as a +number (e.g. it returns @code{100} for @code{'100'}). +@item +If you pass a string with a number and a valid unit, the number of +equivalent milliseconds is returned. +@end itemize") + (license license:expat))) -- 2.34.0