@journeyapps/cloudcode
Advanced tools
Comparing version 0.0.1-dev5 to 0.0.1-dev6
@@ -345,2 +345,3 @@ 'use strict'; | ||
(async function () { | ||
let exitCode = 0; | ||
for (let event of events) { | ||
@@ -352,9 +353,14 @@ try { | ||
// Already logged | ||
process.exit(1); | ||
exitCode = 1; | ||
break; | ||
} | ||
} | ||
logs_1.flush(); | ||
// Ignore outstanding events and exit (CLI only!). | ||
process.exit(0); | ||
})().then(console.log, console.error); | ||
// We give some time for flush() to take effect. | ||
setTimeout(() => { | ||
process.exit(exitCode); | ||
}, 500); | ||
})(); | ||
}; | ||
//# sourceMappingURL=entry.js.map |
@@ -230,5 +230,5 @@ 'use strict'; | ||
else { | ||
// for (let log of logs) { | ||
// console.log(log); | ||
// } | ||
for (let log of logs) { | ||
console.error(log); // send to stderr | ||
} | ||
} | ||
@@ -235,0 +235,0 @@ }) |
@@ -11,6 +11,6 @@ /// <reference types="node" /> | ||
readonly source: string; | ||
constructor(context: TaskContext); | ||
readonly userId: string; | ||
readonly backend: import("./TaskContextBackend").TaskContextBackend; | ||
readonly DB: import("journeyapps/lib/db/database").Database; | ||
constructor(context: TaskContext); | ||
toJSON(): { | ||
@@ -17,0 +17,0 @@ appId: string; |
@@ -8,2 +8,7 @@ "use strict"; | ||
this.context = context; | ||
this.appId = context.appId; | ||
this.env = context.env; | ||
this.name = context.name; | ||
this.traceId = context.traceId; | ||
this.source = context.source; | ||
} | ||
@@ -10,0 +15,0 @@ get userId() { |
{ | ||
"name": "@journeyapps/cloudcode", | ||
"version": "0.0.1-dev5", | ||
"version": "0.0.1-dev6", | ||
"main": "./lib/index.js", | ||
@@ -8,3 +8,4 @@ "types": "./lib/index.d.ts", | ||
"scripts": { | ||
"build": "tsc --build" | ||
"build": "tsc --build", | ||
"test": "echo TODO" | ||
}, | ||
@@ -11,0 +12,0 @@ "dependencies": { |
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
148634
2619