storyboard-bridge 0.3.6 → 0.3.7
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/index.mjs +4 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -31,8 +31,11 @@ import { join, resolve, dirname, sep } from 'node:path';
|
|
|
31
31
|
import { fileURLToPath } from 'node:url';
|
|
32
32
|
import { tmpdir } from 'node:os';
|
|
33
33
|
import { WebSocket } from 'ws';
|
|
34
|
+
import { createRequire } from 'node:module';
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
// read from package.json so the printed version can NEVER drift from the published one (the bug where 0.3.6
|
|
37
|
+
// still announced v0.3.5 + nagged forever). package.json ships in the npm tarball next to this file.
|
|
38
|
+
const VERSION = createRequire(import.meta.url)('./package.json').version;
|
|
36
39
|
|
|
37
40
|
// in-flight Higgsfield render children, keyed by job id — so a `higgsfield-cancel` can kill the right one
|
|
38
41
|
// (the backend sends it when the user cancels, freeing the single render slot instead of leaving it running).
|
package/package.json
CHANGED