mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* fix: refuse media paths that ffmpeg's image2 demuxer would read as a pattern ffmpeg's image2 demuxer reads %d, %03d, %% and a % before a wildcard in an input path as a pattern of other files, folders included. Every project, private-file and received-file check approves the literal path, so a composition could name a placeholder whose pattern reaches images outside the project and get them back as video frames. Every ffmpeg and ffprobe input built from a project file now goes through assertLiteralMediaInput, which refuses such a local path before ffmpeg runs. The engine's urlInputArgs, the parsers' mediaInputFormatArgs and the studio-server's new mediaInputArgs all take the input path, so the CLI snapshot and cloud offload, lint, core grade analysis and studio-server callers are covered too. URLs and other percent signs, such as %20, are read as before. * build(parsers): declare the literal-media-input subpath * build: raise the parsers packed-size budget for the literal-media-input subpath The new subpath adds its own built entry, type file and export map rows, about 2.7 KB packed. It is a separate module so test suites that mock ff-binaries still run the real path check. * test(parsers): a harmless name shaped like a pattern is refused too
343 lines
10 KiB
JSON
343 lines
10 KiB
JSON
{
|
|
"name": "@hyperframes/parsers",
|
|
"version": "0.9.60",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
"directory": "packages/parsers"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"bun": "./src/index.ts",
|
|
"node": "./dist/index.js",
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./gsap-parser": {
|
|
"bun": "./src/gsapParserExports.ts",
|
|
"node": "./dist/gsapParserExports.js",
|
|
"import": "./src/gsapParserExports.ts",
|
|
"types": "./src/gsapParserExports.ts"
|
|
},
|
|
"./gsap-parser-acorn": {
|
|
"bun": "./src/gsapParserAcorn.ts",
|
|
"node": "./dist/gsapParserAcorn.js",
|
|
"import": "./src/gsapParserAcorn.ts",
|
|
"types": "./src/gsapParserAcorn.ts"
|
|
},
|
|
"./gsap-writer-acorn": {
|
|
"bun": "./src/gsapWriterAcorn.ts",
|
|
"node": "./dist/gsapWriterAcorn.js",
|
|
"import": "./src/gsapWriterAcorn.ts",
|
|
"types": "./src/gsapWriterAcorn.ts"
|
|
},
|
|
"./gsap-constants": {
|
|
"bun": "./src/gsapConstants.ts",
|
|
"node": "./dist/gsapConstants.js",
|
|
"import": "./src/gsapConstants.ts",
|
|
"types": "./src/gsapConstants.ts"
|
|
},
|
|
"./spring-ease": {
|
|
"bun": "./src/springEase.ts",
|
|
"node": "./dist/springEase.js",
|
|
"import": "./src/springEase.ts",
|
|
"types": "./src/springEase.ts"
|
|
},
|
|
"./hf-ids": {
|
|
"bun": "./src/hfIds.ts",
|
|
"node": "./dist/hfIds.js",
|
|
"import": "./src/hfIds.ts",
|
|
"types": "./src/hfIds.ts"
|
|
},
|
|
"./gsap-parser-recast": {
|
|
"bun": "./src/gsapParser.ts",
|
|
"node": "./dist/gsapParser.js",
|
|
"import": "./src/gsapParser.ts",
|
|
"types": "./src/gsapParser.ts"
|
|
},
|
|
"./slideshow": {
|
|
"bun": "./src/slideshow/index.ts",
|
|
"node": "./dist/slideshow.js",
|
|
"import": "./src/slideshow/index.ts",
|
|
"types": "./src/slideshow/index.ts"
|
|
},
|
|
"./asset-paths": {
|
|
"bun": "./src/assets.ts",
|
|
"node": "./dist/assets.js",
|
|
"import": "./src/assets.ts",
|
|
"types": "./src/assets.ts"
|
|
},
|
|
"./css-url-scans": {
|
|
"bun": "./src/cssUrlScans.ts",
|
|
"node": "./dist/cssUrlScans.js",
|
|
"import": "./src/cssUrlScans.ts",
|
|
"types": "./src/cssUrlScans.ts"
|
|
},
|
|
"./composition": {
|
|
"bun": "./src/composition.ts",
|
|
"node": "./dist/composition.js",
|
|
"import": "./src/composition.ts",
|
|
"types": "./src/composition.ts"
|
|
},
|
|
"./composition-contract": {
|
|
"bun": "./src/compositionContract.ts",
|
|
"node": "./dist/compositionContract.js",
|
|
"import": "./src/compositionContract.ts",
|
|
"types": "./src/compositionContract.ts"
|
|
},
|
|
"./media-duration": {
|
|
"bun": "./src/mediaDuration.ts",
|
|
"node": "./dist/mediaDuration.js",
|
|
"import": "./src/mediaDuration.ts",
|
|
"types": "./src/mediaDuration.ts"
|
|
},
|
|
"./media-duration-fixtures": {
|
|
"bun": "./src/mediaDurationFixtures.ts",
|
|
"node": "./dist/mediaDurationFixtures.js",
|
|
"import": "./src/mediaDurationFixtures.ts",
|
|
"types": "./src/mediaDurationFixtures.ts"
|
|
},
|
|
"./top-level-elements": {
|
|
"bun": "./src/topLevelElements.ts",
|
|
"node": "./dist/topLevelElements.js",
|
|
"import": "./src/topLevelElements.ts",
|
|
"types": "./src/topLevelElements.ts"
|
|
},
|
|
"./color-grading-contract": {
|
|
"bun": "./src/colorGradingContract.ts",
|
|
"node": "./dist/colorGradingContract.js",
|
|
"import": "./src/colorGradingContract.ts",
|
|
"types": "./src/colorGradingContract.ts"
|
|
},
|
|
"./sub-composition-validity": {
|
|
"bun": "./src/subCompositionValidity.ts",
|
|
"node": "./dist/subCompositionValidity.js",
|
|
"import": "./src/subCompositionValidity.ts",
|
|
"types": "./src/subCompositionValidity.ts"
|
|
},
|
|
"./ff-binaries": {
|
|
"bun": "./src/ffBinaries.ts",
|
|
"node": "./dist/ffBinaries.js",
|
|
"import": "./src/ffBinaries.ts",
|
|
"types": "./src/ffBinaries.ts"
|
|
},
|
|
"./literal-media-input": {
|
|
"bun": "./src/literalMediaInput.ts",
|
|
"node": "./dist/literalMediaInput.js",
|
|
"import": "./src/literalMediaInput.ts",
|
|
"types": "./src/literalMediaInput.ts"
|
|
},
|
|
"./media-alpha": {
|
|
"bun": "./src/mediaAlpha.ts",
|
|
"node": "./dist/mediaAlpha.js",
|
|
"import": "./src/mediaAlpha.ts",
|
|
"types": "./src/mediaAlpha.ts"
|
|
},
|
|
"./media-streams": {
|
|
"bun": "./src/mediaStreams.ts",
|
|
"node": "./dist/mediaStreams.js",
|
|
"import": "./src/mediaStreams.ts",
|
|
"types": "./src/mediaStreams.ts"
|
|
},
|
|
"./asset-resolution": {
|
|
"bun": "./src/assetResolution.ts",
|
|
"node": "./dist/assetResolution.js",
|
|
"import": "./src/assetResolution.ts",
|
|
"types": "./src/assetResolution.ts"
|
|
},
|
|
"./private-path": {
|
|
"bun": "./src/privatePath.ts",
|
|
"node": "./dist/privatePath.js",
|
|
"import": "./src/privatePath.ts",
|
|
"types": "./src/privatePath.ts"
|
|
},
|
|
"./html-attribute-spans": {
|
|
"bun": "./src/htmlAttributeSpans.ts",
|
|
"node": "./dist/htmlAttributeSpans.js",
|
|
"import": "./src/htmlAttributeSpans.ts",
|
|
"types": "./src/htmlAttributeSpans.ts"
|
|
},
|
|
"./time-spans": {
|
|
"bun": "./src/timeSpans.ts",
|
|
"node": "./dist/timeSpans.js",
|
|
"import": "./src/timeSpans.ts",
|
|
"types": "./src/timeSpans.ts"
|
|
},
|
|
"./media-timing": {
|
|
"bun": "./src/mediaTiming.ts",
|
|
"node": "./dist/mediaTiming.js",
|
|
"import": "./src/mediaTiming.ts",
|
|
"types": "./src/mediaTiming.ts"
|
|
},
|
|
"./reference-resolver": {
|
|
"bun": "./src/referenceResolver.ts",
|
|
"node": "./dist/referenceResolver.js",
|
|
"import": "./src/referenceResolver.ts",
|
|
"types": "./src/referenceResolver.ts"
|
|
},
|
|
"./composition-duration": {
|
|
"bun": "./src/compositionDuration.ts",
|
|
"node": "./dist/compositionDuration.js",
|
|
"import": "./src/compositionDuration.ts",
|
|
"types": "./src/compositionDuration.ts"
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./gsap-parser": {
|
|
"import": "./dist/gsapParserExports.js",
|
|
"types": "./dist/gsapParserExports.d.ts"
|
|
},
|
|
"./gsap-parser-acorn": {
|
|
"import": "./dist/gsapParserAcorn.js",
|
|
"types": "./dist/gsapParserAcorn.d.ts"
|
|
},
|
|
"./gsap-writer-acorn": {
|
|
"import": "./dist/gsapWriterAcorn.js",
|
|
"types": "./dist/gsapWriterAcorn.d.ts"
|
|
},
|
|
"./gsap-constants": {
|
|
"import": "./dist/gsapConstants.js",
|
|
"types": "./dist/gsapConstants.d.ts"
|
|
},
|
|
"./spring-ease": {
|
|
"import": "./dist/springEase.js",
|
|
"types": "./dist/springEase.d.ts"
|
|
},
|
|
"./hf-ids": {
|
|
"import": "./dist/hfIds.js",
|
|
"types": "./dist/hfIds.d.ts"
|
|
},
|
|
"./gsap-parser-recast": {
|
|
"import": "./dist/gsapParser.js",
|
|
"types": "./dist/gsapParser.d.ts"
|
|
},
|
|
"./slideshow": {
|
|
"import": "./dist/slideshow.js",
|
|
"types": "./dist/slideshow.d.ts"
|
|
},
|
|
"./asset-paths": {
|
|
"import": "./dist/assets.js",
|
|
"types": "./dist/assets.d.ts"
|
|
},
|
|
"./css-url-scans": {
|
|
"import": "./dist/cssUrlScans.js",
|
|
"types": "./dist/cssUrlScans.d.ts"
|
|
},
|
|
"./composition": {
|
|
"import": "./dist/composition.js",
|
|
"types": "./dist/composition.d.ts"
|
|
},
|
|
"./composition-contract": {
|
|
"import": "./dist/compositionContract.js",
|
|
"types": "./dist/compositionContract.d.ts"
|
|
},
|
|
"./media-duration": {
|
|
"import": "./dist/mediaDuration.js",
|
|
"types": "./dist/mediaDuration.d.ts"
|
|
},
|
|
"./media-duration-fixtures": {
|
|
"import": "./dist/mediaDurationFixtures.js",
|
|
"types": "./dist/mediaDurationFixtures.d.ts"
|
|
},
|
|
"./top-level-elements": {
|
|
"import": "./dist/topLevelElements.js",
|
|
"types": "./dist/topLevelElements.d.ts"
|
|
},
|
|
"./color-grading-contract": {
|
|
"import": "./dist/colorGradingContract.js",
|
|
"types": "./dist/colorGradingContract.d.ts"
|
|
},
|
|
"./sub-composition-validity": {
|
|
"import": "./dist/subCompositionValidity.js",
|
|
"types": "./dist/subCompositionValidity.d.ts"
|
|
},
|
|
"./ff-binaries": {
|
|
"import": "./dist/ffBinaries.js",
|
|
"types": "./dist/ffBinaries.d.ts"
|
|
},
|
|
"./literal-media-input": {
|
|
"import": "./dist/literalMediaInput.js",
|
|
"types": "./dist/literalMediaInput.d.ts"
|
|
},
|
|
"./media-alpha": {
|
|
"import": "./dist/mediaAlpha.js",
|
|
"types": "./dist/mediaAlpha.d.ts"
|
|
},
|
|
"./media-streams": {
|
|
"import": "./dist/mediaStreams.js",
|
|
"types": "./dist/mediaStreams.d.ts"
|
|
},
|
|
"./asset-resolution": {
|
|
"import": "./dist/assetResolution.js",
|
|
"types": "./dist/assetResolution.d.ts"
|
|
},
|
|
"./private-path": {
|
|
"import": "./dist/privatePath.js",
|
|
"types": "./dist/privatePath.d.ts"
|
|
},
|
|
"./html-attribute-spans": {
|
|
"import": "./dist/htmlAttributeSpans.js",
|
|
"types": "./dist/htmlAttributeSpans.d.ts"
|
|
},
|
|
"./time-spans": {
|
|
"import": "./dist/timeSpans.js",
|
|
"types": "./dist/timeSpans.d.ts"
|
|
},
|
|
"./media-timing": {
|
|
"import": "./dist/mediaTiming.js",
|
|
"types": "./dist/mediaTiming.d.ts"
|
|
},
|
|
"./reference-resolver": {
|
|
"import": "./dist/referenceResolver.js",
|
|
"types": "./dist/referenceResolver.d.ts"
|
|
},
|
|
"./composition-duration": {
|
|
"import": "./dist/compositionDuration.js",
|
|
"types": "./dist/compositionDuration.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit",
|
|
"prepublishOnly": "echo skip"
|
|
},
|
|
"dependencies": {
|
|
"@babel/parser": "^7.27.0",
|
|
"acorn": "^8.17.0",
|
|
"acorn-walk": "^8.3.5",
|
|
"entities": "^7.0.1",
|
|
"linkedom": "^0.18.12",
|
|
"magic-string": "^0.30.21",
|
|
"recast": "^0.23.11"
|
|
},
|
|
"devDependencies": {
|
|
"@hyperframes/core": "workspace:*",
|
|
"@types/node": "^25.0.10",
|
|
"tsup": "^8.0.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.0.0",
|
|
"vitest": "^4.1.12"
|
|
}
|
|
}
|