BLUE
PHP 7.4.33
Path:
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/metro-source-map/src
Run
Logout
Edit File
Size: 1.76 KB
Close
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/metro-source-map/src/BundleBuilder.js
Text
Base64
"use strict"; const EMPTY_MAP = { version: 3, sources: [], names: [], mappings: "A", }; class BundleBuilder { constructor(file) { this._file = file; this._sections = []; this._line = 0; this._column = 0; this._code = ""; this._afterMappedContent = false; } _pushMapSection(map) { this._sections.push({ map, offset: { column: this._column, line: this._line, }, }); } _endMappedContent() { if (this._afterMappedContent) { this._pushMapSection(EMPTY_MAP); this._afterMappedContent = false; } } append(code, map) { if (!code.length) { return this; } const { lineBreaks, lastLineColumns } = measureString(code); if (map) { this._pushMapSection(map); this._afterMappedContent = true; } else { this._endMappedContent(); } this._afterMappedContent = !!map; this._line = this._line + lineBreaks; if (lineBreaks > 0) { this._column = lastLineColumns; } else { this._column = this._column + lastLineColumns; } this._code = this._code + code; return this; } getMap() { this._endMappedContent(); return createIndexMap(this._file, this._sections); } getCode() { return this._code; } } const reLineBreak = /\r\n|\r|\n/g; function measureString(str) { let lineBreaks = 0; let match; let lastLineStart = 0; while ((match = reLineBreak.exec(str))) { ++lineBreaks; lastLineStart = match.index + match[0].length; } const lastLineColumns = str.length - lastLineStart; return { lineBreaks, lastLineColumns, }; } function createIndexMap(file, sections) { return { version: 3, file, sections, }; } module.exports = { BundleBuilder, createIndexMap, };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Consumer
DIR
-
drwxr-xr-x
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
B64Builder.js
1.23 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
B64Builder.js.flow
2.33 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
BundleBuilder.js
1.76 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
BundleBuilder.js.flow
2.71 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
composeSourceMaps.js
2.85 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
composeSourceMaps.js.flow
3.74 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
encode.js
1001 B
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
encode.js.flow
4.32 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
generateFunctionMap.js
10.27 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
generateFunctionMap.js.flow
16.27 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Generator.js
4.63 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Generator.js.flow
7.14 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
source-map.d.ts
1.53 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
source-map.js
4.25 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
source-map.js.flow
8.79 KB
lrw-r--r--
2025-03-28 11:04:34
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).