@lambdaorm/cli 1.6.10 → 1.6.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.6.12
4
+
5
+ ### Patch Changes
6
+
7
+ - da5162e: `lambdaorm build` waits for the generation to end, so an error in it is reported and sets the exit code (it ran
8
+ without `await`). `lambdaorm script -u` and the client's `executeScript` say what the data gateway needs to run
9
+ scripts — `scripts.enabled: true` in its configuration and a credential with the `script` permission — instead of
10
+ the former service's `SCRIPT_ENABLED=true`.
11
+ - Updated dependencies [8be132e]
12
+ - Updated dependencies [da5162e]
13
+ - Updated dependencies [d31eee9]
14
+ - Updated dependencies [4b7e3dc]
15
+ - Updated dependencies [bec918f]
16
+ - @lambdaorm/base@3.3.3
17
+ - @lambdaorm/lib@3.5.5
18
+ - @lambdaorm/client@0.10.2
19
+
20
+ ## 1.6.11
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [054ba46]
25
+ - Updated dependencies [f22f330]
26
+ - Updated dependencies [cd0044e]
27
+ - Updated dependencies [877dfa7]
28
+ - Updated dependencies [9554ac8]
29
+ - Updated dependencies [cff14a4]
30
+ - Updated dependencies [317b5f5]
31
+ - Updated dependencies [0deeb1a]
32
+ - @lambdaorm/lib@3.5.4
33
+ - @lambdaorm/base@3.3.2
34
+ - @lambdaorm/client@0.10.1
35
+
3
36
  ## 1.6.10
4
37
 
5
38
  ### Patch Changes
package/README.md CHANGED
@@ -1,337 +1,121 @@
1
- # λORM CLI
1
+ # λORM CLI — @lambdaorm/cli
2
2
 
3
- λORM CLI is a command line application to use [λORM](https://www.npmjs.com/package/lambdaorm)
3
+ [![npm version](https://img.shields.io/npm/v/@lambdaorm/cli.svg)](https://www.npmjs.com/package/@lambdaorm/cli)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
5
 
5
- ## Installation
6
-
7
- Install the package globally to use the CLI commands to help you create and maintain projects
8
-
9
- ```sh
10
- npm install lambdaorm-cli -g
11
- ```
12
-
13
- ## CLI
14
-
15
- | Command | Description |
16
- |:------------|:--------------------------------------------------------------------|
17
- | version | Prints lambdaorm version this project uses. |
18
- | init | Generates lambdaorm project structure. |
19
- | push | Synchronize sources with schema |
20
- | pull | Synchronize schema whit sources |
21
- | fetch | Show differences the schema whit sources |
22
- | introspect | Update schema with structure of data and push |
23
- | incorporate | Update schema with structure of data, push and importa data |
24
- | execute | Execute an expression lambda. |
25
- | metadata | Return metadata of query expression. |
26
- | parameters | Return parameters of query expression. |
27
- | model | Return model of query expression. |
28
- | plan | Return plan execution of query expression. |
29
- | schema | Return schema information. |
30
- | import | Import data from file to database. |
31
- | export | Export data from a database. |
32
- | build | add configuration, model and repositories according to the language.|
33
- | drop | Removes all database objects but not the database. |
34
-
35
- ## Usage
36
-
37
- ### version
38
-
39
- Prints lambdaorm version this project uses.
40
-
41
- ```sh
42
- lambdaorm version
43
- ```
44
-
45
- Result:
46
-
47
- ```sh
48
- Global lambdaorm cli version: 0.9.21
49
- Local lambdaorm version: 0.8.96
50
- ```
51
-
52
- ### init
53
-
54
- will create the project folder with the basic structure.
55
-
56
- ```sh
57
- lambdaorm init -w lab
58
- ```
59
-
60
- It will generate:
61
-
62
- ```sh
63
- ├── orm_state
64
- └── lambdaORM.yaml
65
- ```
6
+ 📖 **Documentation:** [lambda-orm.github.io/wiki](https://lambda-orm.github.io/wiki) (English, Deutsch, Español, Português)
66
7
 
67
- ### init client node
8
+ Your databases from the terminal and from CI, with the [λORM](https://lambda-orm.github.io/wiki/) schema as the
9
+ single source of truth — on MySQL, MariaDB, PostgreSQL, SQL Server, Oracle, MongoDB or SQLite:
68
10
 
69
- will create the project folder with the basic structure.
11
+ - **Schema → databases:** `push` creates and alters the tables (or writes the scripts with `-o`); `fetch` exits with
12
+ code 1 when a database drifted from the schema — a check for your pipeline.
13
+ - **Databases → schema:** `pull` reads the structure of existing databases into the schema.
14
+ - **Data → schema, tables and rows:** `incorporate` takes a JSON file, infers the entities, keys and relations,
15
+ creates the tables and imports the rows — in one command
16
+ ([lab](https://github.com/lambda-orm/lambdaorm-labs/tree/main/labs/cli/13-incorporate)).
17
+ - **Move data between engines:** `export` from a stage, `import` into another (MongoDB to PostgreSQL, Oracle to
18
+ MySQL…).
19
+ - **Query from the shell:** `execute`, `plan` (the SQL, without running it), `script` (several queries in one
20
+ transaction).
21
+ - **Code:** `build` generates the typed model and the repositories for TypeScript.
70
22
 
71
23
  ```sh
72
- lambdaorm init -w client-lab -u http://localhost:9291
24
+ lambdaorm init -w lab -d MySQL # a project: lab/lambdaORM.yaml
25
+ lambdaorm incorporate -w lab -e lab/.env -d countries.json -n Countries # a JSON file → schema, tables and rows
26
+ lambdaorm execute -w lab -e lab/.env -o beautiful -q "Countries.filter(p => p.phoneCode == 54)"
73
27
  ```
74
28
 
75
- It will generate:
29
+ Every command runs locally with a workspace (`-w`), and most of them also on a
30
+ [Data Gateway](https://lambda-orm.github.io/wiki/data-gateway/) (`-u <url>`).
76
31
 
77
- ```sh
78
- ├── orm_state
79
- └── lambdaORM.yaml
80
- ```
81
-
82
- ### push
83
-
84
- Synchronize Stage configured in lambdaORM schema with database/s.
85
-
86
- ```sh
87
- lambdaorm push
88
- ```
89
-
90
- In the case the default stage is associated with several data sources, it generates a file for each data source and a file with the current model.
91
-
92
- ```sh
93
- data
94
- ├── default-ddl-20231201T191054280Z-push-Catalog.sql
95
- ├── default-ddl-20231201T191054280Z-push-Crm.sql
96
- ├── default-ddl-20231201T191054281Z-push-Ordering.json
97
- ├── default-model.json
98
- ```
99
-
100
- ### execute
101
-
102
- Execute an expression lambda.
103
-
104
- ```sh
105
- lambdaorm execute -e .env -q "Orders.filter(p => p.customerId == customerId).include(p => [p.customer.map(p => p.name), p.details.include(p => p.product.include(p => p.category.map(p => p.name)).map(p => p.name)).map(p => [p.quantity, p.unitPrice])]).page(1,1)" -d "{\"customerId\": \"HANAR\"}"
106
- ```
107
-
108
- Result:
109
-
110
- ```json
111
- [
112
- {
113
- "id": 3,
114
- "customerId": "HANAR",
115
- "employeeId": 4,
116
- "orderDate": "1996-07-08T00:00:00.000+02:00",
117
- "requiredDate": "1996-08-05",
118
- "shippedDate": "1996-07-12",
119
- "shipViaId": 2,
120
- "freight": 65.83,
121
- "name": "Hanari Carnes",
122
- "address": "Rua do Pao, 67",
123
- "city": "Rio de Janeiro",
124
- "region": "RJ",
125
- "postalCode": "05454-876",
126
- "country": "Brazil",
127
- "details": [
128
- {
129
- "quantity": 10,
130
- "unitPrice": 7.7,
131
- "product": {
132
- "name": "Jack's New England Clam Chowder",
133
- "category": {
134
- "name": "Seafood"
135
- }
136
- }
137
- },
138
- {
139
- "quantity": 35,
140
- "unitPrice": 42.4,
141
- "product": {
142
- "name": "Manjimup Dried Apples",
143
- "category": {
144
- "name": "Produce"
145
- }
146
- }
147
- },
148
- {
149
- "quantity": 15,
150
- "unitPrice": 16.8,
151
- "product": {
152
- "name": "Louisiana Fiery Hot Pepper Sauce",
153
- "category": {
154
- "name": "Condiments"
155
- }
156
- }
157
- }
158
- ],
159
- "customer": {
160
- "name": "Hanari Carnes"
161
- }
162
- }
163
- ]
164
- ```
165
-
166
- In this example:
167
-
168
- - The .env file is used to obtain the environment variables.
169
- - The lambda expression is used to obtain an order from the "HANAR" client.
170
-
171
- ### Plan
172
-
173
- Return plan execution of query expression.
174
-
175
- ```sh
176
- lambdaorm plan -e .env -s default -q "Orders.filter(p => p.customerId == customerId).include(p => p.customer.map(p => p.name)).order(p=> p.id).page(1,1)" -o beautiful
177
- ```
178
-
179
- Result:
180
-
181
- ```json
182
- {
183
- "entity": "Orders",
184
- "dialect": "MongoDB",
185
- "source": "Ordering",
186
- "sentence": "[{ \"$match\" : { \"CustomerID\":{{customerId}} } }, { \"$project\" :{ \"_id\": 0 , \"id\":\"$_id\", \"customerId\":\"$CustomerID\", \"orderDate\":\"$OrderDate\", \"__customerId\":\"$CustomerID\" }} , { \"$sort\" :{ \"_id\":1 } } , { \"$skip\" : 0 }, { \"$limit\" : 1 } , { \"$project\": { \"_id\": 0 } }]",
187
- "children": [
188
- {
189
- "entity": "Customers",
190
- "dialect": "PostgreSQL",
191
- "source": "Crm",
192
- "sentence": "SELECT c.CompanyName AS \"name\", c.CustomerID AS \"LambdaOrmParentId\" FROM Customers c WHERE c.CustomerID IN ($1) "
193
- }
194
- ]
195
- }
196
- ```
197
-
198
- In this example:
199
-
200
- - The .env file is used to obtain the environment variables.
201
- - The Plan obtained is about the stage default.
202
- - The lambda expression is used to obtain an order from the "HANAR" client.
203
- - The plan is obtained in a beautiful format.
204
-
205
- ### import
206
-
207
- Import data from file to datasources asociados a un stage.
208
-
209
- ```sh
210
-
211
- ```sh
212
- lambdaorm import -e .env -s default -d ./data.json
213
- ```
214
-
215
- In this example:
216
-
217
- - The datasources associated with the default stage are known.
218
- - The .env file is used to obtain environment variables.
219
- - Data is obtained from data.json file
220
-
221
- ### export
32
+ ## Installation
222
33
 
223
- Export data from a datasource associated to a stage.
34
+ Install the package globally; it adds the `lambdaorm` command:
224
35
 
225
36
  ```sh
226
- lambdaorm export -s stage1 -e .env
37
+ npm i -g @lambdaorm/cli
38
+ lambdaorm --version
227
39
  ```
228
40
 
229
- In this example:
41
+ It requires Node.js 20 or later. The Docker image of the Data Gateway
42
+ ([flaviorita/data-gateway](https://hub.docker.com/r/flaviorita/data-gateway)) already includes the CLI.
230
43
 
231
- - Data is exported from the datasources associated with stage1.
232
- - The .env file is used to obtain the environment variables.
233
- - A file called "stage1-export.json" will be created with all the data associated with the stage1 datasources.
44
+ > **Note:** the unscoped `lambdaorm-cli` package is the old one and is no longer maintained.
234
45
 
235
- ### Build
46
+ ## Commands
236
47
 
237
- Running the build command will create or update the following:
238
-
239
- - Folder that will contain the source code and is taken from the "infrastructure.paths.scr" configuration in the lambdaorm.yaml file
240
- - Folder that will contain the domain files, the path is relative to the src folder and is taken from the "infrastructure.paths.domain" configuration in the lambdaorm.yaml file
241
- - Model file: file with the definition of the entities
242
- - Repository files: one file for each entity with data access methods
243
- - Install the necessary dependencies according to the databases used
244
-
245
- #### Build Node example
246
-
247
- Add configuration, model and repositories according to the language.
248
-
249
- ```sh
250
- lambdaorm build -l node
251
- ```
48
+ | Command | Description |
49
+ | :-- | :-- |
50
+ | [version](https://lambda-orm.github.io/wiki/cli/Version/) | Prints the CLI version and the `@lambdaorm/lib` version the project uses. |
51
+ | [init](https://lambda-orm.github.io/wiki/cli/Commands/Init/) | Generates the structure of a λORM project. |
52
+ | [build](https://lambda-orm.github.io/wiki/cli/Commands/Build/) | Generates the model and the repositories for the language. |
53
+ | schema | Returns information about the schema. |
54
+ | [push](https://lambda-orm.github.io/wiki/cli/Commands/Push/) | Synchronizes the databases with the model (`-o` writes the scripts instead). |
55
+ | [pull](https://lambda-orm.github.io/wiki/schema/SchemaSynchronization-Pull/) | Updates the schema with the structure of the databases of a stage. |
56
+ | [fetch](https://lambda-orm.github.io/wiki/cli/Commands/Fetch/) | Shows the differences between the databases and the model; exits with code 1 when there are any. |
57
+ | [introspect](https://lambda-orm.github.io/wiki/schema/SchemaSynchronization-Introspect/) | Reads and analyzes a data file and updates the schema. |
58
+ | [incorporate](https://lambda-orm.github.io/wiki/schema/SchemaSynchronization-Incorporate/) | Updates the schema from a data file, pushes the changes to the databases and imports the data. |
59
+ | [drop](https://lambda-orm.github.io/wiki/cli/Commands/Drop/) | Removes all the database objects, but not the database itself. |
60
+ | [import](https://lambda-orm.github.io/wiki/cli/Commands/Import/) | Imports data from a file into the databases. |
61
+ | [export](https://lambda-orm.github.io/wiki/cli/Commands/Export/) | Exports data from the databases. |
62
+ | [execute](https://lambda-orm.github.io/wiki/cli/Commands/Execute/) | Executes a query. |
63
+ | [script](https://lambda-orm.github.io/wiki/cli/Commands/Script/) | Runs a script: several queries in one transaction. |
64
+ | [plan](https://lambda-orm.github.io/wiki/cli/Commands/Plan/) | Returns the execution plan of a query. |
65
+ | [metadata](https://lambda-orm.github.io/wiki/cli/Commands/Metadata/) | Returns the metadata of a query. |
66
+ | [parameters](https://lambda-orm.github.io/wiki/cli/Commands/Parameters/) | Returns the parameters of a query. |
67
+ | [model](https://lambda-orm.github.io/wiki/cli/Commands/Model/) | Returns the model of the result of a query. |
68
+ | [constraints](https://lambda-orm.github.io/wiki/cli/Commands/Constraints/) | Returns the constraints of a query. |
252
69
 
253
- Result:
70
+ `lambdaorm <command> -h` lists the options of a command; `lambdaorm -h` lists the commands.
254
71
 
255
- ```sh
256
- ├── orm_state
257
- ├── lambdaORM.yaml
258
- ├── package.json
259
- ├── src
260
- │ └── countries
261
- │ └── domain
262
- │ ├── model.ts
263
- │ ├── repositoryCountry.ts
264
- │ └── repositoryState.ts
265
- └── tsconfig.json
266
- ```
72
+ The `sync` command no longer exists: it was replaced by [push](https://lambda-orm.github.io/wiki/cli/Commands/Push/).
267
73
 
268
- #### Build Client Node example
74
+ ## A project, step by step
269
75
 
270
76
  ```sh
271
- lambdaorm build -l client-node --all -u http://localhost:9291
77
+ lambdaorm init -w lab/countries -d PostgreSQL # the workspace and its lambdaORM.yaml
78
+ # edit lab/countries/lambdaORM.yaml (the domain) and lab/countries/.env (the connection)
79
+ lambdaorm push -w lab/countries -e lab/countries/.env # create the tables of the model
80
+ lambdaorm execute -w lab/countries -e lab/countries/.env \
81
+ -q "Countries.bulkInsert().include(p => p.states)" -d ./lab/countries/countries.json
82
+ lambdaorm execute -w lab/countries -e lab/countries/.env -o beautiful \
83
+ -q "Countries.filter(p => p.iso3 == iso3).include(p => p.states)" -d '{"iso3": "ARG"}'
84
+ lambdaorm build -w lab/countries # the model and repositories in TypeScript
272
85
  ```
273
86
 
274
- Result:
87
+ On a Data Gateway, the same commands take the URL of the schema instead of the workspace:
275
88
 
276
89
  ```sh
277
- ├── orm_state
278
- ├── lambdaORM.yaml
279
- ├── package.json
280
- ├── src
281
- │ ├── index.ts
282
- │ └── northwind
283
- │ └── domain
284
- │ ├── model.ts
285
- │ ├── repositoryCategory.ts
286
- │ ├── repositoryCustomer.ts
287
- │ ├── repositoryOrdersDetail.ts
288
- │ ├── repositoryOrder.ts
289
- │ └── repositoryProduct.ts
290
- └── tsconfig.json
90
+ lambdaorm execute -u http://gateway:8080/iot/v1 -o beautiful -q "Devices.filter(p => p.status == status)" -d '{"status": "active"}'
291
91
  ```
292
92
 
293
- ### Drop
93
+ ## Common options
294
94
 
295
- Removes all database objects but not the database.
296
-
297
- ```sh
298
- lambdaorm drop -e .env -s default
299
- lambdaorm drop -e .env -s insights
300
- ```
95
+ | Option | Short | Description |
96
+ | :-- | :-- | :-- |
97
+ | workspace | `-w` | Path of the project (the folder with `lambdaORM.yaml`). Default: the current directory. |
98
+ | stage | `-s` | Name of the stage. Default: the first stage of the schema. |
99
+ | envfile | `-e` | Reads a file of environment variables (for example the connection strings). |
100
+ | output | `-o` | Output format of the result: `json`, `beautiful`, `light` or `yaml`. |
101
+ | url | `-u` | URL of the schema on a Data Gateway, to run the command there instead of locally. |
301
102
 
302
- Result:
103
+ Each command page lists the options that command accepts.
303
104
 
304
- ```sh
305
- orm_state
306
- ├── default-ddl-20231129T110712162Z-push-Catalog.sql
307
- ├── default-ddl-20231129T110712163Z-push-Crm.sql
308
- ├── default-ddl-20231129T110712163Z-push-Ordering.json
309
- ├── default-ddl-20231129T111730593Z-clean-Catalog.sql
310
- ├── default-ddl-20231129T111730594Z-clean-Crm.sql
311
- ├── default-ddl-20231129T111730594Z-clean-Ordering.json
312
- ├── insights-ddl-20231129T110303423Z-push-Insights.sql
313
- └── insights-ddl-20231129T111738316Z-clean-Insights.sql
314
- ```
105
+ ## Exit code and Data Gateway
315
106
 
316
- In this example:
107
+ Every command exits with code 1 when it fails (from @lambdaorm/cli 1.6.3).
317
108
 
318
- - The .env file is used to obtain the environment variables.
319
- - The first execution drops all the database objects associated with the default datasources.
320
- - The second execution drops all the database objects associated with the insights data sources.
321
- - The clean files associated with each datasource of each stage are generated.
322
- - The model file associated with each stage is removed.
109
+ Commands run on a Data Gateway with `-u` and the URL of the schema, for example `http://gateway:8080/iot/v1`. When the
110
+ `SERVICE_TOKEN` environment variable is set, it is sent as `Authorization: Bearer <token>` (for a gateway with
111
+ [bearer authentication](https://lambda-orm.github.io/wiki/data-gateway/Security/#authentication)). See also [Clients](https://lambda-orm.github.io/wiki/data-gateway/Clients/#cli).
323
112
 
324
113
  ## Documentation
325
114
 
326
- Full documentation is available in the [Wiki](https://github.com/lambda-orm/lambdaorm-cli/wiki).
327
-
328
- ## Related projects
329
-
330
- - [Lambda ORM](https://www.npmjs.com/package/lambdaorm)
331
- - [λORM data-gateway](https://github.com/lambda-orm/core/tree/main/packages/data-gateway)
332
- - [Client Node](https://www.npmjs.com/package/lambdaorm-client-node)
333
- - [Client Kotlin](https://github.com/lambda-orm/lambdaorm-client-kotlin)
115
+ - [CLI in the λORM wiki](https://lambda-orm.github.io/wiki/cli/), with a page per command
116
+ - [Change log](CHANGELOG.md)
117
+ - [CLI labs](https://github.com/lambda-orm/lambdaorm-labs/tree/main/labs/cli)
334
118
 
335
- ## Labs
119
+ ## License
336
120
 
337
- You can access various labs at [github.com/lambda-orm/lambdaorm-labs](https://github.com/lambda-orm/lambdaorm-labs)
121
+ MIT
@@ -9,7 +9,7 @@ class Build {
9
9
  async execute(args) {
10
10
  try {
11
11
  const languageService = this.service.languages.get(args.language);
12
- languageService.build(args);
12
+ await languageService.build(args);
13
13
  }
14
14
  catch (error) {
15
15
  console.error(`error: ${error}`);
@@ -1 +1 @@
1
- {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../src/lib/application/useCases/build.ts"],"names":[],"mappings":";;;AAGA,MAAa,KAAK;IACjB,kDAAkD;IAClD,YAA8B,OAAiB;QAAjB,YAAO,GAAP,OAAO,CAAU;IAAG,CAAC;IAC5C,KAAK,CAAC,OAAO,CAAE,IAAc;QACnC,IAAI,CAAC;YACJ,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACjE,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAC5B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,OAAO,CAAC,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,CAAA;YAChC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;QACrB,CAAC;IACF,CAAC;CACD;AAZD,sBAYC"}
1
+ {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../src/lib/application/useCases/build.ts"],"names":[],"mappings":";;;AAGA,MAAa,KAAK;IACjB,kDAAkD;IAClD,YAA8B,OAAiB;QAAjB,YAAO,GAAP,OAAO,CAAU;IAAG,CAAC;IAC5C,KAAK,CAAC,OAAO,CAAE,IAAc;QACnC,IAAI,CAAC;YACJ,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACjE,MAAM,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAClC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,OAAO,CAAC,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,CAAA;YAChC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;QACrB,CAAC;IACF,CAAC;CACD;AAZD,sBAYC"}
@@ -45,7 +45,7 @@ class ScriptCommand {
45
45
  })
46
46
  .option('u', {
47
47
  alias: 'url',
48
- describe: 'Url of service (POST /script, the service must run with SCRIPT_ENABLED=true).'
48
+ describe: 'Url of a data gateway: runs the script there (POST /script; the gateway needs scripts.enabled: true and the credential the script permission).'
49
49
  });
50
50
  }
51
51
  async handler(args) {
@@ -1 +1 @@
1
- {"version":3,"file":"script.js","sourceRoot":"","sources":["../../../../src/lib/infrastructure/command/script.ts"],"names":[],"mappings":";;;;;;AAEA,4CAAmB;AACnB,gDAAuB;AACvB,qDAA8C;AAC9C,oDAA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QAClC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAgB,CAAA;QACpC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAiB,CAAA;QACtC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAuB,CAAA;QAExC,IAAI,OAAO,EAAE,CAAC;YACb,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,CAAA;YACrD,gBAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;QAClD,CAAC;QACD,IAAI,CAAC;YACJ,MAAM,kBAAM,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;QAClE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,OAAO,CAAC,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,CAAA;YAChC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;QACrB,CAAC;IACF,CAAC;CACD;AA7DD,sCA6DC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdaorm/cli",
3
- "version": "1.6.10",
3
+ "version": "1.6.12",
4
4
  "description": "The lambdaorm command line interface",
5
5
  "author": "Flavio Lionel Rita <flaviolrita@proton.me>",
6
6
  "license": "MIT",
@@ -24,9 +24,9 @@
24
24
  "test": "npx jest --config ./jest-config.json"
25
25
  },
26
26
  "dependencies": {
27
- "@lambdaorm/base": "^3.3.1",
28
- "@lambdaorm/lib": "^3.5.3",
29
- "@lambdaorm/client": "^0.10.0",
27
+ "@lambdaorm/base": "^3.3.3",
28
+ "@lambdaorm/lib": "^3.5.5",
29
+ "@lambdaorm/client": "^0.10.2",
30
30
  "dotenv": "^16.5.0",
31
31
  "js-yaml": "^4.1.0",
32
32
  "json-light": "^5.0.0",