Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package local-npm-registry for 
openSUSE:Factory checked in at 2025-02-25 16:40:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/local-npm-registry (Old)
 and      /work/SRC/openSUSE:Factory/.local-npm-registry.new.1873 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "local-npm-registry"

Tue Feb 25 16:40:59 2025 rev:6 rq:1247661 version:1.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/local-npm-registry/local-npm-registry.changes    
2024-01-31 23:53:30.048449553 +0100
+++ 
/work/SRC/openSUSE:Factory/.local-npm-registry.new.1873/local-npm-registry.changes
  2025-02-25 16:41:45.584301483 +0100
@@ -1,0 +2,14 @@
+Fri Feb 21 14:05:43 UTC 2025 - Adam Majer <[email protected]>
+
+- update to 1.1.0
+  * always run npm with --no-package-lock. This will fix all weird
+    errors and no loger require cleaning package-lock.json from
+    upstream
+  * `quilt setup` script is now in the utility
+  * everything is run in JS now, so you can run directly with
+    node version of change. Either,
+      local-npm-registry
+    or
+      node22 /usr/bin/local-npm-registry
+
+-------------------------------------------------------------------

Old:
----
  local_npm_registry-v1.0.2.tar.gz

New:
----
  local_npm_registry-v1.1.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ local-npm-registry.spec ++++++
--- /var/tmp/diff_new_pack.qC8xGL/_old  2025-02-25 16:41:47.368376018 +0100
+++ /var/tmp/diff_new_pack.qC8xGL/_new  2025-02-25 16:41:47.380376520 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package local-npm-registry
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           local-npm-registry
-Version:        1.0.2
+Version:        1.1.0
 Release:        0
 Summary:        Localhost-only version of NPM registry
 License:        GPL-3.0-or-later
@@ -42,16 +42,9 @@
 mkdir -p %{buildroot}%{_bindir}
 cp -r dist node_modules %{buildroot}%{_datadir}/%{name}
 cat > %{buildroot}%{_bindir}/local-npm-registry << EOF
-#!/bin/sh
-
-if [ "x\$QUILT_COMMAND" = "xsetup" ]
-then
-        echo "Run in setup mode. 'npm install' skipped. Run 'npm ci' manually."
-        cp "\$RPM_SOURCE_DIR/package-lock.json" .
-        exit 0
-fi
-
-exec node %{_datadir}/%{name}/dist/ "\$@"
+#!/usr/bin/node
+const foo = await import("%{_datadir}/%{name}/dist/index.js")
+foo.mainEntryFunction()
 EOF
 
 %files

++++++ local_npm_registry-v1.0.2.tar.gz -> local_npm_registry-v1.1.0.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/local_npm_registry-v1.0.2/dist/index.d.ts 
new/local_npm_registry-v1.1.0/dist/index.d.ts
--- old/local_npm_registry-v1.0.2/dist/index.d.ts       2024-01-30 
15:38:06.289031984 +0100
+++ new/local_npm_registry-v1.1.0/dist/index.d.ts       2025-02-21 
14:39:50.983086556 +0100
@@ -16,5 +16,5 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
-declare function mainEntryFunction(): Promise<void>;
+declare function mainEntryFunction(): Promise<any>;
 export { mainEntryFunction };
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/local_npm_registry-v1.0.2/dist/index.js 
new/local_npm_registry-v1.1.0/dist/index.js
--- old/local_npm_registry-v1.0.2/dist/index.js 2024-01-30 15:38:06.289031984 
+0100
+++ new/local_npm_registry-v1.1.0/dist/index.js 2025-02-21 14:39:50.983086556 
+0100
@@ -22,6 +22,7 @@
 const process_1 = require("process");
 const child_process_1 = require("child_process");
 const url_1 = require("url");
+const process_2 = require("process");
 const registry_1 = require("./registry");
 const service_1 = require("./service");
 const fs_registry_1 = require("./fs_registry");
@@ -80,7 +81,7 @@
         return Promise.reject("npm install skipped");
     }
     return new Promise((accept, reject) => {
-        (0, child_process_1.spawn)("npm", install_options, { stdio: 'inherit' 
})
+        (0, child_process_1.spawn)("npm", 
install_options.concat("--no-package-lock"), { stdio: 'inherit' })
             .on("exit", (code) => {
             code === 0 ? accept() : reject("NPM returned code: " + code);
         });
@@ -89,25 +90,34 @@
 function printHelpInformation() {
     console.log("   usage: index [ npm files | npm tarball directories ] ... 
[npm run options] ");
     console.log("--help    prints this help message");
+    console.log("--debug   starts service and listens on localhost until 
killed");
 }
 function mainEntryFunction() {
+    if (process_2.env.QUILT_COMMAND === "setup") {
+        console.log("Run in quilt setup mode. 'npm install' skipped. Run 'npm 
ci' manually.");
+        return;
+    }
     if (process_1.argv.includes("--help")) {
         printHelpInformation();
         return;
     }
+    const isDebug = process_1.argv.includes("--debug");
     const registry = new registry_1.Registry();
     registry.addBackend(new fs_registry_1.TarballRegistryBackend);
     registry.addBackend(new dir_registry_1.DirRegistryBackend);
     const service = new service_1.Service({ url: new 
url_1.URL("http://localhost";) });
     registry.serviceProvider = service;
-    return registerTarballsFromCommandline(registry)
-        .then(() => setupServerAndGetPort(service, registry))
-        .then(port => configureNpmToSpecificLocalhostPort(service, port))
+    const s = registerTarballsFromCommandline(registry)
+        .then(() => setupServerAndGetPort(service, registry));
+    if (isDebug)
+        return;
+    return s.then(port => configureNpmToSpecificLocalhostPort(service, port))
         .then(() => runNpmInstall())
         .then(() => {
         console.log("npm done. Shutting down proxy");
     })
         .catch(msg => {
+        process.exitCode = 1;
         console.log("An error occurred: " + msg);
     })
         .finally(() => {
@@ -116,6 +126,7 @@
     });
 }
 exports.mainEntryFunction = mainEntryFunction;
-if (require.main === module)
+if (require.main === module) {
     mainEntryFunction();
+}
 //# sourceMappingURL=index.js.map
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/local_npm_registry-v1.0.2/dist/index.js.map 
new/local_npm_registry-v1.1.0/dist/index.js.map
--- old/local_npm_registry-v1.0.2/dist/index.js.map     2024-01-30 
15:38:06.289031984 +0100
+++ new/local_npm_registry-v1.1.0/dist/index.js.map     2025-02-21 
14:39:50.983086556 +0100
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;AAEF,qCAA8B;AAC9B,iDAAqC;AACrC,6BAA0B;AAE1B,yCAAsC;AACtC,uCAAoC;AACpC,+CAAuD;AACvD,iDAAmD;AAEnD,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,eAAe,GAAY,EAAE,CAAC;AAEpC,SAAS,+BAA+B,CAAC,QAAiB;IACzD,MAAM,SAAS,GAAqB,EAAE,CAAC;IACvC,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,oBAAoB,EAAE,CAAC,EAAE;QACxC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,cAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;QACjC,MAAM,EAAE,GAAG,cAAI,CAAC,CAAC,CAAC,CAAC;QAEnB,SAAS,CAAC,CAAC,GAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,CAAC,GAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YACxH,IAAI,CAAC,IAAI,CAAC;gBACT,eAAe,CAAC,IAAI,CAAC,cAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAE/B,OAAO,SAAS,GAAG,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC,CAAC;KAC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
'--exclude=.svnignore' 
old/local_npm_registry-v1.0.2/node_modules/.package-lock.json 
new/local_npm_registry-v1.1.0/node_modules/.package-lock.json
--- old/local_npm_registry-v1.0.2/node_modules/.package-lock.json       
2024-01-30 15:38:07.272365464 +0100
+++ new/local_npm_registry-v1.1.0/node_modules/.package-lock.json       
2025-02-21 14:39:51.699753105 +0100
@@ -1,6 +1,6 @@
 {
   "name": "local_npm_registry",
-  "version": "1.0.2",
+  "version": "1.1.0",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/local_npm_registry-v1.0.2/npm-shrinkwrap.json 
new/local_npm_registry-v1.1.0/npm-shrinkwrap.json
--- old/local_npm_registry-v1.0.2/npm-shrinkwrap.json   2024-01-30 
15:38:08.179032266 +0100
+++ new/local_npm_registry-v1.1.0/npm-shrinkwrap.json   2025-02-21 
14:39:52.529752970 +0100
@@ -1,12 +1,12 @@
 {
   "name": "local_npm_registry",
-  "version": "1.0.2",
+  "version": "1.1.0",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "local_npm_registry",
-      "version": "1.0.2",
+      "version": "1.1.0",
       "license": "GPL-3.0-or-later",
       "dependencies": {
         "ssri": "^10.0.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/local_npm_registry-v1.0.2/package.json 
new/local_npm_registry-v1.1.0/package.json
--- old/local_npm_registry-v1.0.2/package.json  2024-01-30 15:38:06.639032036 
+0100
+++ new/local_npm_registry-v1.1.0/package.json  2025-02-21 14:39:51.116419867 
+0100
@@ -1,6 +1,6 @@
 {
   "name": "local_npm_registry",
-  "version": "1.0.2",
+  "version": "1.1.0",
   "description": "proxies NPM packages over localhost allowing non-network run 
of `npm install`",
   "private": "true",
   "directories": {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/local_npm_registry-v1.0.2/src/index.ts 
new/local_npm_registry-v1.1.0/src/index.ts
--- old/local_npm_registry-v1.0.2/src/index.ts  2024-01-30 15:38:06.289031984 
+0100
+++ new/local_npm_registry-v1.1.0/src/index.ts  2025-02-21 14:39:50.983086556 
+0100
@@ -20,6 +20,7 @@
 import { argv } from 'process'
 import { spawn } from 'child_process'
 import { URL } from 'url';
+import { env } from 'process'
 
 import { Registry } from './registry';
 import { Service } from './service';
@@ -90,7 +91,7 @@
        }
 
        return new Promise((accept, reject) => {
-               spawn("npm", install_options, {stdio: 'inherit'})
+               spawn("npm", install_options.concat("--no-package-lock") , 
{stdio: 'inherit'})
                .on("exit", (code) => {
                        code === 0 ? accept() : reject("NPM returned code: " + 
code);
                });
@@ -100,28 +101,41 @@
 function printHelpInformation() {
        console.log("   usage: index [ npm files | npm tarball directories ] 
... [npm run options] ");
        console.log("--help    prints this help message");
+       console.log("--debug   starts service and listens on localhost until 
killed")
 }
 
-function mainEntryFunction(): Promise<void> {
+function mainEntryFunction(): Promise<any> {
+       if (env.QUILT_COMMAND === "setup") {
+               console.log("Run in quilt setup mode. 'npm install' skipped. 
Run 'npm ci' manually.");
+               return;
+       }
+
        if (argv.includes("--help")) {
                printHelpInformation();
                return;
        }
 
+       const isDebug = argv.includes("--debug")
+
        const registry = new Registry();
        registry.addBackend(new TarballRegistryBackend);
        registry.addBackend(new DirRegistryBackend);
        const service = new Service({url: new URL("http://localhost";)});
        registry.serviceProvider = service;
 
-       return registerTarballsFromCommandline(registry)
+       const s = registerTarballsFromCommandline(registry)
        .then(() => setupServerAndGetPort(service, registry))
-       .then(port => configureNpmToSpecificLocalhostPort(service, port))
+
+       if (isDebug)
+               return
+
+       return s.then(port => configureNpmToSpecificLocalhostPort(service, 
port))
        .then(() => runNpmInstall())
        .then(() => {
                console.log("npm done. Shutting down proxy");
        })
        .catch(msg => {
+               process.exitCode = 1
                console.log("An error occurred: " + msg);
        })
        .finally(() => {
@@ -130,8 +144,9 @@
        })
 }
 
-if (require.main === module)
+if (require.main === module) {
        mainEntryFunction();
+}
 
 export { mainEntryFunction }
 

Reply via email to