@awsless/awsless 0.0.445 → 0.0.446
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/README.MD +350 -189
- package/dist/app.json +1 -1
- package/dist/bin.js +4112 -12800
- package/dist/build-json-schema.js +370 -532
- package/dist/client.js +0 -1
- package/dist/prebuild/rpc/HASH +1 -1
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/dist/prebuild.js +4 -1
- package/dist/server.js +9 -10
- package/dist/stack.json +1 -1
- package/package.json +15 -15
- package/dist/bin.d.ts +0 -1
- package/dist/chunk-JSBRDJBE.js +0 -30
- package/dist/client.d.ts +0 -75
- package/dist/server.d.ts +0 -169
package/dist/client.js
CHANGED
package/dist/prebuild/rpc/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
10e2b69d2315f12a13babfd6ae9dd7aaf76b3b24
|
|
Binary file
|
package/dist/prebuild.js
CHANGED
|
@@ -4,7 +4,10 @@ import { dirname as dirname2, join as join2 } from "path";
|
|
|
4
4
|
import { fileURLToPath } from "url";
|
|
5
5
|
|
|
6
6
|
// src/feature/function/prebuild.ts
|
|
7
|
-
import {
|
|
7
|
+
import { days, seconds, toDays, toSeconds } from "@awsless/duration";
|
|
8
|
+
import { $, Future, resolveInputs } from "@awsless/formation";
|
|
9
|
+
import { mebibytes, toMebibytes } from "@awsless/size";
|
|
10
|
+
import { pascalCase } from "change-case";
|
|
8
11
|
import { writeFile } from "fs/promises";
|
|
9
12
|
import { join } from "path";
|
|
10
13
|
|
package/dist/server.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createProxy
|
|
3
|
-
} from "./chunk-2LRBH7VV.js";
|
|
4
1
|
import {
|
|
5
2
|
CommandOptions
|
|
6
3
|
} from "./chunk-QL4FTNZ7.js";
|
|
7
|
-
import
|
|
4
|
+
import {
|
|
5
|
+
createProxy
|
|
6
|
+
} from "./chunk-2LRBH7VV.js";
|
|
8
7
|
|
|
9
8
|
// src/lib/mock/alert.ts
|
|
10
9
|
import { mockSNS } from "@awsless/sns";
|
|
@@ -14,7 +13,7 @@ import { stringify } from "@awsless/json";
|
|
|
14
13
|
import { publish } from "@awsless/sns";
|
|
15
14
|
|
|
16
15
|
// src/lib/server/util.ts
|
|
17
|
-
import {
|
|
16
|
+
import { kebabCase } from "change-case";
|
|
18
17
|
var APP = process.env.APP ?? "app";
|
|
19
18
|
var STACK = process.env.STACK ?? "stack";
|
|
20
19
|
var build = (opt) => {
|
|
@@ -26,7 +25,7 @@ var build = (opt) => {
|
|
|
26
25
|
opt.resourceType,
|
|
27
26
|
opt.resourceName,
|
|
28
27
|
opt?.postfix
|
|
29
|
-
].filter((v) => typeof v === "string").map((v) =>
|
|
28
|
+
].filter((v) => typeof v === "string").map((v) => kebabCase(v)).join(opt.seperator ?? "--");
|
|
30
29
|
};
|
|
31
30
|
var bindPostfixedLocalResourceName = (resourceType, postfix) => {
|
|
32
31
|
return (resourceName, stackName = STACK) => {
|
|
@@ -351,7 +350,7 @@ var Cache = /* @__PURE__ */ createProxy((stack) => {
|
|
|
351
350
|
|
|
352
351
|
// src/lib/server/config.ts
|
|
353
352
|
import { ssm } from "@awsless/ssm";
|
|
354
|
-
import {
|
|
353
|
+
import { kebabCase as kebabCase2 } from "change-case";
|
|
355
354
|
var getConfigName = (name) => {
|
|
356
355
|
return `/.awsless/${APP}/${name}`;
|
|
357
356
|
};
|
|
@@ -367,7 +366,7 @@ var loadConfigData = /* @__NO_SIDE_EFFECTS__ */ async () => {
|
|
|
367
366
|
if (keys.length > 0) {
|
|
368
367
|
const paths = {};
|
|
369
368
|
for (const key of keys) {
|
|
370
|
-
paths[
|
|
369
|
+
paths[kebabCase2(key)] = getConfigName(key);
|
|
371
370
|
}
|
|
372
371
|
return ssm(paths);
|
|
373
372
|
}
|
|
@@ -376,7 +375,7 @@ var loadConfigData = /* @__NO_SIDE_EFFECTS__ */ async () => {
|
|
|
376
375
|
};
|
|
377
376
|
var data = await /* @__PURE__ */ loadConfigData();
|
|
378
377
|
var getConfigValue = (name) => {
|
|
379
|
-
const key =
|
|
378
|
+
const key = kebabCase2(name);
|
|
380
379
|
const value = data[key];
|
|
381
380
|
if (typeof value === "undefined") {
|
|
382
381
|
throw new Error(
|
|
@@ -386,7 +385,7 @@ var getConfigValue = (name) => {
|
|
|
386
385
|
return value;
|
|
387
386
|
};
|
|
388
387
|
var setConfigValue = (name, value) => {
|
|
389
|
-
const key =
|
|
388
|
+
const key = kebabCase2(name);
|
|
390
389
|
data[key] = value;
|
|
391
390
|
};
|
|
392
391
|
var Config = /* @__PURE__ */ new Proxy(
|