BLUE
PHP 7.4.33
Path:
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/cssnano-utils/src
Run
Logout
Edit File
Size: 969 B
Close
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/cssnano-utils/src/sameParent.js
Text
Base64
'use strict'; /** * @param {import('postcss').AnyNode} nodeA * @param {import('postcss').AnyNode} nodeB * @return {boolean} */ function checkMatch(nodeA, nodeB) { if (nodeA.type === 'atrule' && nodeB.type === 'atrule') { return ( nodeA.params === nodeB.params && nodeA.name.toLowerCase() === nodeB.name.toLowerCase() ); } return nodeA.type === nodeB.type; } /** @typedef {import('postcss').AnyNode & {parent?: Child}} Child */ /** * @param {Child} nodeA * @param {Child} nodeB * @return {boolean} */ function sameParent(nodeA, nodeB) { if (!nodeA.parent) { // A is orphaned, return if B is orphaned as well return !nodeB.parent; } if (!nodeB.parent) { // B is orphaned and A is not return false; } // Check if parents match if (!checkMatch(nodeA.parent, nodeB.parent)) { return false; } // Check parents' parents return sameParent(nodeA.parent, nodeB.parent); } module.exports = sameParent;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
getArguments.js
535 B
lrw-r--r--
2025-06-16 05:45:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
213 B
lrw-r--r--
2025-06-16 05:45:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rawCache.js
741 B
lrw-r--r--
2025-06-16 05:45:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sameParent.js
969 B
lrw-r--r--
2025-06-16 05:45:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).