@unified-latex/unified-latex-builder
Advanced tools
Comparing version 1.0.0 to 1.0.5
@@ -54,3 +54,2 @@ // libs/builders.ts | ||
function args(args2, special) { | ||
var _a, _b; | ||
if (!Array.isArray(args2)) { | ||
@@ -66,8 +65,7 @@ args2 = [args2]; | ||
} | ||
const openMark = (_a = special == null ? void 0 : special.defaultOpenMark) != null ? _a : "{"; | ||
const closeMark = (_b = special == null ? void 0 : special.defaultCloseMark) != null ? _b : "}"; | ||
const openMark = (special == null ? void 0 : special.defaultOpenMark) ?? "{"; | ||
const closeMark = (special == null ? void 0 : special.defaultCloseMark) ?? "}"; | ||
return normalizeArgumentsList(args2, openMark, closeMark); | ||
} | ||
function arg(args2, special) { | ||
var _a, _b; | ||
if (typeof args2 === "string") { | ||
@@ -79,4 +77,4 @@ args2 = s(args2); | ||
} | ||
let openMark = (_a = special == null ? void 0 : special.openMark) != null ? _a : "{"; | ||
let closeMark = (_b = special == null ? void 0 : special.closeMark) != null ? _b : "}"; | ||
let openMark = (special == null ? void 0 : special.openMark) ?? "{"; | ||
let closeMark = (special == null ? void 0 : special.closeMark) ?? "}"; | ||
if (special == null ? void 0 : special.braces) { | ||
@@ -136,1 +134,2 @@ const braces = bracesToOpenAndCloseMarks(special.braces); | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@unified-latex/unified-latex-builder", | ||
"version": "1.0.0", | ||
"version": "1.0.5", | ||
"description": "Tools for constructing unified-latex ASTs", | ||
@@ -8,3 +8,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@unified-latex/unified-latex-types": "^1.0.0" | ||
"@unified-latex/unified-latex-types": "^1.0.5" | ||
}, | ||
@@ -18,18 +18,16 @@ "files": [ | ||
"exports": { | ||
".": "./dist/index.js", | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"./*js": "./dist/*js", | ||
"./*": "./dist/*.js" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"dist/*" | ||
] | ||
"./*": { | ||
"import": "./dist/*.js", | ||
"require": "./dist/*.cjs" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "npm run clean && npm run compile", | ||
"build": "npm run clean && mkdirp ./dist && npm run compile", | ||
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo", | ||
"compile": "tsc -b tsconfig.json" | ||
"compile": "tsc -b tsconfig.json & node build.js & wait" | ||
}, | ||
@@ -40,9 +38,27 @@ "repository": { | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "BSD", | ||
"keywords": [ | ||
"pegjs", | ||
"latex", | ||
"parser", | ||
"prettier", | ||
"unified-latex", | ||
"unified" | ||
], | ||
"author": "Jason Siefken", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/siefkenj/unified-latex/issues" | ||
}, | ||
"homepage": "https://github.com/siefkenj/unified-latex#readme" | ||
"homepage": "https://github.com/siefkenj/unified-latex#readme", | ||
"jest": { | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!unified|bail|is-plain-obj|trough|vfile.*|unist.*|hast.*|property-information|html-void-elements|.*-separated-tokens|.*entities.*|ccount|rehype*|string-width|strip-ansi|ansi-regex|supports-color)" | ||
], | ||
"transform": { | ||
"\\.m?jsx?$": "ts-jest", | ||
"latex.pegjs$": "<rootDir>/../../tests/pegjs-preprocessor-latex.js", | ||
"\\.pegjs$": "<rootDir>/../../tests/pegjs-preprocessor.js", | ||
"^.+\\.tsx?$": "ts-jest" | ||
} | ||
} | ||
} |
@@ -16,2 +16,11 @@ <!-- DO NOT MODIFY --> | ||
## Install | ||
```bash | ||
npm install @unified-latex/unified-latex-builder | ||
``` | ||
This package contains both esm and commonjs exports. To explicitly access the esm export, | ||
import the `.js` file. To explicitly access the commonjs export, import the `.cjs` file. | ||
# Functions | ||
@@ -18,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
31582
9
0
0
0
163
195