@@ -2129,39 +3187,388 @@ (define-public node-fill-range regexp-compatible range with @code{options.toRegex}.") (license license:expat))) -(define-public node-glob +(define-public node-for-each-0.3.5 (package - (name "node-glob") - (version "10.1.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/isaacs/node-glob") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 (base32 "19r0q9mxfbbma6z0iapf1jnccrz0hil69kihzbjjxzy9b7cgzmsd")))) + (name "node-for-each") + (version "0.3.5") + (source + (origin + (method url-fetch) + (uri (string-append "https://registry.npmjs.org/for-each/-/" + "for-each-" version ".tgz")) + (sha256 + (base32 "1lc5f4l4zym84c903v2b688gm273v1pkvgdkmgvkrjblwv4czljb")))) (build-system node-build-system) - (inputs (list - node-minimatch - node-minipass-5 - node-path-scurry)) - ; Use ESBuild instead of tshy because this is used to build Typescript. - (native-inputs (list esbuild)) - (arguments (list - #:modules '( - (guix build node-build-system) - (guix build utils) - (ice-9 match)) - #:tests? #f ; FIXME: Tests require 'c8' and 'tap'. - #:phases #~(modify-phases %standard-phases - (add-before 'patch-dependencies 'modify-package - (lambda _ - (modify-json - (delete-dev-dependencies) - (delete-fields (list - "scripts.prepare")) - (delete-dependencies (list - ; Not currently used in other packages, but if there are + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (delete 'build) + (add-after 'patch-dependencies 'delete-dev-dependencies + (lambda _ + (modify-json (delete-dependencies '("@arethetypeswrong/cli" + "@ljharb/eslint-config" + "@ljharb/tsconfig" + "@types/is-callable" + "@types/tape" + "auto-changelog" + "eslint" + "npmignore" + "nyc" + "tape" + "typescript")))))))) + (inputs (list node-is-callable-1.2.7)) + (home-page "https://github.com/Raynos/for-each") + (synopsis "better forEach") + (description "This package provides a better @code{forEach}.") + (license license:expat))) +