Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/pmb/node_modules/webpack-manifest-plugin/node_modules/webpack-sources/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const { SourceNode, SourceMapConsumer } = require("source-map");
const { SourceListMap, fromStringWithSourceMap } = require("source-list-map");
exports.getSourceAndMap = (inputSource, options) => {
let source;
let map;
if (options && options.columns === false) {
const res = inputSource.listMap(options).toStringWithSourceMap({
file: "x"
});
source = res.source;
map = res.map;
} else {
const res = inputSource.node(options).toStringWithSourceMap({
file: "x"
});
source = res.code;
map = res.map.toJSON();
}
if (!map || !map.sources || map.sources.length === 0) map = null;
return {
source,
map
};
};
exports.getMap = (source, options) => {
let map;
if (options && options.columns === false) {
map = source.listMap(options).toStringWithSourceMap({
file: "x"
}).map;
} else {
map = source
.node(options)
.toStringWithSourceMap({
file: "x"
})
.map.toJSON();
}
if (!map || !map.sources || map.sources.length === 0) return null;
return map;
};
exports.getNode = (source, options) => {
if (typeof source.node === "function") {
return source.node(options);
} else {
const sourceAndMap = source.sourceAndMap(options);
if (sourceAndMap.map) {
return SourceNode.fromStringWithSourceMap(
sourceAndMap.source,
new SourceMapConsumer(sourceAndMap.map)
);
} else {
return new SourceNode(null, null, null, sourceAndMap.source);
}
}
};
exports.getListMap = (source, options) => {
if (typeof source.listMap === "function") {
return source.listMap(options);
} else {
const sourceAndMap = source.sourceAndMap(options);
if (sourceAndMap.map) {
return fromStringWithSourceMap(sourceAndMap.source, sourceAndMap.map);
} else {
return new SourceListMap(sourceAndMap.source);
}
}
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0046 ]-- |