@univerjs/core 0.21.1 → 0.22.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/lib/facade.js CHANGED
@@ -77,7 +77,7 @@ var FBaseInitialable = class extends Disposable {
77
77
  };
78
78
 
79
79
  //#endregion
80
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorateParam.js
80
+ //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
81
81
  function __decorateParam(paramIndex, decorator) {
82
82
  return function(target, key) {
83
83
  decorator(target, key, paramIndex);
@@ -85,7 +85,7 @@ function __decorateParam(paramIndex, decorator) {
85
85
  }
86
86
 
87
87
  //#endregion
88
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorate.js
88
+ //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
89
89
  function __decorate(decorators, target, key, desc) {
90
90
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
91
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -172,7 +172,8 @@ let FBlob = _FBlob = class FBlob extends FBase {
172
172
  return this;
173
173
  }
174
174
  setDataFromString(data, contentType) {
175
- this._blob = new Blob([data], { type: contentType !== null && contentType !== void 0 ? contentType : "text/plain" });
175
+ const blob = new Blob([data], { type: contentType !== null && contentType !== void 0 ? contentType : "text/plain" });
176
+ this._blob = blob;
176
177
  return this;
177
178
  }
178
179
  /**
@@ -208,7 +209,7 @@ let FBlob = _FBlob = class FBlob extends FBase {
208
209
  FBlob = _FBlob = __decorate([__decorateParam(1, Inject(Injector))], FBlob);
209
210
 
210
211
  //#endregion
211
- //#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
212
+ //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
212
213
  function _typeof(o) {
213
214
  "@babel/helpers - typeof";
214
215
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -219,7 +220,7 @@ function _typeof(o) {
219
220
  }
220
221
 
221
222
  //#endregion
222
- //#region \0@oxc-project+runtime@0.124.0/helpers/toPrimitive.js
223
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
223
224
  function toPrimitive(t, r) {
224
225
  if ("object" != _typeof(t) || !t) return t;
225
226
  var e = t[Symbol.toPrimitive];
@@ -232,14 +233,14 @@ function toPrimitive(t, r) {
232
233
  }
233
234
 
234
235
  //#endregion
235
- //#region \0@oxc-project+runtime@0.124.0/helpers/toPropertyKey.js
236
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
236
237
  function toPropertyKey(t) {
237
238
  var i = toPrimitive(t, "string");
238
239
  return "symbol" == _typeof(i) ? i : i + "";
239
240
  }
240
241
 
241
242
  //#endregion
242
- //#region \0@oxc-project+runtime@0.124.0/helpers/defineProperty.js
243
+ //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
243
244
  function _defineProperty(e, r, t) {
244
245
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
245
246
  value: t,