@awsless/awsless 0.0.504 → 0.0.506

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.
Binary file
Binary file
package/dist/server.d.ts CHANGED
@@ -14,18 +14,8 @@ type CommandContext = {
14
14
  region: Region;
15
15
  credentials: Credentials;
16
16
  accountId: string;
17
- update: (msg: string) => void;
18
17
  };
19
- type CommandHandler = (options: CommandOptions, context: CommandContext) => Promise<string | undefined | void>;
20
- declare class CommandOptions {
21
- private opts;
22
- constructor(args: string[]);
23
- get(name: string): any;
24
- private getAssertType;
25
- number(name: string): number;
26
- string(name: string): string;
27
- boolean(name: string): boolean;
28
- }
18
+ type CommandHandler = (context: CommandContext) => Promise<void>;
29
19
 
30
20
  interface AlertMock {
31
21
  }
@@ -169,4 +159,4 @@ declare const Topic: TopicResources;
169
159
  declare const APP: "app";
170
160
  declare const STACK: "stack";
171
161
 
172
- export { APP, Alert, type AlertMock, type AlertMockResponse, type AlertResources, Auth, type AuthResources, Cache, type CacheResources, type CommandContext, type CommandHandler, CommandOptions, Config, type ConfigResources, Fn, Function, type FunctionMock, type FunctionMockResponse, type FunctionResources, PubSub, type PublishOptions, Queue, type QueueMock, type QueueMockResponse, type QueueResources, type RpcAuthorizerResponse, STACK, Search, type SearchResources, Store, type StoreResources, Table, type TableResources, Task, type TaskMock, type TaskMockResponse, type TaskResources, Topic, type TopicMock, type TopicMockResponse, type TopicResources, getAlertName, getAuthProps, getCacheProps, getConfigName, getConfigValue, getFunctionName, getPubSubTopic, getQueueName, getQueueUrl, getSearchName, getSearchProps, getSiteBucketName, getStoreName, getTableName, getTaskName, getTopicName, mockAlert, mockCache, mockFunction, mockPubSub, mockQueue, mockTask, mockTopic, pubsubAuthorizerHandle, pubsubAuthorizerResponse, setConfigValue };
162
+ export { APP, Alert, type AlertMock, type AlertMockResponse, type AlertResources, Auth, type AuthResources, Cache, type CacheResources, type CommandContext, type CommandHandler, Config, type ConfigResources, Fn, Function, type FunctionMock, type FunctionMockResponse, type FunctionResources, PubSub, type PublishOptions, Queue, type QueueMock, type QueueMockResponse, type QueueResources, type RpcAuthorizerResponse, STACK, Search, type SearchResources, Store, type StoreResources, Table, type TableResources, Task, type TaskMock, type TaskMockResponse, type TaskResources, Topic, type TopicMock, type TopicMockResponse, type TopicResources, getAlertName, getAuthProps, getCacheProps, getConfigName, getConfigValue, getFunctionName, getPubSubTopic, getQueueName, getQueueUrl, getSearchName, getSearchProps, getSiteBucketName, getStoreName, getTableName, getTaskName, getTopicName, mockAlert, mockCache, mockFunction, mockPubSub, mockQueue, mockTask, mockTopic, pubsubAuthorizerHandle, pubsubAuthorizerResponse, setConfigValue };
package/dist/server.js CHANGED
@@ -1,6 +1,3 @@
1
- import {
2
- CommandOptions
3
- } from "./chunk-QL4FTNZ7.js";
4
1
  import {
5
2
  createProxy
6
3
  } from "./chunk-2LRBH7VV.js";
@@ -574,7 +571,6 @@ export {
574
571
  Alert,
575
572
  Auth,
576
573
  Cache,
577
- CommandOptions,
578
574
  Config,
579
575
  Fn,
580
576
  Function,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.504",
3
+ "version": "0.0.506",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -33,19 +33,20 @@
33
33
  ]
34
34
  },
35
35
  "peerDependencies": {
36
+ "@awsless/big-float": "^0.0.6",
36
37
  "@awsless/dynamodb": "^0.1.5",
37
- "@awsless/iot": "^0.0.3",
38
38
  "@awsless/json": "^0.0.10",
39
- "@awsless/mqtt": "^0.0.2",
40
39
  "@awsless/lambda": "^0.0.33",
40
+ "@awsless/mqtt": "^0.0.2",
41
41
  "@awsless/open-search": "^0.0.17",
42
42
  "@awsless/s3": "^0.0.21",
43
43
  "@awsless/redis": "^0.0.14",
44
- "@awsless/sqs": "^0.0.8",
45
44
  "@awsless/ssm": "^0.0.7",
46
- "@awsless/big-float": "^0.0.6",
47
45
  "@awsless/validate": "^0.0.19",
46
+ "@awsless/clui": "^0.0.2",
48
47
  "@awsless/weak-cache": "^0.0.1",
48
+ "@awsless/sqs": "^0.0.8",
49
+ "@awsless/iot": "^0.0.3",
49
50
  "@awsless/sns": "^0.0.10"
50
51
  },
51
52
  "dependencies": {
@@ -129,13 +130,14 @@
129
130
  "zod-to-json-schema": "^3.24.3",
130
131
  "@awsless/big-float": "^0.0.6",
131
132
  "@awsless/duration": "^0.0.3",
133
+ "@awsless/code": "^0.0.10",
132
134
  "@awsless/formation": "^0.0.77",
135
+ "@awsless/graphql": "^0.0.9",
133
136
  "@awsless/json": "^0.0.10",
134
137
  "@awsless/size": "^0.0.2",
135
- "@awsless/ts-file-cache": "^0.0.12",
136
- "@awsless/graphql": "^0.0.9",
138
+ "@awsless/clui": "^0.0.2",
137
139
  "@awsless/validate": "^0.0.19",
138
- "@awsless/code": "^0.0.10"
140
+ "@awsless/ts-file-cache": "^0.0.12"
139
141
  },
140
142
  "devDependencies": {
141
143
  "@node-rs/bcrypt": "^1.10.5",
@@ -1,63 +0,0 @@
1
- // src/command.ts
2
- import minimist from "minimist";
3
-
4
- // src/error.ts
5
- var ExpectedError = class extends Error {
6
- };
7
- var ConfigError = class extends Error {
8
- constructor(file, error, data) {
9
- super(error.message);
10
- this.file = file;
11
- this.error = error;
12
- this.data = data;
13
- }
14
- };
15
- var FileError = class extends Error {
16
- constructor(file, message) {
17
- super(message);
18
- this.file = file;
19
- }
20
- };
21
- var Cancelled = class extends Error {
22
- constructor() {
23
- super("Cancelled");
24
- }
25
- };
26
-
27
- // src/command.ts
28
- var CommandOptions = class {
29
- opts;
30
- constructor(args) {
31
- this.opts = minimist(args);
32
- }
33
- get(name) {
34
- if (name in this.opts) {
35
- return this.opts[name];
36
- }
37
- throw new ExpectedError(`CLI option "${name}" not found`);
38
- }
39
- getAssertType(name, type) {
40
- const value = this.get(name);
41
- if (typeof value === type) {
42
- return value;
43
- }
44
- throw new ExpectedError(`CLI option "${name}" isn't a ${type} type`);
45
- }
46
- number(name) {
47
- return this.getAssertType(name, "number");
48
- }
49
- string(name) {
50
- return this.getAssertType(name, "string");
51
- }
52
- boolean(name) {
53
- return this.getAssertType(name, "boolean");
54
- }
55
- };
56
-
57
- export {
58
- ExpectedError,
59
- ConfigError,
60
- FileError,
61
- Cancelled,
62
- CommandOptions
63
- };