@nodescript/core
Advanced tools
Comparing version 7.9.0 to 7.10.0
@@ -66,2 +66,3 @@ import { convertAuto, isSchemaCompatible } from '../util/index.js'; | ||
this.code.block('try {', '}', () => { | ||
this.code.line(`const $startedAt = Date.now();`); | ||
this.code.line(`ctx.nodeUid = ${JSON.stringify(nodeUid)}`); | ||
@@ -81,3 +82,3 @@ if (!node.supportsSubgraph()) { | ||
`result: ${resSym},` + | ||
`timestamp: Date.now(),` + | ||
`duration: Date.now() - $startedAt,` + | ||
`});`); | ||
@@ -91,3 +92,3 @@ } | ||
`error,` + | ||
`timestamp: Date.now(),` + | ||
`duration: Date.now() - $startedAt,` + | ||
`});`); | ||
@@ -94,0 +95,0 @@ this.code.line('throw error;'); |
@@ -34,3 +34,3 @@ import { Event } from 'nanoevent'; | ||
progress?: number; | ||
timestamp?: number; | ||
duration?: number; | ||
} | ||
@@ -37,0 +37,0 @@ export interface ScopeData { |
{ | ||
"name": "@nodescript/core", | ||
"version": "7.9.0", | ||
"version": "7.10.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Visual programming language for Browser and Node", |
Sorry, the diff of this file is not supported yet
197985
3474