GNU bug report logs - #68941
[PATCH 00/44] Node : a solution for tiny packages.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Mon, 5 Feb 2024 23:17:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 68941 <at> debbugs.gnu.org
Cc: ngraves <at> ngraves.fr
Subject: [bug#68941] [PATCH v2 05/44] gnu: Add node-has.
Date: Thu,  8 Feb 2024 01:24:28 +0100
* gnu/packages/node-xyz.scm (node-has): New variable.

Change-Id: I9e890eaecc13c3d9c67a89f5e93f449473dcbe62
---
 gnu/packages/node-xyz.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 1e930e16ed..eaa1959207 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -515,6 +515,15 @@ (define-public node-global-gradle-clean
 clean task of each project.")
     (license license:expat)))
 
+(define-public node-has
+  (trivial-node-package
+   "has" 0
+   "(obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)"
+   "This package returns a Javascript function that returns a boolean
+indicating whether this object has the specified property as its own property
+(as opposed to inheriting it)."
+   #:mozilla-doclink "Global_Objects/Object/hasOwnProperty"))
+
 (define-public node-has-proto
   (trivial-node-package
    "has-proto" 0 "() => true"
-- 
2.41.0





This bug report was last modified 1 year and 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.