mirror of
https://github.com/quartz-community/description.git
synced 2026-07-22 02:50:28 +00:00
build: bundle dependencies and ship pre-built dist
This commit is contained in:
parent
4c76de3ad3
commit
85090f26c9
2 changed files with 9 additions and 3 deletions
10
dist/index.js
vendored
10
dist/index.js
vendored
|
|
@ -1,5 +1,3 @@
|
|||
import { escapeHTML } from '@quartz-community/utils';
|
||||
|
||||
// node_modules/hast-util-to-string/lib/index.js
|
||||
function toString(node) {
|
||||
if ("children" in node) {
|
||||
|
|
@ -21,6 +19,14 @@ function all(node) {
|
|||
}
|
||||
return result.join("");
|
||||
}
|
||||
"function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Math.random().toString(8);
|
||||
|
||||
// node_modules/@quartz-community/utils/dist/index.js
|
||||
function escapeHTML(unsafe) {
|
||||
return unsafe.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
||||
}
|
||||
|
||||
// src/transformer.ts
|
||||
var defaultOptions = {
|
||||
descriptionLength: 150,
|
||||
maxDescriptionLength: 300,
|
||||
|
|
|
|||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue