@wecode-team/cms-supabase-api 0.1.52-beta.0 → 0.1.53-beta.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/dist/index.js CHANGED
@@ -1045,8 +1045,8 @@ function _defineProperty$1(e, r, t) {
1045
1045
  }) : e[r] = t, e;
1046
1046
  }
1047
1047
 
1048
- function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1049
- function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1048
+ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1049
+ function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1050
1050
  function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
1051
1051
  function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0; } }
1052
1052
  function _arrayLikeToArray$4(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -2102,7 +2102,7 @@ var DynamicTableService = /*#__PURE__*/function () {
2102
2102
  throw error;
2103
2103
  case 2:
2104
2104
  return _context14.abrupt("return", (data || []).map(function (item) {
2105
- return _objectSpread$4({
2105
+ return _objectSpread$5({
2106
2106
  id: item.id,
2107
2107
  label: item[displayField] || "ID: ".concat(item.id)
2108
2108
  }, item);
@@ -2215,8 +2215,8 @@ function getDynamicTableService() {
2215
2215
  return defaultService$1;
2216
2216
  }
2217
2217
 
2218
- function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2219
- function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2218
+ function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2219
+ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2220
2220
  var AuthService = /*#__PURE__*/function () {
2221
2221
  function AuthService() {
2222
2222
  _classCallCheck$1(this, AuthService);
@@ -2393,7 +2393,7 @@ var AuthService = /*#__PURE__*/function () {
2393
2393
  return _regeneratorRuntime$1.wrap(function (_context4) {
2394
2394
  while (1) switch (_context4.prev = _context4.next) {
2395
2395
  case 0:
2396
- finalUserData = _objectSpread$3({
2396
+ finalUserData = _objectSpread$4({
2397
2397
  tableName: this.defaultTableName
2398
2398
  }, userData);
2399
2399
  _context4.prev = 1;
@@ -2451,7 +2451,7 @@ var AuthService = /*#__PURE__*/function () {
2451
2451
  case 0:
2452
2452
  updateData = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
2453
2453
  // 设置默认值
2454
- finalUpdateData = _objectSpread$3({
2454
+ finalUpdateData = _objectSpread$4({
2455
2455
  tableName: this.defaultTableName
2456
2456
  }, updateData);
2457
2457
  _context5.prev = 1;
@@ -3374,8 +3374,8 @@ try {
3374
3374
  }
3375
3375
  var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);
3376
3376
 
3377
- function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3378
- function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3377
+ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3378
+ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3379
3379
  function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
3380
3380
  function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { return !!t; })(); }
3381
3381
  // src/error.ts
@@ -3903,7 +3903,7 @@ var DEFAULT_LIMITS = {
3903
3903
  other: 10 * 1024 * 1024
3904
3904
  };
3905
3905
  function getSizeLimit(fileName, limits) {
3906
- var merged = _objectSpread$2(_objectSpread$2({}, DEFAULT_LIMITS), limits);
3906
+ var merged = _objectSpread$3(_objectSpread$3({}, DEFAULT_LIMITS), limits);
3907
3907
  if (isImage(fileName)) return merged.image;
3908
3908
  if (isVideo(fileName)) return merged.video;
3909
3909
  return merged.other;
@@ -3931,7 +3931,7 @@ function _compressImageBlob() {
3931
3931
  return _regeneratorRuntime.wrap(function (_context10) {
3932
3932
  while (1) switch (_context10.prev = _context10.next) {
3933
3933
  case 0:
3934
- opts = _objectSpread$2(_objectSpread$2({}, DEFAULT_COMPRESS), options);
3934
+ opts = _objectSpread$3(_objectSpread$3({}, DEFAULT_COMPRESS), options);
3935
3935
  if (!(typeof createImageBitmap === "undefined" || typeof OffscreenCanvas === "undefined")) {
3936
3936
  _context10.next = 1;
3937
3937
  break;
@@ -3997,7 +3997,7 @@ function _processFile() {
3997
3997
  return _regeneratorRuntime.wrap(function (_context11) {
3998
3998
  while (1) switch (_context11.prev = _context11.next) {
3999
3999
  case 0:
4000
- opts = _objectSpread$2(_objectSpread$2({}, DEFAULT_COMPRESS), compress);
4000
+ opts = _objectSpread$3(_objectSpread$3({}, DEFAULT_COMPRESS), compress);
4001
4001
  if (!(opts.enabled && isImage(fileName))) {
4002
4002
  _context11.next = 2;
4003
4003
  break;
@@ -4061,7 +4061,7 @@ function createOssClient() {
4061
4061
  var allowedExtensions = options.allowedExtensions;
4062
4062
  function mergeRetry(override) {
4063
4063
  if (!defaultRetry && !override) return void 0;
4064
- return _objectSpread$2(_objectSpread$2({}, defaultRetry), override);
4064
+ return _objectSpread$3(_objectSpread$3({}, defaultRetry), override);
4065
4065
  }
4066
4066
  function resolveCompress(override) {
4067
4067
  if (override === false) return {
@@ -4071,7 +4071,7 @@ function createOssClient() {
4071
4071
  enabled: false
4072
4072
  };
4073
4073
  var base = _typeof$1(defaultCompress) === "object" ? defaultCompress : {};
4074
- return override ? _objectSpread$2(_objectSpread$2({}, base), override) : Object.keys(base).length ? base : void 0;
4074
+ return override ? _objectSpread$3(_objectSpread$3({}, base), override) : Object.keys(base).length ? base : void 0;
4075
4075
  }
4076
4076
  function uploadOne(_x25, _x26, _x27, _x28) {
4077
4077
  return _uploadOne.apply(this, arguments);
@@ -4157,7 +4157,7 @@ function createOssClient() {
4157
4157
  var i = index++;
4158
4158
  var item = files[i];
4159
4159
  running++;
4160
- var fileOpts = _objectSpread$2({
4160
+ var fileOpts = _objectSpread$3({
4161
4161
  retry: opts === null || opts === void 0 ? void 0 : opts.retry,
4162
4162
  compress: opts === null || opts === void 0 ? void 0 : opts.compress
4163
4163
  }, item.options);
@@ -4638,6 +4638,62 @@ function _isUserSessionAdmin() {
4638
4638
  return _isUserSessionAdmin.apply(this, arguments);
4639
4639
  }
4640
4640
 
4641
+ function _arrayWithHoles(r) {
4642
+ if (Array.isArray(r)) return r;
4643
+ }
4644
+
4645
+ function _iterableToArrayLimit(r, l) {
4646
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
4647
+ if (null != t) {
4648
+ var e,
4649
+ n,
4650
+ i,
4651
+ u,
4652
+ a = [],
4653
+ f = !0,
4654
+ o = !1;
4655
+ try {
4656
+ if (i = (t = t.call(r)).next, 0 === l) {
4657
+ if (Object(t) !== t) return;
4658
+ f = !1;
4659
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
4660
+ } catch (r) {
4661
+ o = !0, n = r;
4662
+ } finally {
4663
+ try {
4664
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
4665
+ } finally {
4666
+ if (o) throw n;
4667
+ }
4668
+ }
4669
+ return a;
4670
+ }
4671
+ }
4672
+
4673
+ function _arrayLikeToArray$2(r, a) {
4674
+ (null == a || a > r.length) && (a = r.length);
4675
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
4676
+ return n;
4677
+ }
4678
+
4679
+ function _unsupportedIterableToArray$2(r, a) {
4680
+ if (r) {
4681
+ if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
4682
+ var t = {}.toString.call(r).slice(8, -1);
4683
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0;
4684
+ }
4685
+ }
4686
+
4687
+ function _nonIterableRest() {
4688
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4689
+ }
4690
+
4691
+ function _slicedToArray(r, e) {
4692
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest();
4693
+ }
4694
+
4695
+ function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4696
+ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4641
4697
  var ACTION_LABELS = {
4642
4698
  create: "创建",
4643
4699
  read: "查询",
@@ -4653,9 +4709,44 @@ function getWebhookUrls() {
4653
4709
  return item.trim();
4654
4710
  }).filter(Boolean);
4655
4711
  }
4712
+ function safeJsonStringify(value) {
4713
+ var seen = new WeakSet();
4714
+ try {
4715
+ return JSON.stringify(value, function (_key, currentValue) {
4716
+ if (typeof currentValue === "bigint") {
4717
+ return currentValue.toString();
4718
+ }
4719
+ if (_typeof$2(currentValue) === "object" && currentValue !== null) {
4720
+ if (seen.has(currentValue)) {
4721
+ return "[Circular]";
4722
+ }
4723
+ seen.add(currentValue);
4724
+ }
4725
+ return currentValue;
4726
+ }, 2);
4727
+ } catch (_unused) {
4728
+ return "";
4729
+ }
4730
+ }
4731
+ function serializeError(error) {
4732
+ var extraFields = Object.fromEntries(Object.entries(error).filter(function (_ref) {
4733
+ var _ref2 = _slicedToArray(_ref, 2),
4734
+ value = _ref2[1];
4735
+ return value !== undefined;
4736
+ }));
4737
+ return _objectSpread$2({
4738
+ name: error.name,
4739
+ message: error.message
4740
+ }, extraFields);
4741
+ }
4656
4742
  function getErrorMessage(error) {
4657
4743
  if (error instanceof Error) {
4658
- return error.message;
4744
+ var serializedError = safeJsonStringify(serializeError(error));
4745
+ return serializedError || error.message;
4746
+ }
4747
+ if (_typeof$2(error) === "object" && error !== null) {
4748
+ var _serializedError = safeJsonStringify(error);
4749
+ return _serializedError || String(error);
4659
4750
  }
4660
4751
  return String(error);
4661
4752
  }
@@ -4675,8 +4766,8 @@ function getSessionId(c) {
4675
4766
  function buildAlertText(c, options) {
4676
4767
  var _options$modelId, _options$recordId;
4677
4768
  var actionLabel = ACTION_LABELS[options.action];
4678
- var targetLabel = TARGET_LABELS[options.target];
4679
- var lines = ["\u5305\u540D: @wecode-team/cms-supabase-api", "\u5BBF\u4E3B\u9879\u76EE\u6807\u8BC6(sessionId): ".concat(getSessionId(c)), "\u64CD\u4F5C\u5BF9\u8C61: ".concat(targetLabel), "\u64CD\u4F5C\u7C7B\u578B: ".concat(actionLabel), "\u6570\u636E\u8868\u540D: ".concat(options.tableName || "-"), "\u6A21\u578B ID: ".concat((_options$modelId = options.modelId) !== null && _options$modelId !== void 0 ? _options$modelId : "-"), "\u8BB0\u5F55 ID: ".concat((_options$recordId = options.recordId) !== null && _options$recordId !== void 0 ? _options$recordId : "-"), "\u65F6\u95F4: ".concat(new Date().toISOString()), "\u9519\u8BEF\u4FE1\u606F: ".concat(getErrorMessage(options.error)), "\u8BF7\u6C42\u4FE1\u606F:\n".concat(buildRequestSummary(c))];
4769
+ TARGET_LABELS[options.target];
4770
+ var lines = ["\u5305\u540D: @wecode-team/cms-supabase-api", "\u5BBF\u4E3B\u9879\u76EE\u6807\u8BC6(sessionId): ".concat(getSessionId(c)), "\u64CD\u4F5C\u7C7B\u578B: ".concat(actionLabel), "\u6570\u636E\u8868\u540D: ".concat(options.tableName || "-"), "\u6A21\u578B ID: ".concat((_options$modelId = options.modelId) !== null && _options$modelId !== void 0 ? _options$modelId : "-"), "\u8BB0\u5F55 ID: ".concat((_options$recordId = options.recordId) !== null && _options$recordId !== void 0 ? _options$recordId : "-"), "\u65F6\u95F4: ".concat(new Date().toISOString()), "\u9519\u8BEF\u4FE1\u606F: ".concat(getErrorMessage(options.error)), "\u8BF7\u6C42\u4FE1\u606F:\n".concat(buildRequestSummary(c))];
4680
4771
  var stack = getErrorStack(options.error);
4681
4772
  if (stack) {
4682
4773
  lines.push("\u9519\u8BEF\u5806\u6808:\n".concat(stack));
@@ -4773,9 +4864,9 @@ function reportCmsCrudErrorToFeishu(c, options) {
4773
4864
  });
4774
4865
  }
4775
4866
 
4776
- function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
4777
- function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
4778
- function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4867
+ function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
4868
+ function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
4869
+ function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4779
4870
  var RESERVED_STATUS_FIELD = "status";
4780
4871
  var PUBLISH_STATUS_VALUES = new Set(["draft", "published"]);
4781
4872
  // 初始化Supabase连接和CMS系统
@@ -5276,60 +5367,6 @@ function _deleteModel() {
5276
5367
  return _deleteModel.apply(this, arguments);
5277
5368
  }
5278
5369
 
5279
- function _arrayWithHoles(r) {
5280
- if (Array.isArray(r)) return r;
5281
- }
5282
-
5283
- function _iterableToArrayLimit(r, l) {
5284
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
5285
- if (null != t) {
5286
- var e,
5287
- n,
5288
- i,
5289
- u,
5290
- a = [],
5291
- f = !0,
5292
- o = !1;
5293
- try {
5294
- if (i = (t = t.call(r)).next, 0 === l) {
5295
- if (Object(t) !== t) return;
5296
- f = !1;
5297
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
5298
- } catch (r) {
5299
- o = !0, n = r;
5300
- } finally {
5301
- try {
5302
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
5303
- } finally {
5304
- if (o) throw n;
5305
- }
5306
- }
5307
- return a;
5308
- }
5309
- }
5310
-
5311
- function _arrayLikeToArray$1(r, a) {
5312
- (null == a || a > r.length) && (a = r.length);
5313
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
5314
- return n;
5315
- }
5316
-
5317
- function _unsupportedIterableToArray$1(r, a) {
5318
- if (r) {
5319
- if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
5320
- var t = {}.toString.call(r).slice(8, -1);
5321
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
5322
- }
5323
- }
5324
-
5325
- function _nonIterableRest() {
5326
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5327
- }
5328
-
5329
- function _slicedToArray(r, e) {
5330
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
5331
- }
5332
-
5333
5370
  var _excluded = ["id", "created_at", "updated_at"],
5334
5371
  _excluded2 = ["id"],
5335
5372
  _excluded3 = ["created_at", "updated_at"];
@@ -7690,7 +7727,7 @@ function _updateConfig() {
7690
7727
  }
7691
7728
 
7692
7729
  function _arrayWithoutHoles(r) {
7693
- if (Array.isArray(r)) return _arrayLikeToArray$1(r);
7730
+ if (Array.isArray(r)) return _arrayLikeToArray$2(r);
7694
7731
  }
7695
7732
 
7696
7733
  function _iterableToArray(r) {
@@ -7702,7 +7739,7 @@ function _nonIterableSpread() {
7702
7739
  }
7703
7740
 
7704
7741
  function _toConsumableArray(r) {
7705
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread();
7742
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$2(r) || _nonIterableSpread();
7706
7743
  }
7707
7744
 
7708
7745
  var AUTH_REQUIRED = "CMS_AUTH_REQUIRED";