From patchwork Sat Jan 8 08:42:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 36151 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7742C27BBEA; Sat, 8 Jan 2022 08:57:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1233827BBE9 for ; Sat, 8 Jan 2022 08:57:46 +0000 (GMT) Received: from localhost ([::1]:36980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n67Xl-0005HD-9U for patchwork@mira.cbaines.net; Sat, 08 Jan 2022 03:57:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n67MV-0003rK-9z for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n67MU-0004dU-W8 for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n67MU-0000wF-V8 for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v9 30/41] gnu: Add node-debug. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jan 2022 08:46:06 +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 , Philip McGrath , Pierre Langlois , Liliana Marie Prikler , Leo Famulari , Jelle Licht Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16416315553468 (code B ref 51838); Sat, 08 Jan 2022 08:46:06 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Jan 2022 08:45:55 +0000 Received: from localhost ([127.0.0.1]:46391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67MJ-0000ts-5L for submit@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:55 -0500 Received: from mail-qk1-f182.google.com ([209.85.222.182]:38498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67MH-0000tQ-Kx for 51838@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:53 -0500 Received: by mail-qk1-f182.google.com with SMTP id i187so8511008qkf.5 for <51838@debbugs.gnu.org>; Sat, 08 Jan 2022 00:45:53 -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=yNH/K8Nj1WRroo2A9Ey8tzlsaN+RPVkeegYNZwPWS1w=; b=EtVl4FbYci7k3ELccFF2gGDCTcfYA6lf3vgAjxhmzZtsMF0i8epRTDl3bs0c1RYOOE KwsB+FCQF2bsAqDixU9xeWcwaZ9KZKZdmC8QUGdhmFuTuUgz3247s39wXD0evWidXXHZ 3n7hz/0r3SmLMLi+pIZWpYFhuhyEDGM6wgU/Sly0AQ8L2HGAH3nJASv1Uzd5BFHEpMyS ku8LQwI3K0/uQ8JdSRPOnZJ1pzxTLRdq7/1CsQdtmMEqzK31kGhJxLLsa0CJNJrKOfaA SJRxIrNG2u14cU7Tr5EOWCRFbK69GK6M09/H8GmahbUKCBM64pgkyQhgnapawQafoyaX e3aA== 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=yNH/K8Nj1WRroo2A9Ey8tzlsaN+RPVkeegYNZwPWS1w=; b=bhmkOQiMTnE0uPWYCC5Tqde82ca9t72OAsJovqOuV1FGF6BkXykIQNfJW0BfuNf/dR ltj2EK/gCiRiSOfQwizrlEeLvqsysg71f4kxOawQg5JSftBT1RZSimtPhoAF/TJMNdBX ZqTsCkotQLe3+mbUf20UnA8R08zw7jquqg4l0yea8TirXBotWqK+MLTaZEmlPoSfNaZX MLr3/6+c6OcfhYSk/SXZCoR+zoRNRyJsscEMGDq61X6PzUZex/xYlznj+t9aCCtpVDHD gW0BnZPpnYk48rfSrKi+Jzfa1BmTAxXdM+v6k0wVDXnqcF8yN7EJgACdoMhQguiBQoI0 XPFQ== X-Gm-Message-State: AOAM532ibbuTTPpbkAX5ZqG2XUktLjNC3zfnq5BUp0ZUFqV05ifsdj/L /i2k8ny5AO0Twzf337aiOXmfPxmlGVRkPb+a X-Google-Smtp-Source: ABdhPJy/bzhzWyjpVIf6jL3Oz1CxxS8VLkdI9PwaViX/2P5tt9rdChyXKrRetWBOZLQ6aAkAu/eBhA== X-Received: by 2002:a05:620a:4449:: with SMTP id w9mr980334qkp.617.1641631548129; Sat, 08 Jan 2022 00:45:48 -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 d17sm703695qtb.71.2022.01.08.00.45.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Jan 2022 00:45:48 -0800 (PST) From: Philip McGrath Date: Sat, 8 Jan 2022 03:42:18 -0500 Message-Id: <20220108084229.362642-31-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220108084229.362642-1-philip@philipmcgrath.com> References: <64e08d3a1838ed8507f33fae895545372960522f.camel@gmail.com> <7b04af28bbd57c67093ce8f33a648efec89693bd.camel@gmail.com> <441bfeb0-eb6e-81f6-488b-cdf1b09a78ef@philipmcgrath.com> <20220108084229.362642-1-philip@philipmcgrath.com> 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-debug): New variable. --- gnu/packages/node-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 6142254c35..3be2b93b31 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -985,3 +985,48 @@ (define-public node-ms equivalent milliseconds is returned. @end itemize") (license license:expat))) + +(define-public node-debug + (package + (name "node-debug") + (version "4.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/debug-js/debug") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ji0dmdl2xkgxqxvd6xjy7k3mmknmhvqjgc40vyly9ka1mpf20vb")))) + (inputs + (list node-ms)) + (build-system node-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'patch-dependencies 'delete-dependencies + (lambda args + (delete-dependencies `("brfs" + "browserify" + "coveralls" + "istanbul" + "karma" + "karma-browserify" + "karma-chrome-launcher" + "karma-mocha" + "mocha" + "mocha-lcov-reporter" + "xo" + "supports-color"))))) + #:tests? #f)) + (home-page "https://github.com/debug-js/debug") + (synopsis "Lightweight debugging utility for Node.js and the browser") + (description "A tiny JavaScript debugging utility modelled after Node.js +core's debugging technique. orks in Node.js and web browsers. + +The @code{debug} module exposes a function; simply pass this function the name +of your module, and it will return a decorated version of @code{console.error} +for you to pass debug statements to. This will allow you to toggle the debug +output for different parts of your module as well as the module as a whole.") + (license license:expat)))