@zodic/shared 0.0.348 → 0.0.350

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.
Files changed (2) hide show
  1. package/app/api/index.ts +2 -2
  2. package/package.json +1 -1
package/app/api/index.ts CHANGED
@@ -852,7 +852,7 @@ export const Api = (env: BackendBindings) => ({
852
852
  ): Promise<string> => {
853
853
  const key = getKey(label);
854
854
  await env.PHOTOS_BUCKET.put(key, imageData);
855
- const imageUrl = `https://pub-c4bb4b3e4ccd46b59eed7fa434c59b60.r2.dev/${key}`;
855
+ const imageUrl = `https://pub-bbc0cdb569734925ab1c39512bc4765d.r2.dev/${key}`;
856
856
  return imageUrl;
857
857
  };
858
858
 
@@ -919,7 +919,7 @@ export const Api = (env: BackendBindings) => ({
919
919
  console.log('PiAPI FaceSwap Raw Response Body:', responseText);
920
920
 
921
921
  // Check for the expected 201 Created status
922
- if (response.status !== 201) {
922
+ if (response.status !== 201 && response.status !== 200) {
923
923
  let errorData;
924
924
  try {
925
925
  errorData = JSON.parse(responseText);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.348",
3
+ "version": "0.0.350",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {