@live-change/print-service 0.9.196 → 0.9.198
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/authentication.js +1 -2
- package/config.js +1 -1
- package/package.json +5 -5
package/authentication.js
CHANGED
|
@@ -17,9 +17,8 @@ definition.authenticator({
|
|
|
17
17
|
}
|
|
18
18
|
})
|
|
19
19
|
|
|
20
|
-
const baseUrl = config.ssrUrl
|
|
21
|
-
|
|
22
20
|
export async function getAuthenticatedUrl(path, data) {
|
|
21
|
+
const baseUrl = config.ssrUrl || process.env.SSR_URL || 'http://localhost:8001'
|
|
23
22
|
const encodedData = data && encodeURIComponent(JSON.stringify(data))
|
|
24
23
|
return baseUrl + path + (data ? '/' + encodedData : '') +`?sessionKey=${await authenticationKey.getValue()}`
|
|
25
24
|
}
|
package/config.js
CHANGED
|
@@ -9,7 +9,7 @@ const {
|
|
|
9
9
|
// how many screenshots and pdf prints can run in parallel
|
|
10
10
|
concurrency = 4,
|
|
11
11
|
printAuthenticationKey = crypto.randomBytes(24).toString('hex'),
|
|
12
|
-
ssrUrl =
|
|
12
|
+
ssrUrl = definition.config.browser?.ssrUrl,
|
|
13
13
|
} = definition.config
|
|
14
14
|
|
|
15
15
|
definition.clientConfig = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/print-service",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.198",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "^0.9.
|
|
25
|
-
"@live-change/relations-plugin": "^0.9.
|
|
26
|
-
"@live-change/user-service": "^0.9.
|
|
24
|
+
"@live-change/framework": "^0.9.198",
|
|
25
|
+
"@live-change/relations-plugin": "^0.9.198",
|
|
26
|
+
"@live-change/user-service": "^0.9.198",
|
|
27
27
|
"got": "^11.8.6",
|
|
28
28
|
"p-queue": "8.1.0",
|
|
29
29
|
"playwright": "1.49.1"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "7e485dcbaa2af7fb17052a40238210dc8bdf0c09",
|
|
32
32
|
"type": "module"
|
|
33
33
|
}
|