sheetloaf 1.8.0 → 1.10.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ const configs = __importStar(require("./configs"));
47
47
  const fileFinder = __importStar(require("./fileFinder"));
48
48
  const sources = __importStar(require("./sources"));
49
49
  const sheetloaf = new commander_1.Command();
50
- sheetloaf.version("1.8.0", '-v, --version', 'Print the version of Sheetloaf.');
50
+ sheetloaf.version("1.10.0", '-v, --version', 'Print the version of Sheetloaf.');
51
51
  let usingStdin = false;
52
52
  let postcssConfig = {
53
53
  plugins: []
@@ -283,10 +283,11 @@ function sassErrorCatcher(e, destination) {
283
283
  }
284
284
  }
285
285
  function emitSassError(err) {
286
- const message = err.sassMessage.toString().replace(/'/g, '"');
286
+ const message = err.sassMessage.toString().replace(/"/g, "'").replace(/\n/g, " ");
287
+ const context = err.span.context.toString().replace(/"/g, "'").replace(/\n/g, " ");
287
288
  let css = `
288
289
  body:before {
289
- content: 'Error at line ${err.span.start.line} in ${err.span.url.pathname}';
290
+ content: "Error at line ${err.span.start.line} in ${err.span.url.pathname}";
290
291
  display: table;
291
292
  background-color:#cc0000;
292
293
  color:white;
@@ -296,7 +297,7 @@ function emitSassError(err) {
296
297
  font-family:sans-serif
297
298
  }
298
299
  body:after {
299
- content: '${err.span.context} ----- ${message}';
300
+ content: "${context} ----- ${message}";
300
301
  display: table;
301
302
  background-color:#0e70b0;
302
303
  color:white;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sheetloaf",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "description": "freshmade stylesheets for the whole family.",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -54,6 +54,6 @@
54
54
  "fast-glob": "^3.2.12",
55
55
  "picocolors": "^1.0.0",
56
56
  "picomatch": "^2.3.1",
57
- "sass": "^1.59.2"
57
+ "sass": "^1.63.3"
58
58
  }
59
59
  }