- npm added @japa/api-client, @japa/assert, @types/supertest
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m13s
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m13s
- webpack added opions['__VUE_PROD_HYDRATION_MISMATCH_DETAILS__'] = false; - bodyparser config replaced whitelistedMethods with allowedMethods - extended stardust_provider - adapted tests for adonisjs v6
This commit is contained in:
parent
296c8fd46e
commit
bee76f8d5b
23 changed files with 2014 additions and 165 deletions
|
@ -76,9 +76,11 @@ export default class DriveManager extends Manager<
|
|||
/**
|
||||
* Make instance of the local driver
|
||||
*/
|
||||
protected createLocal(diskName: keyof DriversList, config: LocalDriverConfig) {
|
||||
// protected createLocal(diskName: keyof DriversList, config: LocalDriverConfig) {
|
||||
protected createLocal(diskName: keyof DriversList, config: LocalDriverConfig) {
|
||||
// const { LocalDriver } = await import('../drivers/local.js');
|
||||
return new LocalDriver(diskName, config);
|
||||
// return new LocalDriver(config);
|
||||
}
|
||||
|
||||
constructor(application: ApplicationService, config: DriveConfig) {
|
||||
|
@ -115,7 +117,7 @@ export default class DriveManager extends Manager<
|
|||
code: 'E_MISSING_DRIVE_CONFIG',
|
||||
});
|
||||
}
|
||||
disk = disk || this.getDefaultMappingName();
|
||||
disk = disk || this.getDefaultMappingName(); //#local'
|
||||
// if (this.fakeDrive.isFaked(disk)) {
|
||||
// return this.fakeDrive.use(disk);
|
||||
// }
|
||||
|
@ -151,4 +153,21 @@ export default class DriveManager extends Manager<
|
|||
}
|
||||
return driver.list(location);
|
||||
}
|
||||
|
||||
/**
|
||||
* Move a given location path from the source to the desination.
|
||||
* The missing intermediate directories will be created (if required)
|
||||
*/
|
||||
move(source: string, ...args: string[]): Promise<void>{
|
||||
const driver = this.use();
|
||||
return driver.move(source, args[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Make absolute path to a given location
|
||||
*/
|
||||
public makePath(location: string): string {
|
||||
const driver = this.use();
|
||||
return driver.makePath(location);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue