rds-database-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 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.42 (build fa17ba8)",
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.8",
8962
- "fingerprint": "/Ih2S+um//Une1VXu9iI2G3BYcylkwcTNRTg9KaUMZ8="
8961
+ "version": "0.1.9",
8962
+ "fingerprint": "rkfLdVpJqH4dlEPFrJDlFLYlYgOfnpUIDzKLW4If3vE="
8963
8963
  }
@@ -20079,13 +20079,7 @@ var import_node_console = require("node:console");
20079
20079
  var import_node_util = __toESM(require("node:util"), 1);
20080
20080
  var import_node_url = require("node:url");
20081
20081
  var import_node_path = require("node:path");
20082
- var import_node_url2 = __toESM(require("node:url"), 1);
20083
- var import_node_path2 = __toESM(require("node:path"), 1);
20084
- var import_node_module = __toESM(require("node:module"), 1);
20085
20082
  var import_meta = {};
20086
- var __filename = import_node_url2.default.fileURLToPath(import_meta.url);
20087
- var __dirname = import_node_path2.default.dirname(__filename);
20088
- var require2 = import_node_module.default.createRequire(import_meta.url);
20089
20083
  var DurableExecutionMode;
20090
20084
  (function(DurableExecutionMode2) {
20091
20085
  DurableExecutionMode2["ExecutionMode"] = "ExecutionMode";
@@ -23256,34 +23250,25 @@ var createDefaultLogger = (executionContext) => {
23256
23250
  return new DefaultLogger(executionContext);
23257
23251
  };
23258
23252
  var runtimeDir = process.env.LAMBDA_RUNTIME_DIR || "/var/runtime";
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
23259
  function isInLambdaRuntime() {
23260
23260
  try {
23261
- if (typeof process !== "undefined" && process.env && false) ;
23262
- let currentFilePath;
23263
- if (typeof __filename !== "undefined") {
23264
- currentFilePath = __filename;
23265
- } else {
23266
- try {
23267
- const getImportMeta = new Function("return import.meta");
23268
- const importMeta = getImportMeta();
23269
- if (importMeta && importMeta.url) {
23270
- currentFilePath = (0, import_node_url.fileURLToPath)(importMeta.url);
23271
- }
23272
- } catch {
23273
- }
23274
- }
23275
- if (currentFilePath) {
23276
- const libraryDirectory = (0, import_node_path.dirname)(currentFilePath);
23277
- return libraryDirectory.startsWith(runtimeDir);
23261
+ if (!moduleFilePath) {
23262
+ return false;
23278
23263
  }
23279
- return false;
23264
+ return (0, import_node_path.dirname)(moduleFilePath).startsWith(runtimeDir);
23280
23265
  } catch {
23281
23266
  return false;
23282
23267
  }
23283
23268
  }
23284
23269
  var isRuntimeBundled = isInLambdaRuntime();
23285
23270
  var SDK_NAME = "aws-durable-execution-sdk-js";
23286
- var baseVersion = "1.1.4";
23271
+ var baseVersion = "1.1.7";
23287
23272
  var SDK_VERSION = isRuntimeBundled ? `${baseVersion}-bundled` : baseVersion;
23288
23273
  var defaultLambdaClient;
23289
23274
  var DurableExecutionApiClient = class {