Socket
Socket
Sign inDemoInstall

svelte-preprocess

Package Overview
Dependencies
6
Maintainers
2
Versions
174
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.10.3 to 4.10.4

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [4.10.4](https://github.com/sveltejs/svelte-preprocess/compare/v4.10.3...v4.10.4) (2022-02-23)
### Bug Fixes
* only try to load external files with relative paths ([#487](https://github.com/sveltejs/svelte-preprocess/issues/487)) ([80d87ed](https://github.com/sveltejs/svelte-preprocess/commit/80d87edac4723401db47d06ed03bb6cd388c21d9))
## [4.10.3](https://github.com/sveltejs/svelte-preprocess/compare/v4.10.2...v4.10.3) (2022-02-09)

@@ -2,0 +11,0 @@

6

dist/modules/utils.js

@@ -76,8 +76,4 @@ "use strict";

exports.hasDepInstalled = hasDepInstalled;
const REMOTE_SRC_PATTERN = /^(https?:)?\/\//;
function isValidLocalPath(path) {
return (path.match(REMOTE_SRC_PATTERN) == null &&
// only literal strings allowed
!path.startsWith('{') &&
!path.endsWith('}'));
return path.startsWith('.');
}

@@ -84,0 +80,0 @@ exports.isValidLocalPath = isValidLocalPath;

{
"name": "svelte-preprocess",
"version": "4.10.3",
"version": "4.10.4",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -77,2 +77,4 @@ # Svelte Preprocess

> Note: using a relative path starting with `.` is important. Otherwise `svelte-preprocess` will ignore the `src` attribute.
### Global style

@@ -79,0 +81,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc