ec2-instance-running-scheduler 0.1.7 → 0.1.8
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 +33 -6
- package/assets/funcs/running-scheduler.lambda/index.js.map +1 -1
- package/lib/constructs/ec2-instance-running-scheduler.js +1 -1
- package/lib/stacks/ec2-instance-running-schedule-stack.js +1 -1
- package/package.json +5 -5
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.42 (build fa17ba8)",
|
|
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.8",
|
|
8965
|
+
"fingerprint": "BV+zlyA29iEolVvx9nLVbZbwYMGS8jJQVPwNgPTPG7E="
|
|
8966
8966
|
}
|
|
@@ -20165,12 +20165,14 @@ var import_async_hooks = require("async_hooks");
|
|
|
20165
20165
|
var import_crypto = require("crypto");
|
|
20166
20166
|
var import_node_console = require("node:console");
|
|
20167
20167
|
var import_node_util = __toESM(require("node:util"), 1);
|
|
20168
|
-
var import_node_url =
|
|
20169
|
-
var import_node_path =
|
|
20168
|
+
var import_node_url = require("node:url");
|
|
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);
|
|
20170
20172
|
var import_node_module = __toESM(require("node:module"), 1);
|
|
20171
20173
|
var import_meta = {};
|
|
20172
|
-
var __filename =
|
|
20173
|
-
var __dirname =
|
|
20174
|
+
var __filename = import_node_url2.default.fileURLToPath(import_meta.url);
|
|
20175
|
+
var __dirname = import_node_path2.default.dirname(__filename);
|
|
20174
20176
|
var require2 = import_node_module.default.createRequire(import_meta.url);
|
|
20175
20177
|
var DurableExecutionMode;
|
|
20176
20178
|
(function(DurableExecutionMode2) {
|
|
@@ -23342,9 +23344,34 @@ var createDefaultLogger = (executionContext) => {
|
|
|
23342
23344
|
return new DefaultLogger(executionContext);
|
|
23343
23345
|
};
|
|
23344
23346
|
var runtimeDir = process.env.LAMBDA_RUNTIME_DIR || "/var/runtime";
|
|
23345
|
-
|
|
23347
|
+
function isInLambdaRuntime() {
|
|
23348
|
+
try {
|
|
23349
|
+
if (typeof process !== "undefined" && process.env && false) ;
|
|
23350
|
+
let currentFilePath;
|
|
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);
|
|
23366
|
+
}
|
|
23367
|
+
return false;
|
|
23368
|
+
} catch {
|
|
23369
|
+
return false;
|
|
23370
|
+
}
|
|
23371
|
+
}
|
|
23372
|
+
var isRuntimeBundled = isInLambdaRuntime();
|
|
23346
23373
|
var SDK_NAME = "aws-durable-execution-sdk-js";
|
|
23347
|
-
var baseVersion = "1.1.
|
|
23374
|
+
var baseVersion = "1.1.4";
|
|
23348
23375
|
var SDK_VERSION = isRuntimeBundled ? `${baseVersion}-bundled` : baseVersion;
|
|
23349
23376
|
var defaultLambdaClient;
|
|
23350
23377
|
var DurableExecutionApiClient = class {
|