@unified-latex/unified-latex-prettier
Advanced tools
Comparing version 1.7.1 to 1.8.0
import * as Ast from '@unified-latex/unified-latex-types'; | ||
import type { AstPath as AstPath_2 } from 'prettier'; | ||
import type { Doc } from 'prettier'; | ||
import type { Options } from 'prettier'; | ||
import type { ParserOptions } from 'prettier'; | ||
import type { Plugin as Plugin_2 } from 'prettier'; | ||
import { AstPath as AstPath_2 } from 'prettier'; | ||
import { Doc } from 'prettier'; | ||
import { Options } from 'prettier'; | ||
import { ParserOptions } from 'prettier'; | ||
import { Plugin as Plugin_2 } from 'prettier'; | ||
@@ -8,0 +8,0 @@ declare type AstPath = AstPath_2<Ast.Node | Ast.Argument>; |
30
index.js
@@ -1,19 +0,8 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
var __typeError = (msg) => { | ||
throw TypeError(msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); | ||
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); | ||
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value); | ||
var _path, _print; | ||
@@ -153,4 +142,3 @@ import { builders } from "prettier/doc"; | ||
i++; | ||
} else if (match.parbreak(nextNode)) | ||
; | ||
} else if (match.parbreak(nextNode)) ; | ||
else if (!match.comment(nextNode)) { | ||
@@ -436,4 +424,4 @@ ret.push(hardline); | ||
constructor(spec, path, print) { | ||
__privateAdd(this, _path, void 0); | ||
__privateAdd(this, _print, void 0); | ||
__privateAdd(this, _path); | ||
__privateAdd(this, _print); | ||
__privateSet(this, _path, path); | ||
@@ -440,0 +428,0 @@ __privateSet(this, _print, print); |
{ | ||
"name": "@unified-latex/unified-latex-prettier", | ||
"version": "1.7.1", | ||
"version": "1.8.0", | ||
"description": "Prettier plugin for processing LaTeX code via unified-latex", | ||
@@ -8,11 +8,11 @@ "main": "index.js", | ||
"dependencies": { | ||
"@unified-latex/unified-latex-ctan": "^1.7.1", | ||
"@unified-latex/unified-latex-types": "^1.7.1", | ||
"@unified-latex/unified-latex-util-align": "^1.7.1", | ||
"@unified-latex/unified-latex-util-match": "^1.7.1", | ||
"@unified-latex/unified-latex-util-parse": "^1.7.1", | ||
"@unified-latex/unified-latex-util-pgfkeys": "^1.7.1", | ||
"@unified-latex/unified-latex-util-print-raw": "^1.7.1", | ||
"@unified-latex/unified-latex-util-trim": "^1.7.1", | ||
"@unified-latex/unified-latex-util-visit": "^1.7.1", | ||
"@unified-latex/unified-latex-ctan": "^1.8.0", | ||
"@unified-latex/unified-latex-types": "^1.8.0", | ||
"@unified-latex/unified-latex-util-align": "^1.8.0", | ||
"@unified-latex/unified-latex-util-match": "^1.8.0", | ||
"@unified-latex/unified-latex-util-parse": "^1.8.0", | ||
"@unified-latex/unified-latex-util-pgfkeys": "^1.8.0", | ||
"@unified-latex/unified-latex-util-print-raw": "^1.8.0", | ||
"@unified-latex/unified-latex-util-trim": "^1.8.0", | ||
"@unified-latex/unified-latex-util-visit": "^1.8.0", | ||
"prettier": "^3.0.3" | ||
@@ -19,0 +19,0 @@ }, |
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
221753
2166