Comparing version 8.2.9 to 8.2.10
@@ -133,3 +133,5 @@ 'use strict' | ||
if (this.file) { | ||
result.input.url = pathToFileURL(this.file).toString() | ||
if (pathToFileURL) { | ||
result.input.url = pathToFileURL(this.file).toString() | ||
} | ||
result.input.file = this.file | ||
@@ -166,3 +168,8 @@ } | ||
if (fromUrl.protocol === 'file:') { | ||
result.file = fileURLToPath(fromUrl) | ||
if (fileURLToPath) { | ||
result.file = fileURLToPath(fromUrl) | ||
} else { | ||
// istanbul ignore next | ||
throw new Error(`file: protocol is not available in this PostCSS build`); | ||
} | ||
} | ||
@@ -169,0 +176,0 @@ |
@@ -7,3 +7,3 @@ 'use strict' | ||
let pathAvailable = Boolean(dirname, resolve, relative, sep) | ||
let pathAvailable = Boolean(dirname && resolve && relative && sep) | ||
@@ -206,3 +206,8 @@ class MapGenerator { | ||
} else if (this.mapOpts.absolute) { | ||
return pathToFileURL(node.source.input.from).toString() | ||
if (pathToFileURL) { | ||
return pathToFileURL(node.source.input.from).toString() | ||
} else { | ||
// istanbul ignore next | ||
throw new Error('`map.absolute` option is not available in this PostCSS build') | ||
} | ||
} else { | ||
@@ -209,0 +214,0 @@ return this.toUrl(this.path(node.source.input.from)) |
@@ -51,9 +51,7 @@ 'use strict' | ||
getAnnotationURL(sourceMapString) { | ||
return sourceMapString | ||
.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1] | ||
.trim() | ||
return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\*\//)[1].trim() | ||
} | ||
loadAnnotation(css) { | ||
let annotations = css.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm) | ||
let annotations = css.match(/\/\*\s*# sourceMappingURL=.*\*\//gm) | ||
@@ -60,0 +58,0 @@ if (annotations && annotations.length > 0) { |
@@ -8,3 +8,3 @@ 'use strict' | ||
constructor(plugins = []) { | ||
this.version = '8.2.9' | ||
this.version = '8.2.10' | ||
this.plugins = this.normalize(plugins) | ||
@@ -11,0 +11,0 @@ } |
{ | ||
"name": "postcss", | ||
"version": "8.2.9", | ||
"version": "8.2.10", | ||
"description": "Tool for transforming styles with JS plugins", | ||
@@ -46,4 +46,5 @@ "engines": { | ||
"fs": false, | ||
"path": false | ||
"path": false, | ||
"url": false | ||
} | ||
} |
@@ -383,3 +383,3 @@ # PostCSS [![Gitter][chat-img]][chat] | ||
import postcss from 'https://deno.land/x/postcss/mod.js' | ||
import autoprefixer from 'https://dev.jspm.io/autoprefixer' | ||
import autoprefixer from 'https://jspm.dev/autoprefixer' | ||
@@ -386,0 +386,0 @@ const result = await postcss([autoprefixer]).process(css) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179759
5797