@acpfx/stt-deepgram 0.2.5 → 0.2.6
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 +3 -10
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { parse as parseYaml } from "yaml";
|
|
|
14
14
|
// ../core/src/manifest.ts
|
|
15
15
|
import { readFileSync } from "node:fs";
|
|
16
16
|
import { join, dirname } from "node:path";
|
|
17
|
+
import { fileURLToPath } from "node:url";
|
|
17
18
|
|
|
18
19
|
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
19
20
|
var external_exports = {};
|
|
@@ -13849,16 +13850,8 @@ function handleManifestFlag(manifestPath) {
|
|
|
13849
13850
|
}
|
|
13850
13851
|
function printManifest(manifestPath) {
|
|
13851
13852
|
if (!manifestPath) {
|
|
13852
|
-
const
|
|
13853
|
-
|
|
13854
|
-
const scriptBase = script.replace(/\.[^.]+$/, "");
|
|
13855
|
-
const colocated = `${scriptBase}.manifest.json`;
|
|
13856
|
-
try {
|
|
13857
|
-
readFileSync(colocated);
|
|
13858
|
-
manifestPath = colocated;
|
|
13859
|
-
} catch {
|
|
13860
|
-
manifestPath = join(scriptDir, "manifest.json");
|
|
13861
|
-
}
|
|
13853
|
+
const bundleDir = dirname(fileURLToPath(import.meta.url));
|
|
13854
|
+
manifestPath = join(bundleDir, "manifest.json");
|
|
13862
13855
|
}
|
|
13863
13856
|
try {
|
|
13864
13857
|
const content = readFileSync(manifestPath, "utf8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acpfx/stt-deepgram",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"acpfx-stt-deepgram": "./dist/index.js"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"yaml": "^2.8.3",
|
|
15
|
-
"@acpfx/core": "0.4.
|
|
16
|
-
"@acpfx/node-sdk": "0.3.
|
|
15
|
+
"@acpfx/core": "0.4.1",
|
|
16
|
+
"@acpfx/node-sdk": "0.3.1"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "esbuild src/index.ts --bundle --external:yaml --banner:js=\"#!/usr/bin/env node\" --platform=node --format=esm --outfile=dist/index.js && node ../../scripts/copy-manifest.js"
|