@hyperframes/core 0.8.177 → 0.8.178

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/index.d.ts CHANGED
@@ -38,7 +38,7 @@ export { HYPERFRAME_RUNTIME_GLOBALS, HYPERFRAME_BRIDGE_SOURCES, HYPERFRAME_CONTR
38
38
  export { getHyperframeRuntimeScript } from "./generated/runtime-inline.js";
39
39
  export { buildHyperframesRuntimeScript, type HyperframesRuntimeBuildOptions, } from "./inline-scripts/hyperframesRuntime.engine.js";
40
40
  export { MEDIA_VISUAL_STYLE_PROPERTIES, copyMediaVisualStyles, exportClipWindow, quantizeSeekTime, quantizeTimeToFrame, type MediaVisualStyleProperty, } from "./inline-scripts/parityContract.js";
41
- export { redactKnownPaths, redactTelemetryString } from "./telemetryRedaction.js";
41
+ export { redactKnownPaths, redactTelemetryString, redactUrlQueryStrings, } from "./telemetryRedaction.js";
42
42
  export { folderGone, isProjectRootMissing, isSafePath, mkdirWithinProject, ProjectRootMissingError, realpath, realProjectRoot, resolveWithinProject, } from "./safePath.js";
43
43
  export { isHyperframesProject, PROJECT_MARKER_FILES } from "./projectRule.js";
44
44
  export type { HyperframePickerApi, HyperframePickerBoundingBox, HyperframePickerElementInfo, } from "./inline-scripts/pickerApi.js";
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ export { HYPERFRAME_RUNTIME_GLOBALS, HYPERFRAME_BRIDGE_SOURCES, HYPERFRAME_CONTR
35
35
  export { getHyperframeRuntimeScript } from "./generated/runtime-inline.js";
36
36
  export { buildHyperframesRuntimeScript, } from "./inline-scripts/hyperframesRuntime.engine.js";
37
37
  export { MEDIA_VISUAL_STYLE_PROPERTIES, copyMediaVisualStyles, exportClipWindow, quantizeSeekTime, quantizeTimeToFrame, } from "./inline-scripts/parityContract.js";
38
- export { redactKnownPaths, redactTelemetryString } from "./telemetryRedaction.js";
38
+ export { redactKnownPaths, redactTelemetryString, redactUrlQueryStrings, } from "./telemetryRedaction.js";
39
39
  export { folderGone, isProjectRootMissing, isSafePath, mkdirWithinProject, ProjectRootMissingError, realpath, realProjectRoot, resolveWithinProject, } from "./safePath.js";
40
40
  export { isHyperframesProject, PROJECT_MARKER_FILES } from "./projectRule.js";
41
41
  export { createGSAPFrameAdapter } from "./adapters/gsap.js";
@@ -1,2 +1,4 @@
1
1
  /** Folders whose writes never reload Studio's preview, so nothing that judges a preview stale may count them. */
2
2
  export declare const PREVIEW_IGNORED_DIRS: ReadonlySet<string>;
3
+ export declare const RENDER_TEMP_DIR: RegExp;
4
+ export declare const isProjectIgnoredDir: (name: string) => boolean;
@@ -15,3 +15,5 @@ export const PREVIEW_IGNORED_DIRS = new Set([
15
15
  "outputs",
16
16
  "renders",
17
17
  ]);
18
+ export const RENDER_TEMP_DIR = /^(work-[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|hf-render|\..+\.hf-transaction)-[A-Za-z0-9]{6}$/;
19
+ export const isProjectIgnoredDir = (name) => PREVIEW_IGNORED_DIRS.has(name) || RENDER_TEMP_DIR.test(name);
@@ -1,3 +1,5 @@
1
+ /** Strips http(s) URL queries, and any signing parameter left without its URL (e.g. after a cut). */
2
+ export declare function redactUrlQueryStrings(value: string): string;
1
3
  /**
2
4
  * Redact literal strings — the exact paths a caller KNOWS it passed — before
3
5
  * any shape-based rule runs.
@@ -4,8 +4,11 @@ function truncateTelemetryString(value, maxLength) {
4
4
  return value;
5
5
  return `${value.slice(0, maxLength - 1)}…`;
6
6
  }
7
- function redactUrlQueryStrings(value) {
8
- return value.replace(/\b(https?:\/\/[^\s?]+)\?[^\s]*/g, "$1?…");
7
+ /** Strips http(s) URL queries, and any signing parameter left without its URL (e.g. after a cut). */
8
+ export function redactUrlQueryStrings(value) {
9
+ return value
10
+ .replace(/\b(https?:\/\/[^\s?]+)\?[^\s]*/g, "$1?…")
11
+ .replace(/((?:X-(?:Amz|Goog)-[\w-]*|Signature)=)[^&\s]*/gi, "$1…");
9
12
  }
10
13
  /**
11
14
  * Path characters we treat as part of a single segment. Space is deliberately
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/core",
3
- "version": "0.8.177",
3
+ "version": "0.8.178",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -381,9 +381,9 @@
381
381
  "linkedom": "^0.18.12",
382
382
  "postcss": "^8.5.8",
383
383
  "wawoff2": "^2.0.1",
384
- "@hyperframes/parsers": "0.8.177",
385
- "@hyperframes/lint": "0.8.177",
386
- "@hyperframes/studio-server": "0.8.177"
384
+ "@hyperframes/lint": "0.8.178",
385
+ "@hyperframes/studio-server": "0.8.178",
386
+ "@hyperframes/parsers": "0.8.178"
387
387
  },
388
388
  "devDependencies": {
389
389
  "@fontsource/archivo-black": "^5.2.8",