Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package asar for openSUSE:Factory checked in at 2023-09-28 00:25:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/asar (Old) and /work/SRC/openSUSE:Factory/.asar.new.23327 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "asar" Thu Sep 28 00:25:38 2023 rev:6 rq:1113779 version:3.2.7 Changes: -------- --- /work/SRC/openSUSE:Factory/asar/asar.changes 2023-09-26 22:18:47.529540400 +0200 +++ /work/SRC/openSUSE:Factory/.asar.new.23327/asar.changes 2023-09-28 00:30:30.067514019 +0200 @@ -1,0 +2,6 @@ +Wed Sep 27 04:34:29 UTC 2023 - Bruno Pitrus <brunopit...@hotmail.com> + +- New upstream version 3.2.7 + * ensure that files/folders whose names are properties of Object.prototype are packaged/extracted correctly + +------------------------------------------------------------------- Old: ---- v3.2.6.tar.gz New: ---- v3.2.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ asar.spec ++++++ --- /var/tmp/diff_new_pack.xPegdI/_old 2023-09-28 00:30:31.143552860 +0200 +++ /var/tmp/diff_new_pack.xPegdI/_new 2023-09-28 00:30:31.143552860 +0200 @@ -17,7 +17,7 @@ Name: asar -Version: 3.2.6 +Version: 3.2.7 Release: 0 Summary: Creating atom-shell (electron) app packages License: MIT and ISC ++++++ v3.2.6.tar.gz -> v3.2.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/lib/filesystem.js new/asar-3.2.7/lib/filesystem.js --- old/asar-3.2.6/lib/filesystem.js 2023-09-26 07:58:07.000000000 +0200 +++ new/asar-3.2.7/lib/filesystem.js 2023-09-27 02:29:55.000000000 +0200 @@ -14,7 +14,7 @@ class Filesystem { constructor (src) { this.src = path.resolve(src) - this.header = { files: {} } + this.header = { files: Object.create(null) } this.offset = BigInt(0) } @@ -24,7 +24,7 @@ for (const dir of dirs) { if (dir !== '.') { if (!json.files[dir]) { - json.files[dir] = { files: {} } + json.files[dir] = { files: Object.create(null) } } json = json.files[dir] } @@ -38,10 +38,10 @@ const name = path.basename(p) const node = this.searchNodeFromDirectory(path.dirname(p)) if (node.files == null) { - node.files = {} + node.files = Object.create(null) } if (node.files[name] == null) { - node.files[name] = {} + node.files[name] = Object.create(null) } return node.files[name] } @@ -51,7 +51,7 @@ if (shouldUnpack) { node.unpacked = shouldUnpack } - node.files = node.files || {} + node.files = node.files || Object.create(null) return node.files } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/api-spec.js new/asar-3.2.7/test/api-spec.js --- old/asar-3.2.6/test/api-spec.js 2023-09-26 07:58:07.000000000 +0200 +++ new/asar-3.2.7/test/api-spec.js 2023-09-27 02:29:55.000000000 +0200 @@ -94,4 +94,12 @@ const expected = await fs.readFile('test/input/packthis-unicode-path/dir1/女ã®å.txt', 'utf8') return compFileLists(actual, expected) }) + it('should create files/directories whose names are properties of Object.prototype', async () => { + await asar.createPackage('test/input/packthis-object-prototype/', 'tmp/packthis-object-prototype.asar') + return compFiles('tmp/packthis-object-prototype.asar', 'test/expected/packthis-object-prototype.asar') + }) + it('should extract files/directories whose names are properties of Object.prototype', () => { + asar.extractAll('test/expected/packthis-object-prototype.asar', 'tmp/packthis-object-prototype/') + return compDirs('test/input/packthis-object-prototype/', 'tmp/packthis-object-prototype') + }) }) Binary files old/asar-3.2.6/test/expected/packthis-object-prototype.asar and new/asar-3.2.7/test/expected/packthis-object-prototype.asar differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/__proto__ new/asar-3.2.7/test/input/packthis-object-prototype/__proto__ --- old/asar-3.2.6/test/input/packthis-object-prototype/__proto__ 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/__proto__ 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +__proto__ \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/constructor/__proto__ new/asar-3.2.7/test/input/packthis-object-prototype/constructor/__proto__ --- old/asar-3.2.6/test/input/packthis-object-prototype/constructor/__proto__ 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/constructor/__proto__ 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +constructor/__proto__ \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/constructor/constructor new/asar-3.2.7/test/input/packthis-object-prototype/constructor/constructor --- old/asar-3.2.6/test/input/packthis-object-prototype/constructor/constructor 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/constructor/constructor 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +constructor/constructor \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/constructor/file1 new/asar-3.2.7/test/input/packthis-object-prototype/constructor/file1 --- old/asar-3.2.6/test/input/packthis-object-prototype/constructor/file1 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/constructor/file1 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +constructor/file1 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/file1 new/asar-3.2.7/test/input/packthis-object-prototype/file1 --- old/asar-3.2.6/test/input/packthis-object-prototype/file1 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/file1 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +file1 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/file2 new/asar-3.2.7/test/input/packthis-object-prototype/file2 --- old/asar-3.2.6/test/input/packthis-object-prototype/file2 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/file2 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +file2 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/folder1/constructor/constructor/__proto__/__proto__ new/asar-3.2.7/test/input/packthis-object-prototype/folder1/constructor/constructor/__proto__/__proto__ --- old/asar-3.2.6/test/input/packthis-object-prototype/folder1/constructor/constructor/__proto__/__proto__ 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/folder1/constructor/constructor/__proto__/__proto__ 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +folder1/constructor/constructor/__proto__/__proto__ \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/folder1/constructor/constructor/__proto__/file1 new/asar-3.2.7/test/input/packthis-object-prototype/folder1/constructor/constructor/__proto__/file1 --- old/asar-3.2.6/test/input/packthis-object-prototype/folder1/constructor/constructor/__proto__/file1 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/folder1/constructor/constructor/__proto__/file1 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +folder1/constructor/constructor/__proto__/file1 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/folder1/constructor/constructor/constructor new/asar-3.2.7/test/input/packthis-object-prototype/folder1/constructor/constructor/constructor --- old/asar-3.2.6/test/input/packthis-object-prototype/folder1/constructor/constructor/constructor 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/folder1/constructor/constructor/constructor 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +folder1/constructor/constructor/constructor \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/folder1/constructor/constructor/file1 new/asar-3.2.7/test/input/packthis-object-prototype/folder1/constructor/constructor/file1 --- old/asar-3.2.6/test/input/packthis-object-prototype/folder1/constructor/constructor/file1 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/folder1/constructor/constructor/file1 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +folder1/constructor/constructor/file1 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asar-3.2.6/test/input/packthis-object-prototype/folder1/file1 new/asar-3.2.7/test/input/packthis-object-prototype/folder1/file1 --- old/asar-3.2.6/test/input/packthis-object-prototype/folder1/file1 1970-01-01 01:00:00.000000000 +0100 +++ new/asar-3.2.7/test/input/packthis-object-prototype/folder1/file1 2023-09-27 02:29:55.000000000 +0200 @@ -0,0 +1 @@ +folder1/file1 \ No newline at end of file