@typetron/framework 0.3.17 → 0.3.18
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/Cache/Cache.d.ts +9 -0
- package/Cache/Cache.d.ts.map +1 -0
- package/Cache/Cache.js +7 -0
- package/Cache/Cache.js.map +1 -0
- package/Cache/CacheLoader.d.ts +8 -0
- package/Cache/CacheLoader.d.ts.map +1 -0
- package/Cache/CacheLoader.js +55 -0
- package/Cache/CacheLoader.js.map +1 -0
- package/Cache/Consumers/Cache.d.ts +18 -0
- package/Cache/Consumers/Cache.d.ts.map +1 -0
- package/Cache/Consumers/Cache.js +99 -0
- package/Cache/Consumers/Cache.js.map +1 -0
- package/Cache/Contracts/CacheInterface.d.ts +14 -0
- package/Cache/Contracts/CacheInterface.d.ts.map +1 -0
- package/Cache/Contracts/CacheInterface.js +3 -0
- package/Cache/Contracts/CacheInterface.js.map +1 -0
- package/Cache/Contracts/EngineInterface.d.ts +8 -0
- package/Cache/Contracts/EngineInterface.d.ts.map +1 -0
- package/Cache/Contracts/EngineInterface.js +3 -0
- package/Cache/Contracts/EngineInterface.js.map +1 -0
- package/Cache/Contracts/ServiceInterface.d.ts +8 -0
- package/Cache/Contracts/ServiceInterface.d.ts.map +1 -0
- package/Cache/Contracts/ServiceInterface.js +3 -0
- package/Cache/Contracts/ServiceInterface.js.map +1 -0
- package/Cache/Engines/DatabaseCache.d.ts +11 -0
- package/Cache/Engines/DatabaseCache.d.ts.map +1 -0
- package/Cache/Engines/DatabaseCache.js +40 -0
- package/Cache/Engines/DatabaseCache.js.map +1 -0
- package/Cache/Engines/FileCache.d.ts +22 -0
- package/Cache/Engines/FileCache.d.ts.map +1 -0
- package/Cache/Engines/FileCache.js +107 -0
- package/Cache/Engines/FileCache.js.map +1 -0
- package/Cache/Services/DatabaseCacheService.d.ts +13 -0
- package/Cache/Services/DatabaseCacheService.d.ts.map +1 -0
- package/Cache/Services/DatabaseCacheService.js +74 -0
- package/Cache/Services/DatabaseCacheService.js.map +1 -0
- package/Cache/Services/FileCacheService.d.ts +13 -0
- package/Cache/Services/FileCacheService.d.ts.map +1 -0
- package/Cache/Services/FileCacheService.js +60 -0
- package/Cache/Services/FileCacheService.js.map +1 -0
- package/Cache/Stores/DatabaseStore.d.ts +16 -0
- package/Cache/Stores/DatabaseStore.d.ts.map +1 -0
- package/Cache/Stores/DatabaseStore.js +208 -0
- package/Cache/Stores/DatabaseStore.js.map +1 -0
- package/Cache/Stores/FileStore.d.ts +16 -0
- package/Cache/Stores/FileStore.d.ts.map +1 -0
- package/Cache/Stores/FileStore.js +63 -0
- package/Cache/Stores/FileStore.js.map +1 -0
- package/Cache/Stores/MemoryStore.d.ts +13 -0
- package/Cache/Stores/MemoryStore.d.ts.map +1 -0
- package/Cache/Stores/MemoryStore.js +60 -0
- package/Cache/Stores/MemoryStore.js.map +1 -0
- package/Cache/index.d.ts +6 -0
- package/Cache/index.d.ts.map +1 -0
- package/Cache/index.js +18 -0
- package/Cache/index.js.map +1 -0
- package/Cache/types.d.ts +5 -0
- package/Cache/types.d.ts.map +1 -0
- package/Cache/types.js +3 -0
- package/Cache/types.js.map +1 -0
- package/Container/ClassResolver.d.ts +8 -8
- package/Container/ClassResolver.d.ts.map +1 -1
- package/Container/ClassResolver.js +89 -87
- package/Container/ClassResolver.js.map +1 -1
- package/Container/Container.d.ts +24 -24
- package/Container/Container.d.ts.map +1 -1
- package/Container/Container.js +118 -118
- package/Container/Container.js.map +1 -1
- package/Container/Contracts.d.ts +2 -2
- package/Container/Contracts.js +2 -2
- package/Container/Decorators.d.ts +4 -4
- package/Container/Decorators.js +21 -21
- package/Container/Metadata.d.ts +20 -20
- package/Container/Metadata.js +18 -18
- package/Container/Resolver.d.ts +18 -18
- package/Container/Resolver.js +15 -15
- package/Container/index.d.ts +5 -5
- package/Container/index.js +17 -17
- package/Database/Clauses/Where.js +1 -1
- package/Database/Connection.d.ts +20 -20
- package/Database/Connection.js +42 -42
- package/Database/Decorators.d.ts +36 -36
- package/Database/Decorators.js +116 -116
- package/Database/Drivers/DatabaseDriver.d.ts +28 -28
- package/Database/Drivers/DatabaseDriver.js +6 -6
- package/Database/Drivers/MySQL/Alter/index.d.ts +33 -33
- package/Database/Drivers/MySQL/Alter/index.js +61 -61
- package/Database/Drivers/MySQL/ColumnDefinition.d.ts +6 -6
- package/Database/Drivers/MySQL/ColumnDefinition.js +17 -17
- package/Database/Drivers/MySQL/Create.d.ts +9 -9
- package/Database/Drivers/MySQL/Create.js +37 -37
- package/Database/Drivers/MySQL/MysqlDriver.d.ts +41 -41
- package/Database/Drivers/MySQL/MysqlDriver.js +76 -76
- package/Database/Drivers/MySQL/Schema.d.ts +15 -15
- package/Database/Drivers/MySQL/Schema.js +65 -65
- package/Database/Drivers/MySQL/index.d.ts +1 -1
- package/Database/Drivers/MySQL/index.js +15 -15
- package/Database/Drivers/SQL/Schema.d.ts +6 -6
- package/Database/Drivers/SQL/Schema.js +57 -57
- package/Database/Drivers/SQL/Statements/Alter.d.ts +7 -7
- package/Database/Drivers/SQL/Statements/Alter.js +17 -17
- package/Database/Drivers/SQL/Statements/BaseStatement.d.ts +12 -12
- package/Database/Drivers/SQL/Statements/BaseStatement.js +46 -46
- package/Database/Drivers/SQL/Statements/Delete.d.ts +5 -5
- package/Database/Drivers/SQL/Statements/Delete.js +16 -16
- package/Database/Drivers/SQL/Statements/Insert.d.ts +6 -6
- package/Database/Drivers/SQL/Statements/Insert.js +23 -23
- package/Database/Drivers/SQL/Statements/Select.d.ts +7 -7
- package/Database/Drivers/SQL/Statements/Select.js +44 -44
- package/Database/Drivers/SQL/Statements/Update.d.ts +6 -6
- package/Database/Drivers/SQL/Statements/Update.js +27 -27
- package/Database/Drivers/SQL/index.d.ts +8 -8
- package/Database/Drivers/SQL/index.js +2 -2
- package/Database/Drivers/SQLite/Create.d.ts +9 -9
- package/Database/Drivers/SQLite/Create.js +36 -36
- package/Database/Drivers/SQLite/Schema.d.ts +15 -15
- package/Database/Drivers/SQLite/Schema.js +44 -44
- package/Database/Drivers/SQLite/SqliteDriver.d.ts +42 -42
- package/Database/Drivers/SQLite/SqliteDriver.d.ts.map +1 -1
- package/Database/Drivers/SQLite/SqliteDriver.js +102 -102
- package/Database/Drivers/SQLite/SqliteDriver.js.map +1 -1
- package/Database/Drivers/SQLite/index.d.ts +2 -2
- package/Database/Drivers/SQLite/index.js +26 -26
- package/Database/Drivers/SchemaContract.d.ts +8 -8
- package/Database/Drivers/SchemaContract.js +9 -9
- package/Database/Drivers/Statement.d.ts +9 -9
- package/Database/Drivers/Statement.js +15 -15
- package/Database/Drivers/index.d.ts +4 -4
- package/Database/Drivers/index.js +16 -16
- package/Database/Entity.d.ts +64 -64
- package/Database/Entity.d.ts.map +1 -1
- package/Database/Entity.js +252 -252
- package/Database/Entity.js.map +1 -1
- package/Database/EntityNotFoundError.d.ts +5 -5
- package/Database/EntityNotFoundError.js +10 -10
- package/Database/EntityProxyHandler.d.ts +5 -5
- package/Database/EntityProxyHandler.js +30 -30
- package/Database/EntityQuery.d.ts +28 -28
- package/Database/EntityQuery.js +156 -156
- package/Database/Expression.d.ts +3 -3
- package/Database/Expression.js +6 -6
- package/Database/Fields.d.ts +155 -155
- package/Database/Fields.js +548 -548
- package/Database/Helpers.d.ts +1 -1
- package/Database/Helpers.js +16 -16
- package/Database/List.d.ts +24 -24
- package/Database/List.d.ts.map +1 -1
- package/Database/List.js +49 -49
- package/Database/List.js.map +1 -1
- package/Database/Migrations/Migration.d.ts +7 -7
- package/Database/Migrations/Migration.js +9 -9
- package/Database/Migrations/MigrationHistory.d.ts +8 -8
- package/Database/Migrations/MigrationHistory.js +38 -38
- package/Database/Migrations/Migrator.d.ts +20 -20
- package/Database/Migrations/Migrator.js +118 -118
- package/Database/Migrations/index.d.ts +3 -3
- package/Database/Migrations/index.js +15 -15
- package/Database/ORM/BaseRelationship.d.ts +7 -7
- package/Database/ORM/BaseRelationship.js +10 -10
- package/Database/Query.d.ts +62 -62
- package/Database/Query.d.ts.map +1 -1
- package/Database/Query.js +265 -264
- package/Database/Query.js.map +1 -1
- package/Database/Seeders/Seeder.d.ts +3 -3
- package/Database/Seeders/Seeder.js +6 -6
- package/Database/Seeders/SeederManager.d.ts +8 -8
- package/Database/Seeders/SeederManager.js +24 -24
- package/Database/Seeders/index.d.ts +2 -2
- package/Database/Seeders/index.js +14 -14
- package/Database/StringExpression.d.ts +6 -6
- package/Database/StringExpression.js +14 -14
- package/Database/Types.d.ts +117 -117
- package/Database/Types.d.ts.map +1 -1
- package/Database/Types.js +94 -94
- package/Database/Types.js.map +1 -1
- package/Database/index.d.ts +20 -20
- package/Database/index.js +20 -20
- package/Encryption/index.d.ts +15 -15
- package/Encryption/index.js +53 -53
- package/Forms/Decorators.d.ts +6 -6
- package/Forms/Decorators.js +28 -28
- package/Forms/Form.d.ts +17 -17
- package/Forms/Form.js +69 -69
- package/Forms/FormFields.d.ts +9 -9
- package/Forms/FormFields.js +35 -35
- package/Forms/index.d.ts +3 -3
- package/Forms/index.js +15 -15
- package/Framework/App.d.ts +6 -6
- package/Framework/App.js +9 -9
- package/Framework/Application.d.ts +17 -17
- package/Framework/Application.d.ts.map +1 -1
- package/Framework/Application.js +94 -93
- package/Framework/Application.js.map +1 -1
- package/Framework/Auth/Auth.d.ts +24 -24
- package/Framework/Auth/Auth.js +108 -108
- package/Framework/Auth/Authenticatable.d.ts +6 -6
- package/Framework/Auth/Authenticatable.js +2 -2
- package/Framework/Auth/User.d.ts +10 -10
- package/Framework/Auth/User.js +37 -37
- package/Framework/Auth/index.d.ts +5 -5
- package/Framework/Auth/index.d.ts.map +1 -1
- package/Framework/Auth/index.js +45 -45
- package/Framework/Auth/index.js.map +1 -1
- package/Framework/Config/AppConfig.d.ts +18 -18
- package/Framework/Config/AppConfig.js +11 -11
- package/Framework/Config/AuthConfig.d.ts +8 -8
- package/Framework/Config/AuthConfig.js +7 -7
- package/Framework/Config/BaseConfig.d.ts +6 -6
- package/Framework/Config/BaseConfig.js +12 -12
- package/Framework/Config/CacheConfig.d.ts +16 -0
- package/Framework/Config/CacheConfig.d.ts.map +1 -0
- package/Framework/Config/CacheConfig.js +23 -0
- package/Framework/Config/CacheConfig.js.map +1 -0
- package/Framework/Config/DatabaseConfig.d.ts +10 -10
- package/Framework/Config/DatabaseConfig.js +25 -25
- package/Framework/Config/index.d.ts +5 -4
- package/Framework/Config/index.d.ts.map +1 -1
- package/Framework/Config/index.js +17 -16
- package/Framework/Config/index.js.map +1 -1
- package/Framework/Middleware/AuthMiddleware.d.ts +7 -7
- package/Framework/Middleware/AuthMiddleware.js +63 -63
- package/Framework/Middleware/CorsMiddleware.d.ts +6 -6
- package/Framework/Middleware/CorsMiddleware.js +43 -43
- package/Framework/Middleware/StaticAssetsMiddleware.d.ts +14 -14
- package/Framework/Middleware/StaticAssetsMiddleware.js +104 -104
- package/Framework/Middleware/index.d.ts +2 -2
- package/Framework/Middleware/index.js +14 -14
- package/Framework/Provider.d.ts +5 -5
- package/Framework/Provider.js +20 -20
- package/Framework/Providers/CacheProvider.d.ts +7 -0
- package/Framework/Providers/CacheProvider.d.ts.map +1 -0
- package/Framework/Providers/CacheProvider.js +39 -0
- package/Framework/Providers/CacheProvider.js.map +1 -0
- package/Framework/Providers/DatabaseProvider.d.ts +9 -9
- package/Framework/Providers/DatabaseProvider.js +63 -63
- package/Framework/Providers/WebsocketsProvider.d.ts +12 -12
- package/Framework/Providers/WebsocketsProvider.js +122 -122
- package/Framework/Resolvers/AuthResolver.d.ts +5 -5
- package/Framework/Resolvers/AuthResolver.js +14 -14
- package/Framework/Resolvers/EntityResolver.d.ts +9 -9
- package/Framework/Resolvers/EntityResolver.js +40 -40
- package/Framework/Resolvers/FormResolver.d.ts +9 -9
- package/Framework/Resolvers/FormResolver.js +32 -32
- package/Framework/RootDir.d.ts +2 -2
- package/Framework/RootDir.js +6 -6
- package/Framework/index.d.ts +7 -6
- package/Framework/index.d.ts.map +1 -1
- package/Framework/index.js +19 -18
- package/Framework/index.js.map +1 -1
- package/Models/Model.d.ts +9 -9
- package/Models/Model.js +35 -35
- package/Models/index.d.ts +21 -21
- package/Models/index.d.ts.map +1 -1
- package/Models/index.js +58 -58
- package/Models/index.js.map +1 -1
- package/Router/BaseController.d.ts +4 -4
- package/Router/BaseController.js +20 -20
- package/Router/Decorators.d.ts +21 -21
- package/Router/Decorators.js +170 -170
- package/Router/Guard.d.ts +4 -4
- package/Router/Guard.js +10 -10
- package/Router/Http/Contracts.d.ts +3 -3
- package/Router/Http/Contracts.js +2 -2
- package/Router/Http/ErrorHandler.d.ts +9 -9
- package/Router/Http/ErrorHandler.js +51 -51
- package/Router/Http/ErrorHandlerInterface.d.ts +5 -5
- package/Router/Http/ErrorHandlerInterface.js +6 -6
- package/Router/Http/Errors/HttpError.d.ts +7 -7
- package/Router/Http/Errors/HttpError.js +15 -15
- package/Router/Http/Handler.d.ts +15 -15
- package/Router/Http/Handler.js +131 -131
- package/Router/Http/Request.d.ts +22 -22
- package/Router/Http/Request.js +151 -151
- package/Router/Http/Response.d.ts +17 -17
- package/Router/Http/Response.js +51 -51
- package/Router/Http/index.d.ts +83 -83
- package/Router/Http/index.js +99 -99
- package/Router/Metadata.d.ts +31 -31
- package/Router/Metadata.js +25 -25
- package/Router/Middleware.d.ts +5 -5
- package/Router/Middleware.js +2 -2
- package/Router/Route.d.ts +23 -23
- package/Router/Route.js +110 -110
- package/Router/RouteNotFoundError.d.ts +3 -3
- package/Router/RouteNotFoundError.js +9 -9
- package/Router/Router.d.ts +12 -12
- package/Router/Router.js +32 -32
- package/Router/Websockets/Handler.d.ts +12 -12
- package/Router/Websockets/Handler.js +59 -59
- package/Router/Websockets/WebsocketEvent.d.ts +15 -15
- package/Router/Websockets/WebsocketEvent.js +53 -53
- package/Router/Websockets/index.d.ts +16 -16
- package/Router/Websockets/index.d.ts.map +1 -1
- package/Router/Websockets/index.js +57 -57
- package/Router/Websockets/index.js.map +1 -1
- package/Router/Websockets/types.d.ts +20 -20
- package/Router/Websockets/types.js +8 -8
- package/Router/index.d.ts +6 -6
- package/Router/index.js +18 -18
- package/Storage/File.d.ts +11 -11
- package/Storage/File.js +46 -46
- package/Storage/Image.d.ts +3 -3
- package/Storage/Image.js +7 -7
- package/Storage/InvalidImage.d.ts +3 -3
- package/Storage/InvalidImage.js +7 -7
- package/Storage/Storage.d.ts +13 -12
- package/Storage/Storage.d.ts.map +1 -1
- package/Storage/Storage.js +104 -110
- package/Storage/Storage.js.map +1 -1
- package/Storage/index.d.ts +4 -4
- package/Storage/index.js +16 -16
- package/Storage/utils.d.ts +5 -5
- package/Storage/utils.js +20 -20
- package/Support/Array.d.ts +28 -28
- package/Support/Array.d.ts.map +1 -1
- package/Support/Array.js +108 -108
- package/Support/Array.js.map +1 -1
- package/Support/Math.d.ts +6 -6
- package/Support/Math.js +7 -7
- package/Support/Metadata.d.ts +14 -14
- package/Support/Metadata.js +20 -20
- package/Support/String.d.ts +11 -11
- package/Support/String.js +23 -23
- package/Support/index.d.ts +14 -13
- package/Support/index.d.ts.map +1 -1
- package/Support/index.js +6 -5
- package/Support/index.js.map +1 -1
- package/Support/utils.d.ts +2 -0
- package/Support/utils.d.ts.map +1 -0
- package/Support/utils.js +13 -0
- package/Support/utils.js.map +1 -0
- package/Testing/TestCase.d.ts +32 -32
- package/Testing/TestCase.js +130 -130
- package/Validation/Rule.d.ts +6 -6
- package/Validation/Rule.js +6 -6
- package/Validation/RuleInterface.d.ts +6 -6
- package/Validation/RuleInterface.js +2 -2
- package/Validation/Rules/Email.d.ts +3 -3
- package/Validation/Rules/Email.js +20 -20
- package/Validation/Rules/FileExtension.d.ts +3 -3
- package/Validation/Rules/FileExtension.js +22 -22
- package/Validation/Rules/MaxLength.d.ts +3 -3
- package/Validation/Rules/MaxLength.js +19 -19
- package/Validation/Rules/MinLength.d.ts +3 -3
- package/Validation/Rules/MinLength.js +19 -19
- package/Validation/Rules/Optional.d.ts +3 -3
- package/Validation/Rules/Optional.js +19 -19
- package/Validation/Rules/Required.d.ts +3 -3
- package/Validation/Rules/Required.js +26 -26
- package/Validation/Validator.d.ts +11 -11
- package/Validation/Validator.js +10 -10
- package/Validation/index.d.ts +9 -9
- package/Validation/index.js +21 -21
- package/package.json +9 -5
- package/tests/Cache/DatabaseStoreTest.d.ts +2 -0
- package/tests/Cache/DatabaseStoreTest.d.ts.map +1 -0
- package/tests/Cache/DatabaseStoreTest.js +138 -0
- package/tests/Cache/DatabaseStoreTest.js.map +1 -0
- package/tests/Cache/FileStoreTest.d.ts +2 -0
- package/tests/Cache/FileStoreTest.d.ts.map +1 -0
- package/tests/Cache/FileStoreTest.js +142 -0
- package/tests/Cache/FileStoreTest.js.map +1 -0
- package/tests/Cache/MemoryStoreTest.d.ts +2 -0
- package/tests/Cache/MemoryStoreTest.d.ts.map +1 -0
- package/tests/Cache/MemoryStoreTest.js +141 -0
- package/tests/Cache/MemoryStoreTest.js.map +1 -0
- package/tests/Container/ContainerTest.d.ts +1 -1
- package/tests/Container/ContainerTest.js +395 -395
- package/tests/Database/Drivers/MySQL/AlterTest.d.ts +1 -1
- package/tests/Database/Drivers/MySQL/AlterTest.js +135 -135
- package/tests/Database/Drivers/MySQL/CreateTest.d.ts +1 -1
- package/tests/Database/Drivers/MySQL/CreateTest.js +57 -57
- package/tests/Database/Drivers/MysqlDriverTest.d.ts +1 -1
- package/tests/Database/Drivers/MysqlDriverTest.js +149 -149
- package/tests/Database/Drivers/SqliteDriverTest.d.ts +1 -1
- package/tests/Database/Drivers/SqliteDriverTest.js +135 -135
- package/tests/Database/Entities/Article.d.ts +10 -10
- package/tests/Database/Entities/Article.js +42 -42
- package/tests/Database/Entities/Profile.d.ts +10 -10
- package/tests/Database/Entities/Profile.js +38 -38
- package/tests/Database/Entities/Role.d.ts +8 -8
- package/tests/Database/Entities/Role.js +30 -30
- package/tests/Database/Entities/User.d.ts +15 -15
- package/tests/Database/Entities/User.js +57 -57
- package/tests/Database/EntityRelationshipsTest.d.ts +1 -1
- package/tests/Database/EntityRelationshipsTest.js +552 -552
- package/tests/Database/EntityTest.d.ts +1 -1
- package/tests/Database/EntityTest.js +233 -233
- package/tests/Database/Migrations/RunnerTest.d.ts +1 -1
- package/tests/Database/Migrations/RunnerTest.js +111 -111
- package/tests/Database/Migrations/migrations/1.createUserTable.d.ts +5 -5
- package/tests/Database/Migrations/migrations/1.createUserTable.js +13 -13
- package/tests/Database/Migrations/migrations/2.createArticlesTable.d.ts +5 -5
- package/tests/Database/Migrations/migrations/2.createArticlesTable.js +13 -13
- package/tests/Database/QueryTest.d.ts +1 -1
- package/tests/Database/QueryTest.js +622 -622
- package/tests/Database/SchemaTest.d.ts +1 -1
- package/tests/Database/SchemaTest.js +45 -45
- package/tests/Database/Seeders/RunnerTest.d.ts +1 -1
- package/tests/Database/Seeders/RunnerTest.js +43 -43
- package/tests/Database/Seeders/seeders/RandomSeeder.d.ts +4 -4
- package/tests/Database/Seeders/seeders/RandomSeeder.js +13 -13
- package/tests/Database/utils.d.ts +5 -5
- package/tests/Database/utils.js +18 -18
- package/tests/Forms/FormsTest.d.ts +1 -1
- package/tests/Forms/FormsTest.js +79 -79
- package/tests/Framework/Middleware/StaticAssetsMiddlewareTest.d.ts +1 -1
- package/tests/Framework/Middleware/StaticAssetsMiddlewareTest.js +165 -165
- package/tests/Framework/Resolvers/EntityResolverTest.d.ts +1 -1
- package/tests/Framework/Resolvers/EntityResolverTest.js +59 -59
- package/tests/Model/ModelTest.d.ts +1 -1
- package/tests/Model/ModelTest.js +233 -233
- package/tests/Router/HttpHandlerTest.d.ts +1 -1
- package/tests/Router/HttpHandlerTest.js +36 -36
- package/tests/Router/WebSocketsHandlerTest.d.ts +1 -1
- package/tests/Router/WebSocketsHandlerTest.js +35 -35
- package/tests/Support/ArrayTest.d.ts +1 -1
- package/tests/Support/ArrayTest.js +258 -258
- package/tests/Support/StringTest.d.ts +1 -1
- package/tests/Support/StringTest.js +38 -38
- package/tests/Validation/RulesTest.d.ts +1 -1
- package/tests/Validation/RulesTest.js +67 -67
- package/Database/Drivers/SQL/Statements/Create.d.ts +0 -7
- package/Database/Drivers/SQL/Statements/Create.d.ts.map +0 -1
- package/Database/Drivers/SQL/Statements/Create.js +0 -22
- package/Database/Drivers/SQL/Statements/Create.js.map +0 -1
- package/LICENSE.md +0 -21
- package/Readme.md +0 -123
package/Validation/Rule.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Rule = void 0;
|
|
4
|
-
class Rule {
|
|
5
|
-
}
|
|
6
|
-
exports.Rule = Rule;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Rule = void 0;
|
|
4
|
+
class Rule {
|
|
5
|
+
}
|
|
6
|
+
exports.Rule = Rule;
|
|
7
7
|
//# sourceMappingURL=Rule.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RuleValue } from '.';
|
|
2
|
-
export interface RuleInterface {
|
|
3
|
-
identifier: string;
|
|
4
|
-
passes(attribute: string, value: RuleValue): boolean;
|
|
5
|
-
message(attribute: string, value: RuleValue): string;
|
|
6
|
-
}
|
|
1
|
+
import { RuleValue } from '.';
|
|
2
|
+
export interface RuleInterface {
|
|
3
|
+
identifier: string;
|
|
4
|
+
passes(attribute: string, value: RuleValue): boolean;
|
|
5
|
+
message(attribute: string, value: RuleValue): string;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=RuleInterface.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=RuleInterface.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuleInterface } from '..';
|
|
2
|
-
import { Type } from '@Typetron/Support';
|
|
3
|
-
export declare function Email(message?: string): Type<RuleInterface>;
|
|
1
|
+
import { RuleInterface } from '..';
|
|
2
|
+
import { Type } from '@Typetron/Support';
|
|
3
|
+
export declare function Email(message?: string): Type<RuleInterface>;
|
|
4
4
|
//# sourceMappingURL=Email.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Email = void 0;
|
|
4
|
-
const Rule_1 = require("../Rule");
|
|
5
|
-
function Email(message) {
|
|
6
|
-
return class extends Rule_1.Rule {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.identifier = 'email';
|
|
10
|
-
this.regex = /^(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;
|
|
11
|
-
}
|
|
12
|
-
passes(attribute, value) {
|
|
13
|
-
return this.regex.test(String(value).trim());
|
|
14
|
-
}
|
|
15
|
-
message(attribute) {
|
|
16
|
-
return message !== null && message !== void 0 ? message : `The ${attribute} must be a valid email address`;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
exports.Email = Email;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Email = void 0;
|
|
4
|
+
const Rule_1 = require("../Rule");
|
|
5
|
+
function Email(message) {
|
|
6
|
+
return class extends Rule_1.Rule {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.identifier = 'email';
|
|
10
|
+
this.regex = /^(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;
|
|
11
|
+
}
|
|
12
|
+
passes(attribute, value) {
|
|
13
|
+
return this.regex.test(String(value).trim());
|
|
14
|
+
}
|
|
15
|
+
message(attribute) {
|
|
16
|
+
return message !== null && message !== void 0 ? message : `The ${attribute} must be a valid email address`;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
exports.Email = Email;
|
|
21
21
|
//# sourceMappingURL=Email.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuleInterface } from '@Typetron/Validation';
|
|
2
|
-
import { Type } from '@Typetron/Support';
|
|
3
|
-
export declare function FileExtension(extensions: string[], message?: string): Type<RuleInterface>;
|
|
1
|
+
import { RuleInterface } from '@Typetron/Validation';
|
|
2
|
+
import { Type } from '@Typetron/Support';
|
|
3
|
+
export declare function FileExtension(extensions: string[], message?: string): Type<RuleInterface>;
|
|
4
4
|
//# sourceMappingURL=FileExtension.d.ts.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileExtension = void 0;
|
|
4
|
-
const Validation_1 = require("@Typetron/Validation");
|
|
5
|
-
function FileExtension(extensions, message) {
|
|
6
|
-
return class extends Validation_1.Rule {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.identifier = 'fileExtension';
|
|
10
|
-
}
|
|
11
|
-
passes(attribute, value) {
|
|
12
|
-
return value.extension ? extensions.includes(value.extension) : false;
|
|
13
|
-
}
|
|
14
|
-
message(attribute) {
|
|
15
|
-
const messagePart = extensions.length === 1
|
|
16
|
-
? `the '.${extensions.first()}' extension`
|
|
17
|
-
: `these extensions: ${extensions.map(extension => `.${extension}`).join(', ')}`;
|
|
18
|
-
return message !== null && message !== void 0 ? message : `The ${attribute} must have ${messagePart}`;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
exports.FileExtension = FileExtension;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileExtension = void 0;
|
|
4
|
+
const Validation_1 = require("@Typetron/Validation");
|
|
5
|
+
function FileExtension(extensions, message) {
|
|
6
|
+
return class extends Validation_1.Rule {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.identifier = 'fileExtension';
|
|
10
|
+
}
|
|
11
|
+
passes(attribute, value) {
|
|
12
|
+
return value.extension ? extensions.includes(value.extension) : false;
|
|
13
|
+
}
|
|
14
|
+
message(attribute) {
|
|
15
|
+
const messagePart = extensions.length === 1
|
|
16
|
+
? `the '.${extensions.first()}' extension`
|
|
17
|
+
: `these extensions: ${extensions.map(extension => `.${extension}`).join(', ')}`;
|
|
18
|
+
return message !== null && message !== void 0 ? message : `The ${attribute} must have ${messagePart}`;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.FileExtension = FileExtension;
|
|
23
23
|
//# sourceMappingURL=FileExtension.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuleInterface } from '..';
|
|
2
|
-
import { Type } from '../../Support';
|
|
3
|
-
export declare function MaxLength(max: number, message?: string): Type<RuleInterface>;
|
|
1
|
+
import { RuleInterface } from '..';
|
|
2
|
+
import { Type } from '../../Support';
|
|
3
|
+
export declare function MaxLength(max: number, message?: string): Type<RuleInterface>;
|
|
4
4
|
//# sourceMappingURL=MaxLength.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MaxLength = void 0;
|
|
4
|
-
const Rule_1 = require("../Rule");
|
|
5
|
-
function MaxLength(max, message) {
|
|
6
|
-
return class extends Rule_1.Rule {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.identifier = 'maxLength';
|
|
10
|
-
}
|
|
11
|
-
passes(attribute, value) {
|
|
12
|
-
return Boolean(value && String(value).length <= max);
|
|
13
|
-
}
|
|
14
|
-
message(attribute) {
|
|
15
|
-
return message !== null && message !== void 0 ? message : `The ${attribute} must have at most ${max} characters`;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
exports.MaxLength = MaxLength;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaxLength = void 0;
|
|
4
|
+
const Rule_1 = require("../Rule");
|
|
5
|
+
function MaxLength(max, message) {
|
|
6
|
+
return class extends Rule_1.Rule {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.identifier = 'maxLength';
|
|
10
|
+
}
|
|
11
|
+
passes(attribute, value) {
|
|
12
|
+
return Boolean(value && String(value).length <= max);
|
|
13
|
+
}
|
|
14
|
+
message(attribute) {
|
|
15
|
+
return message !== null && message !== void 0 ? message : `The ${attribute} must have at most ${max} characters`;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
exports.MaxLength = MaxLength;
|
|
20
20
|
//# sourceMappingURL=MaxLength.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuleInterface } from '../RuleInterface';
|
|
2
|
-
import { Type } from '../../Support';
|
|
3
|
-
export declare function MinLength(min: number, message?: string): Type<RuleInterface>;
|
|
1
|
+
import { RuleInterface } from '../RuleInterface';
|
|
2
|
+
import { Type } from '../../Support';
|
|
3
|
+
export declare function MinLength(min: number, message?: string): Type<RuleInterface>;
|
|
4
4
|
//# sourceMappingURL=MinLength.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MinLength = void 0;
|
|
4
|
-
const Rule_1 = require("../Rule");
|
|
5
|
-
function MinLength(min, message) {
|
|
6
|
-
return class extends Rule_1.Rule {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.identifier = 'minLength';
|
|
10
|
-
}
|
|
11
|
-
passes(attribute, value) {
|
|
12
|
-
return Boolean(value && String(value).length >= min);
|
|
13
|
-
}
|
|
14
|
-
message(attribute) {
|
|
15
|
-
return message !== null && message !== void 0 ? message : `The ${attribute} must have at least ${min} characters`;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
exports.MinLength = MinLength;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MinLength = void 0;
|
|
4
|
+
const Rule_1 = require("../Rule");
|
|
5
|
+
function MinLength(min, message) {
|
|
6
|
+
return class extends Rule_1.Rule {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.identifier = 'minLength';
|
|
10
|
+
}
|
|
11
|
+
passes(attribute, value) {
|
|
12
|
+
return Boolean(value && String(value).length >= min);
|
|
13
|
+
}
|
|
14
|
+
message(attribute) {
|
|
15
|
+
return message !== null && message !== void 0 ? message : `The ${attribute} must have at least ${min} characters`;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
exports.MinLength = MinLength;
|
|
20
20
|
//# sourceMappingURL=MinLength.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuleInterface } from '..';
|
|
2
|
-
import { Type } from '@Typetron/Support';
|
|
3
|
-
export declare function Optional(): Type<RuleInterface>;
|
|
1
|
+
import { RuleInterface } from '..';
|
|
2
|
+
import { Type } from '@Typetron/Support';
|
|
3
|
+
export declare function Optional(): Type<RuleInterface>;
|
|
4
4
|
//# sourceMappingURL=Optional.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Optional = void 0;
|
|
4
|
-
const Rule_1 = require("../Rule");
|
|
5
|
-
function Optional() {
|
|
6
|
-
return class extends Rule_1.Rule {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.identifier = 'optional';
|
|
10
|
-
}
|
|
11
|
-
passes(attribute, value) {
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
message(attribute) {
|
|
15
|
-
return '';
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
exports.Optional = Optional;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Optional = void 0;
|
|
4
|
+
const Rule_1 = require("../Rule");
|
|
5
|
+
function Optional() {
|
|
6
|
+
return class extends Rule_1.Rule {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.identifier = 'optional';
|
|
10
|
+
}
|
|
11
|
+
passes(attribute, value) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
message(attribute) {
|
|
15
|
+
return '';
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
exports.Optional = Optional;
|
|
20
20
|
//# sourceMappingURL=Optional.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuleInterface } from '..';
|
|
2
|
-
import { Type } from '@Typetron/Support';
|
|
3
|
-
export declare function Required(message?: string): Type<RuleInterface>;
|
|
1
|
+
import { RuleInterface } from '..';
|
|
2
|
+
import { Type } from '@Typetron/Support';
|
|
3
|
+
export declare function Required(message?: string): Type<RuleInterface>;
|
|
4
4
|
//# sourceMappingURL=Required.d.ts.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Required = void 0;
|
|
4
|
-
function Required(message) {
|
|
5
|
-
return class {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.identifier = 'required';
|
|
8
|
-
}
|
|
9
|
-
passes(attribute, value) {
|
|
10
|
-
if (value === undefined || value === null) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
if (typeof value === 'string' && value.trim() === '') {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
if (value.constructor === Array && value.length === 0) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
message(attribute) {
|
|
22
|
-
return message !== null && message !== void 0 ? message : `The ${attribute} is required`;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.Required = Required;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Required = void 0;
|
|
4
|
+
function Required(message) {
|
|
5
|
+
return class {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.identifier = 'required';
|
|
8
|
+
}
|
|
9
|
+
passes(attribute, value) {
|
|
10
|
+
if (value === undefined || value === null) {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
if (typeof value === 'string' && value.trim() === '') {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (value.constructor === Array && value.length === 0) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
message(attribute) {
|
|
22
|
+
return message !== null && message !== void 0 ? message : `The ${attribute} is required`;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.Required = Required;
|
|
27
27
|
//# sourceMappingURL=Required.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { RuleInterface } from './RuleInterface';
|
|
2
|
-
import { Type } from '../Support';
|
|
3
|
-
export declare abstract class Validator<T> {
|
|
4
|
-
data: T;
|
|
5
|
-
rules: {
|
|
6
|
-
[key in keyof T]?: (RuleInterface | Type<RuleInterface>)[];
|
|
7
|
-
};
|
|
8
|
-
protected constructor(data: T, rules: {
|
|
9
|
-
[key in keyof T]?: (RuleInterface | Type<RuleInterface>)[];
|
|
10
|
-
});
|
|
11
|
-
}
|
|
1
|
+
import { RuleInterface } from './RuleInterface';
|
|
2
|
+
import { Type } from '../Support';
|
|
3
|
+
export declare abstract class Validator<T> {
|
|
4
|
+
data: T;
|
|
5
|
+
rules: {
|
|
6
|
+
[key in keyof T]?: (RuleInterface | Type<RuleInterface>)[];
|
|
7
|
+
};
|
|
8
|
+
protected constructor(data: T, rules: {
|
|
9
|
+
[key in keyof T]?: (RuleInterface | Type<RuleInterface>)[];
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
12
|
//# sourceMappingURL=Validator.d.ts.map
|
package/Validation/Validator.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Validator = void 0;
|
|
4
|
-
class Validator {
|
|
5
|
-
constructor(data, rules) {
|
|
6
|
-
this.data = data;
|
|
7
|
-
this.rules = rules;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.Validator = Validator;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Validator = void 0;
|
|
4
|
+
class Validator {
|
|
5
|
+
constructor(data, rules) {
|
|
6
|
+
this.data = data;
|
|
7
|
+
this.rules = rules;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Validator = Validator;
|
|
11
11
|
//# sourceMappingURL=Validator.js.map
|
package/Validation/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare type RuleValue = any;
|
|
2
|
-
export * from './RuleInterface';
|
|
3
|
-
export * from './Validator';
|
|
4
|
-
export * from './Rule';
|
|
5
|
-
export * from './Rules/MaxLength';
|
|
6
|
-
export * from './Rules/MinLength';
|
|
7
|
-
export * from './Rules/Required';
|
|
8
|
-
export * from './Rules/Email';
|
|
9
|
-
export * from './Rules/Optional';
|
|
1
|
+
export declare type RuleValue = any;
|
|
2
|
+
export * from './RuleInterface';
|
|
3
|
+
export * from './Validator';
|
|
4
|
+
export * from './Rule';
|
|
5
|
+
export * from './Rules/MaxLength';
|
|
6
|
+
export * from './Rules/MinLength';
|
|
7
|
+
export * from './Rules/Required';
|
|
8
|
+
export * from './Rules/Email';
|
|
9
|
+
export * from './Rules/Optional';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/Validation/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./RuleInterface"), exports);
|
|
14
|
-
__exportStar(require("./Validator"), exports);
|
|
15
|
-
__exportStar(require("./Rule"), exports);
|
|
16
|
-
__exportStar(require("./Rules/MaxLength"), exports);
|
|
17
|
-
__exportStar(require("./Rules/MinLength"), exports);
|
|
18
|
-
__exportStar(require("./Rules/Required"), exports);
|
|
19
|
-
__exportStar(require("./Rules/Email"), exports);
|
|
20
|
-
__exportStar(require("./Rules/Optional"), exports);
|
|
21
|
-
// export * from './Rules/FileExtension'
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./RuleInterface"), exports);
|
|
14
|
+
__exportStar(require("./Validator"), exports);
|
|
15
|
+
__exportStar(require("./Rule"), exports);
|
|
16
|
+
__exportStar(require("./Rules/MaxLength"), exports);
|
|
17
|
+
__exportStar(require("./Rules/MinLength"), exports);
|
|
18
|
+
__exportStar(require("./Rules/Required"), exports);
|
|
19
|
+
__exportStar(require("./Rules/Email"), exports);
|
|
20
|
+
__exportStar(require("./Rules/Optional"), exports);
|
|
21
|
+
// export * from './Rules/FileExtension'
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typetron/framework",
|
|
3
3
|
"description": "Modern Node.js framework for modern apps written in Typescript",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.18",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"typetron",
|
|
8
8
|
"framework",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"dev": "tsc --watch",
|
|
20
20
|
"test": "mocha",
|
|
21
21
|
"test:watch": "mocha --watch",
|
|
22
|
-
"preversion": "npm test"
|
|
22
|
+
"preversion": "npm test",
|
|
23
|
+
"lint": "eslint -c .eslintrc.json --ext .ts <mySrcFolder>"
|
|
23
24
|
},
|
|
24
25
|
"engines": {
|
|
25
26
|
"node": ">= 12.13.0"
|
|
@@ -27,11 +28,11 @@
|
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"bcryptjs": "^2.4.3",
|
|
29
30
|
"busboy": "^1.6.0",
|
|
30
|
-
"jsonwebtoken": "^
|
|
31
|
+
"jsonwebtoken": "^9.0.0",
|
|
31
32
|
"mysql": "^2.18.1",
|
|
32
33
|
"sqlite3": "^5.0.2",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
34
|
+
"ts-mockito": "^2.6.1",
|
|
35
|
+
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.14.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@testdeck/mocha": "^0.1.2",
|
|
@@ -43,7 +44,10 @@
|
|
|
43
44
|
"@types/mysql": "^2.15.19",
|
|
44
45
|
"@types/node": "^16.9.3",
|
|
45
46
|
"@types/sqlite3": "^3.1.7",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^6.2.1",
|
|
48
|
+
"@typescript-eslint/parser": "^6.2.1",
|
|
46
49
|
"chai": "^4.3.4",
|
|
50
|
+
"eslint": "^8.46.0",
|
|
47
51
|
"mocha": "^9.1.1",
|
|
48
52
|
"nyc": "^15.1.0",
|
|
49
53
|
"reflect-metadata": "^0.1.13",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatabaseStoreTest.d.ts","sourceRoot":"","sources":["../../../tests/Cache/DatabaseStoreTest.ts"],"names":[],"mappings":""}
|