@pronto-tools-and-more/sass-compiler 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/sass-compiler",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "",
5
5
  "main": "src/sassCompilerMain.js",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "sass": "^1.77.8"
21
21
  },
22
22
  "devDependencies": {
23
- "@types/node": "^20.14.9",
23
+ "@types/node": "^20.14.10",
24
24
  "jest": "^29.7.0"
25
25
  },
26
26
  "jest": {
@@ -4,6 +4,7 @@ import * as sass from "sass";
4
4
  import * as Assert from "../Assert/Assert.js";
5
5
  import * as GetContent from "../GetContent/GetContent.js";
6
6
  import * as UpdateCss from "../UpdateCss/UpdateCss.js";
7
+ import * as SilenceDeprecations from "../SilenceDeprecations/SilenceDeprecations.js";
7
8
 
8
9
  export const compileSass = async ({
9
10
  absolutePath = "",
@@ -15,6 +16,7 @@ export const compileSass = async ({
15
16
  const content = GetContent.getContent(absolutePath);
16
17
  const result = sass.compileString(content, {
17
18
  url: pathToFileURL(absolutePath),
19
+ silenceDeprecations: SilenceDeprecations.silenceDeprecations,
18
20
  importers: [
19
21
  {
20
22
  canonicalize(url) {
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @type {any[]}
3
+ */
4
+ export const silenceDeprecations = ["mixed-decls"];