@hyperframes/studio-server 0.9.26 → 0.9.27
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.js +4 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -849,13 +849,13 @@ import {
|
|
|
849
849
|
writeFileSync,
|
|
850
850
|
mkdirSync,
|
|
851
851
|
lstatSync,
|
|
852
|
-
mkdtempSync,
|
|
853
852
|
renameSync,
|
|
854
853
|
rmSync,
|
|
855
854
|
statSync
|
|
856
855
|
} from "fs";
|
|
857
856
|
import { dirname as dirname2, join as join3 } from "path";
|
|
858
857
|
import { findFfBinary } from "@hyperframes/parsers/ff-binaries";
|
|
858
|
+
import { createStagingDir } from "@hyperframes/core/atomic-file";
|
|
859
859
|
var SAMPLE_RATE = 4e3;
|
|
860
860
|
var PEAK_COUNT = 4e3;
|
|
861
861
|
var WAVEFORM_CACHE_VERSION = "v2";
|
|
@@ -947,7 +947,7 @@ function writeWaveformCache(cachePath, peaks) {
|
|
|
947
947
|
if (!isWaveformCacheDirectory(cacheDir)) {
|
|
948
948
|
throw new Error("Waveform cache must be a directory, not a symlink");
|
|
949
949
|
}
|
|
950
|
-
const stagingDir =
|
|
950
|
+
const stagingDir = createStagingDir(cacheDir, ".waveform-");
|
|
951
951
|
try {
|
|
952
952
|
const stagingPath = join3(stagingDir, "peaks.json");
|
|
953
953
|
writeFileSync(stagingPath, JSON.stringify(peaks), { flag: "wx" });
|
|
@@ -962,7 +962,7 @@ function writeWaveformCache(cachePath, peaks) {
|
|
|
962
962
|
|
|
963
963
|
// src/helpers/mediaValidation.ts
|
|
964
964
|
import { spawnSync } from "child_process";
|
|
965
|
-
import { mkdtempSync
|
|
965
|
+
import { mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
966
966
|
import { tmpdir } from "os";
|
|
967
967
|
import { basename, join as join4 } from "path";
|
|
968
968
|
import { FFPROBE_PATH_ENV, findFfBinary as findFfBinary2 } from "@hyperframes/parsers/ff-binaries";
|
|
@@ -1016,7 +1016,7 @@ function checkStreams(stdout, isVideo, isAudio) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
function validateUploadedMediaBuffer(fileName, buffer, runner = defaultRunner) {
|
|
1019
|
-
const tempDir =
|
|
1019
|
+
const tempDir = mkdtempSync(join4(tmpdir(), "hyperframes-upload-"));
|
|
1020
1020
|
const tempPath = join4(tempDir, basename(fileName));
|
|
1021
1021
|
try {
|
|
1022
1022
|
writeFileSync2(tempPath, buffer);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio-server",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.27",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"linkedom": "^0.18.12",
|
|
89
89
|
"postcss": "^8.5.8",
|
|
90
90
|
"postcss-selector-parser": "^7.1.2",
|
|
91
|
-
"@hyperframes/core": "0.9.
|
|
92
|
-
"@hyperframes/parsers": "0.9.
|
|
91
|
+
"@hyperframes/core": "0.9.27",
|
|
92
|
+
"@hyperframes/parsers": "0.9.27"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@types/node": "^25.0.10",
|