REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.33 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/caniuse-lite/dist/unpacker/feature.js
Text
Base64
'use strict' const statuses = require('../lib/statuses') const supported = require('../lib/supported') const browsers = require('./browsers').browsers const versions = require('./browserVersions').browserVersions const MATH2LOG = Math.log(2) function unpackSupport(cipher) { // bit flags let stats = Object.keys(supported).reduce((list, support) => { if (cipher & supported[support]) list.push(support) return list }, []) // notes let notes = cipher >> 7 let notesArray = [] while (notes) { let note = Math.floor(Math.log(notes) / MATH2LOG) + 1 notesArray.unshift(`#${note}`) notes -= Math.pow(2, note - 1) } return stats.concat(notesArray).join(' ') } function unpackFeature(packed) { let unpacked = { status: statuses[packed.B], title: packed.C, shown: packed.D } unpacked.stats = Object.keys(packed.A).reduce((browserStats, key) => { let browser = packed.A[key] browserStats[browsers[key]] = Object.keys(browser).reduce( (stats, support) => { let packedVersions = browser[support].split(' ') let unpacked2 = unpackSupport(support) packedVersions.forEach(v => (stats[versions[v]] = unpacked2)) return stats }, {} ) return browserStats }, {}) return unpacked } module.exports = unpackFeature module.exports.default = unpackFeature
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
agents.js
1.41 KB
lrw-r--r--
2026-02-28 00:28:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
browsers.js
57 B
lrw-r--r--
2026-02-28 00:29:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
browserVersions.js
71 B
lrw-r--r--
2026-02-28 00:29:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
feature.js
1.33 KB
lrw-r--r--
2026-02-28 00:31:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
features.js
141 B
lrw-r--r--
2026-02-28 00:31:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
198 B
lrw-r--r--
2026-02-28 00:31:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
region.js
550 B
lrw-r--r--
2026-02-28 00:31:40
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).