@effing/create 0.8.0 → 0.10.0
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
CHANGED
|
@@ -108,7 +108,7 @@ export async function loader({ request, params }: Route.LoaderArgs) {
|
|
|
108
108
|
Authorization: `Bearer ${process.env.FFS_API_KEY}`,
|
|
109
109
|
"Content-Type": "application/json",
|
|
110
110
|
},
|
|
111
|
-
body: JSON.stringify(
|
|
111
|
+
body: JSON.stringify(effie),
|
|
112
112
|
});
|
|
113
113
|
|
|
114
114
|
if (warmupResponse.ok) {
|
|
@@ -157,7 +157,7 @@ async function handleReload(effieJson: string): Promise<ReloadResult> {
|
|
|
157
157
|
Authorization: `Bearer ${process.env.FFS_API_KEY}`,
|
|
158
158
|
"Content-Type": "application/json",
|
|
159
159
|
},
|
|
160
|
-
body:
|
|
160
|
+
body: effieJson,
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
if (!purgeResponse.ok) {
|
|
@@ -187,17 +187,17 @@ async function handleRender(
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
try {
|
|
190
|
-
const createResponse = await fetch(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
const createResponse = await fetch(
|
|
191
|
+
`${process.env.FFS_BASE_URL}/render?scale=${scale}`,
|
|
192
|
+
{
|
|
193
|
+
method: "POST",
|
|
194
|
+
headers: {
|
|
195
|
+
Authorization: `Bearer ${process.env.FFS_API_KEY}`,
|
|
196
|
+
"Content-Type": "application/json",
|
|
197
|
+
},
|
|
198
|
+
body: effieJson,
|
|
195
199
|
},
|
|
196
|
-
|
|
197
|
-
effie: JSON.parse(effieJson),
|
|
198
|
-
scale,
|
|
199
|
-
}),
|
|
200
|
-
});
|
|
200
|
+
);
|
|
201
201
|
|
|
202
202
|
if (!createResponse.ok) {
|
|
203
203
|
try {
|
package/template/package.json
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"typecheck": "react-router typegen && tsc"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@effing/annie": "^0.
|
|
15
|
-
"@effing/annie-player": "^0.
|
|
16
|
-
"@effing/effie": "^0.
|
|
17
|
-
"@effing/effie-preview": "^0.
|
|
18
|
-
"@effing/ffs": "^0.
|
|
19
|
-
"@effing/satori": "^0.
|
|
20
|
-
"@effing/serde": "^0.
|
|
21
|
-
"@effing/tween": "^0.
|
|
14
|
+
"@effing/annie": "^0.10.0",
|
|
15
|
+
"@effing/annie-player": "^0.10.0",
|
|
16
|
+
"@effing/effie": "^0.10.0",
|
|
17
|
+
"@effing/effie-preview": "^0.10.0",
|
|
18
|
+
"@effing/ffs": "^0.10.0",
|
|
19
|
+
"@effing/satori": "^0.10.0",
|
|
20
|
+
"@effing/serde": "^0.10.0",
|
|
21
|
+
"@effing/tween": "^0.10.0",
|
|
22
22
|
"@react-router/node": "^7.0.0",
|
|
23
23
|
"@react-router/serve": "^7.0.0",
|
|
24
24
|
"cross-env": "^7.0.3",
|