From e310433583d1f7b00e989d199dcfc2788678eb06ecc183c6ecc433f50260d473 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 21 Jul 2023 13:07:25 +0000 Subject: [PATCH] - update to 1.0.0 * update dependencies * no longer shows paths for tarballs served by the proxy * works with latest nodejs - 0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch: dropped, upstreamed OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/local-npm-registry?expand=0&rev=7 --- ...o-provide-their-own-npm-command-by-m.patch | 36 ------------------- local-npm-registry.changes | 11 ++++++ local-npm-registry.spec | 5 ++- local_npm_registry-v1.0.0.tar.gz | 3 ++ 4 files changed, 16 insertions(+), 39 deletions(-) delete mode 100644 0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch create mode 100644 local_npm_registry-v1.0.0.tar.gz diff --git a/0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch b/0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch deleted file mode 100644 index da055fe..0000000 --- a/0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 3ebbc200b9f03dae3e32d2461b77f99db645df02 Mon Sep 17 00:00:00 2001 -From: Bruno Pitrus -Date: Fri, 12 Aug 2022 16:44:59 +0200 -Subject: [PATCH] Allow the user to provide their own npm command by - manipulating PATH. - -This can be useful to eg. run npm using Electron instead of Node. ---- - src/index.ts | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/index.ts b/src/index.ts -index ee201f3..0232df4 100644 ---- a/dist/index.js -+++ b/dist/index.js -@@ -59,7 +59,7 @@ function setupServerAndGetPort(service:Service, registry:Registry): Promise { -- child_process_1.spawn("/usr/bin/npm", ['config', 'set', 'registry', service.url.toString()], { stdio: 'inherit' }) -+ child_process_1.spawn("npm", ['config', 'set', 'registry', service.url.toString()], { stdio: 'inherit' }) - .on("exit", (code) => { - code === 0 ? accept() : reject(); - }); -@@ -71,7 +71,7 @@ function runNpmInstall(): Promise { - return Promise.reject("npm install skipped"); - } - return new Promise((accept, reject) => { -- child_process_1.spawn("/usr/bin/npm", install_options, { stdio: 'inherit' }) -+ child_process_1.spawn("npm", install_options, { stdio: 'inherit' }) - .on("exit", (code) => { - code === 0 ? accept() : reject("NPM returned code: " + code); - }); --- -2.37.1.windows.1 - diff --git a/local-npm-registry.changes b/local-npm-registry.changes index b120b76..e390a35 100644 --- a/local-npm-registry.changes +++ b/local-npm-registry.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Jul 21 12:59:44 UTC 2023 - Adam Majer 1.0.0 + +- update to 1.0.0 + * update dependencies + * no longer shows paths for tarballs served by the proxy + * works with latest nodejs + +- 0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch: + dropped, upstreamed + ------------------------------------------------------------------- Tue Aug 16 16:43:23 UTC 2022 - Adam Majer diff --git a/local-npm-registry.spec b/local-npm-registry.spec index 8a31ee6..f926dfd 100644 --- a/local-npm-registry.spec +++ b/local-npm-registry.spec @@ -1,7 +1,7 @@ # # spec file for package local-npm-registry # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,12 @@ Name: local-npm-registry -Version: 0.0.3 +Version: 1.0.0 Release: 0 Summary: Localhost-only version of NPM registry License: GPL-3.0-or-later URL: https://github.com/openSUSE/npm-localhost-proxy Source: https://github.com/openSUSE/npm-localhost-proxy/releases/download/v%{version}/local_npm_registry-v%{version}.tar.gz -Patch0: 0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch Requires: npm-default BuildArch: noarch diff --git a/local_npm_registry-v1.0.0.tar.gz b/local_npm_registry-v1.0.0.tar.gz new file mode 100644 index 0000000..fc27074 --- /dev/null +++ b/local_npm_registry-v1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f107da2563e583825b82d8b8f98b3d365132cd1a4c7007c6198ff14643d9f7a0 +size 93989