/
var
/
www
/
cobraambalaj
/
node_modules
/
postcss
/
lib
/
/var/www/cobraambalaj/node_modules/postcss/lib
mkdir
upload
Name
Size
Mode
Actions
at-rule.d.ts
2205
0644
edit
dl
rm
at-rule.js
474
0644
edit
dl
rm
comment.d.ts
1095
0644
edit
dl
rm
comment.js
204
0644
edit
dl
rm
container.d.ts
12726
0644
edit
dl
rm
container.js
10183
0644
edit
dl
rm
css-syntax-error.d.ts
4830
0644
edit
dl
rm
css-syntax-error.js
2299
0644
edit
dl
rm
declaration.d.ts
2650
0644
edit
dl
rm
declaration.js
497
0644
edit
dl
rm
fromJSON.d.ts
107
0644
edit
dl
rm
fromJSON.js
1507
0644
edit
dl
rm
input.d.ts
2816
0644
edit
dl
rm
input.js
4549
0644
edit
dl
rm
lazy-result.d.ts
4833
0644
edit
dl
rm
lazy-result.js
12279
0644
edit
dl
rm
list.d.ts
850
0644
edit
dl
rm
list.js
1170
0644
edit
dl
rm
map-generator.js
7306
0644
edit
dl
rm
node.d.ts
11348
0644
edit
dl
rm
node.js
6909
0644
edit
dl
rm
parse.d.ts
89
0644
edit
dl
rm
parse.js
1148
0644
edit
dl
rm
parser.js
13323
0644
edit
dl
rm
postcss.d.ts
10569
0644
edit
dl
rm
postcss.js
2513
0644
edit
dl
rm
postcss.mjs
855
0644
edit
dl
rm
previous-map.d.ts
1618
0644
edit
dl
rm
previous-map.js
3960
0644
edit
dl
rm
processor.d.ts
2944
0644
edit
dl
rm
processor.js
1965
0644
edit
dl
rm
result.d.ts
4086
0644
edit
dl
rm
result.js
750
0644
edit
dl
rm
root.d.ts
1195
0644
edit
dl
rm
root.js
1213
0644
edit
dl
rm
rule.d.ts
2078
0644
edit
dl
rm
rule.js
572
0644
edit
dl
rm
stringifier.js
7996
0644
edit
dl
rm
stringify.d.ts
107
0644
edit
dl
rm
stringify.js
214
0644
edit
dl
rm
symbols.js
57
0644
edit
dl
rm
terminal-highlight.js
1360
0644
edit
dl
rm
tokenize.js
6542
0644
edit
dl
rm
warn-once.js
225
0644
edit
dl
rm
warning.d.ts
1935
0644
edit
dl
rm
warning.js
650
0644
edit
dl
rm
Edit:
/var/www/cobraambalaj/node_modules/postcss/lib/previous-map.js
(3960B)
'use strict' let { existsSync, readFileSync } = require('fs') let { dirname, join } = require('path') let mozilla = require('source-map') function fromBase64 (str) { if (Buffer) { return Buffer.from(str, 'base64').toString() } else { // istanbul ignore next return window.atob(str) } } class PreviousMap { constructor (css, opts) { if (opts.map === false) return this.loadAnnotation(css) this.inline = this.startWith(this.annotation, 'data:') let prev = opts.map ? opts.map.prev : undefined let text = this.loadMap(opts.from, prev) if (!this.mapFile && opts.from) { this.mapFile = opts.from } if (this.mapFile) this.root = dirname(this.mapFile) if (text) this.text = text } consumer () { if (!this.consumerCache) { this.consumerCache = new mozilla.SourceMapConsumer(this.text) } return this.consumerCache } withContent () { return !!( this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0 ) } startWith (string, start) { if (!string) return false return string.substr(0, start.length) === start } getAnnotationURL (sourceMapString) { return sourceMapString .match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1] .trim() } loadAnnotation (css) { let annotations = css.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm) if (annotations && annotations.length > 0) { // Locate the last sourceMappingURL to avoid picking up // sourceMappingURLs from comments, strings, etc. let lastAnnotation = annotations[annotations.length - 1] if (lastAnnotation) { this.annotation = this.getAnnotationURL(lastAnnotation) } } } decodeInline (text) { let baseCharsetUri = /^data:application\/json;charset=utf-?8;base64,/ let baseUri = /^data:application\/json;base64,/ let charsetUri = /^data:application\/json;charset=utf-?8,/ let uri = /^data:application\/json,/ if (charsetUri.test(text) || uri.test(text)) { return decodeURIComponent(text.substr(RegExp.lastMatch.length)) } if (baseCharsetUri.test(text) || baseUri.test(text)) { return fromBase64(text.substr(RegExp.lastMatch.length)) } let encoding = text.match(/data:application\/json;([^,]+),/)[1] throw new Error('Unsupported source map encoding ' + encoding) } loadFile (path) { this.root = dirname(path) if (existsSync(path)) { this.mapFile = path return readFileSync(path, 'utf-8').toString().trim() } } loadMap (file, prev) { if (prev === false) return false if (prev) { if (typeof prev === 'string') { return prev } else if (typeof prev === 'function') { let prevPath = prev(file) if (prevPath) { let map = this.loadFile(prevPath) if (!map) { throw new Error( 'Unable to load previous source map: ' + prevPath.toString() ) } return map } } else if (prev instanceof mozilla.SourceMapConsumer) { return mozilla.SourceMapGenerator.fromSourceMap(prev).toString() } else if (prev instanceof mozilla.SourceMapGenerator) { return prev.toString() } else if (this.isMap(prev)) { return JSON.stringify(prev) } else { throw new Error( 'Unsupported previous source map format: ' + prev.toString() ) } } else if (this.inline) { return this.decodeInline(this.annotation) } else if (this.annotation) { let map = this.annotation if (file) map = join(dirname(file), map) return this.loadFile(map) } } isMap (map) { if (typeof map !== 'object') return false return ( typeof map.mappings === 'string' || typeof map._mappings === 'string' || Array.isArray(map.sections) ) } } module.exports = PreviousMap PreviousMap.default = PreviousMap
Save
cmd:
run