isomorphic-git 1.44.2 → 1.44.4

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/models/index.cjs CHANGED
@@ -311,6 +311,14 @@ function isFunction(obj) {
311
311
  return typeof obj === 'function'
312
312
  }
313
313
 
314
+ // React Native file systems on iOS report a missing file with codes like
315
+ // ENSCOCOAERRORDOMAIN260 instead of ENOENT.
316
+ function isNotFoundError(err) {
317
+ const code = err.code;
318
+ if (typeof code !== 'string') return false
319
+ return code === 'ENOENT' || code === 'ENOTDIR' || code.includes('ENS')
320
+ }
321
+
314
322
  function isPromiseFs(fs) {
315
323
  const test = targetFs => {
316
324
  try {
@@ -400,11 +408,7 @@ class FileSystem {
400
408
  await this._stat(filepath);
401
409
  return true
402
410
  } catch (err) {
403
- if (
404
- err.code === 'ENOENT' ||
405
- err.code === 'ENOTDIR' ||
406
- (err.code || '').includes('ENS')
407
- ) {
411
+ if (isNotFoundError(err)) {
408
412
  return false
409
413
  } else {
410
414
  console.log('Unhandled error in "FileSystem.exists()" function', err);
@@ -415,31 +419,38 @@ class FileSystem {
415
419
 
416
420
  /**
417
421
  * Return the contents of a file if it exists, otherwise returns null.
422
+ * Rethrows errors that aren't related to file existence.
418
423
  *
419
424
  * @param {string} filepath - The path to the file.
420
425
  * @param {Object} [options] - Options for reading the file.
421
426
  * @returns {Promise<Buffer|string|null>} - The file contents, or `null` if the file doesn't exist.
422
427
  */
423
428
  async read(filepath, options = {}) {
429
+ let buffer;
424
430
  try {
425
- let buffer = await this._readFile(filepath, options);
426
- if (options.autocrlf === 'true') {
427
- try {
428
- buffer = new TextDecoder('utf8', { fatal: true }).decode(buffer);
429
- buffer = buffer.replace(/\r\n/g, '\n');
430
- buffer = new TextEncoder().encode(buffer);
431
- } catch (error) {
432
- // non utf8 file
433
- }
434
- }
435
- // Convert plain ArrayBuffers to Buffers
436
- if (typeof buffer !== 'string') {
437
- buffer = Buffer.from(buffer);
438
- }
439
- return buffer
431
+ buffer = await this._readFile(filepath, options);
440
432
  } catch (err) {
441
- return null
433
+ // Ref lookup probes candidate paths that may be missing, may be a
434
+ // directory (`refs/remotes/origin`), or may run through a file.
435
+ if (isNotFoundError(err) || err.code === 'EISDIR') return null
436
+ throw err
437
+ }
438
+ // LightningFS resolves a directory read to undefined instead of EISDIR.
439
+ if (buffer == null) return null
440
+ if (options.autocrlf === 'true') {
441
+ try {
442
+ buffer = new TextDecoder('utf8', { fatal: true }).decode(buffer);
443
+ buffer = buffer.replace(/\r\n/g, '\n');
444
+ buffer = new TextEncoder().encode(buffer);
445
+ } catch (error) {
446
+ // non utf8 file
447
+ }
448
+ }
449
+ // Convert plain ArrayBuffers to Buffers
450
+ if (typeof buffer !== 'string') {
451
+ buffer = Buffer.from(buffer);
442
452
  }
453
+ return buffer
443
454
  }
444
455
 
445
456
  /**
@@ -511,22 +522,25 @@ class FileSystem {
511
522
  }
512
523
 
513
524
  /**
514
- * Read a directory without throwing an error is the directory doesn't exist
525
+ * Read a directory without throwing an error if the directory doesn't exist.
526
+ * Rethrows errors that aren't related to directory existence.
515
527
  *
516
528
  * @param {string} filepath - The path to the directory.
517
529
  * @returns {Promise<string[]|null>} - An array of file names, or `null` if the path is not a directory.
518
530
  */
519
531
  async readdir(filepath) {
532
+ let names;
520
533
  try {
521
- const names = await this._readdir(filepath);
522
- // Ordering is not guaranteed, and system specific (Windows vs Unix)
523
- // so we must sort them ourselves.
524
- names.sort(compareStrings);
525
- return names
534
+ names = await this._readdir(filepath);
526
535
  } catch (err) {
527
536
  if (err.code === 'ENOTDIR') return null
528
- return []
537
+ if (isNotFoundError(err)) return []
538
+ throw err
529
539
  }
540
+ // Ordering is not guaranteed, and system specific (Windows vs Unix)
541
+ // so we must sort them ourselves.
542
+ names.sort(compareStrings);
543
+ return names
530
544
  }
531
545
 
532
546
  /**
@@ -563,7 +577,7 @@ class FileSystem {
563
577
  const stats = await this._lstat(filename);
564
578
  return stats
565
579
  } catch (err) {
566
- if (err.code === 'ENOENT' || (err.code || '').includes('ENS')) {
580
+ if (isNotFoundError(err)) {
567
581
  return null
568
582
  }
569
583
  throw err
@@ -585,7 +599,7 @@ class FileSystem {
585
599
  const link = await this._readlink(filename, opts);
586
600
  return Buffer.isBuffer(link) ? link : Buffer.from(link)
587
601
  } catch (err) {
588
- if (err.code === 'ENOENT' || (err.code || '').includes('ENS')) {
602
+ if (isNotFoundError(err)) {
589
603
  return null
590
604
  }
591
605
  throw err
@@ -22,6 +22,7 @@ export class FileSystem {
22
22
  exists(filepath: string, options?: any): Promise<boolean>;
23
23
  /**
24
24
  * Return the contents of a file if it exists, otherwise returns null.
25
+ * Rethrows errors that aren't related to file existence.
25
26
  *
26
27
  * @param {string} filepath - The path to the file.
27
28
  * @param {Object} [options] - Options for reading the file.
@@ -60,7 +61,8 @@ export class FileSystem {
60
61
  */
61
62
  rmdir(filepath: string, opts?: any): Promise<void>;
62
63
  /**
63
- * Read a directory without throwing an error is the directory doesn't exist
64
+ * Read a directory without throwing an error if the directory doesn't exist.
65
+ * Rethrows errors that aren't related to directory existence.
64
66
  *
65
67
  * @param {string} filepath - The path to the directory.
66
68
  * @returns {Promise<string[]|null>} - An array of file names, or `null` if the path is not a directory.
package/models/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export class FileSystem {
21
21
  exists(filepath: string, options?: any): Promise<boolean>;
22
22
  /**
23
23
  * Return the contents of a file if it exists, otherwise returns null.
24
+ * Rethrows errors that aren't related to file existence.
24
25
  *
25
26
  * @param {string} filepath - The path to the file.
26
27
  * @param {Object} [options] - Options for reading the file.
@@ -59,7 +60,8 @@ export class FileSystem {
59
60
  */
60
61
  rmdir(filepath: string, opts?: any): Promise<void>;
61
62
  /**
62
- * Read a directory without throwing an error is the directory doesn't exist
63
+ * Read a directory without throwing an error if the directory doesn't exist.
64
+ * Rethrows errors that aren't related to directory existence.
63
65
  *
64
66
  * @param {string} filepath - The path to the directory.
65
67
  * @returns {Promise<string[]|null>} - An array of file names, or `null` if the path is not a directory.
package/models/index.js CHANGED
@@ -305,6 +305,14 @@ function isFunction(obj) {
305
305
  return typeof obj === 'function'
306
306
  }
307
307
 
308
+ // React Native file systems on iOS report a missing file with codes like
309
+ // ENSCOCOAERRORDOMAIN260 instead of ENOENT.
310
+ function isNotFoundError(err) {
311
+ const code = err.code;
312
+ if (typeof code !== 'string') return false
313
+ return code === 'ENOENT' || code === 'ENOTDIR' || code.includes('ENS')
314
+ }
315
+
308
316
  function isPromiseFs(fs) {
309
317
  const test = targetFs => {
310
318
  try {
@@ -394,11 +402,7 @@ class FileSystem {
394
402
  await this._stat(filepath);
395
403
  return true
396
404
  } catch (err) {
397
- if (
398
- err.code === 'ENOENT' ||
399
- err.code === 'ENOTDIR' ||
400
- (err.code || '').includes('ENS')
401
- ) {
405
+ if (isNotFoundError(err)) {
402
406
  return false
403
407
  } else {
404
408
  console.log('Unhandled error in "FileSystem.exists()" function', err);
@@ -409,31 +413,38 @@ class FileSystem {
409
413
 
410
414
  /**
411
415
  * Return the contents of a file if it exists, otherwise returns null.
416
+ * Rethrows errors that aren't related to file existence.
412
417
  *
413
418
  * @param {string} filepath - The path to the file.
414
419
  * @param {Object} [options] - Options for reading the file.
415
420
  * @returns {Promise<Buffer|string|null>} - The file contents, or `null` if the file doesn't exist.
416
421
  */
417
422
  async read(filepath, options = {}) {
423
+ let buffer;
418
424
  try {
419
- let buffer = await this._readFile(filepath, options);
420
- if (options.autocrlf === 'true') {
421
- try {
422
- buffer = new TextDecoder('utf8', { fatal: true }).decode(buffer);
423
- buffer = buffer.replace(/\r\n/g, '\n');
424
- buffer = new TextEncoder().encode(buffer);
425
- } catch (error) {
426
- // non utf8 file
427
- }
428
- }
429
- // Convert plain ArrayBuffers to Buffers
430
- if (typeof buffer !== 'string') {
431
- buffer = Buffer.from(buffer);
432
- }
433
- return buffer
425
+ buffer = await this._readFile(filepath, options);
434
426
  } catch (err) {
435
- return null
427
+ // Ref lookup probes candidate paths that may be missing, may be a
428
+ // directory (`refs/remotes/origin`), or may run through a file.
429
+ if (isNotFoundError(err) || err.code === 'EISDIR') return null
430
+ throw err
431
+ }
432
+ // LightningFS resolves a directory read to undefined instead of EISDIR.
433
+ if (buffer == null) return null
434
+ if (options.autocrlf === 'true') {
435
+ try {
436
+ buffer = new TextDecoder('utf8', { fatal: true }).decode(buffer);
437
+ buffer = buffer.replace(/\r\n/g, '\n');
438
+ buffer = new TextEncoder().encode(buffer);
439
+ } catch (error) {
440
+ // non utf8 file
441
+ }
442
+ }
443
+ // Convert plain ArrayBuffers to Buffers
444
+ if (typeof buffer !== 'string') {
445
+ buffer = Buffer.from(buffer);
436
446
  }
447
+ return buffer
437
448
  }
438
449
 
439
450
  /**
@@ -505,22 +516,25 @@ class FileSystem {
505
516
  }
506
517
 
507
518
  /**
508
- * Read a directory without throwing an error is the directory doesn't exist
519
+ * Read a directory without throwing an error if the directory doesn't exist.
520
+ * Rethrows errors that aren't related to directory existence.
509
521
  *
510
522
  * @param {string} filepath - The path to the directory.
511
523
  * @returns {Promise<string[]|null>} - An array of file names, or `null` if the path is not a directory.
512
524
  */
513
525
  async readdir(filepath) {
526
+ let names;
514
527
  try {
515
- const names = await this._readdir(filepath);
516
- // Ordering is not guaranteed, and system specific (Windows vs Unix)
517
- // so we must sort them ourselves.
518
- names.sort(compareStrings);
519
- return names
528
+ names = await this._readdir(filepath);
520
529
  } catch (err) {
521
530
  if (err.code === 'ENOTDIR') return null
522
- return []
531
+ if (isNotFoundError(err)) return []
532
+ throw err
523
533
  }
534
+ // Ordering is not guaranteed, and system specific (Windows vs Unix)
535
+ // so we must sort them ourselves.
536
+ names.sort(compareStrings);
537
+ return names
524
538
  }
525
539
 
526
540
  /**
@@ -557,7 +571,7 @@ class FileSystem {
557
571
  const stats = await this._lstat(filename);
558
572
  return stats
559
573
  } catch (err) {
560
- if (err.code === 'ENOENT' || (err.code || '').includes('ENS')) {
574
+ if (isNotFoundError(err)) {
561
575
  return null
562
576
  }
563
577
  throw err
@@ -579,7 +593,7 @@ class FileSystem {
579
593
  const link = await this._readlink(filename, opts);
580
594
  return Buffer.isBuffer(link) ? link : Buffer.from(link)
581
595
  } catch (err) {
582
- if (err.code === 'ENOENT' || (err.code || '').includes('ENS')) {
596
+ if (isNotFoundError(err)) {
583
597
  return null
584
598
  }
585
599
  throw err
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see index.umd.min.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.git=e():t.git=e()}(self,()=>(()=>{"use strict";var t={6867:t=>{const e=(t,e)=>function(...r){return new(0,e.promiseModule)((n,i)=>{e.multiArgs?r.push((...t)=>{e.errorFirst?t[0]?i(t):(t.shift(),n(t)):n(t)}):e.errorFirst?r.push((t,e)=>{t?i(t):n(e)}):r.push(n),t.apply(this,r)})};t.exports=(t,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);const n=typeof t;if(null===t||"object"!==n&&"function"!==n)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":n}\``);const i=t=>{const e=e=>"string"==typeof e?t===e:e.test(t);return r.include?r.include.some(e):!r.exclude.some(e)};let o;o="function"===n?function(...n){return r.excludeMain?t(...n):e(t,r).apply(this,n)}:Object.create(Object.getPrototypeOf(t));for(const n in t){const c=t[n];o[n]="function"==typeof c&&i(n)?e(c,r):c}return o}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{FileSystem:()=>m});var i=r(6867);const o=/[\ud800-￿]/;function c(t,e,r){if(r<55296||r>57343)return!1;if(r<56320){const r=e+1<t.length?t.charCodeAt(e+1):0;return r<56320||r>57343}const n=e>0?t.charCodeAt(e-1):0;return n<55296||n>56319}function a(t,e){if(!o.test(t)&&!o.test(e))return-(t<e)||+(t>e);const r=Math.min(t.length,e.length);for(let n=0;n<r;n++){let r=t.charCodeAt(n),i=e.charCodeAt(n);if(r!==i){if(c(t,n,r)&&(r=65533),c(e,n,i)&&(i=65533),r===i)continue;return r>=55296&&i>=55296&&(r+=r>=57344?-2048:8192,i+=i>=57344?-2048:8192),r<i?-1:1}}return t.length<e.length?-1:t.length>e.length?1:0}function s(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return-1===e?".":0===e?"/":t.slice(0,e)}async function l(t,e,r=10){try{await t(e)}catch(n){if(null===n)return;if("EEXIST"===n.code)return;if("ENOENT"!==n.code)throw n;const i=s(e);if("."===i||"/"===i||i===e)throw n;await l(t,i,r);for(let n=0;;n++)try{return void await t(e)}catch(t){if(null===t||"EEXIST"===t.code)return;if("ENOENT"===t.code&&n<r){await new Promise(t=>setTimeout(t,0));continue}throw t}}}async function u(t,e){const r=await t.readdir(e);null==r?await t.rm(e):r.length?await Promise.all(r.map(r=>{const n=function(...t){if(0===t.length)return".";let e;for(let r=0;r<t.length;++r){const n=t[r].replace(/\\/g,"/");0!==n.length&&(/^[a-zA-Z]:\//.test(n)||void 0===e?e=n:e+="/"+n)}return void 0===e?".":function(t){if(!t.length)return".";const e=function(t){return t.length>=2&&/^[a-zA-Z]:/.test(t)?t.slice(0,2):null}(t=t.replace(/\\/g,"/")),r="/"===t[0]||null!==e&&"/"===t[2],n="/"===t.at(-1);let i=function(t,e){let r="",n=0,i=-1,o=0,c="\0";for(let a=0;a<=t.length;++a){if(a<t.length)c=t[a];else{if("/"===c)break;c="/"}if("/"===c){if(i===a-1||1===o);else if(2===o){if(r.length<2||2!==n||"."!==r.at(-1)||"."!==r.at(-2)){if(r.length>2){const t=r.lastIndexOf("/");-1===t?(r="",n=0):(r=r.slice(0,t),n=r.length-1-r.lastIndexOf("/")),i=a,o=0;continue}if(0!==r.length){r="",n=0,i=a,o=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(i+1,a):r=t.slice(i+1,a),n=a-i-1;i=a,o=0}else"."===c&&-1!==o?++o:o=-1}return r}(e?t.slice(2):t,!r);if(!i.length){const t=e?r?e+"/":e:r?"/":".";return n&&!r?t+"/":t}return n&&(i+="/"),e?r?`${e}/${i}`:`${e}${i}`:r?`/${i}`:i}(e)}(e,r);return t.lstat(n).then(e=>{if(e)return e.isDirectory()?u(t,n):t.rm(n)})})).then(()=>t.rmdir(e)):await t.rmdir(e)}function d(t){return"function"==typeof t}function f(t){return function(t){return t&&"object"==typeof t}(e=(t=>{try{return t.readFile().catch(t=>t)}catch(t){return t}})(t))&&d(e.then)&&d(e.catch);var e}const h=["readFile","writeFile","mkdir","rmdir","unlink","stat","lstat","readdir","readlink","symlink"];function p(t,e){if(f(e))for(const r of h)t[`_${r}`]=e[r].bind(e);else for(const r of h)t[`_${r}`]=i(e[r].bind(e));f(e)?(e.cp&&(t._cp=e.cp.bind(e)),e.rm?t._rm=e.rm.bind(e):e.rmdir.length>1?t._rm=e.rmdir.bind(e):t._rm=u.bind(null,t)):(e.cp&&(t._cp=i(e.cp.bind(e))),e.rm?t._rm=i(e.rm.bind(e)):e.rmdir.length>2?t._rm=i(e.rmdir.bind(e)):t._rm=u.bind(null,t))}class m{constructor(t){if(void 0!==t._original_unwrapped_fs)return t;const e=Object.getOwnPropertyDescriptor(t,"promises");e&&e.enumerable?p(this,t.promises):p(this,t),this._original_unwrapped_fs=t}async exists(t,e={}){try{return await this._stat(t),!0}catch(t){if("ENOENT"===t.code||"ENOTDIR"===t.code||(t.code||"").includes("ENS"))return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',t),t}}async read(t,e={}){try{let r=await this._readFile(t,e);if("true"===e.autocrlf)try{r=new TextDecoder("utf8",{fatal:!0}).decode(r),r=r.replace(/\r\n/g,"\n"),r=(new TextEncoder).encode(r)}catch(t){}return"string"!=typeof r&&(r=Buffer.from(r)),r}catch(t){return null}}async write(t,e,r={}){try{await this._writeFile(t,e,r)}catch(n){await this.mkdir(s(t)),await this._writeFile(t,e,r)}}async mkdir(t){await l(this._mkdir,t)}async rm(t){try{await this._unlink(t)}catch(t){if("ENOENT"!==t.code)throw t}}async rmdir(t,e){try{e&&e.recursive?await this._rm(t,e):await this._rmdir(t)}catch(t){if("ENOENT"!==t.code)throw t}}async readdir(t){try{const e=await this._readdir(t);return e.sort(a),e}catch(t){return"ENOTDIR"===t.code?null:[]}}async readdirDeep(t){const e=await this._readdir(t);return(await Promise.all(e.map(async e=>{const r=t+"/"+e;return(await this._stat(r)).isDirectory()?this.readdirDeep(r):r}))).reduce((t,e)=>t.concat(e),[])}async lstat(t){try{return await this._lstat(t)}catch(t){if("ENOENT"===t.code||(t.code||"").includes("ENS"))return null;throw t}}async readlink(t,e={encoding:"buffer"}){try{const r=await this._readlink(t,e);return Buffer.isBuffer(r)?r:Buffer.from(r)}catch(t){if("ENOENT"===t.code||(t.code||"").includes("ENS"))return null;throw t}}async writelink(t,e){return this._symlink(e.toString("utf8"),t)}}return n})());
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.git=e():t.git=e()}(self,()=>(()=>{"use strict";var t={6867:t=>{const e=(t,e)=>function(...r){return new(0,e.promiseModule)((n,i)=>{e.multiArgs?r.push((...t)=>{e.errorFirst?t[0]?i(t):(t.shift(),n(t)):n(t)}):e.errorFirst?r.push((t,e)=>{t?i(t):n(e)}):r.push(n),t.apply(this,r)})};t.exports=(t,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);const n=typeof t;if(null===t||"object"!==n&&"function"!==n)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":n}\``);const i=t=>{const e=e=>"string"==typeof e?t===e:e.test(t);return r.include?r.include.some(e):!r.exclude.some(e)};let o;o="function"===n?function(...n){return r.excludeMain?t(...n):e(t,r).apply(this,n)}:Object.create(Object.getPrototypeOf(t));for(const n in t){const c=t[n];o[n]="function"==typeof c&&i(n)?e(c,r):c}return o}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{FileSystem:()=>y});var i=r(6867);const o=/[\ud800-￿]/;function c(t,e,r){if(r<55296||r>57343)return!1;if(r<56320){const r=e+1<t.length?t.charCodeAt(e+1):0;return r<56320||r>57343}const n=e>0?t.charCodeAt(e-1):0;return n<55296||n>56319}function a(t,e){if(!o.test(t)&&!o.test(e))return-(t<e)||+(t>e);const r=Math.min(t.length,e.length);for(let n=0;n<r;n++){let r=t.charCodeAt(n),i=e.charCodeAt(n);if(r!==i){if(c(t,n,r)&&(r=65533),c(e,n,i)&&(i=65533),r===i)continue;return r>=55296&&i>=55296&&(r+=r>=57344?-2048:8192,i+=i>=57344?-2048:8192),r<i?-1:1}}return t.length<e.length?-1:t.length>e.length?1:0}function s(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return-1===e?".":0===e?"/":t.slice(0,e)}async function l(t,e,r=10){try{await t(e)}catch(n){if(null===n)return;if("EEXIST"===n.code)return;if("ENOENT"!==n.code)throw n;const i=s(e);if("."===i||"/"===i||i===e)throw n;await l(t,i,r);for(let n=0;;n++)try{return void await t(e)}catch(t){if(null===t||"EEXIST"===t.code)return;if("ENOENT"===t.code&&n<r){await new Promise(t=>setTimeout(t,0));continue}throw t}}}async function u(t,e){const r=await t.readdir(e);null==r?await t.rm(e):r.length?await Promise.all(r.map(r=>{const n=function(...t){if(0===t.length)return".";let e;for(let r=0;r<t.length;++r){const n=t[r].replace(/\\/g,"/");0!==n.length&&(/^[a-zA-Z]:\//.test(n)||void 0===e?e=n:e+="/"+n)}return void 0===e?".":function(t){if(!t.length)return".";const e=function(t){return t.length>=2&&/^[a-zA-Z]:/.test(t)?t.slice(0,2):null}(t=t.replace(/\\/g,"/")),r="/"===t[0]||null!==e&&"/"===t[2],n="/"===t.at(-1);let i=function(t,e){let r="",n=0,i=-1,o=0,c="\0";for(let a=0;a<=t.length;++a){if(a<t.length)c=t[a];else{if("/"===c)break;c="/"}if("/"===c){if(i===a-1||1===o);else if(2===o){if(r.length<2||2!==n||"."!==r.at(-1)||"."!==r.at(-2)){if(r.length>2){const t=r.lastIndexOf("/");-1===t?(r="",n=0):(r=r.slice(0,t),n=r.length-1-r.lastIndexOf("/")),i=a,o=0;continue}if(0!==r.length){r="",n=0,i=a,o=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(i+1,a):r=t.slice(i+1,a),n=a-i-1;i=a,o=0}else"."===c&&-1!==o?++o:o=-1}return r}(e?t.slice(2):t,!r);if(!i.length){const t=e?r?e+"/":e:r?"/":".";return n&&!r?t+"/":t}return n&&(i+="/"),e?r?`${e}/${i}`:`${e}${i}`:r?`/${i}`:i}(e)}(e,r);return t.lstat(n).then(e=>{if(e)return e.isDirectory()?u(t,n):t.rm(n)})})).then(()=>t.rmdir(e)):await t.rmdir(e)}function f(t){return"function"==typeof t}function d(t){const e=t.code;return"string"==typeof e&&("ENOENT"===e||"ENOTDIR"===e||e.includes("ENS"))}function h(t){return function(t){return t&&"object"==typeof t}(e=(t=>{try{return t.readFile().catch(t=>t)}catch(t){return t}})(t))&&f(e.then)&&f(e.catch);var e}const p=["readFile","writeFile","mkdir","rmdir","unlink","stat","lstat","readdir","readlink","symlink"];function m(t,e){if(h(e))for(const r of p)t[`_${r}`]=e[r].bind(e);else for(const r of p)t[`_${r}`]=i(e[r].bind(e));h(e)?(e.cp&&(t._cp=e.cp.bind(e)),e.rm?t._rm=e.rm.bind(e):e.rmdir.length>1?t._rm=e.rmdir.bind(e):t._rm=u.bind(null,t)):(e.cp&&(t._cp=i(e.cp.bind(e))),e.rm?t._rm=i(e.rm.bind(e)):e.rmdir.length>2?t._rm=i(e.rmdir.bind(e)):t._rm=u.bind(null,t))}class y{constructor(t){if(void 0!==t._original_unwrapped_fs)return t;const e=Object.getOwnPropertyDescriptor(t,"promises");e&&e.enumerable?m(this,t.promises):m(this,t),this._original_unwrapped_fs=t}async exists(t,e={}){try{return await this._stat(t),!0}catch(t){if(d(t))return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',t),t}}async read(t,e={}){let r;try{r=await this._readFile(t,e)}catch(t){if(d(t)||"EISDIR"===t.code)return null;throw t}if(null==r)return null;if("true"===e.autocrlf)try{r=new TextDecoder("utf8",{fatal:!0}).decode(r),r=r.replace(/\r\n/g,"\n"),r=(new TextEncoder).encode(r)}catch(t){}return"string"!=typeof r&&(r=Buffer.from(r)),r}async write(t,e,r={}){try{await this._writeFile(t,e,r)}catch(n){await this.mkdir(s(t)),await this._writeFile(t,e,r)}}async mkdir(t){await l(this._mkdir,t)}async rm(t){try{await this._unlink(t)}catch(t){if("ENOENT"!==t.code)throw t}}async rmdir(t,e){try{e&&e.recursive?await this._rm(t,e):await this._rmdir(t)}catch(t){if("ENOENT"!==t.code)throw t}}async readdir(t){let e;try{e=await this._readdir(t)}catch(t){if("ENOTDIR"===t.code)return null;if(d(t))return[];throw t}return e.sort(a),e}async readdirDeep(t){const e=await this._readdir(t);return(await Promise.all(e.map(async e=>{const r=t+"/"+e;return(await this._stat(r)).isDirectory()?this.readdirDeep(r):r}))).reduce((t,e)=>t.concat(e),[])}async lstat(t){try{return await this._lstat(t)}catch(t){if(d(t))return null;throw t}}async readlink(t,e={encoding:"buffer"}){try{const r=await this._readlink(t,e);return Buffer.isBuffer(r)?r:Buffer.from(r)}catch(t){if(d(t))return null;throw t}}async writelink(t,e){return this._symlink(e.toString("utf8"),t)}}return n})());
3
3
  //# sourceMappingURL=index.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models/index.umd.min.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAa,IAAID,IAEjBD,EAAU,IAAIC,GACf,CATD,CASGK,KAAM,I,mCCPT,MAAMC,EAAY,CAACC,EAAIC,IAAY,YAAaC,GAG/C,OAAO,IAAIC,EAFDF,EAAQG,eAEL,CAACC,EAASC,KAClBL,EAAQM,UACXL,EAAKM,KAAK,IAAIC,KACTR,EAAQS,WACPD,EAAO,GACVH,EAAOG,IAEPA,EAAOE,QACPN,EAAQI,IAGTJ,EAAQI,KAGAR,EAAQS,WAClBR,EAAKM,KAAK,CAACI,EAAOH,KACbG,EACHN,EAAOM,GAEPP,EAAQI,KAIVP,EAAKM,KAAKH,GAGXL,EAAGa,MAAMC,KAAMZ,IAEjB,EAEAP,EAAOD,QAAU,CAACqB,EAAOd,KACxBA,EAAUe,OAAOC,OAAO,CACvBC,QAAS,CAAC,oBACVR,YAAY,EACZN,cAAee,SACblB,GAEH,MAAMmB,SAAiBL,EACvB,GAAgB,OAAVA,GAA+B,WAAZK,GAAoC,aAAZA,EAChD,MAAM,IAAIC,UAAU,gEAA0E,OAAVN,EAAiB,OAASK,OAG/G,MAAME,EAASC,IACd,MAAMC,EAAQC,GAA8B,iBAAZA,EAAuBF,IAAQE,EAAUA,EAAQC,KAAKH,GACtF,OAAOtB,EAAQ0B,QAAU1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UA,cAAMgG,CAASF,EAAUb,EAAO,CAAEgB,SAAU,WAG1C,IACE,MAAMC,QAAatK,KAAKuK,UAAUL,EAAUb,GAC5C,OAAOP,OAAO0B,SAASF,GAAQA,EAAOxB,OAAOC,KAAKuB,EACpD,CAAE,MAAOlG,GACP,GAAiB,WAAbA,EAAIC,OAAsBD,EAAIC,MAAQ,IAAI6D,SAAS,OACrD,OAAO,KAET,MAAM9D,CACR,CACF,CASA,eAAMqG,CAAUP,EAAU5B,GACxB,OAAOtI,KAAK0K,SAASpC,EAAOqC,SAAS,QAAST,EAChD,E","sources":["webpack://git/webpack/universalModuleDefinition","webpack://git/./node_modules/pify/index.js","webpack://git/webpack/bootstrap","webpack://git/webpack/runtime/define property getters","webpack://git/webpack/runtime/hasOwnProperty shorthand","webpack://git/webpack/runtime/make namespace object","webpack://git/./src/utils/compareStrings.js","webpack://git/./src/utils/dirname.js","webpack://git/./src/utils/mkdirp.js","webpack://git/./src/utils/rmRecursive.js","webpack://git/./src/utils/join.js","webpack://git/./src/utils/types.js","webpack://git/./src/models/FileSystem.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"git\"] = factory();\n\telse\n\t\troot[\"git\"] = factory();\n})(self, () => {\nreturn ","'use strict';\n\nconst processFn = (fn, options) => function (...args) {\n\tconst P = options.promiseModule;\n\n\treturn new P((resolve, reject) => {\n\t\tif (options.multiArgs) {\n\t\t\targs.push((...result) => {\n\t\t\t\tif (options.errorFirst) {\n\t\t\t\t\tif (result[0]) {\n\t\t\t\t\t\treject(result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult.shift();\n\t\t\t\t\t\tresolve(result);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresolve(result);\n\t\t\t\t}\n\t\t\t});\n\t\t} else if (options.errorFirst) {\n\t\t\targs.push((error, result) => {\n\t\t\t\tif (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t} else {\n\t\t\t\t\tresolve(result);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\targs.push(resolve);\n\t\t}\n\n\t\tfn.apply(this, args);\n\t});\n};\n\nmodule.exports = (input, options) => {\n\toptions = Object.assign({\n\t\texclude: [/.+(Sync|Stream)$/],\n\t\terrorFirst: true,\n\t\tpromiseModule: Promise\n\t}, options);\n\n\tconst objType = typeof input;\n\tif (!(input !== null && (objType === 'object' || objType === 'function'))) {\n\t\tthrow new TypeError(`Expected \\`input\\` to be a \\`Function\\` or \\`Object\\`, got \\`${input === null ? 'null' : objType}\\``);\n\t}\n\n\tconst filter = key => {\n\t\tconst match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key);\n\t\treturn options.include ? options.include.some(match) : !options.exclude.some(match);\n\t};\n\n\tlet ret;\n\tif (objType === 'function') {\n\t\tret = function (...args) {\n\t\t\treturn options.excludeMain ? input(...args) : processFn(input, options).apply(this, args);\n\t\t};\n\t} else {\n\t\tret = Object.create(Object.getPrototypeOf(input));\n\t}\n\n\tfor (const key in input) { // eslint-disable-line guard-for-in\n\t\tconst property = input[key];\n\t\tret[key] = typeof property === 'function' && filter(key) ? processFn(property, options) : property;\n\t}\n\n\treturn ret;\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// Code units from U+D800 up. Only these can make the two orders differ.\nconst NEEDS_CODE_POINT_ORDER = /[\\ud800-￿]/\n\n// Is the code unit at index i a surrogate with no partner? Such a unit is not valid Unicode.\n// A high surrogate needs a low one after it. A low surrogate needs a high one before it.\nfunction isLoneSurrogate(s, i, unit) {\n if (unit < 0xd800 || unit > 0xdfff) return false\n if (unit < 0xdc00) {\n const next = i + 1 < s.length ? s.charCodeAt(i + 1) : 0\n return next < 0xdc00 || next > 0xdfff\n }\n const prev = i > 0 ? s.charCodeAt(i - 1) : 0\n return prev < 0xd800 || prev > 0xdbff\n}\n\n/**\n * Compare two strings by code point. This gives the same order as the UTF-8 bytes of the\n * strings, and git sorts paths in that order. The `<` operator compares UTF-16 code units,\n * so it puts a character above U+FFFF (a surrogate pair) before the characters from U+E000\n * to U+FFFF. Git puts it after them. A lone surrogate counts as U+FFFD, because the UTF-8\n * encoding of the path writes it that way.\n *\n * @param {string} a\n * @param {string} b\n * @returns {-1 | 0 | 1}\n */\nexport function compareStrings(a, b) {\n if (!NEEDS_CODE_POINT_ORDER.test(a) && !NEEDS_CODE_POINT_ORDER.test(b)) {\n // Both orders are the same, and the `<` operator is the fastest way.\n return -(a < b) || +(a > b)\n }\n const length = Math.min(a.length, b.length)\n for (let i = 0; i < length; i++) {\n let x = a.charCodeAt(i)\n let y = b.charCodeAt(i)\n if (x !== y) {\n if (isLoneSurrogate(a, i, x)) x = 0xfffd\n if (isLoneSurrogate(b, i, y)) y = 0xfffd\n if (x === y) continue\n // Move the surrogates (U+D800 to U+DFFF) above U+FFFF, where their code points are.\n if (x >= 0xd800 && y >= 0xd800) {\n x += x >= 0xe000 ? -0x800 : 0x2000\n y += y >= 0xe000 ? -0x800 : 0x2000\n }\n return x < y ? -1 : 1\n }\n }\n return a.length < b.length ? -1 : a.length > b.length ? 1 : 0\n}\n","export function dirname(path) {\n const last = Math.max(path.lastIndexOf('/'), path.lastIndexOf('\\\\'))\n if (last === -1) return '.'\n if (last === 0) return '/'\n return path.slice(0, last)\n}\n","import { dirname } from './dirname.js'\n\n/**\n * Recursively creates the directory at `filepath`, creating any missing parent\n * directories along the way. This is a portable replacement for\n * `fs.mkdir(path, { recursive: true })`: recursive `mkdir` is NOT part of\n * isomorphic-git's required `fs` contract (see docs/fs.md — `mkdir` is only\n * `mkdir(path[, mode])`) and is unimplemented by some backends such as\n * lightning-fs, so we build it here on top of a single-level `mkdir(path)`\n * primitive only — mirroring how `rmRecursive` provides `rm({ recursive: true })`.\n *\n * It takes the raw single-level `mkdir` *function* (typically `fs._mkdir`)\n * rather than the FileSystem wrapper, to stay decoupled from that type.\n *\n * `EEXIST` is treated as success, so two callers concurrently creating the same\n * directory (e.g. several reflog writes into `.git/logs/refs/*` during a stash)\n * don't fail each other. On backends whose layers are only eventually\n * consistent — e.g. an async copy-on-write overlay — a just-created parent may\n * not yet be visible when its child is created, so `mkdir` can throw a\n * transient `ENOENT`; those are retried a bounded number of times rather than\n * surfaced as a spurious failure.\n *\n * @param {(filepath: string) => Promise<unknown>} mkdir - Creates a single directory (non-recursive).\n * @param {string} filepath - The directory to create.\n * @param {number} [retries=10] - Max transient-ENOENT retries after the parent exists.\n * @returns {Promise<void>}\n */\nexport async function mkdirp(mkdir, filepath, retries = 10) {\n try {\n await mkdir(filepath)\n } catch (err) {\n // Some fs implementations signal success by yielding a null error.\n if (err === null) return\n // The directory already exists — that's fine.\n if (err.code === 'EEXIST') return\n // Anything other than a missing parent is a real error.\n if (err.code !== 'ENOENT') throw err\n const parent = dirname(filepath)\n // Stop if we've walked past the filesystem root.\n if (parent === '.' || parent === '/' || parent === filepath) throw err\n // Create the missing parent(s) first, honoring the same retry budget.\n await mkdirp(mkdir, parent, retries)\n // Then (re)create this directory. On an eventually-consistent backend the\n // parent may not be visible immediately after its mkdir resolves, so a\n // repeated ENOENT here is transient — retry a bounded number of times,\n // yielding between attempts so the pending write can settle.\n for (let attempt = 0; ; attempt++) {\n try {\n await mkdir(filepath)\n return\n } catch (err2) {\n if (err2 === null || err2.code === 'EEXIST') return\n if (err2.code === 'ENOENT' && attempt < retries) {\n // Give the backend a turn of the event loop to become consistent.\n await new Promise(resolve => setTimeout(resolve, 0))\n continue\n }\n throw err2\n }\n }\n }\n}\n","import { join } from './join.js'\n\n/**\n * Removes the directory at the specified filepath recursively. Used internally to replicate the behavior of\n * fs.promises.rm({ recursive: true, force: true }) from Node.js 14 and above when not available. If the provided\n * filepath resolves to a file, it will be removed.\n *\n * @param {import('../models/FileSystem.js').FileSystem} fs\n * @param {string} filepath - The file or directory to remove.\n */\nexport async function rmRecursive(fs, filepath) {\n const entries = await fs.readdir(filepath)\n if (entries == null) {\n await fs.rm(filepath)\n } else if (entries.length) {\n await Promise.all(\n entries.map(entry => {\n const subpath = join(filepath, entry)\n return fs.lstat(subpath).then(stat => {\n if (!stat) return\n return stat.isDirectory() ? rmRecursive(fs, subpath) : fs.rm(subpath)\n })\n })\n ).then(() => fs.rmdir(filepath))\n } else {\n await fs.rmdir(filepath)\n }\n}\n","/*!\n * This code for `path.join` is directly copied from @zenfs/core/path for bundle size improvements.\n * SPDX-License-Identifier: LGPL-3.0-or-later\n * Copyright (c) James Prevett and other ZenFS contributors.\n *\n * Windows support added:\n * - Backslashes are normalised to forward slashes before processing.\n * - Drive-letter prefixes (e.g. \"C:\") are detected and preserved through\n * normalisation, so absolute Windows paths are handled correctly.\n * - An absolute argument passed to join() resets the accumulated path,\n * matching Node behaviour and handling worktree gitdir paths properly.\n *\n * Limitation: UNC paths (e.g. \\\\server\\share) are not supported. The leading\n * backslashes are normalised to forward slashes and then collapsed by\n * normalizeString, losing the UNC root. Git on Windows works with\n * drive-letter paths, so this is not expected to be a practical issue.\n */\n\nfunction normalizeString(path, aar) {\n let res = ''\n let lastSegmentLength = 0\n let lastSlash = -1\n let dots = 0\n let char = '\\x00'\n for (let i = 0; i <= path.length; ++i) {\n if (i < path.length) char = path[i]\n else if (char === '/') break\n else char = '/'\n\n if (char === '/') {\n if (lastSlash === i - 1 || dots === 1) {\n // NOOP\n } else if (dots === 2) {\n if (\n res.length < 2 ||\n lastSegmentLength !== 2 ||\n res.at(-1) !== '.' ||\n res.at(-2) !== '.'\n ) {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf('/')\n if (lastSlashIndex === -1) {\n res = ''\n lastSegmentLength = 0\n } else {\n res = res.slice(0, lastSlashIndex)\n lastSegmentLength = res.length - 1 - res.lastIndexOf('/')\n }\n lastSlash = i\n dots = 0\n continue\n } else if (res.length !== 0) {\n res = ''\n lastSegmentLength = 0\n lastSlash = i\n dots = 0\n continue\n }\n }\n if (aar) {\n res += res.length > 0 ? '/..' : '..'\n lastSegmentLength = 2\n }\n } else {\n if (res.length > 0) res += '/' + path.slice(lastSlash + 1, i)\n else res = path.slice(lastSlash + 1, i)\n lastSegmentLength = i - lastSlash - 1\n }\n lastSlash = i\n dots = 0\n } else if (char === '.' && dots !== -1) {\n ++dots\n } else {\n dots = -1\n }\n }\n return res\n}\n\n// Returns the Windows drive prefix (\"C:\") if present, otherwise null.\nfunction getWindowsDrivePrefix(path) {\n if (path.length >= 2 && /^[a-zA-Z]:/.test(path)) {\n return path.slice(0, 2) // e.g. \"C:\"\n }\n return null\n}\n\nfunction normalize(path) {\n if (!path.length) return '.'\n\n // Normalise backslashes to forward slashes before any other processing.\n path = path.replace(/\\\\/g, '/')\n\n const drivePrefix = getWindowsDrivePrefix(path)\n // isAbsolute: Unix root ('/foo') OR Windows drive+slash ('C:/foo').\n const isAbsolute =\n path[0] === '/' || (drivePrefix !== null && path[2] === '/')\n const trailingSeparator = path.at(-1) === '/'\n\n // Strip the drive prefix before feeding into normalizeString so that the\n // core algorithm only ever sees a plain POSIX-style string.\n const pathBody = drivePrefix ? path.slice(2) : path\n\n let normalized = normalizeString(pathBody, !isAbsolute)\n\n if (!normalized.length) {\n const root = drivePrefix\n ? isAbsolute\n ? drivePrefix + '/'\n : drivePrefix\n : isAbsolute\n ? '/'\n : '.'\n return trailingSeparator && !isAbsolute ? root + '/' : root\n }\n if (trailingSeparator) normalized += '/'\n\n if (drivePrefix) {\n return isAbsolute\n ? `${drivePrefix}/${normalized}`\n : `${drivePrefix}${normalized}`\n }\n return isAbsolute ? `/${normalized}` : normalized\n}\n\nexport function join(...args) {\n if (args.length === 0) return '.'\n let joined\n for (let i = 0; i < args.length; ++i) {\n // Normalise separators before processing.\n const arg = args[i].replace(/\\\\/g, '/')\n if (arg.length === 0) continue\n\n // A Windows drive-letter path (e.g. \"C:/worktrees/foo\") cannot be\n // meaningfully appended to any base, so it resets the accumulator.\n // Unix absolute paths (leading '/') are NOT reset here — that would be\n // path.resolve() semantics; path.join('foo', '/bar') must yield 'foo/bar'.\n if (/^[a-zA-Z]:\\//.test(arg)) {\n joined = arg\n } else {\n if (joined === undefined) joined = arg\n else joined += '/' + arg\n }\n }\n if (joined === undefined) return '.'\n return normalize(joined)\n}\n","export function isPromiseLike(obj) {\n return isObject(obj) && isFunction(obj.then) && isFunction(obj.catch)\n}\n\nexport function isObject(obj) {\n return obj && typeof obj === 'object'\n}\n\nexport function isFunction(obj) {\n return typeof obj === 'function'\n}\n","import pify from 'pify'\n\nimport { compareStrings } from '../utils/compareStrings.js'\nimport { dirname } from '../utils/dirname.js'\nimport { mkdirp } from '../utils/mkdirp.js'\nimport { rmRecursive } from '../utils/rmRecursive.js'\nimport { isPromiseLike } from '../utils/types.js'\n\nfunction isPromiseFs(fs) {\n const test = targetFs => {\n try {\n // If readFile returns a promise then we can probably assume the other\n // commands do as well\n return targetFs.readFile().catch(e => e)\n } catch (e) {\n return e\n }\n }\n return isPromiseLike(test(fs))\n}\n\n// List of commands all filesystems are expected to provide. `rm` is not\n// included since it may not exist and must be handled as a special case\n// Likewise with `cp`.\nconst commands = [\n 'readFile',\n 'writeFile',\n 'mkdir',\n 'rmdir',\n 'unlink',\n 'stat',\n 'lstat',\n 'readdir',\n 'readlink',\n 'symlink',\n]\n\nfunction bindFs(target, fs) {\n if (isPromiseFs(fs)) {\n for (const command of commands) {\n target[`_${command}`] = fs[command].bind(fs)\n }\n } else {\n for (const command of commands) {\n target[`_${command}`] = pify(fs[command].bind(fs))\n }\n }\n\n // Handle the special cases of `rm` and `cp`\n if (isPromiseFs(fs)) {\n if (fs.cp) target._cp = fs.cp.bind(fs)\n if (fs.rm) target._rm = fs.rm.bind(fs)\n else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs)\n else target._rm = rmRecursive.bind(null, target)\n } else {\n if (fs.cp) target._cp = pify(fs.cp.bind(fs))\n if (fs.rm) target._rm = pify(fs.rm.bind(fs))\n else if (fs.rmdir.length > 2) target._rm = pify(fs.rmdir.bind(fs))\n else target._rm = rmRecursive.bind(null, target)\n }\n}\n\n/**\n * A wrapper class for file system operations, providing a consistent API for both promise-based\n * and callback-based file systems. It includes utility methods for common file system tasks.\n */\nexport class FileSystem {\n /**\n * Creates an instance of FileSystem.\n *\n * @param {Object} fs - A file system implementation to wrap.\n */\n constructor(fs) {\n if (typeof fs._original_unwrapped_fs !== 'undefined') return fs\n\n const promises = Object.getOwnPropertyDescriptor(fs, 'promises')\n if (promises && promises.enumerable) {\n bindFs(this, fs.promises)\n } else {\n bindFs(this, fs)\n }\n this._original_unwrapped_fs = fs\n }\n\n /**\n * Return true if a file exists, false if it doesn't exist.\n * Rethrows errors that aren't related to file existence.\n *\n * @param {string} filepath - The path to the file.\n * @param {Object} [options] - Additional options.\n * @returns {Promise<boolean>} - `true` if the file exists, `false` otherwise.\n */\n async exists(filepath, options = {}) {\n try {\n await this._stat(filepath)\n return true\n } catch (err) {\n if (\n err.code === 'ENOENT' ||\n err.code === 'ENOTDIR' ||\n (err.code || '').includes('ENS')\n ) {\n return false\n } else {\n console.log('Unhandled error in \"FileSystem.exists()\" function', err)\n throw err\n }\n }\n }\n\n /**\n * Return the contents of a file if it exists, otherwise returns null.\n *\n * @param {string} filepath - The path to the file.\n * @param {Object} [options] - Options for reading the file.\n * @returns {Promise<Buffer|string|null>} - The file contents, or `null` if the file doesn't exist.\n */\n async read(filepath, options = {}) {\n try {\n let buffer = await this._readFile(filepath, options)\n if (options.autocrlf === 'true') {\n try {\n buffer = new TextDecoder('utf8', { fatal: true }).decode(buffer)\n buffer = buffer.replace(/\\r\\n/g, '\\n')\n buffer = new TextEncoder().encode(buffer)\n } catch (error) {\n // non utf8 file\n }\n }\n // Convert plain ArrayBuffers to Buffers\n if (typeof buffer !== 'string') {\n buffer = Buffer.from(buffer)\n }\n return buffer\n } catch (err) {\n return null\n }\n }\n\n /**\n * Write a file (creating missing directories if need be) without throwing errors.\n *\n * @param {string} filepath - The path to the file.\n * @param {Buffer|Uint8Array|string} contents - The data to write.\n * @param {Object|string} [options] - Options for writing the file.\n * @returns {Promise<void>}\n */\n async write(filepath, contents, options = {}) {\n try {\n await this._writeFile(filepath, contents, options)\n } catch (err) {\n // Hmm. Let's try mkdirp and try again.\n await this.mkdir(dirname(filepath))\n await this._writeFile(filepath, contents, options)\n }\n }\n\n /**\n * Make a directory (or series of nested directories) without throwing an error if it already exists.\n *\n * @param {string} filepath - The path to the directory.\n * @returns {Promise<void>}\n */\n async mkdir(filepath) {\n // Recursively create the directory, using only single-level `_mkdir` so we\n // don't depend on `{ recursive: true }` (which isn't part of the required\n // `fs` contract — see docs/fs.md — and is unimplemented by some backends\n // e.g. lightning-fs). The helper tolerates EEXIST and the transient ENOENT\n // that eventually-consistent backends throw when a freshly created parent\n // isn't visible yet, which is what made concurrent reflog writes into\n // `.git/logs/refs/*` fail intermittently.\n await mkdirp(this._mkdir, filepath)\n }\n\n /**\n * Delete a file without throwing an error if it is already deleted.\n *\n * @param {string} filepath - The path to the file.\n * @returns {Promise<void>}\n */\n async rm(filepath) {\n try {\n await this._unlink(filepath)\n } catch (err) {\n if (err.code !== 'ENOENT') throw err\n }\n }\n\n /**\n * Delete a directory without throwing an error if it is already deleted.\n *\n * @param {string} filepath - The path to the directory.\n * @param {Object} [opts] - Options for deleting the directory.\n * @returns {Promise<void>}\n */\n async rmdir(filepath, opts) {\n try {\n if (opts && opts.recursive) {\n await this._rm(filepath, opts)\n } else {\n await this._rmdir(filepath)\n }\n } catch (err) {\n if (err.code !== 'ENOENT') throw err\n }\n }\n\n /**\n * Read a directory without throwing an error is the directory doesn't exist\n *\n * @param {string} filepath - The path to the directory.\n * @returns {Promise<string[]|null>} - An array of file names, or `null` if the path is not a directory.\n */\n async readdir(filepath) {\n try {\n const names = await this._readdir(filepath)\n // Ordering is not guaranteed, and system specific (Windows vs Unix)\n // so we must sort them ourselves.\n names.sort(compareStrings)\n return names\n } catch (err) {\n if (err.code === 'ENOTDIR') return null\n return []\n }\n }\n\n /**\n * Return a flat list of all the files nested inside a directory\n *\n * Based on an elegant concurrent recursive solution from SO\n * https://stackoverflow.com/a/45130990/2168416\n *\n * @param {string} dir - The directory to read.\n * @returns {Promise<string[]>} - A flat list of all files in the directory.\n */\n async readdirDeep(dir) {\n const subdirs = await this._readdir(dir)\n const files = await Promise.all(\n subdirs.map(async subdir => {\n const res = dir + '/' + subdir\n return (await this._stat(res)).isDirectory()\n ? this.readdirDeep(res)\n : res\n })\n )\n return files.reduce((a, f) => a.concat(f), [])\n }\n\n /**\n * Return the Stats of a file/symlink if it exists, otherwise returns null.\n * Rethrows errors that aren't related to file existence.\n *\n * @param {string} filename - The path to the file or symlink.\n * @returns {Promise<Object|null>} - The stats object, or `null` if the file doesn't exist.\n */\n async lstat(filename) {\n try {\n const stats = await this._lstat(filename)\n return stats\n } catch (err) {\n if (err.code === 'ENOENT' || (err.code || '').includes('ENS')) {\n return null\n }\n throw err\n }\n }\n\n /**\n * Reads the contents of a symlink if it exists, otherwise returns null.\n * Rethrows errors that aren't related to file existence.\n *\n * @param {string} filename - The path to the symlink.\n * @param {Object} [opts={ encoding: 'buffer' }] - Options for reading the symlink.\n * @returns {Promise<Buffer|null>} - The symlink target, or `null` if it doesn't exist.\n */\n async readlink(filename, opts = { encoding: 'buffer' }) {\n // Note: FileSystem.readlink returns a buffer by default\n // so we can dump it into GitObject.write just like any other file.\n try {\n const link = await this._readlink(filename, opts)\n return Buffer.isBuffer(link) ? link : Buffer.from(link)\n } catch (err) {\n if (err.code === 'ENOENT' || (err.code || '').includes('ENS')) {\n return null\n }\n throw err\n }\n }\n\n /**\n * Write the contents of buffer to a symlink.\n *\n * @param {string} filename - The path to the symlink.\n * @param {Buffer} buffer - The symlink target.\n * @returns {Promise<void>}\n */\n async writelink(filename, buffer) {\n return this._symlink(buffer.toString('utf8'), filename)\n }\n}\n"],"names":["root","factory","exports","module","define","amd","self","processFn","fn","options","args","P","promiseModule","resolve","reject","multiArgs","push","result","errorFirst","shift","error","apply","this","input","Object","assign","exclude","Promise","objType","TypeError","filter","key","match","pattern","test","include","some","ret","excludeMain","create","getPrototypeOf","property","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","o","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","NEEDS_CODE_POINT_ORDER","isLoneSurrogate","s","i","unit","next","length","charCodeAt","prev","compareStrings","a","b","Math","min","x","y","dirname","path","last","max","lastIndexOf","slice","async","mkdirp","mkdir","filepath","retries","err","code","parent","attempt","err2","setTimeout","rmRecursive","fs","entries","readdir","rm","all","map","entry","subpath","joined","arg","replace","drivePrefix","getWindowsDrivePrefix","isAbsolute","trailingSeparator","at","normalized","aar","res","lastSegmentLength","lastSlash","dots","char","lastSlashIndex","normalizeString","normalize","join","lstat","then","stat","isDirectory","rmdir","isFunction","isPromiseFs","isObject","targetFs","readFile","catch","e","commands","bindFs","target","command","bind","pify","cp","_cp","_rm","FileSystem","constructor","_original_unwrapped_fs","promises","getOwnPropertyDescriptor","exists","_stat","includes","console","log","read","buffer","_readFile","autocrlf","TextDecoder","fatal","decode","TextEncoder","encode","Buffer","from","write","contents","_writeFile","_mkdir","_unlink","opts","recursive","_rmdir","names","_readdir","sort","readdirDeep","dir","subdirs","subdir","reduce","f","concat","filename","_lstat","readlink","encoding","link","_readlink","isBuffer","writelink","_symlink","toString"],"sourceRoot":""}
1
+ {"version":3,"file":"models/index.umd.min.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAa,IAAID,IAEjBD,EAAU,IAAIC,GACf,CATD,CASGK,KAAM,I,mCCPT,MAAMC,EAAY,CAACC,EAAIC,IAAY,YAAaC,GAG/C,OAAO,IAAIC,EAFDF,EAAQG,eAEL,CAACC,EAASC,KAClBL,EAAQM,UACXL,EAAKM,KAAK,IAAIC,KACTR,EAAQS,WACPD,EAAO,GACVH,EAAOG,IAEPA,EAAOE,QACPN,EAAQI,IAGTJ,EAAQI,KAGAR,EAAQS,WAClBR,EAAKM,KAAK,CAACI,EAAOH,KACbG,EACHN,EAAOM,GAEPP,EAAQI,KAIVP,EAAKM,KAAKH,GAGXL,EAAGa,MAAMC,KAAMZ,IAEjB,EAEAP,EAAOD,QAAU,CAACqB,EAAOd,KACxBA,EAAUe,OAAOC,OAAO,CACvBC,QAAS,CAAC,oBACVR,YAAY,EACZN,cAAee,SACblB,GAEH,MAAMmB,SAAiBL,EACvB,GAAgB,OAAVA,GAA+B,WAAZK,GAAoC,aAAZA,EAChD,MAAM,IAAIC,UAAU,gEAA0E,OAAVN,EAAiB,OAASK,OAG/G,MAAME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AAMgE,EAAM,IAAME,EACxB,aAAc/J,KAAKmI,MAAMtC,IAAMY,cAC3BzG,KAAK4J,YAAY/D,GACjBA,MAGKmE,OAAO,CAAC7G,EAAG8G,IAAM9G,EAAE+G,OAAOD,GAAI,GAC7C,CASA,WAAM3D,CAAM6D,GACV,IAEE,aADoBnK,KAAKoK,OAAOD,EAElC,CAAE,MAAO/F,GACP,GAAIwC,EAAgBxC,GAClB,OAAO,KAET,MAAMA,CACR,CACF,CAUA,cAAMiG,CAASF,EAAUb,EAAO,CAAEgB,SAAU,WAG1C,IACE,MAAMC,QAAavK,KAAKwK,UAAUL,EAAUb,GAC5C,OAAOP,OAAO0B,SAASF,GAAQA,EAAOxB,OAAOC,KAAKuB,EACpD,CAAE,MAAOnG,GACP,GAAIwC,EAAgBxC,GAClB,OAAO,KAET,MAAMA,CACR,CACF,CASA,eAAMsG,CAAUP,EAAU5B,GACxB,OAAOvI,KAAK2K,SAASpC,EAAOqC,SAAS,QAAST,EAChD,E","sources":["webpack://git/webpack/universalModuleDefinition","webpack://git/./node_modules/pify/index.js","webpack://git/webpack/bootstrap","webpack://git/webpack/runtime/define property getters","webpack://git/webpack/runtime/hasOwnProperty shorthand","webpack://git/webpack/runtime/make namespace object","webpack://git/./src/utils/compareStrings.js","webpack://git/./src/utils/dirname.js","webpack://git/./src/utils/mkdirp.js","webpack://git/./src/utils/rmRecursive.js","webpack://git/./src/utils/join.js","webpack://git/./src/utils/types.js","webpack://git/./src/models/FileSystem.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"git\"] = factory();\n\telse\n\t\troot[\"git\"] = factory();\n})(self, () => {\nreturn ","'use strict';\n\nconst processFn = (fn, options) => function (...args) {\n\tconst P = options.promiseModule;\n\n\treturn new P((resolve, reject) => {\n\t\tif (options.multiArgs) {\n\t\t\targs.push((...result) => {\n\t\t\t\tif (options.errorFirst) {\n\t\t\t\t\tif (result[0]) {\n\t\t\t\t\t\treject(result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult.shift();\n\t\t\t\t\t\tresolve(result);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresolve(result);\n\t\t\t\t}\n\t\t\t});\n\t\t} else if (options.errorFirst) {\n\t\t\targs.push((error, result) => {\n\t\t\t\tif (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t} else {\n\t\t\t\t\tresolve(result);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\targs.push(resolve);\n\t\t}\n\n\t\tfn.apply(this, args);\n\t});\n};\n\nmodule.exports = (input, options) => {\n\toptions = Object.assign({\n\t\texclude: [/.+(Sync|Stream)$/],\n\t\terrorFirst: true,\n\t\tpromiseModule: Promise\n\t}, options);\n\n\tconst objType = typeof input;\n\tif (!(input !== null && (objType === 'object' || objType === 'function'))) {\n\t\tthrow new TypeError(`Expected \\`input\\` to be a \\`Function\\` or \\`Object\\`, got \\`${input === null ? 'null' : objType}\\``);\n\t}\n\n\tconst filter = key => {\n\t\tconst match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key);\n\t\treturn options.include ? options.include.some(match) : !options.exclude.some(match);\n\t};\n\n\tlet ret;\n\tif (objType === 'function') {\n\t\tret = function (...args) {\n\t\t\treturn options.excludeMain ? input(...args) : processFn(input, options).apply(this, args);\n\t\t};\n\t} else {\n\t\tret = Object.create(Object.getPrototypeOf(input));\n\t}\n\n\tfor (const key in input) { // eslint-disable-line guard-for-in\n\t\tconst property = input[key];\n\t\tret[key] = typeof property === 'function' && filter(key) ? processFn(property, options) : property;\n\t}\n\n\treturn ret;\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// Code units from U+D800 up. Only these can make the two orders differ.\nconst NEEDS_CODE_POINT_ORDER = /[\\ud800-￿]/\n\n// Is the code unit at index i a surrogate with no partner? Such a unit is not valid Unicode.\n// A high surrogate needs a low one after it. A low surrogate needs a high one before it.\nfunction isLoneSurrogate(s, i, unit) {\n if (unit < 0xd800 || unit > 0xdfff) return false\n if (unit < 0xdc00) {\n const next = i + 1 < s.length ? s.charCodeAt(i + 1) : 0\n return next < 0xdc00 || next > 0xdfff\n }\n const prev = i > 0 ? s.charCodeAt(i - 1) : 0\n return prev < 0xd800 || prev > 0xdbff\n}\n\n/**\n * Compare two strings by code point. This gives the same order as the UTF-8 bytes of the\n * strings, and git sorts paths in that order. The `<` operator compares UTF-16 code units,\n * so it puts a character above U+FFFF (a surrogate pair) before the characters from U+E000\n * to U+FFFF. Git puts it after them. A lone surrogate counts as U+FFFD, because the UTF-8\n * encoding of the path writes it that way.\n *\n * @param {string} a\n * @param {string} b\n * @returns {-1 | 0 | 1}\n */\nexport function compareStrings(a, b) {\n if (!NEEDS_CODE_POINT_ORDER.test(a) && !NEEDS_CODE_POINT_ORDER.test(b)) {\n // Both orders are the same, and the `<` operator is the fastest way.\n return -(a < b) || +(a > b)\n }\n const length = Math.min(a.length, b.length)\n for (let i = 0; i < length; i++) {\n let x = a.charCodeAt(i)\n let y = b.charCodeAt(i)\n if (x !== y) {\n if (isLoneSurrogate(a, i, x)) x = 0xfffd\n if (isLoneSurrogate(b, i, y)) y = 0xfffd\n if (x === y) continue\n // Move the surrogates (U+D800 to U+DFFF) above U+FFFF, where their code points are.\n if (x >= 0xd800 && y >= 0xd800) {\n x += x >= 0xe000 ? -0x800 : 0x2000\n y += y >= 0xe000 ? -0x800 : 0x2000\n }\n return x < y ? -1 : 1\n }\n }\n return a.length < b.length ? -1 : a.length > b.length ? 1 : 0\n}\n","export function dirname(path) {\n const last = Math.max(path.lastIndexOf('/'), path.lastIndexOf('\\\\'))\n if (last === -1) return '.'\n if (last === 0) return '/'\n return path.slice(0, last)\n}\n","import { dirname } from './dirname.js'\n\n/**\n * Recursively creates the directory at `filepath`, creating any missing parent\n * directories along the way. This is a portable replacement for\n * `fs.mkdir(path, { recursive: true })`: recursive `mkdir` is NOT part of\n * isomorphic-git's required `fs` contract (see docs/fs.md — `mkdir` is only\n * `mkdir(path[, mode])`) and is unimplemented by some backends such as\n * lightning-fs, so we build it here on top of a single-level `mkdir(path)`\n * primitive only — mirroring how `rmRecursive` provides `rm({ recursive: true })`.\n *\n * It takes the raw single-level `mkdir` *function* (typically `fs._mkdir`)\n * rather than the FileSystem wrapper, to stay decoupled from that type.\n *\n * `EEXIST` is treated as success, so two callers concurrently creating the same\n * directory (e.g. several reflog writes into `.git/logs/refs/*` during a stash)\n * don't fail each other. On backends whose layers are only eventually\n * consistent — e.g. an async copy-on-write overlay — a just-created parent may\n * not yet be visible when its child is created, so `mkdir` can throw a\n * transient `ENOENT`; those are retried a bounded number of times rather than\n * surfaced as a spurious failure.\n *\n * @param {(filepath: string) => Promise<unknown>} mkdir - Creates a single directory (non-recursive).\n * @param {string} filepath - The directory to create.\n * @param {number} [retries=10] - Max transient-ENOENT retries after the parent exists.\n * @returns {Promise<void>}\n */\nexport async function mkdirp(mkdir, filepath, retries = 10) {\n try {\n await mkdir(filepath)\n } catch (err) {\n // Some fs implementations signal success by yielding a null error.\n if (err === null) return\n // The directory already exists — that's fine.\n if (err.code === 'EEXIST') return\n // Anything other than a missing parent is a real error.\n if (err.code !== 'ENOENT') throw err\n const parent = dirname(filepath)\n // Stop if we've walked past the filesystem root.\n if (parent === '.' || parent === '/' || parent === filepath) throw err\n // Create the missing parent(s) first, honoring the same retry budget.\n await mkdirp(mkdir, parent, retries)\n // Then (re)create this directory. On an eventually-consistent backend the\n // parent may not be visible immediately after its mkdir resolves, so a\n // repeated ENOENT here is transient — retry a bounded number of times,\n // yielding between attempts so the pending write can settle.\n for (let attempt = 0; ; attempt++) {\n try {\n await mkdir(filepath)\n return\n } catch (err2) {\n if (err2 === null || err2.code === 'EEXIST') return\n if (err2.code === 'ENOENT' && attempt < retries) {\n // Give the backend a turn of the event loop to become consistent.\n await new Promise(resolve => setTimeout(resolve, 0))\n continue\n }\n throw err2\n }\n }\n }\n}\n","import { join } from './join.js'\n\n/**\n * Removes the directory at the specified filepath recursively. Used internally to replicate the behavior of\n * fs.promises.rm({ recursive: true, force: true }) from Node.js 14 and above when not available. If the provided\n * filepath resolves to a file, it will be removed.\n *\n * @param {import('../models/FileSystem.js').FileSystem} fs\n * @param {string} filepath - The file or directory to remove.\n */\nexport async function rmRecursive(fs, filepath) {\n const entries = await fs.readdir(filepath)\n if (entries == null) {\n await fs.rm(filepath)\n } else if (entries.length) {\n await Promise.all(\n entries.map(entry => {\n const subpath = join(filepath, entry)\n return fs.lstat(subpath).then(stat => {\n if (!stat) return\n return stat.isDirectory() ? rmRecursive(fs, subpath) : fs.rm(subpath)\n })\n })\n ).then(() => fs.rmdir(filepath))\n } else {\n await fs.rmdir(filepath)\n }\n}\n","/*!\n * This code for `path.join` is directly copied from @zenfs/core/path for bundle size improvements.\n * SPDX-License-Identifier: LGPL-3.0-or-later\n * Copyright (c) James Prevett and other ZenFS contributors.\n *\n * Windows support added:\n * - Backslashes are normalised to forward slashes before processing.\n * - Drive-letter prefixes (e.g. \"C:\") are detected and preserved through\n * normalisation, so absolute Windows paths are handled correctly.\n * - An absolute argument passed to join() resets the accumulated path,\n * matching Node behaviour and handling worktree gitdir paths properly.\n *\n * Limitation: UNC paths (e.g. \\\\server\\share) are not supported. The leading\n * backslashes are normalised to forward slashes and then collapsed by\n * normalizeString, losing the UNC root. Git on Windows works with\n * drive-letter paths, so this is not expected to be a practical issue.\n */\n\nfunction normalizeString(path, aar) {\n let res = ''\n let lastSegmentLength = 0\n let lastSlash = -1\n let dots = 0\n let char = '\\x00'\n for (let i = 0; i <= path.length; ++i) {\n if (i < path.length) char = path[i]\n else if (char === '/') break\n else char = '/'\n\n if (char === '/') {\n if (lastSlash === i - 1 || dots === 1) {\n // NOOP\n } else if (dots === 2) {\n if (\n res.length < 2 ||\n lastSegmentLength !== 2 ||\n res.at(-1) !== '.' ||\n res.at(-2) !== '.'\n ) {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf('/')\n if (lastSlashIndex === -1) {\n res = ''\n lastSegmentLength = 0\n } else {\n res = res.slice(0, lastSlashIndex)\n lastSegmentLength = res.length - 1 - res.lastIndexOf('/')\n }\n lastSlash = i\n dots = 0\n continue\n } else if (res.length !== 0) {\n res = ''\n lastSegmentLength = 0\n lastSlash = i\n dots = 0\n continue\n }\n }\n if (aar) {\n res += res.length > 0 ? '/..' : '..'\n lastSegmentLength = 2\n }\n } else {\n if (res.length > 0) res += '/' + path.slice(lastSlash + 1, i)\n else res = path.slice(lastSlash + 1, i)\n lastSegmentLength = i - lastSlash - 1\n }\n lastSlash = i\n dots = 0\n } else if (char === '.' && dots !== -1) {\n ++dots\n } else {\n dots = -1\n }\n }\n return res\n}\n\n// Returns the Windows drive prefix (\"C:\") if present, otherwise null.\nfunction getWindowsDrivePrefix(path) {\n if (path.length >= 2 && /^[a-zA-Z]:/.test(path)) {\n return path.slice(0, 2) // e.g. \"C:\"\n }\n return null\n}\n\nfunction normalize(path) {\n if (!path.length) return '.'\n\n // Normalise backslashes to forward slashes before any other processing.\n path = path.replace(/\\\\/g, '/')\n\n const drivePrefix = getWindowsDrivePrefix(path)\n // isAbsolute: Unix root ('/foo') OR Windows drive+slash ('C:/foo').\n const isAbsolute =\n path[0] === '/' || (drivePrefix !== null && path[2] === '/')\n const trailingSeparator = path.at(-1) === '/'\n\n // Strip the drive prefix before feeding into normalizeString so that the\n // core algorithm only ever sees a plain POSIX-style string.\n const pathBody = drivePrefix ? path.slice(2) : path\n\n let normalized = normalizeString(pathBody, !isAbsolute)\n\n if (!normalized.length) {\n const root = drivePrefix\n ? isAbsolute\n ? drivePrefix + '/'\n : drivePrefix\n : isAbsolute\n ? '/'\n : '.'\n return trailingSeparator && !isAbsolute ? root + '/' : root\n }\n if (trailingSeparator) normalized += '/'\n\n if (drivePrefix) {\n return isAbsolute\n ? `${drivePrefix}/${normalized}`\n : `${drivePrefix}${normalized}`\n }\n return isAbsolute ? `/${normalized}` : normalized\n}\n\nexport function join(...args) {\n if (args.length === 0) return '.'\n let joined\n for (let i = 0; i < args.length; ++i) {\n // Normalise separators before processing.\n const arg = args[i].replace(/\\\\/g, '/')\n if (arg.length === 0) continue\n\n // A Windows drive-letter path (e.g. \"C:/worktrees/foo\") cannot be\n // meaningfully appended to any base, so it resets the accumulator.\n // Unix absolute paths (leading '/') are NOT reset here — that would be\n // path.resolve() semantics; path.join('foo', '/bar') must yield 'foo/bar'.\n if (/^[a-zA-Z]:\\//.test(arg)) {\n joined = arg\n } else {\n if (joined === undefined) joined = arg\n else joined += '/' + arg\n }\n }\n if (joined === undefined) return '.'\n return normalize(joined)\n}\n","export function isPromiseLike(obj) {\n return isObject(obj) && isFunction(obj.then) && isFunction(obj.catch)\n}\n\nexport function isObject(obj) {\n return obj && typeof obj === 'object'\n}\n\nexport function isFunction(obj) {\n return typeof obj === 'function'\n}\n","import pify from 'pify'\n\nimport { compareStrings } from '../utils/compareStrings.js'\nimport { dirname } from '../utils/dirname.js'\nimport { mkdirp } from '../utils/mkdirp.js'\nimport { rmRecursive } from '../utils/rmRecursive.js'\nimport { isPromiseLike } from '../utils/types.js'\n\n// React Native file systems on iOS report a missing file with codes like\n// ENSCOCOAERRORDOMAIN260 instead of ENOENT.\nfunction isNotFoundError(err) {\n const code = err.code\n if (typeof code !== 'string') return false\n return code === 'ENOENT' || code === 'ENOTDIR' || code.includes('ENS')\n}\n\nfunction isPromiseFs(fs) {\n const test = targetFs => {\n try {\n // If readFile returns a promise then we can probably assume the other\n // commands do as well\n return targetFs.readFile().catch(e => e)\n } catch (e) {\n return e\n }\n }\n return isPromiseLike(test(fs))\n}\n\n// List of commands all filesystems are expected to provide. `rm` is not\n// included since it may not exist and must be handled as a special case\n// Likewise with `cp`.\nconst commands = [\n 'readFile',\n 'writeFile',\n 'mkdir',\n 'rmdir',\n 'unlink',\n 'stat',\n 'lstat',\n 'readdir',\n 'readlink',\n 'symlink',\n]\n\nfunction bindFs(target, fs) {\n if (isPromiseFs(fs)) {\n for (const command of commands) {\n target[`_${command}`] = fs[command].bind(fs)\n }\n } else {\n for (const command of commands) {\n target[`_${command}`] = pify(fs[command].bind(fs))\n }\n }\n\n // Handle the special cases of `rm` and `cp`\n if (isPromiseFs(fs)) {\n if (fs.cp) target._cp = fs.cp.bind(fs)\n if (fs.rm) target._rm = fs.rm.bind(fs)\n else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs)\n else target._rm = rmRecursive.bind(null, target)\n } else {\n if (fs.cp) target._cp = pify(fs.cp.bind(fs))\n if (fs.rm) target._rm = pify(fs.rm.bind(fs))\n else if (fs.rmdir.length > 2) target._rm = pify(fs.rmdir.bind(fs))\n else target._rm = rmRecursive.bind(null, target)\n }\n}\n\n/**\n * A wrapper class for file system operations, providing a consistent API for both promise-based\n * and callback-based file systems. It includes utility methods for common file system tasks.\n */\nexport class FileSystem {\n /**\n * Creates an instance of FileSystem.\n *\n * @param {Object} fs - A file system implementation to wrap.\n */\n constructor(fs) {\n if (typeof fs._original_unwrapped_fs !== 'undefined') return fs\n\n const promises = Object.getOwnPropertyDescriptor(fs, 'promises')\n if (promises && promises.enumerable) {\n bindFs(this, fs.promises)\n } else {\n bindFs(this, fs)\n }\n this._original_unwrapped_fs = fs\n }\n\n /**\n * Return true if a file exists, false if it doesn't exist.\n * Rethrows errors that aren't related to file existence.\n *\n * @param {string} filepath - The path to the file.\n * @param {Object} [options] - Additional options.\n * @returns {Promise<boolean>} - `true` if the file exists, `false` otherwise.\n */\n async exists(filepath, options = {}) {\n try {\n await this._stat(filepath)\n return true\n } catch (err) {\n if (isNotFoundError(err)) {\n return false\n } else {\n console.log('Unhandled error in \"FileSystem.exists()\" function', err)\n throw err\n }\n }\n }\n\n /**\n * Return the contents of a file if it exists, otherwise returns null.\n * Rethrows errors that aren't related to file existence.\n *\n * @param {string} filepath - The path to the file.\n * @param {Object} [options] - Options for reading the file.\n * @returns {Promise<Buffer|string|null>} - The file contents, or `null` if the file doesn't exist.\n */\n async read(filepath, options = {}) {\n let buffer\n try {\n buffer = await this._readFile(filepath, options)\n } catch (err) {\n // Ref lookup probes candidate paths that may be missing, may be a\n // directory (`refs/remotes/origin`), or may run through a file.\n if (isNotFoundError(err) || err.code === 'EISDIR') return null\n throw err\n }\n // LightningFS resolves a directory read to undefined instead of EISDIR.\n if (buffer == null) return null\n if (options.autocrlf === 'true') {\n try {\n buffer = new TextDecoder('utf8', { fatal: true }).decode(buffer)\n buffer = buffer.replace(/\\r\\n/g, '\\n')\n buffer = new TextEncoder().encode(buffer)\n } catch (error) {\n // non utf8 file\n }\n }\n // Convert plain ArrayBuffers to Buffers\n if (typeof buffer !== 'string') {\n buffer = Buffer.from(buffer)\n }\n return buffer\n }\n\n /**\n * Write a file (creating missing directories if need be) without throwing errors.\n *\n * @param {string} filepath - The path to the file.\n * @param {Buffer|Uint8Array|string} contents - The data to write.\n * @param {Object|string} [options] - Options for writing the file.\n * @returns {Promise<void>}\n */\n async write(filepath, contents, options = {}) {\n try {\n await this._writeFile(filepath, contents, options)\n } catch (err) {\n // Hmm. Let's try mkdirp and try again.\n await this.mkdir(dirname(filepath))\n await this._writeFile(filepath, contents, options)\n }\n }\n\n /**\n * Make a directory (or series of nested directories) without throwing an error if it already exists.\n *\n * @param {string} filepath - The path to the directory.\n * @returns {Promise<void>}\n */\n async mkdir(filepath) {\n // Recursively create the directory, using only single-level `_mkdir` so we\n // don't depend on `{ recursive: true }` (which isn't part of the required\n // `fs` contract — see docs/fs.md — and is unimplemented by some backends\n // e.g. lightning-fs). The helper tolerates EEXIST and the transient ENOENT\n // that eventually-consistent backends throw when a freshly created parent\n // isn't visible yet, which is what made concurrent reflog writes into\n // `.git/logs/refs/*` fail intermittently.\n await mkdirp(this._mkdir, filepath)\n }\n\n /**\n * Delete a file without throwing an error if it is already deleted.\n *\n * @param {string} filepath - The path to the file.\n * @returns {Promise<void>}\n */\n async rm(filepath) {\n try {\n await this._unlink(filepath)\n } catch (err) {\n if (err.code !== 'ENOENT') throw err\n }\n }\n\n /**\n * Delete a directory without throwing an error if it is already deleted.\n *\n * @param {string} filepath - The path to the directory.\n * @param {Object} [opts] - Options for deleting the directory.\n * @returns {Promise<void>}\n */\n async rmdir(filepath, opts) {\n try {\n if (opts && opts.recursive) {\n await this._rm(filepath, opts)\n } else {\n await this._rmdir(filepath)\n }\n } catch (err) {\n if (err.code !== 'ENOENT') throw err\n }\n }\n\n /**\n * Read a directory without throwing an error if the directory doesn't exist.\n * Rethrows errors that aren't related to directory existence.\n *\n * @param {string} filepath - The path to the directory.\n * @returns {Promise<string[]|null>} - An array of file names, or `null` if the path is not a directory.\n */\n async readdir(filepath) {\n let names\n try {\n names = await this._readdir(filepath)\n } catch (err) {\n if (err.code === 'ENOTDIR') return null\n if (isNotFoundError(err)) return []\n throw err\n }\n // Ordering is not guaranteed, and system specific (Windows vs Unix)\n // so we must sort them ourselves.\n names.sort(compareStrings)\n return names\n }\n\n /**\n * Return a flat list of all the files nested inside a directory\n *\n * Based on an elegant concurrent recursive solution from SO\n * https://stackoverflow.com/a/45130990/2168416\n *\n * @param {string} dir - The directory to read.\n * @returns {Promise<string[]>} - A flat list of all files in the directory.\n */\n async readdirDeep(dir) {\n const subdirs = await this._readdir(dir)\n const files = await Promise.all(\n subdirs.map(async subdir => {\n const res = dir + '/' + subdir\n return (await this._stat(res)).isDirectory()\n ? this.readdirDeep(res)\n : res\n })\n )\n return files.reduce((a, f) => a.concat(f), [])\n }\n\n /**\n * Return the Stats of a file/symlink if it exists, otherwise returns null.\n * Rethrows errors that aren't related to file existence.\n *\n * @param {string} filename - The path to the file or symlink.\n * @returns {Promise<Object|null>} - The stats object, or `null` if the file doesn't exist.\n */\n async lstat(filename) {\n try {\n const stats = await this._lstat(filename)\n return stats\n } catch (err) {\n if (isNotFoundError(err)) {\n return null\n }\n throw err\n }\n }\n\n /**\n * Reads the contents of a symlink if it exists, otherwise returns null.\n * Rethrows errors that aren't related to file existence.\n *\n * @param {string} filename - The path to the symlink.\n * @param {Object} [opts={ encoding: 'buffer' }] - Options for reading the symlink.\n * @returns {Promise<Buffer|null>} - The symlink target, or `null` if it doesn't exist.\n */\n async readlink(filename, opts = { encoding: 'buffer' }) {\n // Note: FileSystem.readlink returns a buffer by default\n // so we can dump it into GitObject.write just like any other file.\n try {\n const link = await this._readlink(filename, opts)\n return Buffer.isBuffer(link) ? link : Buffer.from(link)\n } catch (err) {\n if (isNotFoundError(err)) {\n return null\n }\n throw err\n }\n }\n\n /**\n * Write the contents of buffer to a symlink.\n *\n * @param {string} filename - The path to the symlink.\n * @param {Buffer} buffer - The symlink target.\n * @returns {Promise<void>}\n */\n async writelink(filename, buffer) {\n return this._symlink(buffer.toString('utf8'), filename)\n }\n}\n"],"names":["root","factory","exports","module","define","amd","self","processFn","fn","options","args","P","promiseModule","resolve","reject","multiArgs","push","result","errorFirst","shift","error","apply","this","input","Object","assign","exclude","Promise","objType","TypeError","filter","key","match","pattern","test","include","some","ret","excludeMain","create","getPrototypeOf","property","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","o","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","NEEDS_CODE_POINT_ORDER","isLoneSurrogate","s","i","unit","next","length","charCodeAt","prev","compareStrings","a","b","Math","min","x","y","dirname","path","last","max","lastIndexOf","slice","async","mkdirp","mkdir","filepath","retries","err","code","parent","attempt","err2","setTimeout","rmRecursive","fs","entries","readdir","rm","all","map","entry","subpath","joined","arg","replace","drivePrefix","getWindowsDrivePrefix","isAbsolute","trailingSeparator","at","normalized","aar","res","lastSegmentLength","lastSlash","dots","char","lastSlashIndex","normalizeString","normalize","join","lstat","then","stat","isDirectory","rmdir","isFunction","isNotFoundError","includes","isPromiseFs","isObject","targetFs","readFile","catch","e","commands","bindFs","target","command","bind","pify","cp","_cp","_rm","FileSystem","constructor","_original_unwrapped_fs","promises","getOwnPropertyDescriptor","exists","_stat","console","log","read","buffer","_readFile","autocrlf","TextDecoder","fatal","decode","TextEncoder","encode","Buffer","from","write","contents","_writeFile","_mkdir","_unlink","opts","recursive","_rmdir","names","_readdir","sort","readdirDeep","dir","subdirs","subdir","reduce","f","concat","filename","_lstat","readlink","encoding","link","_readlink","isBuffer","writelink","_symlink","toString"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorphic-git",
3
- "version": "1.44.2",
3
+ "version": "1.44.4",
4
4
  "description": "A pure JavaScript reimplementation of git for node and browsers",
5
5
  "type": "module",
6
6
  "typings": "./index.d.cts",