From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ePkjC6djzWHYyQAAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 08:45:43 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oOl8CKdjzWHJKwEA9RJhRA (envelope-from ) for ; Thu, 30 Dec 2021 08:45:43 +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 aspmx2.migadu.com (Postfix) with ESMTPS id D85091E972 for ; Thu, 30 Dec 2021 08:45:42 +0100 (CET) Received: from localhost ([::1]:57834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2q85-0002Ni-8l for larch@yhetil.org; Thu, 30 Dec 2021 02:45:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2q6a-0001Fd-2e for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2q6Z-0001pE-Nc for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2q6Z-0006jo-Mg for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v6 29/41] gnu: Add node-ms. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Dec 2021 07:44:07 +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: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.164085020525670 (code B ref 51838); Thu, 30 Dec 2021 07:44:07 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:43:25 +0000 Received: from localhost ([127.0.0.1]:51059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5t-0006fr-7V for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:43:25 -0500 Received: from mail-qk1-f182.google.com ([209.85.222.182]:42624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5F-0006bz-6V for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:42:45 -0500 Received: by mail-qk1-f182.google.com with SMTP id r139so21072379qke.9 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:42:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IfSRqZKlp1wSQS3t+bnWjsu0NFbwKI0CXV4gZALLg7U=; b=Jtba7mZKQ4Kw33bwIW+2Ru727sp8vTocMIXWSYMIJBS0vL/rdNo6NdoodcL3qJaE+L qhyoL26iTr5NL1tHRf55OLsnKBflILf4PWddrP5znkmosLbk7dKPjw9MQ6z6z1NOTQdM Lr7Il15pyQKn/IknDIlTn0HT14TVBgxlmx1fvH1ooYpzTRHPZm6+A1GQ7FTM3zIBj27G TehHcO4NaRKu0QfRABpqC04FSKSizjKv5c1yG0YWYV/jPO3xjcYQTu4HED56ypfYKxD2 ri7U/cAq1Ei/BGTSLVLINy6mvLrHPM/YCL+3tIX0wOf5qaHTk1++Ea64RoTgk5ZMonj2 P+GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IfSRqZKlp1wSQS3t+bnWjsu0NFbwKI0CXV4gZALLg7U=; b=pnnxXMd79cORDs8sP4LaQ8Q8vV2+CJFPOVxwThPN4ZXOlAMtQUcDj9FaESW6RGB00x bcnPPJGs0Rws9qSPtoKqJ8oTlRAfS2w4KDYFgztiuLAt/antJ/sHJ4BBdYWXVtqmiXaz l4II8fuEwG2O/iF6yp/3el2qmB/QDS/+YafPT+CTPNd4nJ8VUlYo+Uw8h/COl0uLQJ7k XL/4xBeE58olV/a/kC9pApJeoN5sHUN6iEeYXsMerCNdJemni6Xj5gjkjO+lgSJKrbur WRm5Tq2G0R7xUpOjHeob1E7SZ6KJYY3ENH9sXkEyIuKgPZZsuhFowDgT0tkyy1yrDLns zp/w== X-Gm-Message-State: AOAM5310qayIufYH/gdV6zOb5fLUPMs5jRspf3WYAQ2QNiA8kJcCy8Cd +A5Kl7trO9SmMDxQhFv005N60sYpwa8bO+Qx X-Google-Smtp-Source: ABdhPJwFlylBHlBlqkzNVI1cQ71rhz3guYqjQsOj0MlF1qn5USYsvn65iKN7Lg7c9ooKzU4tQe5D7w== X-Received: by 2002:a05:620a:4450:: with SMTP id w16mr20825840qkp.26.1640850159804; Wed, 29 Dec 2021 23:42:39 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with UTF8SMTPSA id r185sm17778923qke.134.2021.12.29.23.42.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:42:39 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:39:07 -0500 Message-Id: <20211230073919.30327-30-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230073919.30327-1-philip@philipmcgrath.com> References: <082a81964a43ae5f735ad2ca433d0dfe00859c35.camel@gmail.com> <20211230073919.30327-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1640850342; 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=IfSRqZKlp1wSQS3t+bnWjsu0NFbwKI0CXV4gZALLg7U=; b=Q8mYaUKT9JwVwi0w60U5rlzmpNVSpKVCr7UUhfnikwF9gtQWDqyMSxP2KKhKLBm4m71w1d GjQNXiJPjOb/LXyQ2FxCCEMZdnAJMOhA8OgeXl3vEKH8DG3VWeqo4FTsZOvz4zaREllCna KZVrk7laa2A2gQYWA+PhHh2tZNFisXifxwI4YuInmyr0I69Ta3OuYHaKEIEWXmCZh5ZrfL 3YlYN9dAYJ2/mJv6rXRFrO+fRvbmwD5tdDJGGI4Wda6T5v8BZ4Z3pzA8C2jAadDos5/T/x nuSUWmRc9OyrOpEaSMX93V8ItssNoUfsadkoLso5wBLUFlAg/LMtzITVCnDCMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640850342; a=rsa-sha256; cv=none; b=RyB+jcmxL6hXRKyfzSVSC5otZB14KKLG/F6zwbrr/kum6l/mCdkZag0e1ZqIPuD6mDUubb zIFk6mR6wcXh3CAlBol4+nliqq0iGdVxOEHk0Zm1R8EZr1BEUrm8Sx2pIVIB8ThkWV+0T9 j43q8XGjiOA+85XIyyev9laGjy9izlwNacrHJr8g9OzvUVWV+Ibi7IvCdVZ+VtbDzIE/Vm icfBsA4Cz6ydGExlZCxojzewB1F9SP5jk3XiWGsQPtYtYgvzdvvrX18KTsJ7O39Q1m1zn4 31EXGYrUjNI2B4ZWiJbphCpJNqHu3urE7dvmaZyn6TiqR+Ib1dMapdcT/qScCQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=Jtba7mZK; dmarc=none; spf=pass (aspmx2.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: 0.93 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=Jtba7mZK; dmarc=none; spf=pass (aspmx2.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: D85091E972 X-Spam-Score: 0.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: c+1KVzNA3sNt * gnu/packages/node-xyz.scm (node-ms): New variable. --- gnu/packages/node-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index e2eb17b23c..23c45d971e 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -975,3 +975,51 @@ (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 + (with-atomic-json-file-replacement "package.json" + (lambda (pkg-meta) + (delete-dependencies pkg-meta `("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.32.0