rds-database-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
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.
|
|
8443
|
+
"jsiiVersion": "5.9.42 (build fa17ba8)",
|
|
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.
|
|
8962
|
-
"fingerprint": "
|
|
8961
|
+
"version": "0.1.8",
|
|
8962
|
+
"fingerprint": "/Ih2S+um//Une1VXu9iI2G3BYcylkwcTNRTg9KaUMZ8="
|
|
8963
8963
|
}
|
|
@@ -20077,12 +20077,14 @@ 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 =
|
|
20081
|
-
var import_node_path =
|
|
20080
|
+
var import_node_url = require("node:url");
|
|
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);
|
|
20082
20084
|
var import_node_module = __toESM(require("node:module"), 1);
|
|
20083
20085
|
var import_meta = {};
|
|
20084
|
-
var __filename =
|
|
20085
|
-
var __dirname =
|
|
20086
|
+
var __filename = import_node_url2.default.fileURLToPath(import_meta.url);
|
|
20087
|
+
var __dirname = import_node_path2.default.dirname(__filename);
|
|
20086
20088
|
var require2 = import_node_module.default.createRequire(import_meta.url);
|
|
20087
20089
|
var DurableExecutionMode;
|
|
20088
20090
|
(function(DurableExecutionMode2) {
|
|
@@ -23254,9 +23256,34 @@ var createDefaultLogger = (executionContext) => {
|
|
|
23254
23256
|
return new DefaultLogger(executionContext);
|
|
23255
23257
|
};
|
|
23256
23258
|
var runtimeDir = process.env.LAMBDA_RUNTIME_DIR || "/var/runtime";
|
|
23257
|
-
|
|
23259
|
+
function isInLambdaRuntime() {
|
|
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);
|
|
23278
|
+
}
|
|
23279
|
+
return false;
|
|
23280
|
+
} catch {
|
|
23281
|
+
return false;
|
|
23282
|
+
}
|
|
23283
|
+
}
|
|
23284
|
+
var isRuntimeBundled = isInLambdaRuntime();
|
|
23258
23285
|
var SDK_NAME = "aws-durable-execution-sdk-js";
|
|
23259
|
-
var baseVersion = "1.1.
|
|
23286
|
+
var baseVersion = "1.1.4";
|
|
23260
23287
|
var SDK_VERSION = isRuntimeBundled ? `${baseVersion}-bundled` : baseVersion;
|
|
23261
23288
|
var defaultLambdaClient;
|
|
23262
23289
|
var DurableExecutionApiClient = class {
|