@creator.co/wapi 1.7.8 โ 1.7.10-alpha.1
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/.eslintrc.cjs +19 -0
- package/README.md +1 -11
- package/dist/package-lock.json +830 -223
- package/dist/package.json +3 -1
- package/dist/src/BaseEvent/DynamoTransaction.d.ts +70 -0
- package/dist/src/BaseEvent/DynamoTransaction.js +104 -0
- package/dist/src/BaseEvent/DynamoTransaction.js.map +1 -0
- package/dist/src/BaseEvent/EventProcessor.js.map +1 -1
- package/dist/src/BaseEvent/Transaction.d.ts +8 -3
- package/dist/src/BaseEvent/Transaction.js +9 -1
- package/dist/src/BaseEvent/Transaction.js.map +1 -1
- package/dist/src/Cache/Redis.js.map +1 -1
- package/dist/src/Database/integrations/dynamo/DynamoDatabase.js.map +1 -1
- package/dist/src/Database/integrations/knex/KnexDatabase.js.map +1 -1
- package/dist/src/Database/integrations/kysely/KyselyDatabase.js.map +1 -1
- package/dist/src/Database/integrations/pgsql/PostgresDatabase.js.map +1 -1
- package/dist/src/Logger/Logger.js.map +1 -1
- package/dist/src/Publisher/Publisher.js.map +1 -1
- package/dist/src/Server/RouteResolver.d.ts +0 -1
- package/dist/src/Server/RouteResolver.js +0 -1
- package/dist/src/Server/RouteResolver.js.map +1 -1
- package/dist/src/Server/lib/container/Proxy.js.map +1 -1
- package/dist/src/Util/Utils.d.ts +15 -0
- package/dist/src/Util/Utils.js +41 -0
- package/dist/src/Util/Utils.js.map +1 -1
- package/package.json +3 -1
- package/src/BaseEvent/DynamoTransaction.ts +175 -0
- package/src/BaseEvent/EventProcessor.ts +1 -1
- package/src/BaseEvent/Transaction.ts +15 -3
- package/src/Cache/Redis.ts +1 -0
- package/src/Database/integrations/dynamo/DynamoDatabase.ts +1 -1
- package/src/Database/integrations/knex/KnexDatabase.ts +1 -1
- package/src/Database/integrations/kysely/KyselyDatabase.ts +3 -1
- package/src/Database/integrations/pgsql/PostgresDatabase.ts +2 -1
- package/src/Logger/Logger.ts +7 -7
- package/src/Publisher/Publisher.ts +5 -2
- package/src/Server/RouteResolver.ts +1 -1
- package/src/Server/lib/container/Proxy.ts +2 -2
- package/src/Util/AsyncSingleton.ts +1 -1
- package/src/Util/Utils.ts +38 -0
- package/tests/API/Utils.test.ts +100 -38
- package/tests/BaseEvent/DynamoTransaction.test.ts +272 -0
- package/tests/Logger/Logger.test.ts +1 -1
- package/tests/Test.utils.ts +5 -1
package/.eslintrc.cjs
CHANGED
|
@@ -35,6 +35,25 @@ module.exports = {
|
|
|
35
35
|
],
|
|
36
36
|
'@typescript-eslint/ban-ts-comment': 0,
|
|
37
37
|
'@typescript-eslint/no-explicit-any': 0,
|
|
38
|
+
'@typescript-eslint/explicit-member-accessibility': [
|
|
39
|
+
'error',
|
|
40
|
+
{
|
|
41
|
+
accessibility: 'explicit',
|
|
42
|
+
overrides: {
|
|
43
|
+
accessors: 'explicit',
|
|
44
|
+
constructors: 'no-public',
|
|
45
|
+
methods: 'explicit',
|
|
46
|
+
properties: 'explicit',
|
|
47
|
+
parameterProperties: 'explicit',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
'lines-between-class-members': [
|
|
52
|
+
'error',
|
|
53
|
+
{
|
|
54
|
+
enforce: [{ blankLine: 'always', prev: 'method', next: 'method' }],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
38
57
|
// turn on errors for missing imports
|
|
39
58
|
'import/no-unresolved': ['error', { ignore: ['\\.js$'] }],
|
|
40
59
|
// 'import/no-named-as-default-member': 'off',
|
package/README.md
CHANGED
|
@@ -191,16 +191,6 @@ Build the Project: Build the project using TypeScript.
|
|
|
191
191
|
npm run build
|
|
192
192
|
```
|
|
193
193
|
|
|
194
|
-
### ๐ค Running the Project
|
|
195
|
-
|
|
196
|
-
Run the Project Locally: You can run the project locally using the following command:
|
|
197
|
-
|
|
198
|
-
```
|
|
199
|
-
npm run start-local
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
This command starts the local development server.
|
|
203
|
-
|
|
204
194
|
### ๐งช Tests
|
|
205
195
|
|
|
206
196
|
Run Tests: The project includes a comprehensive set of tests. You can run the tests using:
|
|
@@ -212,7 +202,7 @@ npm test
|
|
|
212
202
|
Additionally, there are tests for running the project in a local environment:
|
|
213
203
|
|
|
214
204
|
```
|
|
215
|
-
npm run test-
|
|
205
|
+
npm run test-dev
|
|
216
206
|
```
|
|
217
207
|
|
|
218
208
|
Congratulations! You now have WAPI up and running, and you're ready to start developing your web applications.
|