@stylable/code-formatter
Advanced tools
Comparing version 4.6.0 to 4.7.0
@@ -9,6 +9,6 @@ "use strict"; | ||
const offsetEnd = (offset === null || offset === void 0 ? void 0 : offset.end) || content.length; | ||
const ast = core_1.safeParse(content.slice(offsetStart, offsetEnd)); | ||
const ast = (0, core_1.safeParse)(content.slice(offsetStart, offsetEnd)); | ||
const changes = removeFormattingExceptions(ast); | ||
const formattedText = format(ast.toString(), options); | ||
const newText = restoreFormattingExceptions(core_1.safeParse(formattedText), changes).toString(); | ||
const newText = restoreFormattingExceptions((0, core_1.safeParse)(formattedText), changes).toString(); | ||
return newText; | ||
@@ -39,4 +39,4 @@ } | ||
}; | ||
return js_beautify_1.css(text, normalizedOptions); | ||
return (0, js_beautify_1.css)(text, normalizedOptions); | ||
} | ||
//# sourceMappingURL=formatter.js.map |
@@ -1,2 +0,2 @@ | ||
export * from './formatter'; | ||
export { getDocumentFormatting } from './formatter'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./formatter"), exports); | ||
exports.getDocumentFormatting = void 0; | ||
var formatter_1 = require("./formatter"); | ||
Object.defineProperty(exports, "getDocumentFormatting", { enumerable: true, get: function () { return formatter_1.getDocumentFormatting; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@stylable/code-formatter", | ||
"version": "4.6.0", | ||
"version": "4.7.0", | ||
"description": "A code formatting utility for Stylable stylesheets", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^4.6.0", | ||
"@stylable/core": "^4.7.0", | ||
"js-beautify": "^1.14.0" | ||
@@ -13,0 +13,0 @@ }, |
@@ -1,1 +0,1 @@ | ||
export * from './formatter'; | ||
export { getDocumentFormatting } from './formatter'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7895
91
Updated@stylable/core@^4.7.0