@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.esm.js CHANGED
@@ -1023,8 +1023,8 @@ function _defineProperty$1(e, r, t) {
1023
1023
  }) : e[r] = t, e;
1024
1024
  }
1025
1025
 
1026
- 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; }
1027
- 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; }
1026
+ 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; }
1027
+ 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; }
1028
1028
  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; } } }; }
1029
1029
  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; } }
1030
1030
  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; }
@@ -2080,7 +2080,7 @@ var DynamicTableService = /*#__PURE__*/function () {
2080
2080
  throw error;
2081
2081
  case 2:
2082
2082
  return _context14.abrupt("return", (data || []).map(function (item) {
2083
- return _objectSpread$4({
2083
+ return _objectSpread$5({
2084
2084
  id: item.id,
2085
2085
  label: item[displayField] || "ID: ".concat(item.id)
2086
2086
  }, item);
@@ -2193,8 +2193,8 @@ function getDynamicTableService() {
2193
2193
  return defaultService$1;
2194
2194
  }
2195
2195
 
2196
- 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; }
2197
- 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; }
2196
+ 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; }
2197
+ 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; }
2198
2198
  var AuthService = /*#__PURE__*/function () {
2199
2199
  function AuthService() {
2200
2200
  _classCallCheck$1(this, AuthService);
@@ -2371,7 +2371,7 @@ var AuthService = /*#__PURE__*/function () {
2371
2371
  return _regeneratorRuntime$1.wrap(function (_context4) {
2372
2372
  while (1) switch (_context4.prev = _context4.next) {
2373
2373
  case 0:
2374
- finalUserData = _objectSpread$3({
2374
+ finalUserData = _objectSpread$4({
2375
2375
  tableName: this.defaultTableName
2376
2376
  }, userData);
2377
2377
  _context4.prev = 1;
@@ -2429,7 +2429,7 @@ var AuthService = /*#__PURE__*/function () {
2429
2429
  case 0:
2430
2430
  updateData = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
2431
2431
  // 设置默认值
2432
- finalUpdateData = _objectSpread$3({
2432
+ finalUpdateData = _objectSpread$4({
2433
2433
  tableName: this.defaultTableName
2434
2434
  }, updateData);
2435
2435
  _context5.prev = 1;
@@ -3352,8 +3352,8 @@ try {
3352
3352
  }
3353
3353
  var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);
3354
3354
 
3355
- 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; }
3356
- 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; }
3355
+ 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; }
3356
+ 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; }
3357
3357
  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)); }
3358
3358
  function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { return !!t; })(); }
3359
3359
  // src/error.ts
@@ -3881,7 +3881,7 @@ var DEFAULT_LIMITS = {
3881
3881
  other: 10 * 1024 * 1024
3882
3882
  };
3883
3883
  function getSizeLimit(fileName, limits) {
3884
- var merged = _objectSpread$2(_objectSpread$2({}, DEFAULT_LIMITS), limits);
3884
+ var merged = _objectSpread$3(_objectSpread$3({}, DEFAULT_LIMITS), limits);
3885
3885
  if (isImage(fileName)) return merged.image;
3886
3886
  if (isVideo(fileName)) return merged.video;
3887
3887
  return merged.other;
@@ -3909,7 +3909,7 @@ function _compressImageBlob() {
3909
3909
  return _regeneratorRuntime.wrap(function (_context10) {
3910
3910
  while (1) switch (_context10.prev = _context10.next) {
3911
3911
  case 0:
3912
- opts = _objectSpread$2(_objectSpread$2({}, DEFAULT_COMPRESS), options);
3912
+ opts = _objectSpread$3(_objectSpread$3({}, DEFAULT_COMPRESS), options);
3913
3913
  if (!(typeof createImageBitmap === "undefined" || typeof OffscreenCanvas === "undefined")) {
3914
3914
  _context10.next = 1;
3915
3915
  break;
@@ -3975,7 +3975,7 @@ function _processFile() {
3975
3975
  return _regeneratorRuntime.wrap(function (_context11) {
3976
3976
  while (1) switch (_context11.prev = _context11.next) {
3977
3977
  case 0:
3978
- opts = _objectSpread$2(_objectSpread$2({}, DEFAULT_COMPRESS), compress);
3978
+ opts = _objectSpread$3(_objectSpread$3({}, DEFAULT_COMPRESS), compress);
3979
3979
  if (!(opts.enabled && isImage(fileName))) {
3980
3980
  _context11.next = 2;
3981
3981
  break;
@@ -4039,7 +4039,7 @@ function createOssClient() {
4039
4039
  var allowedExtensions = options.allowedExtensions;
4040
4040
  function mergeRetry(override) {
4041
4041
  if (!defaultRetry && !override) return void 0;
4042
- return _objectSpread$2(_objectSpread$2({}, defaultRetry), override);
4042
+ return _objectSpread$3(_objectSpread$3({}, defaultRetry), override);
4043
4043
  }
4044
4044
  function resolveCompress(override) {
4045
4045
  if (override === false) return {
@@ -4049,7 +4049,7 @@ function createOssClient() {
4049
4049
  enabled: false
4050
4050
  };
4051
4051
  var base = _typeof$1(defaultCompress) === "object" ? defaultCompress : {};
4052
- return override ? _objectSpread$2(_objectSpread$2({}, base), override) : Object.keys(base).length ? base : void 0;
4052
+ return override ? _objectSpread$3(_objectSpread$3({}, base), override) : Object.keys(base).length ? base : void 0;
4053
4053
  }
4054
4054
  function uploadOne(_x25, _x26, _x27, _x28) {
4055
4055
  return _uploadOne.apply(this, arguments);
@@ -4135,7 +4135,7 @@ function createOssClient() {
4135
4135
  var i = index++;
4136
4136
  var item = files[i];
4137
4137
  running++;
4138
- var fileOpts = _objectSpread$2({
4138
+ var fileOpts = _objectSpread$3({
4139
4139
  retry: opts === null || opts === void 0 ? void 0 : opts.retry,
4140
4140
  compress: opts === null || opts === void 0 ? void 0 : opts.compress
4141
4141
  }, item.options);
@@ -4616,6 +4616,62 @@ function _isUserSessionAdmin() {
4616
4616
  return _isUserSessionAdmin.apply(this, arguments);
4617
4617
  }
4618
4618
 
4619
+ function _arrayWithHoles(r) {
4620
+ if (Array.isArray(r)) return r;
4621
+ }
4622
+
4623
+ function _iterableToArrayLimit(r, l) {
4624
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
4625
+ if (null != t) {
4626
+ var e,
4627
+ n,
4628
+ i,
4629
+ u,
4630
+ a = [],
4631
+ f = !0,
4632
+ o = !1;
4633
+ try {
4634
+ if (i = (t = t.call(r)).next, 0 === l) {
4635
+ if (Object(t) !== t) return;
4636
+ f = !1;
4637
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
4638
+ } catch (r) {
4639
+ o = !0, n = r;
4640
+ } finally {
4641
+ try {
4642
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
4643
+ } finally {
4644
+ if (o) throw n;
4645
+ }
4646
+ }
4647
+ return a;
4648
+ }
4649
+ }
4650
+
4651
+ function _arrayLikeToArray$2(r, a) {
4652
+ (null == a || a > r.length) && (a = r.length);
4653
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
4654
+ return n;
4655
+ }
4656
+
4657
+ function _unsupportedIterableToArray$2(r, a) {
4658
+ if (r) {
4659
+ if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
4660
+ var t = {}.toString.call(r).slice(8, -1);
4661
+ 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;
4662
+ }
4663
+ }
4664
+
4665
+ function _nonIterableRest() {
4666
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4667
+ }
4668
+
4669
+ function _slicedToArray(r, e) {
4670
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest();
4671
+ }
4672
+
4673
+ 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; }
4674
+ 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; }
4619
4675
  var ACTION_LABELS = {
4620
4676
  create: "创建",
4621
4677
  read: "查询",
@@ -4631,9 +4687,44 @@ function getWebhookUrls() {
4631
4687
  return item.trim();
4632
4688
  }).filter(Boolean);
4633
4689
  }
4690
+ function safeJsonStringify(value) {
4691
+ var seen = new WeakSet();
4692
+ try {
4693
+ return JSON.stringify(value, function (_key, currentValue) {
4694
+ if (typeof currentValue === "bigint") {
4695
+ return currentValue.toString();
4696
+ }
4697
+ if (_typeof$2(currentValue) === "object" && currentValue !== null) {
4698
+ if (seen.has(currentValue)) {
4699
+ return "[Circular]";
4700
+ }
4701
+ seen.add(currentValue);
4702
+ }
4703
+ return currentValue;
4704
+ }, 2);
4705
+ } catch (_unused) {
4706
+ return "";
4707
+ }
4708
+ }
4709
+ function serializeError(error) {
4710
+ var extraFields = Object.fromEntries(Object.entries(error).filter(function (_ref) {
4711
+ var _ref2 = _slicedToArray(_ref, 2),
4712
+ value = _ref2[1];
4713
+ return value !== undefined;
4714
+ }));
4715
+ return _objectSpread$2({
4716
+ name: error.name,
4717
+ message: error.message
4718
+ }, extraFields);
4719
+ }
4634
4720
  function getErrorMessage(error) {
4635
4721
  if (error instanceof Error) {
4636
- return error.message;
4722
+ var serializedError = safeJsonStringify(serializeError(error));
4723
+ return serializedError || error.message;
4724
+ }
4725
+ if (_typeof$2(error) === "object" && error !== null) {
4726
+ var _serializedError = safeJsonStringify(error);
4727
+ return _serializedError || String(error);
4637
4728
  }
4638
4729
  return String(error);
4639
4730
  }
@@ -4653,8 +4744,8 @@ function getSessionId(c) {
4653
4744
  function buildAlertText(c, options) {
4654
4745
  var _options$modelId, _options$recordId;
4655
4746
  var actionLabel = ACTION_LABELS[options.action];
4656
- var targetLabel = TARGET_LABELS[options.target];
4657
- 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))];
4747
+ TARGET_LABELS[options.target];
4748
+ 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))];
4658
4749
  var stack = getErrorStack(options.error);
4659
4750
  if (stack) {
4660
4751
  lines.push("\u9519\u8BEF\u5806\u6808:\n".concat(stack));
@@ -4751,9 +4842,9 @@ function reportCmsCrudErrorToFeishu(c, options) {
4751
4842
  });
4752
4843
  }
4753
4844
 
4754
- 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; } } }; }
4755
- 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; } }
4756
- 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; }
4845
+ 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; } } }; }
4846
+ 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; } }
4847
+ 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; }
4757
4848
  var RESERVED_STATUS_FIELD = "status";
4758
4849
  var PUBLISH_STATUS_VALUES = new Set(["draft", "published"]);
4759
4850
  // 初始化Supabase连接和CMS系统
@@ -5254,60 +5345,6 @@ function _deleteModel() {
5254
5345
  return _deleteModel.apply(this, arguments);
5255
5346
  }
5256
5347
 
5257
- function _arrayWithHoles(r) {
5258
- if (Array.isArray(r)) return r;
5259
- }
5260
-
5261
- function _iterableToArrayLimit(r, l) {
5262
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
5263
- if (null != t) {
5264
- var e,
5265
- n,
5266
- i,
5267
- u,
5268
- a = [],
5269
- f = !0,
5270
- o = !1;
5271
- try {
5272
- if (i = (t = t.call(r)).next, 0 === l) {
5273
- if (Object(t) !== t) return;
5274
- f = !1;
5275
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
5276
- } catch (r) {
5277
- o = !0, n = r;
5278
- } finally {
5279
- try {
5280
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
5281
- } finally {
5282
- if (o) throw n;
5283
- }
5284
- }
5285
- return a;
5286
- }
5287
- }
5288
-
5289
- function _arrayLikeToArray$1(r, a) {
5290
- (null == a || a > r.length) && (a = r.length);
5291
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
5292
- return n;
5293
- }
5294
-
5295
- function _unsupportedIterableToArray$1(r, a) {
5296
- if (r) {
5297
- if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
5298
- var t = {}.toString.call(r).slice(8, -1);
5299
- 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;
5300
- }
5301
- }
5302
-
5303
- function _nonIterableRest() {
5304
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5305
- }
5306
-
5307
- function _slicedToArray(r, e) {
5308
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
5309
- }
5310
-
5311
5348
  var _excluded = ["id", "created_at", "updated_at"],
5312
5349
  _excluded2 = ["id"],
5313
5350
  _excluded3 = ["created_at", "updated_at"];
@@ -7668,7 +7705,7 @@ function _updateConfig() {
7668
7705
  }
7669
7706
 
7670
7707
  function _arrayWithoutHoles(r) {
7671
- if (Array.isArray(r)) return _arrayLikeToArray$1(r);
7708
+ if (Array.isArray(r)) return _arrayLikeToArray$2(r);
7672
7709
  }
7673
7710
 
7674
7711
  function _iterableToArray(r) {
@@ -7680,7 +7717,7 @@ function _nonIterableSpread() {
7680
7717
  }
7681
7718
 
7682
7719
  function _toConsumableArray(r) {
7683
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread();
7720
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$2(r) || _nonIterableSpread();
7684
7721
  }
7685
7722
 
7686
7723
  var AUTH_REQUIRED = "CMS_AUTH_REQUIRED";