@adonisjs/core 6.1.5-2 → 6.1.5-3
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/build/commands/build.d.ts +3 -0
- package/build/commands/build.d.ts.map +1 -0
- package/build/commands/build.js +22 -2
- package/build/commands/commands.json +1 -1
- package/build/commands/configure.d.ts +1 -0
- package/build/commands/configure.d.ts.map +1 -0
- package/build/commands/configure.js +2 -1
- package/build/commands/eject.d.ts +1 -0
- package/build/commands/eject.d.ts.map +1 -0
- package/build/commands/eject.js +2 -1
- package/build/commands/generate_key.d.ts +1 -0
- package/build/commands/generate_key.d.ts.map +1 -0
- package/build/commands/generate_key.js +2 -1
- package/build/commands/inspect_rcfile.d.ts +7 -0
- package/build/commands/inspect_rcfile.d.ts.map +1 -0
- package/build/commands/inspect_rcfile.js +10 -0
- package/build/commands/list/routes.d.ts +1 -0
- package/build/commands/list/routes.d.ts.map +1 -0
- package/build/commands/list/routes.js +2 -1
- package/build/commands/make/_base.d.ts +23 -1
- package/build/commands/make/_base.d.ts.map +1 -0
- package/build/commands/make/_base.js +11 -2
- package/build/commands/make/command.d.ts +1 -0
- package/build/commands/make/command.d.ts.map +1 -0
- package/build/commands/make/command.js +2 -1
- package/build/commands/make/controller.d.ts +1 -0
- package/build/commands/make/controller.d.ts.map +1 -0
- package/build/commands/make/controller.js +2 -1
- package/build/commands/make/event.d.ts +1 -0
- package/build/commands/make/event.d.ts.map +1 -0
- package/build/commands/make/event.js +2 -1
- package/build/commands/make/listener.d.ts +1 -0
- package/build/commands/make/listener.d.ts.map +1 -0
- package/build/commands/make/listener.js +2 -1
- package/build/commands/make/middleware.d.ts +1 -0
- package/build/commands/make/middleware.d.ts.map +1 -0
- package/build/commands/make/middleware.js +2 -1
- package/build/commands/make/prldfile.d.ts +9 -0
- package/build/commands/make/prldfile.d.ts.map +1 -0
- package/build/commands/make/prldfile.js +28 -0
- package/build/commands/make/provider.d.ts +1 -0
- package/build/commands/make/provider.d.ts.map +1 -0
- package/build/commands/make/provider.js +5 -2
- package/build/commands/make/service.d.ts +9 -0
- package/build/commands/make/service.d.ts.map +1 -0
- package/build/commands/make/service.js +26 -0
- package/build/commands/make/test.d.ts +1 -0
- package/build/commands/make/test.d.ts.map +1 -0
- package/build/commands/make/test.js +2 -1
- package/build/commands/serve.d.ts +3 -0
- package/build/commands/serve.d.ts.map +1 -0
- package/build/commands/serve.js +21 -1
- package/build/commands/test.d.ts +21 -0
- package/build/commands/test.d.ts.map +1 -0
- package/build/commands/test.js +156 -0
- package/build/factories/app.d.ts +1 -0
- package/build/factories/app.d.ts.map +1 -0
- package/build/factories/bodyparser.d.ts +1 -0
- package/build/factories/bodyparser.d.ts.map +1 -0
- package/build/factories/core/ace.d.ts +1 -0
- package/build/factories/core/ace.d.ts.map +1 -0
- package/build/factories/core/ignitor.d.ts +1 -0
- package/build/factories/core/ignitor.d.ts.map +1 -0
- package/build/factories/core/main.d.ts +1 -0
- package/build/factories/core/main.d.ts.map +1 -0
- package/build/factories/core/test_utils.d.ts +1 -0
- package/build/factories/core/test_utils.d.ts.map +1 -0
- package/build/factories/encryption.d.ts +1 -0
- package/build/factories/encryption.d.ts.map +1 -0
- package/build/factories/events.d.ts +1 -0
- package/build/factories/events.d.ts.map +1 -0
- package/build/factories/hash.d.ts +1 -0
- package/build/factories/hash.d.ts.map +1 -0
- package/build/factories/http.d.ts +1 -0
- package/build/factories/http.d.ts.map +1 -0
- package/build/factories/logger.d.ts +1 -0
- package/build/factories/logger.d.ts.map +1 -0
- package/build/factories/stubs.d.ts +1 -0
- package/build/factories/stubs.d.ts.map +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -0
- package/build/legacy/validator.d.ts +1 -0
- package/build/legacy/validator.d.ts.map +1 -0
- package/build/modules/ace/commands.d.ts +1 -0
- package/build/modules/ace/commands.d.ts.map +1 -0
- package/build/modules/ace/commands.js +4 -2
- package/build/modules/ace/create_kernel.d.ts +1 -0
- package/build/modules/ace/create_kernel.d.ts.map +1 -0
- package/build/modules/ace/kernel.d.ts +1 -0
- package/build/modules/ace/kernel.d.ts.map +1 -0
- package/build/modules/ace/main.d.ts +1 -0
- package/build/modules/ace/main.d.ts.map +1 -0
- package/build/modules/ace/shell.d.ts +1 -0
- package/build/modules/ace/shell.d.ts.map +1 -0
- package/build/modules/app.d.ts +1 -0
- package/build/modules/app.d.ts.map +1 -0
- package/build/modules/bodyparser/bodyparser_middleware.d.ts +1 -0
- package/build/modules/bodyparser/bodyparser_middleware.d.ts.map +1 -0
- package/build/modules/bodyparser/main.d.ts +1 -0
- package/build/modules/bodyparser/main.d.ts.map +1 -0
- package/build/modules/config.d.ts +1 -0
- package/build/modules/config.d.ts.map +1 -0
- package/build/modules/container.d.ts +1 -0
- package/build/modules/container.d.ts.map +1 -0
- package/build/modules/encryption.d.ts +1 -0
- package/build/modules/encryption.d.ts.map +1 -0
- package/build/modules/env.d.ts +1 -0
- package/build/modules/env.d.ts.map +1 -0
- package/build/modules/events.d.ts +1 -0
- package/build/modules/events.d.ts.map +1 -0
- package/build/modules/hash/define_config.d.ts +1 -0
- package/build/modules/hash/define_config.d.ts.map +1 -0
- package/build/modules/hash/drivers_collection.d.ts +4 -4
- package/build/modules/hash/drivers_collection.d.ts.map +1 -0
- package/build/modules/hash/drivers_collection.js +2 -8
- package/build/modules/hash/main.d.ts +2 -0
- package/build/modules/hash/main.d.ts.map +1 -0
- package/build/modules/hash/main.js +1 -0
- package/build/modules/http.d.ts +1 -0
- package/build/modules/http.d.ts.map +1 -0
- package/build/modules/logger.d.ts +1 -0
- package/build/modules/logger.d.ts.map +1 -0
- package/build/providers/app_provider.d.ts +1 -0
- package/build/providers/app_provider.d.ts.map +1 -0
- package/build/providers/app_provider.js +5 -7
- package/build/providers/hash_provider.d.ts +1 -0
- package/build/providers/hash_provider.d.ts.map +1 -0
- package/build/providers/hash_provider.js +7 -6
- package/build/providers/http_provider.d.ts +1 -0
- package/build/providers/http_provider.d.ts.map +1 -0
- package/build/services/ace.d.ts +1 -0
- package/build/services/ace.d.ts.map +1 -0
- package/build/services/app.d.ts +1 -0
- package/build/services/app.d.ts.map +1 -0
- package/build/services/config.d.ts +1 -0
- package/build/services/config.d.ts.map +1 -0
- package/build/services/emitter.d.ts +1 -0
- package/build/services/emitter.d.ts.map +1 -0
- package/build/services/emitter.js +1 -2
- package/build/services/encryption.d.ts +1 -0
- package/build/services/encryption.d.ts.map +1 -0
- package/build/services/encryption.js +1 -2
- package/build/services/hash.d.ts +1 -0
- package/build/services/hash.d.ts.map +1 -0
- package/build/services/hash.js +1 -2
- package/build/services/logger.d.ts +1 -0
- package/build/services/logger.d.ts.map +1 -0
- package/build/services/logger.js +1 -2
- package/build/services/router.d.ts +1 -0
- package/build/services/router.d.ts.map +1 -0
- package/build/services/router.js +1 -2
- package/build/services/server.d.ts +1 -0
- package/build/services/server.d.ts.map +1 -0
- package/build/services/server.js +1 -2
- package/build/services/test_utils.d.ts +1 -0
- package/build/services/test_utils.d.ts.map +1 -0
- package/build/src/cli_formatters/routes_list.d.ts +1 -0
- package/build/src/cli_formatters/routes_list.d.ts.map +1 -0
- package/build/src/debug.d.ts +1 -0
- package/build/src/debug.d.ts.map +1 -0
- package/build/src/helpers/is.d.ts +1 -0
- package/build/src/helpers/is.d.ts.map +1 -0
- package/build/src/helpers/main.d.ts +1 -0
- package/build/src/helpers/main.d.ts.map +1 -0
- package/build/src/helpers/parse_binding_reference.d.ts +1 -0
- package/build/src/helpers/parse_binding_reference.d.ts.map +1 -0
- package/build/src/helpers/string.d.ts +3 -0
- package/build/src/helpers/string.d.ts.map +1 -0
- package/build/src/helpers/string.js +4 -0
- package/build/src/helpers/types.d.ts +1 -0
- package/build/src/helpers/types.d.ts.map +1 -0
- package/build/src/ignitor/ace.d.ts +1 -0
- package/build/src/ignitor/ace.d.ts.map +1 -0
- package/build/src/ignitor/http.d.ts +1 -0
- package/build/src/ignitor/http.d.ts.map +1 -0
- package/build/src/ignitor/main.d.ts +1 -0
- package/build/src/ignitor/main.d.ts.map +1 -0
- package/build/src/ignitor/test.d.ts +1 -0
- package/build/src/ignitor/test.d.ts.map +1 -0
- package/build/src/internal_helpers.d.ts +1 -0
- package/build/src/internal_helpers.d.ts.map +1 -0
- package/build/src/test_utils/http.d.ts +1 -0
- package/build/src/test_utils/http.d.ts.map +1 -0
- package/build/src/test_utils/main.d.ts +2 -1
- package/build/src/test_utils/main.d.ts.map +1 -0
- package/build/src/types.d.ts +3 -2
- package/build/src/types.d.ts.map +1 -0
- package/build/stubs/index.d.ts +1 -0
- package/build/stubs/index.d.ts.map +1 -0
- package/build/stubs/make/preload_file/main.stub +4 -0
- package/build/stubs/make/service/main.stub +4 -0
- package/build/toolkit/commands/index_commands.d.ts +1 -0
- package/build/toolkit/commands/index_commands.d.ts.map +1 -0
- package/build/toolkit/commands/index_commands.js +2 -1
- package/build/toolkit/main.d.ts +1 -0
- package/build/toolkit/main.d.ts.map +1 -0
- package/build/types/ace.d.ts +1 -0
- package/build/types/ace.d.ts.map +1 -0
- package/build/types/app.d.ts +1 -0
- package/build/types/app.d.ts.map +1 -0
- package/build/types/bodyparser.d.ts +1 -0
- package/build/types/bodyparser.d.ts.map +1 -0
- package/build/types/container.d.ts +1 -0
- package/build/types/container.d.ts.map +1 -0
- package/build/types/encryption.d.ts +1 -0
- package/build/types/encryption.d.ts.map +1 -0
- package/build/types/events.d.ts +1 -0
- package/build/types/events.d.ts.map +1 -0
- package/build/types/hash.d.ts +1 -0
- package/build/types/hash.d.ts.map +1 -0
- package/build/types/http.d.ts +1 -0
- package/build/types/http.d.ts.map +1 -0
- package/build/types/logger.d.ts +1 -0
- package/build/types/logger.d.ts.map +1 -0
- package/commands/build.ts +122 -0
- package/commands/configure.ts +179 -0
- package/commands/eject.ts +39 -0
- package/commands/generate_key.ts +53 -0
- package/commands/inspect_rcfile.ts +23 -0
- package/commands/list/routes.ts +121 -0
- package/commands/make/_base.ts +55 -0
- package/commands/make/command.ts +33 -0
- package/commands/make/controller.ts +77 -0
- package/commands/make/event.ts +33 -0
- package/commands/make/listener.ts +63 -0
- package/commands/make/middleware.ts +34 -0
- package/commands/make/prldfile.ts +40 -0
- package/commands/make/provider.ts +40 -0
- package/commands/make/service.ts +33 -0
- package/commands/make/test.ts +115 -0
- package/commands/serve.ts +146 -0
- package/commands/test.ts +189 -0
- package/factories/app.ts +10 -0
- package/factories/bodyparser.ts +10 -0
- package/factories/core/ace.ts +38 -0
- package/factories/core/ignitor.ts +132 -0
- package/factories/core/main.ts +13 -0
- package/factories/core/test_utils.ts +34 -0
- package/factories/encryption.ts +10 -0
- package/factories/events.ts +10 -0
- package/factories/hash.ts +10 -0
- package/factories/http.ts +10 -0
- package/factories/logger.ts +10 -0
- package/factories/stubs.ts +53 -0
- package/index.ts +39 -0
- package/legacy/validator.ts +10 -0
- package/modules/ace/commands.ts +152 -0
- package/modules/ace/create_kernel.ts +73 -0
- package/modules/ace/kernel.ts +28 -0
- package/modules/ace/main.ts +22 -0
- package/modules/ace/shell.ts +49 -0
- package/modules/app.ts +10 -0
- package/modules/bodyparser/bodyparser_middleware.ts +16 -0
- package/modules/bodyparser/main.ts +10 -0
- package/modules/config.ts +10 -0
- package/modules/container.ts +10 -0
- package/modules/encryption.ts +10 -0
- package/modules/env.ts +10 -0
- package/modules/events.ts +10 -0
- package/modules/hash/define_config.ts +64 -0
- package/modules/hash/drivers_collection.ts +61 -0
- package/modules/hash/main.ts +12 -0
- package/modules/http.ts +10 -0
- package/modules/logger.ts +10 -0
- package/package.json +39 -30
- package/providers/app_provider.ts +125 -0
- package/providers/hash_provider.ts +58 -0
- package/providers/http_provider.ts +66 -0
- package/services/ace.ts +26 -0
- package/services/app.ts +26 -0
- package/services/config.ts +22 -0
- package/services/emitter.ts +23 -0
- package/services/encryption.ts +23 -0
- package/services/hash.ts +23 -0
- package/services/logger.ts +23 -0
- package/services/router.ts +23 -0
- package/services/server.ts +23 -0
- package/services/test_utils.ts +26 -0
- package/src/cli_formatters/routes_list.ts +480 -0
- package/src/debug.ts +12 -0
- package/src/helpers/is.ts +11 -0
- package/src/helpers/main.ts +13 -0
- package/src/helpers/parse_binding_reference.ts +93 -0
- package/src/helpers/string.ts +89 -0
- package/src/helpers/types.ts +46 -0
- package/src/ignitor/ace.ts +90 -0
- package/src/ignitor/http.ts +167 -0
- package/src/ignitor/main.ts +118 -0
- package/src/ignitor/test.ts +51 -0
- package/src/internal_helpers.ts +59 -0
- package/src/test_utils/http.ts +79 -0
- package/src/test_utils/main.ts +69 -0
- package/src/types.ts +136 -0
- package/types/ace.ts +15 -0
- package/types/app.ts +10 -0
- package/types/bodyparser.ts +10 -0
- package/types/container.ts +10 -0
- package/types/encryption.ts +10 -0
- package/types/events.ts +10 -0
- package/types/hash.ts +10 -0
- package/types/http.ts +10 -0
- package/types/logger.ts +10 -0
- package/build/src/helpers/string_builder.d.ts +0 -23
- package/build/src/helpers/string_builder.js +0 -86
package/build/commands/serve.js
CHANGED
|
@@ -9,9 +9,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { BaseCommand, flags } from '../modules/ace/main.js';
|
|
11
11
|
import { detectAssetsBundler, importAssembler, importTypeScript } from '../src/internal_helpers.js';
|
|
12
|
-
|
|
12
|
+
class Serve extends BaseCommand {
|
|
13
13
|
static commandName = 'serve';
|
|
14
14
|
static description = 'Start the development HTTP server along with the file watcher to perform restarts on file change';
|
|
15
|
+
static help = [
|
|
16
|
+
'Start the development server with file watcher using the following command.',
|
|
17
|
+
'```',
|
|
18
|
+
'{{ binaryName }} serve --watch',
|
|
19
|
+
'```',
|
|
20
|
+
'',
|
|
21
|
+
'The assets bundler dev server runs automatically after detecting vite config or webpack config files',
|
|
22
|
+
'You may pass vite CLI args using the --assets-args command line flag.',
|
|
23
|
+
'```',
|
|
24
|
+
'{{ binaryName }} serve --assets-args="--debug --base=/public"',
|
|
25
|
+
'```',
|
|
26
|
+
];
|
|
15
27
|
static options = {
|
|
16
28
|
staysAlive: true,
|
|
17
29
|
};
|
|
@@ -41,6 +53,7 @@ export default class Serve extends BaseCommand {
|
|
|
41
53
|
serve: this.assets === false ? false : true,
|
|
42
54
|
driver: assetsBundler.name,
|
|
43
55
|
cmd: assetsBundler.devServerCommand,
|
|
56
|
+
args: this.assetsArgs || [],
|
|
44
57
|
}
|
|
45
58
|
: {
|
|
46
59
|
serve: false,
|
|
@@ -92,3 +105,10 @@ __decorate([
|
|
|
92
105
|
}),
|
|
93
106
|
__metadata("design:type", Boolean)
|
|
94
107
|
], Serve.prototype, "assets", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
flags.array({
|
|
110
|
+
description: 'Define CLI arguments to pass to the assets bundler',
|
|
111
|
+
}),
|
|
112
|
+
__metadata("design:type", Array)
|
|
113
|
+
], Serve.prototype, "assetsArgs", void 0);
|
|
114
|
+
export default Serve;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CommandOptions } from '../types/ace.js';
|
|
2
|
+
import { BaseCommand } from '../modules/ace/main.js';
|
|
3
|
+
export default class Test extends BaseCommand {
|
|
4
|
+
#private;
|
|
5
|
+
static commandName: string;
|
|
6
|
+
static description: string;
|
|
7
|
+
static options: CommandOptions;
|
|
8
|
+
suites?: string[];
|
|
9
|
+
files?: string[];
|
|
10
|
+
tags?: string[];
|
|
11
|
+
ignoreTags?: string[];
|
|
12
|
+
groups?: string[];
|
|
13
|
+
tests?: string[];
|
|
14
|
+
watch?: boolean;
|
|
15
|
+
poll?: boolean;
|
|
16
|
+
clear?: boolean;
|
|
17
|
+
assets?: boolean;
|
|
18
|
+
assetsArgs?: string[];
|
|
19
|
+
run(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../commands/test.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAe,MAAM,wBAAwB,CAAA;AAOjE,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW;;IAC3C,MAAM,CAAC,WAAW,SAAS;IAC3B,MAAM,CAAC,WAAW,SAAyE;IAE3F,MAAM,CAAC,OAAO,EAAE,cAAc,CAG7B;IAMO,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IAGjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAGhB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IAGf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IAGrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IAGjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAGhB,KAAK,CAAC,EAAE,OAAO,CAAA;IAGf,IAAI,CAAC,EAAE,OAAO,CAAA;IAOd,KAAK,CAAC,EAAE,OAAO,CAAA;IAOf,MAAM,CAAC,EAAE,OAAO,CAAA;IAKhB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IAoBvB,GAAG;CAkGV"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { BaseCommand, flags, args } from '../modules/ace/main.js';
|
|
11
|
+
import { detectAssetsBundler, importAssembler, importTypeScript } from '../src/internal_helpers.js';
|
|
12
|
+
class Test extends BaseCommand {
|
|
13
|
+
static commandName = 'test';
|
|
14
|
+
static description = 'Run tests along with the file watcher to re-run tests on file change';
|
|
15
|
+
static options = {
|
|
16
|
+
allowUnknownFlags: true,
|
|
17
|
+
staysAlive: true,
|
|
18
|
+
};
|
|
19
|
+
#logMissingDevelopmentDependency(dependency) {
|
|
20
|
+
this.logger.error([
|
|
21
|
+
`Cannot find package "${dependency}"`,
|
|
22
|
+
'',
|
|
23
|
+
`The "${dependency}" package is a development dependency and therefore you should run tests with development dependencies installed.`,
|
|
24
|
+
'',
|
|
25
|
+
'If you are run tests inside a CI, make sure the NODE_ENV is set to "development"',
|
|
26
|
+
].join('\n'));
|
|
27
|
+
}
|
|
28
|
+
async run() {
|
|
29
|
+
console.log(this.app.rcFile.tests);
|
|
30
|
+
const assembler = await importAssembler(this.app);
|
|
31
|
+
if (!assembler) {
|
|
32
|
+
this.#logMissingDevelopmentDependency('@adonisjs/assembler');
|
|
33
|
+
this.exitCode = 1;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const assetsBundler = await detectAssetsBundler(this.app);
|
|
37
|
+
const testRunner = new assembler.TestRunner(this.app.appRoot, {
|
|
38
|
+
clearScreen: this.clear === false ? false : true,
|
|
39
|
+
nodeArgs: this.parsed.nodeArgs,
|
|
40
|
+
scriptArgs: this.parsed.unknownFlags
|
|
41
|
+
.map((flag) => {
|
|
42
|
+
const value = this.parsed.flags[flag];
|
|
43
|
+
if (value === true) {
|
|
44
|
+
return [`--${flag}`];
|
|
45
|
+
}
|
|
46
|
+
if (Array.isArray(value)) {
|
|
47
|
+
return value.map((v) => [`--${flag}`, v]);
|
|
48
|
+
}
|
|
49
|
+
return [`--${flag}`, value];
|
|
50
|
+
})
|
|
51
|
+
.flat(2),
|
|
52
|
+
assets: assetsBundler
|
|
53
|
+
? {
|
|
54
|
+
serve: this.assets === false ? false : true,
|
|
55
|
+
driver: assetsBundler.name,
|
|
56
|
+
cmd: assetsBundler.devServerCommand,
|
|
57
|
+
args: this.assetsArgs || [],
|
|
58
|
+
}
|
|
59
|
+
: {
|
|
60
|
+
serve: false,
|
|
61
|
+
},
|
|
62
|
+
filters: {
|
|
63
|
+
suites: this.suites,
|
|
64
|
+
files: this.files,
|
|
65
|
+
groups: this.groups,
|
|
66
|
+
tags: this.tags,
|
|
67
|
+
ignoreTags: this.ignoreTags,
|
|
68
|
+
tests: this.tests,
|
|
69
|
+
},
|
|
70
|
+
suites: this.app.rcFile.tests.suites.map((suite) => {
|
|
71
|
+
return {
|
|
72
|
+
name: suite.name,
|
|
73
|
+
files: Array.isArray(suite.files) ? suite.files : [suite.files],
|
|
74
|
+
};
|
|
75
|
+
}),
|
|
76
|
+
metaFiles: this.app.rcFile.metaFiles,
|
|
77
|
+
});
|
|
78
|
+
testRunner.setLogger(this.logger);
|
|
79
|
+
testRunner.onClose((exitCode) => {
|
|
80
|
+
this.exitCode = exitCode;
|
|
81
|
+
});
|
|
82
|
+
testRunner.onError(() => {
|
|
83
|
+
this.exitCode = 1;
|
|
84
|
+
});
|
|
85
|
+
if (this.watch) {
|
|
86
|
+
const ts = await importTypeScript(this.app);
|
|
87
|
+
if (!ts) {
|
|
88
|
+
this.#logMissingDevelopmentDependency('typescript');
|
|
89
|
+
this.exitCode = 1;
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
await testRunner.runAndWatch(ts, { poll: this.poll || false });
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
await testRunner.run();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
__decorate([
|
|
100
|
+
args.spread({
|
|
101
|
+
description: 'Mention suite names to run tests for selected suites',
|
|
102
|
+
required: false,
|
|
103
|
+
}),
|
|
104
|
+
__metadata("design:type", Array)
|
|
105
|
+
], Test.prototype, "suites", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
flags.array({ description: 'Filter tests by the filename' }),
|
|
108
|
+
__metadata("design:type", Array)
|
|
109
|
+
], Test.prototype, "files", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
flags.array({ description: 'Filter tests by tags' }),
|
|
112
|
+
__metadata("design:type", Array)
|
|
113
|
+
], Test.prototype, "tags", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
flags.array({ description: 'Run tests that does not have mentioned tags' }),
|
|
116
|
+
__metadata("design:type", Array)
|
|
117
|
+
], Test.prototype, "ignoreTags", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
flags.array({ description: 'Filter tests by parent group title' }),
|
|
120
|
+
__metadata("design:type", Array)
|
|
121
|
+
], Test.prototype, "groups", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
flags.array({ description: 'Filter tests by test title' }),
|
|
124
|
+
__metadata("design:type", Array)
|
|
125
|
+
], Test.prototype, "tests", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
flags.boolean({ description: 'Watch filesystem and re-run tests on file change' }),
|
|
128
|
+
__metadata("design:type", Boolean)
|
|
129
|
+
], Test.prototype, "watch", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
flags.boolean({ description: 'Use polling to detect filesystem changes' }),
|
|
132
|
+
__metadata("design:type", Boolean)
|
|
133
|
+
], Test.prototype, "poll", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
flags.boolean({
|
|
136
|
+
description: 'Clear the terminal for new logs after file change',
|
|
137
|
+
showNegatedVariantInHelp: true,
|
|
138
|
+
default: true,
|
|
139
|
+
}),
|
|
140
|
+
__metadata("design:type", Boolean)
|
|
141
|
+
], Test.prototype, "clear", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
flags.boolean({
|
|
144
|
+
description: 'Start assets bundler dev server.',
|
|
145
|
+
showNegatedVariantInHelp: true,
|
|
146
|
+
default: true,
|
|
147
|
+
}),
|
|
148
|
+
__metadata("design:type", Boolean)
|
|
149
|
+
], Test.prototype, "assets", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
flags.array({
|
|
152
|
+
description: 'Define CLI arguments to pass to the assets bundler',
|
|
153
|
+
}),
|
|
154
|
+
__metadata("design:type", Array)
|
|
155
|
+
], Test.prototype, "assetsArgs", void 0);
|
|
156
|
+
export default Test;
|
package/build/factories/app.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../factories/app.ts"],"names":[],"mappings":"AASA,cAAc,iCAAiC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bodyparser.d.ts","sourceRoot":"","sources":["../../factories/bodyparser.ts"],"names":[],"mappings":"AASA,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ace.d.ts","sourceRoot":"","sources":["../../../factories/core/ace.ts"],"names":[],"mappings":";AAUA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAMzD,qBAAa,UAAU;IACf,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IACvC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignitor.d.ts","sourceRoot":"","sources":["../../../factories/core/ignitor.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAK5E,KAAK,iBAAiB,GAAG;IACvB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC5B,CAAA;AAKD,qBAAa,cAAc;;IAYzB,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAmBxE,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAkB/C,iBAAiB,IAAI,IAAI;IASzB,cAAc,IAAI,IAAI;IA+BtB,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO;CAkBvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../factories/core/main.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test_utils.d.ts","sourceRoot":"","sources":["../../../factories/core/test_utils.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAKxD,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS;IACnC,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,GAAG,SAAS;CAczD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryption.d.ts","sourceRoot":"","sources":["../../factories/encryption.ts"],"names":[],"mappings":"AASA,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../factories/events.ts"],"names":[],"mappings":"AASA,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../factories/hash.ts"],"names":[],"mappings":"AASA,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../factories/http.ts"],"names":[],"mappings":"AASA,cAAc,iCAAiC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../factories/logger.ts"],"names":[],"mappings":"AASA,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stubs.d.ts","sourceRoot":"","sources":["../../factories/stubs.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,kBAAkB,CAAA;CACxB,CAAA;AAMD,qBAAa,YAAY;;IAavB,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAQzC,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;CAS1D"}
|
package/build/index.d.ts
CHANGED
|
@@ -141,3 +141,4 @@ export declare const errors: {
|
|
|
141
141
|
E_MISSING_APP_KEY: new (args?: any, options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
|
|
142
142
|
};
|
|
143
143
|
export declare function prettyPrintError(error: any): Promise<void>;
|
|
144
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAeA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAA;AAMD,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,GAAG,iBAOhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../legacy/validator.ts"],"names":[],"mappings":"AASA,cAAc,qBAAqB,CAAA"}
|
|
@@ -24,3 +24,4 @@ export declare class ListCommand extends AceListCommand implements BaseCommand {
|
|
|
24
24
|
constructor(app: ApplicationService, kernel: Kernel, parsed: ParsedOutput, ui: UIPrimitives, prompt: Kernel['prompt']);
|
|
25
25
|
terminate(): Promise<void>;
|
|
26
26
|
}
|
|
27
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../modules/ace/commands.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAE5F,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAMpF,qBAAa,WAAY,SAAQ,cAAc;IAYpC,GAAG,EAAE,kBAAkB;IACvB,MAAM,EAAE,MAAM;IAZvB,MAAM,CAAC,OAAO,EAAE,cAAc,CAAK;IAEnC,IAAI,UAAU,wBAEb;IAED,IAAI,QAAQ,wBAEX;gBAGQ,GAAG,EAAE,kBAAkB,EACvB,MAAM,EAAE,MAAM,EACrB,MAAM,EAAE,YAAY,EACpB,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;IAU1B,OAAO,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG;IAO1B,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG;IAU3B,SAAS,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG;IAKtB,IAAI;IA0CJ,SAAS;CAKhB;AAKD,qBAAa,WAAY,SAAQ,cAAe,YAAW,WAAW;IAY3D,GAAG,EAAE,kBAAkB;IACvB,MAAM,EAAE,MAAM;IAZvB,MAAM,CAAC,OAAO,EAAE,cAAc,CAAK;IAEnC,IAAI,UAAU,wBAEb;IAED,IAAI,QAAQ,wBAEX;gBAGQ,GAAG,EAAE,kBAAkB,EACvB,MAAM,EAAE,MAAM,EACrB,MAAM,EAAE,YAAY,EACpB,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;IAWpB,SAAS;CAKhB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseCommand as AceBaseCommand, ListCommand as AceListCommand } from '@adonisjs/ace';
|
|
2
|
-
|
|
2
|
+
class BaseCommand extends AceBaseCommand {
|
|
3
3
|
app;
|
|
4
4
|
kernel;
|
|
5
5
|
static options = {};
|
|
@@ -41,7 +41,8 @@ export class BaseCommand extends AceBaseCommand {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
export
|
|
44
|
+
export { BaseCommand };
|
|
45
|
+
class ListCommand extends AceListCommand {
|
|
45
46
|
app;
|
|
46
47
|
kernel;
|
|
47
48
|
static options = {};
|
|
@@ -62,3 +63,4 @@ export class ListCommand extends AceListCommand {
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
}
|
|
66
|
+
export { ListCommand };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create_kernel.d.ts","sourceRoot":"","sources":["../../../modules/ace/create_kernel.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAY5D,wBAAgB,eAAe,CAAC,GAAG,EAAE,kBAAkB,UAkDtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kernel.d.ts","sourceRoot":"","sources":["../../../modules/ace/kernel.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,WAAW,EAAe,MAAM,eAAe,CAAA;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAM5D,qBAAa,MAAO,SAAQ,SAAS,CAAC,OAAO,WAAW,CAAC;IACpC,GAAG,EAAE,kBAAkB;gBAAvB,GAAG,EAAE,kBAAkB;CAS3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../modules/ace/main.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,EACL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,EACV,WAAW,EACX,cAAc,GACf,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../../modules/ace/shell.ts"],"names":[],"mappings":";AA0BA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG;iBAEV,MAAM,EAAE;EAoB9B"}
|
package/build/modules/app.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../modules/app.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bodyparser_middleware.d.ts","sourceRoot":"","sources":["../../../modules/bodyparser/bodyparser_middleware.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AAMjF,eAAe,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../modules/bodyparser/main.ts"],"names":[],"mappings":"AASA,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../modules/config.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../modules/container.ts"],"names":[],"mappings":"AASA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryption.d.ts","sourceRoot":"","sources":["../../modules/encryption.ts"],"names":[],"mappings":"AASA,cAAc,sBAAsB,CAAA"}
|
package/build/modules/env.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../modules/env.ts"],"names":[],"mappings":"AASA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../modules/events.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define_config.d.ts","sourceRoot":"","sources":["../../../modules/hash/define_config.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAK/D,wBAAgB,YAAY,CAC1B,YAAY,SAAS,MAAM,CACzB,MAAM,EACN;KACG,CAAC,IAAI,MAAM,eAAe,GAAG;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAChF,CAAC,MAAM,eAAe,CAAC,CACzB,EACD,MAAM,EAAE;IACR,OAAO,CAAC,EAAE,MAAM,YAAY,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;CACnB,GAAG;IACF,OAAO,CAAC,EAAE,MAAM,YAAY,CAAA;IAC5B,IAAI,EAAE;SAAG,CAAC,IAAI,MAAM,YAAY,GAAG,oBAAoB;KAAE,CAAA;CAC1D,CAgCA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Argon, Bcrypt, Scrypt } from './main.js';
|
|
2
1
|
import type { HashDriversList } from '../../src/types.js';
|
|
3
2
|
declare class HashDriversCollection {
|
|
4
3
|
list: Partial<HashDriversList>;
|
|
5
4
|
extend<Name extends keyof HashDriversList>(driverName: Name, factoryCallback: HashDriversList[Name]): this;
|
|
6
|
-
create<Name extends keyof HashDriversList>(name: Name, config: Parameters<HashDriversList[Name]>[0]): Bcrypt | Argon | Scrypt;
|
|
5
|
+
create<Name extends keyof HashDriversList>(name: Name, config: Parameters<HashDriversList[Name]>[0]): import("@adonisjs/hash").Bcrypt | import("@adonisjs/hash").Argon | import("@adonisjs/hash").Scrypt;
|
|
7
6
|
}
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
7
|
+
declare const _default: HashDriversCollection;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=drivers_collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drivers_collection.d.ts","sourceRoot":"","sources":["../../../modules/hash/drivers_collection.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAKzD,cAAM,qBAAqB;IAIzB,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,CAAK;IAMnC,MAAM,CAAC,IAAI,SAAS,MAAM,eAAe,EACvC,UAAU,EAAE,IAAI,EAChB,eAAe,EAAE,eAAe,CAAC,IAAI,CAAC,GACrC,IAAI;IAQP,MAAM,CAAC,IAAI,SAAS,MAAM,eAAe,EACvC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;CAW/C;;AAED,wBAA0C"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { Argon, Bcrypt, Scrypt } from './main.js';
|
|
2
1
|
import { RuntimeException } from '@poppinss/utils';
|
|
3
2
|
class HashDriversCollection {
|
|
4
|
-
list = {
|
|
5
|
-
bcrypt: (config) => new Bcrypt(config),
|
|
6
|
-
argon2: (config) => new Argon(config),
|
|
7
|
-
scrypt: (config) => new Scrypt(config),
|
|
8
|
-
};
|
|
3
|
+
list = {};
|
|
9
4
|
extend(driverName, factoryCallback) {
|
|
10
5
|
this.list[driverName] = factoryCallback;
|
|
11
6
|
return this;
|
|
@@ -18,5 +13,4 @@ class HashDriversCollection {
|
|
|
18
13
|
return driverFactory(config);
|
|
19
14
|
}
|
|
20
15
|
}
|
|
21
|
-
|
|
22
|
-
export default hashDriversCollection;
|
|
16
|
+
export default new HashDriversCollection();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../modules/hash/main.ts"],"names":[],"mappings":"AASA,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAA"}
|
package/build/modules/http.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../modules/http.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../modules/logger.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app_provider.d.ts","sourceRoot":"","sources":["../../providers/app_provider.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAiB,MAAM,iBAAiB,CAAA;AAMxE,MAAM,CAAC,OAAO,OAAO,kBAAkB;IACzB,SAAS,CAAC,GAAG,EAAE,kBAAkB;gBAAvB,GAAG,EAAE,kBAAkB;IAK7C,SAAS,CAAC,iBAAiB;IAU3B,SAAS,CAAC,WAAW;IAUrB,SAAS,CAAC,WAAW;IAOrB,SAAS,CAAC,cAAc;IAUxB,SAAS,CAAC,qBAAqB;IAW/B,SAAS,CAAC,cAAc;IAQxB,SAAS,CAAC,eAAe;IAUzB,SAAS,CAAC,kBAAkB;cAWZ,kBAAkB;IAQlC,QAAQ;IAWF,IAAI;CAGX"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Config } from '../modules/config.js';
|
|
2
|
-
import {
|
|
2
|
+
import { Logger } from '../modules/logger.js';
|
|
3
3
|
import { validator } from '../legacy/validator.js';
|
|
4
4
|
import { Encryption } from '../modules/encryption.js';
|
|
5
|
-
import { Logger, LoggerManager } from '../modules/logger.js';
|
|
6
5
|
export default class AppServiceProvider {
|
|
7
6
|
app;
|
|
8
7
|
constructor(app) {
|
|
@@ -30,22 +29,21 @@ export default class AppServiceProvider {
|
|
|
30
29
|
});
|
|
31
30
|
}
|
|
32
31
|
registerLoggerManager() {
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
this.app.container.singleton('logger', async () => {
|
|
33
|
+
const { LoggerManager } = await import('../modules/logger.js');
|
|
35
34
|
const config = this.app.config.get('logger');
|
|
36
35
|
return new LoggerManager(config);
|
|
37
36
|
});
|
|
38
|
-
this.app.container.alias('logger', LoggerServiceManager);
|
|
39
37
|
}
|
|
40
38
|
registerConfig() {
|
|
41
39
|
this.app.container.singleton(Config, () => this.app.config);
|
|
42
40
|
this.app.container.alias('config', Config);
|
|
43
41
|
}
|
|
44
42
|
registerEmitter() {
|
|
45
|
-
this.app.container.singleton(
|
|
43
|
+
this.app.container.singleton('emitter', async () => {
|
|
44
|
+
const { Emitter } = await import('../modules/events.js');
|
|
46
45
|
return new Emitter(this.app);
|
|
47
46
|
});
|
|
48
|
-
this.app.container.alias('emitter', Emitter);
|
|
49
47
|
}
|
|
50
48
|
registerEncryption() {
|
|
51
49
|
this.app.container.singleton(Encryption, () => {
|