// --ignore-scripts (npm/cli#9681). --dangerously-allow-all-scripts // bypasses the gate. const scriptsDenied = !this.options.dangerouslyAllowAllScripts && isScriptAllowed(node, this.options.allowScripts) === false for (const [key, has] of Object.entries(tests)) { if (!has) { continue } if (key !== 'bin' && scriptsDenied) { continue } this.#queues[key].push(node)