ec2-instance-running-scheduler 0.1.8 → 0.1.9
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/.jsii +3 -3
- package/assets/funcs/running-scheduler.lambda/index.js +10 -25
- package/assets/funcs/running-scheduler.lambda/index.js.map +2 -2
- package/lib/constructs/ec2-instance-running-scheduler.js +1 -1
- package/lib/stacks/ec2-instance-running-schedule-stack.js +1 -1
- package/package.json +2 -2
package/.jsii
CHANGED
|
@@ -8440,7 +8440,7 @@
|
|
|
8440
8440
|
"stability": "stable"
|
|
8441
8441
|
},
|
|
8442
8442
|
"homepage": "https://github.com/gammarers-aws-cdk-constructs/ec2-instance-running-scheduler.git",
|
|
8443
|
-
"jsiiVersion": "5.9.
|
|
8443
|
+
"jsiiVersion": "5.9.44 (build 150b837)",
|
|
8444
8444
|
"keywords": [
|
|
8445
8445
|
"cdk"
|
|
8446
8446
|
],
|
|
@@ -8961,6 +8961,6 @@
|
|
|
8961
8961
|
"symbolId": "src/constructs/ec2-instance-running-scheduler:TargetResource"
|
|
8962
8962
|
}
|
|
8963
8963
|
},
|
|
8964
|
-
"version": "0.1.
|
|
8965
|
-
"fingerprint": "
|
|
8964
|
+
"version": "0.1.9",
|
|
8965
|
+
"fingerprint": "NhbEVB4Eupkewuj9QQwAkG4aAo23KlDXBbUhUbHDvFg="
|
|
8966
8966
|
}
|
|
@@ -20167,13 +20167,7 @@ var import_node_console = require("node:console");
|
|
|
20167
20167
|
var import_node_util = __toESM(require("node:util"), 1);
|
|
20168
20168
|
var import_node_url = require("node:url");
|
|
20169
20169
|
var import_node_path = require("node:path");
|
|
20170
|
-
var import_node_url2 = __toESM(require("node:url"), 1);
|
|
20171
|
-
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
20172
|
-
var import_node_module = __toESM(require("node:module"), 1);
|
|
20173
20170
|
var import_meta = {};
|
|
20174
|
-
var __filename = import_node_url2.default.fileURLToPath(import_meta.url);
|
|
20175
|
-
var __dirname = import_node_path2.default.dirname(__filename);
|
|
20176
|
-
var require2 = import_node_module.default.createRequire(import_meta.url);
|
|
20177
20171
|
var DurableExecutionMode;
|
|
20178
20172
|
(function(DurableExecutionMode2) {
|
|
20179
20173
|
DurableExecutionMode2["ExecutionMode"] = "ExecutionMode";
|
|
@@ -23344,34 +23338,25 @@ var createDefaultLogger = (executionContext) => {
|
|
|
23344
23338
|
return new DefaultLogger(executionContext);
|
|
23345
23339
|
};
|
|
23346
23340
|
var runtimeDir = process.env.LAMBDA_RUNTIME_DIR || "/var/runtime";
|
|
23341
|
+
var moduleFilePath;
|
|
23342
|
+
if (typeof __filename !== "undefined") {
|
|
23343
|
+
moduleFilePath = __filename;
|
|
23344
|
+
} else if (typeof import_meta?.url === "string") {
|
|
23345
|
+
moduleFilePath = (0, import_node_url.fileURLToPath)(import_meta.url);
|
|
23346
|
+
}
|
|
23347
23347
|
function isInLambdaRuntime() {
|
|
23348
23348
|
try {
|
|
23349
|
-
if (
|
|
23350
|
-
|
|
23351
|
-
if (typeof __filename !== "undefined") {
|
|
23352
|
-
currentFilePath = __filename;
|
|
23353
|
-
} else {
|
|
23354
|
-
try {
|
|
23355
|
-
const getImportMeta = new Function("return import.meta");
|
|
23356
|
-
const importMeta = getImportMeta();
|
|
23357
|
-
if (importMeta && importMeta.url) {
|
|
23358
|
-
currentFilePath = (0, import_node_url.fileURLToPath)(importMeta.url);
|
|
23359
|
-
}
|
|
23360
|
-
} catch {
|
|
23361
|
-
}
|
|
23362
|
-
}
|
|
23363
|
-
if (currentFilePath) {
|
|
23364
|
-
const libraryDirectory = (0, import_node_path.dirname)(currentFilePath);
|
|
23365
|
-
return libraryDirectory.startsWith(runtimeDir);
|
|
23349
|
+
if (!moduleFilePath) {
|
|
23350
|
+
return false;
|
|
23366
23351
|
}
|
|
23367
|
-
return
|
|
23352
|
+
return (0, import_node_path.dirname)(moduleFilePath).startsWith(runtimeDir);
|
|
23368
23353
|
} catch {
|
|
23369
23354
|
return false;
|
|
23370
23355
|
}
|
|
23371
23356
|
}
|
|
23372
23357
|
var isRuntimeBundled = isInLambdaRuntime();
|
|
23373
23358
|
var SDK_NAME = "aws-durable-execution-sdk-js";
|
|
23374
|
-
var baseVersion = "1.1.
|
|
23359
|
+
var baseVersion = "1.1.7";
|
|
23375
23360
|
var SDK_VERSION = isRuntimeBundled ? `${baseVersion}-bundled` : baseVersion;
|
|
23376
23361
|
var defaultLambdaClient;
|
|
23377
23362
|
var DurableExecutionApiClient = class {
|