lambda-live-debugger
Version:
Debug Lambda functions locally like it is running in the cloud
55 lines (54 loc) • 2.07 kB
JavaScript
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
const m = "ref";
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
const _data = {
conditions: [
[]],
[],
["aws.partition", l, d],
[]: "UseFIPS" }, b]],
[] }, b]],
[]: "UseDualStack" }, b]],
[] }, b]],
[]],
[]],
[]]
],
results: [
[],
[],
[],
[],
["https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
[],
["https://iot-fips.{Region}.{PartitionResult#dnsSuffix}", k],
[],
["https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
[],
["https://iot.{Region}.amazonaws.com", k],
["https://iot.{Region}.amazonaws.com.cn", k],
["https://iot.{Region}.{PartitionResult#dnsSuffix}", k],
[]
]
};
const root = 2;
const r = 100_000_000;
const nodes = new Int32Array([
-1, 1, -1,
0, 15, 3,
1, 4, r + 13,
2, 5, r + 13,
3, 11, 6,
5, 10, 7,
7, r + 10, 8,
8, r + 11, 9,
9, r + 10, r + 12,
6, r + 8, r + 9,
4, 13, 12,
5, r + 5, r + 7,
5, 14, r + 6,
6, r + 4, r + 5,
3, r + 1, 16,
5, r + 2, r + 3,
]);
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);