@hyperframes/parsers 0.9.93 → 0.9.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assetResolution.d.ts +1 -1
- package/dist/assetResolution.js +3 -1
- package/dist/ffBinaries.d.ts +10 -2
- package/dist/ffBinaries.js +33 -6
- package/dist/hfIds.d.ts +4 -1
- package/dist/hfIds.js +88 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +89 -6
- package/dist/linkedom.d.ts +11 -0
- package/dist/linkedom.js +103 -0
- package/dist/literalMediaInput.js +2 -3
- package/dist/privatePath.d.ts +2 -1
- package/dist/privatePath.js +23 -22
- package/package.json +6 -2
|
@@ -65,7 +65,7 @@ declare function resolveExistingLocalAsset(projectDir: string, url: string): {
|
|
|
65
65
|
/** The project file a `src` authored in `compositionFile` loads in preview and render; null when none exists. */
|
|
66
66
|
declare function resolveAuthoredAssetFile(projectDir: string, compositionFile: string, src: string): string | null;
|
|
67
67
|
/** Resolves a media `src` like a browser URL (`..` clamps at the project root); a miss returns the base-dir join. */
|
|
68
|
-
declare function resolveProjectRelativeSrc(src: string,
|
|
68
|
+
declare function resolveProjectRelativeSrc(src: string, relativeOrAbsoluteBase: string, relativeOrAbsoluteCompiled?: string): string;
|
|
69
69
|
/** Blanks out comments, `<style>`, and `<script>` bodies so tag-scanning
|
|
70
70
|
* regexes don't false-positive on commented-out or scripted markup. */
|
|
71
71
|
declare function maskNonScannableRanges(html: string): string;
|
package/dist/assetResolution.js
CHANGED
|
@@ -269,7 +269,9 @@ function gitBashFile(src) {
|
|
|
269
269
|
const path = resolve3(`${src[1]}:${src.slice(2)}`);
|
|
270
270
|
return existsSync(path) ? path : void 0;
|
|
271
271
|
}
|
|
272
|
-
function resolveProjectRelativeSrc(src,
|
|
272
|
+
function resolveProjectRelativeSrc(src, relativeOrAbsoluteBase, relativeOrAbsoluteCompiled) {
|
|
273
|
+
const baseDir = resolve3(relativeOrAbsoluteBase);
|
|
274
|
+
const compiledDir = relativeOrAbsoluteCompiled && resolve3(relativeOrAbsoluteCompiled);
|
|
273
275
|
const cleanSrc = fileUrlAsPath(cleanAssetUrl(src));
|
|
274
276
|
if (isAbsolute2(cleanSrc) && !namesAnotherNetworkRoot(baseDir, cleanSrc) && existsSync(cleanSrc)) {
|
|
275
277
|
return cleanSrc;
|
package/dist/ffBinaries.d.ts
CHANGED
|
@@ -59,13 +59,21 @@ declare function concatListInputArgs(concatListPath: string): string[];
|
|
|
59
59
|
declare const SELF_CONTAINED_FORMATS = "mov,matroska,mxf,avi,mpeg,mpegts,mpegvideo,flv,asf,ogg,wav,mp3,aac,flac,aiff,caf,w64,wv,au,ac3,gif,image2,png_pipe,jpeg_pipe,webp_pipe,bmp_pipe,tiff_pipe";
|
|
60
60
|
/** Tests feed a `-demuxers` listing so none spawns a binary; no argument forgets it. */
|
|
61
61
|
declare function _setDemuxerListingForTests(listing?: string): void;
|
|
62
|
+
/** Empty folder ffmpeg runs from, so a name it opens as written finds no project file. Callers pass absolute paths. */
|
|
63
|
+
declare function ffmpegWorkingDir(): string;
|
|
64
|
+
/** Runs `work` with ffmpeg spawned from {@link ffmpegWorkingDir}; every path it hands ffmpeg must be absolute. */
|
|
65
|
+
declare const fromEmptyFolder: <T>(work: () => T) => T;
|
|
66
|
+
declare const ffmpegCwd: () => string | undefined;
|
|
62
67
|
declare function localContainerInputArgs(container: "mov" | "matroska" | undefined): string[];
|
|
63
68
|
|
|
64
|
-
/**
|
|
69
|
+
/** The `-format_whitelist` pair for `input` (no playlists unless `playlists: true`); callers read it by position. */
|
|
65
70
|
declare function mediaInputFormatArgs(listingBinary: string, input: string, { playlists }?: {
|
|
66
71
|
playlists?: boolean;
|
|
67
72
|
}): string[];
|
|
73
|
+
declare function mediaInputArgs(listingBinary: string, input: string, options?: {
|
|
74
|
+
playlists?: boolean;
|
|
75
|
+
}): string[];
|
|
68
76
|
/** Hears the furthest output time, in seconds, that ffmpeg's `-progress pipe:1` lines on `stream` report. */
|
|
69
77
|
declare function followFfmpegProgress(stream: Readable, onSeconds: (seconds: number) => void): void;
|
|
70
78
|
|
|
71
|
-
export { FFMPEG_PATH_ENV, FFPROBE_PATH_ENV, type FfBinaryName, type FindFfBinaryOptions, SELF_CONTAINED_FORMATS, _setDemuxerListingForTests, clearFfBinaryLookupCache, concatListInputArgs, concatListText, executableIn, findFfBinary, findTrustedExecutable, followFfmpegProgress, getSkippedX86Binary, isTrustedDirectory, isTrustedExecutablePath, isX86OnlyMachO, localContainerInputArgs, mediaInputFormatArgs, pathEntries, requireFfBinary, trustedPathDirs };
|
|
79
|
+
export { FFMPEG_PATH_ENV, FFPROBE_PATH_ENV, type FfBinaryName, type FindFfBinaryOptions, SELF_CONTAINED_FORMATS, _setDemuxerListingForTests, clearFfBinaryLookupCache, concatListInputArgs, concatListText, executableIn, ffmpegCwd, ffmpegWorkingDir, findFfBinary, findTrustedExecutable, followFfmpegProgress, fromEmptyFolder, getSkippedX86Binary, isTrustedDirectory, isTrustedExecutablePath, isX86OnlyMachO, localContainerInputArgs, mediaInputArgs, mediaInputFormatArgs, pathEntries, requireFfBinary, trustedPathDirs };
|
package/dist/ffBinaries.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
// src/ffBinaries.ts
|
|
2
|
+
import { AsyncLocalStorage } from "async_hooks";
|
|
2
3
|
import { execFileSync } from "child_process";
|
|
3
4
|
import {
|
|
4
5
|
accessSync as accessSync2,
|
|
5
6
|
closeSync,
|
|
6
7
|
constants as constants2,
|
|
7
8
|
existsSync as existsSync2,
|
|
9
|
+
mkdtempSync,
|
|
8
10
|
openSync,
|
|
9
11
|
readSync,
|
|
12
|
+
rmdirSync,
|
|
10
13
|
statSync as statSync2
|
|
11
14
|
} from "fs";
|
|
12
15
|
import { createRequire } from "module";
|
|
16
|
+
import { tmpdir } from "os";
|
|
13
17
|
import { basename as basename2, dirname as dirname2, join as join2, resolve as resolve2 } from "path";
|
|
14
18
|
|
|
15
19
|
// src/trustedExecutable.ts
|
|
@@ -142,11 +146,10 @@ function findTrustedExecutable(name) {
|
|
|
142
146
|
// src/literalMediaInput.ts
|
|
143
147
|
var PATTERN_IMAGE2_EXPANDS = /%\d*[d%*?[\]{}]/;
|
|
144
148
|
var WILDCARD_MAKES_ANY_PERCENT_A_PATTERN = /[*?[{]/;
|
|
145
|
-
var
|
|
149
|
+
var FORWARDED = /^https?:/i;
|
|
146
150
|
function refusePattern(path, use) {
|
|
147
|
-
const local = !URL_SCHEME.test(path) || /^file:/i.test(path);
|
|
148
151
|
const pattern = PATTERN_IMAGE2_EXPANDS.test(path) || path.includes("%") && WILDCARD_MAKES_ANY_PERCENT_A_PATTERN.test(path);
|
|
149
|
-
if (
|
|
152
|
+
if (FORWARDED.test(path) || !pattern) return;
|
|
150
153
|
throw new Error(
|
|
151
154
|
`[FFmpeg] refused media path "${path.split(/[\\/]/).pop()}": a "%" followed by "d", another "%" or a wildcard, with or without digits between, or a "%" and a wildcard (*, ?, [ or {) anywhere in the path, would make ffmpeg ${use} it as a pattern of other files. Rename the file or folder.`
|
|
152
155
|
);
|
|
@@ -359,13 +362,29 @@ function _setDemuxerListingForTests(listing) {
|
|
|
359
362
|
listingOverride = listing;
|
|
360
363
|
demuxerLists.clear();
|
|
361
364
|
}
|
|
365
|
+
var workingDir;
|
|
366
|
+
function ffmpegWorkingDir() {
|
|
367
|
+
if (workingDir && existsSync2(workingDir)) return workingDir;
|
|
368
|
+
if (!workingDir) {
|
|
369
|
+
process.once("exit", () => {
|
|
370
|
+
try {
|
|
371
|
+
rmdirSync(workingDir);
|
|
372
|
+
} catch {
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
workingDir = mkdtempSync(join2(tmpdir(), "hf-ffmpeg-cwd-"));
|
|
377
|
+
return workingDir;
|
|
378
|
+
}
|
|
379
|
+
var emptyFolderScope = new AsyncLocalStorage();
|
|
380
|
+
var fromEmptyFolder = (work) => emptyFolderScope.run(true, work);
|
|
381
|
+
var ffmpegCwd = () => emptyFolderScope.getStore() ? ffmpegWorkingDir() : void 0;
|
|
362
382
|
function localContainerInputArgs(container) {
|
|
363
383
|
return container ? ["-protocol_whitelist", "file", "-format_whitelist", container] : [];
|
|
364
384
|
}
|
|
365
385
|
var PLAYLIST_DEMUXERS = /* @__PURE__ */ new Set(["hls", "applehttp", "concat"]);
|
|
366
386
|
function mediaInputFormatArgs(listingBinary, input, { playlists = false } = {}) {
|
|
367
387
|
assertLiteralMediaInput(input);
|
|
368
|
-
const local = /^https?:\/\//i.test(input) ? [] : ["-protocol_whitelist", "file"];
|
|
369
388
|
const allowed = (formats2) => playlists ? formats2 : formats2.split(",").filter((name) => !PLAYLIST_DEMUXERS.has(name)).join(",");
|
|
370
389
|
let formats = demuxerLists.get(listingBinary);
|
|
371
390
|
if (formats === void 0) {
|
|
@@ -381,10 +400,14 @@ function mediaInputFormatArgs(listingBinary, input, { playlists = false } = {})
|
|
|
381
400
|
} catch {
|
|
382
401
|
formats = void 0;
|
|
383
402
|
}
|
|
384
|
-
if (formats === void 0) return [
|
|
403
|
+
if (formats === void 0) return ["-format_whitelist", SELF_CONTAINED_FORMATS];
|
|
385
404
|
demuxerLists.set(listingBinary, formats);
|
|
386
405
|
}
|
|
387
|
-
return [
|
|
406
|
+
return ["-format_whitelist", allowed(formats)];
|
|
407
|
+
}
|
|
408
|
+
function mediaInputArgs(listingBinary, input, options = {}) {
|
|
409
|
+
const local = /^https?:\/\//i.test(input) ? [] : ["-protocol_whitelist", "file"];
|
|
410
|
+
return [...local, ...mediaInputFormatArgs(listingBinary, input, options)];
|
|
388
411
|
}
|
|
389
412
|
var OUT_TIME = /^out_time_(?:us|ms)=(\d+)$/;
|
|
390
413
|
function followFfmpegProgress(stream, onSeconds) {
|
|
@@ -413,14 +436,18 @@ export {
|
|
|
413
436
|
concatListInputArgs,
|
|
414
437
|
concatListText,
|
|
415
438
|
executableIn,
|
|
439
|
+
ffmpegCwd,
|
|
440
|
+
ffmpegWorkingDir,
|
|
416
441
|
findFfBinary,
|
|
417
442
|
findTrustedExecutable,
|
|
418
443
|
followFfmpegProgress,
|
|
444
|
+
fromEmptyFolder,
|
|
419
445
|
getSkippedX86Binary,
|
|
420
446
|
isTrustedDirectory,
|
|
421
447
|
isTrustedExecutablePath,
|
|
422
448
|
isX86OnlyMachO,
|
|
423
449
|
localContainerInputArgs,
|
|
450
|
+
mediaInputArgs,
|
|
424
451
|
mediaInputFormatArgs,
|
|
425
452
|
pathEntries,
|
|
426
453
|
requireFfBinary,
|
package/dist/hfIds.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
declare const EXCLUDED_TAGS: Set<string>;
|
|
2
|
+
declare const isNonContentElement: (el: {
|
|
3
|
+
tagName: string;
|
|
4
|
+
}) => boolean;
|
|
2
5
|
declare function mintHfId(el: Element, assigned: Set<string>): string;
|
|
3
6
|
declare function isCompositionTemplate(el: Element): boolean;
|
|
4
7
|
/**
|
|
@@ -14,4 +17,4 @@ declare function ensureHfIds(html: string): string;
|
|
|
14
17
|
* Markup whose tags the parser did not keep one-to-one falls back to ensureHfIds. */
|
|
15
18
|
declare function stampHfIdsInPlace(html: string): string;
|
|
16
19
|
|
|
17
|
-
export { EXCLUDED_TAGS, ensureHfIds, isCompositionTemplate, mintHfId, stampHfIdsInPlace, walkCompositionDescendants };
|
|
20
|
+
export { EXCLUDED_TAGS, ensureHfIds, isCompositionTemplate, isNonContentElement, mintHfId, stampHfIdsInPlace, walkCompositionDescendants };
|
package/dist/hfIds.js
CHANGED
|
@@ -1,5 +1,89 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
import {
|
|
1
|
+
// src/linkedom.ts
|
|
2
|
+
import {
|
|
3
|
+
DOMParser as LinkedomDOMParser,
|
|
4
|
+
HTMLElement,
|
|
5
|
+
HTMLTextAreaElement,
|
|
6
|
+
HTMLTitleElement,
|
|
7
|
+
parseHTML as linkedomParseHTML
|
|
8
|
+
} from "linkedom";
|
|
9
|
+
var escapeDecodedTitleText = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
10
|
+
var neutraliseTextareaEndTag = (text) => text.replace(/<(\/textarea)/gi, "<$1");
|
|
11
|
+
var writeEmptyElement = HTMLElement.prototype.toString;
|
|
12
|
+
var installed = false;
|
|
13
|
+
function escapeTextOnWrite() {
|
|
14
|
+
if (installed) return;
|
|
15
|
+
installed = true;
|
|
16
|
+
for (const [Element, escape] of [
|
|
17
|
+
[HTMLTitleElement, escapeDecodedTitleText],
|
|
18
|
+
[HTMLTextAreaElement, neutraliseTextareaEndTag]
|
|
19
|
+
]) {
|
|
20
|
+
Object.defineProperty(Element.prototype, "toString", {
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value() {
|
|
24
|
+
const empty = writeEmptyElement.call(this.cloneNode());
|
|
25
|
+
const close = empty.lastIndexOf("</");
|
|
26
|
+
return empty.slice(0, close) + escape(this.textContent ?? "") + empty.slice(close);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
var READ_AS_TEXT = /* @__PURE__ */ new Set(["title", "style", "script", "textarea", "xmp"]);
|
|
32
|
+
var FOREIGN = /* @__PURE__ */ new Set(["svg", "math"]);
|
|
33
|
+
var BACK_TO_HTML = /* @__PURE__ */ new Set(["foreignobject", "desc"]);
|
|
34
|
+
var TAG_OR_COMMENT = /<[A-Za-z!/?]/;
|
|
35
|
+
var TEXT_UNTIL_ANY_END_TAG_IN_SCRIPTING_BROWSER = /* @__PURE__ */ new Set([
|
|
36
|
+
"noscript",
|
|
37
|
+
"iframe",
|
|
38
|
+
"noembed",
|
|
39
|
+
"noframes"
|
|
40
|
+
]);
|
|
41
|
+
var COMMENT_END_ONLY_BROWSERS_READ = "--!>";
|
|
42
|
+
var SHOW_COMMENT = 128;
|
|
43
|
+
var CDATA = /<!\[CDATA\[[\s\S]*?\]\]>/g;
|
|
44
|
+
var HtmlReadUnlikeBrowserError = class extends Error {
|
|
45
|
+
constructor() {
|
|
46
|
+
super(
|
|
47
|
+
"This HTML has tags or comments inside an SVG or MathML title, style, script, textarea or xmp element, an end tag inside a comment or attribute of a noscript, iframe, noembed or noframes element, or a comment holding --!>, which can't be read the way a browser reads them."
|
|
48
|
+
);
|
|
49
|
+
this.name = "HtmlReadUnlikeBrowserError";
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
function insideForeign(element) {
|
|
53
|
+
for (let up = element.parentElement; up; up = up.parentElement) {
|
|
54
|
+
const name = up.localName.toLowerCase();
|
|
55
|
+
if (BACK_TO_HTML.has(name)) return false;
|
|
56
|
+
if (FOREIGN.has(name)) return true;
|
|
57
|
+
}
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
function readAsTextUnlikeBrowser(element) {
|
|
61
|
+
const name = element.localName.toLowerCase();
|
|
62
|
+
if (TEXT_UNTIL_ANY_END_TAG_IN_SCRIPTING_BROWSER.has(name))
|
|
63
|
+
return new RegExp(`</${name}[\\t\\n\\f\\r />]`, "i").test(element.innerHTML);
|
|
64
|
+
return READ_AS_TEXT.has(name) && insideForeign(element) && TAG_OR_COMMENT.test((element.textContent ?? "").replace(CDATA, ""));
|
|
65
|
+
}
|
|
66
|
+
function nextInDocumentOrder(element) {
|
|
67
|
+
if (element.firstElementChild) return element.firstElementChild;
|
|
68
|
+
for (let at = element; at; at = at.parentElement)
|
|
69
|
+
if (at.nextElementSibling) return at.nextElementSibling;
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
function readsUnlikeBrowser(root, html) {
|
|
73
|
+
for (let element = root.firstElementChild; element; element = nextInDocumentOrder(element))
|
|
74
|
+
if (readAsTextUnlikeBrowser(element)) return true;
|
|
75
|
+
if (!html.includes(COMMENT_END_ONLY_BROWSERS_READ)) return false;
|
|
76
|
+
const comments = root.createTreeWalker(root, SHOW_COMMENT);
|
|
77
|
+
while (comments.nextNode())
|
|
78
|
+
if (comments.currentNode.nodeValue?.includes(COMMENT_END_ONLY_BROWSERS_READ)) return true;
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
function parseHTML(html, globals) {
|
|
82
|
+
escapeTextOnWrite();
|
|
83
|
+
const parsed = linkedomParseHTML(html, globals);
|
|
84
|
+
if (readsUnlikeBrowser(parsed.document, html)) throw new HtmlReadUnlikeBrowserError();
|
|
85
|
+
return parsed;
|
|
86
|
+
}
|
|
3
87
|
|
|
4
88
|
// src/subCompositionValidity.ts
|
|
5
89
|
function isHtmlTemplate(el) {
|
|
@@ -19,6 +103,7 @@ var EXCLUDED_TAGS = /* @__PURE__ */ new Set([
|
|
|
19
103
|
"noscript",
|
|
20
104
|
"base"
|
|
21
105
|
]);
|
|
106
|
+
var isNonContentElement = (el) => EXCLUDED_TAGS.has(el.tagName.toLowerCase());
|
|
22
107
|
function fnv1a(str) {
|
|
23
108
|
let h = 2166136261;
|
|
24
109
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -263,6 +348,7 @@ export {
|
|
|
263
348
|
EXCLUDED_TAGS,
|
|
264
349
|
ensureHfIds,
|
|
265
350
|
isCompositionTemplate,
|
|
351
|
+
isNonContentElement,
|
|
266
352
|
mintHfId,
|
|
267
353
|
stampHfIdsInPlace,
|
|
268
354
|
walkCompositionDescendants
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { isStudioHoldSet } from './gsapParser.js';
|
|
|
5
5
|
export { getObjectArrayKeyframeTiming } from './gsapParserExports.js';
|
|
6
6
|
export { SPRING_PRESETS, SpringPreset, generateSpringEaseData } from './springEase.js';
|
|
7
7
|
export { parseGsapScriptAcorn as parseGsapScript } from './gsapParserAcorn.js';
|
|
8
|
-
export { EXCLUDED_TAGS, ensureHfIds, isCompositionTemplate, mintHfId, stampHfIdsInPlace, walkCompositionDescendants } from './hfIds.js';
|
|
8
|
+
export { EXCLUDED_TAGS, ensureHfIds, isCompositionTemplate, isNonContentElement, mintHfId, stampHfIdsInPlace, walkCompositionDescendants } from './hfIds.js';
|
|
9
9
|
export { ParsableDocumentLike, SceneTemplateLike, SubCompositionValidity, SubCompositionValidityReason, checkSubCompositionUsability, findSceneTemplate, firstHtmlTemplate, firstTemplateContent, isHtmlTemplate, resolveSubCompositionContent, templateContent } from './subCompositionValidity.js';
|
|
10
10
|
export { CANONICAL_AUTHORED_TIMING_ATTRIBUTES, COMPOSITION_ATTRIBUTES, COMPOSITION_CONTRACT_VERSION, ClipAttributeReader, ClipAttributeWriter, ClipTiming, ClipTimingDiagnostic, ClipTimingDiagnosticCode, ClipTimingUpdate, ClipTimingWriteError, DERIVED_TIMING_ATTRIBUTES, LEGACY_TIMING_ATTRIBUTES, ReadClipTimingOptions, ReferenceExpression, SPLIT_BOUNDARY_EPSILON_S, parseNumeric, parseStartExpression, readClipTiming, writeClipTiming } from './compositionContract.js';
|
|
11
11
|
export { C as CANONICAL_FONT_DISPLAY_NAMES, a as CanvasScaffoldMatch, F as FONT_ALIAS_KEYS, b as FONT_ALIAS_MAP, M as MediaSrcMutation, V as VariableUsageScan, e as extractMediaSrcMutations, m as matchHtmlBodyCssHeightFirst, h as matchHtmlBodyCssWidthFirst, j as matchViewportMetaSize, p as parseCompositionVariables, k as replaceCanvasScaffoldSize, l as resolveAliasDisplayName, s as scanVariableUsage } from './fontAliases-6Aft6tHT.js';
|
package/dist/index.js
CHANGED
|
@@ -2468,8 +2468,92 @@ function parseCompositionVariables(htmlEl) {
|
|
|
2468
2468
|
return readCompositionVariables(htmlEl.getAttribute("data-composition-variables")).declarations;
|
|
2469
2469
|
}
|
|
2470
2470
|
|
|
2471
|
-
// src/
|
|
2472
|
-
import {
|
|
2471
|
+
// src/linkedom.ts
|
|
2472
|
+
import {
|
|
2473
|
+
DOMParser as LinkedomDOMParser,
|
|
2474
|
+
HTMLElement,
|
|
2475
|
+
HTMLTextAreaElement,
|
|
2476
|
+
HTMLTitleElement,
|
|
2477
|
+
parseHTML as linkedomParseHTML
|
|
2478
|
+
} from "linkedom";
|
|
2479
|
+
var escapeDecodedTitleText = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
2480
|
+
var neutraliseTextareaEndTag = (text) => text.replace(/<(\/textarea)/gi, "<$1");
|
|
2481
|
+
var writeEmptyElement = HTMLElement.prototype.toString;
|
|
2482
|
+
var installed = false;
|
|
2483
|
+
function escapeTextOnWrite() {
|
|
2484
|
+
if (installed) return;
|
|
2485
|
+
installed = true;
|
|
2486
|
+
for (const [Element, escape] of [
|
|
2487
|
+
[HTMLTitleElement, escapeDecodedTitleText],
|
|
2488
|
+
[HTMLTextAreaElement, neutraliseTextareaEndTag]
|
|
2489
|
+
]) {
|
|
2490
|
+
Object.defineProperty(Element.prototype, "toString", {
|
|
2491
|
+
configurable: true,
|
|
2492
|
+
writable: true,
|
|
2493
|
+
value() {
|
|
2494
|
+
const empty = writeEmptyElement.call(this.cloneNode());
|
|
2495
|
+
const close = empty.lastIndexOf("</");
|
|
2496
|
+
return empty.slice(0, close) + escape(this.textContent ?? "") + empty.slice(close);
|
|
2497
|
+
}
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
var READ_AS_TEXT = /* @__PURE__ */ new Set(["title", "style", "script", "textarea", "xmp"]);
|
|
2502
|
+
var FOREIGN = /* @__PURE__ */ new Set(["svg", "math"]);
|
|
2503
|
+
var BACK_TO_HTML = /* @__PURE__ */ new Set(["foreignobject", "desc"]);
|
|
2504
|
+
var TAG_OR_COMMENT = /<[A-Za-z!/?]/;
|
|
2505
|
+
var TEXT_UNTIL_ANY_END_TAG_IN_SCRIPTING_BROWSER = /* @__PURE__ */ new Set([
|
|
2506
|
+
"noscript",
|
|
2507
|
+
"iframe",
|
|
2508
|
+
"noembed",
|
|
2509
|
+
"noframes"
|
|
2510
|
+
]);
|
|
2511
|
+
var COMMENT_END_ONLY_BROWSERS_READ = "--!>";
|
|
2512
|
+
var SHOW_COMMENT = 128;
|
|
2513
|
+
var CDATA = /<!\[CDATA\[[\s\S]*?\]\]>/g;
|
|
2514
|
+
var HtmlReadUnlikeBrowserError = class extends Error {
|
|
2515
|
+
constructor() {
|
|
2516
|
+
super(
|
|
2517
|
+
"This HTML has tags or comments inside an SVG or MathML title, style, script, textarea or xmp element, an end tag inside a comment or attribute of a noscript, iframe, noembed or noframes element, or a comment holding --!>, which can't be read the way a browser reads them."
|
|
2518
|
+
);
|
|
2519
|
+
this.name = "HtmlReadUnlikeBrowserError";
|
|
2520
|
+
}
|
|
2521
|
+
};
|
|
2522
|
+
function insideForeign(element) {
|
|
2523
|
+
for (let up = element.parentElement; up; up = up.parentElement) {
|
|
2524
|
+
const name = up.localName.toLowerCase();
|
|
2525
|
+
if (BACK_TO_HTML.has(name)) return false;
|
|
2526
|
+
if (FOREIGN.has(name)) return true;
|
|
2527
|
+
}
|
|
2528
|
+
return false;
|
|
2529
|
+
}
|
|
2530
|
+
function readAsTextUnlikeBrowser(element) {
|
|
2531
|
+
const name = element.localName.toLowerCase();
|
|
2532
|
+
if (TEXT_UNTIL_ANY_END_TAG_IN_SCRIPTING_BROWSER.has(name))
|
|
2533
|
+
return new RegExp(`</${name}[\\t\\n\\f\\r />]`, "i").test(element.innerHTML);
|
|
2534
|
+
return READ_AS_TEXT.has(name) && insideForeign(element) && TAG_OR_COMMENT.test((element.textContent ?? "").replace(CDATA, ""));
|
|
2535
|
+
}
|
|
2536
|
+
function nextInDocumentOrder(element) {
|
|
2537
|
+
if (element.firstElementChild) return element.firstElementChild;
|
|
2538
|
+
for (let at = element; at; at = at.parentElement)
|
|
2539
|
+
if (at.nextElementSibling) return at.nextElementSibling;
|
|
2540
|
+
return null;
|
|
2541
|
+
}
|
|
2542
|
+
function readsUnlikeBrowser(root, html) {
|
|
2543
|
+
for (let element = root.firstElementChild; element; element = nextInDocumentOrder(element))
|
|
2544
|
+
if (readAsTextUnlikeBrowser(element)) return true;
|
|
2545
|
+
if (!html.includes(COMMENT_END_ONLY_BROWSERS_READ)) return false;
|
|
2546
|
+
const comments = root.createTreeWalker(root, SHOW_COMMENT);
|
|
2547
|
+
while (comments.nextNode())
|
|
2548
|
+
if (comments.currentNode.nodeValue?.includes(COMMENT_END_ONLY_BROWSERS_READ)) return true;
|
|
2549
|
+
return false;
|
|
2550
|
+
}
|
|
2551
|
+
function parseHTML(html, globals) {
|
|
2552
|
+
escapeTextOnWrite();
|
|
2553
|
+
const parsed = linkedomParseHTML(html, globals);
|
|
2554
|
+
if (readsUnlikeBrowser(parsed.document, html)) throw new HtmlReadUnlikeBrowserError();
|
|
2555
|
+
return parsed;
|
|
2556
|
+
}
|
|
2473
2557
|
|
|
2474
2558
|
// src/subCompositionValidity.ts
|
|
2475
2559
|
function isHtmlTemplate(el) {
|
|
@@ -2551,6 +2635,7 @@ var EXCLUDED_TAGS = /* @__PURE__ */ new Set([
|
|
|
2551
2635
|
"noscript",
|
|
2552
2636
|
"base"
|
|
2553
2637
|
]);
|
|
2638
|
+
var isNonContentElement = (el) => EXCLUDED_TAGS.has(el.tagName.toLowerCase());
|
|
2554
2639
|
function fnv1a(str) {
|
|
2555
2640
|
let h = 2166136261;
|
|
2556
2641
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -4230,9 +4315,6 @@ function trackKindOf(node) {
|
|
|
4230
4315
|
return { kind: "graphics", source: "tag" };
|
|
4231
4316
|
}
|
|
4232
4317
|
|
|
4233
|
-
// src/timingMismatches.ts
|
|
4234
|
-
import { parseHTML as parseHTML2 } from "linkedom";
|
|
4235
|
-
|
|
4236
4318
|
// src/compositionDuration.ts
|
|
4237
4319
|
var TIMING_TOLERANCE_SECONDS = 0.05;
|
|
4238
4320
|
var isPositiveFinite = (value) => value !== null && Number.isFinite(value) && value > 0;
|
|
@@ -4346,7 +4428,7 @@ function checkTween(anim, root, layout, seenUntimed, report) {
|
|
|
4346
4428
|
}
|
|
4347
4429
|
function timingMismatches(html) {
|
|
4348
4430
|
const report = { findings: [], unresolved: [] };
|
|
4349
|
-
const { document } =
|
|
4431
|
+
const { document } = parseHTML(html);
|
|
4350
4432
|
const root = document.querySelector("[data-composition-id]");
|
|
4351
4433
|
if (!root) return report;
|
|
4352
4434
|
const layout = rowMembership(root);
|
|
@@ -5001,6 +5083,7 @@ export {
|
|
|
5001
5083
|
isCompositionTemplate,
|
|
5002
5084
|
isHtmlTemplate,
|
|
5003
5085
|
isMediaElement,
|
|
5086
|
+
isNonContentElement,
|
|
5004
5087
|
isStudioHoldSet,
|
|
5005
5088
|
isSubCompositionHost,
|
|
5006
5089
|
isTextElement,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare class HtmlReadUnlikeBrowserError extends Error {
|
|
2
|
+
constructor();
|
|
3
|
+
}
|
|
4
|
+
/** linkedom's `parseHTML`, refusing HTML that a browser would read as a different tree. */
|
|
5
|
+
declare function parseHTML(html: string, globals?: unknown): Window & typeof globalThis;
|
|
6
|
+
/** linkedom's `DOMParser`, with the same refusal for `text/html`. */
|
|
7
|
+
declare const DOMParser: {
|
|
8
|
+
new (): globalThis.DOMParser;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { DOMParser, HtmlReadUnlikeBrowserError, parseHTML };
|
package/dist/linkedom.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// src/linkedom.ts
|
|
2
|
+
import {
|
|
3
|
+
DOMParser as LinkedomDOMParser,
|
|
4
|
+
HTMLElement,
|
|
5
|
+
HTMLTextAreaElement,
|
|
6
|
+
HTMLTitleElement,
|
|
7
|
+
parseHTML as linkedomParseHTML
|
|
8
|
+
} from "linkedom";
|
|
9
|
+
var escapeDecodedTitleText = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
10
|
+
var neutraliseTextareaEndTag = (text) => text.replace(/<(\/textarea)/gi, "<$1");
|
|
11
|
+
var writeEmptyElement = HTMLElement.prototype.toString;
|
|
12
|
+
var installed = false;
|
|
13
|
+
function escapeTextOnWrite() {
|
|
14
|
+
if (installed) return;
|
|
15
|
+
installed = true;
|
|
16
|
+
for (const [Element, escape] of [
|
|
17
|
+
[HTMLTitleElement, escapeDecodedTitleText],
|
|
18
|
+
[HTMLTextAreaElement, neutraliseTextareaEndTag]
|
|
19
|
+
]) {
|
|
20
|
+
Object.defineProperty(Element.prototype, "toString", {
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value() {
|
|
24
|
+
const empty = writeEmptyElement.call(this.cloneNode());
|
|
25
|
+
const close = empty.lastIndexOf("</");
|
|
26
|
+
return empty.slice(0, close) + escape(this.textContent ?? "") + empty.slice(close);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
var READ_AS_TEXT = /* @__PURE__ */ new Set(["title", "style", "script", "textarea", "xmp"]);
|
|
32
|
+
var FOREIGN = /* @__PURE__ */ new Set(["svg", "math"]);
|
|
33
|
+
var BACK_TO_HTML = /* @__PURE__ */ new Set(["foreignobject", "desc"]);
|
|
34
|
+
var TAG_OR_COMMENT = /<[A-Za-z!/?]/;
|
|
35
|
+
var TEXT_UNTIL_ANY_END_TAG_IN_SCRIPTING_BROWSER = /* @__PURE__ */ new Set([
|
|
36
|
+
"noscript",
|
|
37
|
+
"iframe",
|
|
38
|
+
"noembed",
|
|
39
|
+
"noframes"
|
|
40
|
+
]);
|
|
41
|
+
var COMMENT_END_ONLY_BROWSERS_READ = "--!>";
|
|
42
|
+
var SHOW_COMMENT = 128;
|
|
43
|
+
var CDATA = /<!\[CDATA\[[\s\S]*?\]\]>/g;
|
|
44
|
+
var HtmlReadUnlikeBrowserError = class extends Error {
|
|
45
|
+
constructor() {
|
|
46
|
+
super(
|
|
47
|
+
"This HTML has tags or comments inside an SVG or MathML title, style, script, textarea or xmp element, an end tag inside a comment or attribute of a noscript, iframe, noembed or noframes element, or a comment holding --!>, which can't be read the way a browser reads them."
|
|
48
|
+
);
|
|
49
|
+
this.name = "HtmlReadUnlikeBrowserError";
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
function insideForeign(element) {
|
|
53
|
+
for (let up = element.parentElement; up; up = up.parentElement) {
|
|
54
|
+
const name = up.localName.toLowerCase();
|
|
55
|
+
if (BACK_TO_HTML.has(name)) return false;
|
|
56
|
+
if (FOREIGN.has(name)) return true;
|
|
57
|
+
}
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
function readAsTextUnlikeBrowser(element) {
|
|
61
|
+
const name = element.localName.toLowerCase();
|
|
62
|
+
if (TEXT_UNTIL_ANY_END_TAG_IN_SCRIPTING_BROWSER.has(name))
|
|
63
|
+
return new RegExp(`</${name}[\\t\\n\\f\\r />]`, "i").test(element.innerHTML);
|
|
64
|
+
return READ_AS_TEXT.has(name) && insideForeign(element) && TAG_OR_COMMENT.test((element.textContent ?? "").replace(CDATA, ""));
|
|
65
|
+
}
|
|
66
|
+
function nextInDocumentOrder(element) {
|
|
67
|
+
if (element.firstElementChild) return element.firstElementChild;
|
|
68
|
+
for (let at = element; at; at = at.parentElement)
|
|
69
|
+
if (at.nextElementSibling) return at.nextElementSibling;
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
function readsUnlikeBrowser(root, html) {
|
|
73
|
+
for (let element = root.firstElementChild; element; element = nextInDocumentOrder(element))
|
|
74
|
+
if (readAsTextUnlikeBrowser(element)) return true;
|
|
75
|
+
if (!html.includes(COMMENT_END_ONLY_BROWSERS_READ)) return false;
|
|
76
|
+
const comments = root.createTreeWalker(root, SHOW_COMMENT);
|
|
77
|
+
while (comments.nextNode())
|
|
78
|
+
if (comments.currentNode.nodeValue?.includes(COMMENT_END_ONLY_BROWSERS_READ)) return true;
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
function parseHTML(html, globals) {
|
|
82
|
+
escapeTextOnWrite();
|
|
83
|
+
const parsed = linkedomParseHTML(html, globals);
|
|
84
|
+
if (readsUnlikeBrowser(parsed.document, html)) throw new HtmlReadUnlikeBrowserError();
|
|
85
|
+
return parsed;
|
|
86
|
+
}
|
|
87
|
+
var DOMParser = class extends LinkedomDOMParser {
|
|
88
|
+
constructor() {
|
|
89
|
+
super();
|
|
90
|
+
escapeTextOnWrite();
|
|
91
|
+
}
|
|
92
|
+
parseFromString(markup, mimeType, globals) {
|
|
93
|
+
const parsed = super.parseFromString(markup, mimeType, globals);
|
|
94
|
+
if (mimeType === "text/html" && readsUnlikeBrowser(parsed, markup))
|
|
95
|
+
throw new HtmlReadUnlikeBrowserError();
|
|
96
|
+
return parsed;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
DOMParser,
|
|
101
|
+
HtmlReadUnlikeBrowserError,
|
|
102
|
+
parseHTML
|
|
103
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// src/literalMediaInput.ts
|
|
2
2
|
var PATTERN_IMAGE2_EXPANDS = /%\d*[d%*?[\]{}]/;
|
|
3
3
|
var WILDCARD_MAKES_ANY_PERCENT_A_PATTERN = /[*?[{]/;
|
|
4
|
-
var
|
|
4
|
+
var FORWARDED = /^https?:/i;
|
|
5
5
|
function refusePattern(path, use) {
|
|
6
|
-
const local = !URL_SCHEME.test(path) || /^file:/i.test(path);
|
|
7
6
|
const pattern = PATTERN_IMAGE2_EXPANDS.test(path) || path.includes("%") && WILDCARD_MAKES_ANY_PERCENT_A_PATTERN.test(path);
|
|
8
|
-
if (
|
|
7
|
+
if (FORWARDED.test(path) || !pattern) return;
|
|
9
8
|
throw new Error(
|
|
10
9
|
`[FFmpeg] refused media path "${path.split(/[\\/]/).pop()}": a "%" followed by "d", another "%" or a wildcard, with or without digits between, or a "%" and a wildcard (*, ?, [ or {) anywhere in the path, would make ffmpeg ${use} it as a pattern of other files. Rename the file or folder.`
|
|
11
10
|
);
|
package/dist/privatePath.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* `:stream` suffix.
|
|
5
5
|
*/
|
|
6
6
|
declare function projectPathSegments(relPath: string): string[];
|
|
7
|
+
declare const portablePrivatePattern: string;
|
|
7
8
|
declare function isVcsOrSecretPath(relPath: string): boolean;
|
|
8
9
|
/** Credential files and tool or agent state, for a project-relative path in any spelling Windows opens. */
|
|
9
10
|
declare function isCredentialOrToolStatePath(relPath: string): boolean;
|
|
@@ -12,4 +13,4 @@ declare function isStudioPrivatePath(relPath: string): boolean;
|
|
|
12
13
|
/** Whether `isPrivate` holds for a file under `projectDir`, spelled as given or with its links resolved. */
|
|
13
14
|
declare function isPrivateFileUnder(projectDir: string, filePath: string, isPrivate: (relPath: string) => boolean): boolean;
|
|
14
15
|
|
|
15
|
-
export { isCredentialOrToolStatePath, isPrivateFileUnder, isStudioPrivatePath, isVcsOrSecretPath, projectPathSegments };
|
|
16
|
+
export { isCredentialOrToolStatePath, isPrivateFileUnder, isStudioPrivatePath, isVcsOrSecretPath, portablePrivatePattern, projectPathSegments };
|
package/dist/privatePath.js
CHANGED
|
@@ -17,18 +17,9 @@ function withoutTrailingDotsOrSpaces(segment) {
|
|
|
17
17
|
while (end > 0 && (segment[end - 1] === "." || segment[end - 1] === " ")) end--;
|
|
18
18
|
return segment.slice(0, end);
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
var STUDIO_FILES = /* @__PURE__ */ new Set([
|
|
26
|
-
".hyperframes/studio-motion.json",
|
|
27
|
-
".hyperframes/studio-manual-edits.json"
|
|
28
|
-
]);
|
|
29
|
-
var STUDIO_FOLDERS = [".hyperframes/prepared-assets", ".hyperframes/requests"];
|
|
30
|
-
var UNCONVERTED_PREVIEW_DOWNLOADS = ".hyperframes/prepared-assets/downloads";
|
|
31
|
-
var CREDENTIAL_FILES = /* @__PURE__ */ new Set([
|
|
20
|
+
var anyDepth = String.raw`(?:[^/]*/)*`;
|
|
21
|
+
var vcsOrEnv = String.raw`(?:\.git|\.env[^/]*)(?:/.*)?`;
|
|
22
|
+
var credentialNames = [
|
|
32
23
|
".npmrc",
|
|
33
24
|
".yarnrc",
|
|
34
25
|
".yarnrc.yml",
|
|
@@ -44,8 +35,8 @@ var CREDENTIAL_FILES = /* @__PURE__ */ new Set([
|
|
|
44
35
|
"serviceaccountkey.json",
|
|
45
36
|
"service-account.json",
|
|
46
37
|
"service_account.json"
|
|
47
|
-
]
|
|
48
|
-
var
|
|
38
|
+
];
|
|
39
|
+
var toolFolders = [
|
|
49
40
|
".ssh",
|
|
50
41
|
".aws",
|
|
51
42
|
".gnupg",
|
|
@@ -59,16 +50,25 @@ var CREDENTIAL_FOLDERS = /* @__PURE__ */ new Set([
|
|
|
59
50
|
".gemini",
|
|
60
51
|
".vscode",
|
|
61
52
|
".idea"
|
|
53
|
+
];
|
|
54
|
+
var alternatives = (names) => names.map((name) => name.replaceAll(".", "\\.")).join("|");
|
|
55
|
+
var keyOrStore = String.raw`id_(?:rsa|dsa|ecdsa|ed25519)[^/]*|[^/]*\.(?:pem|key|p12|pfx|p8|ppk|jks|keystore|kdbx|tfstate(?:\.backup)?|tfvars(?:\.json)?)`;
|
|
56
|
+
var folders = String.raw`(?:${alternatives(toolFolders)}|\.config/(?:gcloud|gh))(?:/.*)?`;
|
|
57
|
+
var credentials = [alternatives(credentialNames), keyOrStore, folders].join("|");
|
|
58
|
+
var portablePrivatePattern = `${anyDepth}(?:${vcsOrEnv}|${credentials})`;
|
|
59
|
+
var vcsOrSecret = new RegExp(`^${anyDepth}(?:${vcsOrEnv})$`, "su");
|
|
60
|
+
var credentialOrToolState = new RegExp(`^${anyDepth}(?:${credentials})$`, "su");
|
|
61
|
+
function isVcsOrSecretPath(relPath) {
|
|
62
|
+
return vcsOrSecret.test(projectPathSegments(relPath).join("/"));
|
|
63
|
+
}
|
|
64
|
+
var STUDIO_FILES = /* @__PURE__ */ new Set([
|
|
65
|
+
".hyperframes/studio-motion.json",
|
|
66
|
+
".hyperframes/studio-manual-edits.json"
|
|
62
67
|
]);
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var SECRET_STORE_FILE = /\.(?:tfstate(?:\.backup)?|tfvars(?:\.json)?)$/;
|
|
68
|
+
var STUDIO_FOLDERS = [".hyperframes/prepared-assets", ".hyperframes/requests"];
|
|
69
|
+
var UNCONVERTED_PREVIEW_DOWNLOADS = ".hyperframes/prepared-assets/downloads";
|
|
66
70
|
function isCredentialOrToolStatePath(relPath) {
|
|
67
|
-
|
|
68
|
-
const name = segments.at(-1) ?? "";
|
|
69
|
-
return CREDENTIAL_FILES.has(name) || KEY_FILE.test(name) || SECRET_STORE_FILE.test(name) || segments.some(
|
|
70
|
-
(segment, at) => CREDENTIAL_FOLDERS.has(segment) || segment === ".config" && CREDENTIAL_CONFIG_FOLDERS.has(segments[at + 1] ?? "")
|
|
71
|
-
);
|
|
71
|
+
return credentialOrToolState.test(projectPathSegments(relPath).join("/"));
|
|
72
72
|
}
|
|
73
73
|
function isStudioPrivatePath(relPath) {
|
|
74
74
|
if (isVcsOrSecretPath(relPath) || isCredentialOrToolStatePath(relPath)) return true;
|
|
@@ -118,5 +118,6 @@ export {
|
|
|
118
118
|
isPrivateFileUnder,
|
|
119
119
|
isStudioPrivatePath,
|
|
120
120
|
isVcsOrSecretPath,
|
|
121
|
+
portablePrivatePattern,
|
|
121
122
|
projectPathSegments
|
|
122
123
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/parsers",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.95",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -44,6 +44,10 @@
|
|
|
44
44
|
"import": "./dist/hfIds.js",
|
|
45
45
|
"types": "./dist/hfIds.d.ts"
|
|
46
46
|
},
|
|
47
|
+
"./linkedom": {
|
|
48
|
+
"import": "./dist/linkedom.js",
|
|
49
|
+
"types": "./dist/linkedom.d.ts"
|
|
50
|
+
},
|
|
47
51
|
"./gsap-parser-recast": {
|
|
48
52
|
"import": "./dist/gsapParser.js",
|
|
49
53
|
"types": "./dist/gsapParser.d.ts"
|
|
@@ -151,7 +155,7 @@
|
|
|
151
155
|
"tsx": "^4.21.0",
|
|
152
156
|
"typescript": "^5.0.0",
|
|
153
157
|
"vitest": "^4.1.12",
|
|
154
|
-
"@hyperframes/core": "0.9.
|
|
158
|
+
"@hyperframes/core": "0.9.95"
|
|
155
159
|
},
|
|
156
160
|
"scripts": {
|
|
157
161
|
"build": "tsup",
|