Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jsenv/utils

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/utils - npm Package Compare versions

Comparing version 1.7.1 to 1.7.2

graph/sort_by_dependencies.js

29

css_ast/postcss_plugin_url_visitor.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc