@@ -3012,7 +3012,7 @@ exports.Octokit = Octokit;
30123012
30133013Object.defineProperty(exports, "__esModule", ({ value: true }));
30143014
3015- var isPlainObject = __nccwpck_require__(558 );
3015+ var isPlainObject = __nccwpck_require__(3287 );
30163016var universalUserAgent = __nccwpck_require__(5030);
30173017
30183018function lowercaseKeys(object) {
@@ -3400,52 +3400,6 @@ exports.endpoint = endpoint;
34003400//# sourceMappingURL=index.js.map
34013401
34023402
3403- /***/ }),
3404-
3405- /***/ 558:
3406- /***/ ((__unused_webpack_module, exports) => {
3407-
3408- "use strict";
3409-
3410-
3411- Object.defineProperty(exports, "__esModule", ({ value: true }));
3412-
3413- /*!
3414- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
3415- *
3416- * Copyright (c) 2014-2017, Jon Schlinkert.
3417- * Released under the MIT License.
3418- */
3419-
3420- function isObject(o) {
3421- return Object.prototype.toString.call(o) === '[object Object]';
3422- }
3423-
3424- function isPlainObject(o) {
3425- var ctor,prot;
3426-
3427- if (isObject(o) === false) return false;
3428-
3429- // If has modified constructor
3430- ctor = o.constructor;
3431- if (ctor === undefined) return true;
3432-
3433- // If has modified prototype
3434- prot = ctor.prototype;
3435- if (isObject(prot) === false) return false;
3436-
3437- // If constructor does not have an Object-specific method
3438- if (prot.hasOwnProperty('isPrototypeOf') === false) {
3439- return false;
3440- }
3441-
3442- // Most likely a plain Object
3443- return true;
3444- }
3445-
3446- exports.isPlainObject = isPlainObject;
3447-
3448-
34493403/***/ }),
34503404
34513405/***/ 8467:
@@ -4926,7 +4880,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
49264880
49274881var endpoint = __nccwpck_require__(9440);
49284882var universalUserAgent = __nccwpck_require__(5030);
4929- var isPlainObject = __nccwpck_require__(9062 );
4883+ var isPlainObject = __nccwpck_require__(3287 );
49304884var nodeFetch = _interopDefault(__nccwpck_require__(1768));
49314885var requestError = __nccwpck_require__(537);
49324886
@@ -5097,52 +5051,6 @@ exports.request = request;
50975051//# sourceMappingURL=index.js.map
50985052
50995053
5100- /***/ }),
5101-
5102- /***/ 9062:
5103- /***/ ((__unused_webpack_module, exports) => {
5104-
5105- "use strict";
5106-
5107-
5108- Object.defineProperty(exports, "__esModule", ({ value: true }));
5109-
5110- /*!
5111- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
5112- *
5113- * Copyright (c) 2014-2017, Jon Schlinkert.
5114- * Released under the MIT License.
5115- */
5116-
5117- function isObject(o) {
5118- return Object.prototype.toString.call(o) === '[object Object]';
5119- }
5120-
5121- function isPlainObject(o) {
5122- var ctor,prot;
5123-
5124- if (isObject(o) === false) return false;
5125-
5126- // If has modified constructor
5127- ctor = o.constructor;
5128- if (ctor === undefined) return true;
5129-
5130- // If has modified prototype
5131- prot = ctor.prototype;
5132- if (isObject(prot) === false) return false;
5133-
5134- // If constructor does not have an Object-specific method
5135- if (prot.hasOwnProperty('isPrototypeOf') === false) {
5136- return false;
5137- }
5138-
5139- // Most likely a plain Object
5140- return true;
5141- }
5142-
5143- exports.isPlainObject = isPlainObject;
5144-
5145-
51465054/***/ }),
51475055
51485056/***/ 1768:
@@ -14616,6 +14524,52 @@ if (typeof Object.create === 'function') {
1461614524}
1461714525
1461814526
14527+ /***/ }),
14528+
14529+ /***/ 3287:
14530+ /***/ ((__unused_webpack_module, exports) => {
14531+
14532+ "use strict";
14533+
14534+
14535+ Object.defineProperty(exports, "__esModule", ({ value: true }));
14536+
14537+ /*!
14538+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
14539+ *
14540+ * Copyright (c) 2014-2017, Jon Schlinkert.
14541+ * Released under the MIT License.
14542+ */
14543+
14544+ function isObject(o) {
14545+ return Object.prototype.toString.call(o) === '[object Object]';
14546+ }
14547+
14548+ function isPlainObject(o) {
14549+ var ctor,prot;
14550+
14551+ if (isObject(o) === false) return false;
14552+
14553+ // If has modified constructor
14554+ ctor = o.constructor;
14555+ if (ctor === undefined) return true;
14556+
14557+ // If has modified prototype
14558+ prot = ctor.prototype;
14559+ if (isObject(prot) === false) return false;
14560+
14561+ // If constructor does not have an Object-specific method
14562+ if (prot.hasOwnProperty('isPrototypeOf') === false) {
14563+ return false;
14564+ }
14565+
14566+ // Most likely a plain Object
14567+ return true;
14568+ }
14569+
14570+ exports.isPlainObject = isPlainObject;
14571+
14572+
1461914573/***/ }),
1462014574
1462114575/***/ 910:
@@ -22249,6 +22203,9 @@ class BlobDataItem {
2224922203 this.#start = options.start
2225022204 this.size = options.size
2225122205 this.lastModified = options.lastModified
22206+ this.originalSize = options.originalSize === undefined
22207+ ? options.size
22208+ : options.originalSize
2225222209 }
2225322210
2225422211 /**
@@ -22259,16 +22216,19 @@ class BlobDataItem {
2225922216 return new BlobDataItem({
2226022217 path: this.#path,
2226122218 lastModified: this.lastModified,
22219+ originalSize: this.originalSize,
2226222220 size: end - start,
2226322221 start: this.#start + start
2226422222 })
2226522223 }
2226622224
2226722225 async * stream () {
22268- const { mtimeMs } = await stat(this.#path)
22269- if (mtimeMs > this.lastModified) {
22226+ const { mtimeMs, size } = await stat(this.#path)
22227+
22228+ if (mtimeMs > this.lastModified || this.originalSize !== size) {
2227022229 throw new DOMException('The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.', 'NotReadableError')
2227122230 }
22231+
2227222232 yield * createReadStream(this.#path, {
2227322233 start: this.#start,
2227422234 end: this.#start + this.size - 1
@@ -22380,8 +22340,12 @@ const _Blob = class Blob {
2238022340 part = encoder.encode(`${element}`)
2238122341 }
2238222342
22383- this.#size += ArrayBuffer.isView(part) ? part.byteLength : part.size
22384- this.#parts.push(part)
22343+ const size = ArrayBuffer.isView(part) ? part.byteLength : part.size
22344+ // Avoid pushing empty parts into the array to better GC them
22345+ if (size) {
22346+ this.#size += size
22347+ this.#parts.push(part)
22348+ }
2238522349 }
2238622350
2238722351 this.#endings = `${options.endings === undefined ? 'transparent' : options.endings}`
0 commit comments