@journeyapps/cloudcode
Advanced tools
Comparing version 1.9.1-dev.13c6651.4b08857 to 1.9.1-dev.603d5ba.b57d39e
@@ -10,2 +10,3 @@ "use strict"; | ||
const httpsLib = require("https"); | ||
const indexModule = require("./index"); | ||
let cloudcode = null; | ||
@@ -16,2 +17,3 @@ let currentTaskContext = null; | ||
cloudcode = new CloudCodeEnvironment_1.CloudCodeEnvironment({ appId, env, name }); | ||
indexModule.setCloudCode(cloudcode); | ||
global.CloudCode = cloudcode; | ||
@@ -18,0 +20,0 @@ global.Day = Day_1.Day; |
import './global'; | ||
import { CloudCodeEnvironment } from './CloudCodeEnvironment'; | ||
export { TaskContext } from './TaskContext'; | ||
declare let CloudCode: CloudCodeEnvironment; | ||
/** | ||
* @internal | ||
*/ | ||
export declare function setCloudCode(cloudcode: CloudCodeEnvironment): void; | ||
export { CloudCode }; |
@@ -6,2 +6,11 @@ "use strict"; | ||
exports.TaskContext = TaskContext_1.TaskContext; | ||
let CloudCode = null; | ||
exports.CloudCode = CloudCode; | ||
/** | ||
* @internal | ||
*/ | ||
function setCloudCode(cloudcode) { | ||
exports.CloudCode = CloudCode = cloudcode; | ||
} | ||
exports.setCloudCode = setCloudCode; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@journeyapps/cloudcode", | ||
"version": "1.9.1-dev.13c6651.4b08857", | ||
"version": "1.9.1-dev.603d5ba.b57d39e", | ||
"main": "./lib/index.js", | ||
@@ -30,3 +30,3 @@ "types": "./lib/index.d.ts", | ||
], | ||
"gitHead": "8dc88eee5dcbdf03b85e129d11eecaaa0cdec75e" | ||
"gitHead": "a948e3ff5004efac458814b3aaac5e50bfad8e83" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
150187
2649