Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stylable/code-formatter

Package Overview
Dependencies
Maintainers
7
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/code-formatter - npm Package Compare versions

Comparing version 4.6.0 to 4.7.0

6

dist/formatter.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc