Skip to content

Commit b8510db

Browse files
committed
fix(file): set href in File and in Config load
1 parent 3b19fe9 commit b8510db

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@secjs/utils",
3-
"version": "1.9.2",
3+
"version": "1.9.3",
44
"description": "Utils functions and classes for Node.js",
55
"license": "MIT",
66
"author": "João Lenon <lenon@athenna.io>",

src/Helpers/Config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ export class Config {
9999
}
100100

101101
Debug.log(`Loading ${path} configuration file`, 'api:configurations')
102-
Config.configs.set(name, (await import(file.path)).default)
102+
Config.configs.set(name, (await import(file.href)).default)
103103
}
104104
}

src/Helpers/File.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,5 +693,6 @@ export class File {
693693
this.name = this.originalName
694694
this.base = this.originalBase
695695
this.path = this.originalPath
696+
this.href = pathToFileURL(this.path).href
696697
}
697698
}

0 commit comments

Comments
 (0)