Skip to content

Commit

Permalink
fix(file): set href in File and in Config load
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed May 1, 2022
1 parent 3b19fe9 commit b8510db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@secjs/utils",
"version": "1.9.2",
"version": "1.9.3",
"description": "Utils functions and classes for Node.js",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ export class Config {
}

Debug.log(`Loading ${path} configuration file`, 'api:configurations')
Config.configs.set(name, (await import(file.path)).default)
Config.configs.set(name, (await import(file.href)).default)
}
}
1 change: 1 addition & 0 deletions src/Helpers/File.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,5 +693,6 @@ export class File {
this.name = this.originalName
this.base = this.originalBase
this.path = this.originalPath
this.href = pathToFileURL(this.path).href
}
}

0 comments on commit b8510db

Please sign in to comment.