ec2-instance-running-scheduler 0.1.7 → 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 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.41 (build 8930737)",
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.7",
8965
- "fingerprint": "uM+sRKumcsWFHg+VazhVapuhegdBAMep7CTIQA3/7jM="
8964
+ "version": "0.1.9",
8965
+ "fingerprint": "NhbEVB4Eupkewuj9QQwAkG4aAo23KlDXBbUhUbHDvFg="
8966
8966
  }
@@ -20165,13 +20165,9 @@ 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 = __toESM(require("node:url"), 1);
20169
- var import_node_path = __toESM(require("node:path"), 1);
20170
- var import_node_module = __toESM(require("node:module"), 1);
20168
+ var import_node_url = require("node:url");
20169
+ var import_node_path = require("node:path");
20171
20170
  var import_meta = {};
20172
- var __filename = import_node_url.default.fileURLToPath(import_meta.url);
20173
- var __dirname = import_node_path.default.dirname(__filename);
20174
- var require2 = import_node_module.default.createRequire(import_meta.url);
20175
20171
  var DurableExecutionMode;
20176
20172
  (function(DurableExecutionMode2) {
20177
20173
  DurableExecutionMode2["ExecutionMode"] = "ExecutionMode";
@@ -23342,9 +23338,25 @@ var createDefaultLogger = (executionContext) => {
23342
23338
  return new DefaultLogger(executionContext);
23343
23339
  };
23344
23340
  var runtimeDir = process.env.LAMBDA_RUNTIME_DIR || "/var/runtime";
23345
- var isRuntimeBundled = typeof __dirname !== "undefined" && __dirname.startsWith(runtimeDir);
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
+ function isInLambdaRuntime() {
23348
+ try {
23349
+ if (!moduleFilePath) {
23350
+ return false;
23351
+ }
23352
+ return (0, import_node_path.dirname)(moduleFilePath).startsWith(runtimeDir);
23353
+ } catch {
23354
+ return false;
23355
+ }
23356
+ }
23357
+ var isRuntimeBundled = isInLambdaRuntime();
23346
23358
  var SDK_NAME = "aws-durable-execution-sdk-js";
23347
- var baseVersion = "1.1.3";
23359
+ var baseVersion = "1.1.7";
23348
23360
  var SDK_VERSION = isRuntimeBundled ? `${baseVersion}-bundled` : baseVersion;
23349
23361
  var defaultLambdaClient;
23350
23362
  var DurableExecutionApiClient = class {