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

prettier-plugin-marko

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-marko - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

16

dist/index.js

@@ -0,1 +1,2 @@

var __create = Object.create;
var __defProp = Object.defineProperty;

@@ -7,2 +8,3 @@ var __defProps = Object.defineProperties;

var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -35,2 +37,3 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable;

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -116,4 +119,15 @@

// src/utils/get-original-code.ts
var import_generator = __toESM(require("@babel/generator"));
function getOriginalCode(opts, start, end = start) {
return opts.originalText.slice(locToPos(start.loc.start, opts), locToPos(end.loc.end, opts));
const startLoc = start.loc;
const endLoc = end.loc;
if (start === end && !startLoc || !endLoc) {
return (0, import_generator.default)(start, {
filename: opts.filepath,
compact: false,
comments: true,
sourceMaps: false
}).code;
}
return opts.originalText.slice(locToPos(startLoc.start, opts), locToPos(endLoc.end, opts));
}

@@ -120,0 +134,0 @@

4

package.json
{
"name": "prettier-plugin-marko",
"description": "A prettier plugin for parsing and printing Marko files",
"version": "1.2.1",
"version": "1.2.2",
"author": "Dylan Piercey <dpiercey@ebay.com>",
"bugs": "https://github.com/marko-js/prettier/issues",
"devDependencies": {
"@babel/generator": "^7.18.9",
"@commitlint/cli": "^16.2.3",

@@ -13,2 +14,3 @@ "@commitlint/config-conventional": "^16.2.1",

"@marko/translator-default": "^5.20.5",
"@types/babel__generator": "^7.6.4",
"@types/mocha": "^9.1.1",

@@ -15,0 +17,0 @@ "@types/node": "^17.0.25",

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