hyperframes 0.7.35 → 0.7.36
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/cli.js +19 -3
- package/dist/studio/assets/{index-xm9qFODm.js → index-BltxqwG6.js} +1 -1
- package/dist/studio/assets/{index-B12MRH9w.js → index-DfeE1_Rl.js} +3 -3
- package/dist/studio/assets/{index-BqeN8dYQ.js → index-_bjyggFK.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -50,7 +50,7 @@ var VERSION;
|
|
|
50
50
|
var init_version = __esm({
|
|
51
51
|
"src/version.ts"() {
|
|
52
52
|
"use strict";
|
|
53
|
-
VERSION = true ? "0.7.
|
|
53
|
+
VERSION = true ? "0.7.36" : "0.0.0-dev";
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -78986,6 +78986,22 @@ __export(ffmpeg_exports, {
|
|
|
78986
78986
|
import { execSync as execSync3 } from "child_process";
|
|
78987
78987
|
import { existsSync as existsSync21 } from "fs";
|
|
78988
78988
|
import { resolve as resolve11 } from "path";
|
|
78989
|
+
function chooseBestPathCandidate2(name, candidates) {
|
|
78990
|
+
const normalized = candidates.map((s2) => s2.trim()).filter(Boolean);
|
|
78991
|
+
if (normalized.length === 0) return void 0;
|
|
78992
|
+
const lowerName = name.toLowerCase();
|
|
78993
|
+
const preferredExe = normalized.find(
|
|
78994
|
+
(candidate) => candidate.toLowerCase().endsWith(`${lowerName}.exe`)
|
|
78995
|
+
);
|
|
78996
|
+
if (preferredExe) return preferredExe;
|
|
78997
|
+
const exact = normalized.find((candidate) => candidate.toLowerCase().endsWith(lowerName));
|
|
78998
|
+
if (exact) return exact;
|
|
78999
|
+
const nonShellShim = normalized.find((candidate) => {
|
|
79000
|
+
const lower2 = candidate.toLowerCase();
|
|
79001
|
+
return !lower2.endsWith(".cmd") && !lower2.endsWith(".bat");
|
|
79002
|
+
});
|
|
79003
|
+
return nonShellShim ?? normalized[0];
|
|
79004
|
+
}
|
|
78989
79005
|
function findOnPath2(name) {
|
|
78990
79006
|
try {
|
|
78991
79007
|
const cmd = process.platform === "win32" ? `where ${name}` : `which ${name}`;
|
|
@@ -78994,8 +79010,8 @@ function findOnPath2(name) {
|
|
|
78994
79010
|
stdio: ["pipe", "pipe", "pipe"],
|
|
78995
79011
|
timeout: 5e3
|
|
78996
79012
|
});
|
|
78997
|
-
const
|
|
78998
|
-
return
|
|
79013
|
+
const candidate = chooseBestPathCandidate2(name, output.split(/\r?\n/));
|
|
79014
|
+
return candidate ? resolve11(candidate) : void 0;
|
|
78999
79015
|
} catch {
|
|
79000
79016
|
return void 0;
|
|
79001
79017
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as P}from"./index-
|
|
1
|
+
import{g as P}from"./index-DfeE1_Rl.js";function j(c,d){for(var s=0;s<d.length;s++){const a=d[s];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in c)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(c,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var v={},w;function k(){if(w)return v;w=1,Object.defineProperty(v,"__esModule",{value:!0}),v.default=d;var c=window.OfflineAudioContext||window.webkitOfflineAudioContext;function d(e){var r=a(e);return r.start(0),[i,y,O(e.sampleRate),s].reduce(function(t,o){return o(t)},r.buffer.getChannelData(0))}function s(e){return e.sort(function(r,t){return t.count-r.count}).splice(0,5)[0].tempo}function a(e){var r=e.length,t=e.numberOfChannels,o=e.sampleRate,n=new c(t,r,o),u=n.createBufferSource();u.buffer=e;var f=n.createBiquadFilter();return f.type="lowpass",u.connect(f),f.connect(n.destination),u}function i(e){for(var r=[],t=.9,o=.3,n=15;r.length<n&&t>=o;)r=l(e,t),t-=.05;if(r.length<n)throw new Error("Could not find enough samples for a reliable detection.");return r}function l(e,r){for(var t=[],o=0,n=e.length;o<n;o+=1)e[o]>r&&(t.push(o),o+=1e4);return t}function y(e){var r=[];return e.forEach(function(t,o){for(var n=function(x){var g=e[o+x]-t,_=r.some(function(h){if(h.interval===g)return h.count+=1});_||r.push({interval:g,count:1})},u=0;u<10;u+=1)n(u)}),r}function O(e){return function(r){var t=[];return r.forEach(function(o){if(o.interval!==0){for(var n=60/(o.interval/e);n<90;)n*=2;for(;n>180;)n/=2;n=Math.round(n);var u=t.some(function(f){if(f.tempo===n)return f.count+=o.count});u||t.push({tempo:n,count:o.count})}}),t}}return v}var p,b;function q(){return b||(b=1,p=k().default),p}var m=q();const A=P(m),D=j({__proto__:null,default:A},[m]);export{D as i};
|