@twick/render-server 0.14.3 → 0.14.4
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/package.json +7 -7
- package/package.json.bak +7 -7
- package/test.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twick/render-server",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server.js",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twick/2d": "0.14.
|
|
18
|
-
"@twick/core": "0.14.
|
|
19
|
-
"@twick/ffmpeg": "0.14.
|
|
20
|
-
"@twick/renderer": "0.14.
|
|
21
|
-
"@twick/ui": "0.14.
|
|
22
|
-
"@twick/visualizer": "0.14.
|
|
17
|
+
"@twick/2d": "0.14.4",
|
|
18
|
+
"@twick/core": "0.14.4",
|
|
19
|
+
"@twick/ffmpeg": "0.14.4",
|
|
20
|
+
"@twick/renderer": "0.14.4",
|
|
21
|
+
"@twick/ui": "0.14.4",
|
|
22
|
+
"@twick/visualizer": "0.14.4",
|
|
23
23
|
"@types/express-rate-limit": "^6.0.2",
|
|
24
24
|
"cors": "^2.8.5",
|
|
25
25
|
"express": "^4.18.2",
|
package/package.json.bak
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twick/render-server",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server.js",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twick/2d": "0.14.
|
|
18
|
-
"@twick/core": "0.14.
|
|
19
|
-
"@twick/ffmpeg": "0.14.
|
|
20
|
-
"@twick/renderer": "0.14.
|
|
21
|
-
"@twick/ui": "0.14.
|
|
22
|
-
"@twick/visualizer": "0.14.
|
|
17
|
+
"@twick/2d": "0.14.4",
|
|
18
|
+
"@twick/core": "0.14.4",
|
|
19
|
+
"@twick/ffmpeg": "0.14.4",
|
|
20
|
+
"@twick/renderer": "0.14.4",
|
|
21
|
+
"@twick/ui": "0.14.4",
|
|
22
|
+
"@twick/visualizer": "0.14.4",
|
|
23
23
|
"@types/express-rate-limit": "^6.0.2",
|
|
24
24
|
"cors": "^2.8.5",
|
|
25
25
|
"express": "^4.18.2",
|
package/test.js
CHANGED
|
@@ -104,10 +104,10 @@ async function testHealth() {
|
|
|
104
104
|
try {
|
|
105
105
|
const response = await fetch(`${API_URL}/health`);
|
|
106
106
|
const result = await response.json();
|
|
107
|
-
console.log('
|
|
107
|
+
console.log('Health check passed:', result);
|
|
108
108
|
return true;
|
|
109
109
|
} catch (error) {
|
|
110
|
-
console.error('
|
|
110
|
+
console.error('Health check failed:', error.message);
|
|
111
111
|
return false;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -132,15 +132,15 @@ async function testRender() {
|
|
|
132
132
|
const result = await response.json();
|
|
133
133
|
|
|
134
134
|
if (result.success) {
|
|
135
|
-
console.log('
|
|
135
|
+
console.log('Render test passed!');
|
|
136
136
|
console.log('📁 Output:', result.downloadUrl);
|
|
137
137
|
return true;
|
|
138
138
|
} else {
|
|
139
|
-
console.error('
|
|
139
|
+
console.error('Render test failed:', result.error);
|
|
140
140
|
return false;
|
|
141
141
|
}
|
|
142
142
|
} catch (error) {
|
|
143
|
-
console.error('
|
|
143
|
+
console.error('Render test failed:', error.message);
|
|
144
144
|
return false;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
@@ -154,7 +154,7 @@ async function runTests() {
|
|
|
154
154
|
if (healthPassed) {
|
|
155
155
|
await testRender();
|
|
156
156
|
} else {
|
|
157
|
-
console.log('
|
|
157
|
+
console.log('Skipping render test due to health check failure');
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
console.log('\n🏁 Tests completed');
|