Comparing version 1.1.54 to 1.1.56
@@ -27,3 +27,3 @@ "use strict"; | ||
for (const path of config.keyProperties) { | ||
const part = object_compiler_1.ObjectCompiler.objectPath(context, path); | ||
const part = path.startsWith('$$') ? path.substring(2) : object_compiler_1.ObjectCompiler.objectPath(context, path); | ||
data += JSON.stringify(part); | ||
@@ -30,0 +30,0 @@ } |
@@ -36,2 +36,3 @@ "use strict"; | ||
context.calls[task.name].finished = new Date(); | ||
env.profiler.profile(task.name, task.doer, false, true, context.calls[task.name].start, context.calls[task.name].end, context.uid); | ||
return; | ||
@@ -48,5 +49,9 @@ } | ||
} | ||
context.calls[task.name].finished = new Date(); | ||
env.profiler.profile(task.name, task.doer, false, false, context.calls[task.name].start, context.calls[task.name].end, context.uid); | ||
} | ||
catch (err) { | ||
context.errors[task.name] = this.serialiseError(err); | ||
context.calls[task.name].finished = new Date(); | ||
context.env.profiler.profile(task.name, task.doer, true, false, context.calls[task.name].start, context.calls[task.name].end, context.uid); | ||
if (task.throwError) { | ||
@@ -56,5 +61,2 @@ throw err; | ||
} | ||
finally { | ||
context.calls[task.name].finished = new Date(); | ||
} | ||
}); | ||
@@ -61,0 +63,0 @@ } |
@@ -7,2 +7,3 @@ import { Connector } from './connectors/connector'; | ||
import { Renderer } from './renderers/renderer'; | ||
import { Profiler } from './profiler'; | ||
/** | ||
@@ -61,2 +62,3 @@ * The Environment class is the core of a `low` system. | ||
private renderers; | ||
profiler: Profiler; | ||
/** | ||
@@ -63,0 +65,0 @@ * Create a new `Environment` instance |
@@ -35,2 +35,3 @@ "use strict"; | ||
const flush_cache_doer_1 = require("./doers/flush-cache-doer"); | ||
const profiler_1 = require("./profiler"); | ||
/** | ||
@@ -112,2 +113,3 @@ * The Environment class is the core of a `low` system. | ||
}; | ||
this.profiler = new profiler_1.Profiler(); | ||
if (modules.connectors) { | ||
@@ -114,0 +116,0 @@ for (const mod of modules.connectors) { |
{ | ||
"name": "low", | ||
"version": "1.1.54", | ||
"version": "1.1.56", | ||
"description": "a templating driven low-code framework for rapid systems development", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "cbeb462638b8c17fdbc3a945346a466c6b341123", | ||
"gitHead": "53fd0ff55771ebab98e7721098383532a06d235b", | ||
"devDependencies": { | ||
@@ -28,0 +28,0 @@ "@types/jest": "^24.9.0", |
@@ -16,3 +16,3 @@ import { createHash } from 'crypto'; | ||
for (const path of config.keyProperties) { | ||
const part = ObjectCompiler.objectPath(context, path); | ||
const part = path.startsWith('$$') ? path.substring(2) : ObjectCompiler.objectPath(context, path); | ||
data += JSON.stringify(part); | ||
@@ -19,0 +19,0 @@ } |
@@ -36,2 +36,3 @@ import { Module } from '../module'; | ||
context.calls[task.name].finished = new Date(); | ||
env.profiler.profile(task.name, task.doer, false, true, context.calls[task.name].start, context.calls[task.name].end, context.uid); | ||
return; | ||
@@ -50,9 +51,12 @@ } | ||
} | ||
context.calls[task.name].finished = new Date(); | ||
env.profiler.profile(task.name, task.doer, false, false, context.calls[task.name].start, context.calls[task.name].end, context.uid); | ||
} catch(err) { | ||
context.errors[task.name] = this.serialiseError(err); | ||
context.calls[task.name].finished = new Date(); | ||
context.env.profiler.profile(task.name, task.doer, true, false, context.calls[task.name].start, context.calls[task.name].end, context.uid); | ||
if (task.throwError) { | ||
throw err; | ||
} | ||
} finally { | ||
context.calls[task.name].finished = new Date(); | ||
} | ||
@@ -59,0 +63,0 @@ } |
@@ -20,2 +20,4 @@ import * as Crypto from 'crypto'; | ||
import { Profiler } from './profiler'; | ||
/** | ||
@@ -104,2 +106,4 @@ * The Environment class is the core of a `low` system. | ||
profiler = new Profiler(); | ||
/** | ||
@@ -106,0 +110,0 @@ * Create a new `Environment` instance |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
499800
115
4619