@awsless/awsless 0.0.27 → 0.0.28

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  - onFailure for lambda, sqs, dynamodb streams
5
5
  - add cache plugin & think about VPC lambda solutions
6
6
  - add fargate container stuff for long lived services
7
-
7
+ - add check for existing graphql resolver field in schema
8
8
 
9
9
  ---
10
10
  ---
package/dist/bin.cjs CHANGED
@@ -4530,7 +4530,7 @@ var Renderer = class {
4530
4530
  flushing = false;
4531
4531
  screen = [];
4532
4532
  width() {
4533
- return this.output.columns - 1;
4533
+ return this.output.columns - 3;
4534
4534
  }
4535
4535
  height() {
4536
4536
  return this.output.rows;
package/dist/bin.js CHANGED
@@ -4507,7 +4507,7 @@ var Renderer = class {
4507
4507
  flushing = false;
4508
4508
  screen = [];
4509
4509
  width() {
4510
- return this.output.columns - 1;
4510
+ return this.output.columns - 3;
4511
4511
  }
4512
4512
  height() {
4513
4513
  return this.output.rows;
package/dist/index.cjs CHANGED
@@ -23,10 +23,13 @@ __export(src_exports, {
23
23
  defineAppConfig: () => defineAppConfig,
24
24
  definePlugin: () => definePlugin,
25
25
  defineStackConfig: () => defineStackConfig,
26
+ getCacheProps: () => getCacheProps,
26
27
  getFunctionName: () => getFunctionName,
27
28
  getGlobalResourceName: () => getGlobalResourceName,
28
29
  getLocalResourceName: () => getLocalResourceName,
29
30
  getQueueName: () => getQueueName,
31
+ getSearchName: () => getSearchName,
32
+ getSecretName: () => getSecretName,
30
33
  getStoreName: () => getStoreName,
31
34
  getTableName: () => getTableName,
32
35
  getTopicName: () => getTopicName
@@ -46,10 +49,21 @@ var getGlobalResourceName = (id) => {
46
49
  return `${APP}-${id}`;
47
50
  };
48
51
  var getFunctionName = getLocalResourceName;
52
+ var getSearchName = getLocalResourceName;
49
53
  var getTableName = getLocalResourceName;
50
54
  var getStoreName = getLocalResourceName;
51
55
  var getQueueName = getLocalResourceName;
52
56
  var getTopicName = getGlobalResourceName;
57
+ var getSecretName = (name) => {
58
+ return `/.awsless/${APP}/${name}`;
59
+ };
60
+ var getCacheProps = (name, stack = STACK) => {
61
+ const prefix = `CACHE_${stack}_${name}`;
62
+ return {
63
+ host: process.env[`${prefix}_HOST`],
64
+ port: parseInt(process.env[`${prefix}_PORT`], 10)
65
+ };
66
+ };
53
67
 
54
68
  // src/index.ts
55
69
  var defineStackConfig = (config) => {
@@ -63,10 +77,13 @@ var defineAppConfig = (config) => {
63
77
  defineAppConfig,
64
78
  definePlugin,
65
79
  defineStackConfig,
80
+ getCacheProps,
66
81
  getFunctionName,
67
82
  getGlobalResourceName,
68
83
  getLocalResourceName,
69
84
  getQueueName,
85
+ getSearchName,
86
+ getSecretName,
70
87
  getStoreName,
71
88
  getTableName,
72
89
  getTopicName
package/dist/index.d.ts CHANGED
@@ -2469,10 +2469,16 @@ declare const definePlugin: <S extends AnyZodObject | undefined = undefined>(plu
2469
2469
  declare const getLocalResourceName: (id: string, stack?: string) => string;
2470
2470
  declare const getGlobalResourceName: (id: string) => string;
2471
2471
  declare const getFunctionName: (id: string, stack?: string) => string;
2472
+ declare const getSearchName: (id: string, stack?: string) => string;
2472
2473
  declare const getTableName: (id: string, stack?: string) => string;
2473
2474
  declare const getStoreName: (id: string, stack?: string) => string;
2474
2475
  declare const getQueueName: (id: string, stack?: string) => string;
2475
2476
  declare const getTopicName: (id: string) => string;
2477
+ declare const getSecretName: (name: string) => string;
2478
+ declare const getCacheProps: (name: string, stack?: string) => {
2479
+ readonly host: string;
2480
+ readonly port: number;
2481
+ };
2476
2482
 
2477
2483
  type AppConfig = CombinedDefaultPluginsConfigInput;
2478
2484
  type StackConfig = CombinedDefaultPluginsConfigInput['stacks'][number];
@@ -2692,4 +2698,4 @@ declare const defineStackConfig: (config: StackConfig) => StackConfig$1 | (Stack
2692
2698
  });
2693
2699
  declare const defineAppConfig: (config: AppConfig | AppConfigFactory<AppConfig>) => CombinedDefaultPluginsConfigInput | AppConfigFactory<CombinedDefaultPluginsConfigInput>;
2694
2700
 
2695
- export { AppConfig, Plugin, StackConfig, defineAppConfig, definePlugin, defineStackConfig, getFunctionName, getGlobalResourceName, getLocalResourceName, getQueueName, getStoreName, getTableName, getTopicName };
2701
+ export { AppConfig, Plugin, StackConfig, defineAppConfig, definePlugin, defineStackConfig, getCacheProps, getFunctionName, getGlobalResourceName, getLocalResourceName, getQueueName, getSearchName, getSecretName, getStoreName, getTableName, getTopicName };
package/dist/index.js CHANGED
@@ -12,10 +12,21 @@ var getGlobalResourceName = (id) => {
12
12
  return `${APP}-${id}`;
13
13
  };
14
14
  var getFunctionName = getLocalResourceName;
15
+ var getSearchName = getLocalResourceName;
15
16
  var getTableName = getLocalResourceName;
16
17
  var getStoreName = getLocalResourceName;
17
18
  var getQueueName = getLocalResourceName;
18
19
  var getTopicName = getGlobalResourceName;
20
+ var getSecretName = (name) => {
21
+ return `/.awsless/${APP}/${name}`;
22
+ };
23
+ var getCacheProps = (name, stack = STACK) => {
24
+ const prefix = `CACHE_${stack}_${name}`;
25
+ return {
26
+ host: process.env[`${prefix}_HOST`],
27
+ port: parseInt(process.env[`${prefix}_PORT`], 10)
28
+ };
29
+ };
19
30
 
20
31
  // src/index.ts
21
32
  var defineStackConfig = (config) => {
@@ -28,10 +39,13 @@ export {
28
39
  defineAppConfig,
29
40
  definePlugin,
30
41
  defineStackConfig,
42
+ getCacheProps,
31
43
  getFunctionName,
32
44
  getGlobalResourceName,
33
45
  getLocalResourceName,
34
46
  getQueueName,
47
+ getSearchName,
48
+ getSecretName,
35
49
  getStoreName,
36
50
  getTableName,
37
51
  getTopicName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {