openxiangda 1.0.78 → 1.0.79

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/lib/cli.js CHANGED
@@ -4506,7 +4506,16 @@ async function requestOptionalWithAuth(config, profileName, apiPath, options = {
4506
4506
  try {
4507
4507
  return await requestWithAuth(config, profileName, apiPath, options);
4508
4508
  } catch (error) {
4509
- if (Number(error?.apiCode) === 404 || String(error?.message || '').includes('HTTP 404')) {
4509
+ const status = Number(error?.status || error?.statusCode || error?.response?.status);
4510
+ const apiCode = Number(error?.apiCode);
4511
+ const message = String(error?.message || '');
4512
+ if (
4513
+ status === 404 ||
4514
+ apiCode === 404 ||
4515
+ message.includes('HTTP 404') ||
4516
+ message.includes('不存在') ||
4517
+ /not\s*found/i.test(message)
4518
+ ) {
4510
4519
  return null;
4511
4520
  }
4512
4521
  throw error;
@@ -186,13 +186,17 @@ JS_CODE 调用:`ctx.notification.sendByType({ ... })`。允许的 channels:`
186
186
  {
187
187
  "code": "reservation_reminder_summary",
188
188
  "name": "Reservation Reminder Summary",
189
- "sourceFile": { "localPath": "src/functions/reservation_reminder_summary/index.ts" },
190
- "runtimeMode": "trusted_node",
191
- "timeout": 30000,
192
189
  "resources": {
193
190
  "forms": ["reservation_order"],
194
191
  "dataViews": ["reservation_order_overview"],
195
192
  "connectors": ["crm"]
193
+ },
194
+ "definitionJson": {
195
+ "runtimeMode": "trusted_node",
196
+ "timeout": 30000,
197
+ "sourceFile": {
198
+ "localPath": "src/functions/reservation_reminder_summary/index.ts"
199
+ }
196
200
  }
197
201
  }
198
202
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {