@dative-gpi/foundation-shared-services 1.0.66 → 1.0.67
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/config/urls/images.ts +6 -6
- package/package.json +3 -3
package/config/urls/images.ts
CHANGED
|
@@ -3,17 +3,17 @@ import { GATEWAY_URL } from "./base";
|
|
|
3
3
|
export const IMAGES_URL = () => `${GATEWAY_URL()}/images`;
|
|
4
4
|
|
|
5
5
|
export const IMAGE_URL = (imageId: string) => `${IMAGES_URL()}/${encodeURIComponent(imageId)}`;
|
|
6
|
-
export const IMAGE_RAW_URL = (imageId: string,
|
|
6
|
+
export const IMAGE_RAW_URL = (imageId: string, accessToken?: string) => {
|
|
7
7
|
let url = `${IMAGE_URL(imageId)}/raw`;
|
|
8
|
-
if (
|
|
9
|
-
url += `?
|
|
8
|
+
if (accessToken) {
|
|
9
|
+
url += `?access_token=${encodeURIComponent(accessToken)}`;
|
|
10
10
|
}
|
|
11
11
|
return url;
|
|
12
12
|
};
|
|
13
|
-
export const IMAGE_THUMBNAIL_URL = (imageId: string,
|
|
13
|
+
export const IMAGE_THUMBNAIL_URL = (imageId: string, accessToken?: string) => {
|
|
14
14
|
let url = `${IMAGE_URL(imageId)}/thumbnail`;
|
|
15
|
-
if (
|
|
16
|
-
url += `?
|
|
15
|
+
if (accessToken) {
|
|
16
|
+
url += `?access_token=${encodeURIComponent(accessToken)}`;
|
|
17
17
|
}
|
|
18
18
|
return url;
|
|
19
19
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-services",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.67",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.67"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@dative-gpi/bones-ui": "^0.0.75",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"vue": "^3.4.29",
|
|
19
19
|
"vue-router": "^4.3.0"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "ba62d45e0ff1f5df1090b715b4a01abc8ce9c3a4"
|
|
22
22
|
}
|