@norskvideo/norsk-studio-alpha 1.27.0-2025-08-27-749866f3 → 1.27.0-2025-08-28-08ac17e0
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/client/info.js +49 -5
- package/client/style.css +4 -0
- package/lib/info.js +7 -5
- package/lib/info.js.map +1 -1
- package/lib/processor.delayAll/info.d.ts +7 -0
- package/lib/processor.delayAll/info.js +45 -0
- package/lib/processor.delayAll/info.js.map +1 -0
- package/lib/processor.delayAll/runtime.d.ts +24 -0
- package/lib/processor.delayAll/runtime.js +59 -0
- package/lib/processor.delayAll/runtime.js.map +1 -0
- package/lib/processor.delayAll/types.d.ts +19 -0
- package/lib/processor.delayAll/types.js +3 -0
- package/lib/processor.delayAll/types.js.map +1 -0
- package/lib/processor.delayAll/types.yaml +23 -0
- package/package.json +4 -4
package/client/info.js
CHANGED
|
@@ -28726,8 +28726,51 @@ function assertUnreachable3(_) {
|
|
|
28726
28726
|
throw new Error("Didn't expect to get here");
|
|
28727
28727
|
}
|
|
28728
28728
|
|
|
28729
|
-
// build/processor.
|
|
28729
|
+
// build/processor.delayAll/info.js
|
|
28730
28730
|
function info_default8({ defineComponent }) {
|
|
28731
|
+
return defineComponent({
|
|
28732
|
+
identifier: "processor.delayAll",
|
|
28733
|
+
category: "processor",
|
|
28734
|
+
name: "Delay All",
|
|
28735
|
+
description: "Delays all streams by a fixed amount based on the wallclock",
|
|
28736
|
+
subscription: {
|
|
28737
|
+
accepts: {
|
|
28738
|
+
type: "dynamic-streams",
|
|
28739
|
+
mode: "any",
|
|
28740
|
+
streams: () => {
|
|
28741
|
+
return [
|
|
28742
|
+
{ media: "audio" },
|
|
28743
|
+
{ media: "video" },
|
|
28744
|
+
{ media: "subtitle" }
|
|
28745
|
+
];
|
|
28746
|
+
}
|
|
28747
|
+
},
|
|
28748
|
+
produces: {
|
|
28749
|
+
type: "dynamic-streams",
|
|
28750
|
+
streams(_cfg, inputStreams) {
|
|
28751
|
+
return inputStreams;
|
|
28752
|
+
}
|
|
28753
|
+
}
|
|
28754
|
+
},
|
|
28755
|
+
configForm: {
|
|
28756
|
+
form: {
|
|
28757
|
+
delayMs: {
|
|
28758
|
+
help: "",
|
|
28759
|
+
advanced: void 0,
|
|
28760
|
+
hint: {
|
|
28761
|
+
type: "numeric",
|
|
28762
|
+
defaultValue: 5e3,
|
|
28763
|
+
envOverride: true
|
|
28764
|
+
}
|
|
28765
|
+
},
|
|
28766
|
+
notes: { help: "Notes about this component", hint: { type: "text", optional: true } }
|
|
28767
|
+
}
|
|
28768
|
+
}
|
|
28769
|
+
});
|
|
28770
|
+
}
|
|
28771
|
+
|
|
28772
|
+
// build/processor.gemini-poc/info.js
|
|
28773
|
+
function info_default9({ defineComponent }) {
|
|
28731
28774
|
return defineComponent({
|
|
28732
28775
|
identifier: "processor.gemini-poc",
|
|
28733
28776
|
category: "processor",
|
|
@@ -28791,7 +28834,7 @@ function info_default8({ defineComponent }) {
|
|
|
28791
28834
|
|
|
28792
28835
|
// build/processor.mixMinus/info.js
|
|
28793
28836
|
var import_FaKey = __toESM(require_FaKey());
|
|
28794
|
-
function
|
|
28837
|
+
function info_default10({ defineComponent }) {
|
|
28795
28838
|
return defineComponent({
|
|
28796
28839
|
identifier: "processor.mixMinus",
|
|
28797
28840
|
category: "processor",
|
|
@@ -28866,7 +28909,7 @@ function InlineView3({ state, config, sendCommand }) {
|
|
|
28866
28909
|
var summary_default2 = InlineView3;
|
|
28867
28910
|
|
|
28868
28911
|
// build/processor.monetise/info.js
|
|
28869
|
-
function
|
|
28912
|
+
function info_default11(R) {
|
|
28870
28913
|
const { defineComponent } = R;
|
|
28871
28914
|
return defineComponent({
|
|
28872
28915
|
identifier: "processor.scte35inject",
|
|
@@ -28933,7 +28976,7 @@ function assertUnreachable4(_) {
|
|
|
28933
28976
|
}
|
|
28934
28977
|
|
|
28935
28978
|
// build/processor.whisper-transcribe/info.js
|
|
28936
|
-
function
|
|
28979
|
+
function info_default12({ defineComponent, validation: { Z } }) {
|
|
28937
28980
|
return defineComponent({
|
|
28938
28981
|
identifier: "processor.whisper-transcribe",
|
|
28939
28982
|
category: "processor",
|
|
@@ -43371,7 +43414,7 @@ function InlineView4({ state, config: _2 }) {
|
|
|
43371
43414
|
var inline_view_default3 = InlineView4;
|
|
43372
43415
|
|
|
43373
43416
|
// build/util.timestamps/info.js
|
|
43374
|
-
function
|
|
43417
|
+
function info_default13(R) {
|
|
43375
43418
|
const { defineComponent, All } = R;
|
|
43376
43419
|
return defineComponent({
|
|
43377
43420
|
identifier: "util.timestamps",
|
|
@@ -43450,6 +43493,7 @@ AllComponents.push((r) => info_default9(r));
|
|
|
43450
43493
|
AllComponents.push((r) => info_default10(r));
|
|
43451
43494
|
AllComponents.push((r) => info_default11(r));
|
|
43452
43495
|
AllComponents.push((r) => info_default12(r));
|
|
43496
|
+
AllComponents.push((r) => info_default13(r));
|
|
43453
43497
|
export {
|
|
43454
43498
|
getNodeInfo as default
|
|
43455
43499
|
};
|
package/client/style.css
CHANGED
package/lib/info.js
CHANGED
|
@@ -31,14 +31,16 @@ const info_6 = __importDefault(require("./processor.actionReplay/info"));
|
|
|
31
31
|
AllComponents.push((r) => (0, info_6.default)(r));
|
|
32
32
|
const info_7 = __importDefault(require("./processor.audioLevel/info"));
|
|
33
33
|
AllComponents.push((r) => (0, info_7.default)(r));
|
|
34
|
-
const info_8 = __importDefault(require("./processor.
|
|
34
|
+
const info_8 = __importDefault(require("./processor.delayAll/info"));
|
|
35
35
|
AllComponents.push((r) => (0, info_8.default)(r));
|
|
36
|
-
const info_9 = __importDefault(require("./processor.
|
|
36
|
+
const info_9 = __importDefault(require("./processor.gemini-poc/info"));
|
|
37
37
|
AllComponents.push((r) => (0, info_9.default)(r));
|
|
38
|
-
const info_10 = __importDefault(require("./processor.
|
|
38
|
+
const info_10 = __importDefault(require("./processor.mixMinus/info"));
|
|
39
39
|
AllComponents.push((r) => (0, info_10.default)(r));
|
|
40
|
-
const info_11 = __importDefault(require("./processor.
|
|
40
|
+
const info_11 = __importDefault(require("./processor.monetise/info"));
|
|
41
41
|
AllComponents.push((r) => (0, info_11.default)(r));
|
|
42
|
-
const info_12 = __importDefault(require("./
|
|
42
|
+
const info_12 = __importDefault(require("./processor.whisper-transcribe/info"));
|
|
43
43
|
AllComponents.push((r) => (0, info_12.default)(r));
|
|
44
|
+
const info_13 = __importDefault(require("./util.timestamps/info"));
|
|
45
|
+
AllComponents.push((r) => (0, info_13.default)(r));
|
|
44
46
|
//# sourceMappingURL=info.js.map
|
package/lib/info.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../src/info.ts"],"names":[],"mappings":";;;;;AAYA,8BASC;AAdD,MAAM,qBAAqB,GAA4C,EAAE,CAAC;AAC1E,IAAI,WAAW,GAAG,KAAK,CAAC;AAExB,MAAM,aAAa,GAAkD,EAAE,CAAC;AAExE,SAAwB,WAAW,CAAC,CAAe,EAAE,IAAY;IAC/D,IAAG,CAAC,WAAW,EAAE,CAAC;QAChB,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC1B,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACf,qBAAqB,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAA;QACF,WAAW,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC;AAED,iEAAmD;AACnD,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,cAAc,EAAC,CAAC,CAAoC,CAAC,CAAC;AAC9F,gEAAiD;AACjD,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,cAAa,EAAC,CAAC,CAAoC,CAAC,CAAC;AAC7F,4DAAyC;AACzC,aAAa,CAAC,IAA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AA2D;AAC3D,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,eAAkB,EAAC,CAAC,CAAoC,CAAC,CAAC;AAClG,gFAA+E;AAC/E,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,eAA4B,EAAC,CAAC,CAAoC,CAAC,CAAC;AAC5G,mEAAqD;AACrD,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,eAAe,EAAC,CAAC,CAAoC,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
|
2
|
+
export default function ({ defineComponent }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<{
|
|
3
|
+
id: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
delayMs: number;
|
|
6
|
+
notes?: string;
|
|
7
|
+
}, object, object, object>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
4
|
+
function default_1({ defineComponent }) {
|
|
5
|
+
return defineComponent({
|
|
6
|
+
identifier: 'processor.delayAll',
|
|
7
|
+
category: 'processor',
|
|
8
|
+
name: "Delay All",
|
|
9
|
+
description: "Delays all streams by a fixed amount based on the wallclock",
|
|
10
|
+
subscription: {
|
|
11
|
+
accepts: {
|
|
12
|
+
type: 'dynamic-streams',
|
|
13
|
+
mode: 'any',
|
|
14
|
+
streams: () => {
|
|
15
|
+
return [
|
|
16
|
+
{ media: 'audio' },
|
|
17
|
+
{ media: 'video' },
|
|
18
|
+
{ media: 'subtitle' },
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
produces: {
|
|
23
|
+
type: 'dynamic-streams',
|
|
24
|
+
streams(_cfg, inputStreams) {
|
|
25
|
+
return inputStreams;
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
configForm: {
|
|
30
|
+
form: {
|
|
31
|
+
delayMs: {
|
|
32
|
+
help: "",
|
|
33
|
+
advanced: undefined,
|
|
34
|
+
hint: {
|
|
35
|
+
type: "numeric",
|
|
36
|
+
defaultValue: 5000.0,
|
|
37
|
+
envOverride: true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
notes: { help: "Notes about this component", hint: { type: 'text', optional: true } },
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/processor.delayAll/info.ts"],"names":[],"mappings":";;AAGA,4BA2CC;AA3CD,mBAAwB,EACtB,eAAe,EACF;IAEb,OAAO,eAAe,CAAgE;QACpF,UAAU,EAAE,oBAAoB;QAChC,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,6DAA6D;QAC1E,YAAY,EAAE;YACZ,OAAO,EAAE;gBACP,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,KAAK;gBACX,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO;wBACL,EAAE,KAAK,EAAE,OAAO,EAAE;wBAClB,EAAE,KAAK,EAAE,OAAO,EAAE;wBAClB,EAAE,KAAK,EAAE,UAAU,EAAE;qBACtB,CAAA;gBACH,CAAC;aACF;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,iBAAiB;gBACvB,OAAO,CAAC,IAAI,EAAE,YAAY;oBACxB,OAAO,YAAY,CAAA;gBACrB,CAAC;aACF;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,OAAO,EAAE;oBACP,IAAI,EAAE,EAAE;oBACR,QAAQ,EAAE,SAAS;oBACnB,IAAI,EAAE;wBACJ,IAAI,EAAE,SAAS;wBACf,YAAY,EAAE,MAAM;wBACpB,WAAW,EAAE,IAAI;qBAClB;iBACF;gBACD,KAAK,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;aACtF;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { JitterBufferNode, Norsk } from '@norskvideo/norsk-sdk';
|
|
2
|
+
import { OnCreated, RelatedMediaNodes, RuntimeUpdates, ServerComponentDefinition, ServerComponentSchemas, StudioComponentInputStream, StudioRuntime, StudioShared } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
|
3
|
+
import { components } from './types';
|
|
4
|
+
export type DelayAllConfig = components['schemas']['DelayAllConfig'];
|
|
5
|
+
export type DelayAllState = object;
|
|
6
|
+
export type DelayAllEvent = object;
|
|
7
|
+
export type DelayAllCommand = object;
|
|
8
|
+
export default class DelayAllDefinition implements ServerComponentDefinition<DelayAllConfig, DelayAll, DelayAllState, DelayAllCommand, DelayAllEvent> {
|
|
9
|
+
schemas(): Promise<ServerComponentSchemas>;
|
|
10
|
+
create(norsk: Norsk, cfg: DelayAllConfig, cb: OnCreated<DelayAll>, runtime: StudioRuntime<DelayAllState, DelayAllCommand, DelayAllEvent>): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export declare class DelayAll {
|
|
13
|
+
id: string;
|
|
14
|
+
norsk: Norsk;
|
|
15
|
+
cfg: DelayAllConfig;
|
|
16
|
+
initialised: Promise<void>;
|
|
17
|
+
updates: RuntimeUpdates<DelayAllState, DelayAllCommand, DelayAllEvent>;
|
|
18
|
+
shared: StudioShared;
|
|
19
|
+
relatedMediaNodes: RelatedMediaNodes;
|
|
20
|
+
jitterBuffer?: JitterBufferNode;
|
|
21
|
+
constructor(norsk: Norsk, cfg: DelayAllConfig, runtime: StudioRuntime<DelayAllState, DelayAllCommand, DelayAllEvent>);
|
|
22
|
+
initialise(): Promise<void>;
|
|
23
|
+
subscribe(sources: StudioComponentInputStream[]): Promise<void>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DelayAll = void 0;
|
|
7
|
+
const runtime_types_1 = require("@norskvideo/norsk-studio/lib/extension/runtime-types");
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const schemas_1 = require("../shared/schemas");
|
|
10
|
+
class DelayAllDefinition {
|
|
11
|
+
async schemas() {
|
|
12
|
+
return (0, schemas_1.schemaFromTypes)(path_1.default.join(__dirname, 'types.yaml'), {
|
|
13
|
+
config: 'DelayAllConfig',
|
|
14
|
+
state: 'DelayAllState'
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async create(norsk, cfg, cb, runtime) {
|
|
18
|
+
const node = new DelayAll(norsk, cfg, runtime);
|
|
19
|
+
await node.initialised;
|
|
20
|
+
cb(node);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = DelayAllDefinition;
|
|
24
|
+
class DelayAll {
|
|
25
|
+
id;
|
|
26
|
+
norsk;
|
|
27
|
+
cfg;
|
|
28
|
+
initialised;
|
|
29
|
+
updates;
|
|
30
|
+
shared;
|
|
31
|
+
relatedMediaNodes = new runtime_types_1.RelatedMediaNodes();
|
|
32
|
+
jitterBuffer;
|
|
33
|
+
constructor(norsk, cfg, runtime) {
|
|
34
|
+
this.id = cfg.id;
|
|
35
|
+
this.norsk = norsk;
|
|
36
|
+
this.cfg = cfg;
|
|
37
|
+
this.updates = runtime.updates;
|
|
38
|
+
this.shared = runtime.shared;
|
|
39
|
+
this.initialised = this.initialise();
|
|
40
|
+
}
|
|
41
|
+
async initialise() {
|
|
42
|
+
this.jitterBuffer = await this.norsk.processor.transform.jitterBuffer({
|
|
43
|
+
id: `${this.id}-jitterbuffer`,
|
|
44
|
+
delayMs: this.cfg.delayMs
|
|
45
|
+
});
|
|
46
|
+
this.relatedMediaNodes.addOutput(this.jitterBuffer);
|
|
47
|
+
}
|
|
48
|
+
async subscribe(sources) {
|
|
49
|
+
this.jitterBuffer?.subscribe(sources.map((s) => s.select()), (ctx) => {
|
|
50
|
+
if (ctx.streams.length == 0)
|
|
51
|
+
return "accept";
|
|
52
|
+
if (ctx.streams.length == sources.length)
|
|
53
|
+
return "accept";
|
|
54
|
+
return "deny";
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.DelayAll = DelayAll;
|
|
59
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/processor.delayAll/runtime.ts"],"names":[],"mappings":";;;;;;AAKA,wFAAgO;AAChO,gDAAwB;AACxB,+CAAoD;AAUpD,MAAqB,kBAAkB;IACrC,KAAK,CAAC,OAAO;QACX,OAAO,IAAA,yBAAe,EAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE;YACzD,MAAM,EAAE,gBAAgB;YACxB,KAAK,EAAE,eAAe;SACvB,CAAC,CAAC;IACL,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAmB,EAAE,EAAuB,EAAE,OAAqE;QAC5I,MAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QAC/C,MAAM,IAAI,CAAC,WAAW,CAAC;QACvB,EAAE,CAAC,IAAI,CAAC,CAAC;IACX,CAAC;CACF;AAZD,qCAYC;AAED,MAAa,QAAQ;IACnB,EAAE,CAAS;IACX,KAAK,CAAQ;IACb,GAAG,CAAiB;IACpB,WAAW,CAAgB;IAC3B,OAAO,CA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@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type paths = Record<string, never>;
|
|
2
|
+
export type webhooks = Record<string, never>;
|
|
3
|
+
export interface components {
|
|
4
|
+
schemas: {
|
|
5
|
+
DelayAllConfig: {
|
|
6
|
+
id: string;
|
|
7
|
+
displayName: string;
|
|
8
|
+
delayMs: number;
|
|
9
|
+
notes?: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
responses: never;
|
|
13
|
+
parameters: never;
|
|
14
|
+
requestBodies: never;
|
|
15
|
+
headers: never;
|
|
16
|
+
pathItems: never;
|
|
17
|
+
}
|
|
18
|
+
export type $defs = Record<string, never>;
|
|
19
|
+
export type operations = Record<string, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/processor.delayAll/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Delay all
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
|
|
6
|
+
components:
|
|
7
|
+
schemas:
|
|
8
|
+
DelayAllConfig:
|
|
9
|
+
type: object
|
|
10
|
+
properties:
|
|
11
|
+
id:
|
|
12
|
+
type: string
|
|
13
|
+
displayName:
|
|
14
|
+
type: string
|
|
15
|
+
delayMs:
|
|
16
|
+
type: number
|
|
17
|
+
notes:
|
|
18
|
+
type: string
|
|
19
|
+
required:
|
|
20
|
+
- id
|
|
21
|
+
- displayName
|
|
22
|
+
- delayMs
|
|
23
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norskvideo/norsk-studio-alpha",
|
|
3
|
-
"version": "1.27.0-2025-08-
|
|
3
|
+
"version": "1.27.0-2025-08-28-08ac17e0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -rf lib client build && make clean",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@apidevtools/json-schema-ref-parser": "^12.0.1",
|
|
26
|
-
"@norskvideo/norsk-sdk": "^1.0.402-2025-08-
|
|
27
|
-
"@norskvideo/norsk-studio": "1.27.0-2025-08-
|
|
28
|
-
"@norskvideo/norsk-studio-built-ins": "1.27.0-2025-08-
|
|
26
|
+
"@norskvideo/norsk-sdk": "^1.0.402-2025-08-28-542f5a98",
|
|
27
|
+
"@norskvideo/norsk-studio": "1.27.0-2025-08-28-08ac17e0",
|
|
28
|
+
"@norskvideo/norsk-studio-built-ins": "1.27.0-2025-08-28-08ac17e0",
|
|
29
29
|
"json-refs": "^3.0.15",
|
|
30
30
|
"JSX": "^1.1.0",
|
|
31
31
|
"node-fetch": "^2.7.0",
|