@hastehaul/common 2.11.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,7 +74,7 @@ function getValueFromSettings(settings, key, envVar, defaultValue) {
74
74
  function loadAsset(filePath) {
75
75
  return __awaiter(this, void 0, void 0, function* () {
76
76
  try {
77
- const file = path.join(__dirname, `${filePath}`);
77
+ const file = path.resolve(filePath);
78
78
  const fileContent = yield fs_1.promises.readFile(file, 'utf-8');
79
79
  return fileContent;
80
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",