[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#68941] [PATCH v2 38/44] gnu: Add node-which-collection.
From: |
Nicolas Graves |
Subject: |
[bug#68941] [PATCH v2 38/44] gnu: Add node-which-collection. |
Date: |
Thu, 8 Feb 2024 01:25:01 +0100 |
* gnu/packages/node-xyz.scm (node-which-collection): New variable.
---
gnu/packages/node-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 664b13b56b..ff956eb51f 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -2615,6 +2615,46 @@ (define-public node-which-boxed-primitive
which kind of boxed primitive the value given is.")
(license license:expat)))
+(define-public node-which-collection
+ (package
+ (name "node-which-collection")
+ (version "1.0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/inspect-js/which-collection")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ba67862jp4c9d9444ignzp7aavdivdbzqy3x8mbzlvqji6makqh"))))
+ (build-system node-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'patch-dependencies 'delete-dependencies
+ (lambda args
+ (delete-dependencies
+ '("@ljharb/eslint-config"
+ "aud"
+ "auto-changelog"
+ "eslint"
+ "for-each"
+ "in-publish"
+ "npmignore"
+ "nyc"
+ "object-inspect"
+ "safe-publish-latest"
+ "tape")))))
+ #:tests? #f)) ; FIXME tests depend on node-tape.
+ (inputs
+ (list node-is-map node-is-set node-is-weakmap node-is-weakset))
+ (home-page "https://github.com/inspect-js/which-collection")
+ (synopsis "Javascript function to determine which collection it is")
+ (description "This package provides a Javascript function to determine
+which kind of collection the value given is.")
+ (license license:expat)))
+
(define-public node-which-typed-array
(package
(name "node-which-typed-array")
--
2.41.0
- [bug#68941] [PATCH v2 22/44] gnu: Add node-is-shared-array-buffer., (continued)
- [bug#68941] [PATCH v2 22/44] gnu: Add node-is-shared-array-buffer., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 30/44] gnu: Add node-is-set., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 11/44] gnu: Add node-for-each., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 15/44] gnu: Add node-object-inspect., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 24/44] gnu: Add node-is-array-buffer., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 26/44] gnu: Add node-is-arguments., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 27/44] gnu: Add node-isarray., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 29/44] gnu: Add node-is-map., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 31/44] gnu: Add node-is-string., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 34/44] gnu: Add node-is-boolean-object., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 38/44] gnu: Add node-which-collection.,
Nicolas Graves <=
- [bug#68941] [PATCH v2 36/44] gnu: Add node-es-get-iterator., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 39/44] gnu: Add node-array-buffer-byte-length., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 40/44] gnu: Add node-is-date-object., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 18/44] gnu: Add node-side-channel., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 28/44] gnu: Add node-stop-iteration-iterator., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 12/44] gnu: Add node-available-typed-arrays., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 13/44] gnu: Add node-gopd., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 21/44] gnu: Add node-is-typed-array., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 20/44] gnu: Add node-is-weakset., Nicolas Graves, 2024/02/07
- [bug#68941] [PATCH v2 23/44] gnu: Add node-internal-slot., Nicolas Graves, 2024/02/07