@zodic/shared 0.0.352 → 0.0.353

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.352",
3
+ "version": "0.0.353",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -159,8 +159,8 @@ export const sendRequest = async (
159
159
  throw new Error('PiAPI FaceSwap Error: Invalid response structure');
160
160
  }
161
161
 
162
- // Check the response code
163
- if (data.code !== 0) {
162
+ // Check the response code (accept both 0 and 200 as success)
163
+ if (data.code !== 0 && data.code !== 200) {
164
164
  const errorMsg = data.message || 'Unknown error';
165
165
  const detailedError = data.data.error
166
166
  ? ` - ${data.data.error.message || 'No detailed error message'}`