@hyperframes/producer 0.1.2 → 0.1.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 HeyGen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -104674,6 +104674,7 @@ import { existsSync as existsSync11, readFileSync as readFileSync5 } from "node:
104674
104674
  import { dirname as dirname7, resolve as resolve6 } from "node:path";
104675
104675
  import { fileURLToPath as fileURLToPath2 } from "node:url";
104676
104676
  var PRODUCER_DIR = dirname7(fileURLToPath2(import.meta.url));
104677
+ var SIBLING_MANIFEST_PATH = resolve6(PRODUCER_DIR, "hyperframe.manifest.json");
104677
104678
  var MODULE_RELATIVE_MANIFEST_PATH = resolve6(
104678
104679
  PRODUCER_DIR,
104679
104680
  "../../../core/dist/hyperframe.manifest.json"
@@ -104686,7 +104687,11 @@ function resolveHyperframeManifestPath() {
104686
104687
  if (process.env.PRODUCER_HYPERFRAME_MANIFEST_PATH) {
104687
104688
  return process.env.PRODUCER_HYPERFRAME_MANIFEST_PATH;
104688
104689
  }
104689
- const candidates = [...CWD_RELATIVE_MANIFEST_PATHS, MODULE_RELATIVE_MANIFEST_PATH];
104690
+ const candidates = [
104691
+ SIBLING_MANIFEST_PATH,
104692
+ ...CWD_RELATIVE_MANIFEST_PATHS,
104693
+ MODULE_RELATIVE_MANIFEST_PATH
104694
+ ];
104690
104695
  for (const candidate of candidates) {
104691
104696
  if (existsSync11(candidate)) {
104692
104697
  return candidate;
@@ -105625,8 +105630,9 @@ function ensureFullDocument(html) {
105625
105630
  <html>
105626
105631
  <head>
105627
105632
  <meta charset="UTF-8">
105633
+ <style>*{margin:0;padding:0;box-sizing:border-box}body{overflow:hidden;background:#000}</style>
105628
105634
  </head>
105629
- <body>
105635
+ <body style="margin:0;overflow:hidden">
105630
105636
  ${html}
105631
105637
  </body>
105632
105638
  </html>`;