@jsenv/utils
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -96,3 +96,3 @@ /** | ||
const atRuleStart = atImportNode.source.start.offset | ||
const atRuleEnd = atImportNode.source.end.offset | ||
const atRuleEnd = atImportNode.source.end.offset + 1 // for the ";" | ||
const atRuleRaw = atImportNode.source.input.css.slice( | ||
@@ -105,12 +105,15 @@ atRuleStart, | ||
const specifierEnd = specifierStart + atImportNode.params.length | ||
const line = atImportNode.source.start.line | ||
const column = atImportNode.source.start.column + specifierIndex | ||
const specifierLine = atImportNode.source.start.line | ||
const specifierColumn = | ||
atImportNode.source.start.column + specifierIndex | ||
urlVisitor({ | ||
declarationNode: atImportNode, | ||
type: "@import", | ||
atRuleStart, | ||
atRuleEnd, | ||
specifier, | ||
line, | ||
column, | ||
start: specifierStart, | ||
end: specifierEnd, | ||
specifierLine, | ||
specifierColumn, | ||
specifierStart, | ||
specifierEnd, | ||
replace: (newUrlSpecifier) => { | ||
@@ -170,4 +173,4 @@ if (newUrlSpecifier === urlNode.value) { | ||
// declarationNode.source.input.css.slice(specifierStart, specifierEnd) | ||
const line = declarationNode.source.start.line | ||
const column = | ||
const specifierLine = declarationNode.source.start.line | ||
const specifierColumn = | ||
declarationNode.source.start.column + | ||
@@ -180,6 +183,6 @@ (specifierStart - declarationNodeStart) | ||
specifier, | ||
line, | ||
column, | ||
start: specifierStart, | ||
end: specifierEnd, | ||
specifierLine, | ||
specifierColumn, | ||
specifierStart, | ||
specifierEnd, | ||
replace: (newUrlSpecifier) => { | ||
@@ -186,0 +189,0 @@ urlMutations.push(() => { |
{ | ||
"name": "@jsenv/utils", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
203794
6043