Socket
Socket
Sign inDemoInstall

svelte-preprocess

Package Overview
Dependencies
5
Maintainers
2
Versions
173
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.2 to 5.1.3

0

dist/transformers/pug.js

@@ -0,0 +0,0 @@ "use strict";

19

dist/transformers/scss.js

@@ -25,6 +25,9 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformer = void 0;
const fs_1 = require("fs");
const path_1 = require("path");
const path_1 = __importDefault(require("path"));
const utils_1 = require("../modules/utils");

@@ -41,3 +44,3 @@ const tildeImporter = (url, prev) => {

}
const modulePath = (0, path_1.join)('node_modules', ...url.slice(1).split(/[\\/]/g));
const modulePath = path_1.default.join('node_modules', ...url.slice(1).split(/[\\/]/g));
const foundPath = (0, utils_1.findUp)({ what: modulePath, from: prev });

@@ -80,8 +83,14 @@ // istanbul ignore if

const compiled = renderSync(sassOptions);
// We need to normalize the path for windows, because the sass compiler
// returns a windows path in posix format __just for the entry__ (the dependency list below is fine 🤷)
// More info: https://github.com/sveltejs/svelte-preprocess/issues/619
const normalizedEntryPath = process.platform === 'win32'
? compiled.stats.entry.split('/').join(path_1.default.win32.sep)
: compiled.stats.entry;
// For some reason, scss includes the main 'file' in the array, we don't want that
// Unfortunately I didn't manage to reproduce this in the test env
// More info: https://github.com/sveltejs/svelte-preprocess/issues/346
const absoluteEntryPath = (0, path_1.isAbsolute)(compiled.stats.entry)
? compiled.stats.entry
: (0, path_1.join)(process.cwd(), compiled.stats.entry);
const absoluteEntryPath = path_1.default.isAbsolute(normalizedEntryPath)
? normalizedEntryPath
: path_1.default.join(process.cwd(), normalizedEntryPath);
const processed = {

@@ -88,0 +97,0 @@ code: compiled.css.toString(),

{
"name": "svelte-preprocess",
"version": "5.1.2",
"version": "5.1.3",
"license": "MIT",

@@ -21,6 +21,8 @@ "main": "dist/index.js",

"engines": {
"node": ">= 14.10.0"
"node": ">= 16.0.0",
"pnpm": "^8.0.0"
},
"packageManager": "pnpm@8.12.1",
"volta": {
"node": "14.19.2"
"node": "20.10.0"
},

@@ -60,4 +62,4 @@ "files": [

"devDependencies": {
"@babel/core": "^7.20.5",
"@babel/preset-env": "^7.20.2",
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@commitlint/cli": "^11.0.0",

@@ -67,7 +69,7 @@ "@commitlint/config-conventional": "^11.0.0",

"@kiwi/prettier-config": "^2.0.2",
"@types/babel__core": "^7.1.20",
"@types/babel__core": "^7.20.5",
"@types/jest": "^27.5.2",
"@types/node": "^14.18.34",
"@types/stylus": "^0.48.38",
"autoprefixer": "^9.8.8",
"autoprefixer": "^10.4.16",
"babel-minify": "^0.5.2",

@@ -81,4 +83,4 @@ "coffeescript": "^2.7.0",

"lint-staged": "^10.5.4",
"postcss": "^8.4.19",
"postcss-easy-import": "^3.0.0",
"postcss": "^8.4.32",
"postcss-easy-import": "^4.0.0",
"postcss-load-config": "^3.1.4",

@@ -91,3 +93,3 @@ "prettier": "^2.8.1",

"svelte": "^3.54.0",
"ts-jest": "^29.0.5",
"ts-jest": "^29.1.1",
"typescript": "^5.0.2"

@@ -98,3 +100,3 @@ },

"detect-indent": "^6.1.0",
"magic-string": "^0.27.0",
"magic-string": "^0.30.5",
"sorcery": "^0.11.0",

@@ -101,0 +103,0 @@ "strip-indent": "^3.0.0"

@@ -0,0 +0,0 @@ # Svelte Preprocess

Sorry, the diff of this file is not supported yet

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