@websolutespa/bom-mixer-image 1.0.0 → 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 +19 -7
- package/package.json +2 -1
- package/src/image/image.handler.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
# @websolutespa/bom-mixer-image
|
|
2
|
-
|
|
3
|
-
## 1.0.
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
-
|
|
1
|
+
# @websolutespa/bom-mixer-image
|
|
2
|
+
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 75b1311: Fixing: relative paths
|
|
8
|
+
|
|
9
|
+
## 1.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updating: dependencies
|
|
14
|
+
|
|
15
|
+
## 1.0.0
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Added: first release
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websolutespa/bom-mixer-image",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Mixer Image module of the BOM Repository",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bom",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"sharp": ">= 0.30.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
+
"@types/sharp": "^0.30.4",
|
|
31
32
|
"@websolutespa/bom-cli": "*",
|
|
32
33
|
"@websolutespa/test": "*",
|
|
33
34
|
"@websolutespa/tsconfig": "*",
|
|
@@ -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
|
}
|