@websolutespa/bom-mixer-image 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-mixer-image
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 75b1311: Fixing: relative paths
8
+
3
9
  ## 1.0.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-mixer-image",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Mixer Image module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -120,7 +120,7 @@ function getOriginalImage(url: string, domains: string[]): Promise<Buffer> {
120
120
  });
121
121
  } else {
122
122
  // Reading the image from the file system
123
- fs.readFile(url, (error, data) => {
123
+ fs.readFile(path.join(process.cwd(), 'public', url), (error, data) => {
124
124
  if (error) {
125
125
  return reject(error);
126
126
  }