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

@vue/compiler-sfc

Package Overview
Dependencies
Maintainers
1
Versions
276
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/compiler-sfc - npm Package Compare versions

Comparing version 3.0.0-beta.15 to 3.0.0-beta.16

14

dist/compiler-sfc.cjs.js

@@ -220,2 +220,6 @@ 'use strict';

}
const dataUrlRE = /^\s*data:/i;
function isDataUrl(url) {
return dataUrlRE.test(url);
}
/**

@@ -299,2 +303,3 @@ * Parses string url into URL object.

isExternalUrl(attr.value.content) ||
isDataUrl(attr.value.content) ||
attr.value.content[0] === '#' ||

@@ -380,2 +385,10 @@ (!options.includeAbsolute && !isRelativeUrl(attr.value.content))) {

});
// for data url need recheck url
for (let i = 0; i < imageCandidates.length; i++) {
if (imageCandidates[i].url.trim().startsWith('data:')) {
imageCandidates[i + 1].url =
imageCandidates[i].url + ',' + imageCandidates[i + 1].url;
imageCandidates.splice(i, 1);
}
}
// When srcset does not contain any relative URLs, skip transforming

@@ -404,2 +417,3 @@ if (!options.includeAbsolute &&

if (!isExternalUrl(url) &&
!isDataUrl(url) &&
(options.includeAbsolute || isRelativeUrl(url))) {

@@ -406,0 +420,0 @@ const { path } = parseUrl(url);

14

package.json
{
"name": "@vue/compiler-sfc",
"version": "3.0.0-beta.15",
"version": "3.0.0-beta.16",
"description": "@vue/compiler-sfc",

@@ -34,9 +34,9 @@ "main": "dist/compiler-sfc.cjs.js",

"peerDependencies": {
"vue": "3.0.0-beta.15"
"vue": "3.0.0-beta.16"
},
"dependencies": {
"@vue/compiler-core": "3.0.0-beta.15",
"@vue/compiler-dom": "3.0.0-beta.15",
"@vue/compiler-ssr": "3.0.0-beta.15",
"@vue/shared": "3.0.0-beta.15",
"@vue/compiler-core": "3.0.0-beta.16",
"@vue/compiler-dom": "3.0.0-beta.16",
"@vue/compiler-ssr": "3.0.0-beta.16",
"@vue/shared": "3.0.0-beta.16",
"consolidate": "^0.15.1",

@@ -47,3 +47,3 @@ "hash-sum": "^2.0.0",

"postcss": "^7.0.27",
"postcss-modules": "^2.0.0",
"postcss-modules": "^3.1.0",
"postcss-selector-parser": "^6.0.2",

@@ -50,0 +50,0 @@ "source-map": "^0.6.1"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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