rds-database-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/rds-database-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
  ],
@@ -8958,6 +8958,6 @@
8958
8958
  "symbolId": "src/constructs/rds-database-running-scheduler:TargetResource"
8959
8959
  }
8960
8960
  },
8961
- "version": "0.1.7",
8962
- "fingerprint": "O12cVOFjWTmRaLhzXP7rRQJc3GJTWnAjAnchZMFjsBw="
8961
+ "version": "0.1.9",
8962
+ "fingerprint": "rkfLdVpJqH4dlEPFrJDlFLYlYgOfnpUIDzKLW4If3vE="
8963
8963
  }
@@ -20077,13 +20077,9 @@ var import_async_hooks = require("async_hooks");
20077
20077
  var import_crypto = require("crypto");
20078
20078
  var import_node_console = require("node:console");
20079
20079
  var import_node_util = __toESM(require("node:util"), 1);
20080
- var import_node_url = __toESM(require("node:url"), 1);
20081
- var import_node_path = __toESM(require("node:path"), 1);
20082
- var import_node_module = __toESM(require("node:module"), 1);
20080
+ var import_node_url = require("node:url");
20081
+ var import_node_path = require("node:path");
20083
20082
  var import_meta = {};
20084
- var __filename = import_node_url.default.fileURLToPath(import_meta.url);
20085
- var __dirname = import_node_path.default.dirname(__filename);
20086
- var require2 = import_node_module.default.createRequire(import_meta.url);
20087
20083
  var DurableExecutionMode;
20088
20084
  (function(DurableExecutionMode2) {
20089
20085
  DurableExecutionMode2["ExecutionMode"] = "ExecutionMode";
@@ -23254,9 +23250,25 @@ var createDefaultLogger = (executionContext) => {
23254
23250
  return new DefaultLogger(executionContext);
23255
23251
  };
23256
23252
  var runtimeDir = process.env.LAMBDA_RUNTIME_DIR || "/var/runtime";
23257
- var isRuntimeBundled = typeof __dirname !== "undefined" && __dirname.startsWith(runtimeDir);
23253
+ var moduleFilePath;
23254
+ if (typeof __filename !== "undefined") {
23255
+ moduleFilePath = __filename;
23256
+ } else if (typeof import_meta?.url === "string") {
23257
+ moduleFilePath = (0, import_node_url.fileURLToPath)(import_meta.url);
23258
+ }
23259
+ function isInLambdaRuntime() {
23260
+ try {
23261
+ if (!moduleFilePath) {
23262
+ return false;
23263
+ }
23264
+ return (0, import_node_path.dirname)(moduleFilePath).startsWith(runtimeDir);
23265
+ } catch {
23266
+ return false;
23267
+ }
23268
+ }
23269
+ var isRuntimeBundled = isInLambdaRuntime();
23258
23270
  var SDK_NAME = "aws-durable-execution-sdk-js";
23259
- var baseVersion = "1.1.3";
23271
+ var baseVersion = "1.1.7";
23260
23272
  var SDK_VERSION = isRuntimeBundled ? `${baseVersion}-bundled` : baseVersion;
23261
23273
  var defaultLambdaClient;
23262
23274
  var DurableExecutionApiClient = class {