Fix vulnerable CI dependencies and verify builder matching

(cherry picked from commit ca9f81bbbd)
This commit is contained in:
Sucukdeluxe committed 2026-11-22 05:16:16 +01:00
1 parent 739a3ff19d
commit 788665ebc1
5 files changed
+283 -159

No files matched your search

@@ -0,0 +1,15 @@
const assert = require('node:assert/strict');
const { createRequire } = require('node:module');
const test = require('node:test');
for (const consumer of ['@electron/universal', 'app-builder-lib']) {
test(consumer + ' resolves compatible file matching', () => {
const fromConsumer = createRequire(require.resolve(consumer));
const { minimatch, Minimatch } = fromConsumer('minimatch');
assert.equal(minimatch('Resources/bin/helper.node', '*.node', { matchBase: true }), true);
assert.equal(minimatch('Resources/bin/helper.js', '*.node', { matchBase: true }), false);
assert.equal(new Minimatch('**/*.{js,json}').match('lib/index.js'), true);
assert.equal(new Minimatch('**/*.{js,json}').match('lib/private.pem'), false);
assert.equal(minimatch('Contents/Info.plist', 'Info.plist', { matchBase: true }), true);
});
}