@unified-latex/unified-latex-util-render-info
Advanced tools
Comparing version 1.0.12 to 1.1.0
@@ -14,3 +14,3 @@ import * as Ast from "@unified-latex/unified-latex-types"; | ||
*/ | ||
export declare function trimRenderInfo(ast: Ast.Ast): Ast.Ast; | ||
export declare function trimRenderInfo<T extends Ast.Ast>(ast: T): T; | ||
/** | ||
@@ -17,0 +17,0 @@ * ## What is this? |
19
index.js
@@ -1,18 +0,1 @@ | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
// index.ts | ||
@@ -22,3 +5,3 @@ import { visit } from "@unified-latex/unified-latex-util-visit"; | ||
if (renderInfo != null) { | ||
node._renderInfo = __spreadValues(__spreadValues({}, node._renderInfo || {}), renderInfo); | ||
node._renderInfo = { ...node._renderInfo || {}, ...renderInfo }; | ||
} | ||
@@ -25,0 +8,0 @@ return node; |
{ | ||
"name": "@unified-latex/unified-latex-util-render-info", | ||
"version": "1.0.12", | ||
"version": "1.1.0", | ||
"description": "Functions for modifying a unified-latex AST", | ||
@@ -8,4 +8,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@unified-latex/unified-latex-types": "^1.0.12", | ||
"@unified-latex/unified-latex-util-visit": "^1.0.12" | ||
"@unified-latex/unified-latex-types": "^1.1.0", | ||
"@unified-latex/unified-latex-util-visit": "^1.1.0" | ||
}, | ||
@@ -12,0 +12,0 @@ "repository": { |
@@ -34,3 +34,3 @@ <!-- DO NOT MODIFY --> | ||
```typescript | ||
function trimRenderInfo(ast: Ast.Ast): Ast.Ast; | ||
function trimRenderInfo<T extends Ast.Ast>(ast: Ast.Ast): T; | ||
``` | ||
@@ -37,0 +37,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
Sorry, the diff of this file is not supported yet
9676
85
+ Added@unified-latex/unified-latex-util-visit@1.8.0(transitive)
- Removed@unified-latex/unified-latex-util-visit@1.8.2(transitive)