| Offset 1, 5 lines modified | Offset 1, 5 lines modified | ||
| 1 | Zip·file·size:·28 | 1 | Zip·file·size:·2807806·bytes,·number·of·entries:·3 |
| 2 | -rw-r--r--··4.5·unx·······30·bx·stor·25-Dec-23·18:04·metadata.json | 2 | -rw-r--r--··4.5·unx·······30·bx·stor·25-Dec-23·18:04·metadata.json |
| 3 | -rw-r--r--··4.5·unx··2 | 3 | -rw-r--r--··4.5·unx··2580236·bx·stor·25-Dec-23·18:04·pkg-ls-engines-0.10.0-hee61e0b_0.tar.zst |
| 4 | -rw-r--r--··4.5·unx···2269 | 4 | -rw-r--r--··4.5·unx···226982·bx·stor·25-Dec-23·18:04·info-ls-engines-0.10.0-hee61e0b_0.tar.zst |
| 5 | 3·files,·28 | 5 | 3·files,·2807248·bytes·uncompressed,·2807248·bytes·compressed:··0.0% |
| Offset 19, 125 lines modified | Offset 19, 125 lines modified | ||
| 19 | 00005D·LOCAL·HEADER·#2·······04034B50 | 19 | 00005D·LOCAL·HEADER·#2·······04034B50 |
| 20 | 000061·Extract·Zip·Spec······2D·'4.5' | 20 | 000061·Extract·Zip·Spec······2D·'4.5' |
| 21 | 000062·Extract·OS············00·'MS-DOS' | 21 | 000062·Extract·OS············00·'MS-DOS' |
| 22 | 000063·General·Purpose·Flag··0000 | 22 | 000063·General·Purpose·Flag··0000 |
| 23 | 000065·Compression·Method····0000·'Stored' | 23 | 000065·Compression·Method····0000·'Stored' |
| 24 | 000067·Last·Mod·Time·········5B979091·'Tue·Dec·23·18:04:34·2025' | 24 | 000067·Last·Mod·Time·········5B979091·'Tue·Dec·23·18:04:34·2025' |
| 25 | 00006B·CRC··················· | 25 | 00006B·CRC···················2E4054CE |
| 26 | 00006F·Compressed·Length·····FFFFFFFF | 26 | 00006F·Compressed·Length·····FFFFFFFF |
| 27 | 000073·Uncompressed·Length···FFFFFFFF | 27 | 000073·Uncompressed·Length···FFFFFFFF |
| 28 | 000077·Filename·Length·······0028 | 28 | 000077·Filename·Length·······0028 |
| 29 | 000079·Extra·Length··········0014 | 29 | 000079·Extra·Length··········0014 |
| 30 | 00007B·Filename··············'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | 30 | 00007B·Filename··············'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 31 | ·····························X' | 31 | ·····························X' |
| 32 | 0000A3·Extra·ID·#0001········0001·'ZIP64' | 32 | 0000A3·Extra·ID·#0001········0001·'ZIP64' |
| 33 | 0000A5···Length··············0010 | 33 | 0000A5···Length··············0010 |
| 34 | 0000A7···Uncompressed·Size···000000000027 | 34 | 0000A7···Uncompressed·Size···0000000000275F0C |
| 35 | 0000AF···Compressed·Size·····000000000027 | 35 | 0000AF···Compressed·Size·····0000000000275F0C |
| 36 | 0000B7·PAYLOAD | 36 | 0000B7·PAYLOAD |
| 37 | 27 | 37 | 275FC3·LOCAL·HEADER·#3·······04034B50 |
| 38 | 27 | 38 | 275FC7·Extract·Zip·Spec······2D·'4.5' |
| 39 | 27 | 39 | 275FC8·Extract·OS············00·'MS-DOS' |
| 40 | 27 | 40 | 275FC9·General·Purpose·Flag··0000 |
| 41 | 27 | 41 | 275FCB·Compression·Method····0000·'Stored' |
| 42 | 27 | 42 | 275FCD·Last·Mod·Time·········5B979091·'Tue·Dec·23·18:04:34·2025' |
| 43 | 27 | 43 | 275FD1·CRC···················EF64B13E |
| 44 | 27 | 44 | 275FD5·Compressed·Length·····FFFFFFFF |
| 45 | 27 | 45 | 275FD9·Uncompressed·Length···FFFFFFFF |
| 46 | 27 | 46 | 275FDD·Filename·Length·······0029 |
| 47 | 27 | 47 | 275FDF·Extra·Length··········0014 |
| 48 | 27 | 48 | 275FE1·Filename··············'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 49 | ·····························XX' | 49 | ·····························XX' |
| 50 | 27 | 50 | 27600A·Extra·ID·#0001········0001·'ZIP64' |
| 51 | 27 | 51 | 27600C···Length··············0010 |
| 52 | 27 | 52 | 27600E···Uncompressed·Size···00000000000376A6 |
| 53 | 27 | 53 | 276016···Compressed·Size·····00000000000376A6 |
| 54 | 27 | 54 | 27601E·PAYLOAD |
| 55 | 2 | 55 | 2AD6C4·CENTRAL·HEADER·#1·····02014B50 |
| 56 | 2 | 56 | 2AD6C8·Created·Zip·Spec······2D·'4.5' |
| 57 | 2 | 57 | 2AD6C9·Created·OS············03·'Unix' |
| 58 | 2 | 58 | 2AD6CA·Extract·Zip·Spec······2D·'4.5' |
| 59 | 2 | 59 | 2AD6CB·Extract·OS············00·'MS-DOS' |
| 60 | 2 | 60 | 2AD6CC·General·Purpose·Flag··0000 |
| 61 | 2 | 61 | 2AD6CE·Compression·Method····0000·'Stored' |
| 62 | 2 | 62 | 2AD6D0·Last·Mod·Time·········5B979091·'Tue·Dec·23·18:04:34·2025' |
| 63 | 2 | 63 | 2AD6D4·CRC···················2E6500CB |
| 64 | 2 | 64 | 2AD6D8·Compressed·Length·····FFFFFFFF |
| 65 | 2 | 65 | 2AD6DC·Uncompressed·Length···FFFFFFFF |
| 66 | 2 | 66 | 2AD6E0·Filename·Length·······000D |
| 67 | 2 | 67 | 2AD6E2·Extra·Length··········0014 |
| 68 | 2 | 68 | 2AD6E4·Comment·Length········0000 |
| 69 | 2 | 69 | 2AD6E6·Disk·Start············0000 |
| 70 | 2 | 70 | 2AD6E8·Int·File·Attributes···0000 |
| 71 | ·······[Bit·0]···············0·'Binary·Data' | 71 | ·······[Bit·0]···············0·'Binary·Data' |
| 72 | 2 | 72 | 2AD6EA·Ext·File·Attributes···81A40000 |
| 73 | 2 | 73 | 2AD6EE·Local·Header·Offset···00000000 |
| 74 | 2 | 74 | 2AD6F2·Filename··············'XXXXXXXXXXXXX' |
| 75 | 2 | 75 | 2AD6FF·Extra·ID·#0001········0001·'ZIP64' |
| 76 | 2 | 76 | 2AD701···Length··············0010 |
| 77 | 2 | 77 | 2AD703···Uncompressed·Size···000000000000001E |
| 78 | 2 | 78 | 2AD70B···Compressed·Size·····000000000000001E |
| 79 | 2 | 79 | 2AD713·CENTRAL·HEADER·#2·····02014B50 |
| 80 | 2 | 80 | 2AD717·Created·Zip·Spec······2D·'4.5' |
| 81 | 2 | 81 | 2AD718·Created·OS············03·'Unix' |
| 82 | 2 | 82 | 2AD719·Extract·Zip·Spec······2D·'4.5' |
| 83 | 2 | 83 | 2AD71A·Extract·OS············00·'MS-DOS' |
| 84 | 2 | 84 | 2AD71B·General·Purpose·Flag··0000 |
| 85 | 2 | 85 | 2AD71D·Compression·Method····0000·'Stored' |
| 86 | 2 | 86 | 2AD71F·Last·Mod·Time·········5B979091·'Tue·Dec·23·18:04:34·2025' |
| 87 | 2 | 87 | 2AD723·CRC···················2E4054CE |
| 88 | 2 | 88 | 2AD727·Compressed·Length·····FFFFFFFF |
| 89 | 2 | 89 | 2AD72B·Uncompressed·Length···FFFFFFFF |
| 90 | 2 | 90 | 2AD72F·Filename·Length·······0028 |
| 91 | 2 | 91 | 2AD731·Extra·Length··········0014 |
| 92 | 2 | 92 | 2AD733·Comment·Length········0000 |
| 93 | 2 | 93 | 2AD735·Disk·Start············0000 |
| 94 | 2 | 94 | 2AD737·Int·File·Attributes···0000 |
| 95 | ·······[Bit·0]···············0·'Binary·Data' | 95 | ·······[Bit·0]···············0·'Binary·Data' |
| 96 | 2 | 96 | 2AD739·Ext·File·Attributes···81A40000 |
| 97 | 2 | 97 | 2AD73D·Local·Header·Offset···0000005D |
| 98 | 2 | 98 | 2AD741·Filename··············'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 99 | ·····························X' | 99 | ·····························X' |
| 100 | 2 | 100 | 2AD769·Extra·ID·#0001········0001·'ZIP64' |
| 101 | 2 | 101 | 2AD76B···Length··············0010 |
| 102 | 2 | 102 | 2AD76D···Uncompressed·Size···0000000000275F0C |
| 103 | 2 | 103 | 2AD775···Compressed·Size·····0000000000275F0C |
| 104 | 2 | 104 | 2AD77D·CENTRAL·HEADER·#3·····02014B50 |
| 105 | 2 | 105 | 2AD781·Created·Zip·Spec······2D·'4.5' |
| 106 | 2 | 106 | 2AD782·Created·OS············03·'Unix' |
| 107 | 2 | 107 | 2AD783·Extract·Zip·Spec······2D·'4.5' |
| 108 | 2 | 108 | 2AD784·Extract·OS············00·'MS-DOS' |
| 109 | 2 | 109 | 2AD785·General·Purpose·Flag··0000 |
| 110 | 2 | 110 | 2AD787·Compression·Method····0000·'Stored' |
| 111 | 2 | 111 | 2AD789·Last·Mod·Time·········5B979091·'Tue·Dec·23·18:04:34·2025' |
| 112 | 2 | 112 | 2AD78D·CRC···················EF64B13E |
| Max diff block lines reached; 1270/8862 bytes (14.33%) of diff not shown. | |||
| Offset 1, 18 lines modified | Offset 1, 18 lines modified | ||
| 1 | -rwxr-xr-x···0········0········0·······72·2025-12-23·18:04:35.000000·bin/ls-engines | 1 | -rwxr-xr-x···0········0········0·······72·2025-12-23·18:04:35.000000·bin/ls-engines |
| 2 | -rw-r--r--···0········0········0·······83·2025-12-23·18:04:35.000000·bin/ls-engines.cmd | 2 | -rw-r--r--···0········0········0·······83·2025-12-23·18:04:35.000000·bin/ls-engines.cmd |
| 3 | -rw-r--r--···0········0········0·····1434·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/.claude/settings.local.json | 3 | -rw-r--r--···0········0········0·····1434·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/.claude/settings.local.json |
| 4 | -rw-r--r--···0········0········0······581·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/.github/FUNDING.yml | 4 | -rw-r--r--···0········0········0······581·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/.github/FUNDING.yml |
| 5 | -rw-r--r--···0········0········0······162·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/.nycrc | 5 | -rw-r--r--···0········0········0······162·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/.nycrc |
| 6 | -rw-r--r--···0········0········0······ | 6 | -rw-r--r--···0········0········0······298·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/.source_info.json |
| 7 | -rw-r--r--···0········0········0····36842·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/CHANGELOG.md | 7 | -rw-r--r--···0········0········0····36842·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/CHANGELOG.md |
| 8 | -rw-r--r--···0········0········0·····1071·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/LICENSE | 8 | -rw-r--r--···0········0········0·····1071·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/LICENSE |
| 9 | -rw-r--r--···0········0········0·····2175·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/README.md | 9 | -rw-r--r--···0········0········0·····2175·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/README.md |
| 10 | -rwxr-xr-x···0········0········0····10533·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/bin.mjs | 10 | -rwxr-xr-x···0········0········0····10533·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/bin.mjs |
| 11 | -rw-r--r--···0········0········0·····3 | 11 | -rw-r--r--···0········0········0·····3609·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/build_env.sh |
| 12 | -rw-r--r--···0········0········0·····1217·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/checkCurrent.js | 12 | -rw-r--r--···0········0········0·····1217·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/checkCurrent.js |
| 13 | -rw-r--r--···0········0········0·····7328·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/checkEngines.js | 13 | -rw-r--r--···0········0········0·····7328·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/checkEngines.js |
| 14 | -rw-r--r--···0········0········0·······28·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/conda_build.log | 14 | -rw-r--r--···0········0········0·······28·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/conda_build.log |
| 15 | -rwxr-xr-x···0········0········0······912·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/conda_build.sh | 15 | -rwxr-xr-x···0········0········0······912·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/conda_build.sh |
| 16 | -rw-r--r--···0········0········0······862·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/eslint.config.mjs | 16 | -rw-r--r--···0········0········0······862·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/eslint.config.mjs |
| 17 | -rw-r--r--···0········0········0······180·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/exit-codes.js | 17 | -rw-r--r--···0········0········0······180·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/exit-codes.js |
| 18 | -rw-r--r--···0········0········0······480·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/get-node-versions.js | 18 | -rw-r--r--···0········0········0······480·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/get-node-versions.js |
| Offset 32, 26 lines modified | Offset 32, 26 lines modified | ||
| 32 | -rw-r--r--···0········0········0······334·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/index.d.ts | 32 | -rw-r--r--···0········0········0······334·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/index.d.ts |
| 33 | -rw-r--r--···0········0········0······323·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/index.d.ts.map | 33 | -rw-r--r--···0········0········0······323·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/index.d.ts.map |
| 34 | -rw-r--r--···0········0········0·····1608·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/index.js | 34 | -rw-r--r--···0········0········0·····1608·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/index.js |
| 35 | -rw-r--r--···0········0········0·····4155·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/index.js.map | 35 | -rw-r--r--···0········0········0·····4155·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/index.js.map |
| 36 | -rw-r--r--···0········0········0·······23·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/package.json | 36 | -rw-r--r--···0········0········0·······23·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/dist/esm/package.json |
| 37 | -rw-r--r--···0········0········0·····1844·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/package.json | 37 | -rw-r--r--···0········0········0·····1844·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/balanced-match/package.json |
| 38 | -rw-r--r--···0········0········0·····1144·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/LICENSE | 38 | -rw-r--r--···0········0········0·····1144·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/LICENSE |
| 39 | -rw-r--r--···0········0········0·····2 | 39 | -rw-r--r--···0········0········0·····2525·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/README.md |
| 40 | -rw-r--r--···0········0········0······ | 40 | -rw-r--r--···0········0········0······227·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts |
| 41 | -rw-r--r--···0········0········0······ | 41 | -rw-r--r--···0········0········0······273·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts.map |
| 42 | -rw-r--r--···0········0········0·····6 | 42 | -rw-r--r--···0········0········0·····6850·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js |
| 43 | -rw-r--r--···0········0········0····13 | 43 | -rw-r--r--···0········0········0····13788·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js.map |
| 44 | -rw-r--r--···0········0········0·······25·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/package.json | 44 | -rw-r--r--···0········0········0·······25·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/package.json |
| 45 | -rw-r--r--···0········0········0······ | 45 | -rw-r--r--···0········0········0······227·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts |
| 46 | -rw-r--r--···0········0········0······ | 46 | -rw-r--r--···0········0········0······273·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts.map |
| 47 | -rw-r--r--···0········0········0·····6 | 47 | -rw-r--r--···0········0········0·····6667·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.js |
| 48 | -rw-r--r--···0········0········0····13 | 48 | -rw-r--r--···0········0········0····13803·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.js.map |
| 49 | -rw-r--r--···0········0········0·······23·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/package.json | 49 | -rw-r--r--···0········0········0·······23·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/package.json |
| 50 | -rw-r--r--···0········0········0·····1 | 50 | -rw-r--r--···0········0········0·····1456·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/package.json |
| 51 | -rw-r--r--···0········0········0······765·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/LICENSE | 51 | -rw-r--r--···0········0········0······765·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/LICENSE |
| 52 | -rw-r--r--···0········0········0·····2546·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/README.md | 52 | -rw-r--r--···0········0········0·····2546·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/README.md |
| 53 | -rw-r--r--···0········0········0·····3906·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts | 53 | -rw-r--r--···0········0········0·····3906·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts |
| 54 | -rw-r--r--···0········0········0·····4163·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map | 54 | -rw-r--r--···0········0········0·····4163·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map |
| 55 | -rw-r--r--···0········0········0····12791·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js | 55 | -rw-r--r--···0········0········0····12791·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js |
| 56 | -rw-r--r--···0········0········0····27213·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map | 56 | -rw-r--r--···0········0········0····27213·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map |
| 57 | -rw-r--r--···0········0········0·······25·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json | 57 | -rw-r--r--···0········0········0·······25·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json |
| Offset 89, 15 lines modified | Offset 89, 15 lines modified | ||
| 89 | -rw-r--r--···0········0········0·····1148·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/bin/reify.js | 89 | -rw-r--r--···0········0········0·····1148·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/bin/reify.js |
| 90 | -rw-r--r--···0········0········0······209·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/bin/shrinkwrap.js | 90 | -rw-r--r--···0········0········0······209·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/bin/shrinkwrap.js |
| 91 | -rw-r--r--···0········0········0······364·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/bin/virtual.js | 91 | -rw-r--r--···0········0········0······364·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/bin/virtual.js |
| 92 | -rw-r--r--···0········0········0·····5008·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/add-rm-pkg-deps.js | 92 | -rw-r--r--···0········0········0·····5008·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/add-rm-pkg-deps.js |
| 93 | -rw-r--r--···0········0········0····57274·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js | 93 | -rw-r--r--···0········0········0····57274·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js |
| 94 | -rw-r--r--···0········0········0·····9864·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/index.js | 94 | -rw-r--r--···0········0········0·····9864·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/index.js |
| 95 | -rw-r--r--···0········0········0····15381·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js | 95 | -rw-r--r--···0········0········0····15381·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js |
| 96 | -rw-r--r--···0········0········0····147 | 96 | -rw-r--r--···0········0········0····14735·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/load-actual.js |
| 97 | -rw-r--r--···0········0········0·····9113·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js | 97 | -rw-r--r--···0········0········0·····9113·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js |
| 98 | -rw-r--r--···0········0········0····11922·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/rebuild.js | 98 | -rw-r--r--···0········0········0····11922·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/rebuild.js |
| 99 | -rw-r--r--···0········0········0····55865·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/reify.js | 99 | -rw-r--r--···0········0········0····55865·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/arborist/reify.js |
| 100 | -rw-r--r--···0········0········0·····9566·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/audit-report.js | 100 | -rw-r--r--···0········0········0·····9566·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/audit-report.js |
| 101 | -rw-r--r--···0········0········0·····3359·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/calc-dep-flags.js | 101 | -rw-r--r--···0········0········0·····3359·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/calc-dep-flags.js |
| 102 | -rw-r--r--···0········0········0····14273·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/can-place-dep.js | 102 | -rw-r--r--···0········0········0····14273·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/can-place-dep.js |
| 103 | -rw-r--r--···0········0········0·····1239·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/case-insensitive-map.js | 103 | -rw-r--r--···0········0········0·····1239·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/case-insensitive-map.js |
| Offset 130, 15 lines modified | Offset 130, 15 lines modified | ||
| 130 | -rw-r--r--···0········0········0·····1381·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/signals.js | 130 | -rw-r--r--···0········0········0·····1381·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/signals.js |
| 131 | -rw-r--r--···0········0········0······874·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/spec-from-lock.js | 131 | -rw-r--r--···0········0········0······874·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/spec-from-lock.js |
| 132 | -rw-r--r--···0········0········0·····2991·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/tracker.js | 132 | -rw-r--r--···0········0········0·····2991·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/tracker.js |
| 133 | -rw-r--r--···0········0········0·····4142·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/tree-check.js | 133 | -rw-r--r--···0········0········0·····4142·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/tree-check.js |
| 134 | -rw-r--r--···0········0········0·····1488·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/version-from-tgz.js | 134 | -rw-r--r--···0········0········0·····1488·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/version-from-tgz.js |
| 135 | -rw-r--r--···0········0········0·····5958·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/vuln.js | 135 | -rw-r--r--···0········0········0·····5958·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/vuln.js |
| 136 | -rw-r--r--···0········0········0····10813·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/yarn-lock.js | 136 | -rw-r--r--···0········0········0····10813·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/lib/yarn-lock.js |
| 137 | -rw-r--r--···0········0········0·····275 | 137 | -rw-r--r--···0········0········0·····2755·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/arborist/package.json |
| 138 | -rw-r--r--···0········0········0······798·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/LICENSE.md | 138 | -rw-r--r--···0········0········0······798·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/LICENSE.md |
| 139 | -rw-r--r--···0········0········0·····2557·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/README.md | 139 | -rw-r--r--···0········0········0·····2557·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/README.md |
| 140 | -rw-r--r--···0········0········0······528·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/common/get-options.js | 140 | -rw-r--r--···0········0········0······528·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/common/get-options.js |
| 141 | -rw-r--r--···0········0········0······181·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/common/node.js | 141 | -rw-r--r--···0········0········0······181·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/common/node.js |
| 142 | -rw-r--r--···0········0········0·····1084·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/cp/LICENSE | 142 | -rw-r--r--···0········0········0·····1084·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/cp/LICENSE |
| 143 | -rw-r--r--···0········0········0·····3396·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/cp/errors.js | 143 | -rw-r--r--···0········0········0·····3396·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/cp/errors.js |
| 144 | -rw-r--r--···0········0········0······695·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/cp/index.js | 144 | -rw-r--r--···0········0········0······695·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/@npmcli/fs/lib/cp/index.js |
| Offset 1178, 18 lines modified | Offset 1178, 27 lines modified | ||
| 1178 | -rw-r--r--···0········0········0·····1708·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-convert/index.js | 1178 | -rw-r--r--···0········0········0·····1708·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-convert/index.js |
| 1179 | -rw-r--r--···0········0········0······827·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-convert/package.json | 1179 | -rw-r--r--···0········0········0······827·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-convert/package.json |
| 1180 | -rw-r--r--···0········0········0·····2257·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-convert/route.js | 1180 | -rw-r--r--···0········0········0·····2257·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-convert/route.js |
| 1181 | -rw-r--r--···0········0········0·····1085·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-name/LICENSE | 1181 | -rw-r--r--···0········0········0·····1085·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-name/LICENSE |
| 1182 | -rw-r--r--···0········0········0······384·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-name/README.md | 1182 | -rw-r--r--···0········0········0······384·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-name/README.md |
| 1183 | -rw-r--r--···0········0········0·····4617·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-name/index.js | 1183 | -rw-r--r--···0········0········0·····4617·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-name/index.js |
| 1184 | -rw-r--r--···0········0········0······607·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-name/package.json | 1184 | -rw-r--r--···0········0········0······607·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/color-name/package.json |
| 1185 | -rw-r--r--···0········0········0····· | 1185 | -rw-r--r--···0········0········0·····1552·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/LICENSE.md |
| 1186 | -rw-r--r--···0········0········0······ | 1186 | -rw-r--r--···0········0········0······801·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/README.md |
| 1187 | -rw-r--r--···0········0········0······124·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/commonjs/index.d.ts | ||
| 1188 | -rw-r--r--···0········0········0······186·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/commonjs/index.d.ts.map | ||
| 1189 | -rw-r--r--···0········0········0······816·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/commonjs/index.js | ||
| 1190 | -rw-r--r--···0········0········0·····1625·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/commonjs/index.js.map | ||
| 1191 | -rw-r--r--···0········0········0·······25·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/commonjs/package.json | ||
| 1192 | -rw-r--r--···0········0········0······124·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/esm/index.d.ts | ||
| 1193 | -rw-r--r--···0········0········0······186·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/esm/index.d.ts.map | ||
| 1187 | -rw-r--r--···0········0········0······ | 1194 | -rw-r--r--···0········0········0······563·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/esm/index.js |
| 1195 | -rw-r--r--···0········0········0·····1643·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/esm/index.js.map | ||
| 1196 | -rw-r--r--···0········0········0·······23·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/dist/esm/package.json | ||
| 1188 | -rw-r--r--···0········0········0····· | 1197 | -rw-r--r--···0········0········0·····1493·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/common-ancestor-path/package.json |
| 1189 | -rw-r--r--···0········0········0·····1077·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/cssesc/LICENSE-MIT.txt | 1198 | -rw-r--r--···0········0········0·····1077·2025-12-23·18:04:35.000000·lib/node_modules/ls-engines/node_modules/cssesc/LICENSE-MIT.txt |
| Max diff block lines reached; 100720/117054 bytes (86.05%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"extracted_folders":·[ | 2 | ····"extracted_folders":·[ |
| 3 | ········"/ | 3 | ········"/tmp/.tmpgQWYGd/src_cache/ls-engines-0_10_0_03ed813f" |
| 4 | ····], | 4 | ····], |
| 5 | ····"recipe_path":·"/home/conda/recipe_root/recipe.yaml", | ||
| 6 | ····" | 5 | ····"recipe_path":·"", |
| 6 | ····"source_cache":·"/tmp/.tmpgQWYGd/src_cache", | ||
| 7 | ····"sources":·[ | 7 | ····"sources":·[ |
| 8 | ········{ | 8 | ········{ |
| 9 | ············"sha256":·"03ed813f7a4bf8831b6b79ca143cdf81f1316636b88786c8ddf0b07f48277306", | 9 | ············"sha256":·"03ed813f7a4bf8831b6b79ca143cdf81f1316636b88786c8ddf0b07f48277306", |
| 10 | ············"url":·"https://registry.npmjs.org/ls-engines/-/ls-engines-0.10.0.tgz" | 10 | ············"url":·"https://registry.npmjs.org/ls-engines/-/ls-engines-0.10.0.tgz" |
| 11 | ········} | 11 | ········} |
| 12 | ····] | 12 | ····] |
| 13 | } | 13 | } |
| Offset 1, 43 lines modified | Offset 1, 49 lines modified | ||
| 1 | export· | 1 | export·BUILD_DIR=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075 |
| 2 | export·PKG_VERSION=0.10.0 | ||
| 3 | export·PKG_HASH=hee61e0b | ||
| 2 | export·PREFIX=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla | 4 | export·PREFIX=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla |
| 3 | export· | 5 | export·PATH=/home/runner/.pixi/envs/rattler-build/bin:/home/runner/work/reproducible-builds/reproducible-builds/.pixi/envs/default/bin:/home/runner/.pixi/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/ven[·...·truncated·by·diffoscope;·len:·155,·SHA:·a80edc0fd1c36806c896aaf0a70fcdab5e5bda3749f6137775aa289f4a9b1506·...·] |
| 6 | export·CMAKE_COLOR_DIAGNOSTICS=ON | ||
| 7 | export·PKG_BUILD_STRING=hee61e0b_0 | ||
| 8 | export·PIP_IGNORE_INSTALLED=True | ||
| 9 | export·GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' | ||
| 4 | export·target_platform=noarch | 10 | export·target_platform=noarch |
| 11 | export·CONDA_BUILD_CROSS_COMPILATION=1 | ||
| 12 | export·build_platform=linux-64 | ||
| 13 | export·PIP_NO_DEPENDENCIES=True | ||
| 14 | export·host_platform=linux-64 | ||
| 15 | export·MAKE_TERMOUT=1 | ||
| 16 | export·channel_targets='conda-forge·main' | ||
| 17 | export·CONDA_BUILD=1 | ||
| 18 | export·CONDA_BUILD_STATE=BUILD | ||
| 19 | export·PYTHONNOUSERSITE=1 | ||
| 5 | export·PIP_NO_INDEX=True | 20 | export·PIP_NO_INDEX=True |
| 21 | export·AM_COLOR_TESTS=always | ||
| 22 | export·PKG_BUILDNUM=0 | ||
| 23 | export·channel_sources=conda-forge | ||
| 24 | export·SRC_DIR=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/work | ||
| 6 | export·BUILD_PREFIX=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/build_env | 25 | export·BUILD_PREFIX=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/build_env |
| 26 | export·PIP_NO_BUILD_ISOLATION=False | ||
| 27 | export·ARCH=64 | ||
| 7 | export·SOURCE_DATE_EPOCH=1766513075 | ||
| 8 | export·SUBDIR=noarch | ||
| 9 | export·CPU_COUNT=2 | ||
| 10 | export·PATH=/home/conda/feedstock_root/.pixi/envs/docker-build-linux-64/bin:/opt/conda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/conda/bin | ||
| 11 | export·SHLIB_EXT=.not_implemented | 28 | export·SHLIB_EXT=.not_implemented |
| 29 | export·SOURCE_DATE_EPOCH=1766513075 | ||
| 12 | export·CONDA_DEFAULT_ENV=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla | 30 | export·CONDA_DEFAULT_ENV=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla |
| 13 | export·channel_sources=conda-forge | ||
| 14 | export·PKG_BUILDNUM=0 | ||
| 15 | export·RECIPE_DIR=/home/conda/recipe_root | ||
| 16 | export· | 31 | export·LANG=C.UTF-8 |
| 32 | export·CPU_COUNT=4 | ||
| 33 | export·CLICOLOR_FORCE=1 | ||
| 34 | export·FORCE_COLOR=1 | ||
| 17 | export·PKG_NAME=ls-engines | 35 | export·PKG_NAME=ls-engines |
| 36 | export·SUBDIR=noarch | ||
| 18 | export·PKG_HASH=hee61e0b | ||
| 19 | export·PIP_NO_BUILD_ISOLATION=False | ||
| 20 | export·host_platform=linux-64 | ||
| 21 | export·PIP_CACHE_DIR=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/pip_cache | ||
| 22 | export·PYTHONNOUSERSITE=1 | ||
| 23 | export·ARCH=64 | ||
| 24 | export·PYTHON=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/bin/python | 37 | export·PYTHON=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/bin/python |
| 38 | export·RECIPE_DIR=/tmp/.tmpJl6rSi | ||
| 25 | export·SRC_DIR=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/work | ||
| 26 | export·CONDA_BUILD_CROSS_COMPILATION=1 | ||
| 27 | export· | 39 | export·PIP_CACHE_DIR=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/pip_cache |
| 28 | export·channel_targets='conda-forge·main' | ||
| 29 | export·PIP_IGNORE_INSTALLED=True | ||
| 30 | export·CONDA_BUILD=1 | ||
| 31 | export·PKG_VERSION=0.10.0 | ||
| 32 | export·PKG_BUILD_STRING=hee61e0b_0 | ||
| 33 | export·build_platform=linux-64 | ||
| 34 | export·PATH="/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/bin:${PATH}" | 40 | export·PATH="/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/bin:${PATH}" |
| 35 | export·CONDA_SHLVL=3 | 41 | export·CONDA_SHLVL=3 |
| 36 | export·CONDA_ENV_SHLVL_3_CONDA_PREFIX=/home/ | 42 | export·CONDA_ENV_SHLVL_3_CONDA_PREFIX=/home/runner/.pixi/envs/rattler-build |
| 37 | export·CONDA_PREFIX=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla | 43 | export·CONDA_PREFIX=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla |
| 38 | export·PATH="/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/build_env/bin:${PATH}" | 44 | export·PATH="/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/build_env/bin:${PATH}" |
| 39 | export·CONDA_SHLVL=3 | 45 | export·CONDA_SHLVL=3 |
| 40 | export·CONDA_ENV_SHLVL_3_CONDA_PREFIX=/home/ | 46 | export·CONDA_ENV_SHLVL_3_CONDA_PREFIX=/home/runner/.pixi/envs/rattler-build |
| 41 | export·CONDA_PREFIX=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/build_env | 47 | export·CONDA_PREFIX=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/build_env |
| Offset 47, 39 lines modified | Offset 47, 50 lines modified | ||
| 47 | ##·API | 47 | ##·API |
| 48 | ```js | 48 | ```js |
| 49 | import·{·expand·}·from·'@isaacs/brace-expansion' | 49 | import·{·expand·}·from·'@isaacs/brace-expansion' |
| 50 | ``` | 50 | ``` |
| 51 | ###·const·expanded·=·expand(str) | 51 | ###·const·expanded·=·expand(str,·[options]) |
| 52 | Return·an·array·of·all·possible·and·valid·expansions·of·`str`.·If | 52 | Return·an·array·of·all·possible·and·valid·expansions·of·`str`.·If |
| 53 | found,·`[str]`·is·returned. | 53 | none·are·found,·`[str]`·is·returned. |
| 54 | The·`options`·object·can·provide·a·`max`·value·to·cap·the·number | ||
| 55 | of·expansions·allowed.·This·is·limited·to·`100_000`·by·default, | ||
| 56 | to·prevent·DoS·attacks. | ||
| 57 | ```js | ||
| 58 | const·expansions·=·expand('{1..100}'.repeat(5),·{ | ||
| 59 | ··max:·100, | ||
| 60 | }) | ||
| 61 | //·expansions.length·will·be·100,·not·100^5 | ||
| 62 | ``` | ||
| 54 | Valid·expansions·are: | 63 | Valid·expansions·are: |
| 55 | ```js | 64 | ```js |
| 56 | /^(.*,)+(.+)?$/ | 65 | ;/^(.*,)+(.+)?$/ |
| 57 | //·{a,b,...} | 66 | //·{a,b,...} |
| 58 | ``` | 67 | ``` |
| 59 | A·comma·separated·list·of·options,·like·`{a,b}`·or·`{a,{b,c}}`·or·`{,a,}`. | 68 | A·comma·separated·list·of·options,·like·`{a,b}`·or·`{a,{b,c}}`·or·`{,a,}`. |
| 60 | ```js | 69 | ```js |
| 61 | /^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ | 70 | ;/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ |
| 62 | //·{x..y[..incr]} | 71 | //·{x..y[..incr]} |
| 63 | ``` | 72 | ``` |
| 64 | A·numeric·sequence·from·`x`·to·`y`·inclusive,·with·optional·increment. | 73 | A·numeric·sequence·from·`x`·to·`y`·inclusive,·with·optional·increment. |
| 65 | If·`x`·or·`y`·start·with·a·leading·`0`,·all·the·numbers·will·be·padded | 74 | If·`x`·or·`y`·start·with·a·leading·`0`,·all·the·numbers·will·be·padded |
| 66 | to·have·equal·length.·Negative·numbers·and·backwards·iteration·work·too. | 75 | to·have·equal·length.·Negative·numbers·and·backwards·iteration·work·too. |
| 67 | ```js | 76 | ```js |
| 68 | /^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ | 77 | ;/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ |
| 69 | //·{x..y[..incr]} | 78 | //·{x..y[..incr]} |
| 70 | ``` | 79 | ``` |
| 71 | An·alphabetic·sequence·from·`x`·to·`y`·inclusive,·with·optional·increment. | 80 | An·alphabetic·sequence·from·`x`·to·`y`·inclusive,·with·optional·increment. |
| 72 | `x`·and·`y`·must·be·exactly·one·character,·and·if·given,·`incr`·must·be·a | 81 | `x`·and·`y`·must·be·exactly·one·character,·and·if·given,·`incr`·must·be·a |
| 73 | number. | 82 | number. |
| Offset 1, 2 lines modified | Offset 1, 6 lines modified | ||
| 1 | export·declare·const·EXPANSION_MAX·=·100000; | ||
| 2 | export·type·BraceExpansionOptions·=·{ | ||
| 3 | ····max?:·number; | ||
| 4 | }; | ||
| 1 | export·declare·function·expand(str:·string):·string[]; | 5 | export·declare·function·expand(str:·string,·options?:·BraceExpansionOptions):·string[]; |
| 2 | //#·sourceMappingURL=index.d.ts.map | 6 | //#·sourceMappingURL=index.d.ts.map |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.d.ts", | 2 | ····"file":·"index.d.ts", |
| 3 | ····"mappings":·"AAwEA,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,YA | 3 | ····"mappings":·"AAkBA,eAAO,MAAM,aAAa,SAAU,CAAA;AAwDpC,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,YAkBtE", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 416 lines modified | Offset 1, 429 lines modified | ||
| 00000000:·2275·7365·2073·7472·6963·7422·3b0a·4f62··"use·strict";.Ob | 00000000:·2275·7365·2073·7472·6963·7422·3b0a·4f62··"use·strict";.Ob | ||
| 00000010:·6a65·6374·2e64·6566·696e·6550·726f·7065··ject.definePrope | 00000010:·6a65·6374·2e64·6566·696e·6550·726f·7065··ject.definePrope | ||
| 00000020:·7274·7928·6578·706f·7274·732c·2022·5f5f··rty(exports,·"__ | 00000020:·7274·7928·6578·706f·7274·732c·2022·5f5f··rty(exports,·"__ | ||
| 00000030:·6573·4d6f·6475·6c65·222c·207b·2076·616c··esModule",·{·val | 00000030:·6573·4d6f·6475·6c65·222c·207b·2076·616c··esModule",·{·val | ||
| 00000040:·7565·3a20·7472·7565·207d·293b·0a65·7870··ue:·true·});.exp | 00000040:·7565·3a20·7472·7565·207d·293b·0a65·7870··ue:·true·});.exp | ||
| 00000050:·6f72·7473·2e45·5850·414e·5349·4f4e·5f4d··orts.EXPANSION_M | |||
| 00000060:·4158·203d·2076·6f69·6420·303b·0a65·7870··AX·=·void·0;.exp | |||
| 000000 | 00000070:·6f72·7473·2e65·7870·616e·6420·3d20·6578··orts.expand·=·ex | ||
| 000000 | 00000080:·7061·6e64·3b0a·636f·6e73·7420·6261·6c61··pand;.const·bala | ||
| 000000 | 00000090:·6e63·6564·5f6d·6174·6368·5f31·203d·2072··nced_match_1·=·r | ||
| 000000 | 000000a0:·6571·7569·7265·2822·4069·7361·6163·732f··equire("@isaacs/ | ||
| 000000 | 000000b0:·6261·6c61·6e63·6564·2d6d·6174·6368·2229··balanced-match") | ||
| 000000 | 000000c0:·3b0a·636f·6e73·7420·6573·6353·6c61·7368··;.const·escSlash | ||
| 000000 | 000000d0:·203d·2027·5c30·534c·4153·4827·202b·204d···=·'\0SLASH'·+·M | ||
| 000000 | 000000e0:·6174·682e·7261·6e64·6f6d·2829·202b·2027··ath.random()·+·' | ||
| 000000 | 000000f0:·5c30·273b·0a63·6f6e·7374·2065·7363·4f70··\0';.const·escOp | ||
| 00000 | 00000100:·656e·203d·2027·5c30·4f50·454e·2720·2b20··en·=·'\0OPEN'·+· | ||
| 00000 | 00000110:·4d61·7468·2e72·616e·646f·6d28·2920·2b20··Math.random()·+· | ||
| 000001 | 00000120:·275c·3027·3b0a·636f·6e73·7420·6573·6343··'\0';.const·escC | ||
| 000001 | 00000130:·6c6f·7365·203d·2027·5c30·434c·4f53·4527··lose·=·'\0CLOSE' | ||
| 000001 | 00000140:·202b·204d·6174·682e·7261·6e64·6f6d·2829···+·Math.random() | ||
| 000001 | 00000150:·202b·2027·5c30·273b·0a63·6f6e·7374·2065···+·'\0';.const·e | ||
| 000001 | 00000160:·7363·436f·6d6d·6120·3d20·275c·3043·4f4d··scComma·=·'\0COM | ||
| 000001 | 00000170:·4d41·2720·2b20·4d61·7468·2e72·616e·646f··MA'·+·Math.rando | ||
| 000001 | 00000180:·6d28·2920·2b20·275c·3027·3b0a·636f·6e73··m()·+·'\0';.cons | ||
| 000001 | 00000190:·7420·6573·6350·6572·696f·6420·3d20·275c··t·escPeriod·=·'\ | ||
| 000001 | 000001a0:·3050·4552·494f·4427·202b·204d·6174·682e··0PERIOD'·+·Math. | ||
| 000001 | 000001b0:·7261·6e64·6f6d·2829·202b·2027·5c30·273b··random()·+·'\0'; | ||
| 000001 | 000001c0:·0a63·6f6e·7374·2065·7363·536c·6173·6850··.const·escSlashP | ||
| 000001 | 000001d0:·6174·7465·726e·203d·206e·6577·2052·6567··attern·=·new·Reg | ||
| 000001 | 000001e0:·4578·7028·6573·6353·6c61·7368·2c20·2767··Exp(escSlash,·'g | ||
| 000001 | 000001f0:·2729·3b0a·636f·6e73·7420·6573·634f·7065··');.const·escOpe | ||
| 00000 | 00000200:·6e50·6174·7465·726e·203d·206e·6577·2052··nPattern·=·new·R | ||
| 00000 | 00000210:·6567·4578·7028·6573·634f·7065·6e2c·2027··egExp(escOpen,·' | ||
| 000002 | 00000220:·6727·293b·0a63·6f6e·7374·2065·7363·436c··g');.const·escCl | ||
| 000002 | 00000230:·6f73·6550·6174·7465·726e·203d·206e·6577··osePattern·=·new | ||
| 000002 | 00000240:·2052·6567·4578·7028·6573·6343·6c6f·7365···RegExp(escClose | ||
| 000002 | 00000250:·2c20·2767·2729·3b0a·636f·6e73·7420·6573··,·'g');.const·es | ||
| 000002 | 00000260:·6343·6f6d·6d61·5061·7474·6572·6e20·3d20··cCommaPattern·=· | ||
| 000002 | 00000270:·6e65·7720·5265·6745·7870·2865·7363·436f··new·RegExp(escCo | ||
| 000002 | 00000280:·6d6d·612c·2027·6727·293b·0a63·6f6e·7374··mma,·'g');.const | ||
| 000002 | 00000290:·2065·7363·5065·7269·6f64·5061·7474·6572···escPeriodPatter | ||
| 000002 | 000002a0:·6e20·3d20·6e65·7720·5265·6745·7870·2865··n·=·new·RegExp(e | ||
| 000002 | 000002b0:·7363·5065·7269·6f64·2c20·2767·2729·3b0a··scPeriod,·'g');. | ||
| 000002 | 000002c0:·636f·6e73·7420·736c·6173·6850·6174·7465··const·slashPatte | ||
| 000002 | 000002d0:·726e·203d·202f·5c5c·5c5c·2f67·3b0a·636f··rn·=·/\\\\/g;.co | ||
| 000002 | 000002e0:·6e73·7420·6f70·656e·5061·7474·6572·6e20··nst·openPattern· | ||
| 000002 | 000002f0:·3d20·2f5c·5c7b·2f67·3b0a·636f·6e73·7420··=·/\\{/g;.const· | ||
| 00000 | 00000300:·636c·6f73·6550·6174·7465·726e·203d·202f··closePattern·=·/ | ||
| 00000 | 00000310:·5c5c·7d2f·673b·0a63·6f6e·7374·2063·6f6d··\\}/g;.const·com | ||
| 000003 | 00000320:·6d61·5061·7474·6572·6e20·3d20·2f5c·5c2c··maPattern·=·/\\, | ||
| 000003 | 00000330:·2f67·3b0a·636f·6e73·7420·7065·7269·6f64··/g;.const·period | ||
| 000003 | 00000340:·5061·7474·6572·6e20·3d20·2f5c·5c2e·2f67··Pattern·=·/\\./g | ||
| 000003 | 00000350:·3b0a·6578·706f·7274·732e·4558·5041·4e53··;.exports.EXPANS | ||
| 00000360:·494f·4e5f·4d41·5820·3d20·3130·305f·3030··ION_MAX·=·100_00 | |||
| 00000370:·303b·0a66·756e·6374·696f·6e20·6e75·6d65··0;.function·nume | |||
| 00000380:·7269·6328·7374·7229·207b·0a20·2020·2072··ric(str)·{.····r | |||
| 00000390:·6574·7572·6e20·2169·734e·614e·2873·7472··eturn·!isNaN(str | |||
| 000003a0:·2920·3f20·7061·7273·6549·6e74·2873·7472··)·?·parseInt(str | |||
| 000003b0:·2c20·3130·2920·3a20·7374·722e·6368·6172··,·10)·:·str.char | |||
| 000003c0:·436f·6465·4174·2830·293b·0a7d·0a66·756e··CodeAt(0);.}.fun | |||
| 000003d0:·6374·696f·6e20·6573·6361·7065·4272·6163··ction·escapeBrac | |||
| 000003 | 000003e0:·6573·2873·7472·2920·7b0a·2020·2020·7265··es(str)·{.····re | ||
| 000003f0:·7475·726e·2073·7472·0a20·2020·2020·2020··turn·str.······· | |||
| 00000400:·202e·7265·706c·6163·6528·736c·6173·6850···.replace(slashP | |||
| 00000350:·7475·726e·2021·6973·4e61·4e28·7374·7229··turn·!isNaN(str) | |||
| 00000360:·203f·2070·6172·7365·496e·7428·7374·722c···?·parseInt(str, | |||
| 00000370:·2031·3029·203a·2073·7472·2e63·6861·7243···10)·:·str.charC | |||
| 00000380:·6f64·6541·7428·3029·3b0a·7d0a·6675·6e63··odeAt(0);.}.func | |||
| 00000390:·7469·6f6e·2065·7363·6170·6542·7261·6365··tion·escapeBrace | |||
| 000003a0:·7328·7374·7229·207b·0a20·2020·2072·6574··s(str)·{.····ret | |||
| 000003b0:·7572·6e20·7374·720a·2020·2020·2020·2020··urn·str.········ | |||
| 000003c0:·2e72·6570·6c61·6365·2873·6c61·7368·5061··.replace(slashPa | |||
| 000003d0:·7474·6572·6e2c·2065·7363·536c·6173·6829··ttern,·escSlash) | |||
| 000003e0:·0a20·2020·2020·2020·202e·7265·706c·6163··.········.replac | |||
| 000003f0:·6528·6f70·656e·5061·7474·6572·6e2c·2065··e(openPattern,·e | |||
| 00000400:·7363·4f70·656e·290a·2020·2020·2020·2020··scOpen).········ | |||
| 00000410:·2e72·6570·6c61·6365·2863·6c6f·7365·5061··.replace(closePa | |||
| 00000420:·7474·6572·6e2c·2065·7363·436c·6f73·6529··ttern,·escClose) | |||
| 00000430:·0a20·2020·2020·2020·202e·7265·706c·6163··.········.replac | |||
| 00000440:·6528·636f·6d6d·6150·6174·7465·726e·2c20··e(commaPattern,· | |||
| 00000450:·6573·6343·6f6d·6d61·290a·2020·2020·2020··escComma).······ | |||
| 00000460:·2020·2e72·6570·6c61·6365·2870·6572·696f····.replace(perio | |||
| 000004 | 00000410:·6174·7465·726e·2c20·6573·6353·6c61·7368··attern,·escSlash | ||
| 00000480:·696f·6429·3b0a·7d0a·6675·6e63·7469·6f6e··iod);.}.function | |||
| 00000490:·2075·6e65·7363·6170·6542·7261·6365·7328···unescapeBraces( | |||
| 000004a0:·7374·7229·207b·0a20·2020·2072·6574·7572··str)·{.····retur | |||
| 000004b0:·6e20·7374·720a·2020·2020·2020·2020·2e72··n·str.········.r | |||
| 000004c0:·6570·6c61·6365·2865·7363·536c·6173·6850··eplace(escSlashP | |||
| 000004d0:·6174·7465·726e·2c20·275c·5c27·290a·2020··attern,·'\\').·· | |||
| 000004e0:·2020·2020·2020·2e72·6570·6c61·6365·2865········.replace(e | |||
| 000004f0:·7363·4f70·656e·5061·7474·6572·6e2c·2027··scOpenPattern,·' | |||
| 00000500:·7b27·290a·2020·2020·2020·2020·2e72·6570··{').········.rep | |||
| 00000510:·6c61·6365·2865·7363·436c·6f73·6550·6174··lace(escClosePat | |||
| 00000520:·7465·726e·2c20·277d·2729·0a20·2020·2020··tern,·'}').····· | |||
| 00000530:·2020·202e·7265·706c·6163·6528·6573·6343·····.replace(escC | |||
| 00000540:·6f6d·6d61·5061·7474·6572·6e2c·2027·2c27··ommaPattern,·',' | |||
| 00000 | 00000420:·290a·2020·2020·2020·2020·2e72·6570·6c61··).········.repla | ||
| 00000430:·6365·286f·7065·6e50·6174·7465·726e·2c20··ce(openPattern,· | |||
| Max diff block lines reached; 7357/57747 bytes (12.74%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.js", | 2 | ····"file":·"index.js", |
| 3 | ····"mappings":·";;AA | 3 | ····"mappings":·";;;AA8EA,wBAkBC;AAhGD,2DAAiD;AAEjD,MAAM,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAA;AACjD,MAAM,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAA;AAC/C,MAAM,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAA;AACjD,MAAM,QAAQ,GAAG,SAAS,GAAG,[·...·truncated·by·diffoscope;·len:·6853,·SHA:·f94df6c5f9db5a657f3b5435591107a9d6904b48b0b26c5531e093dd58370d49·...·],MAAM,SAAS,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;gBACtC,IAAI,CAAC,KAAK,IAAI,UAAU,IAAI,SAAS,EAAE,CAAC;oBACtC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;gBAC5B,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAA;AACnB,CAAC", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"import·{·balanced·}·from·'@isaacs/balanced-match'\n\nconst·escSlash·=·'\\0SLASH'·+·Math.random()·+·'\\0'\nconst·escOpen·=·'\\0OPEN'·+·Math.random()·+·'\\0'\nconst·escClose·=·'\\0CLOSE'·+·Math.random()·+·'\\0'\nconst·escComma·=·'\\0COMMA'·+·Math.random()·+·'\\0'\nconst·escPeriod·=·'\\0PERIOD'·+·Math.random()·+·'\\0'\nconst·escSlashPattern·=·new·RegExp(escSlash,·'g')\nconst·escOpenPattern·=·new·RegExp(escOpen,·'g')\nconst·escClosePattern·=·new·RegExp(escClose,·'g')\nconst·escCommaPattern·=·new·RegExp(escComma,·'g')\nconst·escPeriodPattern·=·new·RegExp(escPeriod,·'g')\nconst·slashPattern·=·/\\\\\\\\/g\nconst·openPattern·=·/\\\\{/g\nconst·closePattern·=·/\\\\}/g\nconst·commaPattern·=·/\\\\,/g\nconst·periodPattern·=·/\\\\./g\n\nfunction·numeric(str:·string)·{\n··return·!isNaN(str·as·any)·?·parseInt(str,·10)·:·str.charCodeAt(0)\n}\n\nfunction·escapeBraces(str:·string)·{\n··return·str\n····.replace(slashPattern,·escSlash)\n····.replace(o | 10 | ········"import·{·balanced·}·from·'@isaacs/balanced-match'\n\nconst·escSlash·=·'\\0SLASH'·+·Math.random()·+·'\\0'\nconst·escOpen·=·'\\0OPEN'·+·Math.random()·+·'\\0'\nconst·escClose·=·'\\0CLOSE'·+·Math.random()·+·'\\0'\nconst·escComma·=·'\\0COMMA'·+·Math.random()·+·'\\0'\nconst·escPeriod·=·'\\0PERIOD'·+·Math.random()·+·'\\0'\nconst·escSlashPattern·=·new·RegExp(escSlash,·'g')\nconst·escOpenPattern·=·new·RegExp(escOpen,·'g')\nconst·escClosePattern·=·new·RegExp(escClose,·'g')\nconst·escCommaPattern·=·new·RegExp(escComma,·'g')\nconst·escPeriodPattern·=·new·RegExp(escPeriod,·'g')\nconst·slashPattern·=·/\\\\\\\\/g\nconst·openPattern·=·/\\\\{/g\nconst·closePattern·=·/\\\\}/g\nconst·commaPattern·=·/\\\\,/g\nconst·periodPattern·=·/\\\\./g\n\nexport·const·EXPANSION_MAX·=·100_000\n\nfunction·numeric(str:·string)·{\n··return·!isNaN(str·as·any)·?·parseInt(str,·10)·:·str.charCodeAt(0)\n}\n\nfunction·escapeBraces(str:·string)·{\n··return·str\n····.replace(slashPattern,·escSlash)\n····.replace(openPa[·...·truncated·by·diffoscope;·len:·5115,·SHA:·4bc809a06519e9e1a33f8a3e15fe252e841d5791ebc99e4177ded8278c679ee0·...·];·k++)·{\n········const·expansion·=·pre·+·N[j]·+·post[k]\n········if·(!isTop·||·isSequence·||·expansion)·{\n··········expansions.push(expansion)\n········}\n······}\n····}\n··}\n\n··return·expansions\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 1, 2 lines modified | Offset 1, 6 lines modified | ||
| 1 | export·declare·const·EXPANSION_MAX·=·100000; | ||
| 2 | export·type·BraceExpansionOptions·=·{ | ||
| 3 | ····max?:·number; | ||
| 4 | }; | ||
| 1 | export·declare·function·expand(str:·string):·string[]; | 5 | export·declare·function·expand(str:·string,·options?:·BraceExpansionOptions):·string[]; |
| 2 | //#·sourceMappingURL=index.d.ts.map | 6 | //#·sourceMappingURL=index.d.ts.map |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.d.ts", | 2 | ····"file":·"index.d.ts", |
| 3 | ····"mappings":·"AAwEA,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,YA | 3 | ····"mappings":·"AAkBA,eAAO,MAAM,aAAa,SAAU,CAAA;AAwDpC,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,YAkBtE", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 38, 369 lines modified | Offset 38, 380 lines modified | ||
| 00000250:·6f6e·7374·206f·7065·6e50·6174·7465·726e··onst·openPattern | 00000250:·6f6e·7374·206f·7065·6e50·6174·7465·726e··onst·openPattern | ||
| 00000260:·203d·202f·5c5c·7b2f·673b·0a63·6f6e·7374···=·/\\{/g;.const | 00000260:·203d·202f·5c5c·7b2f·673b·0a63·6f6e·7374···=·/\\{/g;.const | ||
| 00000270:·2063·6c6f·7365·5061·7474·6572·6e20·3d20···closePattern·=· | 00000270:·2063·6c6f·7365·5061·7474·6572·6e20·3d20···closePattern·=· | ||
| 00000280:·2f5c·5c7d·2f67·3b0a·636f·6e73·7420·636f··/\\}/g;.const·co | 00000280:·2f5c·5c7d·2f67·3b0a·636f·6e73·7420·636f··/\\}/g;.const·co | ||
| 00000290:·6d6d·6150·6174·7465·726e·203d·202f·5c5c··mmaPattern·=·/\\ | 00000290:·6d6d·6150·6174·7465·726e·203d·202f·5c5c··mmaPattern·=·/\\ | ||
| 000002a0:·2c2f·673b·0a63·6f6e·7374·2070·6572·696f··,/g;.const·perio | 000002a0:·2c2f·673b·0a63·6f6e·7374·2070·6572·696f··,/g;.const·perio | ||
| 000002b0:·6450·6174·7465·726e·203d·202f·5c5c·2e2f··dPattern·=·/\\./ | 000002b0:·6450·6174·7465·726e·203d·202f·5c5c·2e2f··dPattern·=·/\\./ | ||
| 000002c0:·673b·0a65·7870·6f72·7420·636f·6e73·7420··g;.export·const· | |||
| 000002d0:·4558·5041·4e53·494f·4e5f·4d41·5820·3d20··EXPANSION_MAX·=· | |||
| 000002e0:·3130·305f·3030·303b·0a66·756e·6374·696f··100_000;.functio | |||
| 000002f0:·6e20·6e75·6d65·7269·6328·7374·7229·207b··n·numeric(str)·{ | |||
| 00000300:·0a20·2020·2072·6574·7572·6e20·2169·734e··.····return·!isN | |||
| 00000310:·614e·2873·7472·2920·3f20·7061·7273·6549··aN(str)·?·parseI | |||
| 00000320:·6e74·2873·7472·2c20·3130·2920·3a20·7374··nt(str,·10)·:·st | |||
| 00000330:·722e·6368·6172·436f·6465·4174·2830·293b··r.charCodeAt(0); | |||
| 00000 | 00000340:·0a7d·0a66·756e·6374·696f·6e20·6573·6361··.}.function·esca | ||
| 00000350:·7065·4272·6163·6573·2873·7472·2920·7b0a··peBraces(str)·{. | |||
| 00000360:·2020·2020·7265·7475·726e·2073·7472·0a20······return·str.· | |||
| 000002d0:·7269·6328·7374·7229·207b·0a20·2020·2072··ric(str)·{.····r | |||
| 000002e0:·6574·7572·6e20·2169·734e·614e·2873·7472··eturn·!isNaN(str | |||
| 000002f0:·2920·3f20·7061·7273·6549·6e74·2873·7472··)·?·parseInt(str | |||
| 00000300:·2c20·3130·2920·3a20·7374·722e·6368·6172··,·10)·:·str.char | |||
| 00000310:·436f·6465·4174·2830·293b·0a7d·0a66·756e··CodeAt(0);.}.fun | |||
| 00000320:·6374·696f·6e20·6573·6361·7065·4272·6163··ction·escapeBrac | |||
| 00000330:·6573·2873·7472·2920·7b0a·2020·2020·7265··es(str)·{.····re | |||
| 00000340:·7475·726e·2073·7472·0a20·2020·2020·2020··turn·str.······· | |||
| 00000350:·202e·7265·706c·6163·6528·736c·6173·6850···.replace(slashP | |||
| 00000360:·6174·7465·726e·2c20·6573·6353·6c61·7368··attern,·escSlash | |||
| 00000370:·290a·2020·2020·2020·2020·2e72·6570·6c61··).········.repla | |||
| 00000380:·6365·286f·7065·6e50·6174·7465·726e·2c20··ce(openPattern,· | |||
| 00000390:·6573·634f·7065·6e29·0a20·2020·2020·2020··escOpen).······· | |||
| 000003a0:·202e·7265·706c·6163·6528·636c·6f73·6550···.replace(closeP | |||
| 000003b0:·6174·7465·726e·2c20·6573·6343·6c6f·7365··attern,·escClose | |||
| 000003c0:·290a·2020·2020·2020·2020·2e72·6570·6c61··).········.repla | |||
| 000003d0:·6365·2863·6f6d·6d61·5061·7474·6572·6e2c··ce(commaPattern, | |||
| 000003e0:·2065·7363·436f·6d6d·6129·0a20·2020·2020···escComma).····· | |||
| 000003f0:·2020·202e·7265·706c·6163·6528·7065·7269·····.replace(peri | |||
| 00000400:·6f64·5061·7474·6572·6e2c·2065·7363·5065··odPattern,·escPe | |||
| 00000410:·7269·6f64·293b·0a7d·0a66·756e·6374·696f··riod);.}.functio | |||
| 00000420:·6e20·756e·6573·6361·7065·4272·6163·6573··n·unescapeBraces | |||
| 00000430:·2873·7472·2920·7b0a·2020·2020·7265·7475··(str)·{.····retu | |||
| 00000440:·726e·2073·7472·0a20·2020·2020·2020·202e··rn·str.········. | |||
| 00000450:·7265·706c·6163·6528·6573·6353·6c61·7368··replace(escSlash | |||
| 00000460:·5061·7474·6572·6e2c·2027·5c5c·2729·0a20··Pattern,·'\\').· | |||
| 00000 | 00000370:·2020·2020·2020·202e·7265·706c·6163·6528·········.replace( | ||
| 00000 | 00000380:·736c·6173·6850·6174·7465·726e·2c20·6573··slashPattern,·es | ||
| 00000390:·6353·6c61·7368·290a·2020·2020·2020·2020··cSlash).········ | |||
| 000003a0:·2e72·6570·6c61·6365·286f·7065·6e50·6174··.replace(openPat | |||
| 000003b0:·7465·726e·2c20·6573·634f·7065·6e29·0a20··tern,·escOpen).· | |||
| 000003c0:·2020·2020·2020·202e·7265·706c·6163·6528·········.replace( | |||
| 000003d0:·636c·6f73·6550·6174·7465·726e·2c20·6573··closePattern,·es | |||
| 000003e0:·6343·6c6f·7365·290a·2020·2020·2020·2020··cClose).········ | |||
| 000003f0:·2e72·6570·6c61·6365·2863·6f6d·6d61·5061··.replace(commaPa | |||
| 00000400:·7474·6572·6e2c·2065·7363·436f·6d6d·6129··ttern,·escComma) | |||
| 00000410:·0a20·2020·2020·2020·202e·7265·706c·6163··.········.replac | |||
| 00000420:·6528·7065·7269·6f64·5061·7474·6572·6e2c··e(periodPattern, | |||
| 00000430:·2065·7363·5065·7269·6f64·293b·0a7d·0a66···escPeriod);.}.f | |||
| 00000440:·756e·6374·696f·6e20·756e·6573·6361·7065··unction·unescape | |||
| 00000450:·4272·6163·6573·2873·7472·2920·7b0a·2020··Braces(str)·{.·· | |||
| 00000460:·2020·7265·7475·726e·2073·7472·0a20·2020····return·str.··· | |||
| 00000470:·2020·2020·202e·7265·706c·6163·6528·6573·······.replace(es | |||
| 00000480:·6353·6c61·7368·5061·7474·6572·6e2c·2027··cSlashPattern,·' | |||
| 00000490:· | 00000490:·5c5c·2729·0a20·2020·2020·2020·202e·7265··\\').········.re | ||
| 000004a0:·706c·6163·6528·6573·634 | 000004a0:·706c·6163·6528·6573·634f·7065·6e50·6174··place(escOpenPat | ||
| 000004b0:·74 | 000004b0:·7465·726e·2c20·277b·2729·0a20·2020·2020··tern,·'{').····· | ||
| 000004c0:·2020·2020·2e72·6570·6c61·6365·2865·7363······.replace(esc | |||
| 000004 | 000004c0:·2020·202e·7265·706c·6163·6528·6573·6343·····.replace(escC | ||
| 000004d0:·6c6f·7365·5061·7474·6572·6e2c·2027·7d27··losePattern,·'}' | |||
| 000004e0:·2 | 000004e0:·290a·2020·2020·2020·2020·2e72·6570·6c61··).········.repla | ||
| 000004f0:·6163·6528·6573·6350·6572·696f·6450·6174··ace(escPeriodPat | |||
| 00000500:·7465·726e·2c20·272e·2729·3b0a·7d0a·2f2a··tern,·'.');.}./* | |||
| 00000510:·2a0a·202a·2042·6173·6963·616c·6c79·206a··*.·*·Basically·j | |||
| 00000520:·7573·7420·7374·722e·7370·6c69·7428·222c··ust·str.split(", | |||
| 00000530:·2229·2c20·6275·7420·6861·6e64·6c69·6e67··"),·but·handling | |||
| 00000540:·2063·6173·6573·0a20·2a20·7768·6572·6520···cases.·*·where· | |||
| 00000550:·7765·2068·6176·6520·6e65·7374·6564·2062··we·have·nested·b | |||
| 00000560:·7261·6365·6420·7365·6374·696f·6e73·2c20··raced·sections,· | |||
| 00000570:·7768·6963·6820·7368·6f75·6c64·2062·650a··which·should·be. | |||
| 00000580:·202a·2074·7265·6174·6564·2061·7320·696e···*·treated·as·in | |||
| 00000590:·6469·7669·6475·616c·206d·656d·6265·7273··dividual·members | |||
| 000005a0:·2c20·6c69·6b65·207b·612c·7b62·2c63·7d2c··,·like·{a,{b,c}, | |||
| 000005b0:·647d·0a20·2a2f·0a66·756e·6374·696f·6e20··d}.·*/.function· | |||
| 00000 | 000004f0:·6365·2865·7363·436f·6d6d·6150·6174·7465··ce(escCommaPatte | ||
| 00000500:·726e·2c20·272c·2729·0a20·2020·2020·2020··rn,·',').······· | |||
| 00000510:·202e·7265·706c·6163·6528·6573·6350·6572···.replace(escPer | |||
| 00000520:·696f·6450·6174·7465·726e·2c20·272e·2729··iodPattern,·'.') | |||
| 00000530:·3b0a·7d0a·2f2a·2a0a·202a·2042·6173·6963··;.}./**.·*·Basic | |||
| 00000540:·616c·6c79·206a·7573·7420·7374·722e·7370··ally·just·str.sp | |||
| 00000550:·6c69·7428·222c·2229·2c20·6275·7420·6861··lit(","),·but·ha | |||
| 00000560:·6e64·6c69·6e67·2063·6173·6573·0a20·2a20··ndling·cases.·*· | |||
| 00000570:·7768·6572·6520·7765·2068·6176·6520·6e65··where·we·have·ne | |||
| 00000580:·7374·6564·2062·7261·6365·6420·7365·6374··sted·braced·sect | |||
| 00000590:·696f·6e73·2c20·7768·6963·6820·7368·6f75··ions,·which·shou | |||
| 000005a0:·6c64·2062·650a·202a·2074·7265·6174·6564··ld·be.·*·treated | |||
| 000005b0:·2061·7320·696e·6469·7669·6475·616c·206d···as·individual·m | |||
| 000005c0:·656d·6265·7273·2c20·6c69·6b65·207b·612c··embers,·like·{a, | |||
| 000005d0:·7b62·2c63·7d2c·647d·0a20·2a2f·0a66·756e··{b,c},d}.·*/.fun | |||
| 000005e0:·6374·696f·6e20·7061·7273·6543·6f6d·6d61··ction·parseComma | |||
| 000005f0:·5061·7274·7328·7374·7229·207b·0a20·2020··Parts(str)·{.··· | |||
| Max diff block lines reached; 10483/51077 bytes (20.52%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.js", | 2 | ····"file":·"index.js", |
| 3 | ····"mappings":·"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEjD,MAAM,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAA;AACjD,MAAM,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAA;AAC/C,MAAM,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC,MAAM,E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C,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;gBACtC,IAAI,CAAC,KAAK,IAAI,UAAU,IAAI,SAAS,EAAE,CAAC;oBACtC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;gBAC5B,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAA;AACnB,CAAC", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"import·{·balanced·}·from·'@isaacs/balanced-match'\n\nconst·escSlash·=·'\\0SLASH'·+·Math.random()·+·'\\0'\nconst·escOpen·=·'\\0OPEN'·+·Math.random()·+·'\\0'\nconst·escClose·=·'\\0CLOSE'·+·Math.random()·+·'\\0'\nconst·escComma·=·'\\0COMMA'·+·Math.random()·+·'\\0'\nconst·escPeriod·=·'\\0PERIOD'·+·Math.random()·+·'\\0'\nconst·escSlashPattern·=·new·RegExp(escSlash,·'g')\nconst·escOpenPattern·=·new·RegExp(escOpen,·'g')\nconst·escClosePattern·=·new·RegExp(escClose,·'g')\nconst·escCommaPattern·=·new·RegExp(escComma,·'g')\nconst·escPeriodPattern·=·new·RegExp(escPeriod,·'g')\nconst·slashPattern·=·/\\\\\\\\/g\nconst·openPattern·=·/\\\\{/g\nconst·closePattern·=·/\\\\}/g\nconst·commaPattern·=·/\\\\,/g\nconst·periodPattern·=·/\\\\./g\n\nfunction·numeric(str:·string)·{\n··return·!isNaN(str·as·any)·?·parseInt(str,·10)·:·str.charCodeAt(0)\n}\n\nfunction·escapeBraces(str:·string)·{\n··return·str\n····.replace(slashPattern,·escSlash)\n····.replace(o | 10 | ········"import·{·balanced·}·from·'@isaacs/balanced-match'\n\nconst·escSlash·=·'\\0SLASH'·+·Math.random()·+·'\\0'\nconst·escOpen·=·'\\0OPEN'·+·Math.random()·+·'\\0'\nconst·escClose·=·'\\0CLOSE'·+·Math.random()·+·'\\0'\nconst·escComma·=·'\\0COMMA'·+·Math.random()·+·'\\0'\nconst·escPeriod·=·'\\0PERIOD'·+·Math.random()·+·'\\0'\nconst·escSlashPattern·=·new·RegExp(escSlash,·'g')\nconst·escOpenPattern·=·new·RegExp(escOpen,·'g')\nconst·escClosePattern·=·new·RegExp(escClose,·'g')\nconst·escCommaPattern·=·new·RegExp(escComma,·'g')\nconst·escPeriodPattern·=·new·RegExp(escPeriod,·'g')\nconst·slashPattern·=·/\\\\\\\\/g\nconst·openPattern·=·/\\\\{/g\nconst·closePattern·=·/\\\\}/g\nconst·commaPattern·=·/\\\\,/g\nconst·periodPattern·=·/\\\\./g\n\nexport·const·EXPANSION_MAX·=·100_000\n\nfunction·numeric(str:·string)·{\n··return·!isNaN(str·as·any)·?·parseInt(str,·10)·:·str.charCodeAt(0)\n}\n\nfunction·escapeBraces(str:·string)·{\n··return·str\n····.replace(slashPattern,·escSlash)\n····.replace(openPa[·...·truncated·by·diffoscope;·len:·5115,·SHA:·4bc809a06519e9e1a33f8a3e15fe252e841d5791ebc99e4177ded8278c679ee0·...·];·k++)·{\n········const·expansion·=·pre·+·N[j]·+·post[k]\n········if·(!isTop·||·isSequence·||·expansion)·{\n··········expansions.push(expansion)\n········}\n······}\n····}\n··}\n\n··return·expansions\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 4, 15 lines modified | Offset 4, 15 lines modified | ||
| 4 | ····}, | 4 | ····}, |
| 5 | ····"description":·"Brace·expansion·as·known·from·sh/bash", | 5 | ····"description":·"Brace·expansion·as·known·from·sh/bash", |
| 6 | ····"devDependencies":·{ | 6 | ····"devDependencies":·{ |
| 7 | ········"@types/brace-expansion":·"^1.1.2", | 7 | ········"@types/brace-expansion":·"^1.1.2", |
| 8 | ········"@types/node":·"^24.0.0", | 8 | ········"@types/node":·"^24.0.0", |
| 9 | ········"mkdirp":·"^3.0.1", | 9 | ········"mkdirp":·"^3.0.1", |
| 10 | ········"prettier":·"^3.3.2", | 10 | ········"prettier":·"^3.3.2", |
| 11 | ········"tap":·"^21. | 11 | ········"tap":·"^21.5.0", |
| 12 | ········"tshy":·"^3.0.2", | 12 | ········"tshy":·"^3.0.2", |
| 13 | ········"typedoc":·"^0.28.5" | 13 | ········"typedoc":·"^0.28.5" |
| 14 | ····}, | 14 | ····}, |
| 15 | ····"engines":·{ | 15 | ····"engines":·{ |
| 16 | ········"node":·"20·||·>=22" | 16 | ········"node":·"20·||·>=22" |
| 17 | ····}, | 17 | ····}, |
| 18 | ····"exports":·{ | 18 | ····"exports":·{ |
| Offset 31, 28 lines modified | Offset 31, 17 lines modified | ||
| 31 | ····"files":·[ | 31 | ····"files":·[ |
| 32 | ········"dist" | 32 | ········"dist" |
| 33 | ····], | 33 | ····], |
| 34 | ····"license":·"MIT", | 34 | ····"license":·"MIT", |
| 35 | ····"main":·"./dist/commonjs/index.js", | 35 | ····"main":·"./dist/commonjs/index.js", |
| 36 | ····"module":·"./dist/esm/index.js", | 36 | ····"module":·"./dist/esm/index.js", |
| 37 | ····"name":·"@isaacs/brace-expansion", | 37 | ····"name":·"@isaacs/brace-expansion", |
| 38 | ····"prettier":·{ | ||
| 39 | ········"arrowParens":·"avoid", | ||
| 40 | ········"bracketSameLine":·true, | ||
| 41 | ········"endOfLine":·"lf", | ||
| 42 | ········"jsxSingleQuote":·false, | ||
| 43 | ········"printWidth":·80, | ||
| 44 | ········"semi":·false, | ||
| 45 | ········"singleQuote":·true, | ||
| 46 | ········"tabWidth":·2, | ||
| 47 | ········"useTabs":·false | ||
| 48 | ····}, | ||
| 49 | ····"scripts":·{ | 38 | ····"scripts":·{ |
| 50 | ········"benchmark":·"node·benchmark/index.js", | 39 | ········"benchmark":·"node·benchmark/index.js", |
| 51 | ········"format":·"prettier·--write·. | 40 | ········"format":·"prettier·--write·.", |
| 52 | ········"postversion":·"npm·publish", | 41 | ········"postversion":·"npm·publish", |
| 53 | ········"prepare":·"tshy", | 42 | ········"prepare":·"tshy", |
| 54 | ········"prepublishOnly":·"git·push·origin·--follow-tags", | 43 | ········"prepublishOnly":·"git·push·origin·--follow-tags", |
| 55 | ········"presnap":·"npm·run·prepare", | 44 | ········"presnap":·"npm·run·prepare", |
| 56 | ········"pretest":·"npm·run·prepare", | 45 | ········"pretest":·"npm·run·prepare", |
| 57 | ········"preversion":·"npm·test", | 46 | ········"preversion":·"npm·test", |
| 58 | ········"snap":·"tap", | 47 | ········"snap":·"tap", |
| Offset 63, 9 lines modified | Offset 52, 9 lines modified | ||
| 63 | ········"exports":·{ | 52 | ········"exports":·{ |
| 64 | ············".":·"./src/index.ts", | 53 | ············".":·"./src/index.ts", |
| 65 | ············"./package.json":·"./package.json" | 54 | ············"./package.json":·"./package.json" |
| 66 | ········} | 55 | ········} |
| 67 | ····}, | 56 | ····}, |
| 68 | ····"type":·"module", | 57 | ····"type":·"module", |
| 69 | ····"types":·"./dist/commonjs/index.d.ts", | 58 | ····"types":·"./dist/commonjs/index.d.ts", |
| 70 | ····"version":·"5.0. | 59 | ····"version":·"5.0.1" |
| 71 | } | 60 | } |
| Offset 11, 910 lines modified | Offset 11, 911 lines modified | ||
| 000000a0:·2f70·6163·6b61·6765·2d6a·736f·6e27·290a··/package-json'). | 000000a0:·2f70·6163·6b61·6765·2d6a·736f·6e27·290a··/package-json'). | ||
| 000000b0:·636f·6e73·7420·7b20·7265·6164·6469·7253··const·{·readdirS | 000000b0:·636f·6e73·7420·7b20·7265·6164·6469·7253··const·{·readdirS | ||
| 000000c0:·636f·7065·6420·7d20·3d20·7265·7175·6972··coped·}·=·requir | 000000c0:·636f·7065·6420·7d20·3d20·7265·7175·6972··coped·}·=·requir | ||
| 000000d0:·6528·2740·6e70·6d63·6c69·2f66·7327·290a··e('@npmcli/fs'). | 000000d0:·6528·2740·6e70·6d63·6c69·2f66·7327·290a··e('@npmcli/fs'). | ||
| 000000e0:·636f·6e73·7420·7b20·7761·6c6b·5570·207d··const·{·walkUp·} | 000000e0:·636f·6e73·7420·7b20·7761·6c6b·5570·207d··const·{·walkUp·} | ||
| 000000f0:·203d·2072·6571·7569·7265·2827·7761·6c6b···=·require('walk | 000000f0:·203d·2072·6571·7569·7265·2827·7761·6c6b···=·require('walk | Diff chunk too large, falling back to line-by-line diff (904 lines added, 903 lines removed) | |
| 00000100:·2d75·702d·7061·7468·2729·0a63·6f6e·7374··-up-path').const | 00000100:·2d75·702d·7061·7468·2729·0a63·6f6e·7374··-up-path').const | ||
| 00000110:·20 | 00000110:·207b·2063·6f6d·6d6f·6e41·6e63·6573·746f···{·commonAncesto | ||
| 00000120:·72 | 00000120:·7250·6174·6820·7d20·3d20·7265·7175·6972··rPath·}·=·requir | ||
| 00000130:·6 | 00000130:·6528·2763·6f6d·6d6f·6e2d·616e·6365·7374··e('common-ancest | ||
| 00000140:·6 | 00000140:·6f72·2d70·6174·6827·290a·636f·6e73·7420··or-path').const· | ||
| 00000150:· | 00000150:·7472·6565·4368·6563·6b20·3d20·7265·7175··treeCheck·=·requ | ||
| 00000160:·6 | 00000160:·6972·6528·272e·2e2f·7472·6565·2d63·6865··ire('../tree-che | ||
| 00000170:·6 | 00000170:·636b·2e6a·7327·290a·0a63·6f6e·7374·2053··ck.js')..const·S | ||
| 00000180:· | 00000180:·6872·696e·6b77·7261·7020·3d20·7265·7175··hrinkwrap·=·requ | ||
| 00000190:· | 00000190:·6972·6528·272e·2e2f·7368·7269·6e6b·7772··ire('../shrinkwr | ||
| 000001a0:·6 | 000001a0:·6170·2e6a·7327·290a·636f·6e73·7420·6361··ap.js').const·ca | ||
| 000001b0:· | 000001b0:·6c63·4465·7046·6c61·6773·203d·2072·6571··lcDepFlags·=·req | ||
| 000001c0:· | 000001c0:·7569·7265·2827·2e2e·2f63·616c·632d·6465··uire('../calc-de | ||
| 000001d0:· | 000001d0:·702d·666c·6167·732e·6a73·2729·0a63·6f6e··p-flags.js').con | ||
| 000001e0:·7 | 000001e0:·7374·204e·6f64·6520·3d20·7265·7175·6972··st·Node·=·requir | ||
| 000001f0:· | 000001f0:·6528·272e·2e2f·6e6f·6465·2e6a·7327·290a··e('../node.js'). | ||
| 00000200:· | 00000200:·636f·6e73·7420·4c69·6e6b·203d·2072·6571··const·Link·=·req | ||
| 00000210:· | 00000210:·7569·7265·2827·2e2e·2f6c·696e·6b2e·6a73··uire('../link.js | ||
| 00000220:· | 00000220:·2729·0a63·6f6e·7374·2072·6561·6c70·6174··').const·realpat | ||
| 00000230:·6 | 00000230:·6820·3d20·7265·7175·6972·6528·272e·2e2f··h·=·require('../ | ||
| 00000240:·7 | 00000240:·7265·616c·7061·7468·2e6a·7327·290a·0a2f··realpath.js')../ | ||
| 00000250:· | 00000250:·2f20·7075·626c·6963·2073·796d·626f·6c73··/·public·symbols | ||
| 00000260:· | 00000260:·0a63·6f6e·7374·205f·6368·616e·6765·5061··.const·_changePa | ||
| 00000270:· | 00000270:·7468·203d·2053·796d·626f·6c2e·666f·7228··th·=·Symbol.for( | ||
| 00000280:· | 00000280:·275f·6368·616e·6765·5061·7468·2729·0a63··'_changePath').c | ||
| 00000290:·6f | 00000290:·6f6e·7374·205f·7365·7457·6f72·6b73·7061··onst·_setWorkspa | ||
| 000002a0:·6 | 000002a0:·6365·7320·3d20·5379·6d62·6f6c·2e66·6f72··ces·=·Symbol.for | ||
| 000002b0:· | 000002b0:·2827·7365·7457·6f72·6b73·7061·6365·7327··('setWorkspaces' | ||
| 000002c0:· | 000002c0:·290a·636f·6e73·7420·5f72·7063·6163·6865··).const·_rpcache | ||
| 000002d0:· | 000002d0:·203d·2053·796d·626f·6c2e·666f·7228·2772···=·Symbol.for('r | ||
| 000002e0:·6 | 000002e0:·6561·6c70·6174·6843·6163·6865·2729·0a63··ealpathCache').c | ||
| 000002f0:·6 | 000002f0:·6f6e·7374·205f·7374·6361·6368·6520·3d20··onst·_stcache·=· | ||
| 00000300:· | 00000300:·5379·6d62·6f6c·2e66·6f72·2827·7374·6174··Symbol.for('stat | ||
| 00000310:· | 00000310:·4361·6368·6527·290a·0a6d·6f64·756c·652e··Cache')..module. | ||
| 00000320:·6 | 00000320:·6578·706f·7274·7320·3d20·636c·7320·3d3e··exports·=·cls·=> | ||
| 00000330:· | 00000330:·2063·6c61·7373·2041·6374·7561·6c4c·6f61···class·ActualLoa | ||
| 00000340:· | 00000340:·6465·7220·6578·7465·6e64·7320·636c·7320··der·extends·cls· | ||
| 00000350:· | 00000350:·7b0a·2020·2361·6374·7561·6c54·7265·650a··{.··#actualTree. | ||
| 00000360:· | 00000360:·2020·2f2f·2065·6e73·7572·6520·7768·656e····//·ensure·when | ||
| 00000370:· | 00000370:·2077·616c·6b69·6e67·2074·6865·2074·7265···walking·the·tre | ||
| 00000380:·6 | 00000380:·6520·7468·6174·2077·6520·646f·6e27·7420··e·that·we·don't· | ||
| 00000390:· | 00000390:·6361·6c6c·206c·6f61·6454·7265·6520·6f6e··call·loadTree·on | ||
| 000003a0:·20 | 000003a0:·2074·6865·2073·616d·650a·2020·2f2f·2061···the·same.··//·a | ||
| 000003b0:· | 000003b0:·6374·7561·6c20·6e6f·6465·206d·6f72·6520··ctual·node·more· | ||
| 000003c0:· | 000003c0:·7468·616e·206f·6e65·2074·696d·652e·0a20··than·one·time..· | ||
| 000003d0:· | 000003d0:·2023·6163·7475·616c·5472·6565·4c6f·6164···#actualTreeLoad | ||
| 000003e0:·65 | 000003e0:·6564·203d·206e·6577·2053·6574·2829·0a20··ed·=·new·Set().· | ||
| 000003f0:·6 | 000003f0:·2023·6163·7475·616c·5472·6565·5072·6f6d···#actualTreeProm | ||
| 00000400:·6 | 00000400:·6973·650a·0a20·202f·2f20·6361·6368·6520··ise..··//·cache· | ||
| 00000410:·6 | 00000410:·6f66·206e·6f64·6573·2077·6865·6e20·6c6f··of·nodes·when·lo | ||
| 00000420:·616 | 00000420:·6164·696e·6720·7468·6520·6163·7475·616c··ading·the·actual | ||
| 00000430:·6 | 00000430:·5472·6565·2c20·736f·2074·6861·7420·7765··Tree,·so·that·we | ||
| 00000440:· | 00000440:·2061·766f·6964·206c·6f61·6465·6420·7468···avoid·loaded·th | ||
| 00000450:·65 | 00000450:·650a·2020·2f2f·2073·616d·6520·6e6f·6465··e.··//·same·node | ||
| 00000460:· | 00000460:·206d·756c·7469·706c·6520·7469·6d65·7320···multiple·times· | ||
| 00000470:· | 00000470:·7768·656e·2073·796d·6c69·6e6b·7320·6174··when·symlinks·at | ||
| 00000480:· | 00000480:·7461·636b·2e0a·2020·2363·6163·6865·203d··tack..··#cache·= | ||
| 00000490:· | 00000490:·206e·6577·204d·6170·2829·0a20·2023·6669···new·Map().··#fi | ||
| 000004a0:· | 000004a0:·6c74·6572·0a0a·2020·2f2f·2063·6163·6865··lter..··//·cache | ||
| 000004b0:·6 | 000004b0:·206f·6620·6c69·6e6b·2074·6172·6765·7473···of·link·targets | ||
| 000004c0:· | 000004c0:·2066·6f72·2073·6574·7469·6e67·2066·7350···for·setting·fsP | ||
| 000004d0:· | 000004d0:·6172·656e·7420·6c69·6e6b·730a·2020·2f2f··arent·links.··// | ||
| 000004e0:· | 000004e0:·2057·6520·646f·6e27·7420·646f·2066·7350···We·don't·do·fsP | ||
| 000004f0:· | 000004f0:·6172·656e·7420·6173·2061·206d·6167·6963··arent·as·a·magic | ||
| 00000500:· | 00000500:·2067·6574·7465·722f·7365·7474·6572·2c20···getter/setter,· | ||
| 00000510:· | 00000510:·6265·6361·7573·6520·6974·2764·2062·6520··because·it'd·be· | ||
| 00000520:· | 00000520:·746f·6f20·636f·7374·6c79·0a20·202f·2f20··too·costly.··//· | ||
| 00000530:· | 00000530:·746f·206b·6565·7020·7570·2074·6f20·6461··to·keep·up·to·da | ||
| 00000540:· | 00000540:·7465·2061·6c6f·6e67·2074·6865·2077·616c··te·along·the·wal | ||
| 00000550:·6 | 00000550:·6b2e·0a20·202f·2f20·416e·642c·2077·6520··k..··//·And,·we· | ||
| 00000560:·6 | 00000560:·6b6e·6f77·2074·6861·7420·6974·2063·616e··know·that·it·can | ||
| 00000570:· | 00000570:·204f·4e4c·5920·6265·2072·656c·6576·616e···ONLY·be·relevan | ||
| 00000580:· | 00000580:·7420·7768·656e·2074·6865·206e·6f64·6520··t·when·the·node· | ||
| 00000590:· | 00000590:·6973·2061·2074·6172·6765·7420·6f66·2061··is·a·target·of·a | ||
| 000005a0:· | 000005a0:·0a20·202f·2f20·6c69·6e6b·3b20·6f74·6865··.··//·link;·othe | ||
| 000005b0:· | 000005b0:·7277·6973·652c·2069·7427·6420·6265·2069··rwise,·it'd·be·i | ||
| 000005c0:·6 | 000005c0:·6e20·6120·6e6f·6465·5f6d·6f64·756c·6573··n·a·node_modules | ||
| 000005d0:· | 000005d0:·2066·6f6c·6465·722c·2073·6f20·7461·6b65···folder,·so·take | ||
| 000005e0:·206 | 000005e0:·2061·6476·616e·7461·6765·206f·660a·2020···advantage·of.·· | ||
| 000005f0:·2 | 000005f0:·2f2f·2074·6861·7420·746f·206c·696d·6974··//·that·to·limit | ||
| 00000600:·206 | 00000600:·2074·6865·2073·6361·6e73·206c·6174·6572···the·scans·later | ||
| 00000610:· | 00000610:·2e0a·2020·2374·6f70·4e6f·6465·7320·3d20··..··#topNodes·=· | ||
| 00000620:· | 00000620:·6e65·7720·5365·7428·290a·2020·2374·7261··new·Set().··#tra | ||
| 00000630:· | 00000630:·6e73·706c·616e·7446·696c·7465·720a·0a20··nsplantFilter..· | ||
| 00000640:·20 | 00000640:·202f·2f20·7075·626c·6963·206d·6574·686f···//·public·metho | ||
| 00000650:·4 | 00000650:·640a·2020·2f2f·2054·4f44·4f20·7265·6d6f··d.··//·TODO·remo | ||
| 00000660:· | 00000660:·7665·206f·7074·696f·6e73·2070·6172·616d··ve·options·param | ||
| 00000670:·6 | 00000670:·2069·6e20·6e65·7874·2073·656d·7665·7220···in·next·semver· | ||
| 00000680:· | 00000680:·6d61·6a6f·720a·2020·6173·796e·6320·6c6f··major.··async·lo | ||
| 00000690:·6 | 00000690:·6164·4163·7475·616c·2028·6f70·7469·6f6e··adActual·(option | ||
| 000006a0:· | 000006a0:·7320·3d20·7b7d·2920·7b0a·2020·2020·2f2f··s·=·{})·{.····// | ||
| 000006b0:· | 000006b0:·2049·6e20·7468·6520·7061·7374·2074·6869···In·the·past·thi | ||
| Max diff block lines reached; -1/125186 bytes (-0.00%) of diff not shown. | |||
| Offset 13, 15 lines modified | Offset 13, 15 lines modified | ||
| 13 | ········"@npmcli/node-gyp":·"^5.0.0", | 13 | ········"@npmcli/node-gyp":·"^5.0.0", |
| 14 | ········"@npmcli/package-json":·"^7.0.0", | 14 | ········"@npmcli/package-json":·"^7.0.0", |
| 15 | ········"@npmcli/query":·"^5.0.0", | 15 | ········"@npmcli/query":·"^5.0.0", |
| 16 | ········"@npmcli/redact":·"^4.0.0", | 16 | ········"@npmcli/redact":·"^4.0.0", |
| 17 | ········"@npmcli/run-script":·"^10.0.0", | 17 | ········"@npmcli/run-script":·"^10.0.0", |
| 18 | ········"bin-links":·"^6.0.0", | 18 | ········"bin-links":·"^6.0.0", |
| 19 | ········"cacache":·"^20.0.1", | 19 | ········"cacache":·"^20.0.1", |
| 20 | ········"common-ancestor-path":·"^ | 20 | ········"common-ancestor-path":·"^2.0.0", |
| 21 | ········"hosted-git-info":·"^9.0.0", | 21 | ········"hosted-git-info":·"^9.0.0", |
| 22 | ········"json-stringify-nice":·"^1.1.4", | 22 | ········"json-stringify-nice":·"^1.1.4", |
| 23 | ········"lru-cache":·"^11.2.1", | 23 | ········"lru-cache":·"^11.2.1", |
| 24 | ········"minimatch":·"^10.0.3", | 24 | ········"minimatch":·"^10.0.3", |
| 25 | ········"nopt":·"^9.0.0", | 25 | ········"nopt":·"^9.0.0", |
| 26 | ········"npm-install-checks":·"^8.0.0", | 26 | ········"npm-install-checks":·"^8.0.0", |
| 27 | ········"npm-package-arg":·"^13.0.0", | 27 | ········"npm-package-arg":·"^13.0.0", |
| Offset 90, 9 lines modified | Offset 90, 9 lines modified | ||
| 90 | ········"timeout":·"720" | 90 | ········"timeout":·"720" |
| 91 | ····}, | 91 | ····}, |
| 92 | ····"templateOSS":·{ | 92 | ····"templateOSS":·{ |
| 93 | ········"//@npmcli/template-oss":·"This·file·is·partially·managed·by·@npmcli/template-oss.·Edits·may·be·overwritten.", | 93 | ········"//@npmcli/template-oss":·"This·file·is·partially·managed·by·@npmcli/template-oss.·Edits·may·be·overwritten.", |
| 94 | ········"content":·"../../scripts/template-oss/index.js", | 94 | ········"content":·"../../scripts/template-oss/index.js", |
| 95 | ········"version":·"4.25.1" | 95 | ········"version":·"4.25.1" |
| 96 | ····}, | 96 | ····}, |
| 97 | ····"version":·"9.1. | 97 | ····"version":·"9.1.10" |
| 98 | } | 98 | } |
| Offset 2, 26 lines modified | Offset 2, 28 lines modified | ||
| 2 | Find·the·common·ancestor·of·2·or·more·paths·on·Windows·or·Unix | 2 | Find·the·common·ancestor·of·2·or·more·paths·on·Windows·or·Unix |
| 3 | ##·USAGE | 3 | ##·USAGE |
| 4 | Give·it·two·or·more·path·strings,·and·it'll·do·the·thing. | 4 | Give·it·two·or·more·path·strings,·and·it'll·do·the·thing. |
| 5 | ``` | 5 | ```ts |
| 6 | import·{·commonAncestorPath·}·from·'common-ancestor-path' | ||
| 7 | //·or: | ||
| 6 | const· | 8 | //·const·{·commonAncestorPath·}·=·require('common-ancestor-path') |
| 7 | //·output·/a/b | 9 | //·output·/a/b |
| 8 | console.log( | 10 | console.log(commonAncestorPath('/a/b/c/d',·'/a/b/x/y/z',·'/a/b/c/i/j/k')) |
| 9 | //·normalizes·separators,·but·NOT·cases,·since·it·matters·sometimes | 11 | //·normalizes·separators,·but·NOT·cases,·since·it·matters·sometimes |
| 10 | console.log( | 12 | console.log(commonAncestorPath('C:\\a\\b\\c',·'C:\\a\\b\\x')) |
| 11 | //·no·common·ancestor·on·different·windows·drive·letters | 13 | //·no·common·ancestor·on·different·windows·drive·letters |
| 12 | //·so,·this·returns·null | 14 | //·so,·this·returns·null |
| 13 | console.log( | 15 | console.log(commonAncestorPath('c:\\a\\b\\c',·'d:\\d\\e\\f')) |
| 14 | ``` | 16 | ``` |
| 15 | ##·API | 17 | ##·API |
| 16 | `commonAncestorPath(...paths)` | 18 | `commonAncestorPath(...paths)` |
| 17 | Returns·the·nearest·(deepest)·common·ancestor·path,·or·`null`·if·on | 19 | Returns·the·nearest·(deepest)·common·ancestor·path,·or·`null`·if·on |
| Offset 1, 28 lines modified | Offset 1, 60 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"author":·"Isaac·Z.·Schlueter·<[email protected]>·(https://izs.me)", | 2 | ····"author":·"Isaac·Z.·Schlueter·<[email protected]>·(https://izs.me)", |
| 3 | ····"description":·"Find·the·common·ancestor·of·2·or·more·paths·on·Windows·or·Unix", | 3 | ····"description":·"Find·the·common·ancestor·of·2·or·more·paths·on·Windows·or·Unix", |
| 4 | ····"devDependencies":·{ | 4 | ····"devDependencies":·{ |
| 5 | ········"@types/node":·"^24.10.1", | ||
| 6 | ········"prettier":·"^3.6.2", | ||
| 5 | ········"require-inject":·"^1.4.4", | 7 | ········"require-inject":·"^1.4.4", |
| 6 | ········"tap":·"^ | 8 | ········"tap":·"^21.1.6", |
| 9 | ········"tshy":·"^3.1.0", | ||
| 10 | ········"typedoc":·"^0.28.14" | ||
| 11 | ····}, | ||
| 12 | ····"engines":·{ | ||
| 13 | ········"node":·">=·18" | ||
| 14 | ····}, | ||
| 15 | ····"exports":·{ | ||
| 16 | ········".":·{ | ||
| 17 | ············"import":·{ | ||
| 18 | ················"default":·"./dist/esm/index.js", | ||
| 19 | ················"types":·"./dist/esm/index.d.ts" | ||
| 20 | ············}, | ||
| 21 | ············"require":·{ | ||
| 22 | ················"default":·"./dist/commonjs/index.js", | ||
| 23 | ················"types":·"./dist/commonjs/index.d.ts" | ||
| 24 | ············} | ||
| 25 | ········}, | ||
| 26 | ········"./package.json":·"./package.json" | ||
| 7 | ····}, | 27 | ····}, |
| 8 | ····"files":·[ | 28 | ····"files":·[ |
| 9 | ········" | 29 | ········"dist" |
| 10 | ····], | 30 | ····], |
| 11 | ····"license":·" | 31 | ····"license":·"BlueOak-1.0.0", |
| 32 | ····"main":·"./dist/commonjs/index.js", | ||
| 33 | ····"module":·"./dist/esm/index.js", | ||
| 12 | ····"name":·"common-ancestor-path", | 34 | ····"name":·"common-ancestor-path", |
| 13 | ····"repository":·{ | 35 | ····"repository":·{ |
| 14 | ········"type":·"git", | 36 | ········"type":·"git", |
| 15 | ········"url":·"git | 37 | ········"url":·"git@github.com:isaacs/common-ancestor-path" |
| 16 | ····}, | 38 | ····}, |
| 17 | ····"scripts":·{ | 39 | ····"scripts":·{ |
| 40 | ········"format":·"prettier·--write·.·--log-level·warn·--cache", | ||
| 18 | ········"postversion":·"npm·publish", | 41 | ········"postversion":·"npm·publish", |
| 42 | ········"prepare":·"tshy", | ||
| 19 | ········"prepublishOnly":·"git·push·origin·--follow-tags", | 43 | ········"prepublishOnly":·"git·push·origin·--follow-tags", |
| 44 | ········"presnap":·"npm·run·prepare", | ||
| 45 | ········"pretest":·"npm·run·prepare", | ||
| 20 | ········"preversion":·"npm·test", | 46 | ········"preversion":·"npm·test", |
| 21 | ········"snap":·"tap", | 47 | ········"snap":·"tap", |
| 22 | ········"test":·"tap" | 48 | ········"test":·"tap", |
| 49 | ········"typedoc":·"typedoc" | ||
| 23 | ····}, | 50 | ····}, |
| 24 | ····"t | 51 | ····"tshy":·{ |
| 25 | ········" | 52 | ········"exports":·{ |
| 53 | ············".":·"./src/index.ts", | ||
| 54 | ············"./package.json":·"./package.json" | ||
| 55 | ········} | ||
| 26 | ····}, | 56 | ····}, |
| 57 | ····"type":·"module", | ||
| 58 | ····"types":·"./dist/commonjs/index.d.ts", | ||
| 27 | ····"version":·" | 59 | ····"version":·"2.0.0" |
| 28 | } | 60 | } |
| Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"author":·"Isaac·Z.·Schlueter·<[email protected]>·(https://blog.izs.me/)", | 2 | ····"author":·"Isaac·Z.·Schlueter·<[email protected]>·(https://blog.izs.me/)", |
| 3 | ····"dependencies":·{ | 3 | ····"dependencies":·{ |
| 4 | ········"minimatch":·"^10.1. | 4 | ········"minimatch":·"^10.1.2", |
| 5 | ········"minipass":·"^7.1.2", | 5 | ········"minipass":·"^7.1.2", |
| 6 | ········"path-scurry":·"^2.0.0" | 6 | ········"path-scurry":·"^2.0.0" |
| 7 | ····}, | 7 | ····}, |
| 8 | ····"description":·"the·most·correct·and·second·fastest·glob·implementation·in·JavaScript", | 8 | ····"description":·"the·most·correct·and·second·fastest·glob·implementation·in·JavaScript", |
| 9 | ····"devDependencies":·{ | 9 | ····"devDependencies":·{ |
| 10 | ········"@types/node":·"^24.10.0", | 10 | ········"@types/node":·"^24.10.0", |
| 11 | ········"memfs":·"^4.50.0", | 11 | ········"memfs":·"^4.50.0", |
| Offset 38, 26 lines modified | Offset 38, 14 lines modified | ||
| 38 | ····"funding":·{ | 38 | ····"funding":·{ |
| 39 | ········"url":·"https://github.com/sponsors/isaacs" | 39 | ········"url":·"https://github.com/sponsors/isaacs" |
| 40 | ····}, | 40 | ····}, |
| 41 | ····"license":·"BlueOak-1.0.0", | 41 | ····"license":·"BlueOak-1.0.0", |
| 42 | ····"main":·"./dist/commonjs/index.js", | 42 | ····"main":·"./dist/commonjs/index.js", |
| 43 | ····"module":·"./dist/esm/index.js", | 43 | ····"module":·"./dist/esm/index.js", |
| 44 | ····"name":·"glob", | 44 | ····"name":·"glob", |
| 45 | ····"prettier":·{ | ||
| 46 | ········"arrowParens":·"avoid", | ||
| 47 | ········"bracketSameLine":·true, | ||
| 48 | ········"endOfLine":·"lf", | ||
| 49 | ········"experimentalTernaries":·true, | ||
| 50 | ········"jsxSingleQuote":·false, | ||
| 51 | ········"printWidth":·75, | ||
| 52 | ········"semi":·false, | ||
| 53 | ········"singleQuote":·true, | ||
| 54 | ········"tabWidth":·2, | ||
| 55 | ········"useTabs":·false | ||
| 56 | ····}, | ||
| 57 | ····"repository":·{ | 45 | ····"repository":·{ |
| 58 | ········"type":·"git", | 46 | ········"type":·"git", |
| 59 | ········"url":·"[email protected]:isaacs/node-glob.git" | 47 | ········"url":·"[email protected]:isaacs/node-glob.git" |
| 60 | ····}, | 48 | ····}, |
| 61 | ····"scripts":·{ | 49 | ····"scripts":·{ |
| 62 | ········"bench":·"bash·benchmark.sh", | 50 | ········"bench":·"bash·benchmark.sh", |
| 63 | ········"benchclean":·"node·benchclean.cjs", | 51 | ········"benchclean":·"node·benchclean.cjs", |
| Offset 71, 23 lines modified | Offset 59, 23 lines modified | ||
| 71 | ········"pretest":·"npm·run·prepare", | 59 | ········"pretest":·"npm·run·prepare", |
| 72 | ········"preversion":·"npm·test", | 60 | ········"preversion":·"npm·test", |
| 73 | ········"prof":·"bash·prof.sh", | 61 | ········"prof":·"bash·prof.sh", |
| 74 | ········"profclean":·"rm·-f·v8.log·profile.txt", | 62 | ········"profclean":·"rm·-f·v8.log·profile.txt", |
| 75 | ········"snap":·"tap", | 63 | ········"snap":·"tap", |
| 76 | ········"test":·"tap", | 64 | ········"test":·"tap", |
| 77 | ········"test-regen":·"npm·run·profclean·&&·TEST_REGEN=1·node·--no-warnings·--loader·ts-node/esm·test/00-setup.ts", | 65 | ········"test-regen":·"npm·run·profclean·&&·TEST_REGEN=1·node·--no-warnings·--loader·ts-node/esm·test/00-setup.ts", |
| 78 | ········"typedoc":·"typedoc | 66 | ········"typedoc":·"typedoc" |
| 79 | ····}, | 67 | ····}, |
| 80 | ····"tap":·{ | 68 | ····"tap":·{ |
| 81 | ········"before":·"test/00-setup.ts" | 69 | ········"before":·"test/00-setup.ts" |
| 82 | ····}, | 70 | ····}, |
| 83 | ····"tshy":·{ | 71 | ····"tshy":·{ |
| 84 | ········"exports":·{ | 72 | ········"exports":·{ |
| 85 | ············".":·"./src/index.ts", | 73 | ············".":·"./src/index.ts", |
| 86 | ············"./package.json":·"./package.json" | 74 | ············"./package.json":·"./package.json" |
| 87 | ········}, | 75 | ········}, |
| 88 | ········"main":·true | 76 | ········"main":·true |
| 89 | ····}, | 77 | ····}, |
| 90 | ····"type":·"module", | 78 | ····"type":·"module", |
| 91 | ····"types":·"./dist/commonjs/index.d.ts", | 79 | ····"types":·"./dist/commonjs/index.d.ts", |
| 92 | ····"version":·"13.0. | 80 | ····"version":·"13.0.1" |
| 93 | } | 81 | } |
| Offset 291, 14 lines modified | Offset 291, 63 lines modified | ||
| 291 | 4.·Do·not·use·a·`dispose`·function,·size·tracking,·or·especially | 291 | 4.·Do·not·use·a·`dispose`·function,·size·tracking,·or·especially |
| 292 | ···ttl·behavior,·unless·absolutely·needed.·These·features·are | 292 | ···ttl·behavior,·unless·absolutely·needed.·These·features·are |
| 293 | ···convenient,·and·necessary·in·some·use·cases,·and·every·attempt | 293 | ···convenient,·and·necessary·in·some·use·cases,·and·every·attempt |
| 294 | ···has·been·made·to·make·the·performance·impact·minimal,·but·it | 294 | ···has·been·made·to·make·the·performance·impact·minimal,·but·it |
| 295 | ···isn't·nothing. | 295 | ···isn't·nothing. |
| 296 | ##·Testing | ||
| 297 | When·writing·tests·that·involve·TTL-related·functionality,·note | ||
| 298 | that·this·module·creates·an·internal·reference·to·the·global | ||
| 299 | `performance`·or·`Date`·objects·at·import·time.·If·you·import·it | ||
| 300 | statically·at·the·top·level,·those·references·cannot·be·mocked·or | ||
| 301 | overridden·in·your·test·environment. | ||
| 302 | To·avoid·this,·dynamically·import·the·package·within·your·tests | ||
| 303 | so·that·the·references·are·captured·after·your·mocks·are·applied. | ||
| 304 | For·example: | ||
| 305 | ```ts | ||
| 306 | //·❌·Not·recommended | ||
| 307 | import·{·LRUCache·}·from·'lru-cache' | ||
| 308 | //·mocking·timers,·e.g.·jest.useFakeTimers() | ||
| 309 | //·✅·Recommended·for·TTL·tests | ||
| 310 | //·mocking·timers,·e.g.·jest.useFakeTimers() | ||
| 311 | const·{·LRUCache·}·=·await·import('lru-cache') | ||
| 312 | ``` | ||
| 313 | This·ensures·that·your·mocked·timers·or·time·sources·are | ||
| 314 | respected·when·testing·TTL·behavior. | ||
| 315 | Additionally,·you·can·pass·in·a·`perf`·option·when·creating·your | ||
| 316 | LRUCache·instance.·This·option·accepts·any·object·with·a·`now` | ||
| 317 | method·that·returns·a·number. | ||
| 318 | For·example,·this·would·be·a·very·bare-bones·time-mocking·system | ||
| 319 | you·could·use·in·your·tests,·without·any·particular·test | ||
| 320 | framework: | ||
| 321 | ```ts | ||
| 322 | import·{·LRUCache·}·from·'lru-cache' | ||
| 323 | let·myClockTime·=·0 | ||
| 324 | const·cache·=·new·LRUCache<string>({ | ||
| 325 | ··max:·10, | ||
| 326 | ··ttl:·1000, | ||
| 327 | ··perf:·{ | ||
| 328 | ····now:·()·=>·myClockTime, | ||
| 329 | ··}, | ||
| 330 | }) | ||
| 331 | //·run·tests,·updating·myClockTime·as·needed | ||
| 332 | ``` | ||
| 296 | ##·Breaking·Changes·in·Version·7 | 333 | ##·Breaking·Changes·in·Version·7 |
| 297 | This·library·changed·to·a·different·algorithm·and·internal·data | 334 | This·library·changed·to·a·different·algorithm·and·internal·data |
| 298 | structure·in·version·7,·yielding·significantly·better | 335 | structure·in·version·7,·yielding·significantly·better |
| 299 | performance,·albeit·with·some·subtle·changes·as·a·result. | 336 | performance,·albeit·with·some·subtle·changes·as·a·result. |
| 300 | If·you·were·relying·on·the·internals·of·LRUCache·in·version·6·or | 337 | If·you·were·relying·on·the·internals·of·LRUCache·in·version·6·or |
| Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
| 1 | u | 1 | utf-8 |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.d.ts", | 2 | ····"file":·"index.d.ts", |
| 3 | ····"mappings":·"AAAA;;GAEG;AAMH,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,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AC,EAAE,EAAE,CAAC,GAC/D,EAAE,SAAS,SAAS,GAAG,IAAI,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,GACjE,KAAK,GACN,CAAC;IAiBJ;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,GAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAM;IAgFxD;;;;OAIG;IACH,MAAM,CAAC,CAAC,EAAE,CAAC;IAyDX;;OAEG;IACH,KAAK;CA8CN", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 2556, 1020 lines modified | Offset 2556, 1034 lines modified | ||
| 00009fb0:·2020·2063·6f6e·7374·207b·2061·626f·7274·····const·{·abort | 00009fb0:·2020·2063·6f6e·7374·207b·2061·626f·7274·····const·{·abort | ||
| 00009fc0:·6564·207d·203d·2061·632e·7369·676e·616c··ed·}·=·ac.signal | 00009fc0:·6564·207d·203d·2061·632e·7369·676e·616c··ed·}·=·ac.signal | ||
| 00009fd0:·3b0a·2020·2020·2020·2020·2020·2020·636f··;.············co | 00009fd0:·3b0a·2020·2020·2020·2020·2020·2020·636f··;.············co | ||
| 00009fe0:·6e73·7420·6967·6e6f·7265·4162·6f72·7420··nst·ignoreAbort· | 00009fe0:·6e73·7420·6967·6e6f·7265·4162·6f72·7420··nst·ignoreAbort· | ||
| 00009ff0:·3d20·6f70·7469·6f6e·732e·6967·6e6f·7265··=·options.ignore | 00009ff0:·3d20·6f70·7469·6f6e·732e·6967·6e6f·7265··=·options.ignore | ||
| 0000a000:·4665·7463·6841·626f·7274·2026·2620·7620··FetchAbort·&&·v· | 0000a000:·4665·7463·6841·626f·7274·2026·2620·7620··FetchAbort·&&·v· | ||
| 0000a010:·213d·3d20·756e·6465·6669·6e65·643b·0a20··!==·undefined;.· | 0000a010:·213d·3d20·756e·6465·6669·6e65·643b·0a20··!==·undefined;.· | ||
| 0000a020:·2020·2020·2020·2020·2020·206 | 0000a020:·2020·2020·2020·2020·2020·2063·6f6e·7374·············const | ||
| 0000a030:· | 0000a030:·2070·726f·6365·6564·203d·206f·7074·696f···proceed·=·optio | ||
| 0000a040:·6e73·2e69·676e·6f72·6546·6574·6368·4162··ns.ignoreFetchAb | |||
| 0000a050:·6f72·7420·7c7c·0a20·2020·2020·2020·2020··ort·||.········· | |||
| 0000a060:·2020·2020·2020·2021·2128·6f70·7469·6f6e·········!!(option | |||
| 0000a070:·732e·616c·6c6f·7753·7461·6c65·4f6e·4665··s.allowStaleOnFe | |||
| 0000a080:·7463·6841·626f·7274·2026·2620·7620·213d··tchAbort·&&·v·!= | |||
| 0000a090:·3d20·756e·6465·6669·6e65·6429·3b0a·2020··=·undefined);.·· | |||
| 0000a0 | 0000a0a0:·2020·2020·2020·2020·2020·6966·2028·6f70············if·(op | ||
| 0000a0b0:·7469·6f6e·732e·7374·6174·7573·2920·7b0a··tions.status)·{. | |||
| 0000a050:·2069·6620·2861·626f·7274·6564·2026·2620···if·(aborted·&&· | |||
| 0000a060:·2175·7064·6174·6543·6163·6865·2920·7b0a··!updateCache)·{. | |||
| 0000a0 | 0000a0c0:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 0000a0d0:·6966·2028·6162·6f72·7465·6420·2626·2021··if·(aborted·&&·! | |||
| 0000a0e0:·7570·6461·7465·4361·6368·6529·207b·0a20··updateCache)·{.· | |||
| 0000a080:·2020·2020·6f70·7469·6f6e·732e·7374·6174······options.stat | |||
| 0000a090:·7573·2e66·6574·6368·4162·6f72·7465·6420··us.fetchAborted· | |||
| 0000a0a0:·3d20·7472·7565·3b0a·2020·2020·2020·2020··=·true;.········ | |||
| 0000a0b0:·2020·2020·2020·2020·2020·2020·6f70·7469··············opti | |||
| 0000a0c0:·6f6e·732e·7374·6174·7573·2e66·6574·6368··ons.status.fetch | |||
| 0000a0d0:·4572·726f·7220·3d20·6163·2e73·6967·6e61··Error·=·ac.signa | |||
| 0000a0e0:·6c2e·7265·6173·6f6e·3b0a·2020·2020·2020··l.reason;.······ | |||
| 0000a0f0:·2020·2020·2020·2020·2020·2020·2020· | 0000a0f0:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 0000a100:·202 | 0000a100:·2020·206f·7074·696f·6e73·2e73·7461·7475·····options.statu | ||
| 0000a110:·732e·6665·7463·6841·626f·7274·6564·203d··s.fetchAborted·= | |||
| 0000a120:·2074·7275·653b·0a20·2020·2020·2020·2020···true;.········· | |||
| 0000a130:·2020·2020·2020·2020·2020·206f·7074·696f·············optio | |||
| 0000a140:·6e73·2e73·7461·7475·732e·6665·7463·6845··ns.status.fetchE | |||
| 0000a150:·7272·6f72·203d·2061·632e·7369·676e·616c··rror·=·ac.signal | |||
| 0000a160:·2e72·6561·736f·6e3b·0a20·2020·2020·2020··.reason;.······· | |||
| 0000a170:·2020·2020·2020·2020·2020·2020·2069·6620···············if· | |||
| 0000a180:·2869·676e·6f72·6541·626f·7274·290a·2020··(ignoreAbort).·· | |||
| 0000a1 | 0000a190:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 0000a120:·2020·2020·2020·206f·7074·696f·6e73·2e73·········options.s | |||
| 0000a130:·7461·7475·732e·6665·7463·6841·626f·7274··tatus.fetchAbort | |||
| 0000a1 | 0000a1a0:·2020·2020·2020·6f70·7469·6f6e·732e·7374········options.st | ||
| 0000a1b0:·6174·7573·2e66·6574·6368·4162·6f72·7449··atus.fetchAbortI | |||
| 0000a1c0:·676e·6f72·6564·203d·2074·7275·653b·0a20··gnored·=·true;.· | |||
| 0000a1d0:·2020·2020·2020·2020·2020·2020·2020·207d·················} | |||
| 0000a1 | 0000a1e0:·0a20·2020·2020·2020·2020·2020·2020·2020··.··············· | ||
| 0000a1f0:·2065·6c73·6520·7b0a·2020·2020·2020·2020···else·{.········ | |||
| 0000a200:·2020·2020·2020·2020·2020·2020·6f70·7469··············opti | |||
| 0000a210:·6f6e·732e·7374·6174·7573·2e66·6574·6368··ons.status.fetch | |||
| 0000a220:·5265·736f·6c76·6564·203d·2074·7275·653b··Resolved·=·true; | |||
| 0000a | 0000a230:·0a20·2020·2020·2020·2020·2020·2020·2020··.··············· | ||
| 0000a170:·2020·656c·7365·207b·0a20·2020·2020·2020····else·{.······· | |||
| 0000a | 0000a240:·207d·0a20·2020·2020·2020·2020·2020·207d···}.············} | ||
| 0000a190:·696f·6e73·2e73·7461·7475·732e·6665·7463··ions.status.fetc | |||
| 0000a1a0:·6852·6573·6f6c·7665·6420·3d20·7472·7565··hResolved·=·true | |||
| 0000a | 0000a250:·0a20·2020·2020·2020·2020·2020·2069·6620··.············if· | ||
| 0000a260:·2861·626f·7274·6564·2026·2620·2169·676e··(aborted·&&·!ign | |||
| 0000a270:·6f72·6541·626f·7274·2026·2620·2175·7064··oreAbort·&&·!upd | |||
| 0000a280:·6174·6543·6163·6865·2920·7b0a·2020·2020··ateCache)·{.···· | |||
| 0000a1c0:·2020·7d0a·2020·2020·2020·2020·2020·2020····}.············ | |||
| 0000a1d0:·7d0a·2020·2020·2020·2020·2020·2020·6966··}.············if | |||
| 0000a1e0:·2028·6162·6f72·7465·6420·2626·2021·6967···(aborted·&&·!ig | |||
| 0000a1f0:·6e6f·7265·4162·6f72·7420·2626·2021·7570··noreAbort·&&·!up | |||
| 0000a200:·6461·7465·4361·6368·6529·207b·0a20·2020··dateCache)·{.··· | |||
| 0000a2 | 0000a290:·2020·2020·2020·2020·2020·2020·7265·7475··············retu | ||
| 0000a2a0:·726e·2066·6574·6368·4661·696c·2861·632e··rn·fetchFail(ac. | |||
| 0000a2b0:·7369·676e·616c·2e72·6561·736f·6e2c·2070··signal.reason,·p | |||
| 0000a2c0:·726f·6365·6564·293b·0a20·2020·2020·2020··roceed);.······· | |||
| 0000a2d0:·2020·2020·207d·0a20·2020·2020·2020·2020·······}.········· | |||
| 0000a2e0:·2020·202f·2f20·6569·7468·6572·2077·6520·····//·either·we· | |||
| 0000a2f0:·6469·646e·2774·2061·626f·7274·2c20·616e··didn't·abort,·an | |||
| 0000a300:·6420·6172·6520·7374·696c·6c20·6865·7265··d·are·still·here | |||
| 0000a310:·2c20·6f72·2077·6520·6469·642c·2061·6e64··,·or·we·did,·and | |||
| 0000a320:·2069·676e·6f72·6564·0a20·2020·2020·2020···ignored.······· | |||
| 0000a330:·2020·2020·2063·6f6e·7374·2062·6620·3d20·······const·bf·=· | |||
| 0000a220:·7572·6e20·6665·7463·6846·6169·6c28·6163··urn·fetchFail(ac | |||
| 0000a230:·2e73·6967·6e61·6c2e·7265·6173·6f6e·293b··.signal.reason); | |||
| 0000a240:·0a20·2020·2020·2020·2020·2020·207d·0a20··.············}.· | |||
| 0000a250:·2020·2020·2020·2020·2020·202f·2f20·6569·············//·ei | |||
| 0000a260:·7468·6572·2077·6520·6469·646e·2774·2061··ther·we·didn't·a | |||
| 0000a270:·626f·7274·2c20·616e·6420·6172·6520·7374··bort,·and·are·st | |||
| 0000a280:·696c·6c20·6865·7265·2c20·6f72·2077·6520··ill·here,·or·we· | |||
| 0000a290:·6469·642c·2061·6e64·2069·676e·6f72·6564··did,·and·ignored | |||
| 0000a2a0:·0a20·2020·2020·2020·2020·2020·2063·6f6e··.············con | |||
| 0000a2b0:·7374·2062·6620·3d20·703b·0a20·2020·2020··st·bf·=·p;.····· | |||
| 0000a2c0:·2020·2020·2020·202f·2f20·6966·206e·6f74·········//·if·not | |||
| 0000a2d0:·6869·6e67·2065·6c73·6520·6861·7320·6265··hing·else·has·be | |||
| 0000a2e0:·656e·2077·7269·7474·656e·2074·6865·7265··en·written·there | |||
| 0000a2f0:·2062·7574·2077·6527·7265·2073·6574·2074···but·we're·set·t | |||
| 0000a300:·6f20·7570·6461·7465·2074·6865·0a20·2020··o·update·the.··· | |||
| 0000a310:·2020·2020·2020·2020·202f·2f20·6361·6368···········//·cach | |||
| 0000a320:·6520·616e·6420·6967·6e6f·7265·2074·6865··e·and·ignore·the | |||
| 0000a330:·2061·626f·7274·2c20·6f72·2069·6620·6974···abort,·or·if·it | |||
| 0000a340:·2773·2073·7469·6c6c·2070·656e·6469·6e67··'s·still·pending | |||
| 0000a350:·206f·6e20·7468·6973·2073·7065·6369·6669···on·this·specifi | |||
| 0000a3 | 0000a340:·703b·0a20·2020·2020·2020·2020·2020·202f··p;.············/ | ||
| 0000a370:·2062·6163·6b67·726f·756e·6420·7265·7175···background·requ | |||
| 0000a380:·6573·742c·2074·6865·6e20·7772·6974·6520··est,·then·write· | |||
| Max diff block lines reached; 129979/140909 bytes (92.24%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.js", | 2 | ····"file":·"index.js", |
| 3 | ····"mappings":·";AAAA;;GAEG;;;AAOH,MAAM,WAAW,GACf,CACE,OAAO,WAAW,KAAK,QAAQ;IAC/B,WAAW;IACX,OAAO,WAAW,CAAC,GAAG,KAAK,UAAU,CACtC,CAAC,CAAC;IACD,WAAW;IACb,CAAC,CAAC,IAAI,CAAA;AAER,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAA;AAKhC,qBAAqB;AACrB,MAAM,OAAO,GAAG,CACd,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IACxC,OAAO;IACT,CAAC,CAAC,EAAE,CAAyB,CAAA;AAC/B,qBAAqB;AAErB,MAAM,WAAW,GAAG,CAClB,GAAW,EACX,IAAY,EACZ,IAAY,EACZ,EAAQ,EACR,EAAE;IACF,OAAO,OAAO,CAAC,WAAW,KAAK,UAAU,CAAC,CAAC;QACzC,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE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AE,CAAA;QACnB,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;QAC1B,yDAAyD;QACzD,MAAM,EAAE,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;YAC/D,MAAM,EAAE,EAAE,CAAC,MAAM;SAClB,CAAC,CAAA;QAEF,MAAM,SAAS,GAAG;YAChB,MAAM,EAAE,EAAE,CAAC,MAAM;YACjB,OAAO;YACP,OAAO;SACR,CAAA;QAED,MAAM,EAAE,GAAG,CAAC,CAAgB,EAAE,WAAW,GAAG,KAAK,EAAiB,EAAE;YAClE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAA;YAC7B,MAAM,WAAW,GAAG,OAAO,CAAC,gBAAgB,IAAI,CAAC,KAAK,SAAS,CAAA;YAC/D,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB;gBACtC,CAAC,CAAC,CAAC,OAAO,CAAC,sBAAsB,IAAI,CAAC,KAAK,SAAS,CAAC,CAAA;YACvD,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;gBACnB,IAAI,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;oBAC5B,OAAO,CAAC,MAAM,CAAC,YAAY,GAAG,IAAI,CAAA;oBAClC,OAAO,CAAC,MAAM,CAAC,UAA[·...·truncated·by·diffoscope;·len:·13452,·SHA:·a0c96c8c2de4b482aa3e8af23bb43b2b5de86676138cbef8be996ffebe628f57·...·]wDC", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"/**\n·*·@module·LRUCache\n·*/\n\n//·module-private·names·and·types\n//·this·provides·the·default·Perf·object·source.\n//·it·can·be·passed·in·via·configuration·to·override·it\n//·for·a·single·LRU·object.\nexport·type·Perf·=·{·now:·()·=>·number·}\nconst·defaultPerf:·Perf·=\n··(\n····typeof·performance·===·'object'·&&\n····performance·&&\n····typeof·performance.now·===·'function'\n··)·?\n····performance\n··:·Date\n\nconst·warned·=·new·Set<string>()\n\n//·either·a·function·or·a·class\ntype·ForC·=·((...a:·any[])·=>·any)·|·{·new·(...a:·any[]):·any·}\n\n/*·c8·ignore·start·*/\nconst·PROCESS·=·(\n··typeof·process·===·'object'·&&·!!process·?\n····process\n··:·{})·as·{·[k:·string]:·any·}\n/*·c8·ignore·start·*/\n\nconst·emitWarning·=·(\n··msg:·string,\n··type:·string,\n··code:·string,\n··fn:·ForC,\n)·=>·{\n··typeof·PROCESS.emitWarning·===·'function'·?\n····PROCESS.emitWarning(msg,·type,·code,·fn)\n··:·console.error(`[${code}]·${type}:·${msg}`)\n}\n\nlet·AC·=·globalThis.AbortController\nlet·AS·=·globalThis.AbortSignal\n\n/*·c8·ignore·start·*/\nif·(typeof·AC·===·'undefined')·{\n··//@ts-ignore\n··AS·=·class·AbortSignal·{\n····onabort?:·(...a:·any[])·=>·any\n····_onabort:·((...a:·any[])·=>·any)[]·=·[]\n····reason?:·any\n····aborted:·boolean·=·false\n····addEventListener(_:·string,·fn:·(...a:·any[])·=>·any)·{\n······this._onabort.push(fn)\n····}\n··}\n··//@ts-ignore\n··AC·=·class·AbortController·{\n····constructor()·{\n······warnACPolyfill()\n····}\n····signal·=·new·AS()\n····abort(reason:·any)·{\n······if·(this.signal.aborted)·return\n······//@ts-ignore\n······this.signal.reason·=·reason\n······//@ts-ignore\n······this.signal.aborted·=·true\n······//@ts-ignore\n······for·(const·fn·of·this.signal._onabort)·{\n········fn(reason)\n······}\n······this.signal.onabort?.(reason)\n····}\n··}\n··let·printACPolyfillWarning·=\n····PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING·!==·'1'\n··const·warnACPolyfill·=·()·=>·{\n····if·(!printACPolyfillWarning)·return\n····printACPolyfillWarning·=·false\n····emitWarning(\n······'AbortController·is·not·defined.·If·using·lru-cache·in·'·+\n········'node·14,·load·an·AbortController·polyfill·from·the·'·+\n········'`node-abort-controller`·package.·A·minimal·polyfill·is·'·+\n········'provided·for·use·by·LRUCache.fetch(),·but·it·should·not·be·'·+\n········'relied·upon·in·other·contexts·(eg,·passing·it·to·other·APIs·that·'·+\n········'use·AbortController/AbortSignal·might·have·undesirable·effects).·'·+\n········'You·may·disable·this·with·LRU_CACHE_IGNORE_AC_WARNING=1·in·the·env.',\n······'NO_ABORT_CONTROLLER',\n······'ENOTSUP',\n······warnACPolyfill,\n····)\n··}\n}\n/*·c8·ignore·stop·*/\n\nconst·shouldWarn·=·(code:·string)·=>·!warned.has(code)\n\nconst·TYPE·=·Symbol('type')\nexport·type·PosInt·=·number·&·{·[TYPE]:·'Positive·Integer'·}\nexport·type·Index·=·number·&·{·[TYPE]:·'LRUCache·Index'·}\n\nconst·isPosInt·=·(n:·any):·n·is·PosInt·=>\n··n·&&·n·===·Math.floor(n)·&&·n·>·0·&&·isFinite(n)\n\nexport·type·UintArray·=·Uint8Array·|·Uint16Array·|·Uint32Array\nexport·type·NumberArray·=·UintArray·|·number[]\n\n/*·c8·ignore·start·*/\n//·This·is·a·little·bit·ridiculous,·tbh.\n//·The·maximum·array·length·is·2^32-1·or·thereabouts·on·most·JS·impls.\n//·And·well·before·that·point,·you're·caching·the·entire·world,·I·mean,\n//·that's·~32GB·of·just·integers·for·the·next/prev·links,·plus·whatever\n//·else·to·hold·that·many·keys·and·values.··Just·filling·the·memory·with\n//·zeroes·at·init·time·is·brutal·when·you·get·that·big.\n//·But·why·not·be·complete?\n//·Maybe·in·the·future,·these·limits·will·have·expanded.\nconst·getUintArray·=·(max:·number)·=>\n··!isPosInt(max)·?·null\n··:·max·<=·Math.pow(2,·8)·?·Uint8Array\n··:·max·<=·Math.pow(2,·16)·?·Uint16Array\n··:·max·<=·Math.pow(2,·32)·?·Uint32Array\n··:·max·<=·Number.MAX_SAFE_INTEGER·?·ZeroArray\n··:·null\n/*·c8·ignore·stop·*/\n\nclass·ZeroArray·extends·Array<number>·{\n··constructor(size:·number)·{\n····super(size)\n····this.fill(0)\n··}\n}\nexport·type·{·ZeroArray·}\nexport·type·{·Stack·}\n\nexport·type·StackLike·=·Stack·|·Index[]\nclass·Stack·{\n··heap:·NumberArray\n··length:·number\n··//·private·constructor\n··static·#constructing:·boolean·=·false\n··static·create(max:·number):·StackLike·{\n····const·HeapCls·=·getUintArray(max)\n····if·(!HeapCls)·return·[]\n····Stack.#constructing·=·true\n····const·s·=·new·Stack(max,·HeapCls)\n····Stack.#constructing·=·false\n····return·s\n··}\n··constructor(max:·number,·HeapCls:·{·new·(n:·number):·NumberArray·})·{\n····/*·c8·ignore·start·*/\n····if·(!Stack.#constructing)·{\n······throw·new·TypeError('instantiate·Stack·using·Stack.create(n)')\n····}\n····/*·c8·ignore·stop·*/\n····this.heap·=·new·HeapCls(max)\n····this.length·=·0\n··}\n··push(n:·Index)·{\n····this.heap[this.length++]·=·n\n··}\n··pop():·Index·{\n····return·this.heap[--this.length]·as·Index\n··}\n}\n\n/**\n·*·Promise·representing·an·in-progress·{@link·LRUCache#fetch}·call\n·*/\nexport·type·BackgroundFetch<V>·=·Promise<V·|·undefined>·&·{\n··__returned:·BackgroundFetch<V>·|·undefined\n··__abortController:·AbortController\n··__staleWhileFetching:·V·|·undefined\n}\n\nexport·type·DisposeTask<K,·V>·=·[\n··value:·V,\n··key:·K,\n··reason:·LRUCache.DisposeReason,\n]\n\nexport·namespace·LRUCache·{\n··/**\n···*·An·integer·greater·than·0,·reflecting·the·calculated·size·of·items\n···*/\n··export·type·Size·=·number\n\n··/**\n···*·Integer·greater·than·0,·representing·some·number·of·milliseconds,·or·the\n···*·time·at·which·a·TTL·started·counting·from.\n···*/\n··export·type·Milliseconds·=·number\n\n··/**\n···*·An·integer·greater·than·0,·reflecting·a·number·of·items\n···*/\n··export·type·Count·=·number\n\n··/**\n···*·The·reason·why·an·item·was·removed·from·the·cache,·passed\n···*·to·the·{@link·Disposer}·methods.\n···*\n···*·-·`evict`:·The·item·was·evicted·because·it·is·the·least·recently·used,\n···*···and·the·cache·is·full.\n···*·-·`set`:·A·new·value·was·set,·overwriting·the·old·value·being·disposed.\n···*·-·`delete`:·The·item·was·explicitly·deleted,·either·by·calling\n···*···{@link·LRUCache#delete},·{@link·LRUCache#clear},·or\n···*···{@link·LRUCache#set}·with·an·undefined·value.\n···*·-·`expire`:·The·item·was·removed·due·to·exceeding·its·TTL.\n···*·-·`fetch`:·A·{@link·OptionsBase#fetchMethod}·operation·returned\n···*···`undefined`·or·was·aborted,·causing·the·item·to·be·deleted.\n···*/\n··export·type·DisposeReason·=\n····|·'evict'\n····|·'set'\n····|·'delete'\n····|·'expire'\n····|·'fetch'\n··/**\n···*·A·method·called·upon·item·removal,·passed·as·the\n···*·{@link·OptionsBase.dispose}·and/or\n···*·{@link·OptionsBase.disposeAfter}·options.\n···*/\n··export·type·Disposer<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·DisposeReason,\n··)·=>·void\n\n··/**\n···*·The·reason·why·an·item·was·added·to·the·cache,·passed\n···*·to·the·{@link·Inserter}·methods.\n···*\n···*·-·`add`:·the·item·was·not·found·in·the·cache,·and·was·added\n···*·-·`update`:·the·item·was·in·the·cache,·with·the·same·value·provided\n···*·-·`replace`:·the·item·was·in·the·cache,·and·replaced\n···*/\n··export·type·InsertReason·=·'add'·|·'update'·|·'replace'\n\n··/**\n···*·A·method·called·upon·item·insertion,·passed·as·the\n···*·{@link·OptionsBase.insert}\n···*/\n··export·type·Inserter<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·InsertReason,\n··)·=>·void\n\n··/**\n···*·A·function·that·returns·the·effective·calculated·size\n···*·of·an·entry·in·the·cache.\n···*/\n··export·type·SizeCalculator<K,·V>·=·(value:·V,·key:·K)·=>·Size\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.fetchMethod}·function.\n···*/\n··export·interface·FetcherOptions<K,·V,·FC·=·unknown>·{\n····signal:·AbortSignal\n····options:·FetcherFetchOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·FetchOptions.context}·option·to\n·····*·{@link·LRUCache#fetch}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·Occasionally,·it·may·be·useful·to·track·the·internal·behavior·of·the\n···*·cache,·particularly·for·logging,·debugging,·or·for·behavior·within·the\n···*·`fetchMethod`.·To·do·this,·you·can·pass·a·`status`·object·to·the\n···*·{@link·LRUCache#fetch},·{@link·LRUCache#get},·{@link·LRUCache#set},\n···*·{@link·LRUCache#memo},·and·{@link·LRUCache#has}·methods.\n···*\n···*·The·`status`·option·should·be·a·plain·JavaScript·object.·The·following\n···*·fields·will·be·set·on·it·appropriately,·depending·on·the·situation.\n···*/\n··export·interface·Status<V>·{\n····/**\n·····*·The·status·of·a·set()·operation.\n·····*\n·····*·-·add:·the·item·was·not·found·in·the·cache,·and·was·added\n·····*·-·update:·the·item·was·in·the·cache,·with·the·same·value·provided\n·····*·-·replace:·the·item·was·in·the·cache,·and·replaced\n·····*·-·miss:·the·item·was·not·added·to·the·cache·for·some·reason\n·····*/\n····set?:·'add'·|·'update'·|·'replace'·|·'miss'\n\n····/**\n·····*·the·ttl·stored·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·the·start·time·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····start?:·Milliseconds\n\n····/**\n·····*·The·timestamp·used·for·TTL·calculation\n·····*/\n····now?:·Milliseconds\n\n····/**\n·····*·the·remaining·ttl·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····remainingTTL?:·Milliseconds\n\n····/**\n·····*·The·calculated·size·for·the·item,·if·sizes·are·used.\n·····*/\n····entrySize?:·Size\n\n····/**\n·····*·The·total·calculated·size·of·the·cache,·if·sizes·are·used.\n·····*/\n····totalCalculatedSize?:·Size\n\n····/**\n·····*·A·flag·indicating·that·the·item·was·not·stored,·due·to·exceeding·the\n·····*·{@link·OptionsBase.maxEntrySize}\n·····*/\n····maxEntrySizeExceeded?:·true\n\n····/**\n·····*·The·old·value,·specified·in·the·case·of·`set:'update'`·or\n·····*·`set:'replace'`\n·····*/\n····oldValue?:·V\n\n····/**\n·····*·The·results·of·a·{@link·LRUCache#has}·operation\n·····*\n·····*·-·hit:·the·item·was·found·in·the·cache\n·····*·-·stale:·the·item·was·found·in·the·cache,·but·is·stale\n·····*·-·miss:·the·item·was·not·found·in·the·cache\n·····*/\n····has?:·'hit'·|·'stale'·|·'miss'\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#fetch}·operation.\n·····*·Note·that·this·can·change·as·the·underlying·fetch()·moves·through\n·····*·various·states.\n·····*\n·····*·-·inflight:·there·is·another·fetch()·for·this·key·which·is·in·process\n·····*·-·get:·there·is·no·{@link·OptionsBase.fetchMethod},·so\n·····*···{@link·LRUCache#get}·was·called.\n·····*·-·miss:·the·item·is·not·in·cache,·and·will·be·fetched.\n·····*·-·hit:·the·item·is·in·the·cache,·and·was·resolved·immediately.\n·····*·-·stale:·the·item·is·in·the·cache,·but·stale.\n·····*·-·refresh:·the·item·is·in·the·cache,·and·not·stale,·but\n·····*···{@link·FetchOptions.forceRefresh}·was·specified.\n·····*/\n····fetch?:·'get'·|·'inflight'·|·'miss'·|·'hit'·|·'stale'·|·'refresh'\n\n····/**\n·····*·The·{@link·OptionsBase.fetchMethod}·was·called\n·····*/\n····fetchDispatched?:·true\n\n····/**\n·····*·The·cached·value·was·updated·after·a·successful·call·to\n·····*·{@link·OptionsBase.fetchMethod}\n·····*/\n····fetchUpdated?:·true\n\n····/**\n·····*·The·reason·for·a·fetch()·rejection.··Either·the·error·raised·by·the\n·····*·{@link·OptionsBase.fetchMethod},·or·the·reason·for·an\n·····*·AbortSignal.\n·····*/\n····fetchError?:·Error\n\n····/**\n·····*·The·fetch·received·an·abort·signal\n·····*/\n····fetchAborted?:·true\n\n····/**\n·····*·The·abort·signal·received·was·ignored,·and·the·fetch·was·allowed·to\n·····*·continue.\n·····*/\n····fetchAbortIgnored?:·true\n\n····/**\n·····*·The·fetchMethod·promise·resolved·successfully\n·····*/\n····fetchResolved?:·true\n\n····/**\n·····*·The·fetchMethod·promise·was·rejected\n·····*/\n····fetchRejected?:·true\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#get}·operation.\n·····*\n·····*·-·fetching:·The·item·is·currently·being·fetched.··If·a·previous·value\n·····*···is·present·and·allowed,·that·will·be·returned.\n·····*·-·stale:·The·item·is·in·the·cache,·and·is·stale.\n·····*·-·hit:·the·item·is·in·the·cache\n·····*·-·miss:·the·item·is·not·in·the·cache\n·····*/\n····get?:·'stale'·|·'hit'·|·'miss'\n\n····/**\n·····*·A·fetch·or·get·operation·returned·a·stale·value.\n·····*/\n····returnedStale?:·true\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#fetch}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·OptionsBase.noDeleteOnFetchRejection},\n···*·{@link·OptionsBase.allowStaleOnFetchRejection},\n···*·{@link·FetchOptions.forceRefresh},·and\n···*·{@link·FetcherOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.fetchMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·fetchMethod·is·called.\n···*/\n··export·interface·FetcherFetchOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#fetch}·method.\n···*/\n··export·interface·FetchOptions<K,·V,·FC>\n····extends·FetcherFetchOptions<K,·V,·FC>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.fetchMethod}·as\n·····*·the·{@link·FetcherOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····signal?:·AbortSignal\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·FetchOptionsWithContext<K,·V,·FC>\n····extends·FetchOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·FetchOptionsNoContext<K,·V>\n····extends·FetchOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··export·interface·MemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.memoMethod}·as\n·····*·the·{@link·MemoizerOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·MemoOptionsWithContext<K,·V,·FC>\n····extends·MemoOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·MemoOptionsNoContext<K,·V>\n····extends·MemoOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.memoMethod}·function.\n···*/\n··export·interface·MemoizerOptions<K,·V,·FC·=·unknown>·{\n····options:·MemoizerMemoOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·MemoOptions.context}·option·to\n·····*·{@link·LRUCache#memo}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#memo}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·MemoOptions.forceRefresh},·and\n···*·{@link·MemoOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.memoMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·memoMethod·is·called.\n···*/\n··export·interface·MemoizerMemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n····start?:·Milliseconds\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#has}·method.\n···*/\n··export·interface·HasOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'updateAgeOnHas'>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#get}·method.\n···*/\n··export·interface·GetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'allowStale'·|·'updateAgeOnGet'·|·'noDeleteOnStaleGet'\n····>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#peek}·method.\n···*/\n··export·interface·PeekOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'allowStale'>·{}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#set}·method.\n···*/\n··export·interface·SetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'sizeCalculation'·|·'ttl'·|·'noDisposeOnSet'·|·'noUpdateTTL'\n····>·{\n····/**\n·····*·If·size·tracking·is·enabled,·then·setting·an·explicit·size\n·····*·in·the·{@link·LRUCache#set}·call·will·prevent·calling·the\n·····*·{@link·OptionsBase.sizeCalculation}·function.\n·····*/\n····size?:·Size\n····/**\n·····*·If·TTL·tracking·is·enabled,·then·setting·an·explicit·start\n·····*·time·in·the·{@link·LRUCache#set}·call·will·override·the\n·····*·default·time·from·`performance.now()`·or·`Date.now()`.\n·····*\n·····*·Note·that·it·must·be·a·valid·value·for·whichever·time-tracking\n·····*·method·is·in·use.\n·····*/\n····start?:·Milliseconds\n····status?:·Status<V>\n··}\n\n··/**\n···*·The·type·signature·for·the·{@link·OptionsBase.fetchMethod}·option.\n···*/\n··export·type·Fetcher<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·FetcherOptions<K,·V,·FC>,\n··)·=>·Promise<V·|·undefined·|·void>·|·V·|·undefined·|·void\n\n··/**\n···*·the·type·signature·for·the·{@link·OptionsBase.memoMethod}·option.\n···*/\n··export·type·Memoizer<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·MemoizerOptions<K,·V,·FC>,\n··)·=>·V\n\n··/**\n···*·Options·which·may·be·passed·to·the·{@link·LRUCache}·constructor.\n···*\n···*·Most·of·these·may·be·overridden·in·the·various·options·that·use\n···*·them.\n···*\n···*·Despite·all·being·technically·optional,·the·constructor·requires·that\n···*·a·cache·is·at·minimum·limited·by·one·or·more·of·{@link·OptionsBase.max},\n···*·{@link·OptionsBase.ttl},·or·{@link·OptionsBase.maxSize}.\n···*\n···*·If·{@link·OptionsBase.ttl}·is·used·alone,·then·it·is·strongly·advised\n···*·(and·in·fact·required·by·the·type·definitions·here)·that·the·cache\n···*·also·set·{@link·OptionsBase.ttlAutopurge},·to·prevent·potentially\n···*·unbounded·storage.\n···*\n···*·All·options·are·also·available·on·the·{@link·LRUCache}·instance,·making\n···*·it·safe·to·pass·an·LRUCache·instance·as·the·options·argumemnt·to\n···*·make·another·empty·cache·of·the·same·type.\n···*\n···*·Some·options·are·marked·as·read-only,·because·changing·them·after\n···*·instantiation·is·not·safe.·Changing·any·of·the·other·options·will·of\n···*·course·only·have·an·effect·on·subsequent·method·calls.\n···*/\n··export·interface·OptionsBase<K,·V,·FC>·{\n····/**\n·····*·The·maximum·number·of·items·to·store·in·the·cache·before·evicting\n·····*·old·entries.·This·is·read-only·on·the·{@link·LRUCache}·instance,\n·····*·and·may·not·be·overridden.\n·····*\n·····*·If·set,·then·storage·space·will·be·pre-allocated·at·construction\n·····*·time,·and·the·cache·will·perform·significantly·faster.\n·····*\n·····*·Note·that·significantly·fewer·items·may·be·stored,·if\n·····*·{@link·OptionsBase.maxSize}·and/or·{@link·OptionsBase.ttl}·are·also\n·····*·set.\n·····*\n·····*·**It·is·strongly·recommended·to·set·a·`max`·to·prevent·unbounded·growth\n·····*·of·the·cache.**\n·····*/\n····max?:·Count\n\n····/**\n·····*·Max·time·in·milliseconds·for·items·to·live·in·cache·before·they·are\n·····*·considered·stale.··Note·that·stale·items·are·NOT·preemptively·removed·by\n·····*·default,·and·MAY·live·in·the·cache,·contributing·to·its·LRU·max,·long\n·····*·after·they·have·expired,·unless·{@link·OptionsBase.ttlAutopurge}·is\n·····*·set.\n·····*\n·····*·If·set·to·`0`·(the·default·value),·then·that·means·\"do·not·track\n·····*·TTL\",·not·\"expire·immediately\".\n·····*\n·····*·Also,·as·this·cache·is·optimized·for·LRU/MRU·operations,·some·of\n·····*·the·staleness/TTL·checks·will·reduce·performance,·as·they·will·incur\n·····*·overhead·by·deleting·items.\n·····*\n·····*·This·is·not·primarily·a·TTL·cache,·and·does·not·make·strong·TTL\n·····*·guarantees.·There·is·no·pre-emptive·pruning·of·expired·items,·but·you\n·····*·_may_·set·a·TTL·on·the·cache,·and·it·will·treat·expired·items·as·missing\n·····*·when·they·are·fetched,·and·delete·them.\n·····*\n·····*·Optional,·but·must·be·a·non-negative·integer·in·ms·if·specified.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.set()`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·ttl·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·If·ttl·tracking·is·enabled,·and·`max`·and·`maxSize`·are·not·set,\n·····*·and·`ttlAutopurge`·is·not·set,·then·a·warning·will·be·emitted\n·····*·cautioning·about·the·potential·for·unbounded·memory·consumption.\n·····*·(The·TypeScript·definitions·will·also·discourage·this.)\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·Minimum·amount·of·time·in·ms·in·which·to·check·for·staleness.\n·····*·Defaults·to·1,·which·means·that·the·current·time·is·checked\n·····*·at·most·once·per·millisecond.\n·····*\n·····*·Set·to·0·to·check·the·current·time·every·time·staleness·is·tested.\n·····*·(This·reduces·performance,·and·is·theoretically·unnecessary.)\n·····*\n·····*·Setting·this·to·a·higher·value·will·improve·performance·somewhat\n·····*·while·using·ttl·tracking,·albeit·at·the·expense·of·keeping·stale\n·····*·items·around·a·bit·longer·than·their·TTLs·would·indicate.\n·····*\n·····*·@default·1\n·····*/\n····ttlResolution?:·Milliseconds\n\n····/**\n·····*·Preemptively·remove·stale·items·from·the·cache.\n·····*\n·····*·Note·that·this·may·*significantly*·degrade·performance,·especially·if\n·····*·the·cache·is·storing·a·large·number·of·items.·It·is·almost·always·best\n·····*·to·just·leave·the·stale·items·in·the·cache,·and·let·them·fall·out·as·new\n·····*·items·are·added.\n·····*\n·····*·Note·that·this·means·that·{@link·OptionsBase.allowStale}·is·a·bit\n·····*·pointless,·as·stale·items·will·be·deleted·almost·as·soon·as·they\n·····*·expire.\n·····*\n·····*·Use·with·caution!\n·····*/\n····ttlAutopurge?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·it·is·retrieved·from·cache·with\n·····*·{@link·LRUCache#get},·causing·it·to·not·expire.·(It·can·still·fall·out\n·····*·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*/\n····updateAgeOnGet?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·its·presence·in·the·cache·is\n·····*·checked·with·{@link·LRUCache#has},·causing·it·to·not·expire.·(It·can\n·····*·still·fall·out·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*/\n····updateAgeOnHas?:·boolean\n\n····/**\n·····*·Allow·{@link·LRUCache#get}·and·{@link·LRUCache#fetch}·calls·to·return\n·····*·stale·data,·if·available.\n·····*\n·····*·By·default,·if·you·set·`ttl`,·stale·items·will·only·be·deleted·from·the\n·····*·cache·when·you·`get(key)`.·That·is,·it's·not·preemptively·pruning·items,\n·····*·unless·{@link·OptionsBase.ttlAutopurge}·is·set.\n·····*\n·····*·If·you·set·`allowStale:true`,·it'll·return·the·stale·value·*as·well·as*\n·····*·deleting·it.·If·you·don't·set·this,·then·it'll·return·`undefined`·when\n·····*·you·try·to·get·a·stale·entry.\n·····*\n·····*·Note·that·when·a·stale·entry·is·fetched,·_even·if·it·is·returned·due·to\n·····*·`allowStale`·being·set_,·it·is·removed·from·the·cache·immediately.·You\n·····*·can·suppress·this·behavior·by·setting\n·····*·{@link·OptionsBase.noDeleteOnStaleGet},·either·in·the·constructor,·or·in\n·····*·the·options·provided·to·{@link·LRUCache#get}.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*·The·`cache.has()`·method·will·always·return·`false`·for·stale·items.\n·····*\n·····*·Only·relevant·if·a·ttl·is·set.\n·····*/\n····allowStale?:·boolean\n\n····/**\n·····*·Function·that·is·called·on·items·when·they·are·dropped·from·the\n·····*·cache,·as·`dispose(value,·key,·reason)`.\n·····*\n·····*·This·can·be·handy·if·you·want·to·close·file·descriptors·or·do\n·····*·other·cleanup·tasks·when·items·are·no·longer·stored·in·the·cache.\n·····*\n·····*·**NOTE**:·It·is·called·_before_·the·item·has·been·fully·removed\n·····*·from·the·cache,·so·if·you·want·to·put·it·right·back·in,·you·need\n·····*·to·wait·until·the·next·tick.·If·you·try·to·add·it·back·in·during\n·····*·the·`dispose()`·function·call,·it·will·break·things·in·subtle·and\n·····*·weird·ways.\n·····*\n·····*·Unlike·several·other·options,·this·may·_not_·be·overridden·by\n·····*·passing·an·option·to·`set()`,·for·performance·reasons.\n·····*\n·····*·The·`reason`·will·be·one·of·the·following·strings,·corresponding\n·····*·to·the·reason·for·the·item's·deletion:\n·····*\n·····*·-·`evict`·Item·was·evicted·to·make·space·for·a·new·addition\n·····*·-·`set`·Item·was·overwritten·by·a·new·value\n·····*·-·`expire`·Item·expired·its·TTL\n·····*·-·`fetch`·Item·was·deleted·due·to·a·failed·or·aborted·fetch,·or·a\n·····*···fetchMethod·returning·`undefined.\n·····*·-·`delete`·Item·was·removed·by·explicit·`cache.delete(key)`,\n·····*···`cache.clear()`,·or·`cache.set(key,·undefined)`.\n·····*/\n····dispose?:·Disposer<K,·V>\n\n····/**\n·····*·Function·that·is·called·when·new·items·are·inserted·into·the·cache,\n·····*·as·`onInsert(value,·key,·reason)`.\n·····*\n·····*·This·can·be·useful·if·you·need·to·perform·actions·when·an·item·is\n·····*·added,·such·as·logging·or·tracking·insertions.\n·····*\n·····*·Unlike·some·other·options,·this·may·_not_·be·overridden·by·passing\n·····*·an·option·to·`set()`,·for·performance·and·consistency·reasons.\n·····*/\n····onInsert?:·Inserter<K,·V>\n\n····/**\n·····*·The·same·as·{@link·OptionsBase.dispose},·but·called·*after*·the·entry\n·····*·is·completely·removed·and·the·cache·is·once·again·in·a·clean·state.\n·····*\n·····*·It·is·safe·to·add·an·item·right·back·into·the·cache·at·this·point.\n·····*·However,·note·that·it·is·*very*·easy·to·inadvertently·create·infinite\n·····*·recursion·this·way.\n·····*/\n····disposeAfter?:·Disposer<K,·V>\n\n····/**\n·····*·Set·to·true·to·suppress·calling·the\n·····*·{@link·OptionsBase.dispose}·function·if·the·entry·key·is\n·····*·still·accessible·within·the·cache.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to\n·····*·{@link·LRUCache#set}.\n·····*\n·····*·Only·relevant·if·`dispose`·or·`disposeAfter`·are·set.\n·····*/\n····noDisposeOnSet?:·boolean\n\n····/**\n·····*·Boolean·flag·to·tell·the·cache·to·not·update·the·TTL·when·setting·a·new\n·····*·value·for·an·existing·key·(ie,·when·updating·a·value·rather·than\n·····*·inserting·a·new·value).··Note·that·the·TTL·value·is·_always_·set·(if\n·····*·provided)·when·adding·a·new·entry·into·the·cache.\n·····*\n·····*·Has·no·effect·if·a·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·May·be·passed·as·an·option·to·{@link·LRUCache#set}.\n·····*/\n····noUpdateTTL?:·boolean\n\n····/**\n·····*·Set·to·a·positive·integer·to·track·the·sizes·of·items·added·to·the\n·····*·cache,·and·automatically·evict·items·in·order·to·stay·below·this·size.\n·····*·Note·that·this·may·result·in·fewer·than·`max`·items·being·stored.\n·····*\n·····*·Attempting·to·add·an·item·to·the·cache·whose·calculated·size·is·greater\n·····*·that·this·amount·will·be·a·no-op.·The·item·will·not·be·cached,·and·no\n·····*·other·items·will·be·evicted.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.\n·····*\n·····*·Sets·`maxEntrySize`·to·the·same·value,·unless·a·different·value·is\n·····*·provided·for·`maxEntrySize`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·size·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·Note·also·that·size·tracking·can·negatively·impact·performance,\n·····*·though·for·most·cases,·only·minimally.\n·····*/\n····maxSize?:·Size\n\n····/**\n·····*·The·maximum·allowed·size·for·any·single·item·in·the·cache.\n·····*\n·····*·If·a·larger·item·is·passed·to·{@link·LRUCache#set}·or·returned·by·a\n·····*·{@link·OptionsBase.fetchMethod}·or·{@link·OptionsBase.memoMethod},·then\n·····*·it·will·not·be·stored·in·the·cache.\n·····*\n·····*·Attempting·to·add·an·item·whose·calculated·size·is·greater·than\n·····*·this·amount·will·not·cache·the·item·or·evict·any·old·items,·but\n·····*·WILL·delete·an·existing·value·if·one·is·already·present.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.·Defaults·to\n·····*·the·value·of·`maxSize`·if·provided.\n·····*/\n····maxEntrySize?:·Size\n\n····/**\n·····*·A·function·that·returns·a·number·indicating·the·item's·size.\n·····*\n·····*·Requires·{@link·OptionsBase.maxSize}·to·be·set.\n·····*\n·····*·If·not·provided,·and·{@link·OptionsBase.maxSize}·or\n·····*·{@link·OptionsBase.maxEntrySize}·are·set,·then·all\n·····*·{@link·LRUCache#set}·calls·**must**·provide·an·explicit\n·····*·{@link·SetOptions.size}·or·sizeCalculation·param.\n·····*/\n····sizeCalculation?:·SizeCalculator<K,·V>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#fetch}\n·····*\n·····*·```ts\n·····*·fetchMethod(key,·staleValue,·{·signal,·options,·context·})\n·····*·```\n·····*\n·····*·If·`fetchMethod`·is·not·provided,·then·`cache.fetch(key)`·is·equivalent\n·····*·to·`Promise.resolve(cache.get(key))`.\n·····*\n·····*·If·at·any·time,·`signal.aborted`·is·set·to·`true`,·or·if·the\n·····*·`signal.onabort`·method·is·called,·or·if·it·emits·an·`'abort'`·event\n·····*·which·you·can·listen·to·with·`addEventListener`,·then·that·means·that\n·····*·the·fetch·should·be·abandoned.·This·may·be·passed·along·to·async\n·····*·functions·aware·of·AbortController/AbortSignal·behavior.\n·····*\n·····*·The·`fetchMethod`·should·**only**·return·`undefined`·or·a·Promise\n·····*·resolving·to·`undefined`·if·the·AbortController·signaled·an·`abort`\n·····*·event.·In·all·other·cases,·it·should·return·or·resolve·to·a·value\n·····*·suitable·for·adding·to·the·cache.\n·····*\n·····*·The·`options`·object·is·a·union·of·the·options·that·may·be·provided·to\n·····*·`set()`·and·`get()`.·If·they·are·modified,·then·that·will·result·in\n·····*·modifying·the·settings·to·`cache.set()`·when·the·value·is·resolved,·and\n·····*·in·the·case·of\n·····*·{@link·OptionsBase.noDeleteOnFetchRejection}·and\n·····*·{@link·OptionsBase.allowStaleOnFetchRejection},·the·handling·of\n·····*·`fetchMethod`·failures.\n·····*\n·····*·For·example,·a·DNS·cache·may·update·the·TTL·based·on·the·value·returned\n·····*·from·a·remote·DNS·server·by·changing·`options.ttl`·in·the·`fetchMethod`.\n·····*/\n····fetchMethod?:·Fetcher<K,·V,·FC>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#memo}\n·····*/\n····memoMethod?:·Memoizer<K,·V,·FC>\n\n····/**\n·····*·Set·to·true·to·suppress·the·deletion·of·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·returns·a·rejected·promise.\n·····*/\n····noDeleteOnFetchRejection?:·boolean\n\n····/**\n·····*·Do·not·delete·stale·items·when·they·are·retrieved·with\n·····*·{@link·LRUCache#get}.\n·····*\n·····*·Note·that·the·`get`·return·value·will·still·be·`undefined`\n·····*·unless·{@link·OptionsBase.allowStale}·is·true.\n·····*\n·····*·When·using·time-expiring·entries·with·`ttl`,·by·default·stale\n·····*·items·will·be·removed·from·the·cache·when·the·key·is·accessed\n·····*·with·`cache.get()`.\n·····*\n·····*·Setting·this·option·will·cause·stale·items·to·remain·in·the·cache,·until\n·····*·they·are·explicitly·deleted·with·`cache.delete(key)`,·or·retrieved·with\n·····*·`noDeleteOnStaleGet`·set·to·`false`.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*\n·····*·Only·relevant·if·a·ttl·is·used.\n·····*/\n····noDeleteOnStaleGet?:·boolean\n\n····/**\n·····*·Set·to·true·to·allow·returning·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·throws·an·error·or·returns·a·rejected\n·····*·promise.\n·····*\n·····*·This·differs·from·using·{@link·OptionsBase.allowStale}·in·that·stale\n·····*·data·will·ONLY·be·returned·in·the·case·that·the·{@link·LRUCache#fetch}\n·····*·fails,·not·any·other·times.\n·····*\n·····*·If·a·`fetchMethod`·fails,·and·there·is·no·stale·value·available,·the\n·····*·`fetch()`·will·resolve·to·`undefined`.·Ie,·all·`fetchMethod`·errors·are\n·····*·suppressed.\n·····*\n·····*·Implies·`noDeleteOnFetchRejection`.\n·····*\n·····*·This·may·be·set·in·calls·to·`fetch()`,·or·defaulted·on·the·constructor,\n·····*·or·overridden·by·modifying·the·options·object·in·the·`fetchMethod`.\n·····*/\n····allowStaleOnFetchRejection?:·boolean\n\n····/**\n·····*·Set·to·true·to·return·a·stale·value·from·the·cache·when·the\n·····*·`AbortSignal`·passed·to·the·{@link·OptionsBase.fetchMethod}·dispatches\n·····*·an·`'abort'`·event,·whether·user-triggered,·or·due·to·internal·cache\n·····*·behavior.\n·····*\n·····*·Unless·{@link·OptionsBase.ignoreFetchAbort}·is·also·set,·the·underlying\n·····*·{@link·OptionsBase.fetchMethod}·will·still·be·considered·canceled,·and\n·····*·any·value·it·returns·will·be·ignored·and·not·cached.\n·····*\n·····*·Caveat:·since·fetches·are·aborted·when·a·new·value·is·explicitly\n·····*·set·in·the·cache,·this·can·lead·to·fetch·returning·a·stale·value,\n·····*·since·that·was·the·fallback·value·_at·the·moment·the·`fetch()`·was\n·····*·initiated_,·even·though·the·new·updated·value·is·now·present·in\n·····*·the·cache.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·cache·=·new·LRUCache<string,·any>({\n·····*···ttl:·100,\n·····*···fetchMethod:·async·(url,·oldValue,·{·signal·})·=>··{\n·····*·····const·res·=·await·fetch(url,·{·signal·})\n·····*·····return·await·res.json()\n·····*···}\n·····*·})\n·····*·cache.set('https://example.com/',·{·some:·'data'·})\n·····*·//·100ms·go·by...\n·····*·const·result·=·cache.fetch('https://example.com/')\n·····*·cache.set('https://example.com/',·{·other:·'thing'·})\n·····*·console.log(await·result)·//·{·some:·'data'·}\n·····*·console.log(cache.get('https://example.com/'))·//·{·other:·'thing'·}\n·····*·```\n·····*/\n····allowStaleOnFetchAbort?:·boolean\n\n····/**\n·····*·Set·to·true·to·ignore·the·`abort`·event·emitted·by·the·`AbortSignal`\n·····*·object·passed·to·{@link·OptionsBase.fetchMethod},·and·still·cache·the\n·····*·resulting·resolution·value,·as·long·as·it·is·not·`undefined`.\n·····*\n·····*·When·used·on·its·own,·this·means·aborted·{@link·LRUCache#fetch}·calls\n·····*·are·not·immediately·resolved·or·rejected·when·they·are·aborted,·and\n·····*·instead·take·the·full·time·to·await.\n·····*\n·····*·When·used·with·{@link·OptionsBase.allowStaleOnFetchAbort},·aborted\n·····*·{@link·LRUCache#fetch}·calls·will·resolve·immediately·to·their·stale\n·····*·cached·value·or·`undefined`,·and·will·continue·to·process·and·eventually\n·····*·update·the·cache·when·they·resolve,·as·long·as·the·resulting·value·is\n·····*·not·`undefined`,·thus·supporting·a·\"return·stale·on·timeout·while\n·····*·refreshing\"·mechanism·by·passing·`AbortSignal.timeout(n)`·as·the·signal.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·c·=·new·LRUCache({\n·····*···ttl:·100,\n·····*···ignoreFetchAbort:·true,\n·····*···allowStaleOnFetchAbort:·true,\n·····*···fetchMethod:·async·(key,·oldValue,·{·signal·})·=>·{\n·····*·····//·note:·do·NOT·pass·the·signal·to·fetch()!\n·····*·····//·let's·say·this·fetch·can·take·a·long·time.\n·····*·····const·res·=·await·fetch(`https://slow-backend-server/${key}`)\n·····*·····return·await·res.json()\n·····*···},\n·····*·})\n·····*\n·····*·//·this·will·return·the·stale·value·after·100ms,·while·still\n·····*·//·updating·in·the·background·for·next·time.\n·····*·const·val·=·await·c.fetch('key',·{·signal:·AbortSignal.timeout(100)·})\n·····*·```\n·····*\n·····*·**Note**:·regardless·of·this·setting,·an·`abort`·event·_is·still\n·····*·emitted·on·the·`AbortSignal`·object_,·so·may·result·in·invalid·results\n·····*·when·passed·to·other·underlying·APIs·that·use·AbortSignals.\n·····*\n·····*·This·may·be·overridden·in·the·{@link·OptionsBase.fetchMethod}·or·the\n·····*·call·to·{@link·LRUCache#fetch}.\n·····*/\n····ignoreFetchAbort?:·boolean\n\n····/**\n·····*·In·some·cases,·you·may·want·to·swap·out·the·performance/Date·object\n·····*·used·for·TTL·tracking.·This·should·almost·certainly·NOT·be·done·in\n·····*·production·environments!\n·····*\n·····*·This·value·defaults·to·`global.performance`·if·it·has·a·`now()`·method,\n·····*·or·the·`global.Date`·object·otherwise.\n·····*/\n····perf?:·Perf\n··}\n\n··export·interface·OptionsMaxLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····max:·Count\n··}\n··export·interface·OptionsTTLLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····ttl:·Milliseconds\n····ttlAutopurge:·boolean\n··}\n··export·interface·OptionsSizeLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····maxSize:·Size\n··}\n\n··/**\n···*·The·valid·safe·options·for·the·{@link·LRUCache}·constructor\n···*/\n··export·type·Options<K,·V,·FC>·=\n····|·OptionsMaxLimit<K,·V,·FC>\n····|·OptionsSizeLimit<K,·V,·FC>\n····|·OptionsTTLLimit<K,·V,·FC>\n\n··/**\n···*·Entry·objects·used·by·{@link·LRUCache#load}·and·{@link·LRUCache#dump},\n···*·and·returned·by·{@link·LRUCache#info}.\n···*/\n··export·interface·Entry<V>·{\n····value:·V\n····ttl?:·Milliseconds\n····size?:·Size\n····start?:·Milliseconds\n··}\n}\n\n/**\n·*·Default·export,·the·thing·you're·using·this·module·to·get.\n·*\n·*·The·`K`·and·`V`·types·define·the·key·and·value·types,·respectively.·The\n·*·optional·`FC`·type·defines·the·type·of·the·`context`·object·passed·to\n·*·`cache.fetch()`·and·`cache.memo()`.\n·*\n·*·Keys·and·values·**must·not**·be·`null`·or·`undefined`.\n·*\n·*·All·properties·from·the·options·object·(with·the·exception·of·`max`,\n·*·`maxSize`,·`fetchMethod`,·`memoMethod`,·`dispose`·and·`disposeAfter`)·are\n·*·added·as·normal·public·members.·(The·listed·options·are·read-only·getters.)\n·*\n·*·Changing·any·of·these·will·alter·the·defaults·for·subsequent·method·calls.\n·*/\nexport·class·LRUCache<K·extends·{},·V·extends·{},·FC·=·unknown>·{\n··//·options·that·cannot·be·changed·without·disaster\n··readonly·#max:·LRUCache.Count\n··readonly·#maxSize:·LRUCache.Size\n··readonly·#dispose?:·LRUCache.Disposer<K,·V>\n··readonly·#onInsert?:·LRUCache.Inserter<K,·V>\n··readonly·#disposeAfter?:·LRUCache.Disposer<K,·V>\n··readonly·#fetchMethod?:·LRUCache.Fetcher<K,·V,·FC>\n··readonly·#memoMethod?:·LRUCache.Memoizer<K,·V,·FC>\n··readonly·#perf:·Perf\n\n··/**\n···*·{@link·LRUCache.OptionsBase.perf}\n···*/\n··get·perf()·{\n····return·this.#perf\n··}\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttl}\n···*/\n··ttl:·LRUCache.Milliseconds\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlResolution}\n···*/\n··ttlResolution:·LRUCache.Milliseconds\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlAutopurge}\n···*/\n··ttlAutopurge:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnGet}\n···*/\n··updateAgeOnGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}\n···*/\n··updateAgeOnHas:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStale}\n···*/\n··allowStale:·boolean\n\n··/**\n···*·{@link·LRUCache.OptionsBase.noDisposeOnSet}\n···*/\n··noDisposeOnSet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noUpdateTTL}\n···*/\n··noUpdateTTL:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.maxEntrySize}\n···*/\n··maxEntrySize:·LRUCache.Size\n··/**\n···*·{@link·LRUCache.OptionsBase.sizeCalculation}\n···*/\n··sizeCalculation?:·LRUCache.SizeCalculator<K,·V>\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnFetchRejection}\n···*/\n··noDeleteOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnStaleGet}\n···*/\n··noDeleteOnStaleGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort}\n···*/\n··allowStaleOnFetchAbort:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}\n···*/\n··allowStaleOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.ignoreFetchAbort}\n···*/\n··ignoreFetchAbort:·boolean\n\n··//·computed·properties\n··#size:·LRUCache.Count\n··#calculatedSize:·LRUCache.Size\n··#keyMap:·Map<K,·Index>\n··#keyList:·(K·|·undefined)[]\n··#valList:·(V·|·BackgroundFetch<V>·|·undefined)[]\n··#next:·NumberArray\n··#prev:·NumberArray\n··#head:·Index\n··#tail:·Index\n··#free:·StackLike\n··#disposed?:·DisposeTask<K,·V>[]\n··#sizes?:·ZeroArray\n··#starts?:·ZeroArray\n··#ttls?:·ZeroArray\n··#autopurgeTimers?:·(undefined·|·ReturnType<typeof·setTimeout>)[]\n\n··#hasDispose:·boolean\n··#hasFetchMethod:·boolean\n··#hasDisposeAfter:·boolean\n··#hasOnInsert:·boolean\n\n··/**\n···*·Do·not·call·this·method·unless·you·need·to·inspect·the\n···*·inner·workings·of·the·cache.··If·anything·returned·by·this\n···*·object·is·modified·in·any·way,·strange·breakage·may·occur.\n···*\n···*·These·fields·are·private·for·a·reason!\n···*\n···*·@internal\n···*/\n··static·unsafeExposeInternals<\n····K·extends·{},\n····V·extends·{},\n····FC·extends·unknown·=·unknown,\n··>(c:·LRUCache<K,·V,·FC>)·{\n····return·{\n······//·properties\n······starts:·c.#starts,\n······ttls:·c.#ttls,\n······autopurgeTimers:·c.#autopurgeTimers,\n······sizes:·c.#sizes,\n······keyMap:·c.#keyMap·as·Map<K,·number>,\n······keyList:·c.#keyList,\n······valList:·c.#valList,\n······next:·c.#next,\n······prev:·c.#prev,\n······get·head()·{\n········return·c.#head\n······},\n······get·tail()·{\n········return·c.#tail\n······},\n······free:·c.#free,\n······//·methods\n······isBackgroundFetch:·(p:·any)·=>·c.#isBackgroundFetch(p),\n······backgroundFetch:·(\n········k:·K,\n········index:·number·|·undefined,\n········options:·LRUCache.FetchOptions<K,·V,·FC>,\n········context:·any,\n······):·BackgroundFetch<V>·=>\n········c.#backgroundFetch(\n··········k,\n··········index·as·Index·|·undefined,\n··········options,\n··········context,\n········),\n······moveToTail:·(index:·number):·void·=>·c.#moveToTail(index·as·Index),\n······indexes:·(options?:·{·allowStale:·boolean·})·=>·c.#indexes(options),\n······rindexes:·(options?:·{·allowStale:·boolean·})·=>\n········c.#rindexes(options),\n······isStale:·(index:·number·|·undefined)·=>·c.#isStale(index·as·Index),\n····}\n··}\n\n··//·Protected·read-only·members\n\n··/**\n···*·{@link·LRUCache.OptionsBase.max}·(read-only)\n···*/\n··get·max():·LRUCache.Count·{\n····return·this.#max\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.maxSize}·(read-only)\n···*/\n··get·maxSize():·LRUCache.Count·{\n····return·this.#maxSize\n··}\n··/**\n···*·The·total·computed·size·of·items·in·the·cache·(read-only)\n···*/\n··get·calculatedSize():·LRUCache.Size·{\n····return·this.#calculatedSize\n··}\n··/**\n···*·The·number·of·items·stored·in·the·cache·(read-only)\n···*/\n··get·size():·LRUCache.Count·{\n····return·this.#size\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·(read-only)\n···*/\n··get·fetchMethod():·LRUCache.Fetcher<K,·V,·FC>·|·undefined·{\n····return·this.#fetchMethod\n··}\n··get·memoMethod():·LRUCache.Memoizer<K,·V,·FC>·|·undefined·{\n····return·this.#memoMethod\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.dispose}·(read-only)\n···*/\n··get·dispose()·{\n····return·this.#dispose\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.onInsert}·(read-only)\n···*/\n··get·onInsert()·{\n····return·this.#onInsert\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.disposeAfter}·(read-only)\n···*/\n··get·disposeAfter()·{\n····return·this.#disposeAfter\n··}\n\n··constructor(options:·LRUCache.Options<K,·V,·FC>·|·LRUCache<K,·V,·FC>)·{\n····const·{\n······max·=·0,\n······ttl,\n······ttlResolution·=·1,\n······ttlAutopurge,\n······updateAgeOnGet,\n······updateAgeOnHas,\n······allowStale,\n······dispose,\n······onInsert,\n······disposeAfter,\n······noDisposeOnSet,\n······noUpdateTTL,\n······maxSize·=·0,\n······maxEntrySize·=·0,\n······sizeCalculation,\n······fetchMethod,\n······memoMethod,\n······noDeleteOnFetchRejection,\n······noDeleteOnStaleGet,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······perf,\n····}·=·options\n\n····if·(perf·!==·undefined)·{\n······if·(typeof·perf?.now·!==·'function')·{\n········throw·new·TypeError(\n··········'perf·option·must·have·a·now()·method·if·specified',\n········)\n······}\n····}\n\n····this.#perf·=·perf·??·defaultPerf\n\n····if·(max·!==·0·&&·!isPosInt(max))·{\n······throw·new·TypeError('max·option·must·be·a·nonnegative·integer')\n····}\n\n····const·UintArray·=·max·?·getUintArray(max)·:·Array\n····if·(!UintArray)·{\n······throw·new·Error('invalid·max·value:·'·+·max)\n····}\n\n····this.#max·=·max\n····this.#maxSize·=·maxSize\n····this.maxEntrySize·=·maxEntrySize·||·this.#maxSize\n····this.sizeCalculation·=·sizeCalculation\n····if·(this.sizeCalculation)·{\n······if·(!this.#maxSize·&&·!this.maxEntrySize)·{\n········throw·new·TypeError(\n··········'cannot·set·sizeCalculation·without·setting·maxSize·or·maxEntrySize',\n········)\n······}\n······if·(typeof·this.sizeCalculation·!==·'function')·{\n········throw·new·TypeError('sizeCalculation·set·to·non-function')\n······}\n····}\n\n····if·(memoMethod·!==·undefined·&&·typeof·memoMethod·!==·'function')·{\n······throw·new·TypeError('memoMethod·must·be·a·function·if·defined')\n····}\n····this.#memoMethod·=·memoMethod\n\n····if·(fetchMethod·!==·undefined·&&·typeof·fetchMethod·!==·'function')·{\n······throw·new·TypeError('fetchMethod·must·be·a·function·if·specified')\n····}\n····this.#fetchMethod·=·fetchMethod\n····this.#hasFetchMethod·=·!!fetchMethod\n\n····this.#keyMap·=·new·Map()\n····this.#keyList·=·new·Array(max).fill(undefined)\n····this.#valList·=·new·Array(max).fill(undefined)\n····this.#next·=·new·UintArray(max)\n····this.#prev·=·new·UintArray(max)\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free·=·Stack.create(max)\n····this.#size·=·0\n····this.#calculatedSize·=·0\n\n····if·(typeof·dispose·===·'function')·{\n······this.#dispose·=·dispose\n····}\n····if·(typeof·onInsert·===·'function')·{\n······this.#onInsert·=·onInsert\n····}\n····if·(typeof·disposeAfter·===·'function')·{\n······this.#disposeAfter·=·disposeAfter\n······this.#disposed·=·[]\n····}·else·{\n······this.#disposeAfter·=·undefined\n······this.#disposed·=·undefined\n····}\n····this.#hasDispose·=·!!this.#dispose\n····this.#hasOnInsert·=·!!this.#onInsert\n····this.#hasDisposeAfter·=·!!this.#disposeAfter\n\n····this.noDisposeOnSet·=·!!noDisposeOnSet\n····this.noUpdateTTL·=·!!noUpdateTTL\n····this.noDeleteOnFetchRejection·=·!!noDeleteOnFetchRejection\n····this.allowStaleOnFetchRejection·=·!!allowStaleOnFetchRejection\n····this.allowStaleOnFetchAbort·=·!!allowStaleOnFetchAbort\n····this.ignoreFetchAbort·=·!!ignoreFetchAbort\n\n····//·NB:·maxEntrySize·is·set·to·maxSize·if·it's·set\n····if·(this.maxEntrySize·!==·0)·{\n······if·(this.#maxSize·!==·0)·{\n········if·(!isPosInt(this.#maxSize))·{\n··········throw·new·TypeError(\n············'maxSize·must·be·a·positive·integer·if·specified',\n··········)\n········}\n······}\n······if·(!isPosInt(this.maxEntrySize))·{\n········throw·new·TypeError(\n··········'maxEntrySize·must·be·a·positive·integer·if·specified',\n········)\n······}\n······this.#initializeSizeTracking()\n····}\n\n····this.allowStale·=·!!allowStale\n····this.noDeleteOnStaleGet·=·!!noDeleteOnStaleGet\n····this.updateAgeOnGet·=·!!updateAgeOnGet\n····this.updateAgeOnHas·=·!!updateAgeOnHas\n····this.ttlResolution·=\n······isPosInt(ttlResolution)·||·ttlResolution·===·0·?·ttlResolution·:·1\n····this.ttlAutopurge·=·!!ttlAutopurge\n····this.ttl·=·ttl·||·0\n····if·(this.ttl)·{\n······if·(!isPosInt(this.ttl))·{\n········throw·new·TypeError('ttl·must·be·a·positive·integer·if·specified')\n······}\n······this.#initializeTTLTracking()\n····}\n\n····//·do·not·allow·completely·unbounded·caches\n····if·(this.#max·===·0·&&·this.ttl·===·0·&&·this.#maxSize·===·0)·{\n······throw·new·TypeError(\n········'At·least·one·of·max,·maxSize,·or·ttl·is·required',\n······)\n····}\n····if·(!this.ttlAutopurge·&&·!this.#max·&&·!this.#maxSize)·{\n······const·code·=·'LRU_CACHE_UNBOUNDED'\n······if·(shouldWarn(code))·{\n········warned.add(code)\n········const·msg·=\n··········'TTL·caching·without·ttlAutopurge,·max,·or·maxSize·can·'·+\n··········'result·in·unbounded·memory·consumption.'\n········emitWarning(msg,·'UnboundedCacheWarning',·code,·LRUCache)\n······}\n····}\n··}\n\n··/**\n···*·Return·the·number·of·ms·left·in·the·item's·TTL.·If·item·is·not·in·cache,\n···*·returns·`0`.·Returns·`Infinity`·if·item·is·in·cache·without·a·defined·TTL.\n···*/\n··getRemainingTTL(key:·K)·{\n····return·this.#keyMap.has(key)·?·Infinity·:·0\n··}\n\n··#initializeTTLTracking()·{\n····const·ttls·=·new·ZeroArray(this.#max)\n····const·starts·=·new·ZeroArray(this.#max)\n····this.#ttls·=·ttls\n····this.#starts·=·starts\n····const·purgeTimers·=\n······this.ttlAutopurge·?\n········new·Array<undefined·|·ReturnType<typeof·setTimeout>>(this.#max)\n······:·undefined\n····this.#autopurgeTimers·=·purgeTimers\n\n····this.#setItemTTL·=·(index,·ttl,·start·=·this.#perf.now())·=>·{\n······starts[index]·=·ttl·!==·0·?·start·:·0\n······ttls[index]·=·ttl\n······//·clear·out·the·purge·timer·if·we're·setting·TTL·to·0,·and\n······//·previously·had·a·ttl·purge·timer·running,·so·it·doesn't\n······//·fire·unnecessarily.\n······if·(purgeTimers?.[index])·{\n········clearTimeout(purgeTimers[index])\n········purgeTimers[index]·=·undefined\n······}\n······if·(ttl·!==·0·&&·purgeTimers)·{\n········const·t·=·setTimeout(()·=>·{\n··········if·(this.#isStale(index))·{\n············this.#delete(this.#keyList[index]·as·K,·'expire')\n··········}\n········},·ttl·+·1)\n········//·unref()·not·supported·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n········purgeTimers[index]·=·t\n······}\n····}\n\n····this.#updateItemAge·=·index·=>·{\n······starts[index]·=·ttls[index]·!==·0·?·this.#perf.now()·:·0\n····}\n\n····this.#statusTTL·=·(status,·index)·=>·{\n······if·(ttls[index])·{\n········const·ttl·=·ttls[index]\n········const·start·=·starts[index]\n········/*·c8·ignore·next·*/\n········if·(!ttl·||·!start)·return\n········status.ttl·=·ttl\n········status.start·=·start\n········status.now·=·cachedNow·||·getNow()\n········const·age·=·status.now·-·start\n········status.remainingTTL·=·ttl·-·age\n······}\n····}\n\n····//·debounce·calls·to·perf.now()·to·1s·so·we're·not·hitting\n····//·that·costly·call·repeatedly.\n····let·cachedNow·=·0\n····const·getNow·=·()·=>·{\n······const·n·=·this.#perf.now()\n······if·(this.ttlResolution·>·0)·{\n········cachedNow·=·n\n········const·t·=·setTimeout(()·=>·(cachedNow·=·0),·this.ttlResolution)\n········//·not·available·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n······}\n······return·n\n····}\n\n····this.getRemainingTTL·=·key·=>·{\n······const·index·=·this.#keyMap.get(key)\n······if·(index·===·undefined)·{\n········return·0\n······}\n······const·ttl·=·ttls[index]\n······const·start·=·starts[index]\n······if·(!ttl·||·!start)·{\n········return·Infinity\n······}\n······const·age·=·(cachedNow·||·getNow())·-·start\n······return·ttl·-·age\n····}\n\n····this.#isStale·=·index·=>·{\n······const·s·=·starts[index]\n······const·t·=·ttls[index]\n······return·!!t·&&·!!s·&&·(cachedNow·||·getNow())·-·s·>·t\n····}\n··}\n\n··//·conditionally·set·private·methods·related·to·TTL\n··#updateItemAge:·(index:·Index)·=>·void·=·()·=>·{}\n··#statusTTL:·(status:·LRUCache.Status<V>,·index:·Index)·=>·void·=·()·=>·{}\n··#setItemTTL:·(\n····index:·Index,\n····ttl:·LRUCache.Milliseconds,\n····start?:·LRUCache.Milliseconds,\n····//·ignore·because·we·never·call·this·if·we're·not·already·in·TTL·mode\n····/*·c8·ignore·start·*/\n··)·=>·void·=·()·=>·{}\n··/*·c8·ignore·stop·*/\n\n··#isStale:·(index:·Index)·=>·boolean·=·()·=>·false\n\n··#initializeSizeTracking()·{\n····const·sizes·=·new·ZeroArray(this.#max)\n····this.#calculatedSize·=·0\n····this.#sizes·=·sizes\n····this.#removeItemSize·=·index·=>·{\n······this.#calculatedSize·-=·sizes[index]·as·number\n······sizes[index]·=·0\n····}\n····this.#requireSize·=·(k,·v,·size,·sizeCalculation)·=>·{\n······//·provisionally·accept·background·fetches.\n······//·actual·value·size·will·be·checked·when·they·return.\n······if·(this.#isBackgroundFetch(v))·{\n········return·0\n······}\n······if·(!isPosInt(size))·{\n········if·(sizeCalculation)·{\n··········if·(typeof·sizeCalculation·!==·'function')·{\n············throw·new·TypeError('sizeCalculation·must·be·a·function')\n··········}\n··········size·=·sizeCalculation(v,·k)\n··········if·(!isPosInt(size))·{\n············throw·new·TypeError(\n··············'sizeCalculation·return·invalid·(expect·positive·integer)',\n············)\n··········}\n········}·else·{\n··········throw·new·TypeError(\n············'invalid·size·value·(must·be·positive·integer).·'·+\n··············'When·maxSize·or·maxEntrySize·is·used,·sizeCalculation·'·+\n··············'or·size·must·be·set.',\n··········)\n········}\n······}\n······return·size\n····}\n····this.#addItemSize·=·(\n······index:·Index,\n······size:·LRUCache.Size,\n······status?:·LRUCache.Status<V>,\n····)·=>·{\n······sizes[index]·=·size\n······if·(this.#maxSize)·{\n········const·maxSize·=·this.#maxSize·-·(sizes[index]·as·number)\n········while·(this.#calculatedSize·>·maxSize)·{\n··········this.#evict(true)\n········}\n······}\n······this.#calculatedSize·+=·sizes[index]·as·number\n······if·(status)·{\n········status.entrySize·=·size\n········status.totalCalculatedSize·=·this.#calculatedSize\n······}\n····}\n··}\n\n··#removeItemSize:·(index:·Index)·=>·void·=·_i·=>·{}\n··#addItemSize:·(\n····index:·Index,\n····size:·LRUCache.Size,\n····status?:·LRUCache.Status<V>,\n··)·=>·void·=·(_i,·_s,·_st)·=>·{}\n··#requireSize:·(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·LRUCache.Size·=·(\n····_k:·K,\n····_v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·{\n····if·(size·||·sizeCalculation)·{\n······throw·new·TypeError(\n········'cannot·set·size·without·setting·maxSize·or·maxEntrySize·on·cache',\n······)\n····}\n····return·0\n··};\n\n··*#indexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#tail;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#head)·{\n··········break\n········}·else·{\n··········i·=·this.#prev[i]·as·Index\n········}\n······}\n····}\n··}\n\n··*#rindexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#head;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#tail)·{\n··········break\n········}·else·{\n··········i·=·this.#next[i]·as·Index\n········}\n······}\n····}\n··}\n\n··#isValidIndex(index:·Index)·{\n····return·(\n······index·!==·undefined·&&\n······this.#keyMap.get(this.#keyList[index]·as·K)·===·index\n····)\n··}\n\n··/**\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*entries()·{\n····for·(const·i·of·this.#indexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]·as·[K,·V]\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.entries}\n···*\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rentries()·{\n····for·(const·i·of·this.#rindexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*keys()·{\n····for·(const·i·of·this.#indexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.keys}\n···*\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rkeys()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*values()·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]·as·V\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.values}\n···*\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rvalues()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]\n······}\n····}\n··}\n\n··/**\n···*·Iterating·over·the·cache·itself·yields·the·same·results·as\n···*·{@link·LRUCache.entries}\n···*/\n··[Symbol.iterator]()·{\n····return·this.entries()\n··}\n\n··/**\n···*·A·String·value·that·is·used·in·the·creation·of·the·default·string\n···*·description·of·an·object.·Called·by·the·built-in·method\n···*·`Object.prototype.toString`.\n···*/\n··[Symbol.toStringTag]·=·'LRUCache'\n\n··/**\n···*·Find·a·value·for·which·the·supplied·fn·method·returns·a·truthy·value,\n···*·similar·to·`Array.find()`.·fn·is·called·as·`fn(value,·key,·cache)`.\n···*/\n··find(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·boolean,\n····getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{},\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······if·(fn(value,·this.#keyList[i]·as·K,·this))·{\n········return·this.get(this.#keyList[i]·as·K,·getOptions)\n······}\n····}\n··}\n\n··/**\n···*·Call·the·supplied·function·on·each·item·in·the·cache,·in·order·from·most\n···*·recently·used·to·least·recently·used.\n···*\n···*·`fn`·is·called·as·`fn(value,·key,·cache)`.\n···*\n···*·If·`thisp`·is·provided,·function·will·be·called·in·the·`this`-context·of\n···*·the·provided·object,·or·the·cache·if·no·`thisp`·object·is·provided.\n···*\n···*·Does·not·update·age·or·recenty·of·use,·or·iterate·over·stale·values.\n···*/\n··forEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·The·same·as·{@link·LRUCache.forEach}·but·items·are·iterated·over·in\n···*·reverse·order.··(ie,·less·recently·used·items·are·iterated·over·first.)\n···*/\n··rforEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·Delete·any·stale·entries.·Returns·true·if·anything·was·removed,\n···*·false·otherwise.\n···*/\n··purgeStale()·{\n····let·deleted·=·false\n····for·(const·i·of·this.#rindexes({·allowStale:·true·}))·{\n······if·(this.#isStale(i))·{\n········this.#delete(this.#keyList[i]·as·K,·'expire')\n········deleted·=·true\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Get·the·extended·info·about·a·given·entry,·to·get·its·value,·size,·and\n···*·TTL·info·simultaneously.·Returns·`undefined`·if·the·key·is·not·present.\n···*\n···*·Unlike·{@link·LRUCache#dump},·which·is·designed·to·be·portable·and·survive\n···*·serialization,·the·`start`·value·is·always·the·current·timestamp,·and·the\n···*·`ttl`·is·a·calculated·remaining·time·to·live·(negative·if·expired).\n···*\n···*·Always·returns·stale·values,·if·their·info·is·found·in·the·cache,·so·be\n···*·sure·to·check·for·expirations·(ie,·a·negative·{@link·LRUCache.Entry#ttl})\n···*·if·relevant.\n···*/\n··info(key:·K):·LRUCache.Entry<V>·|·undefined·{\n····const·i·=·this.#keyMap.get(key)\n····if·(i·===·undefined)·return·undefined\n····const·v·=·this.#valList[i]\n····/*·c8·ignore·start·-·this·isn't·tested·for·the·info·function,\n·····*·but·it's·the·same·logic·as·found·in·other·places.·*/\n····const·value:·V·|·undefined·=\n······this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n····if·(value·===·undefined)·return·undefined\n····/*·c8·ignore·end·*/\n····const·entry:·LRUCache.Entry<V>·=·{·value·}\n····if·(this.#ttls·&&·this.#starts)·{\n······const·ttl·=·this.#ttls[i]\n······const·start·=·this.#starts[i]\n······if·(ttl·&&·start)·{\n········const·remain·=·ttl·-·(this.#perf.now()·-·start)\n········entry.ttl·=·remain\n········entry.start·=·Date.now()\n······}\n····}\n····if·(this.#sizes)·{\n······entry.size·=·this.#sizes[i]\n····}\n····return·entry\n··}\n\n··/**\n···*·Return·an·array·of·[key,·{@link·LRUCache.Entry}]·tuples·which·can·be\n···*·passed·to·{@link·LRUCache#load}.\n···*\n···*·The·`start`·fields·are·calculated·relative·to·a·portable·`Date.now()`\n···*·timestamp,·even·if·`performance.now()`·is·available.\n···*\n···*·Stale·entries·are·always·included·in·the·`dump`,·even·if\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·false.\n···*\n···*·Note:·this·returns·an·actual·array,·not·a·generator,·so·it·can·be·more\n···*·easily·passed·around.\n···*/\n··dump()·{\n····const·arr:·[K,·LRUCache.Entry<V>][]·=·[]\n····for·(const·i·of·this.#indexes({·allowStale:·true·}))·{\n······const·key·=·this.#keyList[i]\n······const·v·=·this.#valList[i]\n······const·value:·V·|·undefined·=\n········this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined·||·key·===·undefined)·continue\n······const·entry:·LRUCache.Entry<V>·=·{·value·}\n······if·(this.#ttls·&&·this.#starts)·{\n········entry.ttl·=·this.#ttls[i]\n········//·always·dump·the·start·relative·to·a·portable·timestamp\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·this.#perf.now()·-·(this.#starts[i]·as·number)\n········entry.start·=·Math.floor(Date.now()·-·age)\n······}\n······if·(this.#sizes)·{\n········entry.size·=·this.#sizes[i]\n······}\n······arr.unshift([key,·entry])\n····}\n····return·arr\n··}\n\n··/**\n···*·Reset·the·cache·and·load·in·the·items·in·entries·in·the·order·listed.\n···*\n···*·The·shape·of·the·resulting·cache·may·be·different·if·the·same·options·are\n···*·not·used·in·both·caches.\n···*\n···*·The·`start`·fields·are·assumed·to·be·calculated·relative·to·a·portable\n···*·`Date.now()`·timestamp,·even·if·`performance.now()`·is·available.\n···*/\n··load(arr:·[K,·LRUCache.Entry<V>][])·{\n····this.clear()\n····for·(const·[key,·entry]·of·arr)·{\n······if·(entry.start)·{\n········//·entry.start·is·a·portable·timestamp,·but·we·may·be·using\n········//·node's·performance.now(),·so·calculate·the·offset,·so·that\n········//·we·get·the·intended·remaining·TTL,·no·matter·how·long·it's\n········//·been·on·ice.\n········//\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·Date.now()·-·entry.start\n········entry.start·=·this.#perf.now()·-·age\n······}\n······this.set(key,·entry.value,·entry)\n····}\n··}\n\n··/**\n···*·Add·a·value·to·the·cache.\n···*\n···*·Note:·if·`undefined`·is·specified·as·a·value,·this·is·an·alias·for\n···*·{@link·LRUCache#delete}\n···*\n···*·Fields·on·the·{@link·LRUCache.SetOptions}·options·param·will·override\n···*·their·corresponding·values·in·the·constructor·options·for·the·scope\n···*·of·this·single·`set()`·operation.\n···*\n···*·If·`start`·is·provided,·then·that·will·set·the·effective·start\n···*·time·for·the·TTL·calculation.·Note·that·this·must·be·a·previous\n···*·value·of·`performance.now()`·if·supported,·or·a·previous·value·of\n···*·`Date.now()`·if·not.\n···*\n···*·Options·object·may·also·include·`size`,·which·will·prevent\n···*·calling·the·`sizeCalculation`·function·and·just·use·the·specified\n···*·number·if·it·is·a·positive·integer,·and·`noDisposeOnSet`·which\n···*·will·prevent·calling·a·`dispose`·function·in·the·case·of\n···*·overwrites.\n···*\n···*·If·the·`size`·(or·return·value·of·`sizeCalculation`)·for·a·given\n···*·entry·is·greater·than·`maxEntrySize`,·then·the·item·will·not·be\n···*·added·to·the·cache.\n···*\n···*·Will·update·the·recency·of·the·entry.\n···*\n···*·If·the·value·is·`undefined`,·then·this·is·an·alias·for\n···*·`cache.delete(key)`.·`undefined`·is·never·stored·in·the·cache.\n···*/\n··set(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>·|·undefined,\n····setOptions:·LRUCache.SetOptions<K,·V,·FC>·=·{},\n··)·{\n····if·(v·===·undefined)·{\n······this.delete(k)\n······return·this\n····}\n····const·{\n······ttl·=·this.ttl,\n······start,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······sizeCalculation·=·this.sizeCalculation,\n······status,\n····}·=·setOptions\n····let·{·noUpdateTTL·=·this.noUpdateTTL·}·=·setOptions\n\n····const·size·=·this.#requireSize(\n······k,\n······v,\n······setOptions.size·||·0,\n······sizeCalculation,\n····)\n····//·if·the·item·doesn't·fit,·don't·do·anything\n····//·NB:·maxEntrySize·set·to·maxSize·by·default\n····if·(this.maxEntrySize·&&·size·>·this.maxEntrySize)·{\n······if·(status)·{\n········status.set·=·'miss'\n········status.maxEntrySizeExceeded·=·true\n······}\n······//·have·to·delete,·in·case·something·is·there·already.\n······this.#delete(k,·'set')\n······return·this\n····}\n····let·index·=·this.#size·===·0·?·undefined·:·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······//·addition\n······index·=·(\n········this.#size·===·0·?·this.#tail\n········:·this.#free.length·!==·0·?·this.#free.pop()\n········:·this.#size·===·this.#max·?·this.#evict(false)\n········:·this.#size)·as·Index\n······this.#keyList[index]·=·k\n······this.#valList[index]·=·v\n······this.#keyMap.set(k,·index)\n······this.#next[this.#tail]·=·index\n······this.#prev[index]·=·this.#tail\n······this.#tail·=·index\n······this.#size++\n······this.#addItemSize(index,·size,·status)\n······if·(status)·status.set·=·'add'\n······noUpdateTTL·=·false\n······if·(this.#hasOnInsert)·{\n········this.#onInsert?.(v·as·V,·k,·'add')\n······}\n····}·else·{\n······//·update\n······this.#moveToTail(index)\n······const·oldVal·=·this.#valList[index]·as·V·|·BackgroundFetch<V>\n······if·(v·!==·oldVal)·{\n········if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(oldVal))·{\n··········oldVal.__abortController.abort(new·Error('replaced'))\n··········const·{·__staleWhileFetching:·s·}·=·oldVal\n··········if·(s·!==·undefined·&&·!noDisposeOnSet)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(s·as·V,·k,·'set')\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([s·as·V,·k,·'set'])\n············}\n··········}\n········}·else·if·(!noDisposeOnSet)·{\n··········if·(this.#hasDispose)·{\n············this.#dispose?.(oldVal·as·V,·k,·'set')\n··········}\n··········if·(this.#hasDisposeAfter)·{\n············this.#disposed?.push([oldVal·as·V,·k,·'set'])\n··········}\n········}\n········this.#removeItemSize(index)\n········this.#addItemSize(index,·size,·status)\n········this.#valList[index]·=·v\n········if·(status)·{\n··········status.set·=·'replace'\n··········const·oldValue·=\n············oldVal·&&·this.#isBackgroundFetch(oldVal)·?\n··············oldVal.__staleWhileFetching\n············:·oldVal\n··········if·(oldValue·!==·undefined)·status.oldValue·=·oldValue\n········}\n······}·else·if·(status)·{\n········status.set·=·'update'\n······}\n\n······if·(this.#hasOnInsert)·{\n········this.onInsert?.(v·as·V,·k,·v·===·oldVal·?·'update'·:·'replace')\n······}\n····}\n····if·(ttl·!==·0·&&·!this.#ttls)·{\n······this.#initializeTTLTracking()\n····}\n····if·(this.#ttls)·{\n······if·(!noUpdateTTL)·{\n········this.#setItemTTL(index,·ttl,·start)\n······}\n······if·(status)·this.#statusTTL(status,·index)\n····}\n····if·(!noDisposeOnSet·&&·this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·this\n··}\n\n··/**\n···*·Evict·the·least·recently·used·item,·returning·its·value·or\n···*·`undefined`·if·cache·is·empty.\n···*/\n··pop():·V·|·undefined·{\n····try·{\n······while·(this.#size)·{\n········const·val·=·this.#valList[this.#head]\n········this.#evict(true)\n········if·(this.#isBackgroundFetch(val))·{\n··········if·(val.__staleWhileFetching)·{\n············return·val.__staleWhileFetching\n··········}\n········}·else·if·(val·!==·undefined)·{\n··········return·val\n········}\n······}\n····}·finally·{\n······if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n········const·dt·=·this.#disposed\n········let·task:·DisposeTask<K,·V>·|·undefined\n········while·((task·=·dt?.shift()))·{\n··········this.#disposeAfter?.(...task)\n········}\n······}\n····}\n··}\n\n··#evict(free:·boolean)·{\n····const·head·=·this.#head\n····const·k·=·this.#keyList[head]·as·K\n····const·v·=·this.#valList[head]·as·V\n····if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(v))·{\n······v.__abortController.abort(new·Error('evicted'))\n····}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n······if·(this.#hasDispose)·{\n········this.#dispose?.(v,·k,·'evict')\n······}\n······if·(this.#hasDisposeAfter)·{\n········this.#disposed?.push([v,·k,·'evict'])\n······}\n····}\n····this.#removeItemSize(head)\n····if·(this.#autopurgeTimers?.[head])·{\n······clearTimeout(this.#autopurgeTimers[head])\n······this.#autopurgeTimers[head]·=·undefined\n····}\n····//·if·we·aren't·about·to·use·the·index,·then·null·these·out\n····if·(free)·{\n······this.#keyList[head]·=·undefined\n······this.#valList[head]·=·undefined\n······this.#free.push(head)\n····}\n····if·(this.#size·===·1)·{\n······this.#head·=·this.#tail·=·0·as·Index\n······this.#free.length·=·0\n····}·else·{\n······this.#head·=·this.#next[head]·as·Index\n····}\n····this.#keyMap.delete(k)\n····this.#size--\n····return·head\n··}\n\n··/**\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of·use.\n···*·Will·return·false·if·the·item·is·stale,·even·though·it·is·technically\n···*·in·the·cache.\n···*\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of\n···*·use.·Age·is·updated·if·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set\n···*·to·`true`·in·either·the·options·or·the·constructor.\n···*\n···*·Will·return·`false`·if·the·item·is·stale,·even·though·it·is·technically·in\n···*·the·cache.·The·difference·can·be·determined·(if·it·matters)·by·using·a\n···*·`status`·argument,·and·inspecting·the·`has`·field.\n···*\n···*·Will·not·update·item·age·unless\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set.\n···*/\n··has(k:·K,·hasOptions:·LRUCache.HasOptions<K,·V,·FC>·=·{})·{\n····const·{·updateAgeOnHas·=·this.updateAgeOnHas,·status·}·=·hasOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·v·=·this.#valList[index]\n······if·(\n········this.#isBackgroundFetch(v)·&&\n········v.__staleWhileFetching·===·undefined\n······)·{\n········return·false\n······}\n······if·(!this.#isStale(index))·{\n········if·(updateAgeOnHas)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·{\n··········status.has·=·'hit'\n··········this.#statusTTL(status,·index)\n········}\n········return·true\n······}·else·if·(status)·{\n········status.has·=·'stale'\n········this.#statusTTL(status,·index)\n······}\n····}·else·if·(status)·{\n······status.has·=·'miss'\n····}\n····return·false\n··}\n\n··/**\n···*·Like·{@link·LRUCache#get}·but·doesn't·update·recency·or·delete·stale\n···*·items.\n···*\n···*·Returns·`undefined`·if·the·item·is·stale,·unless\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·set.\n···*/\n··peek(k:·K,·peekOptions:·LRUCache.PeekOptions<K,·V,·FC>·=·{})·{\n····const·{·allowStale·=·this.allowStale·}·=·peekOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined·||·(!allowStale·&&·this.#isStale(index)))·{\n······return\n····}\n····const·v·=·this.#valList[index]\n····//·either·stale·and·allowed,·or·forcing·a·refresh·of·non-stale·value\n····return·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n··}\n\n··#backgroundFetch(\n····k:·K,\n····index:·Index·|·undefined,\n····options:·LRUCache.FetchOptions<K,·V,·FC>,\n····context:·any,\n··):·BackgroundFetch<V>·{\n····const·v·=·index·===·undefined·?·undefined·:·this.#valList[index]\n····if·(this.#isBackgroundFetch(v))·{\n······return·v\n····}\n\n····const·ac·=·new·AC()\n····const·{·signal·}·=·options\n····//·when/if·our·AC·signals,·then·stop·listening·to·theirs.\n····signal?.addEventListener('abort',·()·=>·ac.abort(signal.reason),·{\n······signal:·ac.signal,\n····})\n\n····const·fetchOpts·=·{\n······signal:·ac.signal,\n······options,\n······context,\n····}\n\n····const·cb·=·(v:·V·|·undefined,·updateCache·=·false):·V·|·undefined·=>·{\n······const·{·aborted·}·=·ac.signal\n······const·ignoreAbort·=·options.ignoreFetchAbort·&&·v·!==·undefined\n······ | 10 | ········"/**\n·*·@module·LRUCache\n·*/\n\n//·module-private·names·and·types\n//·this·provides·the·default·Perf·object·source.\n//·it·can·be·passed·in·via·configuration·to·override·it\n//·for·a·single·LRU·object.\nexport·type·Perf·=·{·now:·()·=>·number·}\nconst·defaultPerf:·Perf·=\n··(\n····typeof·performance·===·'object'·&&\n····performance·&&\n····typeof·performance.now·===·'function'\n··)·?\n····performance\n··:·Date\n\nconst·warned·=·new·Set<string>()\n\n//·either·a·function·or·a·class\ntype·ForC·=·((...a:·any[])·=>·any)·|·{·new·(...a:·any[]):·any·}\n\n/*·c8·ignore·start·*/\nconst·PROCESS·=·(\n··typeof·process·===·'object'·&&·!!process·?\n····process\n··:·{})·as·{·[k:·string]:·any·}\n/*·c8·ignore·start·*/\n\nconst·emitWarning·=·(\n··msg:·string,\n··type:·string,\n··code:·string,\n··fn:·ForC,\n)·=>·{\n··typeof·PROCESS.emitWarning·===·'function'·?\n····PROCESS.emitWarning(msg,·type,·code,·fn)\n··:·console.error(`[${code}]·${type}:·${msg}`)\n}\n\nlet·AC·=·globalThis.AbortController\nlet·AS·=·globalThis.AbortSignal\n\n/*·c8·ignore·start·*/\nif·(typeof·AC·===·'undefined')·{\n··//@ts-ignore\n··AS·=·class·AbortSignal·{\n····onabort?:·(...a:·any[])·=>·any\n····_onabort:·((...a:·any[])·=>·any)[]·=·[]\n····reason?:·any\n····aborted:·boolean·=·false\n····addEventListener(_:·string,·fn:·(...a:·any[])·=>·any)·{\n······this._onabort.push(fn)\n····}\n··}\n··//@ts-ignore\n··AC·=·class·AbortController·{\n····constructor()·{\n······warnACPolyfill()\n····}\n····signal·=·new·AS()\n····abort(reason:·any)·{\n······if·(this.signal.aborted)·return\n······//@ts-ignore\n······this.signal.reason·=·reason\n······//@ts-ignore\n······this.signal.aborted·=·true\n······//@ts-ignore\n······for·(const·fn·of·this.signal._onabort)·{\n········fn(reason)\n······}\n······this.signal.onabort?.(reason)\n····}\n··}\n··let·printACPolyfillWarning·=\n····PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING·!==·'1'\n··const·warnACPolyfill·=·()·=>·{\n····if·(!printACPolyfillWarning)·return\n····printACPolyfillWarning·=·false\n····emitWarning(\n······'AbortController·is·not·defined.·If·using·lru-cache·in·'·+\n········'node·14,·load·an·AbortController·polyfill·from·the·'·+\n········'`node-abort-controller`·package.·A·minimal·polyfill·is·'·+\n········'provided·for·use·by·LRUCache.fetch(),·but·it·should·not·be·'·+\n········'relied·upon·in·other·contexts·(eg,·passing·it·to·other·APIs·that·'·+\n········'use·AbortController/AbortSignal·might·have·undesirable·effects).·'·+\n········'You·may·disable·this·with·LRU_CACHE_IGNORE_AC_WARNING=1·in·the·env.',\n······'NO_ABORT_CONTROLLER',\n······'ENOTSUP',\n······warnACPolyfill,\n····)\n··}\n}\n/*·c8·ignore·stop·*/\n\nconst·shouldWarn·=·(code:·string)·=>·!warned.has(code)\n\nconst·TYPE·=·Symbol('type')\nexport·type·PosInt·=·number·&·{·[TYPE]:·'Positive·Integer'·}\nexport·type·Index·=·number·&·{·[TYPE]:·'LRUCache·Index'·}\n\nconst·isPosInt·=·(n:·any):·n·is·PosInt·=>\n··n·&&·n·===·Math.floor(n)·&&·n·>·0·&&·isFinite(n)\n\nexport·type·UintArray·=·Uint8Array·|·Uint16Array·|·Uint32Array\nexport·type·NumberArray·=·UintArray·|·number[]\n\n/*·c8·ignore·start·*/\n//·This·is·a·little·bit·ridiculous,·tbh.\n//·The·maximum·array·length·is·2^32-1·or·thereabouts·on·most·JS·impls.\n//·And·well·before·that·point,·you're·caching·the·entire·world,·I·mean,\n//·that's·~32GB·of·just·integers·for·the·next/prev·links,·plus·whatever\n//·else·to·hold·that·many·keys·and·values.··Just·filling·the·memory·with\n//·zeroes·at·init·time·is·brutal·when·you·get·that·big.\n//·But·why·not·be·complete?\n//·Maybe·in·the·future,·these·limits·will·have·expanded.\nconst·getUintArray·=·(max:·number)·=>\n··!isPosInt(max)·?·null\n··:·max·<=·Math.pow(2,·8)·?·Uint8Array\n··:·max·<=·Math.pow(2,·16)·?·Uint16Array\n··:·max·<=·Math.pow(2,·32)·?·Uint32Array\n··:·max·<=·Number.MAX_SAFE_INTEGER·?·ZeroArray\n··:·null\n/*·c8·ignore·stop·*/\n\nclass·ZeroArray·extends·Array<number>·{\n··constructor(size:·number)·{\n····super(size)\n····this.fill(0)\n··}\n}\nexport·type·{·ZeroArray·}\nexport·type·{·Stack·}\n\nexport·type·StackLike·=·Stack·|·Index[]\nclass·Stack·{\n··heap:·NumberArray\n··length:·number\n··//·private·constructor\n··static·#constructing:·boolean·=·false\n··static·create(max:·number):·StackLike·{\n····const·HeapCls·=·getUintArray(max)\n····if·(!HeapCls)·return·[]\n····Stack.#constructing·=·true\n····const·s·=·new·Stack(max,·HeapCls)\n····Stack.#constructing·=·false\n····return·s\n··}\n··constructor(max:·number,·HeapCls:·{·new·(n:·number):·NumberArray·})·{\n····/*·c8·ignore·start·*/\n····if·(!Stack.#constructing)·{\n······throw·new·TypeError('instantiate·Stack·using·Stack.create(n)')\n····}\n····/*·c8·ignore·stop·*/\n····this.heap·=·new·HeapCls(max)\n····this.length·=·0\n··}\n··push(n:·Index)·{\n····this.heap[this.length++]·=·n\n··}\n··pop():·Index·{\n····return·this.heap[--this.length]·as·Index\n··}\n}\n\n/**\n·*·Promise·representing·an·in-progress·{@link·LRUCache#fetch}·call\n·*/\nexport·type·BackgroundFetch<V>·=·Promise<V·|·undefined>·&·{\n··__returned:·BackgroundFetch<V>·|·undefined\n··__abortController:·AbortController\n··__staleWhileFetching:·V·|·undefined\n}\n\nexport·type·DisposeTask<K,·V>·=·[\n··value:·V,\n··key:·K,\n··reason:·LRUCache.DisposeReason,\n]\n\nexport·namespace·LRUCache·{\n··/**\n···*·An·integer·greater·than·0,·reflecting·the·calculated·size·of·items\n···*/\n··export·type·Size·=·number\n\n··/**\n···*·Integer·greater·than·0,·representing·some·number·of·milliseconds,·or·the\n···*·time·at·which·a·TTL·started·counting·from.\n···*/\n··export·type·Milliseconds·=·number\n\n··/**\n···*·An·integer·greater·than·0,·reflecting·a·number·of·items\n···*/\n··export·type·Count·=·number\n\n··/**\n···*·The·reason·why·an·item·was·removed·from·the·cache,·passed\n···*·to·the·{@link·Disposer}·methods.\n···*\n···*·-·`evict`:·The·item·was·evicted·because·it·is·the·least·recently·used,\n···*···and·the·cache·is·full.\n···*·-·`set`:·A·new·value·was·set,·overwriting·the·old·value·being·disposed.\n···*·-·`delete`:·The·item·was·explicitly·deleted,·either·by·calling\n···*···{@link·LRUCache#delete},·{@link·LRUCache#clear},·or\n···*···{@link·LRUCache#set}·with·an·undefined·value.\n···*·-·`expire`:·The·item·was·removed·due·to·exceeding·its·TTL.\n···*·-·`fetch`:·A·{@link·OptionsBase#fetchMethod}·operation·returned\n···*···`undefined`·or·was·aborted,·causing·the·item·to·be·deleted.\n···*/\n··export·type·DisposeReason·=\n····|·'evict'\n····|·'set'\n····|·'delete'\n····|·'expire'\n····|·'fetch'\n··/**\n···*·A·method·called·upon·item·removal,·passed·as·the\n···*·{@link·OptionsBase.dispose}·and/or\n···*·{@link·OptionsBase.disposeAfter}·options.\n···*/\n··export·type·Disposer<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·DisposeReason,\n··)·=>·void\n\n··/**\n···*·The·reason·why·an·item·was·added·to·the·cache,·passed\n···*·to·the·{@link·Inserter}·methods.\n···*\n···*·-·`add`:·the·item·was·not·found·in·the·cache,·and·was·added\n···*·-·`update`:·the·item·was·in·the·cache,·with·the·same·value·provided\n···*·-·`replace`:·the·item·was·in·the·cache,·and·replaced\n···*/\n··export·type·InsertReason·=·'add'·|·'update'·|·'replace'\n\n··/**\n···*·A·method·called·upon·item·insertion,·passed·as·the\n···*·{@link·OptionsBase.insert}\n···*/\n··export·type·Inserter<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·InsertReason,\n··)·=>·void\n\n··/**\n···*·A·function·that·returns·the·effective·calculated·size\n···*·of·an·entry·in·the·cache.\n···*/\n··export·type·SizeCalculator<K,·V>·=·(value:·V,·key:·K)·=>·Size\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.fetchMethod}·function.\n···*/\n··export·interface·FetcherOptions<K,·V,·FC·=·unknown>·{\n····signal:·AbortSignal\n····options:·FetcherFetchOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·FetchOptions.context}·option·to\n·····*·{@link·LRUCache#fetch}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·Occasionally,·it·may·be·useful·to·track·the·internal·behavior·of·the\n···*·cache,·particularly·for·logging,·debugging,·or·for·behavior·within·the\n···*·`fetchMethod`.·To·do·this,·you·can·pass·a·`status`·object·to·the\n···*·{@link·LRUCache#fetch},·{@link·LRUCache#get},·{@link·LRUCache#set},\n···*·{@link·LRUCache#memo},·and·{@link·LRUCache#has}·methods.\n···*\n···*·The·`status`·option·should·be·a·plain·JavaScript·object.·The·following\n···*·fields·will·be·set·on·it·appropriately,·depending·on·the·situation.\n···*/\n··export·interface·Status<V>·{\n····/**\n·····*·The·status·of·a·set()·operation.\n·····*\n·····*·-·add:·the·item·was·not·found·in·the·cache,·and·was·added\n·····*·-·update:·the·item·was·in·the·cache,·with·the·same·value·provided\n·····*·-·replace:·the·item·was·in·the·cache,·and·replaced\n·····*·-·miss:·the·item·was·not·added·to·the·cache·for·some·reason\n·····*/\n····set?:·'add'·|·'update'·|·'replace'·|·'miss'\n\n····/**\n·····*·the·ttl·stored·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·the·start·time·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····start?:·Milliseconds\n\n····/**\n·····*·The·timestamp·used·for·TTL·calculation\n·····*/\n····now?:·Milliseconds\n\n····/**\n·····*·the·remaining·ttl·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····remainingTTL?:·Milliseconds\n\n····/**\n·····*·The·calculated·size·for·the·item,·if·sizes·are·used.\n·····*/\n····entrySize?:·Size\n\n····/**\n·····*·The·total·calculated·size·of·the·cache,·if·sizes·are·used.\n·····*/\n····totalCalculatedSize?:·Size\n\n····/**\n·····*·A·flag·indicating·that·the·item·was·not·stored,·due·to·exceeding·the\n·····*·{@link·OptionsBase.maxEntrySize}\n·····*/\n····maxEntrySizeExceeded?:·true\n\n····/**\n·····*·The·old·value,·specified·in·the·case·of·`set:'update'`·or\n·····*·`set:'replace'`\n·····*/\n····oldValue?:·V\n\n····/**\n·····*·The·results·of·a·{@link·LRUCache#has}·operation\n·····*\n·····*·-·hit:·the·item·was·found·in·the·cache\n·····*·-·stale:·the·item·was·found·in·the·cache,·but·is·stale\n·····*·-·miss:·the·item·was·not·found·in·the·cache\n·····*/\n····has?:·'hit'·|·'stale'·|·'miss'\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#fetch}·operation.\n·····*·Note·that·this·can·change·as·the·underlying·fetch()·moves·through\n·····*·various·states.\n·····*\n·····*·-·inflight:·there·is·another·fetch()·for·this·key·which·is·in·process\n·····*·-·get:·there·is·no·{@link·OptionsBase.fetchMethod},·so\n·····*···{@link·LRUCache#get}·was·called.\n·····*·-·miss:·the·item·is·not·in·cache,·and·will·be·fetched.\n·····*·-·hit:·the·item·is·in·the·cache,·and·was·resolved·immediately.\n·····*·-·stale:·the·item·is·in·the·cache,·but·stale.\n·····*·-·refresh:·the·item·is·in·the·cache,·and·not·stale,·but\n·····*···{@link·FetchOptions.forceRefresh}·was·specified.\n·····*/\n····fetch?:·'get'·|·'inflight'·|·'miss'·|·'hit'·|·'stale'·|·'refresh'\n\n····/**\n·····*·The·{@link·OptionsBase.fetchMethod}·was·called\n·····*/\n····fetchDispatched?:·true\n\n····/**\n·····*·The·cached·value·was·updated·after·a·successful·call·to\n·····*·{@link·OptionsBase.fetchMethod}\n·····*/\n····fetchUpdated?:·true\n\n····/**\n·····*·The·reason·for·a·fetch()·rejection.··Either·the·error·raised·by·the\n·····*·{@link·OptionsBase.fetchMethod},·or·the·reason·for·an\n·····*·AbortSignal.\n·····*/\n····fetchError?:·Error\n\n····/**\n·····*·The·fetch·received·an·abort·signal\n·····*/\n····fetchAborted?:·true\n\n····/**\n·····*·The·abort·signal·received·was·ignored,·and·the·fetch·was·allowed·to\n·····*·continue.\n·····*/\n····fetchAbortIgnored?:·true\n\n····/**\n·····*·The·fetchMethod·promise·resolved·successfully\n·····*/\n····fetchResolved?:·true\n\n····/**\n·····*·The·fetchMethod·promise·was·rejected\n·····*/\n····fetchRejected?:·true\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#get}·operation.\n·····*\n·····*·-·fetching:·The·item·is·currently·being·fetched.··If·a·previous·value\n·····*···is·present·and·allowed,·that·will·be·returned.\n·····*·-·stale:·The·item·is·in·the·cache,·and·is·stale.\n·····*·-·hit:·the·item·is·in·the·cache\n·····*·-·miss:·the·item·is·not·in·the·cache\n·····*/\n····get?:·'stale'·|·'hit'·|·'miss'\n\n····/**\n·····*·A·fetch·or·get·operation·returned·a·stale·value.\n·····*/\n····returnedStale?:·true\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#fetch}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·OptionsBase.noDeleteOnFetchRejection},\n···*·{@link·OptionsBase.allowStaleOnFetchRejection},\n···*·{@link·FetchOptions.forceRefresh},·and\n···*·{@link·FetcherOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.fetchMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·fetchMethod·is·called.\n···*/\n··export·interface·FetcherFetchOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#fetch}·method.\n···*/\n··export·interface·FetchOptions<K,·V,·FC>\n····extends·FetcherFetchOptions<K,·V,·FC>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.fetchMethod}·as\n·····*·the·{@link·FetcherOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····signal?:·AbortSignal\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·FetchOptionsWithContext<K,·V,·FC>\n····extends·FetchOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·FetchOptionsNoContext<K,·V>\n····extends·FetchOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··export·interface·MemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.memoMethod}·as\n·····*·the·{@link·MemoizerOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·MemoOptionsWithContext<K,·V,·FC>\n····extends·MemoOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·MemoOptionsNoContext<K,·V>\n····extends·MemoOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.memoMethod}·function.\n···*/\n··export·interface·MemoizerOptions<K,·V,·FC·=·unknown>·{\n····options:·MemoizerMemoOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·MemoOptions.context}·option·to\n·····*·{@link·LRUCache#memo}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#memo}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·MemoOptions.forceRefresh},·and\n···*·{@link·MemoOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.memoMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·memoMethod·is·called.\n···*/\n··export·interface·MemoizerMemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n····start?:·Milliseconds\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#has}·method.\n···*/\n··export·interface·HasOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'updateAgeOnHas'>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#get}·method.\n···*/\n··export·interface·GetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'allowStale'·|·'updateAgeOnGet'·|·'noDeleteOnStaleGet'\n····>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#peek}·method.\n···*/\n··export·interface·PeekOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'allowStale'>·{}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#set}·method.\n···*/\n··export·interface·SetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'sizeCalculation'·|·'ttl'·|·'noDisposeOnSet'·|·'noUpdateTTL'\n····>·{\n····/**\n·····*·If·size·tracking·is·enabled,·then·setting·an·explicit·size\n·····*·in·the·{@link·LRUCache#set}·call·will·prevent·calling·the\n·····*·{@link·OptionsBase.sizeCalculation}·function.\n·····*/\n····size?:·Size\n····/**\n·····*·If·TTL·tracking·is·enabled,·then·setting·an·explicit·start\n·····*·time·in·the·{@link·LRUCache#set}·call·will·override·the\n·····*·default·time·from·`performance.now()`·or·`Date.now()`.\n·····*\n·····*·Note·that·it·must·be·a·valid·value·for·whichever·time-tracking\n·····*·method·is·in·use.\n·····*/\n····start?:·Milliseconds\n····status?:·Status<V>\n··}\n\n··/**\n···*·The·type·signature·for·the·{@link·OptionsBase.fetchMethod}·option.\n···*/\n··export·type·Fetcher<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·FetcherOptions<K,·V,·FC>,\n··)·=>·Promise<V·|·undefined·|·void>·|·V·|·undefined·|·void\n\n··/**\n···*·the·type·signature·for·the·{@link·OptionsBase.memoMethod}·option.\n···*/\n··export·type·Memoizer<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·MemoizerOptions<K,·V,·FC>,\n··)·=>·V\n\n··/**\n···*·Options·which·may·be·passed·to·the·{@link·LRUCache}·constructor.\n···*\n···*·Most·of·these·may·be·overridden·in·the·various·options·that·use\n···*·them.\n···*\n···*·Despite·all·being·technically·optional,·the·constructor·requires·that\n···*·a·cache·is·at·minimum·limited·by·one·or·more·of·{@link·OptionsBase.max},\n···*·{@link·OptionsBase.ttl},·or·{@link·OptionsBase.maxSize}.\n···*\n···*·If·{@link·OptionsBase.ttl}·is·used·alone,·then·it·is·strongly·advised\n···*·(and·in·fact·required·by·the·type·definitions·here)·that·the·cache\n···*·also·set·{@link·OptionsBase.ttlAutopurge},·to·prevent·potentially\n···*·unbounded·storage.\n···*\n···*·All·options·are·also·available·on·the·{@link·LRUCache}·instance,·making\n···*·it·safe·to·pass·an·LRUCache·instance·as·the·options·argumemnt·to\n···*·make·another·empty·cache·of·the·same·type.\n···*\n···*·Some·options·are·marked·as·read-only,·because·changing·them·after\n···*·instantiation·is·not·safe.·Changing·any·of·the·other·options·will·of\n···*·course·only·have·an·effect·on·subsequent·method·calls.\n···*/\n··export·interface·OptionsBase<K,·V,·FC>·{\n····/**\n·····*·The·maximum·number·of·items·to·store·in·the·cache·before·evicting\n·····*·old·entries.·This·is·read-only·on·the·{@link·LRUCache}·instance,\n·····*·and·may·not·be·overridden.\n·····*\n·····*·If·set,·then·storage·space·will·be·pre-allocated·at·construction\n·····*·time,·and·the·cache·will·perform·significantly·faster.\n·····*\n·····*·Note·that·significantly·fewer·items·may·be·stored,·if\n·····*·{@link·OptionsBase.maxSize}·and/or·{@link·OptionsBase.ttl}·are·also\n·····*·set.\n·····*\n·····*·**It·is·strongly·recommended·to·set·a·`max`·to·prevent·unbounded·growth\n·····*·of·the·cache.**\n·····*/\n····max?:·Count\n\n····/**\n·····*·Max·time·in·milliseconds·for·items·to·live·in·cache·before·they·are\n·····*·considered·stale.··Note·that·stale·items·are·NOT·preemptively·removed·by\n·····*·default,·and·MAY·live·in·the·cache,·contributing·to·its·LRU·max,·long\n·····*·after·they·have·expired,·unless·{@link·OptionsBase.ttlAutopurge}·is\n·····*·set.\n·····*\n·····*·If·set·to·`0`·(the·default·value),·then·that·means·\"do·not·track\n·····*·TTL\",·not·\"expire·immediately\".\n·····*\n·····*·Also,·as·this·cache·is·optimized·for·LRU/MRU·operations,·some·of\n·····*·the·staleness/TTL·checks·will·reduce·performance,·as·they·will·incur\n·····*·overhead·by·deleting·items.\n·····*\n·····*·This·is·not·primarily·a·TTL·cache,·and·does·not·make·strong·TTL\n·····*·guarantees.·There·is·no·pre-emptive·pruning·of·expired·items,·but·you\n·····*·_may_·set·a·TTL·on·the·cache,·and·it·will·treat·expired·items·as·missing\n·····*·when·they·are·fetched,·and·delete·them.\n·····*\n·····*·Optional,·but·must·be·a·non-negative·integer·in·ms·if·specified.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.set()`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·ttl·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·If·ttl·tracking·is·enabled,·and·`max`·and·`maxSize`·are·not·set,\n·····*·and·`ttlAutopurge`·is·not·set,·then·a·warning·will·be·emitted\n·····*·cautioning·about·the·potential·for·unbounded·memory·consumption.\n·····*·(The·TypeScript·definitions·will·also·discourage·this.)\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·Minimum·amount·of·time·in·ms·in·which·to·check·for·staleness.\n·····*·Defaults·to·1,·which·means·that·the·current·time·is·checked\n·····*·at·most·once·per·millisecond.\n·····*\n·····*·Set·to·0·to·check·the·current·time·every·time·staleness·is·tested.\n·····*·(This·reduces·performance,·and·is·theoretically·unnecessary.)\n·····*\n·····*·Setting·this·to·a·higher·value·will·improve·performance·somewhat\n·····*·while·using·ttl·tracking,·albeit·at·the·expense·of·keeping·stale\n·····*·items·around·a·bit·longer·than·their·TTLs·would·indicate.\n·····*\n·····*·@default·1\n·····*/\n····ttlResolution?:·Milliseconds\n\n····/**\n·····*·Preemptively·remove·stale·items·from·the·cache.\n·····*\n·····*·Note·that·this·may·*significantly*·degrade·performance,·especially·if\n·····*·the·cache·is·storing·a·large·number·of·items.·It·is·almost·always·best\n·····*·to·just·leave·the·stale·items·in·the·cache,·and·let·them·fall·out·as·new\n·····*·items·are·added.\n·····*\n·····*·Note·that·this·means·that·{@link·OptionsBase.allowStale}·is·a·bit\n·····*·pointless,·as·stale·items·will·be·deleted·almost·as·soon·as·they\n·····*·expire.\n·····*\n·····*·Use·with·caution!\n·····*/\n····ttlAutopurge?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·it·is·retrieved·from·cache·with\n·····*·{@link·LRUCache#get},·causing·it·to·not·expire.·(It·can·still·fall·out\n·····*·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*/\n····updateAgeOnGet?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·its·presence·in·the·cache·is\n·····*·checked·with·{@link·LRUCache#has},·causing·it·to·not·expire.·(It·can\n·····*·still·fall·out·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*/\n····updateAgeOnHas?:·boolean\n\n····/**\n·····*·Allow·{@link·LRUCache#get}·and·{@link·LRUCache#fetch}·calls·to·return\n·····*·stale·data,·if·available.\n·····*\n·····*·By·default,·if·you·set·`ttl`,·stale·items·will·only·be·deleted·from·the\n·····*·cache·when·you·`get(key)`.·That·is,·it's·not·preemptively·pruning·items,\n·····*·unless·{@link·OptionsBase.ttlAutopurge}·is·set.\n·····*\n·····*·If·you·set·`allowStale:true`,·it'll·return·the·stale·value·*as·well·as*\n·····*·deleting·it.·If·you·don't·set·this,·then·it'll·return·`undefined`·when\n·····*·you·try·to·get·a·stale·entry.\n·····*\n·····*·Note·that·when·a·stale·entry·is·fetched,·_even·if·it·is·returned·due·to\n·····*·`allowStale`·being·set_,·it·is·removed·from·the·cache·immediately.·You\n·····*·can·suppress·this·behavior·by·setting\n·····*·{@link·OptionsBase.noDeleteOnStaleGet},·either·in·the·constructor,·or·in\n·····*·the·options·provided·to·{@link·LRUCache#get}.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*·The·`cache.has()`·method·will·always·return·`false`·for·stale·items.\n·····*\n·····*·Only·relevant·if·a·ttl·is·set.\n·····*/\n····allowStale?:·boolean\n\n····/**\n·····*·Function·that·is·called·on·items·when·they·are·dropped·from·the\n·····*·cache,·as·`dispose(value,·key,·reason)`.\n·····*\n·····*·This·can·be·handy·if·you·want·to·close·file·descriptors·or·do\n·····*·other·cleanup·tasks·when·items·are·no·longer·stored·in·the·cache.\n·····*\n·····*·**NOTE**:·It·is·called·_before_·the·item·has·been·fully·removed\n·····*·from·the·cache,·so·if·you·want·to·put·it·right·back·in,·you·need\n·····*·to·wait·until·the·next·tick.·If·you·try·to·add·it·back·in·during\n·····*·the·`dispose()`·function·call,·it·will·break·things·in·subtle·and\n·····*·weird·ways.\n·····*\n·····*·Unlike·several·other·options,·this·may·_not_·be·overridden·by\n·····*·passing·an·option·to·`set()`,·for·performance·reasons.\n·····*\n·····*·The·`reason`·will·be·one·of·the·following·strings,·corresponding\n·····*·to·the·reason·for·the·item's·deletion:\n·····*\n·····*·-·`evict`·Item·was·evicted·to·make·space·for·a·new·addition\n·····*·-·`set`·Item·was·overwritten·by·a·new·value\n·····*·-·`expire`·Item·expired·its·TTL\n·····*·-·`fetch`·Item·was·deleted·due·to·a·failed·or·aborted·fetch,·or·a\n·····*···fetchMethod·returning·`undefined.\n·····*·-·`delete`·Item·was·removed·by·explicit·`cache.delete(key)`,\n·····*···`cache.clear()`,·or·`cache.set(key,·undefined)`.\n·····*/\n····dispose?:·Disposer<K,·V>\n\n····/**\n·····*·Function·that·is·called·when·new·items·are·inserted·into·the·cache,\n·····*·as·`onInsert(value,·key,·reason)`.\n·····*\n·····*·This·can·be·useful·if·you·need·to·perform·actions·when·an·item·is\n·····*·added,·such·as·logging·or·tracking·insertions.\n·····*\n·····*·Unlike·some·other·options,·this·may·_not_·be·overridden·by·passing\n·····*·an·option·to·`set()`,·for·performance·and·consistency·reasons.\n·····*/\n····onInsert?:·Inserter<K,·V>\n\n····/**\n·····*·The·same·as·{@link·OptionsBase.dispose},·but·called·*after*·the·entry\n·····*·is·completely·removed·and·the·cache·is·once·again·in·a·clean·state.\n·····*\n·····*·It·is·safe·to·add·an·item·right·back·into·the·cache·at·this·point.\n·····*·However,·note·that·it·is·*very*·easy·to·inadvertently·create·infinite\n·····*·recursion·this·way.\n·····*/\n····disposeAfter?:·Disposer<K,·V>\n\n····/**\n·····*·Set·to·true·to·suppress·calling·the\n·····*·{@link·OptionsBase.dispose}·function·if·the·entry·key·is\n·····*·still·accessible·within·the·cache.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to\n·····*·{@link·LRUCache#set}.\n·····*\n·····*·Only·relevant·if·`dispose`·or·`disposeAfter`·are·set.\n·····*/\n····noDisposeOnSet?:·boolean\n\n····/**\n·····*·Boolean·flag·to·tell·the·cache·to·not·update·the·TTL·when·setting·a·new\n·····*·value·for·an·existing·key·(ie,·when·updating·a·value·rather·than\n·····*·inserting·a·new·value).··Note·that·the·TTL·value·is·_always_·set·(if\n·····*·provided)·when·adding·a·new·entry·into·the·cache.\n·····*\n·····*·Has·no·effect·if·a·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·May·be·passed·as·an·option·to·{@link·LRUCache#set}.\n·····*/\n····noUpdateTTL?:·boolean\n\n····/**\n·····*·Set·to·a·positive·integer·to·track·the·sizes·of·items·added·to·the\n·····*·cache,·and·automatically·evict·items·in·order·to·stay·below·this·size.\n·····*·Note·that·this·may·result·in·fewer·than·`max`·items·being·stored.\n·····*\n·····*·Attempting·to·add·an·item·to·the·cache·whose·calculated·size·is·greater\n·····*·that·this·amount·will·be·a·no-op.·The·item·will·not·be·cached,·and·no\n·····*·other·items·will·be·evicted.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.\n·····*\n·····*·Sets·`maxEntrySize`·to·the·same·value,·unless·a·different·value·is\n·····*·provided·for·`maxEntrySize`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·size·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·Note·also·that·size·tracking·can·negatively·impact·performance,\n·····*·though·for·most·cases,·only·minimally.\n·····*/\n····maxSize?:·Size\n\n····/**\n·····*·The·maximum·allowed·size·for·any·single·item·in·the·cache.\n·····*\n·····*·If·a·larger·item·is·passed·to·{@link·LRUCache#set}·or·returned·by·a\n·····*·{@link·OptionsBase.fetchMethod}·or·{@link·OptionsBase.memoMethod},·then\n·····*·it·will·not·be·stored·in·the·cache.\n·····*\n·····*·Attempting·to·add·an·item·whose·calculated·size·is·greater·than\n·····*·this·amount·will·not·cache·the·item·or·evict·any·old·items,·but\n·····*·WILL·delete·an·existing·value·if·one·is·already·present.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.·Defaults·to\n·····*·the·value·of·`maxSize`·if·provided.\n·····*/\n····maxEntrySize?:·Size\n\n····/**\n·····*·A·function·that·returns·a·number·indicating·the·item's·size.\n·····*\n·····*·Requires·{@link·OptionsBase.maxSize}·to·be·set.\n·····*\n·····*·If·not·provided,·and·{@link·OptionsBase.maxSize}·or\n·····*·{@link·OptionsBase.maxEntrySize}·are·set,·then·all\n·····*·{@link·LRUCache#set}·calls·**must**·provide·an·explicit\n·····*·{@link·SetOptions.size}·or·sizeCalculation·param.\n·····*/\n····sizeCalculation?:·SizeCalculator<K,·V>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#fetch}\n·····*\n·····*·```ts\n·····*·fetchMethod(key,·staleValue,·{·signal,·options,·context·})\n·····*·```\n·····*\n·····*·If·`fetchMethod`·is·not·provided,·then·`cache.fetch(key)`·is·equivalent\n·····*·to·`Promise.resolve(cache.get(key))`.\n·····*\n·····*·If·at·any·time,·`signal.aborted`·is·set·to·`true`,·or·if·the\n·····*·`signal.onabort`·method·is·called,·or·if·it·emits·an·`'abort'`·event\n·····*·which·you·can·listen·to·with·`addEventListener`,·then·that·means·that\n·····*·the·fetch·should·be·abandoned.·This·may·be·passed·along·to·async\n·····*·functions·aware·of·AbortController/AbortSignal·behavior.\n·····*\n·····*·The·`fetchMethod`·should·**only**·return·`undefined`·or·a·Promise\n·····*·resolving·to·`undefined`·if·the·AbortController·signaled·an·`abort`\n·····*·event.·In·all·other·cases,·it·should·return·or·resolve·to·a·value\n·····*·suitable·for·adding·to·the·cache.\n·····*\n·····*·The·`options`·object·is·a·union·of·the·options·that·may·be·provided·to\n·····*·`set()`·and·`get()`.·If·they·are·modified,·then·that·will·result·in\n·····*·modifying·the·settings·to·`cache.set()`·when·the·value·is·resolved,·and\n·····*·in·the·case·of\n·····*·{@link·OptionsBase.noDeleteOnFetchRejection}·and\n·····*·{@link·OptionsBase.allowStaleOnFetchRejection},·the·handling·of\n·····*·`fetchMethod`·failures.\n·····*\n·····*·For·example,·a·DNS·cache·may·update·the·TTL·based·on·the·value·returned\n·····*·from·a·remote·DNS·server·by·changing·`options.ttl`·in·the·`fetchMethod`.\n·····*/\n····fetchMethod?:·Fetcher<K,·V,·FC>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#memo}\n·····*/\n····memoMethod?:·Memoizer<K,·V,·FC>\n\n····/**\n·····*·Set·to·true·to·suppress·the·deletion·of·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·returns·a·rejected·promise.\n·····*/\n····noDeleteOnFetchRejection?:·boolean\n\n····/**\n·····*·Do·not·delete·stale·items·when·they·are·retrieved·with\n·····*·{@link·LRUCache#get}.\n·····*\n·····*·Note·that·the·`get`·return·value·will·still·be·`undefined`\n·····*·unless·{@link·OptionsBase.allowStale}·is·true.\n·····*\n·····*·When·using·time-expiring·entries·with·`ttl`,·by·default·stale\n·····*·items·will·be·removed·from·the·cache·when·the·key·is·accessed\n·····*·with·`cache.get()`.\n·····*\n·····*·Setting·this·option·will·cause·stale·items·to·remain·in·the·cache,·until\n·····*·they·are·explicitly·deleted·with·`cache.delete(key)`,·or·retrieved·with\n·····*·`noDeleteOnStaleGet`·set·to·`false`.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*\n·····*·Only·relevant·if·a·ttl·is·used.\n·····*/\n····noDeleteOnStaleGet?:·boolean\n\n····/**\n·····*·Set·to·true·to·allow·returning·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·throws·an·error·or·returns·a·rejected\n·····*·promise.\n·····*\n·····*·This·differs·from·using·{@link·OptionsBase.allowStale}·in·that·stale\n·····*·data·will·ONLY·be·returned·in·the·case·that·the·{@link·LRUCache#fetch}\n·····*·fails,·not·any·other·times.\n·····*\n·····*·If·a·`fetchMethod`·fails,·and·there·is·no·stale·value·available,·the\n·····*·`fetch()`·will·resolve·to·`undefined`.·Ie,·all·`fetchMethod`·errors·are\n·····*·suppressed.\n·····*\n·····*·Implies·`noDeleteOnFetchRejection`.\n·····*\n·····*·This·may·be·set·in·calls·to·`fetch()`,·or·defaulted·on·the·constructor,\n·····*·or·overridden·by·modifying·the·options·object·in·the·`fetchMethod`.\n·····*/\n····allowStaleOnFetchRejection?:·boolean\n\n····/**\n·····*·Set·to·true·to·return·a·stale·value·from·the·cache·when·the\n·····*·`AbortSignal`·passed·to·the·{@link·OptionsBase.fetchMethod}·dispatches\n·····*·an·`'abort'`·event,·whether·user-triggered,·or·due·to·internal·cache\n·····*·behavior.\n·····*\n·····*·Unless·{@link·OptionsBase.ignoreFetchAbort}·is·also·set,·the·underlying\n·····*·{@link·OptionsBase.fetchMethod}·will·still·be·considered·canceled,·and\n·····*·any·value·it·returns·will·be·ignored·and·not·cached.\n·····*\n·····*·Caveat:·since·fetches·are·aborted·when·a·new·value·is·explicitly\n·····*·set·in·the·cache,·this·can·lead·to·fetch·returning·a·stale·value,\n·····*·since·that·was·the·fallback·value·_at·the·moment·the·`fetch()`·was\n·····*·initiated_,·even·though·the·new·updated·value·is·now·present·in\n·····*·the·cache.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·cache·=·new·LRUCache<string,·any>({\n·····*···ttl:·100,\n·····*···fetchMethod:·async·(url,·oldValue,·{·signal·})·=>··{\n·····*·····const·res·=·await·fetch(url,·{·signal·})\n·····*·····return·await·res.json()\n·····*···}\n·····*·})\n·····*·cache.set('https://example.com/',·{·some:·'data'·})\n·····*·//·100ms·go·by...\n·····*·const·result·=·cache.fetch('https://example.com/')\n·····*·cache.set('https://example.com/',·{·other:·'thing'·})\n·····*·console.log(await·result)·//·{·some:·'data'·}\n·····*·console.log(cache.get('https://example.com/'))·//·{·other:·'thing'·}\n·····*·```\n·····*/\n····allowStaleOnFetchAbort?:·boolean\n\n····/**\n·····*·Set·to·true·to·ignore·the·`abort`·event·emitted·by·the·`AbortSignal`\n·····*·object·passed·to·{@link·OptionsBase.fetchMethod},·and·still·cache·the\n·····*·resulting·resolution·value,·as·long·as·it·is·not·`undefined`.\n·····*\n·····*·When·used·on·its·own,·this·means·aborted·{@link·LRUCache#fetch}·calls\n·····*·are·not·immediately·resolved·or·rejected·when·they·are·aborted,·and\n·····*·instead·take·the·full·time·to·await.\n·····*\n·····*·When·used·with·{@link·OptionsBase.allowStaleOnFetchAbort},·aborted\n·····*·{@link·LRUCache#fetch}·calls·will·resolve·immediately·to·their·stale\n·····*·cached·value·or·`undefined`,·and·will·continue·to·process·and·eventually\n·····*·update·the·cache·when·they·resolve,·as·long·as·the·resulting·value·is\n·····*·not·`undefined`,·thus·supporting·a·\"return·stale·on·timeout·while\n·····*·refreshing\"·mechanism·by·passing·`AbortSignal.timeout(n)`·as·the·signal.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·c·=·new·LRUCache({\n·····*···ttl:·100,\n·····*···ignoreFetchAbort:·true,\n·····*···allowStaleOnFetchAbort:·true,\n·····*···fetchMethod:·async·(key,·oldValue,·{·signal·})·=>·{\n·····*·····//·note:·do·NOT·pass·the·signal·to·fetch()!\n·····*·····//·let's·say·this·fetch·can·take·a·long·time.\n·····*·····const·res·=·await·fetch(`https://slow-backend-server/${key}`)\n·····*·····return·await·res.json()\n·····*···},\n·····*·})\n·····*\n·····*·//·this·will·return·the·stale·value·after·100ms,·while·still\n·····*·//·updating·in·the·background·for·next·time.\n·····*·const·val·=·await·c.fetch('key',·{·signal:·AbortSignal.timeout(100)·})\n·····*·```\n·····*\n·····*·**Note**:·regardless·of·this·setting,·an·`abort`·event·_is·still\n·····*·emitted·on·the·`AbortSignal`·object_,·so·may·result·in·invalid·results\n·····*·when·passed·to·other·underlying·APIs·that·use·AbortSignals.\n·····*\n·····*·This·may·be·overridden·in·the·{@link·OptionsBase.fetchMethod}·or·the\n·····*·call·to·{@link·LRUCache#fetch}.\n·····*/\n····ignoreFetchAbort?:·boolean\n\n····/**\n·····*·In·some·cases,·you·may·want·to·swap·out·the·performance/Date·object\n·····*·used·for·TTL·tracking.·This·should·almost·certainly·NOT·be·done·in\n·····*·production·environments!\n·····*\n·····*·This·value·defaults·to·`global.performance`·if·it·has·a·`now()`·method,\n·····*·or·the·`global.Date`·object·otherwise.\n·····*/\n····perf?:·Perf\n··}\n\n··export·interface·OptionsMaxLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····max:·Count\n··}\n··export·interface·OptionsTTLLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····ttl:·Milliseconds\n····ttlAutopurge:·boolean\n··}\n··export·interface·OptionsSizeLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····maxSize:·Size\n··}\n\n··/**\n···*·The·valid·safe·options·for·the·{@link·LRUCache}·constructor\n···*/\n··export·type·Options<K,·V,·FC>·=\n····|·OptionsMaxLimit<K,·V,·FC>\n····|·OptionsSizeLimit<K,·V,·FC>\n····|·OptionsTTLLimit<K,·V,·FC>\n\n··/**\n···*·Entry·objects·used·by·{@link·LRUCache#load}·and·{@link·LRUCache#dump},\n···*·and·returned·by·{@link·LRUCache#info}.\n···*/\n··export·interface·Entry<V>·{\n····value:·V\n····ttl?:·Milliseconds\n····size?:·Size\n····start?:·Milliseconds\n··}\n}\n\n/**\n·*·Default·export,·the·thing·you're·using·this·module·to·get.\n·*\n·*·The·`K`·and·`V`·types·define·the·key·and·value·types,·respectively.·The\n·*·optional·`FC`·type·defines·the·type·of·the·`context`·object·passed·to\n·*·`cache.fetch()`·and·`cache.memo()`.\n·*\n·*·Keys·and·values·**must·not**·be·`null`·or·`undefined`.\n·*\n·*·All·properties·from·the·options·object·(with·the·exception·of·`max`,\n·*·`maxSize`,·`fetchMethod`,·`memoMethod`,·`dispose`·and·`disposeAfter`)·are\n·*·added·as·normal·public·members.·(The·listed·options·are·read-only·getters.)\n·*\n·*·Changing·any·of·these·will·alter·the·defaults·for·subsequent·method·calls.\n·*/\nexport·class·LRUCache<K·extends·{},·V·extends·{},·FC·=·unknown>·{\n··//·options·that·cannot·be·changed·without·disaster\n··readonly·#max:·LRUCache.Count\n··readonly·#maxSize:·LRUCache.Size\n··readonly·#dispose?:·LRUCache.Disposer<K,·V>\n··readonly·#onInsert?:·LRUCache.Inserter<K,·V>\n··readonly·#disposeAfter?:·LRUCache.Disposer<K,·V>\n··readonly·#fetchMethod?:·LRUCache.Fetcher<K,·V,·FC>\n··readonly·#memoMethod?:·LRUCache.Memoizer<K,·V,·FC>\n··readonly·#perf:·Perf\n\n··/**\n···*·{@link·LRUCache.OptionsBase.perf}\n···*/\n··get·perf()·{\n····return·this.#perf\n··}\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttl}\n···*/\n··ttl:·LRUCache.Milliseconds\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlResolution}\n···*/\n··ttlResolution:·LRUCache.Milliseconds\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlAutopurge}\n···*/\n··ttlAutopurge:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnGet}\n···*/\n··updateAgeOnGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}\n···*/\n··updateAgeOnHas:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStale}\n···*/\n··allowStale:·boolean\n\n··/**\n···*·{@link·LRUCache.OptionsBase.noDisposeOnSet}\n···*/\n··noDisposeOnSet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noUpdateTTL}\n···*/\n··noUpdateTTL:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.maxEntrySize}\n···*/\n··maxEntrySize:·LRUCache.Size\n··/**\n···*·{@link·LRUCache.OptionsBase.sizeCalculation}\n···*/\n··sizeCalculation?:·LRUCache.SizeCalculator<K,·V>\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnFetchRejection}\n···*/\n··noDeleteOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnStaleGet}\n···*/\n··noDeleteOnStaleGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort}\n···*/\n··allowStaleOnFetchAbort:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}\n···*/\n··allowStaleOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.ignoreFetchAbort}\n···*/\n··ignoreFetchAbort:·boolean\n\n··//·computed·properties\n··#size:·LRUCache.Count\n··#calculatedSize:·LRUCache.Size\n··#keyMap:·Map<K,·Index>\n··#keyList:·(K·|·undefined)[]\n··#valList:·(V·|·BackgroundFetch<V>·|·undefined)[]\n··#next:·NumberArray\n··#prev:·NumberArray\n··#head:·Index\n··#tail:·Index\n··#free:·StackLike\n··#disposed?:·DisposeTask<K,·V>[]\n··#sizes?:·ZeroArray\n··#starts?:·ZeroArray\n··#ttls?:·ZeroArray\n··#autopurgeTimers?:·(undefined·|·ReturnType<typeof·setTimeout>)[]\n\n··#hasDispose:·boolean\n··#hasFetchMethod:·boolean\n··#hasDisposeAfter:·boolean\n··#hasOnInsert:·boolean\n\n··/**\n···*·Do·not·call·this·method·unless·you·need·to·inspect·the\n···*·inner·workings·of·the·cache.··If·anything·returned·by·this\n···*·object·is·modified·in·any·way,·strange·breakage·may·occur.\n···*\n···*·These·fields·are·private·for·a·reason!\n···*\n···*·@internal\n···*/\n··static·unsafeExposeInternals<\n····K·extends·{},\n····V·extends·{},\n····FC·extends·unknown·=·unknown,\n··>(c:·LRUCache<K,·V,·FC>)·{\n····return·{\n······//·properties\n······starts:·c.#starts,\n······ttls:·c.#ttls,\n······autopurgeTimers:·c.#autopurgeTimers,\n······sizes:·c.#sizes,\n······keyMap:·c.#keyMap·as·Map<K,·number>,\n······keyList:·c.#keyList,\n······valList:·c.#valList,\n······next:·c.#next,\n······prev:·c.#prev,\n······get·head()·{\n········return·c.#head\n······},\n······get·tail()·{\n········return·c.#tail\n······},\n······free:·c.#free,\n······//·methods\n······isBackgroundFetch:·(p:·any)·=>·c.#isBackgroundFetch(p),\n······backgroundFetch:·(\n········k:·K,\n········index:·number·|·undefined,\n········options:·LRUCache.FetchOptions<K,·V,·FC>,\n········context:·any,\n······):·BackgroundFetch<V>·=>\n········c.#backgroundFetch(\n··········k,\n··········index·as·Index·|·undefined,\n··········options,\n··········context,\n········),\n······moveToTail:·(index:·number):·void·=>·c.#moveToTail(index·as·Index),\n······indexes:·(options?:·{·allowStale:·boolean·})·=>·c.#indexes(options),\n······rindexes:·(options?:·{·allowStale:·boolean·})·=>\n········c.#rindexes(options),\n······isStale:·(index:·number·|·undefined)·=>·c.#isStale(index·as·Index),\n····}\n··}\n\n··//·Protected·read-only·members\n\n··/**\n···*·{@link·LRUCache.OptionsBase.max}·(read-only)\n···*/\n··get·max():·LRUCache.Count·{\n····return·this.#max\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.maxSize}·(read-only)\n···*/\n··get·maxSize():·LRUCache.Count·{\n····return·this.#maxSize\n··}\n··/**\n···*·The·total·computed·size·of·items·in·the·cache·(read-only)\n···*/\n··get·calculatedSize():·LRUCache.Size·{\n····return·this.#calculatedSize\n··}\n··/**\n···*·The·number·of·items·stored·in·the·cache·(read-only)\n···*/\n··get·size():·LRUCache.Count·{\n····return·this.#size\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·(read-only)\n···*/\n··get·fetchMethod():·LRUCache.Fetcher<K,·V,·FC>·|·undefined·{\n····return·this.#fetchMethod\n··}\n··get·memoMethod():·LRUCache.Memoizer<K,·V,·FC>·|·undefined·{\n····return·this.#memoMethod\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.dispose}·(read-only)\n···*/\n··get·dispose()·{\n····return·this.#dispose\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.onInsert}·(read-only)\n···*/\n··get·onInsert()·{\n····return·this.#onInsert\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.disposeAfter}·(read-only)\n···*/\n··get·disposeAfter()·{\n····return·this.#disposeAfter\n··}\n\n··constructor(options:·LRUCache.Options<K,·V,·FC>·|·LRUCache<K,·V,·FC>)·{\n····const·{\n······max·=·0,\n······ttl,\n······ttlResolution·=·1,\n······ttlAutopurge,\n······updateAgeOnGet,\n······updateAgeOnHas,\n······allowStale,\n······dispose,\n······onInsert,\n······disposeAfter,\n······noDisposeOnSet,\n······noUpdateTTL,\n······maxSize·=·0,\n······maxEntrySize·=·0,\n······sizeCalculation,\n······fetchMethod,\n······memoMethod,\n······noDeleteOnFetchRejection,\n······noDeleteOnStaleGet,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······perf,\n····}·=·options\n\n····if·(perf·!==·undefined)·{\n······if·(typeof·perf?.now·!==·'function')·{\n········throw·new·TypeError(\n··········'perf·option·must·have·a·now()·method·if·specified',\n········)\n······}\n····}\n\n····this.#perf·=·perf·??·defaultPerf\n\n····if·(max·!==·0·&&·!isPosInt(max))·{\n······throw·new·TypeError('max·option·must·be·a·nonnegative·integer')\n····}\n\n····const·UintArray·=·max·?·getUintArray(max)·:·Array\n····if·(!UintArray)·{\n······throw·new·Error('invalid·max·value:·'·+·max)\n····}\n\n····this.#max·=·max\n····this.#maxSize·=·maxSize\n····this.maxEntrySize·=·maxEntrySize·||·this.#maxSize\n····this.sizeCalculation·=·sizeCalculation\n····if·(this.sizeCalculation)·{\n······if·(!this.#maxSize·&&·!this.maxEntrySize)·{\n········throw·new·TypeError(\n··········'cannot·set·sizeCalculation·without·setting·maxSize·or·maxEntrySize',\n········)\n······}\n······if·(typeof·this.sizeCalculation·!==·'function')·{\n········throw·new·TypeError('sizeCalculation·set·to·non-function')\n······}\n····}\n\n····if·(memoMethod·!==·undefined·&&·typeof·memoMethod·!==·'function')·{\n······throw·new·TypeError('memoMethod·must·be·a·function·if·defined')\n····}\n····this.#memoMethod·=·memoMethod\n\n····if·(fetchMethod·!==·undefined·&&·typeof·fetchMethod·!==·'function')·{\n······throw·new·TypeError('fetchMethod·must·be·a·function·if·specified')\n····}\n····this.#fetchMethod·=·fetchMethod\n····this.#hasFetchMethod·=·!!fetchMethod\n\n····this.#keyMap·=·new·Map()\n····this.#keyList·=·new·Array(max).fill(undefined)\n····this.#valList·=·new·Array(max).fill(undefined)\n····this.#next·=·new·UintArray(max)\n····this.#prev·=·new·UintArray(max)\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free·=·Stack.create(max)\n····this.#size·=·0\n····this.#calculatedSize·=·0\n\n····if·(typeof·dispose·===·'function')·{\n······this.#dispose·=·dispose\n····}\n····if·(typeof·onInsert·===·'function')·{\n······this.#onInsert·=·onInsert\n····}\n····if·(typeof·disposeAfter·===·'function')·{\n······this.#disposeAfter·=·disposeAfter\n······this.#disposed·=·[]\n····}·else·{\n······this.#disposeAfter·=·undefined\n······this.#disposed·=·undefined\n····}\n····this.#hasDispose·=·!!this.#dispose\n····this.#hasOnInsert·=·!!this.#onInsert\n····this.#hasDisposeAfter·=·!!this.#disposeAfter\n\n····this.noDisposeOnSet·=·!!noDisposeOnSet\n····this.noUpdateTTL·=·!!noUpdateTTL\n····this.noDeleteOnFetchRejection·=·!!noDeleteOnFetchRejection\n····this.allowStaleOnFetchRejection·=·!!allowStaleOnFetchRejection\n····this.allowStaleOnFetchAbort·=·!!allowStaleOnFetchAbort\n····this.ignoreFetchAbort·=·!!ignoreFetchAbort\n\n····//·NB:·maxEntrySize·is·set·to·maxSize·if·it's·set\n····if·(this.maxEntrySize·!==·0)·{\n······if·(this.#maxSize·!==·0)·{\n········if·(!isPosInt(this.#maxSize))·{\n··········throw·new·TypeError(\n············'maxSize·must·be·a·positive·integer·if·specified',\n··········)\n········}\n······}\n······if·(!isPosInt(this.maxEntrySize))·{\n········throw·new·TypeError(\n··········'maxEntrySize·must·be·a·positive·integer·if·specified',\n········)\n······}\n······this.#initializeSizeTracking()\n····}\n\n····this.allowStale·=·!!allowStale\n····this.noDeleteOnStaleGet·=·!!noDeleteOnStaleGet\n····this.updateAgeOnGet·=·!!updateAgeOnGet\n····this.updateAgeOnHas·=·!!updateAgeOnHas\n····this.ttlResolution·=\n······isPosInt(ttlResolution)·||·ttlResolution·===·0·?·ttlResolution·:·1\n····this.ttlAutopurge·=·!!ttlAutopurge\n····this.ttl·=·ttl·||·0\n····if·(this.ttl)·{\n······if·(!isPosInt(this.ttl))·{\n········throw·new·TypeError('ttl·must·be·a·positive·integer·if·specified')\n······}\n······this.#initializeTTLTracking()\n····}\n\n····//·do·not·allow·completely·unbounded·caches\n····if·(this.#max·===·0·&&·this.ttl·===·0·&&·this.#maxSize·===·0)·{\n······throw·new·TypeError(\n········'At·least·one·of·max,·maxSize,·or·ttl·is·required',\n······)\n····}\n····if·(!this.ttlAutopurge·&&·!this.#max·&&·!this.#maxSize)·{\n······const·code·=·'LRU_CACHE_UNBOUNDED'\n······if·(shouldWarn(code))·{\n········warned.add(code)\n········const·msg·=\n··········'TTL·caching·without·ttlAutopurge,·max,·or·maxSize·can·'·+\n··········'result·in·unbounded·memory·consumption.'\n········emitWarning(msg,·'UnboundedCacheWarning',·code,·LRUCache)\n······}\n····}\n··}\n\n··/**\n···*·Return·the·number·of·ms·left·in·the·item's·TTL.·If·item·is·not·in·cache,\n···*·returns·`0`.·Returns·`Infinity`·if·item·is·in·cache·without·a·defined·TTL.\n···*/\n··getRemainingTTL(key:·K)·{\n····return·this.#keyMap.has(key)·?·Infinity·:·0\n··}\n\n··#initializeTTLTracking()·{\n····const·ttls·=·new·ZeroArray(this.#max)\n····const·starts·=·new·ZeroArray(this.#max)\n····this.#ttls·=·ttls\n····this.#starts·=·starts\n····const·purgeTimers·=\n······this.ttlAutopurge·?\n········new·Array<undefined·|·ReturnType<typeof·setTimeout>>(this.#max)\n······:·undefined\n····this.#autopurgeTimers·=·purgeTimers\n\n····this.#setItemTTL·=·(index,·ttl,·start·=·this.#perf.now())·=>·{\n······starts[index]·=·ttl·!==·0·?·start·:·0\n······ttls[index]·=·ttl\n······//·clear·out·the·purge·timer·if·we're·setting·TTL·to·0,·and\n······//·previously·had·a·ttl·purge·timer·running,·so·it·doesn't\n······//·fire·unnecessarily.\n······if·(purgeTimers?.[index])·{\n········clearTimeout(purgeTimers[index])\n········purgeTimers[index]·=·undefined\n······}\n······if·(ttl·!==·0·&&·purgeTimers)·{\n········const·t·=·setTimeout(()·=>·{\n··········if·(this.#isStale(index))·{\n············this.#delete(this.#keyList[index]·as·K,·'expire')\n··········}\n········},·ttl·+·1)\n········//·unref()·not·supported·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n········purgeTimers[index]·=·t\n······}\n····}\n\n····this.#updateItemAge·=·index·=>·{\n······starts[index]·=·ttls[index]·!==·0·?·this.#perf.now()·:·0\n····}\n\n····this.#statusTTL·=·(status,·index)·=>·{\n······if·(ttls[index])·{\n········const·ttl·=·ttls[index]\n········const·start·=·starts[index]\n········/*·c8·ignore·next·*/\n········if·(!ttl·||·!start)·return\n········status.ttl·=·ttl\n········status.start·=·start\n········status.now·=·cachedNow·||·getNow()\n········const·age·=·status.now·-·start\n········status.remainingTTL·=·ttl·-·age\n······}\n····}\n\n····//·debounce·calls·to·perf.now()·to·1s·so·we're·not·hitting\n····//·that·costly·call·repeatedly.\n····let·cachedNow·=·0\n····const·getNow·=·()·=>·{\n······const·n·=·this.#perf.now()\n······if·(this.ttlResolution·>·0)·{\n········cachedNow·=·n\n········const·t·=·setTimeout(()·=>·(cachedNow·=·0),·this.ttlResolution)\n········//·not·available·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n······}\n······return·n\n····}\n\n····this.getRemainingTTL·=·key·=>·{\n······const·index·=·this.#keyMap.get(key)\n······if·(index·===·undefined)·{\n········return·0\n······}\n······const·ttl·=·ttls[index]\n······const·start·=·starts[index]\n······if·(!ttl·||·!start)·{\n········return·Infinity\n······}\n······const·age·=·(cachedNow·||·getNow())·-·start\n······return·ttl·-·age\n····}\n\n····this.#isStale·=·index·=>·{\n······const·s·=·starts[index]\n······const·t·=·ttls[index]\n······return·!!t·&&·!!s·&&·(cachedNow·||·getNow())·-·s·>·t\n····}\n··}\n\n··//·conditionally·set·private·methods·related·to·TTL\n··#updateItemAge:·(index:·Index)·=>·void·=·()·=>·{}\n··#statusTTL:·(status:·LRUCache.Status<V>,·index:·Index)·=>·void·=·()·=>·{}\n··#setItemTTL:·(\n····index:·Index,\n····ttl:·LRUCache.Milliseconds,\n····start?:·LRUCache.Milliseconds,\n····//·ignore·because·we·never·call·this·if·we're·not·already·in·TTL·mode\n····/*·c8·ignore·start·*/\n··)·=>·void·=·()·=>·{}\n··/*·c8·ignore·stop·*/\n\n··#isStale:·(index:·Index)·=>·boolean·=·()·=>·false\n\n··#initializeSizeTracking()·{\n····const·sizes·=·new·ZeroArray(this.#max)\n····this.#calculatedSize·=·0\n····this.#sizes·=·sizes\n····this.#removeItemSize·=·index·=>·{\n······this.#calculatedSize·-=·sizes[index]·as·number\n······sizes[index]·=·0\n····}\n····this.#requireSize·=·(k,·v,·size,·sizeCalculation)·=>·{\n······//·provisionally·accept·background·fetches.\n······//·actual·value·size·will·be·checked·when·they·return.\n······if·(this.#isBackgroundFetch(v))·{\n········return·0\n······}\n······if·(!isPosInt(size))·{\n········if·(sizeCalculation)·{\n··········if·(typeof·sizeCalculation·!==·'function')·{\n············throw·new·TypeError('sizeCalculation·must·be·a·function')\n··········}\n··········size·=·sizeCalculation(v,·k)\n··········if·(!isPosInt(size))·{\n············throw·new·TypeError(\n··············'sizeCalculation·return·invalid·(expect·positive·integer)',\n············)\n··········}\n········}·else·{\n··········throw·new·TypeError(\n············'invalid·size·value·(must·be·positive·integer).·'·+\n··············'When·maxSize·or·maxEntrySize·is·used,·sizeCalculation·'·+\n··············'or·size·must·be·set.',\n··········)\n········}\n······}\n······return·size\n····}\n····this.#addItemSize·=·(\n······index:·Index,\n······size:·LRUCache.Size,\n······status?:·LRUCache.Status<V>,\n····)·=>·{\n······sizes[index]·=·size\n······if·(this.#maxSize)·{\n········const·maxSize·=·this.#maxSize·-·(sizes[index]·as·number)\n········while·(this.#calculatedSize·>·maxSize)·{\n··········this.#evict(true)\n········}\n······}\n······this.#calculatedSize·+=·sizes[index]·as·number\n······if·(status)·{\n········status.entrySize·=·size\n········status.totalCalculatedSize·=·this.#calculatedSize\n······}\n····}\n··}\n\n··#removeItemSize:·(index:·Index)·=>·void·=·_i·=>·{}\n··#addItemSize:·(\n····index:·Index,\n····size:·LRUCache.Size,\n····status?:·LRUCache.Status<V>,\n··)·=>·void·=·(_i,·_s,·_st)·=>·{}\n··#requireSize:·(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·LRUCache.Size·=·(\n····_k:·K,\n····_v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·{\n····if·(size·||·sizeCalculation)·{\n······throw·new·TypeError(\n········'cannot·set·size·without·setting·maxSize·or·maxEntrySize·on·cache',\n······)\n····}\n····return·0\n··};\n\n··*#indexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#tail;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#head)·{\n··········break\n········}·else·{\n··········i·=·this.#prev[i]·as·Index\n········}\n······}\n····}\n··}\n\n··*#rindexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#head;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#tail)·{\n··········break\n········}·else·{\n··········i·=·this.#next[i]·as·Index\n········}\n······}\n····}\n··}\n\n··#isValidIndex(index:·Index)·{\n····return·(\n······index·!==·undefined·&&\n······this.#keyMap.get(this.#keyList[index]·as·K)·===·index\n····)\n··}\n\n··/**\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*entries()·{\n····for·(const·i·of·this.#indexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]·as·[K,·V]\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.entries}\n···*\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rentries()·{\n····for·(const·i·of·this.#rindexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*keys()·{\n····for·(const·i·of·this.#indexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.keys}\n···*\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rkeys()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*values()·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]·as·V\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.values}\n···*\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rvalues()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]\n······}\n····}\n··}\n\n··/**\n···*·Iterating·over·the·cache·itself·yields·the·same·results·as\n···*·{@link·LRUCache.entries}\n···*/\n··[Symbol.iterator]()·{\n····return·this.entries()\n··}\n\n··/**\n···*·A·String·value·that·is·used·in·the·creation·of·the·default·string\n···*·description·of·an·object.·Called·by·the·built-in·method\n···*·`Object.prototype.toString`.\n···*/\n··[Symbol.toStringTag]·=·'LRUCache'\n\n··/**\n···*·Find·a·value·for·which·the·supplied·fn·method·returns·a·truthy·value,\n···*·similar·to·`Array.find()`.·fn·is·called·as·`fn(value,·key,·cache)`.\n···*/\n··find(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·boolean,\n····getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{},\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······if·(fn(value,·this.#keyList[i]·as·K,·this))·{\n········return·this.get(this.#keyList[i]·as·K,·getOptions)\n······}\n····}\n··}\n\n··/**\n···*·Call·the·supplied·function·on·each·item·in·the·cache,·in·order·from·most\n···*·recently·used·to·least·recently·used.\n···*\n···*·`fn`·is·called·as·`fn(value,·key,·cache)`.\n···*\n···*·If·`thisp`·is·provided,·function·will·be·called·in·the·`this`-context·of\n···*·the·provided·object,·or·the·cache·if·no·`thisp`·object·is·provided.\n···*\n···*·Does·not·update·age·or·recenty·of·use,·or·iterate·over·stale·values.\n···*/\n··forEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·The·same·as·{@link·LRUCache.forEach}·but·items·are·iterated·over·in\n···*·reverse·order.··(ie,·less·recently·used·items·are·iterated·over·first.)\n···*/\n··rforEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·Delete·any·stale·entries.·Returns·true·if·anything·was·removed,\n···*·false·otherwise.\n···*/\n··purgeStale()·{\n····let·deleted·=·false\n····for·(const·i·of·this.#rindexes({·allowStale:·true·}))·{\n······if·(this.#isStale(i))·{\n········this.#delete(this.#keyList[i]·as·K,·'expire')\n········deleted·=·true\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Get·the·extended·info·about·a·given·entry,·to·get·its·value,·size,·and\n···*·TTL·info·simultaneously.·Returns·`undefined`·if·the·key·is·not·present.\n···*\n···*·Unlike·{@link·LRUCache#dump},·which·is·designed·to·be·portable·and·survive\n···*·serialization,·the·`start`·value·is·always·the·current·timestamp,·and·the\n···*·`ttl`·is·a·calculated·remaining·time·to·live·(negative·if·expired).\n···*\n···*·Always·returns·stale·values,·if·their·info·is·found·in·the·cache,·so·be\n···*·sure·to·check·for·expirations·(ie,·a·negative·{@link·LRUCache.Entry#ttl})\n···*·if·relevant.\n···*/\n··info(key:·K):·LRUCache.Entry<V>·|·undefined·{\n····const·i·=·this.#keyMap.get(key)\n····if·(i·===·undefined)·return·undefined\n····const·v·=·this.#valList[i]\n····/*·c8·ignore·start·-·this·isn't·tested·for·the·info·function,\n·····*·but·it's·the·same·logic·as·found·in·other·places.·*/\n····const·value:·V·|·undefined·=\n······this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n····if·(value·===·undefined)·return·undefined\n····/*·c8·ignore·end·*/\n····const·entry:·LRUCache.Entry<V>·=·{·value·}\n····if·(this.#ttls·&&·this.#starts)·{\n······const·ttl·=·this.#ttls[i]\n······const·start·=·this.#starts[i]\n······if·(ttl·&&·start)·{\n········const·remain·=·ttl·-·(this.#perf.now()·-·start)\n········entry.ttl·=·remain\n········entry.start·=·Date.now()\n······}\n····}\n····if·(this.#sizes)·{\n······entry.size·=·this.#sizes[i]\n····}\n····return·entry\n··}\n\n··/**\n···*·Return·an·array·of·[key,·{@link·LRUCache.Entry}]·tuples·which·can·be\n···*·passed·to·{@link·LRUCache#load}.\n···*\n···*·The·`start`·fields·are·calculated·relative·to·a·portable·`Date.now()`\n···*·timestamp,·even·if·`performance.now()`·is·available.\n···*\n···*·Stale·entries·are·always·included·in·the·`dump`,·even·if\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·false.\n···*\n···*·Note:·this·returns·an·actual·array,·not·a·generator,·so·it·can·be·more\n···*·easily·passed·around.\n···*/\n··dump()·{\n····const·arr:·[K,·LRUCache.Entry<V>][]·=·[]\n····for·(const·i·of·this.#indexes({·allowStale:·true·}))·{\n······const·key·=·this.#keyList[i]\n······const·v·=·this.#valList[i]\n······const·value:·V·|·undefined·=\n········this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined·||·key·===·undefined)·continue\n······const·entry:·LRUCache.Entry<V>·=·{·value·}\n······if·(this.#ttls·&&·this.#starts)·{\n········entry.ttl·=·this.#ttls[i]\n········//·always·dump·the·start·relative·to·a·portable·timestamp\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·this.#perf.now()·-·(this.#starts[i]·as·number)\n········entry.start·=·Math.floor(Date.now()·-·age)\n······}\n······if·(this.#sizes)·{\n········entry.size·=·this.#sizes[i]\n······}\n······arr.unshift([key,·entry])\n····}\n····return·arr\n··}\n\n··/**\n···*·Reset·the·cache·and·load·in·the·items·in·entries·in·the·order·listed.\n···*\n···*·The·shape·of·the·resulting·cache·may·be·different·if·the·same·options·are\n···*·not·used·in·both·caches.\n···*\n···*·The·`start`·fields·are·assumed·to·be·calculated·relative·to·a·portable\n···*·`Date.now()`·timestamp,·even·if·`performance.now()`·is·available.\n···*/\n··load(arr:·[K,·LRUCache.Entry<V>][])·{\n····this.clear()\n····for·(const·[key,·entry]·of·arr)·{\n······if·(entry.start)·{\n········//·entry.start·is·a·portable·timestamp,·but·we·may·be·using\n········//·node's·performance.now(),·so·calculate·the·offset,·so·that\n········//·we·get·the·intended·remaining·TTL,·no·matter·how·long·it's\n········//·been·on·ice.\n········//\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·Date.now()·-·entry.start\n········entry.start·=·this.#perf.now()·-·age\n······}\n······this.set(key,·entry.value,·entry)\n····}\n··}\n\n··/**\n···*·Add·a·value·to·the·cache.\n···*\n···*·Note:·if·`undefined`·is·specified·as·a·value,·this·is·an·alias·for\n···*·{@link·LRUCache#delete}\n···*\n···*·Fields·on·the·{@link·LRUCache.SetOptions}·options·param·will·override\n···*·their·corresponding·values·in·the·constructor·options·for·the·scope\n···*·of·this·single·`set()`·operation.\n···*\n···*·If·`start`·is·provided,·then·that·will·set·the·effective·start\n···*·time·for·the·TTL·calculation.·Note·that·this·must·be·a·previous\n···*·value·of·`performance.now()`·if·supported,·or·a·previous·value·of\n···*·`Date.now()`·if·not.\n···*\n···*·Options·object·may·also·include·`size`,·which·will·prevent\n···*·calling·the·`sizeCalculation`·function·and·just·use·the·specified\n···*·number·if·it·is·a·positive·integer,·and·`noDisposeOnSet`·which\n···*·will·prevent·calling·a·`dispose`·function·in·the·case·of\n···*·overwrites.\n···*\n···*·If·the·`size`·(or·return·value·of·`sizeCalculation`)·for·a·given\n···*·entry·is·greater·than·`maxEntrySize`,·then·the·item·will·not·be\n···*·added·to·the·cache.\n···*\n···*·Will·update·the·recency·of·the·entry.\n···*\n···*·If·the·value·is·`undefined`,·then·this·is·an·alias·for\n···*·`cache.delete(key)`.·`undefined`·is·never·stored·in·the·cache.\n···*/\n··set(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>·|·undefined,\n····setOptions:·LRUCache.SetOptions<K,·V,·FC>·=·{},\n··)·{\n····if·(v·===·undefined)·{\n······this.delete(k)\n······return·this\n····}\n····const·{\n······ttl·=·this.ttl,\n······start,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······sizeCalculation·=·this.sizeCalculation,\n······status,\n····}·=·setOptions\n····let·{·noUpdateTTL·=·this.noUpdateTTL·}·=·setOptions\n\n····const·size·=·this.#requireSize(\n······k,\n······v,\n······setOptions.size·||·0,\n······sizeCalculation,\n····)\n····//·if·the·item·doesn't·fit,·don't·do·anything\n····//·NB:·maxEntrySize·set·to·maxSize·by·default\n····if·(this.maxEntrySize·&&·size·>·this.maxEntrySize)·{\n······if·(status)·{\n········status.set·=·'miss'\n········status.maxEntrySizeExceeded·=·true\n······}\n······//·have·to·delete,·in·case·something·is·there·already.\n······this.#delete(k,·'set')\n······return·this\n····}\n····let·index·=·this.#size·===·0·?·undefined·:·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······//·addition\n······index·=·(\n········this.#size·===·0·?·this.#tail\n········:·this.#free.length·!==·0·?·this.#free.pop()\n········:·this.#size·===·this.#max·?·this.#evict(false)\n········:·this.#size)·as·Index\n······this.#keyList[index]·=·k\n······this.#valList[index]·=·v\n······this.#keyMap.set(k,·index)\n······this.#next[this.#tail]·=·index\n······this.#prev[index]·=·this.#tail\n······this.#tail·=·index\n······this.#size++\n······this.#addItemSize(index,·size,·status)\n······if·(status)·status.set·=·'add'\n······noUpdateTTL·=·false\n······if·(this.#hasOnInsert)·{\n········this.#onInsert?.(v·as·V,·k,·'add')\n······}\n····}·else·{\n······//·update\n······this.#moveToTail(index)\n······const·oldVal·=·this.#valList[index]·as·V·|·BackgroundFetch<V>\n······if·(v·!==·oldVal)·{\n········if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(oldVal))·{\n··········oldVal.__abortController.abort(new·Error('replaced'))\n··········const·{·__staleWhileFetching:·s·}·=·oldVal\n··········if·(s·!==·undefined·&&·!noDisposeOnSet)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(s·as·V,·k,·'set')\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([s·as·V,·k,·'set'])\n············}\n··········}\n········}·else·if·(!noDisposeOnSet)·{\n··········if·(this.#hasDispose)·{\n············this.#dispose?.(oldVal·as·V,·k,·'set')\n··········}\n··········if·(this.#hasDisposeAfter)·{\n············this.#disposed?.push([oldVal·as·V,·k,·'set'])\n··········}\n········}\n········this.#removeItemSize(index)\n········this.#addItemSize(index,·size,·status)\n········this.#valList[index]·=·v\n········if·(status)·{\n··········status.set·=·'replace'\n··········const·oldValue·=\n············oldVal·&&·this.#isBackgroundFetch(oldVal)·?\n··············oldVal.__staleWhileFetching\n············:·oldVal\n··········if·(oldValue·!==·undefined)·status.oldValue·=·oldValue\n········}\n······}·else·if·(status)·{\n········status.set·=·'update'\n······}\n\n······if·(this.#hasOnInsert)·{\n········this.onInsert?.(v·as·V,·k,·v·===·oldVal·?·'update'·:·'replace')\n······}\n····}\n····if·(ttl·!==·0·&&·!this.#ttls)·{\n······this.#initializeTTLTracking()\n····}\n····if·(this.#ttls)·{\n······if·(!noUpdateTTL)·{\n········this.#setItemTTL(index,·ttl,·start)\n······}\n······if·(status)·this.#statusTTL(status,·index)\n····}\n····if·(!noDisposeOnSet·&&·this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·this\n··}\n\n··/**\n···*·Evict·the·least·recently·used·item,·returning·its·value·or\n···*·`undefined`·if·cache·is·empty.\n···*/\n··pop():·V·|·undefined·{\n····try·{\n······while·(this.#size)·{\n········const·val·=·this.#valList[this.#head]\n········this.#evict(true)\n········if·(this.#isBackgroundFetch(val))·{\n··········if·(val.__staleWhileFetching)·{\n············return·val.__staleWhileFetching\n··········}\n········}·else·if·(val·!==·undefined)·{\n··········return·val\n········}\n······}\n····}·finally·{\n······if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n········const·dt·=·this.#disposed\n········let·task:·DisposeTask<K,·V>·|·undefined\n········while·((task·=·dt?.shift()))·{\n··········this.#disposeAfter?.(...task)\n········}\n······}\n····}\n··}\n\n··#evict(free:·boolean)·{\n····const·head·=·this.#head\n····const·k·=·this.#keyList[head]·as·K\n····const·v·=·this.#valList[head]·as·V\n····if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(v))·{\n······v.__abortController.abort(new·Error('evicted'))\n····}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n······if·(this.#hasDispose)·{\n········this.#dispose?.(v,·k,·'evict')\n······}\n······if·(this.#hasDisposeAfter)·{\n········this.#disposed?.push([v,·k,·'evict'])\n······}\n····}\n····this.#removeItemSize(head)\n····if·(this.#autopurgeTimers?.[head])·{\n······clearTimeout(this.#autopurgeTimers[head])\n······this.#autopurgeTimers[head]·=·undefined\n····}\n····//·if·we·aren't·about·to·use·the·index,·then·null·these·out\n····if·(free)·{\n······this.#keyList[head]·=·undefined\n······this.#valList[head]·=·undefined\n······this.#free.push(head)\n····}\n····if·(this.#size·===·1)·{\n······this.#head·=·this.#tail·=·0·as·Index\n······this.#free.length·=·0\n····}·else·{\n······this.#head·=·this.#next[head]·as·Index\n····}\n····this.#keyMap.delete(k)\n····this.#size--\n····return·head\n··}\n\n··/**\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of·use.\n···*·Will·return·false·if·the·item·is·stale,·even·though·it·is·technically\n···*·in·the·cache.\n···*\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of\n···*·use.·Age·is·updated·if·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set\n···*·to·`true`·in·either·the·options·or·the·constructor.\n···*\n···*·Will·return·`false`·if·the·item·is·stale,·even·though·it·is·technically·in\n···*·the·cache.·The·difference·can·be·determined·(if·it·matters)·by·using·a\n···*·`status`·argument,·and·inspecting·the·`has`·field.\n···*\n···*·Will·not·update·item·age·unless\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set.\n···*/\n··has(k:·K,·hasOptions:·LRUCache.HasOptions<K,·V,·FC>·=·{})·{\n····const·{·updateAgeOnHas·=·this.updateAgeOnHas,·status·}·=·hasOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·v·=·this.#valList[index]\n······if·(\n········this.#isBackgroundFetch(v)·&&\n········v.__staleWhileFetching·===·undefined\n······)·{\n········return·false\n······}\n······if·(!this.#isStale(index))·{\n········if·(updateAgeOnHas)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·{\n··········status.has·=·'hit'\n··········this.#statusTTL(status,·index)\n········}\n········return·true\n······}·else·if·(status)·{\n········status.has·=·'stale'\n········this.#statusTTL(status,·index)\n······}\n····}·else·if·(status)·{\n······status.has·=·'miss'\n····}\n····return·false\n··}\n\n··/**\n···*·Like·{@link·LRUCache#get}·but·doesn't·update·recency·or·delete·stale\n···*·items.\n···*\n···*·Returns·`undefined`·if·the·item·is·stale,·unless\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·set.\n···*/\n··peek(k:·K,·peekOptions:·LRUCache.PeekOptions<K,·V,·FC>·=·{})·{\n····const·{·allowStale·=·this.allowStale·}·=·peekOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined·||·(!allowStale·&&·this.#isStale(index)))·{\n······return\n····}\n····const·v·=·this.#valList[index]\n····//·either·stale·and·allowed,·or·forcing·a·refresh·of·non-stale·value\n····return·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n··}\n\n··#backgroundFetch(\n····k:·K,\n····index:·Index·|·undefined,\n····options:·LRUCache.FetchOptions<K,·V,·FC>,\n····context:·any,\n··):·BackgroundFetch<V>·{\n····const·v·=·index·===·undefined·?·undefined·:·this.#valList[index]\n····if·(this.#isBackgroundFetch(v))·{\n······return·v\n····}\n\n····const·ac·=·new·AC()\n····const·{·signal·}·=·options\n····//·when/if·our·AC·signals,·then·stop·listening·to·theirs.\n····signal?.addEventListener('abort',·()·=>·ac.abort(signal.reason),·{\n······signal:·ac.signal,\n····})\n\n····const·fetchOpts·=·{\n······signal:·ac.signal,\n······options,\n······context,\n····}\n\n····const·cb·=·(v:·V·|·undefined,·updateCache·=·false):·V·|·undefined·=>·{\n······const·{·aborted·}·=·ac.signal\n······const·ignoreAbort·=·options.ignoreFetchAbort·&&·v·!==·undefined\n······const·proceed·=·options.ignoreFetchAbort·||\n········!!(options.allowStaleOnFetchAbort·&&·v·!==·undefined)\n······if·(options.status)·{\n········if·(aborted·&&·!updateCache)·{\n··········options.status.fetchAborted·=·true\n··········options.status.fetchErr[·...·truncated·by·diffoscope;·len:·2046,·SHA:·bc26851e544864912e306c8a65e2ad2d112546bf99737e3236751c8c73b882ef·...·]·bf.__staleWhileFetching·===·undefined\n········if·(del)·{\n··········this.#delete(k,·'fetch')\n········}·else·if·(!allowStaleAborted)·{\n··········//·still·replace·the·*promise*·with·the·stale·value,\n··········//·since·we·are·done·with·the·promise·at·this·point.\n··········//·leave·it·untouched·if·we're·still·waiting·for·an\n··········//·aborted·background·fetch·that·hasn't·yet·returned.\n··········this.#valList[index·as·Index]·=·bf.__staleWhileFetching\n········}\n······}\n······if·(allowStale)·{\n········if·(options.status·&&·bf.__staleWhileFetching·!==·undefined)·{\n··········options.status.returnedStale·=·true\n········}\n········return·bf.__staleWhileFetching\n······}·else·if·(bf.__returned·===·bf)·{\n········throw·er\n······}\n····}\n\n····const·pcall·=·(\n······res:·(v:·V·|·undefined)·=>·void,\n······rej:·(e:·any)·=>·void,\n····)·=>·{\n······const·fmp·=·this.#fetchMethod?.(k,·v,·fetchOpts)\n······if·(fmp·&&·fmp·instanceof·Promise)·{\n········fmp.then(v·=>·res(v·===·undefined·?·undefined·:·v),·rej)\n······}\n······//·ignored,·we·go·until·we·finish,·regardless.\n······//·defer·check·until·we·are·actually·aborting,\n······//·so·fetchMethod·can·override.\n······ac.signal.addEventListener('abort',·()·=>·{\n········if·(!options.ignoreFetchAbort·||·options.allowStaleOnFetchAbort)·{\n··········res(undefined)\n··········//·when·it·eventually·resolves,·update·the·cache.\n··········if·(options.allowStaleOnFetchAbort)·{\n············res·=·v·=>·cb(v,·true)\n··········}\n········}\n······})\n····}\n\n····if·(options.status)·options.status.fetchDispatched·=·true\n····const·p·=·new·Promise(pcall).then(cb,·eb)\n····const·bf:·BackgroundFetch<V>·=·Object.assign(p,·{\n······__abortController:·ac,\n······__staleWhileFetching:·v,\n······__returned:·undefined,\n····})\n\n····if·(index·===·undefined)·{\n······//·internal,·don't·expose·status.\n······this.set(k,·bf,·{·...fetchOpts.options,·status:·undefined·})\n······index·=·this.#keyMap.get(k)\n····}·else·{\n······this.#valList[index]·=·bf\n····}\n····return·bf\n··}\n\n··#isBackgroundFetch(p:·any):·p·is·BackgroundFetch<V>·{\n····if·(!this.#hasFetchMethod)·return·false\n····const·b·=·p·as·BackgroundFetch<V>\n····return·(\n······!!b·&&\n······b·instanceof·Promise·&&\n······b.hasOwnProperty('__staleWhileFetching')·&&\n······b.__abortController·instanceof·AC\n····)\n··}\n\n··/**\n···*·Make·an·asynchronous·cached·fetch·using·the\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·function.\n···*\n···*·If·the·value·is·in·the·cache·and·not·stale,·then·the·returned\n···*·Promise·resolves·to·the·value.\n···*\n···*·If·not·in·the·cache,·or·beyond·its·TTL·staleness,·then\n···*·`fetchMethod(key,·staleValue,·{·options,·signal,·context·})`·is\n···*·called,·and·the·value·returned·will·be·added·to·the·cache·once\n···*·resolved.\n···*\n···*·If·called·with·`allowStale`,·and·an·asynchronous·fetch·is\n···*·currently·in·progress·to·reload·a·stale·value,·then·the·former\n···*·stale·value·will·be·returned.\n···*\n···*·If·called·with·`forceRefresh`,·then·the·cached·item·will·be\n···*·re-fetched,·even·if·it·is·not·stale.·However,·if·`allowStale`·is·also\n···*·set,·then·the·old·value·will·still·be·returned.·This·is·useful\n···*·in·cases·where·you·want·to·force·a·reload·of·a·cached·value.·If\n···*·a·background·fetch·is·already·in·progress,·then·`forceRefresh`\n···*·has·no·effect.\n···*\n···*·If·multiple·fetches·for·the·same·key·are·issued,·then·they·will·all·be\n···*·coalesced·into·a·single·call·to·fetchMethod.\n···*\n···*·Note·that·this·means·that·handling·options·such·as\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort},\n···*·{@link·LRUCache.FetchOptions.signal},\n···*·and·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}·will·be\n···*·determined·by·the·FIRST·fetch()·call·for·a·given·key.\n···*\n···*·This·is·a·known·(fixable)·shortcoming·which·will·be·addresed·on·when\n···*·someone·complains·about·it,·as·the·fix·would·involve·added·complexity·and\n···*·may·not·be·worth·the·costs·for·this·edge·case.\n···*\n···*·If·{@link·LRUCache.OptionsBase.fetchMethod}·is·not·specified,·then·this·is\n···*·effectively·an·alias·for·`Promise.resolve(cache.get(key))`.\n···*\n···*·When·the·fetch·method·resolves·to·a·value,·if·the·fetch·has·not\n···*·been·aborted·due·to·deletion,·eviction,·or·being·overwritten,\n···*·then·it·is·added·to·the·cache·using·the·options·provided.\n···*\n···*·If·the·key·is·evicted·or·deleted·before·the·`fetchMethod`\n···*·resolves,·then·the·AbortSignal·passed·to·the·`fetchMethod`·will\n···*·receive·an·`abort`·event,·and·the·promise·returned·by·`fetch()`\n···*·will·reject·with·the·reason·for·the·abort.\n···*\n···*·If·a·`signal`·is·passed·to·the·`fetch()`·call,·then·aborting·the\n···*·signal·will·abort·the·fetch·and·cause·the·`fetch()`·promise·to\n···*·reject·with·the·reason·provided.\n···*\n···*·**Setting·`context`**\n···*\n···*·If·an·`FC`·type·is·set·to·a·type·other·than·`unknown`,·`void`,·or\n···*·`undefined`·in·the·{@link·LRUCache}·constructor,·then·all\n···*·calls·to·`cache.fetch()`·_must_·provide·a·`context`·option.·If\n···*·set·to·`undefined`·or·`void`,·then·calls·to·fetch·_must·not_\n···*·provide·a·`context`·option.\n···*\n···*·The·`context`·param·allows·you·to·provide·arbitrary·data·that\n···*·might·be·relevant·in·the·course·of·fetching·the·data.·It·is·only\n···*·relevant·for·the·course·of·a·single·`fetch()`·operation,·and\n···*·discarded·afterwards.\n···*\n···*·**Note:·`fetch()`·calls·are·inflight-unique**\n···*\n···*·If·you·call·`fetch()`·multiple·times·with·the·same·key·value,\n···*·then·every·call·after·the·first·will·resolve·on·the·same\n···*·promise<sup>1</sup>,\n···*·_even·if·they·have·different·settings·that·would·otherwise·change\n···*·the·behavior·of·the·fetch_,·such·as·`noDeleteOnFetchRejection`\n···*·or·`ignoreFetchAbort`.\n···*\n···*·In·most·cases,·this·is·not·a·problem·(in·fact,·only·fetching\n···*·something·once·is·what·you·probably·want,·if·you're·caching·in\n···*·the·first·place).·If·you·are·changing·the·fetch()·options\n···*·dramatically·between·runs,·there's·a·good·chance·that·you·might\n···*·be·trying·to·fit·divergent·semantics·into·a·single·object,·and\n···*·would·be·better·off·with·multiple·cache·instances.\n···*\n···*·**1**:·Ie,·they're·not·the·\"same·Promise\",·but·they·resolve·at\n···*·the·same·time,·because·they're·both·waiting·on·the·same\n···*·underlying·fetchMethod·response.\n···*/\n\n··fetch(\n····k:·K,\n····fetchOptions:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n··):·Promise<undefined·|·V>\n\n··//·this·overload·not·allowed·if·context·is·required\n··fetch(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····fetchOptions?:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·never,\n··):·Promise<undefined·|·V>\n\n··async·fetch(\n····k:·K,\n····fetchOptions:·LRUCache.FetchOptions<K,·V,·FC>·=·{},\n··):·Promise<undefined·|·V>·{\n····const·{\n······//·get·options\n······allowStale·=·this.allowStale,\n······updateAgeOnGet·=·this.updateAgeOnGet,\n······noDeleteOnStaleGet·=·this.noDeleteOnStaleGet,\n······//·set·options\n······ttl·=·this.ttl,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······size·=·0,\n······sizeCalculation·=·this.sizeCalculation,\n······noUpdateTTL·=·this.noUpdateTTL,\n······//·fetch·exclusive·options\n······noDeleteOnFetchRejection·=·this.noDeleteOnFetchRejection,\n······allowStaleOnFetchRejection·=·this.allowStaleOnFetchRejection,\n······ignoreFetchAbort·=·this.ignoreFetchAbort,\n······allowStaleOnFetchAbort·=·this.allowStaleOnFetchAbort,\n······context,\n······forceRefresh·=·false,\n······status,\n······signal,\n····}·=·fetchOptions\n\n····if·(!this.#hasFetchMethod)·{\n······if·(status)·status.fetch·=·'get'\n······return·this.get(k,·{\n········allowStale,\n········updateAgeOnGet,\n········noDeleteOnStaleGet,\n········status,\n······})\n····}\n\n····const·options·=·{\n······allowStale,\n······updateAgeOnGet,\n······noDeleteOnStaleGet,\n······ttl,\n······noDisposeOnSet,\n······size,\n······sizeCalculation,\n······noUpdateTTL,\n······noDeleteOnFetchRejection,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······status,\n······signal,\n····}\n\n····let·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······if·(status)·status.fetch·=·'miss'\n······const·p·=·this.#backgroundFetch(k,·index,·options,·context)\n······return·(p.__returned·=·p)\n····}·else·{\n······//·in·cache,·maybe·already·fetching\n······const·v·=·this.#valList[index]\n······if·(this.#isBackgroundFetch(v))·{\n········const·stale·=·allowStale·&&·v.__staleWhileFetching·!==·undefined\n········if·(status)·{\n··········status.fetch·=·'inflight'\n··········if·(stale)·status.returnedStale·=·true\n········}\n········return·stale·?·v.__staleWhileFetching·:·(v.__returned·=·v)\n······}\n\n······//·if·we·force·a·refresh,·that·means·do·NOT·serve·the·cached·value,\n······//·unless·we·are·already·in·the·process·of·refreshing·the·cache.\n······const·isStale·=·this.#isStale(index)\n······if·(!forceRefresh·&&·!isStale)·{\n········if·(status)·status.fetch·=·'hit'\n········this.#moveToTail(index)\n········if·(updateAgeOnGet)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·this.#statusTTL(status,·index)\n········return·v\n······}\n\n······//·ok,·it·is·stale·or·a·forced·refresh,·and·not·already·fetching.\n······//·refresh·the·cache.\n······const·p·=·this.#backgroundFetch(k,·index,·options,·context)\n······const·hasStale·=·p.__staleWhileFetching·!==·undefined\n······const·staleVal·=·hasStale·&&·allowStale\n······if·(status)·{\n········status.fetch·=·isStale·?·'stale'·:·'refresh'\n········if·(staleVal·&&·isStale)·status.returnedStale·=·true\n······}\n······return·staleVal·?·p.__staleWhileFetching·:·(p.__returned·=·p)\n····}\n··}\n\n··/**\n···*·In·some·cases,·`cache.fetch()`·may·resolve·to·`undefined`,·either·because\n···*·a·{@link·LRUCache.OptionsBase#fetchMethod}·was·not·provided·(turning\n···*·`cache.fetch(k)`·into·just·an·async·wrapper·around·`cache.get(k)`)·or\n···*·because·`ignoreFetchAbort`·was·specified·(either·to·the·constructor·or\n···*·in·the·{@link·LRUCache.FetchOptions}).·Also,·the\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·may·return·`undefined`·or·`void`,·making\n···*·the·test·even·more·complicated.\n···*\n···*·Because·inferring·the·cases·where·`undefined`·might·be·returned·are·so\n···*·cumbersome,·but·testing·for·`undefined`·can·also·be·annoying,·this·method\n···*·can·be·used,·which·will·reject·if·`this.fetch()`·resolves·to·undefined.\n···*/\n··forceFetch(\n····k:·K,\n····fetchOptions:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n··):·Promise<V>\n··//·this·overload·not·allowed·if·context·is·required\n··forceFetch(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····fetchOptions?:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·never,\n··):·Promise<V>\n··async·forceFetch(\n····k:·K,\n····fetchOptions:·LRUCache.FetchOptions<K,·V,·FC>·=·{},\n··):·Promise<V>·{\n····const·v·=·await·this.fetch(\n······k,\n······fetchOptions·as·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n······:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n······:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n····)\n····if·(v·===·undefined)·throw·new·Error('fetch()·returned·undefined')\n····return·v\n··}\n\n··/**\n···*·If·the·key·is·found·in·the·cache,·then·this·is·equivalent·to\n···*·{@link·LRUCache#get}.·If·not,·in·the·cache,·then·calculate·the·value·using\n···*·the·{@link·LRUCache.OptionsBase.memoMethod},·and·add·it·to·the·cache.\n···*\n···*·If·an·`FC`·type·is·set·to·a·type·other·than·`unknown`,·`void`,·or\n···*·`undefined`·in·the·LRUCache·constructor,·then·all·calls·to·`cache.memo()`\n···*·_must_·provide·a·`context`·option.·If·set·to·`undefined`·or·`void`,·then\n···*·calls·to·memo·_must·not_·provide·a·`context`·option.\n···*\n···*·The·`context`·param·allows·you·to·provide·arbitrary·data·that·might·be\n···*·relevant·in·the·course·of·fetching·the·data.·It·is·only·relevant·for·the\n···*·course·of·a·single·`memo()`·operation,·and·discarded·afterwards.\n···*/\n··memo(\n····k:·K,\n····memoOptions:·unknown·extends·FC·?·LRUCache.MemoOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.MemoOptionsNoContext<K,·V>\n····:·LRUCache.MemoOptionsWithContext<K,·V,·FC>,\n··):·V\n··//·this·overload·not·allowed·if·context·is·required\n··memo(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····memoOptions?:·unknown·extends·FC·?·LRUCache.MemoOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.MemoOptionsNoContext<K,·V>\n····:·never,\n··):·V\n··memo(k:·K,·memoOptions:·LRUCache.MemoOptions<K,·V,·FC>·=·{})·{\n····const·memoMethod·=·this.#memoMethod\n····if·(!memoMethod)·{\n······throw·new·Error('no·memoMethod·provided·to·constructor')\n····}\n····const·{·context,·forceRefresh,·...options·}·=·memoOptions\n····const·v·=·this.get(k,·options)\n····if·(!forceRefresh·&&·v·!==·undefined)·return·v\n····const·vv·=·memoMethod(k,·v,·{\n······options,\n······context,\n····}·as·LRUCache.MemoizerOptions<K,·V,·FC>)\n····this.set(k,·vv,·options)\n····return·vv\n··}\n\n··/**\n···*·Return·a·value·from·the·cache.·Will·update·the·recency·of·the·cache\n···*·entry·found.\n···*\n···*·If·the·key·is·not·found,·get()·will·return·`undefined`.\n···*/\n··get(k:·K,·getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{})·{\n····const·{\n······allowStale·=·this.allowStale,\n······updateAgeOnGet·=·this.updateAgeOnGet,\n······noDeleteOnStaleGet·=·this.noDeleteOnStaleGet,\n······status,\n····}·=·getOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·value·=·this.#valList[index]\n······const·fetching·=·this.#isBackgroundFetch(value)\n······if·(status)·this.#statusTTL(status,·index)\n······if·(this.#isStale(index))·{\n········if·(status)·status.get·=·'stale'\n········//·delete·only·if·not·an·in-flight·background·fetch\n········if·(!fetching)·{\n··········if·(!noDeleteOnStaleGet)·{\n············this.#delete(k,·'expire')\n··········}\n··········if·(status·&&·allowStale)·status.returnedStale·=·true\n··········return·allowStale·?·value·:·undefined\n········}·else·{\n··········if·(\n············status·&&\n············allowStale·&&\n············value.__staleWhileFetching·!==·undefined\n··········)·{\n············status.returnedStale·=·true\n··········}\n··········return·allowStale·?·value.__staleWhileFetching·:·undefined\n········}\n······}·else·{\n········if·(status)·status.get·=·'hit'\n········//·if·we're·currently·fetching·it,·we·don't·actually·have·it·yet\n········//·it's·not·stale,·which·means·this·isn't·a·staleWhileRefetching.\n········//·If·it's·not·stale,·and·fetching,·AND·has·a·__staleWhileFetching\n········//·value,·then·that·means·the·user·fetched·with·{forceRefresh:true},\n········//·so·it's·safe·to·return·that·value.\n········if·(fetching)·{\n··········return·value.__staleWhileFetching\n········}\n········this.#moveToTail(index)\n········if·(updateAgeOnGet)·{\n··········this.#updateItemAge(index)\n········}\n········return·value\n······}\n····}·else·if·(status)·{\n······status.get·=·'miss'\n····}\n··}\n\n··#connect(p:·Index,·n:·Index)·{\n····this.#prev[n]·=·p\n····this.#next[p]·=·n\n··}\n\n··#moveToTail(index:·Index):·void·{\n····//·if·tail·already,·nothing·to·do\n····//·if·head,·move·head·to·next[index]\n····//·else\n····//···move·next[prev[index]]·to·next[index]·(head·has·no·prev)\n····//···move·prev[next[index]]·to·prev[index]\n····//·prev[index]·=·tail\n····//·next[tail]·=·index\n····//·tail·=·index\n····if·(index·!==·this.#tail)·{\n······if·(index·===·this.#head)·{\n········this.#head·=·this.#next[index]·as·Index\n······}·else·{\n········this.#connect(\n··········this.#prev[index]·as·Index,\n··········this.#next[index]·as·Index,\n········)\n······}\n······this.#connect(this.#tail,·index)\n······this.#tail·=·index\n····}\n··}\n\n··/**\n···*·Deletes·a·key·out·of·the·cache.\n···*\n···*·Returns·true·if·the·key·was·deleted,·false·otherwise.\n···*/\n··delete(k:·K)·{\n····return·this.#delete(k,·'delete')\n··}\n\n··#delete(k:·K,·reason:·LRUCache.DisposeReason)·{\n····let·deleted·=·false\n····if·(this.#size·!==·0)·{\n······const·index·=·this.#keyMap.get(k)\n······if·(index·!==·undefined)·{\n········if·(this.#autopurgeTimers?.[index])·{\n··········clearTimeout(this.#autopurgeTimers?.[index])\n··········this.#autopurgeTimers[index]·=·undefined\n········}\n········deleted·=·true\n········if·(this.#size·===·1)·{\n··········this.#clear(reason)\n········}·else·{\n··········this.#removeItemSize(index)\n··········const·v·=·this.#valList[index]\n··········if·(this.#isBackgroundFetch(v))·{\n············v.__abortController.abort(new·Error('deleted'))\n··········}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(v·as·V,·k,·reason)\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([v·as·V,·k,·reason])\n············}\n··········}\n··········this.#keyMap.delete(k)\n··········this.#keyList[index]·=·undefined\n··········this.#valList[index]·=·undefined\n··········if·(index·===·this.#tail)·{\n············this.#tail·=·this.#prev[index]·as·Index\n··········}·else·if·(index·===·this.#head)·{\n············this.#head·=·this.#next[index]·as·Index\n··········}·else·{\n············const·pi·=·this.#prev[index]·as·number\n············this.#next[pi]·=·this.#next[index]·as·number\n············const·ni·=·this.#next[index]·as·number\n············this.#prev[ni]·=·this.#prev[index]·as·number\n··········}\n··········this.#size--\n··········this.#free.push(index)\n········}\n······}\n····}\n····if·(this.#hasDisposeAfter·&&·this.#disposed?.length)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Clear·the·cache·entirely,·throwing·away·all·values.\n···*/\n··clear()·{\n····return·this.#clear('delete')\n··}\n··#clear(reason:·LRUCache.DisposeReason)·{\n····for·(const·index·of·this.#rindexes({·allowStale:·true·}))·{\n······const·v·=·this.#valList[index]\n······if·(this.#isBackgroundFetch(v))·{\n········v.__abortController.abort(new·Error('deleted'))\n······}·else·{\n········const·k·=·this.#keyList[index]\n········if·(this.#hasDispose)·{\n··········this.#dispose?.(v·as·V,·k·as·K,·reason)\n········}\n········if·(this.#hasDisposeAfter)·{\n··········this.#disposed?.push([v·as·V,·k·as·K,·reason])\n········}\n······}\n····}\n\n····this.#keyMap.clear()\n····this.#valList.fill(undefined)\n····this.#keyList.fill(undefined)\n····if·(this.#ttls·&&·this.#starts)·{\n······this.#ttls.fill(0)\n······this.#starts.fill(0)\n······for·(const·t·of·this.#autopurgeTimers·??·[])·{\n········if·(t·!==·undefined)·clearTimeout(t)\n······}\n······this.#autopurgeTimers?.fill(undefined)\n····}\n····if·(this.#sizes)·{\n······this.#sizes.fill(0)\n····}\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free.length·=·0\n····this.#calculatedSize·=·0\n····this.#size·=·0\n····if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n··}\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 83, 16 lines modified | Offset 83, 16 lines modified | ||
| 00000520:·293f·613c·3d4d·6174·682e·706f·7728·322c··)?a<=Math.pow(2, | 00000520:·293f·613c·3d4d·6174·682e·706f·7728·322c··)?a<=Math.pow(2, | ||
| 00000530:·3829·3f55·696e·7438·4172·7261·793a·613c··8)?Uint8Array:a< | 00000530:·3829·3f55·696e·7438·4172·7261·793a·613c··8)?Uint8Array:a< | ||
| 00000540:·3d4d·6174·682e·706f·7728·322c·3136·293f··=Math.pow(2,16)? | 00000540:·3d4d·6174·682e·706f·7728·322c·3136·293f··=Math.pow(2,16)? | ||
| 00000550:·5569·6e74·3136·4172·7261·793a·613c·3d4d··Uint16Array:a<=M | 00000550:·5569·6e74·3136·4172·7261·793a·613c·3d4d··Uint16Array:a<=M | ||
| 00000560:·6174·682e·706f·7728·322c·3332·293f·5569··ath.pow(2,32)?Ui | 00000560:·6174·682e·706f·7728·322c·3332·293f·5569··ath.pow(2,32)?Ui | ||
| 00000570:·6e74·3332·4172·7261·793a·613c·3d4e·756d··nt32Array:a<=Num | 00000570:·6e74·3332·4172·7261·793a·613c·3d4e·756d··nt32Array:a<=Num | ||
| 00000580:·6265·722e·4d41·585f·5341·4645·5f49·4e54··ber.MAX_SAFE_INT | 00000580:·6265·722e·4d41·585f·5341·4645·5f49·4e54··ber.MAX_SAFE_INT | ||
| 00000590:·4547·4552·3f | 00000590:·4547·4552·3f7a·3a6e·756c·6c3a·6e75·6c6c··EGER?z:null:null | ||
| 000005a0:·2c | 000005a0:·2c7a·3d63·6c61·7373·2065·7874·656e·6473··,z=class·extends | ||
| 000005b0:·2041·7272·6179·7b63·6f6e·7374·7275·6374···Array{construct | 000005b0:·2041·7272·6179·7b63·6f6e·7374·7275·6374···Array{construct | ||
| 000005c0:·6f72·2874·297b·7375·7065·7228·7429·2c74··or(t){super(t),t | 000005c0:·6f72·2874·297b·7375·7065·7228·7429·2c74··or(t){super(t),t | ||
| 000005d0:·6869·732e·6669·6c6c·2830·297d·7d2c·573d··his.fill(0)}},W= | 000005d0:·6869·732e·6669·6c6c·2830·297d·7d2c·573d··his.fill(0)}},W= | ||
| 000005e0:·636c·6173·7320·617b·6865·6170·3b6c·656e··class·a{heap;len | 000005e0:·636c·6173·7320·617b·6865·6170·3b6c·656e··class·a{heap;len | ||
| 000005f0:·6774·683b·7374·6174·6963·236f·3d21·313b··gth;static#o=!1; | 000005f0:·6774·683b·7374·6174·6963·236f·3d21·313b··gth;static#o=!1; | ||
| 00000600:·7374·6174·6963·2063·7265·6174·6528·7429··static·create(t) | 00000600:·7374·6174·6963·2063·7265·6174·6528·7429··static·create(t) | ||
| 00000610:·7b6c·6574·2065·3d4d·2874·293b·6966·2821··{let·e=M(t);if(! | 00000610:·7b6c·6574·2065·3d4d·2874·293b·6966·2821··{let·e=M(t);if(! | ||
| Offset 129, 15 lines modified | Offset 129, 15 lines modified | ||
| 00000800:·743b·616c·6c6f·7753·7461·6c65·4f6e·4665··t;allowStaleOnFe | 00000800:·743b·616c·6c6f·7753·7461·6c65·4f6e·4665··t;allowStaleOnFe | ||
| 00000810:·7463·6841·626f·7274·3b61·6c6c·6f77·5374··tchAbort;allowSt | 00000810:·7463·6841·626f·7274·3b61·6c6c·6f77·5374··tchAbort;allowSt | ||
| 00000820:·616c·654f·6e46·6574·6368·5265·6a65·6374··aleOnFetchReject | 00000820:·616c·654f·6e46·6574·6368·5265·6a65·6374··aleOnFetchReject | ||
| 00000830:·696f·6e3b·6967·6e6f·7265·4665·7463·6841··ion;ignoreFetchA | 00000830:·696f·6e3b·6967·6e6f·7265·4665·7463·6841··ion;ignoreFetchA | ||
| 00000840:·626f·7274·3b23·6e3b·235f·3b23·733b·2369··bort;#n;#_;#s;#i | 00000840:·626f·7274·3b23·6e3b·235f·3b23·733b·2369··bort;#n;#_;#s;#i | ||
| 00000850:·3b23·743b·2361·3b23·753b·236c·3b23·683b··;#t;#a;#u;#l;#h; | 00000850:·3b23·743b·2361·3b23·753b·236c·3b23·683b··;#t;#a;#u;#l;#h; | ||
| 00000860:·2362·3b23·723b·2379·3b23·413b·2364·3b23··#b;#r;#y;#A;#d;# | 00000860:·2362·3b23·723b·2379·3b23·413b·2364·3b23··#b;#r;#y;#A;#d;# | ||
| 00000870:·673b·2354·3b23·7 | 00000870:·673b·2354·3b23·763b·2366·3b23·493b·7374··g;#T;#v;#f;#I;st | ||
| 00000880:·6174·6963·2075·6e73·6166·6545·7870·6f73··atic·unsafeExpos | 00000880:·6174·6963·2075·6e73·6166·6545·7870·6f73··atic·unsafeExpos | ||
| 00000890:·6549·6e74·6572·6e61·6c73·2874·297b·7265··eInternals(t){re | 00000890:·6549·6e74·6572·6e61·6c73·2874·297b·7265··eInternals(t){re | ||
| 000008a0:·7475·726e·7b73·7461·7274·733a·742e·2341··turn{starts:t.#A | 000008a0:·7475·726e·7b73·7461·7274·733a·742e·2341··turn{starts:t.#A | ||
| 000008b0:·2c74·746c·733a·742e·2364·2c61·7574·6f70··,ttls:t.#d,autop | 000008b0:·2c74·746c·733a·742e·2364·2c61·7574·6f70··,ttls:t.#d,autop | ||
| 000008c0:·7572·6765·5469·6d65·7273·3a74·2e23·672c··urgeTimers:t.#g, | 000008c0:·7572·6765·5469·6d65·7273·3a74·2e23·672c··urgeTimers:t.#g, | ||
| 000008d0:·7369·7a65·733a·742e·2379·2c6b·6579·4d61··sizes:t.#y,keyMa | 000008d0:·7369·7a65·733a·742e·2379·2c6b·6579·4d61··sizes:t.#y,keyMa | ||
| 000008e0:·703a·742e·2373·2c6b·6579·4c69·7374·3a74··p:t.#s,keyList:t | 000008e0:·703a·742e·2373·2c6b·6579·4c69·7374·3a74··p:t.#s,keyList:t | ||
| Offset 177, 45 lines modified | Offset 177, 45 lines modified | ||
| 00000b00:·746f·7228·7429·7b6c·6574·7b6d·6178·3a65··tor(t){let{max:e | 00000b00:·746f·7228·7429·7b6c·6574·7b6d·6178·3a65··tor(t){let{max:e | ||
| 00000b10:·3d30·2c74·746c·3a69·2c74·746c·5265·736f··=0,ttl:i,ttlReso | 00000b10:·3d30·2c74·746c·3a69·2c74·746c·5265·736f··=0,ttl:i,ttlReso | ||
| 00000b20:·6c75·7469·6f6e·3a73·3d31·2c74·746c·4175··lution:s=1,ttlAu | 00000b20:·6c75·7469·6f6e·3a73·3d31·2c74·746c·4175··lution:s=1,ttlAu | ||
| 00000b30:·746f·7075·7267·653a·682c·7570·6461·7465··topurge:h,update | 00000b30:·746f·7075·7267·653a·682c·7570·6461·7465··topurge:h,update | ||
| 00000b40:·4167·654f·6e47·6574·3a6e·2c75·7064·6174··AgeOnGet:n,updat | 00000b40:·4167·654f·6e47·6574·3a6e·2c75·7064·6174··AgeOnGet:n,updat | ||
| 00000b50:·6541·6765·4f6e·4861·733a·6f2c·616c·6c6f··eAgeOnHas:o,allo | 00000b50:·6541·6765·4f6e·4861·733a·6f2c·616c·6c6f··eAgeOnHas:o,allo | ||
| 00000b60:·7753·7461·6c65·3a72·2c64·6973·706f·7365··wStale:r,dispose | 00000b60:·7753·7461·6c65·3a72·2c64·6973·706f·7365··wStale:r,dispose | ||
| 00000b70:·3a66·2c6f·6e49·6e73·6572·743a· | 00000b70:·3a66·2c6f·6e49·6e73·6572·743a·6d2c·6469··:f,onInsert:m,di | ||
| 00000b80:·7370·6f73·6541·6674·6572·3a63·2c6e·6f44··sposeAfter:c,noD | 00000b80:·7370·6f73·6541·6674·6572·3a63·2c6e·6f44··sposeAfter:c,noD | ||
| 00000b90:·6973·706f·7365·4f6e·5365·743a·642c·6e6f··isposeOnSet:d,no | 00000b90:·6973·706f·7365·4f6e·5365·743a·642c·6e6f··isposeOnSet:d,no | ||
| 00000ba0:·5570·6461·7465·5454·4c3a·672c·6d61·7853··UpdateTTL:g,maxS | 00000ba0:·5570·6461·7465·5454·4c3a·672c·6d61·7853··UpdateTTL:g,maxS | ||
| 00000bb0:·697a·653a·413d·302c·6d61·7845·6e74·7279··ize:A=0,maxEntry | 00000bb0:·697a·653a·413d·302c·6d61·7845·6e74·7279··ize:A=0,maxEntry | ||
| 00000bc0:·5369·7a65·3a70·3d30·2c73·697a·6543·616c··Size:p=0,sizeCal | 00000bc0:·5369·7a65·3a70·3d30·2c73·697a·6543·616c··Size:p=0,sizeCal | ||
| 00000bd0:·6375·6c61·7469·6f6e·3a5f·2c66·6574·6368··culation:_,fetch | 00000bd0:·6375·6c61·7469·6f6e·3a5f·2c66·6574·6368··culation:_,fetch | ||
| 00000be0:·4d65·7468·6f64·3a6c·2c6d·656d·6f4d·6574··Method:l,memoMet | 00000be0:·4d65·7468·6f64·3a6c·2c6d·656d·6f4d·6574··Method:l,memoMet | ||
| 00000bf0:·686f·643a·772c·6e6f·4465·6c65·7465·4f6e··hod:w,noDeleteOn | 00000bf0:·686f·643a·772c·6e6f·4465·6c65·7465·4f6e··hod:w,noDeleteOn | ||
| 00000c00:·4665·7463·6852·656a·6563·7469·6f6e·3a62··FetchRejection:b | 00000c00:·4665·7463·6852·656a·6563·7469·6f6e·3a62··FetchRejection:b | ||
| 00000c10:·2c6e·6f44·656c·6574·654f·6e53·7461·6c65··,noDeleteOnStale | 00000c10:·2c6e·6f44·656c·6574·654f·6e53·7461·6c65··,noDeleteOnStale | ||
| 00000c20:·4765·743a· | 00000c20:·4765·743a·532c·616c·6c6f·7753·7461·6c65··Get:S,allowStale | ||
| 00000c30:·4f6e·4665·7463·6852·656a·6563·7469·6f6e··OnFetchRejection | 00000c30:·4f6e·4665·7463·6852·656a·6563·7469·6f6e··OnFetchRejection | ||
| 00000c40:·3a | 00000c40:·3a75·2c61·6c6c·6f77·5374·616c·654f·6e46··:u,allowStaleOnF | ||
| 00000c50:·6574·6368·4162·6f72·743a· | 00000c50:·6574·6368·4162·6f72·743a·542c·6967·6e6f··etchAbort:T,igno | ||
| 00000c60:·7265·4665·7463·6841·626f·7274·3a | 00000c60:·7265·4665·7463·6841·626f·7274·3a46·2c70··reFetchAbort:F,p | ||
| 00000c70:·6572·663a·7 | 00000c70:·6572·663a·767d·3d74·3b69·6628·7621·3d3d··erf:v}=t;if(v!== | ||
| 00000c80:·766f·6964·2030·2626·7479·7065·6f66·207 | 00000c80:·766f·6964·2030·2626·7479·7065·6f66·2076··void·0&&typeof·v | ||
| 00000c90:·3f2e·6e6f·7721·3d22·6675·6e63·7469·6f6e··?.now!="function | 00000c90:·3f2e·6e6f·7721·3d22·6675·6e63·7469·6f6e··?.now!="function | ||
| 00000ca0:·2229·7468·726f·7720·6e65·7720·5479·7065··")throw·new·Type | 00000ca0:·2229·7468·726f·7720·6e65·7720·5479·7065··")throw·new·Type | ||
| 00000cb0:·4572·726f·7228·2270·6572·6620·6f70·7469··Error("perf·opti | 00000cb0:·4572·726f·7228·2270·6572·6620·6f70·7469··Error("perf·opti | ||
| 00000cc0:·6f6e·206d·7573·7420·6861·7665·2061·206e··on·must·have·a·n | 00000cc0:·6f6e·206d·7573·7420·6861·7665·2061·206e··on·must·have·a·n | ||
| 00000cd0:·6f77·2829·206d·6574·686f·6420·6966·2073··ow()·method·if·s | 00000cd0:·6f77·2829·206d·6574·686f·6420·6966·2073··ow()·method·if·s | ||
| 00000ce0:·7065·6369·6669·6564·2229·3b69·6628·7468··pecified");if(th | 00000ce0:·7065·6369·6669·6564·2229·3b69·6628·7468··pecified");if(th | ||
| 00000cf0:·6973·2e23·6d3d·7 | 00000cf0:·6973·2e23·6d3d·763f·3f78·2c65·213d·3d30··is.#m=v??x,e!==0 | ||
| 00000d00:·2626·2179·2865·2929·7468·726f·7720·6e65··&&!y(e))throw·ne | 00000d00:·2626·2179·2865·2929·7468·726f·7720·6e65··&&!y(e))throw·ne | ||
| 00000d10:·7720·5479·7065·4572·726f·7228·226d·6178··w·TypeError("max | 00000d10:·7720·5479·7065·4572·726f·7228·226d·6178··w·TypeError("max | ||
| 00000d20:·206f·7074·696f·6e20·6d75·7374·2062·6520···option·must·be· | 00000d20:·206f·7074·696f·6e20·6d75·7374·2062·6520···option·must·be· | ||
| 00000d30:·6120·6e6f·6e6e·6567·6174·6976·6520·696e··a·nonnegative·in | 00000d30:·6120·6e6f·6e6e·6567·6174·6976·6520·696e··a·nonnegative·in | ||
| 00000d40:·7465·6765·7222·293b·6c65·7420·4 | 00000d40:·7465·6765·7222·293b·6c65·7420·4f3d·653f··teger");let·O=e? | ||
| 00000d50:·4d28·6529·3a41·7272·6179·3b69·6628·214 | 00000d50:·4d28·6529·3a41·7272·6179·3b69·6628·214f··M(e):Array;if(!O | ||
| 00000d60:·2974·6872·6f77·206e·6577·2045·7272·6f72··)throw·new·Error | 00000d60:·2974·6872·6f77·206e·6577·2045·7272·6f72··)throw·new·Error | ||
| 00000d70:·2822·696e·7661·6c69·6420·6d61·7820·7661··("invalid·max·va | 00000d70:·2822·696e·7661·6c69·6420·6d61·7820·7661··("invalid·max·va | ||
| 00000d80:·6c75·653a·2022·2b65·293b·6966·2874·6869··lue:·"+e);if(thi | 00000d80:·6c75·653a·2022·2b65·293b·6966·2874·6869··lue:·"+e);if(thi | ||
| 00000d90:·732e·236f·3d65·2c74·6869·732e·2363·3d41··s.#o=e,this.#c=A | 00000d90:·732e·236f·3d65·2c74·6869·732e·2363·3d41··s.#o=e,this.#c=A | ||
| 00000da0:·2c74·6869·732e·6d61·7845·6e74·7279·5369··,this.maxEntrySi | 00000da0:·2c74·6869·732e·6d61·7845·6e74·7279·5369··,this.maxEntrySi | ||
| 00000db0:·7a65·3d70·7c7c·7468·6973·2e23·632c·7468··ze=p||this.#c,th | 00000db0:·7a65·3d70·7c7c·7468·6973·2e23·632c·7468··ze=p||this.#c,th | ||
| 00000dc0:·6973·2e73·697a·6543·616c·6375·6c61·7469··is.sizeCalculati | 00000dc0:·6973·2e73·697a·6543·616c·6375·6c61·7469··is.sizeCalculati | ||
| Offset 245, 30 lines modified | Offset 245, 30 lines modified | ||
| 00000f40:·766f·6964·2030·2626·7479·7065·6f66·206c··void·0&&typeof·l | 00000f40:·766f·6964·2030·2626·7479·7065·6f66·206c··void·0&&typeof·l | ||
| 00000f50:·213d·2266·756e·6374·696f·6e22·2974·6872··!="function")thr | 00000f50:·213d·2266·756e·6374·696f·6e22·2974·6872··!="function")thr | ||
| 00000f60:·6f77·206e·6577·2054·7970·6545·7272·6f72··ow·new·TypeError | 00000f60:·6f77·206e·6577·2054·7970·6545·7272·6f72··ow·new·TypeError | ||
| 00000f70:·2822·6665·7463·684d·6574·686f·6420·6d75··("fetchMethod·mu | 00000f70:·2822·6665·7463·684d·6574·686f·6420·6d75··("fetchMethod·mu | ||
| 00000f80:·7374·2062·6520·6120·6675·6e63·7469·6f6e··st·be·a·function | 00000f80:·7374·2062·6520·6120·6675·6e63·7469·6f6e··st·be·a·function | ||
| 00000f90:·2069·6620·7370·6563·6966·6965·6422·293b···if·specified"); | 00000f90:·2069·6620·7370·6563·6966·6965·6422·293b···if·specified"); | ||
| 00000fa0:·6966·2874·6869·732e·234c·3d6c·2c74·6869··if(this.#L=l,thi | 00000fa0:·6966·2874·6869·732e·234c·3d6c·2c74·6869··if(this.#L=l,thi | ||
| 00000fb0:·732e·237 | 00000fb0:·732e·2376·3d21·216c·2c74·6869·732e·2373··s.#v=!!l,this.#s | ||
| 00000fc0:·3d6e·6577·204d·6170·2c74·6869·732e·2369··=new·Map,this.#i | 00000fc0:·3d6e·6577·204d·6170·2c74·6869·732e·2369··=new·Map,this.#i | ||
| 00000fd0:·3d6e·6577·2041·7272·6179·2865·292e·6669··=new·Array(e).fi | 00000fd0:·3d6e·6577·2041·7272·6179·2865·292e·6669··=new·Array(e).fi | ||
| 00000fe0:·6c6c·2876·6f69·6420·3029·2c74·6869·732e··ll(void·0),this. | 00000fe0:·6c6c·2876·6f69·6420·3029·2c74·6869·732e··ll(void·0),this. | ||
| 00000ff0:·2374·3d6e·6577·2041·7272·6179·2865·292e··#t=new·Array(e). | 00000ff0:·2374·3d6e·6577·2041·7272·6179·2865·292e··#t=new·Array(e). | ||
| 00001000:·6669·6c6c·2876·6f69·6420·3029·2c74·6869··fill(void·0),thi | 00001000:·6669·6c6c·2876·6f69·6420·3029·2c74·6869··fill(void·0),thi | ||
| 00001010:·732e·2361·3d6e·6577·204 | 00001010:·732e·2361·3d6e·6577·204f·2865·292c·7468··s.#a=new·O(e),th | ||
| 00001020:·6973·2e23·753d·6e65·7720·4 | 00001020:·6973·2e23·753d·6e65·7720·4f28·6529·2c74··is.#u=new·O(e),t | ||
| 00001030:·6869·732e·236c·3d30·2c74·6869·732e·2368··his.#l=0,this.#h | 00001030:·6869·732e·236c·3d30·2c74·6869·732e·2368··his.#l=0,this.#h | ||
| 00001040:·3d30·2c74·6869·732e·2362·3d57·2e63·7265··=0,this.#b=W.cre | 00001040:·3d30·2c74·6869·732e·2362·3d57·2e63·7265··=0,this.#b=W.cre | ||
| 00001050:·6174·6528·6529·2c74·6869·732e·236e·3d30··ate(e),this.#n=0 | 00001050:·6174·6528·6529·2c74·6869·732e·236e·3d30··ate(e),this.#n=0 | ||
| 00001060:·2c74·6869·732e·235f·3d30·2c74·7970·656f··,this.#_=0,typeo | 00001060:·2c74·6869·732e·235f·3d30·2c74·7970·656f··,this.#_=0,typeo | ||
| 00001070:·6620·663d·3d22·6675·6e63·7469·6f6e·2226··f·f=="function"& | 00001070:·6620·663d·3d22·6675·6e63·7469·6f6e·2226··f·f=="function"& | ||
| Max diff block lines reached; 63590/71473 bytes (88.97%) of diff not shown. | |||
| Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"mappings":·"4FASA,IAAMA,EAEF,OAAO,aAAgB,UACvB,aACA,OAAO,YAAY,KAAQ,WAE3B,YACA,KAEEC,EAAS,IAAI,IAMbC,EACJ,OAAO,SAAY,UAAc,QAC/B,QACA,CAAA,EAGEC,EAAc,CAClBC,EACAC,EACAC,EACAC,IACE,CACF,OAAOL,EAAQ,aAAgB,WAC7BA,EAAQ,YAAYE,EAAKC,EAAMC,EAAMC,CAAE,EACvC,QAAQ,MAAM,IAAID,CAAI,KAAKD,CAAI,KAAKD,CAAG,EAAE,CAC7C,EAEII,EAAK,WAAW,gBAChBC,EAAK,WAAW,YAGpB,GAAI,OAAOD,EAAO,IAAa,CAE7BC,EAAK,KAAiB,CACpB,QACA,SAAqC,CAAA,EACrC,OACA,QAAmB,GACnB,iBAAiBC,EAAWH,EAAwB,CAClD,KAAK,SAAS,KAAKA,CAAE,CACvB,GAGFC,EAAK,KAAqB,CACxB,aAAA,CACEG,EAAc,CAChB,CACA,OAAS,IAAIF,EACb,MAAMG,EAAW,CACf,GAAI,MAAK,OAAO,QAEhB,MAAK,OAAO,OAASA,EAErB,KAAK,OAAO,QAAU,GAEtB,QAAWL,KAAM,KAAK,OAAO,SAC3BA,EAAGK,CAAM,EAEX,KAAK,OAAO,UAAUA,CAAM,EAC9B,GAEF,IAAIC,EACFX,EAAQ,KAAK,8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BoD,CAAC,EAAIA,EAAE,qBAAuBA,CAC/D,CAEA/C,GACEJ,EACAC,EACAC,EACAC,EAAY,CAEZ,IAAMgD,EAAIlD,IAAU,OAAY,OAAY,KAAKnB,GAASmB,CAAK,EAC/D,GAAI,KAAKF,GAAmBoD,CAAC,EAC3B,OAAOA,EAGT,IAAM2B,EAAK,IAAIjI,EACT,CAAE,OAAAkI,CAAM,EAAK7E,EAEnB6E,GAAQ,iBAAiB,QAAS,IAAMD,EAAG,MAAMC,EAAO,MAAM,EAAG,CAC/D,OAAQD,EAAG,OACZ,EAED,IAAME,EAAY,CAChB,OAAQF,EAAG,OACX,QAAA5E,EACA,QAAAC,GAGI8E,EAAK,CAAC9B,EAAkB+B,EAAc,KAAwB,CAClE,GAAM,CAAE,QAAAC,CAAO,EAAKL,EAAG,OACjBM,EAAclF,EAAQ,kBAAoBiD,IAAM,OAChDkC,EAAUnF,EAAQ,kBACtB,CAAC,EAAEA,EAAQ,wBAA0BiD,IAAM,QAU7C,GATIjD,EAAQ,SACNiF,GAAW,CAACD,GACdhF,EAAQ,OAAO,aAAe,GAC9BA,EAAQ,OAAO,WAAa4E,EAAG,OAAO,OAClCM,IAAalF,EAAQ,OAAO,kBAAoB,KAEpDA,EAAQ,OAAO,cAAgB,IAG/BiF,GAAW,CAACC,GAAe,CAACF,EAC9B,OAAOI,EAAUR,EAAG,OA[·...·truncated·by·diffoscope;·len:·6721,·SHA:·757d76c72274c2a48d85fda0b1d1fce65732fbd715849d74f9d4f52e585f652c·...·]wDF,QAAA,SAAAxG", |
| 3 | ····"names":·[ | 3 | ····"names":·[ |
| 4 | ········"defaultPerf", | 4 | ········"defaultPerf", |
| 5 | ········"warned", | 5 | ········"warned", |
| 6 | ········"PROCESS", | 6 | ········"PROCESS", |
| 7 | ········"emitWarning", | 7 | ········"emitWarning", |
| 8 | ········"msg", | 8 | ········"msg", |
| 9 | ········"type", | 9 | ········"type", |
| Offset 141, 14 lines modified | Offset 141, 15 lines modified | ||
| 141 | ········"ac", | 141 | ········"ac", |
| 142 | ········"signal", | 142 | ········"signal", |
| 143 | ········"fetchOpts", | 143 | ········"fetchOpts", |
| 144 | ········"cb", | 144 | ········"cb", |
| 145 | ········"updateCache", | 145 | ········"updateCache", |
| 146 | ········"aborted", | 146 | ········"aborted", |
| 147 | ········"ignoreAbort", | 147 | ········"ignoreAbort", |
| 148 | ········"proceed", | ||
| 148 | ········"fetchFail", | 149 | ········"fetchFail", |
| 149 | ········"bf", | 150 | ········"bf", |
| 150 | ········"vl", | 151 | ········"vl", |
| 151 | ········"eb", | 152 | ········"eb", |
| 152 | ········"er", | 153 | ········"er", |
| 153 | ········"allowStaleAborted", | 154 | ········"allowStaleAborted", |
| 154 | ········"noDelete", | 155 | ········"noDelete", |
| Offset 170, 11 lines modified | Offset 171, 11 lines modified | ||
| 170 | ········"pi", | 171 | ········"pi", |
| 171 | ········"ni" | 172 | ········"ni" |
| 172 | ····], | 173 | ····], |
| 173 | ····"sources":·[ | 174 | ····"sources":·[ |
| 174 | ········"../../src/index.ts" | 175 | ········"../../src/index.ts" |
| 175 | ····], | 176 | ····], |
| 176 | ····"sourcesContent":·[ | 177 | ····"sourcesContent":·[ |
| 177 | ········"/**\n·*·@module·LRUCache\n·*/\n\n//·module-private·names·and·types\n//·this·provides·the·default·Perf·object·source.\n//·it·can·be·passed·in·via·configuration·to·override·it\n//·for·a·single·LRU·object.\nexport·type·Perf·=·{·now:·()·=>·number·}\nconst·defaultPerf:·Perf·=\n··(\n····typeof·performance·===·'object'·&&\n····performance·&&\n····typeof·performance.now·===·'function'\n··)·?\n····performance\n··:·Date\n\nconst·warned·=·new·Set<string>()\n\n//·either·a·function·or·a·class\ntype·ForC·=·((...a:·any[])·=>·any)·|·{·new·(...a:·any[]):·any·}\n\n/*·c8·ignore·start·*/\nconst·PROCESS·=·(\n··typeof·process·===·'object'·&&·!!process·?\n····process\n··:·{})·as·{·[k:·string]:·any·}\n/*·c8·ignore·start·*/\n\nconst·emitWarning·=·(\n··msg:·string,\n··type:·string,\n··code:·string,\n··fn:·ForC,\n)·=>·{\n··typeof·PROCESS.emitWarning·===·'function'·?\n····PROCESS.emitWarning(msg,·type,·code,·fn)\n··:·console.error(`[${code}]·${type}:·${msg}`)\n}\n\nlet·AC·=·globalThis.AbortController\nlet·AS·=·globalThis.AbortSignal\n\n/*·c8·ignore·start·*/\nif·(typeof·AC·===·'undefined')·{\n··//@ts-ignore\n··AS·=·class·AbortSignal·{\n····onabort?:·(...a:·any[])·=>·any\n····_onabort:·((...a:·any[])·=>·any)[]·=·[]\n····reason?:·any\n····aborted:·boolean·=·false\n····addEventListener(_:·string,·fn:·(...a:·any[])·=>·any)·{\n······this._onabort.push(fn)\n····}\n··}\n··//@ts-ignore\n··AC·=·class·AbortController·{\n····constructor()·{\n······warnACPolyfill()\n····}\n····signal·=·new·AS()\n····abort(reason:·any)·{\n······if·(this.signal.aborted)·return\n······//@ts-ignore\n······this.signal.reason·=·reason\n······//@ts-ignore\n······this.signal.aborted·=·true\n······//@ts-ignore\n······for·(const·fn·of·this.signal._onabort)·{\n········fn(reason)\n······}\n······this.signal.onabort?.(reason)\n····}\n··}\n··let·printACPolyfillWarning·=\n····PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING·!==·'1'\n··const·warnACPolyfill·=·()·=>·{\n····if·(!printACPolyfillWarning)·return\n····printACPolyfillWarning·=·false\n····emitWarning(\n······'AbortController·is·not·defined.·If·using·lru-cache·in·'·+\n········'node·14,·load·an·AbortController·polyfill·from·the·'·+\n········'`node-abort-controller`·package.·A·minimal·polyfill·is·'·+\n········'provided·for·use·by·LRUCache.fetch(),·but·it·should·not·be·'·+\n········'relied·upon·in·other·contexts·(eg,·passing·it·to·other·APIs·that·'·+\n········'use·AbortController/AbortSignal·might·have·undesirable·effects).·'·+\n········'You·may·disable·this·with·LRU_CACHE_IGNORE_AC_WARNING=1·in·the·env.',\n······'NO_ABORT_CONTROLLER',\n······'ENOTSUP',\n······warnACPolyfill,\n····)\n··}\n}\n/*·c8·ignore·stop·*/\n\nconst·shouldWarn·=·(code:·string)·=>·!warned.has(code)\n\nconst·TYPE·=·Symbol('type')\nexport·type·PosInt·=·number·&·{·[TYPE]:·'Positive·Integer'·}\nexport·type·Index·=·number·&·{·[TYPE]:·'LRUCache·Index'·}\n\nconst·isPosInt·=·(n:·any):·n·is·PosInt·=>\n··n·&&·n·===·Math.floor(n)·&&·n·>·0·&&·isFinite(n)\n\nexport·type·UintArray·=·Uint8Array·|·Uint16Array·|·Uint32Array\nexport·type·NumberArray·=·UintArray·|·number[]\n\n/*·c8·ignore·start·*/\n//·This·is·a·little·bit·ridiculous,·tbh.\n//·The·maximum·array·length·is·2^32-1·or·thereabouts·on·most·JS·impls.\n//·And·well·before·that·point,·you're·caching·the·entire·world,·I·mean,\n//·that's·~32GB·of·just·integers·for·the·next/prev·links,·plus·whatever\n//·else·to·hold·that·many·keys·and·values.··Just·filling·the·memory·with\n//·zeroes·at·init·time·is·brutal·when·you·get·that·big.\n//·But·why·not·be·complete?\n//·Maybe·in·the·future,·these·limits·will·have·expanded.\nconst·getUintArray·=·(max:·number)·=>\n··!isPosInt(max)·?·null\n··:·max·<=·Math.pow(2,·8)·?·Uint8Array\n··:·max·<=·Math.pow(2,·16)·?·Uint16Array\n··:·max·<=·Math.pow(2,·32)·?·Uint32Array\n··:·max·<=·Number.MAX_SAFE_INTEGER·?·ZeroArray\n··:·null\n/*·c8·ignore·stop·*/\n\nclass·ZeroArray·extends·Array<number>·{\n··constructor(size:·number)·{\n····super(size)\n····this.fill(0)\n··}\n}\nexport·type·{·ZeroArray·}\nexport·type·{·Stack·}\n\nexport·type·StackLike·=·Stack·|·Index[]\nclass·Stack·{\n··heap:·NumberArray\n··length:·number\n··//·private·constructor\n··static·#constructing:·boolean·=·false\n··static·create(max:·number):·StackLike·{\n····const·HeapCls·=·getUintArray(max)\n····if·(!HeapCls)·return·[]\n····Stack.#constructing·=·true\n····const·s·=·new·Stack(max,·HeapCls)\n····Stack.#constructing·=·false\n····return·s\n··}\n··constructor(max:·number,·HeapCls:·{·new·(n:·number):·NumberArray·})·{\n····/*·c8·ignore·start·*/\n····if·(!Stack.#constructing)·{\n······throw·new·TypeError('instantiate·Stack·using·Stack.create(n)')\n····}\n····/*·c8·ignore·stop·*/\n····this.heap·=·new·HeapCls(max)\n····this.length·=·0\n··}\n··push(n:·Index)·{\n····this.heap[this.length++]·=·n\n··}\n··pop():·Index·{\n····return·this.heap[--this.length]·as·Index\n··}\n}\n\n/**\n·*·Promise·representing·an·in-progress·{@link·LRUCache#fetch}·call\n·*/\nexport·type·BackgroundFetch<V>·=·Promise<V·|·undefined>·&·{\n··__returned:·BackgroundFetch<V>·|·undefined\n··__abortController:·AbortController\n··__staleWhileFetching:·V·|·undefined\n}\n\nexport·type·DisposeTask<K,·V>·=·[\n··value:·V,\n··key:·K,\n··reason:·LRUCache.DisposeReason,\n]\n\nexport·namespace·LRUCache·{\n··/**\n···*·An·integer·greater·than·0,·reflecting·the·calculated·size·of·items\n···*/\n··export·type·Size·=·number\n\n··/**\n···*·Integer·greater·than·0,·representing·some·number·of·milliseconds,·or·the\n···*·time·at·which·a·TTL·started·counting·from.\n···*/\n··export·type·Milliseconds·=·number\n\n··/**\n···*·An·integer·greater·than·0,·reflecting·a·number·of·items\n···*/\n··export·type·Count·=·number\n\n··/**\n···*·The·reason·why·an·item·was·removed·from·the·cache,·passed\n···*·to·the·{@link·Disposer}·methods.\n···*\n···*·-·`evict`:·The·item·was·evicted·because·it·is·the·least·recently·used,\n···*···and·the·cache·is·full.\n···*·-·`set`:·A·new·value·was·set,·overwriting·the·old·value·being·disposed.\n···*·-·`delete`:·The·item·was·explicitly·deleted,·either·by·calling\n···*···{@link·LRUCache#delete},·{@link·LRUCache#clear},·or\n···*···{@link·LRUCache#set}·with·an·undefined·value.\n···*·-·`expire`:·The·item·was·removed·due·to·exceeding·its·TTL.\n···*·-·`fetch`:·A·{@link·OptionsBase#fetchMethod}·operation·returned\n···*···`undefined`·or·was·aborted,·causing·the·item·to·be·deleted.\n···*/\n··export·type·DisposeReason·=\n····|·'evict'\n····|·'set'\n····|·'delete'\n····|·'expire'\n····|·'fetch'\n··/**\n···*·A·method·called·upon·item·removal,·passed·as·the\n···*·{@link·OptionsBase.dispose}·and/or\n···*·{@link·OptionsBase.disposeAfter}·options.\n···*/\n··export·type·Disposer<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·DisposeReason,\n··)·=>·void\n\n··/**\n···*·The·reason·why·an·item·was·added·to·the·cache,·passed\n···*·to·the·{@link·Inserter}·methods.\n···*\n···*·-·`add`:·the·item·was·not·found·in·the·cache,·and·was·added\n···*·-·`update`:·the·item·was·in·the·cache,·with·the·same·value·provided\n···*·-·`replace`:·the·item·was·in·the·cache,·and·replaced\n···*/\n··export·type·InsertReason·=·'add'·|·'update'·|·'replace'\n\n··/**\n···*·A·method·called·upon·item·insertion,·passed·as·the\n···*·{@link·OptionsBase.insert}\n···*/\n··export·type·Inserter<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·InsertReason,\n··)·=>·void\n\n··/**\n···*·A·function·that·returns·the·effective·calculated·size\n···*·of·an·entry·in·the·cache.\n···*/\n··export·type·SizeCalculator<K,·V>·=·(value:·V,·key:·K)·=>·Size\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.fetchMethod}·function.\n···*/\n··export·interface·FetcherOptions<K,·V,·FC·=·unknown>·{\n····signal:·AbortSignal\n····options:·FetcherFetchOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·FetchOptions.context}·option·to\n·····*·{@link·LRUCache#fetch}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·Occasionally,·it·may·be·useful·to·track·the·internal·behavior·of·the\n···*·cache,·particularly·for·logging,·debugging,·or·for·behavior·within·the\n···*·`fetchMethod`.·To·do·this,·you·can·pass·a·`status`·object·to·the\n···*·{@link·LRUCache#fetch},·{@link·LRUCache#get},·{@link·LRUCache#set},\n···*·{@link·LRUCache#memo},·and·{@link·LRUCache#has}·methods.\n···*\n···*·The·`status`·option·should·be·a·plain·JavaScript·object.·The·following\n···*·fields·will·be·set·on·it·appropriately,·depending·on·the·situation.\n···*/\n··export·interface·Status<V>·{\n····/**\n·····*·The·status·of·a·set()·operation.\n·····*\n·····*·-·add:·the·item·was·not·found·in·the·cache,·and·was·added\n·····*·-·update:·the·item·was·in·the·cache,·with·the·same·value·provided\n·····*·-·replace:·the·item·was·in·the·cache,·and·replaced\n·····*·-·miss:·the·item·was·not·added·to·the·cache·for·some·reason\n·····*/\n····set?:·'add'·|·'update'·|·'replace'·|·'miss'\n\n····/**\n·····*·the·ttl·stored·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·the·start·time·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····start?:·Milliseconds\n\n····/**\n·····*·The·timestamp·used·for·TTL·calculation\n·····*/\n····now?:·Milliseconds\n\n····/**\n·····*·the·remaining·ttl·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····remainingTTL?:·Milliseconds\n\n····/**\n·····*·The·calculated·size·for·the·item,·if·sizes·are·used.\n·····*/\n····entrySize?:·Size\n\n····/**\n·····*·The·total·calculated·size·of·the·cache,·if·sizes·are·used.\n·····*/\n····totalCalculatedSize?:·Size\n\n····/**\n·····*·A·flag·indicating·that·the·item·was·not·stored,·due·to·exceeding·the\n·····*·{@link·OptionsBase.maxEntrySize}\n·····*/\n····maxEntrySizeExceeded?:·true\n\n····/**\n·····*·The·old·value,·specified·in·the·case·of·`set:'update'`·or\n·····*·`set:'replace'`\n·····*/\n····oldValue?:·V\n\n····/**\n·····*·The·results·of·a·{@link·LRUCache#has}·operation\n·····*\n·····*·-·hit:·the·item·was·found·in·the·cache\n·····*·-·stale:·the·item·was·found·in·the·cache,·but·is·stale\n·····*·-·miss:·the·item·was·not·found·in·the·cache\n·····*/\n····has?:·'hit'·|·'stale'·|·'miss'\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#fetch}·operation.\n·····*·Note·that·this·can·change·as·the·underlying·fetch()·moves·through\n·····*·various·states.\n·····*\n·····*·-·inflight:·there·is·another·fetch()·for·this·key·which·is·in·process\n·····*·-·get:·there·is·no·{@link·OptionsBase.fetchMethod},·so\n·····*···{@link·LRUCache#get}·was·called.\n·····*·-·miss:·the·item·is·not·in·cache,·and·will·be·fetched.\n·····*·-·hit:·the·item·is·in·the·cache,·and·was·resolved·immediately.\n·····*·-·stale:·the·item·is·in·the·cache,·but·stale.\n·····*·-·refresh:·the·item·is·in·the·cache,·and·not·stale,·but\n·····*···{@link·FetchOptions.forceRefresh}·was·specified.\n·····*/\n····fetch?:·'get'·|·'inflight'·|·'miss'·|·'hit'·|·'stale'·|·'refresh'\n\n····/**\n·····*·The·{@link·OptionsBase.fetchMethod}·was·called\n·····*/\n····fetchDispatched?:·true\n\n····/**\n·····*·The·cached·value·was·updated·after·a·successful·call·to\n·····*·{@link·OptionsBase.fetchMethod}\n·····*/\n····fetchUpdated?:·true\n\n····/**\n·····*·The·reason·for·a·fetch()·rejection.··Either·the·error·raised·by·the\n·····*·{@link·OptionsBase.fetchMethod},·or·the·reason·for·an\n·····*·AbortSignal.\n·····*/\n····fetchError?:·Error\n\n····/**\n·····*·The·fetch·received·an·abort·signal\n·····*/\n····fetchAborted?:·true\n\n····/**\n·····*·The·abort·signal·received·was·ignored,·and·the·fetch·was·allowed·to\n·····*·continue.\n·····*/\n····fetchAbortIgnored?:·true\n\n····/**\n·····*·The·fetchMethod·promise·resolved·successfully\n·····*/\n····fetchResolved?:·true\n\n····/**\n·····*·The·fetchMethod·promise·was·rejected\n·····*/\n····fetchRejected?:·true\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#get}·operation.\n·····*\n·····*·-·fetching:·The·item·is·currently·being·fetched.··If·a·previous·value\n·····*···is·present·and·allowed,·that·will·be·returned.\n·····*·-·stale:·The·item·is·in·the·cache,·and·is·stale.\n·····*·-·hit:·the·item·is·in·the·cache\n·····*·-·miss:·the·item·is·not·in·the·cache\n·····*/\n····get?:·'stale'·|·'hit'·|·'miss'\n\n····/**\n·····*·A·fetch·or·get·operation·returned·a·stale·value.\n·····*/\n····returnedStale?:·true\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#fetch}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·OptionsBase.noDeleteOnFetchRejection},\n···*·{@link·OptionsBase.allowStaleOnFetchRejection},\n···*·{@link·FetchOptions.forceRefresh},·and\n···*·{@link·FetcherOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.fetchMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·fetchMethod·is·called.\n···*/\n··export·interface·FetcherFetchOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#fetch}·method.\n···*/\n··export·interface·FetchOptions<K,·V,·FC>\n····extends·FetcherFetchOptions<K,·V,·FC>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.fetchMethod}·as\n·····*·the·{@link·FetcherOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····signal?:·AbortSignal\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·FetchOptionsWithContext<K,·V,·FC>\n····extends·FetchOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·FetchOptionsNoContext<K,·V>\n····extends·FetchOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··export·interface·MemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.memoMethod}·as\n·····*·the·{@link·MemoizerOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·MemoOptionsWithContext<K,·V,·FC>\n····extends·MemoOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·MemoOptionsNoContext<K,·V>\n····extends·MemoOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.memoMethod}·function.\n···*/\n··export·interface·MemoizerOptions<K,·V,·FC·=·unknown>·{\n····options:·MemoizerMemoOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·MemoOptions.context}·option·to\n·····*·{@link·LRUCache#memo}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#memo}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·MemoOptions.forceRefresh},·and\n···*·{@link·MemoOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.memoMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·memoMethod·is·called.\n···*/\n··export·interface·MemoizerMemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n····start?:·Milliseconds\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#has}·method.\n···*/\n··export·interface·HasOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'updateAgeOnHas'>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#get}·method.\n···*/\n··export·interface·GetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'allowStale'·|·'updateAgeOnGet'·|·'noDeleteOnStaleGet'\n····>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#peek}·method.\n···*/\n··export·interface·PeekOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'allowStale'>·{}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#set}·method.\n···*/\n··export·interface·SetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'sizeCalculation'·|·'ttl'·|·'noDisposeOnSet'·|·'noUpdateTTL'\n····>·{\n····/**\n·····*·If·size·tracking·is·enabled,·then·setting·an·explicit·size\n·····*·in·the·{@link·LRUCache#set}·call·will·prevent·calling·the\n·····*·{@link·OptionsBase.sizeCalculation}·function.\n·····*/\n····size?:·Size\n····/**\n·····*·If·TTL·tracking·is·enabled,·then·setting·an·explicit·start\n·····*·time·in·the·{@link·LRUCache#set}·call·will·override·the\n·····*·default·time·from·`performance.now()`·or·`Date.now()`.\n·····*\n·····*·Note·that·it·must·be·a·valid·value·for·whichever·time-tracking\n·····*·method·is·in·use.\n·····*/\n····start?:·Milliseconds\n····status?:·Status<V>\n··}\n\n··/**\n···*·The·type·signature·for·the·{@link·OptionsBase.fetchMethod}·option.\n···*/\n··export·type·Fetcher<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·FetcherOptions<K,·V,·FC>,\n··)·=>·Promise<V·|·undefined·|·void>·|·V·|·undefined·|·void\n\n··/**\n···*·the·type·signature·for·the·{@link·OptionsBase.memoMethod}·option.\n···*/\n··export·type·Memoizer<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·MemoizerOptions<K,·V,·FC>,\n··)·=>·V\n\n··/**\n···*·Options·which·may·be·passed·to·the·{@link·LRUCache}·constructor.\n···*\n···*·Most·of·these·may·be·overridden·in·the·various·options·that·use\n···*·them.\n···*\n···*·Despite·all·being·technically·optional,·the·constructor·requires·that\n···*·a·cache·is·at·minimum·limited·by·one·or·more·of·{@link·OptionsBase.max},\n···*·{@link·OptionsBase.ttl},·or·{@link·OptionsBase.maxSize}.\n···*\n···*·If·{@link·OptionsBase.ttl}·is·used·alone,·then·it·is·strongly·advised\n···*·(and·in·fact·required·by·the·type·definitions·here)·that·the·cache\n···*·also·set·{@link·OptionsBase.ttlAutopurge},·to·prevent·potentially\n···*·unbounded·storage.\n···*\n···*·All·options·are·also·available·on·the·{@link·LRUCache}·instance,·making\n···*·it·safe·to·pass·an·LRUCache·instance·as·the·options·argumemnt·to\n···*·make·another·empty·cache·of·the·same·type.\n···*\n···*·Some·options·are·marked·as·read-only,·because·changing·them·after\n···*·instantiation·is·not·safe.·Changing·any·of·the·other·options·will·of\n···*·course·only·have·an·effect·on·subsequent·method·calls.\n···*/\n··export·interface·OptionsBase<K,·V,·FC>·{\n····/**\n·····*·The·maximum·number·of·items·to·store·in·the·cache·before·evicting\n·····*·old·entries.·This·is·read-only·on·the·{@link·LRUCache}·instance,\n·····*·and·may·not·be·overridden.\n·····*\n·····*·If·set,·then·storage·space·will·be·pre-allocated·at·construction\n·····*·time,·and·the·cache·will·perform·significantly·faster.\n·····*\n·····*·Note·that·significantly·fewer·items·may·be·stored,·if\n·····*·{@link·OptionsBase.maxSize}·and/or·{@link·OptionsBase.ttl}·are·also\n·····*·set.\n·····*\n·····*·**It·is·strongly·recommended·to·set·a·`max`·to·prevent·unbounded·growth\n·····*·of·the·cache.**\n·····*/\n····max?:·Count\n\n····/**\n·····*·Max·time·in·milliseconds·for·items·to·live·in·cache·before·they·are\n·····*·considered·stale.··Note·that·stale·items·are·NOT·preemptively·removed·by\n·····*·default,·and·MAY·live·in·the·cache,·contributing·to·its·LRU·max,·long\n·····*·after·they·have·expired,·unless·{@link·OptionsBase.ttlAutopurge}·is\n·····*·set.\n·····*\n·····*·If·set·to·`0`·(the·default·value),·then·that·means·\"do·not·track\n·····*·TTL\",·not·\"expire·immediately\".\n·····*\n·····*·Also,·as·this·cache·is·optimized·for·LRU/MRU·operations,·some·of\n·····*·the·staleness/TTL·checks·will·reduce·performance,·as·they·will·incur\n·····*·overhead·by·deleting·items.\n·····*\n·····*·This·is·not·primarily·a·TTL·cache,·and·does·not·make·strong·TTL\n·····*·guarantees.·There·is·no·pre-emptive·pruning·of·expired·items,·but·you\n·····*·_may_·set·a·TTL·on·the·cache,·and·it·will·treat·expired·items·as·missing\n·····*·when·they·are·fetched,·and·delete·them.\n·····*\n·····*·Optional,·but·must·be·a·non-negative·integer·in·ms·if·specified.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.set()`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·ttl·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·If·ttl·tracking·is·enabled,·and·`max`·and·`maxSize`·are·not·set,\n·····*·and·`ttlAutopurge`·is·not·set,·then·a·warning·will·be·emitted\n·····*·cautioning·about·the·potential·for·unbounded·memory·consumption.\n·····*·(The·TypeScript·definitions·will·also·discourage·this.)\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·Minimum·amount·of·time·in·ms·in·which·to·check·for·staleness.\n·····*·Defaults·to·1,·which·means·that·the·current·time·is·checked\n·····*·at·most·once·per·millisecond.\n·····*\n·····*·Set·to·0·to·check·the·current·time·every·time·staleness·is·tested.\n·····*·(This·reduces·performance,·and·is·theoretically·unnecessary.)\n·····*\n·····*·Setting·this·to·a·higher·value·will·improve·performance·somewhat\n·····*·while·using·ttl·tracking,·albeit·at·the·expense·of·keeping·stale\n·····*·items·around·a·bit·longer·than·their·TTLs·would·indicate.\n·····*\n·····*·@default·1\n·····*/\n····ttlResolution?:·Milliseconds\n\n····/**\n·····*·Preemptively·remove·stale·items·from·the·cache.\n·····*\n·····*·Note·that·this·may·*significantly*·degrade·performance,·especially·if\n·····*·the·cache·is·storing·a·large·number·of·items.·It·is·almost·always·best\n·····*·to·just·leave·the·stale·items·in·the·cache,·and·let·them·fall·out·as·new\n·····*·items·are·added.\n·····*\n·····*·Note·that·this·means·that·{@link·OptionsBase.allowStale}·is·a·bit\n·····*·pointless,·as·stale·items·will·be·deleted·almost·as·soon·as·they\n·····*·expire.\n·····*\n·····*·Use·with·caution!\n·····*/\n····ttlAutopurge?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·it·is·retrieved·from·cache·with\n·····*·{@link·LRUCache#get},·causing·it·to·not·expire.·(It·can·still·fall·out\n·····*·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*/\n····updateAgeOnGet?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·its·presence·in·the·cache·is\n·····*·checked·with·{@link·LRUCache#has},·causing·it·to·not·expire.·(It·can\n·····*·still·fall·out·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*/\n····updateAgeOnHas?:·boolean\n\n····/**\n·····*·Allow·{@link·LRUCache#get}·and·{@link·LRUCache#fetch}·calls·to·return\n·····*·stale·data,·if·available.\n·····*\n·····*·By·default,·if·you·set·`ttl`,·stale·items·will·only·be·deleted·from·the\n·····*·cache·when·you·`get(key)`.·That·is,·it's·not·preemptively·pruning·items,\n·····*·unless·{@link·OptionsBase.ttlAutopurge}·is·set.\n·····*\n·····*·If·you·set·`allowStale:true`,·it'll·return·the·stale·value·*as·well·as*\n·····*·deleting·it.·If·you·don't·set·this,·then·it'll·return·`undefined`·when\n·····*·you·try·to·get·a·stale·entry.\n·····*\n·····*·Note·that·when·a·stale·entry·is·fetched,·_even·if·it·is·returned·due·to\n·····*·`allowStale`·being·set_,·it·is·removed·from·the·cache·immediately.·You\n·····*·can·suppress·this·behavior·by·setting\n·····*·{@link·OptionsBase.noDeleteOnStaleGet},·either·in·the·constructor,·or·in\n·····*·the·options·provided·to·{@link·LRUCache#get}.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*·The·`cache.has()`·method·will·always·return·`false`·for·stale·items.\n·····*\n·····*·Only·relevant·if·a·ttl·is·set.\n·····*/\n····allowStale?:·boolean\n\n····/**\n·····*·Function·that·is·called·on·items·when·they·are·dropped·from·the\n·····*·cache,·as·`dispose(value,·key,·reason)`.\n·····*\n·····*·This·can·be·handy·if·you·want·to·close·file·descriptors·or·do\n·····*·other·cleanup·tasks·when·items·are·no·longer·stored·in·the·cache.\n·····*\n·····*·**NOTE**:·It·is·called·_before_·the·item·has·been·fully·removed\n·····*·from·the·cache,·so·if·you·want·to·put·it·right·back·in,·you·need\n·····*·to·wait·until·the·next·tick.·If·you·try·to·add·it·back·in·during\n·····*·the·`dispose()`·function·call,·it·will·break·things·in·subtle·and\n·····*·weird·ways.\n·····*\n·····*·Unlike·several·other·options,·this·may·_not_·be·overridden·by\n·····*·passing·an·option·to·`set()`,·for·performance·reasons.\n·····*\n·····*·The·`reason`·will·be·one·of·the·following·strings,·corresponding\n·····*·to·the·reason·for·the·item's·deletion:\n·····*\n·····*·-·`evict`·Item·was·evicted·to·make·space·for·a·new·addition\n·····*·-·`set`·Item·was·overwritten·by·a·new·value\n·····*·-·`expire`·Item·expired·its·TTL\n·····*·-·`fetch`·Item·was·deleted·due·to·a·failed·or·aborted·fetch,·or·a\n·····*···fetchMethod·returning·`undefined.\n·····*·-·`delete`·Item·was·removed·by·explicit·`cache.delete(key)`,\n·····*···`cache.clear()`,·or·`cache.set(key,·undefined)`.\n·····*/\n····dispose?:·Disposer<K,·V>\n\n····/**\n·····*·Function·that·is·called·when·new·items·are·inserted·into·the·cache,\n·····*·as·`onInsert(value,·key,·reason)`.\n·····*\n·····*·This·can·be·useful·if·you·need·to·perform·actions·when·an·item·is\n·····*·added,·such·as·logging·or·tracking·insertions.\n·····*\n·····*·Unlike·some·other·options,·this·may·_not_·be·overridden·by·passing\n·····*·an·option·to·`set()`,·for·performance·and·consistency·reasons.\n·····*/\n····onInsert?:·Inserter<K,·V>\n\n····/**\n·····*·The·same·as·{@link·OptionsBase.dispose},·but·called·*after*·the·entry\n·····*·is·completely·removed·and·the·cache·is·once·again·in·a·clean·state.\n·····*\n·····*·It·is·safe·to·add·an·item·right·back·into·the·cache·at·this·point.\n·····*·However,·note·that·it·is·*very*·easy·to·inadvertently·create·infinite\n·····*·recursion·this·way.\n·····*/\n····disposeAfter?:·Disposer<K,·V>\n\n····/**\n·····*·Set·to·true·to·suppress·calling·the\n·····*·{@link·OptionsBase.dispose}·function·if·the·entry·key·is\n·····*·still·accessible·within·the·cache.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to\n·····*·{@link·LRUCache#set}.\n·····*\n·····*·Only·relevant·if·`dispose`·or·`disposeAfter`·are·set.\n·····*/\n····noDisposeOnSet?:·boolean\n\n····/**\n·····*·Boolean·flag·to·tell·the·cache·to·not·update·the·TTL·when·setting·a·new\n·····*·value·for·an·existing·key·(ie,·when·updating·a·value·rather·than\n·····*·inserting·a·new·value).··Note·that·the·TTL·value·is·_always_·set·(if\n·····*·provided)·when·adding·a·new·entry·into·the·cache.\n·····*\n·····*·Has·no·effect·if·a·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·May·be·passed·as·an·option·to·{@link·LRUCache#set}.\n·····*/\n····noUpdateTTL?:·boolean\n\n····/**\n·····*·Set·to·a·positive·integer·to·track·the·sizes·of·items·added·to·the\n·····*·cache,·and·automatically·evict·items·in·order·to·stay·below·this·size.\n·····*·Note·that·this·may·result·in·fewer·than·`max`·items·being·stored.\n·····*\n·····*·Attempting·to·add·an·item·to·the·cache·whose·calculated·size·is·greater\n·····*·that·this·amount·will·be·a·no-op.·The·item·will·not·be·cached,·and·no\n·····*·other·items·will·be·evicted.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.\n·····*\n·····*·Sets·`maxEntrySize`·to·the·same·value,·unless·a·different·value·is\n·····*·provided·for·`maxEntrySize`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·size·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·Note·also·that·size·tracking·can·negatively·impact·performance,\n·····*·though·for·most·cases,·only·minimally.\n·····*/\n····maxSize?:·Size\n\n····/**\n·····*·The·maximum·allowed·size·for·any·single·item·in·the·cache.\n·····*\n·····*·If·a·larger·item·is·passed·to·{@link·LRUCache#set}·or·returned·by·a\n·····*·{@link·OptionsBase.fetchMethod}·or·{@link·OptionsBase.memoMethod},·then\n·····*·it·will·not·be·stored·in·the·cache.\n·····*\n·····*·Attempting·to·add·an·item·whose·calculated·size·is·greater·than\n·····*·this·amount·will·not·cache·the·item·or·evict·any·old·items,·but\n·····*·WILL·delete·an·existing·value·if·one·is·already·present.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.·Defaults·to\n·····*·the·value·of·`maxSize`·if·provided.\n·····*/\n····maxEntrySize?:·Size\n\n····/**\n·····*·A·function·that·returns·a·number·indicating·the·item's·size.\n·····*\n·····*·Requires·{@link·OptionsBase.maxSize}·to·be·set.\n·····*\n·····*·If·not·provided,·and·{@link·OptionsBase.maxSize}·or\n·····*·{@link·OptionsBase.maxEntrySize}·are·set,·then·all\n·····*·{@link·LRUCache#set}·calls·**must**·provide·an·explicit\n·····*·{@link·SetOptions.size}·or·sizeCalculation·param.\n·····*/\n····sizeCalculation?:·SizeCalculator<K,·V>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#fetch}\n·····*\n·····*·```ts\n·····*·fetchMethod(key,·staleValue,·{·signal,·options,·context·})\n·····*·```\n·····*\n·····*·If·`fetchMethod`·is·not·provided,·then·`cache.fetch(key)`·is·equivalent\n·····*·to·`Promise.resolve(cache.get(key))`.\n·····*\n·····*·If·at·any·time,·`signal.aborted`·is·set·to·`true`,·or·if·the\n·····*·`signal.onabort`·method·is·called,·or·if·it·emits·an·`'abort'`·event\n·····*·which·you·can·listen·to·with·`addEventListener`,·then·that·means·that\n·····*·the·fetch·should·be·abandoned.·This·may·be·passed·along·to·async\n·····*·functions·aware·of·AbortController/AbortSignal·behavior.\n·····*\n·····*·The·`fetchMethod`·should·**only**·return·`undefined`·or·a·Promise\n·····*·resolving·to·`undefined`·if·the·AbortController·signaled·an·`abort`\n·····*·event.·In·all·other·cases,·it·should·return·or·resolve·to·a·value\n·····*·suitable·for·adding·to·the·cache.\n·····*\n·····*·The·`options`·object·is·a·union·of·the·options·that·may·be·provided·to\n·····*·`set()`·and·`get()`.·If·they·are·modified,·then·that·will·result·in\n·····*·modifying·the·settings·to·`cache.set()`·when·the·value·is·resolved,·and\n·····*·in·the·case·of\n·····*·{@link·OptionsBase.noDeleteOnFetchRejection}·and\n·····*·{@link·OptionsBase.allowStaleOnFetchRejection},·the·handling·of\n·····*·`fetchMethod`·failures.\n·····*\n·····*·For·example,·a·DNS·cache·may·update·the·TTL·based·on·the·value·returned\n·····*·from·a·remote·DNS·server·by·changing·`options.ttl`·in·the·`fetchMethod`.\n·····*/\n····fetchMethod?:·Fetcher<K,·V,·FC>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#memo}\n·····*/\n····memoMethod?:·Memoizer<K,·V,·FC>\n\n····/**\n·····*·Set·to·true·to·suppress·the·deletion·of·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·returns·a·rejected·promise.\n·····*/\n····noDeleteOnFetchRejection?:·boolean\n\n····/**\n·····*·Do·not·delete·stale·items·when·they·are·retrieved·with\n·····*·{@link·LRUCache#get}.\n·····*\n·····*·Note·that·the·`get`·return·value·will·still·be·`undefined`\n·····*·unless·{@link·OptionsBase.allowStale}·is·true.\n·····*\n·····*·When·using·time-expiring·entries·with·`ttl`,·by·default·stale\n·····*·items·will·be·removed·from·the·cache·when·the·key·is·accessed\n·····*·with·`cache.get()`.\n·····*\n·····*·Setting·this·option·will·cause·stale·items·to·remain·in·the·cache,·until\n·····*·they·are·explicitly·deleted·with·`cache.delete(key)`,·or·retrieved·with\n·····*·`noDeleteOnStaleGet`·set·to·`false`.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*\n·····*·Only·relevant·if·a·ttl·is·used.\n·····*/\n····noDeleteOnStaleGet?:·boolean\n\n····/**\n·····*·Set·to·true·to·allow·returning·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·throws·an·error·or·returns·a·rejected\n·····*·promise.\n·····*\n·····*·This·differs·from·using·{@link·OptionsBase.allowStale}·in·that·stale\n·····*·data·will·ONLY·be·returned·in·the·case·that·the·{@link·LRUCache#fetch}\n·····*·fails,·not·any·other·times.\n·····*\n·····*·If·a·`fetchMethod`·fails,·and·there·is·no·stale·value·available,·the\n·····*·`fetch()`·will·resolve·to·`undefined`.·Ie,·all·`fetchMethod`·errors·are\n·····*·suppressed.\n·····*\n·····*·Implies·`noDeleteOnFetchRejection`.\n·····*\n·····*·This·may·be·set·in·calls·to·`fetch()`,·or·defaulted·on·the·constructor,\n·····*·or·overridden·by·modifying·the·options·object·in·the·`fetchMethod`.\n·····*/\n····allowStaleOnFetchRejection?:·boolean\n\n····/**\n·····*·Set·to·true·to·return·a·stale·value·from·the·cache·when·the\n·····*·`AbortSignal`·passed·to·the·{@link·OptionsBase.fetchMethod}·dispatches\n·····*·an·`'abort'`·event,·whether·user-triggered,·or·due·to·internal·cache\n·····*·behavior.\n·····*\n·····*·Unless·{@link·OptionsBase.ignoreFetchAbort}·is·also·set,·the·underlying\n·····*·{@link·OptionsBase.fetchMethod}·will·still·be·considered·canceled,·and\n·····*·any·value·it·returns·will·be·ignored·and·not·cached.\n·····*\n·····*·Caveat:·since·fetches·are·aborted·when·a·new·value·is·explicitly\n·····*·set·in·the·cache,·this·can·lead·to·fetch·returning·a·stale·value,\n·····*·since·that·was·the·fallback·value·_at·the·moment·the·`fetch()`·was\n·····*·initiated_,·even·though·the·new·updated·value·is·now·present·in\n·····*·the·cache.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·cache·=·new·LRUCache<string,·any>({\n·····*···ttl:·100,\n·····*···fetchMethod:·async·(url,·oldValue,·{·signal·})·=>··{\n·····*·····const·res·=·await·fetch(url,·{·signal·})\n·····*·····return·await·res.json()\n·····*···}\n·····*·})\n·····*·cache.set('https://example.com/',·{·some:·'data'·})\n·····*·//·100ms·go·by...\n·····*·const·result·=·cache.fetch('https://example.com/')\n·····*·cache.set('https://example.com/',·{·other:·'thing'·})\n·····*·console.log(await·result)·//·{·some:·'data'·}\n·····*·console.log(cache.get('https://example.com/'))·//·{·other:·'thing'·}\n·····*·```\n·····*/\n····allowStaleOnFetchAbort?:·boolean\n\n····/**\n·····*·Set·to·true·to·ignore·the·`abort`·event·emitted·by·the·`AbortSignal`\n·····*·object·passed·to·{@link·OptionsBase.fetchMethod},·and·still·cache·the\n·····*·resulting·resolution·value,·as·long·as·it·is·not·`undefined`.\n·····*\n·····*·When·used·on·its·own,·this·means·aborted·{@link·LRUCache#fetch}·calls\n·····*·are·not·immediately·resolved·or·rejected·when·they·are·aborted,·and\n·····*·instead·take·the·full·time·to·await.\n·····*\n·····*·When·used·with·{@link·OptionsBase.allowStaleOnFetchAbort},·aborted\n·····*·{@link·LRUCache#fetch}·calls·will·resolve·immediately·to·their·stale\n·····*·cached·value·or·`undefined`,·and·will·continue·to·process·and·eventually\n·····*·update·the·cache·when·they·resolve,·as·long·as·the·resulting·value·is\n·····*·not·`undefined`,·thus·supporting·a·\"return·stale·on·timeout·while\n·····*·refreshing\"·mechanism·by·passing·`AbortSignal.timeout(n)`·as·the·signal.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·c·=·new·LRUCache({\n·····*···ttl:·100,\n·····*···ignoreFetchAbort:·true,\n·····*···allowStaleOnFetchAbort:·true,\n·····*···fetchMethod:·async·(key,·oldValue,·{·signal·})·=>·{\n·····*·····//·note:·do·NOT·pass·the·signal·to·fetch()!\n·····*·····//·let's·say·this·fetch·can·take·a·long·time.\n·····*·····const·res·=·await·fetch(`https://slow-backend-server/${key}`)\n·····*·····return·await·res.json()\n·····*···},\n·····*·})\n·····*\n·····*·//·this·will·return·the·stale·value·after·100ms,·while·still\n·····*·//·updating·in·the·background·for·next·time.\n·····*·const·val·=·await·c.fetch('key',·{·signal:·AbortSignal.timeout(100)·})\n·····*·```\n·····*\n·····*·**Note**:·regardless·of·this·setting,·an·`abort`·event·_is·still\n·····*·emitted·on·the·`AbortSignal`·object_,·so·may·result·in·invalid·results\n·····*·when·passed·to·other·underlying·APIs·that·use·AbortSignals.\n·····*\n·····*·This·may·be·overridden·in·the·{@link·OptionsBase.fetchMethod}·or·the\n·····*·call·to·{@link·LRUCache#fetch}.\n·····*/\n····ignoreFetchAbort?:·boolean\n\n····/**\n·····*·In·some·cases,·you·may·want·to·swap·out·the·performance/Date·object\n·····*·used·for·TTL·tracking.·This·should·almost·certainly·NOT·be·done·in\n·····*·production·environments!\n·····*\n·····*·This·value·defaults·to·`global.performance`·if·it·has·a·`now()`·method,\n·····*·or·the·`global.Date`·object·otherwise.\n·····*/\n····perf?:·Perf\n··}\n\n··export·interface·OptionsMaxLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····max:·Count\n··}\n··export·interface·OptionsTTLLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····ttl:·Milliseconds\n····ttlAutopurge:·boolean\n··}\n··export·interface·OptionsSizeLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····maxSize:·Size\n··}\n\n··/**\n···*·The·valid·safe·options·for·the·{@link·LRUCache}·constructor\n···*/\n··export·type·Options<K,·V,·FC>·=\n····|·OptionsMaxLimit<K,·V,·FC>\n····|·OptionsSizeLimit<K,·V,·FC>\n····|·OptionsTTLLimit<K,·V,·FC>\n\n··/**\n···*·Entry·objects·used·by·{@link·LRUCache#load}·and·{@link·LRUCache#dump},\n···*·and·returned·by·{@link·LRUCache#info}.\n···*/\n··export·interface·Entry<V>·{\n····value:·V\n····ttl?:·Milliseconds\n····size?:·Size\n····start?:·Milliseconds\n··}\n}\n\n/**\n·*·Default·export,·the·thing·you're·using·this·module·to·get.\n·*\n·*·The·`K`·and·`V`·types·define·the·key·and·value·types,·respectively.·The\n·*·optional·`FC`·type·defines·the·type·of·the·`context`·object·passed·to\n·*·`cache.fetch()`·and·`cache.memo()`.\n·*\n·*·Keys·and·values·**must·not**·be·`null`·or·`undefined`.\n·*\n·*·All·properties·from·the·options·object·(with·the·exception·of·`max`,\n·*·`maxSize`,·`fetchMethod`,·`memoMethod`,·`dispose`·and·`disposeAfter`)·are\n·*·added·as·normal·public·members.·(The·listed·options·are·read-only·getters.)\n·*\n·*·Changing·any·of·these·will·alter·the·defaults·for·subsequent·method·calls.\n·*/\nexport·class·LRUCache<K·extends·{},·V·extends·{},·FC·=·unknown>·{\n··//·options·that·cannot·be·changed·without·disaster\n··readonly·#max:·LRUCache.Count\n··readonly·#maxSize:·LRUCache.Size\n··readonly·#dispose?:·LRUCache.Disposer<K,·V>\n··readonly·#onInsert?:·LRUCache.Inserter<K,·V>\n··readonly·#disposeAfter?:·LRUCache.Disposer<K,·V>\n··readonly·#fetchMethod?:·LRUCache.Fetcher<K,·V,·FC>\n··readonly·#memoMethod?:·LRUCache.Memoizer<K,·V,·FC>\n··readonly·#perf:·Perf\n\n··/**\n···*·{@link·LRUCache.OptionsBase.perf}\n···*/\n··get·perf()·{\n····return·this.#perf\n··}\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttl}\n···*/\n··ttl:·LRUCache.Milliseconds\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlResolution}\n···*/\n··ttlResolution:·LRUCache.Milliseconds\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlAutopurge}\n···*/\n··ttlAutopurge:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnGet}\n···*/\n··updateAgeOnGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}\n···*/\n··updateAgeOnHas:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStale}\n···*/\n··allowStale:·boolean\n\n··/**\n···*·{@link·LRUCache.OptionsBase.noDisposeOnSet}\n···*/\n··noDisposeOnSet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noUpdateTTL}\n···*/\n··noUpdateTTL:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.maxEntrySize}\n···*/\n··maxEntrySize:·LRUCache.Size\n··/**\n···*·{@link·LRUCache.OptionsBase.sizeCalculation}\n···*/\n··sizeCalculation?:·LRUCache.SizeCalculator<K,·V>\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnFetchRejection}\n···*/\n··noDeleteOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnStaleGet}\n···*/\n··noDeleteOnStaleGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort}\n···*/\n··allowStaleOnFetchAbort:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}\n···*/\n··allowStaleOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.ignoreFetchAbort}\n···*/\n··ignoreFetchAbort:·boolean\n\n··//·computed·properties\n··#size:·LRUCache.Count\n··#calculatedSize:·LRUCache.Size\n··#keyMap:·Map<K,·Index>\n··#keyList:·(K·|·undefined)[]\n··#valList:·(V·|·BackgroundFetch<V>·|·undefined)[]\n··#next:·NumberArray\n··#prev:·NumberArray\n··#head:·Index\n··#tail:·Index\n··#free:·StackLike\n··#disposed?:·DisposeTask<K,·V>[]\n··#sizes?:·ZeroArray\n··#starts?:·ZeroArray\n··#ttls?:·ZeroArray\n··#autopurgeTimers?:·(undefined·|·ReturnType<typeof·setTimeout>)[]\n\n··#hasDispose:·boolean\n··#hasFetchMethod:·boolean\n··#hasDisposeAfter:·boolean\n··#hasOnInsert:·boolean\n\n··/**\n···*·Do·not·call·this·method·unless·you·need·to·inspect·the\n···*·inner·workings·of·the·cache.··If·anything·returned·by·this\n···*·object·is·modified·in·any·way,·strange·breakage·may·occur.\n···*\n···*·These·fields·are·private·for·a·reason!\n···*\n···*·@internal\n···*/\n··static·unsafeExposeInternals<\n····K·extends·{},\n····V·extends·{},\n····FC·extends·unknown·=·unknown,\n··>(c:·LRUCache<K,·V,·FC>)·{\n····return·{\n······//·properties\n······starts:·c.#starts,\n······ttls:·c.#ttls,\n······autopurgeTimers:·c.#autopurgeTimers,\n······sizes:·c.#sizes,\n······keyMap:·c.#keyMap·as·Map<K,·number>,\n······keyList:·c.#keyList,\n······valList:·c.#valList,\n······next:·c.#next,\n······prev:·c.#prev,\n······get·head()·{\n········return·c.#head\n······},\n······get·tail()·{\n········return·c.#tail\n······},\n······free:·c.#free,\n······//·methods\n······isBackgroundFetch:·(p:·any)·=>·c.#isBackgroundFetch(p),\n······backgroundFetch:·(\n········k:·K,\n········index:·number·|·undefined,\n········options:·LRUCache.FetchOptions<K,·V,·FC>,\n········context:·any,\n······):·BackgroundFetch<V>·=>\n········c.#backgroundFetch(\n··········k,\n··········index·as·Index·|·undefined,\n··········options,\n··········context,\n········),\n······moveToTail:·(index:·number):·void·=>·c.#moveToTail(index·as·Index),\n······indexes:·(options?:·{·allowStale:·boolean·})·=>·c.#indexes(options),\n······rindexes:·(options?:·{·allowStale:·boolean·})·=>\n········c.#rindexes(options),\n······isStale:·(index:·number·|·undefined)·=>·c.#isStale(index·as·Index),\n····}\n··}\n\n··//·Protected·read-only·members\n\n··/**\n···*·{@link·LRUCache.OptionsBase.max}·(read-only)\n···*/\n··get·max():·LRUCache.Count·{\n····return·this.#max\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.maxSize}·(read-only)\n···*/\n··get·maxSize():·LRUCache.Count·{\n····return·this.#maxSize\n··}\n··/**\n···*·The·total·computed·size·of·items·in·the·cache·(read-only)\n···*/\n··get·calculatedSize():·LRUCache.Size·{\n····return·this.#calculatedSize\n··}\n··/**\n···*·The·number·of·items·stored·in·the·cache·(read-only)\n···*/\n··get·size():·LRUCache.Count·{\n····return·this.#size\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·(read-only)\n···*/\n··get·fetchMethod():·LRUCache.Fetcher<K,·V,·FC>·|·undefined·{\n····return·this.#fetchMethod\n··}\n··get·memoMethod():·LRUCache.Memoizer<K,·V,·FC>·|·undefined·{\n····return·this.#memoMethod\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.dispose}·(read-only)\n···*/\n··get·dispose()·{\n····return·this.#dispose\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.onInsert}·(read-only)\n···*/\n··get·onInsert()·{\n····return·this.#onInsert\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.disposeAfter}·(read-only)\n···*/\n··get·disposeAfter()·{\n····return·this.#disposeAfter\n··}\n\n··constructor(options:·LRUCache.Options<K,·V,·FC>·|·LRUCache<K,·V,·FC>)·{\n····const·{\n······max·=·0,\n······ttl,\n······ttlResolution·=·1,\n······ttlAutopurge,\n······updateAgeOnGet,\n······updateAgeOnHas,\n······allowStale,\n······dispose,\n······onInsert,\n······disposeAfter,\n······noDisposeOnSet,\n······noUpdateTTL,\n······maxSize·=·0,\n······maxEntrySize·=·0,\n······sizeCalculation,\n······fetchMethod,\n······memoMethod,\n······noDeleteOnFetchRejection,\n······noDeleteOnStaleGet,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······perf,\n····}·=·options\n\n····if·(perf·!==·undefined)·{\n······if·(typeof·perf?.now·!==·'function')·{\n········throw·new·TypeError(\n··········'perf·option·must·have·a·now()·method·if·specified',\n········)\n······}\n····}\n\n····this.#perf·=·perf·??·defaultPerf\n\n····if·(max·!==·0·&&·!isPosInt(max))·{\n······throw·new·TypeError('max·option·must·be·a·nonnegative·integer')\n····}\n\n····const·UintArray·=·max·?·getUintArray(max)·:·Array\n····if·(!UintArray)·{\n······throw·new·Error('invalid·max·value:·'·+·max)\n····}\n\n····this.#max·=·max\n····this.#maxSize·=·maxSize\n····this.maxEntrySize·=·maxEntrySize·||·this.#maxSize\n····this.sizeCalculation·=·sizeCalculation\n····if·(this.sizeCalculation)·{\n······if·(!this.#maxSize·&&·!this.maxEntrySize)·{\n········throw·new·TypeError(\n··········'cannot·set·sizeCalculation·without·setting·maxSize·or·maxEntrySize',\n········)\n······}\n······if·(typeof·this.sizeCalculation·!==·'function')·{\n········throw·new·TypeError('sizeCalculation·set·to·non-function')\n······}\n····}\n\n····if·(memoMethod·!==·undefined·&&·typeof·memoMethod·!==·'function')·{\n······throw·new·TypeError('memoMethod·must·be·a·function·if·defined')\n····}\n····this.#memoMethod·=·memoMethod\n\n····if·(fetchMethod·!==·undefined·&&·typeof·fetchMethod·!==·'function')·{\n······throw·new·TypeError('fetchMethod·must·be·a·function·if·specified')\n····}\n····this.#fetchMethod·=·fetchMethod\n····this.#hasFetchMethod·=·!!fetchMethod\n\n····this.#keyMap·=·new·Map()\n····this.#keyList·=·new·Array(max).fill(undefined)\n····this.#valList·=·new·Array(max).fill(undefined)\n····this.#next·=·new·UintArray(max)\n····this.#prev·=·new·UintArray(max)\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free·=·Stack.create(max)\n····this.#size·=·0\n····this.#calculatedSize·=·0\n\n····if·(typeof·dispose·===·'function')·{\n······this.#dispose·=·dispose\n····}\n····if·(typeof·onInsert·===·'function')·{\n······this.#onInsert·=·onInsert\n····}\n····if·(typeof·disposeAfter·===·'function')·{\n······this.#disposeAfter·=·disposeAfter\n······this.#disposed·=·[]\n····}·else·{\n······this.#disposeAfter·=·undefined\n······this.#disposed·=·undefined\n····}\n····this.#hasDispose·=·!!this.#dispose\n····this.#hasOnInsert·=·!!this.#onInsert\n····this.#hasDisposeAfter·=·!!this.#disposeAfter\n\n····this.noDisposeOnSet·=·!!noDisposeOnSet\n····this.noUpdateTTL·=·!!noUpdateTTL\n····this.noDeleteOnFetchRejection·=·!!noDeleteOnFetchRejection\n····this.allowStaleOnFetchRejection·=·!!allowStaleOnFetchRejection\n····this.allowStaleOnFetchAbort·=·!!allowStaleOnFetchAbort\n····this.ignoreFetchAbort·=·!!ignoreFetchAbort\n\n····//·NB:·maxEntrySize·is·set·to·maxSize·if·it's·set\n····if·(this.maxEntrySize·!==·0)·{\n······if·(this.#maxSize·!==·0)·{\n········if·(!isPosInt(this.#maxSize))·{\n··········throw·new·TypeError(\n············'maxSize·must·be·a·positive·integer·if·specified',\n··········)\n········}\n······}\n······if·(!isPosInt(this.maxEntrySize))·{\n········throw·new·TypeError(\n··········'maxEntrySize·must·be·a·positive·integer·if·specified',\n········)\n······}\n······this.#initializeSizeTracking()\n····}\n\n····this.allowStale·=·!!allowStale\n····this.noDeleteOnStaleGet·=·!!noDeleteOnStaleGet\n····this.updateAgeOnGet·=·!!updateAgeOnGet\n····this.updateAgeOnHas·=·!!updateAgeOnHas\n····this.ttlResolution·=\n······isPosInt(ttlResolution)·||·ttlResolution·===·0·?·ttlResolution·:·1\n····this.ttlAutopurge·=·!!ttlAutopurge\n····this.ttl·=·ttl·||·0\n····if·(this.ttl)·{\n······if·(!isPosInt(this.ttl))·{\n········throw·new·TypeError('ttl·must·be·a·positive·integer·if·specified')\n······}\n······this.#initializeTTLTracking()\n····}\n\n····//·do·not·allow·completely·unbounded·caches\n····if·(this.#max·===·0·&&·this.ttl·===·0·&&·this.#maxSize·===·0)·{\n······throw·new·TypeError(\n········'At·least·one·of·max,·maxSize,·or·ttl·is·required',\n······)\n····}\n····if·(!this.ttlAutopurge·&&·!this.#max·&&·!this.#maxSize)·{\n······const·code·=·'LRU_CACHE_UNBOUNDED'\n······if·(shouldWarn(code))·{\n········warned.add(code)\n········const·msg·=\n··········'TTL·caching·without·ttlAutopurge,·max,·or·maxSize·can·'·+\n··········'result·in·unbounded·memory·consumption.'\n········emitWarning(msg,·'UnboundedCacheWarning',·code,·LRUCache)\n······}\n····}\n··}\n\n··/**\n···*·Return·the·number·of·ms·left·in·the·item's·TTL.·If·item·is·not·in·cache,\n···*·returns·`0`.·Returns·`Infinity`·if·item·is·in·cache·without·a·defined·TTL.\n···*/\n··getRemainingTTL(key:·K)·{\n····return·this.#keyMap.has(key)·?·Infinity·:·0\n··}\n\n··#initializeTTLTracking()·{\n····const·ttls·=·new·ZeroArray(this.#max)\n····const·starts·=·new·ZeroArray(this.#max)\n····this.#ttls·=·ttls\n····this.#starts·=·starts\n····const·purgeTimers·=\n······this.ttlAutopurge·?\n········new·Array<undefined·|·ReturnType<typeof·setTimeout>>(this.#max)\n······:·undefined\n····this.#autopurgeTimers·=·purgeTimers\n\n····this.#setItemTTL·=·(index,·ttl,·start·=·this.#perf.now())·=>·{\n······starts[index]·=·ttl·!==·0·?·start·:·0\n······ttls[index]·=·ttl\n······//·clear·out·the·purge·timer·if·we're·setting·TTL·to·0,·and\n······//·previously·had·a·ttl·purge·timer·running,·so·it·doesn't\n······//·fire·unnecessarily.\n······if·(purgeTimers?.[index])·{\n········clearTimeout(purgeTimers[index])\n········purgeTimers[index]·=·undefined\n······}\n······if·(ttl·!==·0·&&·purgeTimers)·{\n········const·t·=·setTimeout(()·=>·{\n··········if·(this.#isStale(index))·{\n············this.#delete(this.#keyList[index]·as·K,·'expire')\n··········}\n········},·ttl·+·1)\n········//·unref()·not·supported·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n········purgeTimers[index]·=·t\n······}\n····}\n\n····this.#updateItemAge·=·index·=>·{\n······starts[index]·=·ttls[index]·!==·0·?·this.#perf.now()·:·0\n····}\n\n····this.#statusTTL·=·(status,·index)·=>·{\n······if·(ttls[index])·{\n········const·ttl·=·ttls[index]\n········const·start·=·starts[index]\n········/*·c8·ignore·next·*/\n········if·(!ttl·||·!start)·return\n········status.ttl·=·ttl\n········status.start·=·start\n········status.now·=·cachedNow·||·getNow()\n········const·age·=·status.now·-·start\n········status.remainingTTL·=·ttl·-·age\n······}\n····}\n\n····//·debounce·calls·to·perf.now()·to·1s·so·we're·not·hitting\n····//·that·costly·call·repeatedly.\n····let·cachedNow·=·0\n····const·getNow·=·()·=>·{\n······const·n·=·this.#perf.now()\n······if·(this.ttlResolution·>·0)·{\n········cachedNow·=·n\n········const·t·=·setTimeout(()·=>·(cachedNow·=·0),·this.ttlResolution)\n········//·not·available·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n······}\n······return·n\n····}\n\n····this.getRemainingTTL·=·key·=>·{\n······const·index·=·this.#keyMap.get(key)\n······if·(index·===·undefined)·{\n········return·0\n······}\n······const·ttl·=·ttls[index]\n······const·start·=·starts[index]\n······if·(!ttl·||·!start)·{\n········return·Infinity\n······}\n······const·age·=·(cachedNow·||·getNow())·-·start\n······return·ttl·-·age\n····}\n\n····this.#isStale·=·index·=>·{\n······const·s·=·starts[index]\n······const·t·=·ttls[index]\n······return·!!t·&&·!!s·&&·(cachedNow·||·getNow())·-·s·>·t\n····}\n··}\n\n··//·conditionally·set·private·methods·related·to·TTL\n··#updateItemAge:·(index:·Index)·=>·void·=·()·=>·{}\n··#statusTTL:·(status:·LRUCache.Status<V>,·index:·Index)·=>·void·=·()·=>·{}\n··#setItemTTL:·(\n····index:·Index,\n····ttl:·LRUCache.Milliseconds,\n····start?:·LRUCache.Milliseconds,\n····//·ignore·because·we·never·call·this·if·we're·not·already·in·TTL·mode\n····/*·c8·ignore·start·*/\n··)·=>·void·=·()·=>·{}\n··/*·c8·ignore·stop·*/\n\n··#isStale:·(index:·Index)·=>·boolean·=·()·=>·false\n\n··#initializeSizeTracking()·{\n····const·sizes·=·new·ZeroArray(this.#max)\n····this.#calculatedSize·=·0\n····this.#sizes·=·sizes\n····this.#removeItemSize·=·index·=>·{\n······this.#calculatedSize·-=·sizes[index]·as·number\n······sizes[index]·=·0\n····}\n····this.#requireSize·=·(k,·v,·size,·sizeCalculation)·=>·{\n······//·provisionally·accept·background·fetches.\n······//·actual·value·size·will·be·checked·when·they·return.\n······if·(this.#isBackgroundFetch(v))·{\n········return·0\n······}\n······if·(!isPosInt(size))·{\n········if·(sizeCalculation)·{\n··········if·(typeof·sizeCalculation·!==·'function')·{\n············throw·new·TypeError('sizeCalculation·must·be·a·function')\n··········}\n··········size·=·sizeCalculation(v,·k)\n··········if·(!isPosInt(size))·{\n············throw·new·TypeError(\n··············'sizeCalculation·return·invalid·(expect·positive·integer)',\n············)\n··········}\n········}·else·{\n··········throw·new·TypeError(\n············'invalid·size·value·(must·be·positive·integer).·'·+\n··············'When·maxSize·or·maxEntrySize·is·used,·sizeCalculation·'·+\n··············'or·size·must·be·set.',\n··········)\n········}\n······}\n······return·size\n····}\n····this.#addItemSize·=·(\n······index:·Index,\n······size:·LRUCache.Size,\n······status?:·LRUCache.Status<V>,\n····)·=>·{\n······sizes[index]·=·size\n······if·(this.#maxSize)·{\n········const·maxSize·=·this.#maxSize·-·(sizes[index]·as·number)\n········while·(this.#calculatedSize·>·maxSize)·{\n··········this.#evict(true)\n········}\n······}\n······this.#calculatedSize·+=·sizes[index]·as·number\n······if·(status)·{\n········status.entrySize·=·size\n········status.totalCalculatedSize·=·this.#calculatedSize\n······}\n····}\n··}\n\n··#removeItemSize:·(index:·Index)·=>·void·=·_i·=>·{}\n··#addItemSize:·(\n····index:·Index,\n····size:·LRUCache.Size,\n····status?:·LRUCache.Status<V>,\n··)·=>·void·=·(_i,·_s,·_st)·=>·{}\n··#requireSize:·(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·LRUCache.Size·=·(\n····_k:·K,\n····_v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·{\n····if·(size·||·sizeCalculation)·{\n······throw·new·TypeError(\n········'cannot·set·size·without·setting·maxSize·or·maxEntrySize·on·cache',\n······)\n····}\n····return·0\n··};\n\n··*#indexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#tail;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#head)·{\n··········break\n········}·else·{\n··········i·=·this.#prev[i]·as·Index\n········}\n······}\n····}\n··}\n\n··*#rindexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#head;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#tail)·{\n··········break\n········}·else·{\n··········i·=·this.#next[i]·as·Index\n········}\n······}\n····}\n··}\n\n··#isValidIndex(index:·Index)·{\n····return·(\n······index·!==·undefined·&&\n······this.#keyMap.get(this.#keyList[index]·as·K)·===·index\n····)\n··}\n\n··/**\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*entries()·{\n····for·(const·i·of·this.#indexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]·as·[K,·V]\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.entries}\n···*\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rentries()·{\n····for·(const·i·of·this.#rindexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*keys()·{\n····for·(const·i·of·this.#indexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.keys}\n···*\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rkeys()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*values()·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]·as·V\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.values}\n···*\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rvalues()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]\n······}\n····}\n··}\n\n··/**\n···*·Iterating·over·the·cache·itself·yields·the·same·results·as\n···*·{@link·LRUCache.entries}\n···*/\n··[Symbol.iterator]()·{\n····return·this.entries()\n··}\n\n··/**\n···*·A·String·value·that·is·used·in·the·creation·of·the·default·string\n···*·description·of·an·object.·Called·by·the·built-in·method\n···*·`Object.prototype.toString`.\n···*/\n··[Symbol.toStringTag]·=·'LRUCache'\n\n··/**\n···*·Find·a·value·for·which·the·supplied·fn·method·returns·a·truthy·value,\n···*·similar·to·`Array.find()`.·fn·is·called·as·`fn(value,·key,·cache)`.\n···*/\n··find(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·boolean,\n····getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{},\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······if·(fn(value,·this.#keyList[i]·as·K,·this))·{\n········return·this.get(this.#keyList[i]·as·K,·getOptions)\n······}\n····}\n··}\n\n··/**\n···*·Call·the·supplied·function·on·each·item·in·the·cache,·in·order·from·most\n···*·recently·used·to·least·recently·used.\n···*\n···*·`fn`·is·called·as·`fn(value,·key,·cache)`.\n···*\n···*·If·`thisp`·is·provided,·function·will·be·called·in·the·`this`-context·of\n···*·the·provided·object,·or·the·cache·if·no·`thisp`·object·is·provided.\n···*\n···*·Does·not·update·age·or·recenty·of·use,·or·iterate·over·stale·values.\n···*/\n··forEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·The·same·as·{@link·LRUCache.forEach}·but·items·are·iterated·over·in\n···*·reverse·order.··(ie,·less·recently·used·items·are·iterated·over·first.)\n···*/\n··rforEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·Delete·any·stale·entries.·Returns·true·if·anything·was·removed,\n···*·false·otherwise.\n···*/\n··purgeStale()·{\n····let·deleted·=·false\n····for·(const·i·of·this.#rindexes({·allowStale:·true·}))·{\n······if·(this.#isStale(i))·{\n········this.#delete(this.#keyList[i]·as·K,·'expire')\n········deleted·=·true\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Get·the·extended·info·about·a·given·entry,·to·get·its·value,·size,·and\n···*·TTL·info·simultaneously.·Returns·`undefined`·if·the·key·is·not·present.\n···*\n···*·Unlike·{@link·LRUCache#dump},·which·is·designed·to·be·portable·and·survive\n···*·serialization,·the·`start`·value·is·always·the·current·timestamp,·and·the\n···*·`ttl`·is·a·calculated·remaining·time·to·live·(negative·if·expired).\n···*\n···*·Always·returns·stale·values,·if·their·info·is·found·in·the·cache,·so·be\n···*·sure·to·check·for·expirations·(ie,·a·negative·{@link·LRUCache.Entry#ttl})\n···*·if·relevant.\n···*/\n··info(key:·K):·LRUCache.Entry<V>·|·undefined·{\n····const·i·=·this.#keyMap.get(key)\n····if·(i·===·undefined)·return·undefined\n····const·v·=·this.#valList[i]\n····/*·c8·ignore·start·-·this·isn't·tested·for·the·info·function,\n·····*·but·it's·the·same·logic·as·found·in·other·places.·*/\n····const·value:·V·|·undefined·=\n······this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n····if·(value·===·undefined)·return·undefined\n····/*·c8·ignore·end·*/\n····const·entry:·LRUCache.Entry<V>·=·{·value·}\n····if·(this.#ttls·&&·this.#starts)·{\n······const·ttl·=·this.#ttls[i]\n······const·start·=·this.#starts[i]\n······if·(ttl·&&·start)·{\n········const·remain·=·ttl·-·(this.#perf.now()·-·start)\n········entry.ttl·=·remain\n········entry.start·=·Date.now()\n······}\n····}\n····if·(this.#sizes)·{\n······entry.size·=·this.#sizes[i]\n····}\n····return·entry\n··}\n\n··/**\n···*·Return·an·array·of·[key,·{@link·LRUCache.Entry}]·tuples·which·can·be\n···*·passed·to·{@link·LRUCache#load}.\n···*\n···*·The·`start`·fields·are·calculated·relative·to·a·portable·`Date.now()`\n···*·timestamp,·even·if·`performance.now()`·is·available.\n···*\n···*·Stale·entries·are·always·included·in·the·`dump`,·even·if\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·false.\n···*\n···*·Note:·this·returns·an·actual·array,·not·a·generator,·so·it·can·be·more\n···*·easily·passed·around.\n···*/\n··dump()·{\n····const·arr:·[K,·LRUCache.Entry<V>][]·=·[]\n····for·(const·i·of·this.#indexes({·allowStale:·true·}))·{\n······const·key·=·this.#keyList[i]\n······const·v·=·this.#valList[i]\n······const·value:·V·|·undefined·=\n········this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined·||·key·===·undefined)·continue\n······const·entry:·LRUCache.Entry<V>·=·{·value·}\n······if·(this.#ttls·&&·this.#starts)·{\n········entry.ttl·=·this.#ttls[i]\n········//·always·dump·the·start·relative·to·a·portable·timestamp\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·this.#perf.now()·-·(this.#starts[i]·as·number)\n········entry.start·=·Math.floor(Date.now()·-·age)\n······}\n······if·(this.#sizes)·{\n········entry.size·=·this.#sizes[i]\n······}\n······arr.unshift([key,·entry])\n····}\n····return·arr\n··}\n\n··/**\n···*·Reset·the·cache·and·load·in·the·items·in·entries·in·the·order·listed.\n···*\n···*·The·shape·of·the·resulting·cache·may·be·different·if·the·same·options·are\n···*·not·used·in·both·caches.\n···*\n···*·The·`start`·fields·are·assumed·to·be·calculated·relative·to·a·portable\n···*·`Date.now()`·timestamp,·even·if·`performance.now()`·is·available.\n···*/\n··load(arr:·[K,·LRUCache.Entry<V>][])·{\n····this.clear()\n····for·(const·[key,·entry]·of·arr)·{\n······if·(entry.start)·{\n········//·entry.start·is·a·portable·timestamp,·but·we·may·be·using\n········//·node's·performance.now(),·so·calculate·the·offset,·so·that\n········//·we·get·the·intended·remaining·TTL,·no·matter·how·long·it's\n········//·been·on·ice.\n········//\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·Date.now()·-·entry.start\n········entry.start·=·this.#perf.now()·-·age\n······}\n······this.set(key,·entry.value,·entry)\n····}\n··}\n\n··/**\n···*·Add·a·value·to·the·cache.\n···*\n···*·Note:·if·`undefined`·is·specified·as·a·value,·this·is·an·alias·for\n···*·{@link·LRUCache#delete}\n···*\n···*·Fields·on·the·{@link·LRUCache.SetOptions}·options·param·will·override\n···*·their·corresponding·values·in·the·constructor·options·for·the·scope\n···*·of·this·single·`set()`·operation.\n···*\n···*·If·`start`·is·provided,·then·that·will·set·the·effective·start\n···*·time·for·the·TTL·calculation.·Note·that·this·must·be·a·previous\n···*·value·of·`performance.now()`·if·supported,·or·a·previous·value·of\n···*·`Date.now()`·if·not.\n···*\n···*·Options·object·may·also·include·`size`,·which·will·prevent\n···*·calling·the·`sizeCalculation`·function·and·just·use·the·specified\n···*·number·if·it·is·a·positive·integer,·and·`noDisposeOnSet`·which\n···*·will·prevent·calling·a·`dispose`·function·in·the·case·of\n···*·overwrites.\n···*\n···*·If·the·`size`·(or·return·value·of·`sizeCalculation`)·for·a·given\n···*·entry·is·greater·than·`maxEntrySize`,·then·the·item·will·not·be\n···*·added·to·the·cache.\n···*\n···*·Will·update·the·recency·of·the·entry.\n···*\n···*·If·the·value·is·`undefined`,·then·this·is·an·alias·for\n···*·`cache.delete(key)`.·`undefined`·is·never·stored·in·the·cache.\n···*/\n··set(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>·|·undefined,\n····setOptions:·LRUCache.SetOptions<K,·V,·FC>·=·{},\n··)·{\n····if·(v·===·undefined)·{\n······this.delete(k)\n······return·this\n····}\n····const·{\n······ttl·=·this.ttl,\n······start,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······sizeCalculation·=·this.sizeCalculation,\n······status,\n····}·=·setOptions\n····let·{·noUpdateTTL·=·this.noUpdateTTL·}·=·setOptions\n\n····const·size·=·this.#requireSize(\n······k,\n······v,\n······setOptions.size·||·0,\n······sizeCalculation,\n····)\n····//·if·the·item·doesn't·fit,·don't·do·anything\n····//·NB:·maxEntrySize·set·to·maxSize·by·default\n····if·(this.maxEntrySize·&&·size·>·this.maxEntrySize)·{\n······if·(status)·{\n········status.set·=·'miss'\n········status.maxEntrySizeExceeded·=·true\n······}\n······//·have·to·delete,·in·case·something·is·there·already.\n······this.#delete(k,·'set')\n······return·this\n····}\n····let·index·=·this.#size·===·0·?·undefined·:·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······//·addition\n······index·=·(\n········this.#size·===·0·?·this.#tail\n········:·this.#free.length·!==·0·?·this.#free.pop()\n········:·this.#size·===·this.#max·?·this.#evict(false)\n········:·this.#size)·as·Index\n······this.#keyList[index]·=·k\n······this.#valList[index]·=·v\n······this.#keyMap.set(k,·index)\n······this.#next[this.#tail]·=·index\n······this.#prev[index]·=·this.#tail\n······this.#tail·=·index\n······this.#size++\n······this.#addItemSize(index,·size,·status)\n······if·(status)·status.set·=·'add'\n······noUpdateTTL·=·false\n······if·(this.#hasOnInsert)·{\n········this.#onInsert?.(v·as·V,·k,·'add')\n······}\n····}·else·{\n······//·update\n······this.#moveToTail(index)\n······const·oldVal·=·this.#valList[index]·as·V·|·BackgroundFetch<V>\n······if·(v·!==·oldVal)·{\n········if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(oldVal))·{\n··········oldVal.__abortController.abort(new·Error('replaced'))\n··········const·{·__staleWhileFetching:·s·}·=·oldVal\n··········if·(s·!==·undefined·&&·!noDisposeOnSet)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(s·as·V,·k,·'set')\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([s·as·V,·k,·'set'])\n············}\n··········}\n········}·else·if·(!noDisposeOnSet)·{\n··········if·(this.#hasDispose)·{\n············this.#dispose?.(oldVal·as·V,·k,·'set')\n··········}\n··········if·(this.#hasDisposeAfter)·{\n············this.#disposed?.push([oldVal·as·V,·k,·'set'])\n··········}\n········}\n········this.#removeItemSize(index)\n········this.#addItemSize(index,·size,·status)\n········this.#valList[index]·=·v\n········if·(status)·{\n··········status.set·=·'replace'\n··········const·oldValue·=\n············oldVal·&&·this.#isBackgroundFetch(oldVal)·?\n··············oldVal.__staleWhileFetching\n············:·oldVal\n··········if·(oldValue·!==·undefined)·status.oldValue·=·oldValue\n········}\n······}·else·if·(status)·{\n········status.set·=·'update'\n······}\n\n······if·(this.#hasOnInsert)·{\n········this.onInsert?.(v·as·V,·k,·v·===·oldVal·?·'update'·:·'replace')\n······}\n····}\n····if·(ttl·!==·0·&&·!this.#ttls)·{\n······this.#initializeTTLTracking()\n····}\n····if·(this.#ttls)·{\n······if·(!noUpdateTTL)·{\n········this.#setItemTTL(index,·ttl,·start)\n······}\n······if·(status)·this.#statusTTL(status,·index)\n····}\n····if·(!noDisposeOnSet·&&·this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·this\n··}\n\n··/**\n···*·Evict·the·least·recently·used·item,·returning·its·value·or\n···*·`undefined`·if·cache·is·empty.\n···*/\n··pop():·V·|·undefined·{\n····try·{\n······while·(this.#size)·{\n········const·val·=·this.#valList[this.#head]\n········this.#evict(true)\n········if·(this.#isBackgroundFetch(val))·{\n··········if·(val.__staleWhileFetching)·{\n············return·val.__staleWhileFetching\n··········}\n········}·else·if·(val·!==·undefined)·{\n··········return·val\n········}\n······}\n····}·finally·{\n······if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n········const·dt·=·this.#disposed\n········let·task:·DisposeTask<K,·V>·|·undefined\n········while·((task·=·dt?.shift()))·{\n··········this.#disposeAfter?.(...task)\n········}\n······}\n····}\n··}\n\n··#evict(free:·boolean)·{\n····const·head·=·this.#head\n····const·k·=·this.#keyList[head]·as·K\n····const·v·=·this.#valList[head]·as·V\n····if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(v))·{\n······v.__abortController.abort(new·Error('evicted'))\n····}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n······if·(this.#hasDispose)·{\n········this.#dispose?.(v,·k,·'evict')\n······}\n······if·(this.#hasDisposeAfter)·{\n········this.#disposed?.push([v,·k,·'evict'])\n······}\n····}\n····this.#removeItemSize(head)\n····if·(this.#autopurgeTimers?.[head])·{\n······clearTimeout(this.#autopurgeTimers[head])\n······this.#autopurgeTimers[head]·=·undefined\n····}\n····//·if·we·aren't·about·to·use·the·index,·then·null·these·out\n····if·(free)·{\n······this.#keyList[head]·=·undefined\n······this.#valList[head]·=·undefined\n······this.#free.push(head)\n····}\n····if·(this.#size·===·1)·{\n······this.#head·=·this.#tail·=·0·as·Index\n······this.#free.length·=·0\n····}·else·{\n······this.#head·=·this.#next[head]·as·Index\n····}\n····this.#keyMap.delete(k)\n····this.#size--\n····return·head\n··}\n\n··/**\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of·use.\n···*·Will·return·false·if·the·item·is·stale,·even·though·it·is·technically\n···*·in·the·cache.\n···*\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of\n···*·use.·Age·is·updated·if·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set\n···*·to·`true`·in·either·the·options·or·the·constructor.\n···*\n···*·Will·return·`false`·if·the·item·is·stale,·even·though·it·is·technically·in\n···*·the·cache.·The·difference·can·be·determined·(if·it·matters)·by·using·a\n···*·`status`·argument,·and·inspecting·the·`has`·field.\n···*\n···*·Will·not·update·item·age·unless\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set.\n···*/\n··has(k:·K,·hasOptions:·LRUCache.HasOptions<K,·V,·FC>·=·{})·{\n····const·{·updateAgeOnHas·=·this.updateAgeOnHas,·status·}·=·hasOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·v·=·this.#valList[index]\n······if·(\n········this.#isBackgroundFetch(v)·&&\n········v.__staleWhileFetching·===·undefined\n······)·{\n········return·false\n······}\n······if·(!this.#isStale(index))·{\n········if·(updateAgeOnHas)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·{\n··········status.has·=·'hit'\n··········this.#statusTTL(status,·index)\n········}\n········return·true\n······}·else·if·(status)·{\n········status.has·=·'stale'\n········this.#statusTTL(status,·index)\n······}\n····}·else·if·(status)·{\n······status.has·=·'miss'\n····}\n····return·false\n··}\n\n··/**\n···*·Like·{@link·LRUCache#get}·but·doesn't·update·recency·or·delete·stale\n···*·items.\n···*\n···*·Returns·`undefined`·if·the·item·is·stale,·unless\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·set.\n···*/\n··peek(k:·K,·peekOptions:·LRUCache.PeekOptions<K,·V,·FC>·=·{})·{\n····const·{·allowStale·=·this.allowStale·}·=·peekOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined·||·(!allowStale·&&·this.#isStale(index)))·{\n······return\n····}\n····const·v·=·this.#valList[index]\n····//·either·stale·and·allowed,·or·forcing·a·refresh·of·non-stale·value\n····return·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n··}\n\n··#backgroundFetch(\n····k:·K,\n····index:·Index·|·undefined,\n····options:·LRUCache.FetchOptions<K,·V,·FC>,\n····context:·any,\n··):·BackgroundFetch<V>·{\n····const·v·=·index·===·undefined·?·undefined·:·this.#valList[index]\n····if·(this.#isBackgroundFetch(v))·{\n······return·v\n····}\n\n····const·ac·=·new·AC()\n····const·{·signal·}·=·options\n····//·when/if·our·AC·signals,·then·stop·listening·to·theirs.\n····signal?.addEventListener('abort',·()·=>·ac.abort(signal.reason),·{\n······signal:·ac.signal,\n····})\n\n····const·fetchOpts·=·{\n······signal:·ac.signal,\n······options,\n······context,\n····}\n\n····const·cb·=·(v:·V·|·undefined,·updateCache·=·false):·V·|·undefined·=>·{\n······const·{·aborted·}·=·ac.signal\n······const·ignoreAbort·=·options.ignoreFetchAbort·&&·v·!==·undefined\n······ | 178 | ········"/**\n·*·@module·LRUCache\n·*/\n\n//·module-private·names·and·types\n//·this·provides·the·default·Perf·object·source.\n//·it·can·be·passed·in·via·configuration·to·override·it\n//·for·a·single·LRU·object.\nexport·type·Perf·=·{·now:·()·=>·number·}\nconst·defaultPerf:·Perf·=\n··(\n····typeof·performance·===·'object'·&&\n····performance·&&\n····typeof·performance.now·===·'function'\n··)·?\n····performance\n··:·Date\n\nconst·warned·=·new·Set<string>()\n\n//·either·a·function·or·a·class\ntype·ForC·=·((...a:·any[])·=>·any)·|·{·new·(...a:·any[]):·any·}\n\n/*·c8·ignore·start·*/\nconst·PROCESS·=·(\n··typeof·process·===·'object'·&&·!!process·?\n····process\n··:·{})·as·{·[k:·string]:·any·}\n/*·c8·ignore·start·*/\n\nconst·emitWarning·=·(\n··msg:·string,\n··type:·string,\n··code:·string,\n··fn:·ForC,\n)·=>·{\n··typeof·PROCESS.emitWarning·===·'function'·?\n····PROCESS.emitWarning(msg,·type,·code,·fn)\n··:·console.error(`[${code}]·${type}:·${msg}`)\n}\n\nlet·AC·=·globalThis.AbortController\nlet·AS·=·globalThis.AbortSignal\n\n/*·c8·ignore·start·*/\nif·(typeof·AC·===·'undefined')·{\n··//@ts-ignore\n··AS·=·class·AbortSignal·{\n····onabort?:·(...a:·any[])·=>·any\n····_onabort:·((...a:·any[])·=>·any)[]·=·[]\n····reason?:·any\n····aborted:·boolean·=·false\n····addEventListener(_:·string,·fn:·(...a:·any[])·=>·any)·{\n······this._onabort.push(fn)\n····}\n··}\n··//@ts-ignore\n··AC·=·class·AbortController·{\n····constructor()·{\n······warnACPolyfill()\n····}\n····signal·=·new·AS()\n····abort(reason:·any)·{\n······if·(this.signal.aborted)·return\n······//@ts-ignore\n······this.signal.reason·=·reason\n······//@ts-ignore\n······this.signal.aborted·=·true\n······//@ts-ignore\n······for·(const·fn·of·this.signal._onabort)·{\n········fn(reason)\n······}\n······this.signal.onabort?.(reason)\n····}\n··}\n··let·printACPolyfillWarning·=\n····PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING·!==·'1'\n··const·warnACPolyfill·=·()·=>·{\n····if·(!printACPolyfillWarning)·return\n····printACPolyfillWarning·=·false\n····emitWarning(\n······'AbortController·is·not·defined.·If·using·lru-cache·in·'·+\n········'node·14,·load·an·AbortController·polyfill·from·the·'·+\n········'`node-abort-controller`·package.·A·minimal·polyfill·is·'·+\n········'provided·for·use·by·LRUCache.fetch(),·but·it·should·not·be·'·+\n········'relied·upon·in·other·contexts·(eg,·passing·it·to·other·APIs·that·'·+\n········'use·AbortController/AbortSignal·might·have·undesirable·effects).·'·+\n········'You·may·disable·this·with·LRU_CACHE_IGNORE_AC_WARNING=1·in·the·env.',\n······'NO_ABORT_CONTROLLER',\n······'ENOTSUP',\n······warnACPolyfill,\n····)\n··}\n}\n/*·c8·ignore·stop·*/\n\nconst·shouldWarn·=·(code:·string)·=>·!warned.has(code)\n\nconst·TYPE·=·Symbol('type')\nexport·type·PosInt·=·number·&·{·[TYPE]:·'Positive·Integer'·}\nexport·type·Index·=·number·&·{·[TYPE]:·'LRUCache·Index'·}\n\nconst·isPosInt·=·(n:·any):·n·is·PosInt·=>\n··n·&&·n·===·Math.floor(n)·&&·n·>·0·&&·isFinite(n)\n\nexport·type·UintArray·=·Uint8Array·|·Uint16Array·|·Uint32Array\nexport·type·NumberArray·=·UintArray·|·number[]\n\n/*·c8·ignore·start·*/\n//·This·is·a·little·bit·ridiculous,·tbh.\n//·The·maximum·array·length·is·2^32-1·or·thereabouts·on·most·JS·impls.\n//·And·well·before·that·point,·you're·caching·the·entire·world,·I·mean,\n//·that's·~32GB·of·just·integers·for·the·next/prev·links,·plus·whatever\n//·else·to·hold·that·many·keys·and·values.··Just·filling·the·memory·with\n//·zeroes·at·init·time·is·brutal·when·you·get·that·big.\n//·But·why·not·be·complete?\n//·Maybe·in·the·future,·these·limits·will·have·expanded.\nconst·getUintArray·=·(max:·number)·=>\n··!isPosInt(max)·?·null\n··:·max·<=·Math.pow(2,·8)·?·Uint8Array\n··:·max·<=·Math.pow(2,·16)·?·Uint16Array\n··:·max·<=·Math.pow(2,·32)·?·Uint32Array\n··:·max·<=·Number.MAX_SAFE_INTEGER·?·ZeroArray\n··:·null\n/*·c8·ignore·stop·*/\n\nclass·ZeroArray·extends·Array<number>·{\n··constructor(size:·number)·{\n····super(size)\n····this.fill(0)\n··}\n}\nexport·type·{·ZeroArray·}\nexport·type·{·Stack·}\n\nexport·type·StackLike·=·Stack·|·Index[]\nclass·Stack·{\n··heap:·NumberArray\n··length:·number\n··//·private·constructor\n··static·#constructing:·boolean·=·false\n··static·create(max:·number):·StackLike·{\n····const·HeapCls·=·getUintArray(max)\n····if·(!HeapCls)·return·[]\n····Stack.#constructing·=·true\n····const·s·=·new·Stack(max,·HeapCls)\n····Stack.#constructing·=·false\n····return·s\n··}\n··constructor(max:·number,·HeapCls:·{·new·(n:·number):·NumberArray·})·{\n····/*·c8·ignore·start·*/\n····if·(!Stack.#constructing)·{\n······throw·new·TypeError('instantiate·Stack·using·Stack.create(n)')\n····}\n····/*·c8·ignore·stop·*/\n····this.heap·=·new·HeapCls(max)\n····this.length·=·0\n··}\n··push(n:·Index)·{\n····this.heap[this.length++]·=·n\n··}\n··pop():·Index·{\n····return·this.heap[--this.length]·as·Index\n··}\n}\n\n/**\n·*·Promise·representing·an·in-progress·{@link·LRUCache#fetch}·call\n·*/\nexport·type·BackgroundFetch<V>·=·Promise<V·|·undefined>·&·{\n··__returned:·BackgroundFetch<V>·|·undefined\n··__abortController:·AbortController\n··__staleWhileFetching:·V·|·undefined\n}\n\nexport·type·DisposeTask<K,·V>·=·[\n··value:·V,\n··key:·K,\n··reason:·LRUCache.DisposeReason,\n]\n\nexport·namespace·LRUCache·{\n··/**\n···*·An·integer·greater·than·0,·reflecting·the·calculated·size·of·items\n···*/\n··export·type·Size·=·number\n\n··/**\n···*·Integer·greater·than·0,·representing·some·number·of·milliseconds,·or·the\n···*·time·at·which·a·TTL·started·counting·from.\n···*/\n··export·type·Milliseconds·=·number\n\n··/**\n···*·An·integer·greater·than·0,·reflecting·a·number·of·items\n···*/\n··export·type·Count·=·number\n\n··/**\n···*·The·reason·why·an·item·was·removed·from·the·cache,·passed\n···*·to·the·{@link·Disposer}·methods.\n···*\n···*·-·`evict`:·The·item·was·evicted·because·it·is·the·least·recently·used,\n···*···and·the·cache·is·full.\n···*·-·`set`:·A·new·value·was·set,·overwriting·the·old·value·being·disposed.\n···*·-·`delete`:·The·item·was·explicitly·deleted,·either·by·calling\n···*···{@link·LRUCache#delete},·{@link·LRUCache#clear},·or\n···*···{@link·LRUCache#set}·with·an·undefined·value.\n···*·-·`expire`:·The·item·was·removed·due·to·exceeding·its·TTL.\n···*·-·`fetch`:·A·{@link·OptionsBase#fetchMethod}·operation·returned\n···*···`undefined`·or·was·aborted,·causing·the·item·to·be·deleted.\n···*/\n··export·type·DisposeReason·=\n····|·'evict'\n····|·'set'\n····|·'delete'\n····|·'expire'\n····|·'fetch'\n··/**\n···*·A·method·called·upon·item·removal,·passed·as·the\n···*·{@link·OptionsBase.dispose}·and/or\n···*·{@link·OptionsBase.disposeAfter}·options.\n···*/\n··export·type·Disposer<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·DisposeReason,\n··)·=>·void\n\n··/**\n···*·The·reason·why·an·item·was·added·to·the·cache,·passed\n···*·to·the·{@link·Inserter}·methods.\n···*\n···*·-·`add`:·the·item·was·not·found·in·the·cache,·and·was·added\n···*·-·`update`:·the·item·was·in·the·cache,·with·the·same·value·provided\n···*·-·`replace`:·the·item·was·in·the·cache,·and·replaced\n···*/\n··export·type·InsertReason·=·'add'·|·'update'·|·'replace'\n\n··/**\n···*·A·method·called·upon·item·insertion,·passed·as·the\n···*·{@link·OptionsBase.insert}\n···*/\n··export·type·Inserter<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·InsertReason,\n··)·=>·void\n\n··/**\n···*·A·function·that·returns·the·effective·calculated·size\n···*·of·an·entry·in·the·cache.\n···*/\n··export·type·SizeCalculator<K,·V>·=·(value:·V,·key:·K)·=>·Size\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.fetchMethod}·function.\n···*/\n··export·interface·FetcherOptions<K,·V,·FC·=·unknown>·{\n····signal:·AbortSignal\n····options:·FetcherFetchOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·FetchOptions.context}·option·to\n·····*·{@link·LRUCache#fetch}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·Occasionally,·it·may·be·useful·to·track·the·internal·behavior·of·the\n···*·cache,·particularly·for·logging,·debugging,·or·for·behavior·within·the\n···*·`fetchMethod`.·To·do·this,·you·can·pass·a·`status`·object·to·the\n···*·{@link·LRUCache#fetch},·{@link·LRUCache#get},·{@link·LRUCache#set},\n···*·{@link·LRUCache#memo},·and·{@link·LRUCache#has}·methods.\n···*\n···*·The·`status`·option·should·be·a·plain·JavaScript·object.·The·following\n···*·fields·will·be·set·on·it·appropriately,·depending·on·the·situation.\n···*/\n··export·interface·Status<V>·{\n····/**\n·····*·The·status·of·a·set()·operation.\n·····*\n·····*·-·add:·the·item·was·not·found·in·the·cache,·and·was·added\n·····*·-·update:·the·item·was·in·the·cache,·with·the·same·value·provided\n·····*·-·replace:·the·item·was·in·the·cache,·and·replaced\n·····*·-·miss:·the·item·was·not·added·to·the·cache·for·some·reason\n·····*/\n····set?:·'add'·|·'update'·|·'replace'·|·'miss'\n\n····/**\n·····*·the·ttl·stored·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·the·start·time·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····start?:·Milliseconds\n\n····/**\n·····*·The·timestamp·used·for·TTL·calculation\n·····*/\n····now?:·Milliseconds\n\n····/**\n·····*·the·remaining·ttl·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····remainingTTL?:·Milliseconds\n\n····/**\n·····*·The·calculated·size·for·the·item,·if·sizes·are·used.\n·····*/\n····entrySize?:·Size\n\n····/**\n·····*·The·total·calculated·size·of·the·cache,·if·sizes·are·used.\n·····*/\n····totalCalculatedSize?:·Size\n\n····/**\n·····*·A·flag·indicating·that·the·item·was·not·stored,·due·to·exceeding·the\n·····*·{@link·OptionsBase.maxEntrySize}\n·····*/\n····maxEntrySizeExceeded?:·true\n\n····/**\n·····*·The·old·value,·specified·in·the·case·of·`set:'update'`·or\n·····*·`set:'replace'`\n·····*/\n····oldValue?:·V\n\n····/**\n·····*·The·results·of·a·{@link·LRUCache#has}·operation\n·····*\n·····*·-·hit:·the·item·was·found·in·the·cache\n·····*·-·stale:·the·item·was·found·in·the·cache,·but·is·stale\n·····*·-·miss:·the·item·was·not·found·in·the·cache\n·····*/\n····has?:·'hit'·|·'stale'·|·'miss'\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#fetch}·operation.\n·····*·Note·that·this·can·change·as·the·underlying·fetch()·moves·through\n·····*·various·states.\n·····*\n·····*·-·inflight:·there·is·another·fetch()·for·this·key·which·is·in·process\n·····*·-·get:·there·is·no·{@link·OptionsBase.fetchMethod},·so\n·····*···{@link·LRUCache#get}·was·called.\n·····*·-·miss:·the·item·is·not·in·cache,·and·will·be·fetched.\n·····*·-·hit:·the·item·is·in·the·cache,·and·was·resolved·immediately.\n·····*·-·stale:·the·item·is·in·the·cache,·but·stale.\n·····*·-·refresh:·the·item·is·in·the·cache,·and·not·stale,·but\n·····*···{@link·FetchOptions.forceRefresh}·was·specified.\n·····*/\n····fetch?:·'get'·|·'inflight'·|·'miss'·|·'hit'·|·'stale'·|·'refresh'\n\n····/**\n·····*·The·{@link·OptionsBase.fetchMethod}·was·called\n·····*/\n····fetchDispatched?:·true\n\n····/**\n·····*·The·cached·value·was·updated·after·a·successful·call·to\n·····*·{@link·OptionsBase.fetchMethod}\n·····*/\n····fetchUpdated?:·true\n\n····/**\n·····*·The·reason·for·a·fetch()·rejection.··Either·the·error·raised·by·the\n·····*·{@link·OptionsBase.fetchMethod},·or·the·reason·for·an\n·····*·AbortSignal.\n·····*/\n····fetchError?:·Error\n\n····/**\n·····*·The·fetch·received·an·abort·signal\n·····*/\n····fetchAborted?:·true\n\n····/**\n·····*·The·abort·signal·received·was·ignored,·and·the·fetch·was·allowed·to\n·····*·continue.\n·····*/\n····fetchAbortIgnored?:·true\n\n····/**\n·····*·The·fetchMethod·promise·resolved·successfully\n·····*/\n····fetchResolved?:·true\n\n····/**\n·····*·The·fetchMethod·promise·was·rejected\n·····*/\n····fetchRejected?:·true\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#get}·operation.\n·····*\n·····*·-·fetching:·The·item·is·currently·being·fetched.··If·a·previous·value\n·····*···is·present·and·allowed,·that·will·be·returned.\n·····*·-·stale:·The·item·is·in·the·cache,·and·is·stale.\n·····*·-·hit:·the·item·is·in·the·cache\n·····*·-·miss:·the·item·is·not·in·the·cache\n·····*/\n····get?:·'stale'·|·'hit'·|·'miss'\n\n····/**\n·····*·A·fetch·or·get·operation·returned·a·stale·value.\n·····*/\n····returnedStale?:·true\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#fetch}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·OptionsBase.noDeleteOnFetchRejection},\n···*·{@link·OptionsBase.allowStaleOnFetchRejection},\n···*·{@link·FetchOptions.forceRefresh},·and\n···*·{@link·FetcherOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.fetchMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·fetchMethod·is·called.\n···*/\n··export·interface·FetcherFetchOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#fetch}·method.\n···*/\n··export·interface·FetchOptions<K,·V,·FC>\n····extends·FetcherFetchOptions<K,·V,·FC>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.fetchMethod}·as\n·····*·the·{@link·FetcherOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····signal?:·AbortSignal\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·FetchOptionsWithContext<K,·V,·FC>\n····extends·FetchOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·FetchOptionsNoContext<K,·V>\n····extends·FetchOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··export·interface·MemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.memoMethod}·as\n·····*·the·{@link·MemoizerOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·MemoOptionsWithContext<K,·V,·FC>\n····extends·MemoOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·MemoOptionsNoContext<K,·V>\n····extends·MemoOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.memoMethod}·function.\n···*/\n··export·interface·MemoizerOptions<K,·V,·FC·=·unknown>·{\n····options:·MemoizerMemoOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·MemoOptions.context}·option·to\n·····*·{@link·LRUCache#memo}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#memo}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·MemoOptions.forceRefresh},·and\n···*·{@link·MemoOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.memoMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·memoMethod·is·called.\n···*/\n··export·interface·MemoizerMemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n····start?:·Milliseconds\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#has}·method.\n···*/\n··export·interface·HasOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'updateAgeOnHas'>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#get}·method.\n···*/\n··export·interface·GetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'allowStale'·|·'updateAgeOnGet'·|·'noDeleteOnStaleGet'\n····>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#peek}·method.\n···*/\n··export·interface·PeekOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'allowStale'>·{}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#set}·method.\n···*/\n··export·interface·SetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'sizeCalculation'·|·'ttl'·|·'noDisposeOnSet'·|·'noUpdateTTL'\n····>·{\n····/**\n·····*·If·size·tracking·is·enabled,·then·setting·an·explicit·size\n·····*·in·the·{@link·LRUCache#set}·call·will·prevent·calling·the\n·····*·{@link·OptionsBase.sizeCalculation}·function.\n·····*/\n····size?:·Size\n····/**\n·····*·If·TTL·tracking·is·enabled,·then·setting·an·explicit·start\n·····*·time·in·the·{@link·LRUCache#set}·call·will·override·the\n·····*·default·time·from·`performance.now()`·or·`Date.now()`.\n·····*\n·····*·Note·that·it·must·be·a·valid·value·for·whichever·time-tracking\n·····*·method·is·in·use.\n·····*/\n····start?:·Milliseconds\n····status?:·Status<V>\n··}\n\n··/**\n···*·The·type·signature·for·the·{@link·OptionsBase.fetchMethod}·option.\n···*/\n··export·type·Fetcher<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·FetcherOptions<K,·V,·FC>,\n··)·=>·Promise<V·|·undefined·|·void>·|·V·|·undefined·|·void\n\n··/**\n···*·the·type·signature·for·the·{@link·OptionsBase.memoMethod}·option.\n···*/\n··export·type·Memoizer<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·MemoizerOptions<K,·V,·FC>,\n··)·=>·V\n\n··/**\n···*·Options·which·may·be·passed·to·the·{@link·LRUCache}·constructor.\n···*\n···*·Most·of·these·may·be·overridden·in·the·various·options·that·use\n···*·them.\n···*\n···*·Despite·all·being·technically·optional,·the·constructor·requires·that\n···*·a·cache·is·at·minimum·limited·by·one·or·more·of·{@link·OptionsBase.max},\n···*·{@link·OptionsBase.ttl},·or·{@link·OptionsBase.maxSize}.\n···*\n···*·If·{@link·OptionsBase.ttl}·is·used·alone,·then·it·is·strongly·advised\n···*·(and·in·fact·required·by·the·type·definitions·here)·that·the·cache\n···*·also·set·{@link·OptionsBase.ttlAutopurge},·to·prevent·potentially\n···*·unbounded·storage.\n···*\n···*·All·options·are·also·available·on·the·{@link·LRUCache}·instance,·making\n···*·it·safe·to·pass·an·LRUCache·instance·as·the·options·argumemnt·to\n···*·make·another·empty·cache·of·the·same·type.\n···*\n···*·Some·options·are·marked·as·read-only,·because·changing·them·after\n···*·instantiation·is·not·safe.·Changing·any·of·the·other·options·will·of\n···*·course·only·have·an·effect·on·subsequent·method·calls.\n···*/\n··export·interface·OptionsBase<K,·V,·FC>·{\n····/**\n·····*·The·maximum·number·of·items·to·store·in·the·cache·before·evicting\n·····*·old·entries.·This·is·read-only·on·the·{@link·LRUCache}·instance,\n·····*·and·may·not·be·overridden.\n·····*\n·····*·If·set,·then·storage·space·will·be·pre-allocated·at·construction\n·····*·time,·and·the·cache·will·perform·significantly·faster.\n·····*\n·····*·Note·that·significantly·fewer·items·may·be·stored,·if\n·····*·{@link·OptionsBase.maxSize}·and/or·{@link·OptionsBase.ttl}·are·also\n·····*·set.\n·····*\n·····*·**It·is·strongly·recommended·to·set·a·`max`·to·prevent·unbounded·growth\n·····*·of·the·cache.**\n·····*/\n····max?:·Count\n\n····/**\n·····*·Max·time·in·milliseconds·for·items·to·live·in·cache·before·they·are\n·····*·considered·stale.··Note·that·stale·items·are·NOT·preemptively·removed·by\n·····*·default,·and·MAY·live·in·the·cache,·contributing·to·its·LRU·max,·long\n·····*·after·they·have·expired,·unless·{@link·OptionsBase.ttlAutopurge}·is\n·····*·set.\n·····*\n·····*·If·set·to·`0`·(the·default·value),·then·that·means·\"do·not·track\n·····*·TTL\",·not·\"expire·immediately\".\n·····*\n·····*·Also,·as·this·cache·is·optimized·for·LRU/MRU·operations,·some·of\n·····*·the·staleness/TTL·checks·will·reduce·performance,·as·they·will·incur\n·····*·overhead·by·deleting·items.\n·····*\n·····*·This·is·not·primarily·a·TTL·cache,·and·does·not·make·strong·TTL\n·····*·guarantees.·There·is·no·pre-emptive·pruning·of·expired·items,·but·you\n·····*·_may_·set·a·TTL·on·the·cache,·and·it·will·treat·expired·items·as·missing\n·····*·when·they·are·fetched,·and·delete·them.\n·····*\n·····*·Optional,·but·must·be·a·non-negative·integer·in·ms·if·specified.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.set()`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·ttl·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·If·ttl·tracking·is·enabled,·and·`max`·and·`maxSize`·are·not·set,\n·····*·and·`ttlAutopurge`·is·not·set,·then·a·warning·will·be·emitted\n·····*·cautioning·about·the·potential·for·unbounded·memory·consumption.\n·····*·(The·TypeScript·definitions·will·also·discourage·this.)\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·Minimum·amount·of·time·in·ms·in·which·to·check·for·staleness.\n·····*·Defaults·to·1,·which·means·that·the·current·time·is·checked\n·····*·at·most·once·per·millisecond.\n·····*\n·····*·Set·to·0·to·check·the·current·time·every·time·staleness·is·tested.\n·····*·(This·reduces·performance,·and·is·theoretically·unnecessary.)\n·····*\n·····*·Setting·this·to·a·higher·value·will·improve·performance·somewhat\n·····*·while·using·ttl·tracking,·albeit·at·the·expense·of·keeping·stale\n·····*·items·around·a·bit·longer·than·their·TTLs·would·indicate.\n·····*\n·····*·@default·1\n·····*/\n····ttlResolution?:·Milliseconds\n\n····/**\n·····*·Preemptively·remove·stale·items·from·the·cache.\n·····*\n·····*·Note·that·this·may·*significantly*·degrade·performance,·especially·if\n·····*·the·cache·is·storing·a·large·number·of·items.·It·is·almost·always·best\n·····*·to·just·leave·the·stale·items·in·the·cache,·and·let·them·fall·out·as·new\n·····*·items·are·added.\n·····*\n·····*·Note·that·this·means·that·{@link·OptionsBase.allowStale}·is·a·bit\n·····*·pointless,·as·stale·items·will·be·deleted·almost·as·soon·as·they\n·····*·expire.\n·····*\n·····*·Use·with·caution!\n·····*/\n····ttlAutopurge?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·it·is·retrieved·from·cache·with\n·····*·{@link·LRUCache#get},·causing·it·to·not·expire.·(It·can·still·fall·out\n·····*·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*/\n····updateAgeOnGet?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·its·presence·in·the·cache·is\n·····*·checked·with·{@link·LRUCache#has},·causing·it·to·not·expire.·(It·can\n·····*·still·fall·out·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*/\n····updateAgeOnHas?:·boolean\n\n····/**\n·····*·Allow·{@link·LRUCache#get}·and·{@link·LRUCache#fetch}·calls·to·return\n·····*·stale·data,·if·available.\n·····*\n·····*·By·default,·if·you·set·`ttl`,·stale·items·will·only·be·deleted·from·the\n·····*·cache·when·you·`get(key)`.·That·is,·it's·not·preemptively·pruning·items,\n·····*·unless·{@link·OptionsBase.ttlAutopurge}·is·set.\n·····*\n·····*·If·you·set·`allowStale:true`,·it'll·return·the·stale·value·*as·well·as*\n·····*·deleting·it.·If·you·don't·set·this,·then·it'll·return·`undefined`·when\n·····*·you·try·to·get·a·stale·entry.\n·····*\n·····*·Note·that·when·a·stale·entry·is·fetched,·_even·if·it·is·returned·due·to\n·····*·`allowStale`·being·set_,·it·is·removed·from·the·cache·immediately.·You\n·····*·can·suppress·this·behavior·by·setting\n·····*·{@link·OptionsBase.noDeleteOnStaleGet},·either·in·the·constructor,·or·in\n·····*·the·options·provided·to·{@link·LRUCache#get}.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*·The·`cache.has()`·method·will·always·return·`false`·for·stale·items.\n·····*\n·····*·Only·relevant·if·a·ttl·is·set.\n·····*/\n····allowStale?:·boolean\n\n····/**\n·····*·Function·that·is·called·on·items·when·they·are·dropped·from·the\n·····*·cache,·as·`dispose(value,·key,·reason)`.\n·····*\n·····*·This·can·be·handy·if·you·want·to·close·file·descriptors·or·do\n·····*·other·cleanup·tasks·when·items·are·no·longer·stored·in·the·cache.\n·····*\n·····*·**NOTE**:·It·is·called·_before_·the·item·has·been·fully·removed\n·····*·from·the·cache,·so·if·you·want·to·put·it·right·back·in,·you·need\n·····*·to·wait·until·the·next·tick.·If·you·try·to·add·it·back·in·during\n·····*·the·`dispose()`·function·call,·it·will·break·things·in·subtle·and\n·····*·weird·ways.\n·····*\n·····*·Unlike·several·other·options,·this·may·_not_·be·overridden·by\n·····*·passing·an·option·to·`set()`,·for·performance·reasons.\n·····*\n·····*·The·`reason`·will·be·one·of·the·following·strings,·corresponding\n·····*·to·the·reason·for·the·item's·deletion:\n·····*\n·····*·-·`evict`·Item·was·evicted·to·make·space·for·a·new·addition\n·····*·-·`set`·Item·was·overwritten·by·a·new·value\n·····*·-·`expire`·Item·expired·its·TTL\n·····*·-·`fetch`·Item·was·deleted·due·to·a·failed·or·aborted·fetch,·or·a\n·····*···fetchMethod·returning·`undefined.\n·····*·-·`delete`·Item·was·removed·by·explicit·`cache.delete(key)`,\n·····*···`cache.clear()`,·or·`cache.set(key,·undefined)`.\n·····*/\n····dispose?:·Disposer<K,·V>\n\n····/**\n·····*·Function·that·is·called·when·new·items·are·inserted·into·the·cache,\n·····*·as·`onInsert(value,·key,·reason)`.\n·····*\n·····*·This·can·be·useful·if·you·need·to·perform·actions·when·an·item·is\n·····*·added,·such·as·logging·or·tracking·insertions.\n·····*\n·····*·Unlike·some·other·options,·this·may·_not_·be·overridden·by·passing\n·····*·an·option·to·`set()`,·for·performance·and·consistency·reasons.\n·····*/\n····onInsert?:·Inserter<K,·V>\n\n····/**\n·····*·The·same·as·{@link·OptionsBase.dispose},·but·called·*after*·the·entry\n·····*·is·completely·removed·and·the·cache·is·once·again·in·a·clean·state.\n·····*\n·····*·It·is·safe·to·add·an·item·right·back·into·the·cache·at·this·point.\n·····*·However,·note·that·it·is·*very*·easy·to·inadvertently·create·infinite\n·····*·recursion·this·way.\n·····*/\n····disposeAfter?:·Disposer<K,·V>\n\n····/**\n·····*·Set·to·true·to·suppress·calling·the\n·····*·{@link·OptionsBase.dispose}·function·if·the·entry·key·is\n·····*·still·accessible·within·the·cache.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to\n·····*·{@link·LRUCache#set}.\n·····*\n·····*·Only·relevant·if·`dispose`·or·`disposeAfter`·are·set.\n·····*/\n····noDisposeOnSet?:·boolean\n\n····/**\n·····*·Boolean·flag·to·tell·the·cache·to·not·update·the·TTL·when·setting·a·new\n·····*·value·for·an·existing·key·(ie,·when·updating·a·value·rather·than\n·····*·inserting·a·new·value).··Note·that·the·TTL·value·is·_always_·set·(if\n·····*·provided)·when·adding·a·new·entry·into·the·cache.\n·····*\n·····*·Has·no·effect·if·a·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·May·be·passed·as·an·option·to·{@link·LRUCache#set}.\n·····*/\n····noUpdateTTL?:·boolean\n\n····/**\n·····*·Set·to·a·positive·integer·to·track·the·sizes·of·items·added·to·the\n·····*·cache,·and·automatically·evict·items·in·order·to·stay·below·this·size.\n·····*·Note·that·this·may·result·in·fewer·than·`max`·items·being·stored.\n·····*\n·····*·Attempting·to·add·an·item·to·the·cache·whose·calculated·size·is·greater\n·····*·that·this·amount·will·be·a·no-op.·The·item·will·not·be·cached,·and·no\n·····*·other·items·will·be·evicted.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.\n·····*\n·····*·Sets·`maxEntrySize`·to·the·same·value,·unless·a·different·value·is\n·····*·provided·for·`maxEntrySize`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·size·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·Note·also·that·size·tracking·can·negatively·impact·performance,\n·····*·though·for·most·cases,·only·minimally.\n·····*/\n····maxSize?:·Size\n\n····/**\n·····*·The·maximum·allowed·size·for·any·single·item·in·the·cache.\n·····*\n·····*·If·a·larger·item·is·passed·to·{@link·LRUCache#set}·or·returned·by·a\n·····*·{@link·OptionsBase.fetchMethod}·or·{@link·OptionsBase.memoMethod},·then\n·····*·it·will·not·be·stored·in·the·cache.\n·····*\n·····*·Attempting·to·add·an·item·whose·calculated·size·is·greater·than\n·····*·this·amount·will·not·cache·the·item·or·evict·any·old·items,·but\n·····*·WILL·delete·an·existing·value·if·one·is·already·present.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.·Defaults·to\n·····*·the·value·of·`maxSize`·if·provided.\n·····*/\n····maxEntrySize?:·Size\n\n····/**\n·····*·A·function·that·returns·a·number·indicating·the·item's·size.\n·····*\n·····*·Requires·{@link·OptionsBase.maxSize}·to·be·set.\n·····*\n·····*·If·not·provided,·and·{@link·OptionsBase.maxSize}·or\n·····*·{@link·OptionsBase.maxEntrySize}·are·set,·then·all\n·····*·{@link·LRUCache#set}·calls·**must**·provide·an·explicit\n·····*·{@link·SetOptions.size}·or·sizeCalculation·param.\n·····*/\n····sizeCalculation?:·SizeCalculator<K,·V>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#fetch}\n·····*\n·····*·```ts\n·····*·fetchMethod(key,·staleValue,·{·signal,·options,·context·})\n·····*·```\n·····*\n·····*·If·`fetchMethod`·is·not·provided,·then·`cache.fetch(key)`·is·equivalent\n·····*·to·`Promise.resolve(cache.get(key))`.\n·····*\n·····*·If·at·any·time,·`signal.aborted`·is·set·to·`true`,·or·if·the\n·····*·`signal.onabort`·method·is·called,·or·if·it·emits·an·`'abort'`·event\n·····*·which·you·can·listen·to·with·`addEventListener`,·then·that·means·that\n·····*·the·fetch·should·be·abandoned.·This·may·be·passed·along·to·async\n·····*·functions·aware·of·AbortController/AbortSignal·behavior.\n·····*\n·····*·The·`fetchMethod`·should·**only**·return·`undefined`·or·a·Promise\n·····*·resolving·to·`undefined`·if·the·AbortController·signaled·an·`abort`\n·····*·event.·In·all·other·cases,·it·should·return·or·resolve·to·a·value\n·····*·suitable·for·adding·to·the·cache.\n·····*\n·····*·The·`options`·object·is·a·union·of·the·options·that·may·be·provided·to\n·····*·`set()`·and·`get()`.·If·they·are·modified,·then·that·will·result·in\n·····*·modifying·the·settings·to·`cache.set()`·when·the·value·is·resolved,·and\n·····*·in·the·case·of\n·····*·{@link·OptionsBase.noDeleteOnFetchRejection}·and\n·····*·{@link·OptionsBase.allowStaleOnFetchRejection},·the·handling·of\n·····*·`fetchMethod`·failures.\n·····*\n·····*·For·example,·a·DNS·cache·may·update·the·TTL·based·on·the·value·returned\n·····*·from·a·remote·DNS·server·by·changing·`options.ttl`·in·the·`fetchMethod`.\n·····*/\n····fetchMethod?:·Fetcher<K,·V,·FC>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#memo}\n·····*/\n····memoMethod?:·Memoizer<K,·V,·FC>\n\n····/**\n·····*·Set·to·true·to·suppress·the·deletion·of·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·returns·a·rejected·promise.\n·····*/\n····noDeleteOnFetchRejection?:·boolean\n\n····/**\n·····*·Do·not·delete·stale·items·when·they·are·retrieved·with\n·····*·{@link·LRUCache#get}.\n·····*\n·····*·Note·that·the·`get`·return·value·will·still·be·`undefined`\n·····*·unless·{@link·OptionsBase.allowStale}·is·true.\n·····*\n·····*·When·using·time-expiring·entries·with·`ttl`,·by·default·stale\n·····*·items·will·be·removed·from·the·cache·when·the·key·is·accessed\n·····*·with·`cache.get()`.\n·····*\n·····*·Setting·this·option·will·cause·stale·items·to·remain·in·the·cache,·until\n·····*·they·are·explicitly·deleted·with·`cache.delete(key)`,·or·retrieved·with\n·····*·`noDeleteOnStaleGet`·set·to·`false`.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*\n·····*·Only·relevant·if·a·ttl·is·used.\n·····*/\n····noDeleteOnStaleGet?:·boolean\n\n····/**\n·····*·Set·to·true·to·allow·returning·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·throws·an·error·or·returns·a·rejected\n·····*·promise.\n·····*\n·····*·This·differs·from·using·{@link·OptionsBase.allowStale}·in·that·stale\n·····*·data·will·ONLY·be·returned·in·the·case·that·the·{@link·LRUCache#fetch}\n·····*·fails,·not·any·other·times.\n·····*\n·····*·If·a·`fetchMethod`·fails,·and·there·is·no·stale·value·available,·the\n·····*·`fetch()`·will·resolve·to·`undefined`.·Ie,·all·`fetchMethod`·errors·are\n·····*·suppressed.\n·····*\n·····*·Implies·`noDeleteOnFetchRejection`.\n·····*\n·····*·This·may·be·set·in·calls·to·`fetch()`,·or·defaulted·on·the·constructor,\n·····*·or·overridden·by·modifying·the·options·object·in·the·`fetchMethod`.\n·····*/\n····allowStaleOnFetchRejection?:·boolean\n\n····/**\n·····*·Set·to·true·to·return·a·stale·value·from·the·cache·when·the\n·····*·`AbortSignal`·passed·to·the·{@link·OptionsBase.fetchMethod}·dispatches\n·····*·an·`'abort'`·event,·whether·user-triggered,·or·due·to·internal·cache\n·····*·behavior.\n·····*\n·····*·Unless·{@link·OptionsBase.ignoreFetchAbort}·is·also·set,·the·underlying\n·····*·{@link·OptionsBase.fetchMethod}·will·still·be·considered·canceled,·and\n·····*·any·value·it·returns·will·be·ignored·and·not·cached.\n·····*\n·····*·Caveat:·since·fetches·are·aborted·when·a·new·value·is·explicitly\n·····*·set·in·the·cache,·this·can·lead·to·fetch·returning·a·stale·value,\n·····*·since·that·was·the·fallback·value·_at·the·moment·the·`fetch()`·was\n·····*·initiated_,·even·though·the·new·updated·value·is·now·present·in\n·····*·the·cache.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·cache·=·new·LRUCache<string,·any>({\n·····*···ttl:·100,\n·····*···fetchMethod:·async·(url,·oldValue,·{·signal·})·=>··{\n·····*·····const·res·=·await·fetch(url,·{·signal·})\n·····*·····return·await·res.json()\n·····*···}\n·····*·})\n·····*·cache.set('https://example.com/',·{·some:·'data'·})\n·····*·//·100ms·go·by...\n·····*·const·result·=·cache.fetch('https://example.com/')\n·····*·cache.set('https://example.com/',·{·other:·'thing'·})\n·····*·console.log(await·result)·//·{·some:·'data'·}\n·····*·console.log(cache.get('https://example.com/'))·//·{·other:·'thing'·}\n·····*·```\n·····*/\n····allowStaleOnFetchAbort?:·boolean\n\n····/**\n·····*·Set·to·true·to·ignore·the·`abort`·event·emitted·by·the·`AbortSignal`\n·····*·object·passed·to·{@link·OptionsBase.fetchMethod},·and·still·cache·the\n·····*·resulting·resolution·value,·as·long·as·it·is·not·`undefined`.\n·····*\n·····*·When·used·on·its·own,·this·means·aborted·{@link·LRUCache#fetch}·calls\n·····*·are·not·immediately·resolved·or·rejected·when·they·are·aborted,·and\n·····*·instead·take·the·full·time·to·await.\n·····*\n·····*·When·used·with·{@link·OptionsBase.allowStaleOnFetchAbort},·aborted\n·····*·{@link·LRUCache#fetch}·calls·will·resolve·immediately·to·their·stale\n·····*·cached·value·or·`undefined`,·and·will·continue·to·process·and·eventually\n·····*·update·the·cache·when·they·resolve,·as·long·as·the·resulting·value·is\n·····*·not·`undefined`,·thus·supporting·a·\"return·stale·on·timeout·while\n·····*·refreshing\"·mechanism·by·passing·`AbortSignal.timeout(n)`·as·the·signal.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·c·=·new·LRUCache({\n·····*···ttl:·100,\n·····*···ignoreFetchAbort:·true,\n·····*···allowStaleOnFetchAbort:·true,\n·····*···fetchMethod:·async·(key,·oldValue,·{·signal·})·=>·{\n·····*·····//·note:·do·NOT·pass·the·signal·to·fetch()!\n·····*·····//·let's·say·this·fetch·can·take·a·long·time.\n·····*·····const·res·=·await·fetch(`https://slow-backend-server/${key}`)\n·····*·····return·await·res.json()\n·····*···},\n·····*·})\n·····*\n·····*·//·this·will·return·the·stale·value·after·100ms,·while·still\n·····*·//·updating·in·the·background·for·next·time.\n·····*·const·val·=·await·c.fetch('key',·{·signal:·AbortSignal.timeout(100)·})\n·····*·```\n·····*\n·····*·**Note**:·regardless·of·this·setting,·an·`abort`·event·_is·still\n·····*·emitted·on·the·`AbortSignal`·object_,·so·may·result·in·invalid·results\n·····*·when·passed·to·other·underlying·APIs·that·use·AbortSignals.\n·····*\n·····*·This·may·be·overridden·in·the·{@link·OptionsBase.fetchMethod}·or·the\n·····*·call·to·{@link·LRUCache#fetch}.\n·····*/\n····ignoreFetchAbort?:·boolean\n\n····/**\n·····*·In·some·cases,·you·may·want·to·swap·out·the·performance/Date·object\n·····*·used·for·TTL·tracking.·This·should·almost·certainly·NOT·be·done·in\n·····*·production·environments!\n·····*\n·····*·This·value·defaults·to·`global.performance`·if·it·has·a·`now()`·method,\n·····*·or·the·`global.Date`·object·otherwise.\n·····*/\n····perf?:·Perf\n··}\n\n··export·interface·OptionsMaxLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····max:·Count\n··}\n··export·interface·OptionsTTLLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····ttl:·Milliseconds\n····ttlAutopurge:·boolean\n··}\n··export·interface·OptionsSizeLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····maxSize:·Size\n··}\n\n··/**\n···*·The·valid·safe·options·for·the·{@link·LRUCache}·constructor\n···*/\n··export·type·Options<K,·V,·FC>·=\n····|·OptionsMaxLimit<K,·V,·FC>\n····|·OptionsSizeLimit<K,·V,·FC>\n····|·OptionsTTLLimit<K,·V,·FC>\n\n··/**\n···*·Entry·objects·used·by·{@link·LRUCache#load}·and·{@link·LRUCache#dump},\n···*·and·returned·by·{@link·LRUCache#info}.\n···*/\n··export·interface·Entry<V>·{\n····value:·V\n····ttl?:·Milliseconds\n····size?:·Size\n····start?:·Milliseconds\n··}\n}\n\n/**\n·*·Default·export,·the·thing·you're·using·this·module·to·get.\n·*\n·*·The·`K`·and·`V`·types·define·the·key·and·value·types,·respectively.·The\n·*·optional·`FC`·type·defines·the·type·of·the·`context`·object·passed·to\n·*·`cache.fetch()`·and·`cache.memo()`.\n·*\n·*·Keys·and·values·**must·not**·be·`null`·or·`undefined`.\n·*\n·*·All·properties·from·the·options·object·(with·the·exception·of·`max`,\n·*·`maxSize`,·`fetchMethod`,·`memoMethod`,·`dispose`·and·`disposeAfter`)·are\n·*·added·as·normal·public·members.·(The·listed·options·are·read-only·getters.)\n·*\n·*·Changing·any·of·these·will·alter·the·defaults·for·subsequent·method·calls.\n·*/\nexport·class·LRUCache<K·extends·{},·V·extends·{},·FC·=·unknown>·{\n··//·options·that·cannot·be·changed·without·disaster\n··readonly·#max:·LRUCache.Count\n··readonly·#maxSize:·LRUCache.Size\n··readonly·#dispose?:·LRUCache.Disposer<K,·V>\n··readonly·#onInsert?:·LRUCache.Inserter<K,·V>\n··readonly·#disposeAfter?:·LRUCache.Disposer<K,·V>\n··readonly·#fetchMethod?:·LRUCache.Fetcher<K,·V,·FC>\n··readonly·#memoMethod?:·LRUCache.Memoizer<K,·V,·FC>\n··readonly·#perf:·Perf\n\n··/**\n···*·{@link·LRUCache.OptionsBase.perf}\n···*/\n··get·perf()·{\n····return·this.#perf\n··}\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttl}\n···*/\n··ttl:·LRUCache.Milliseconds\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlResolution}\n···*/\n··ttlResolution:·LRUCache.Milliseconds\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlAutopurge}\n···*/\n··ttlAutopurge:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnGet}\n···*/\n··updateAgeOnGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}\n···*/\n··updateAgeOnHas:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStale}\n···*/\n··allowStale:·boolean\n\n··/**\n···*·{@link·LRUCache.OptionsBase.noDisposeOnSet}\n···*/\n··noDisposeOnSet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noUpdateTTL}\n···*/\n··noUpdateTTL:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.maxEntrySize}\n···*/\n··maxEntrySize:·LRUCache.Size\n··/**\n···*·{@link·LRUCache.OptionsBase.sizeCalculation}\n···*/\n··sizeCalculation?:·LRUCache.SizeCalculator<K,·V>\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnFetchRejection}\n···*/\n··noDeleteOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnStaleGet}\n···*/\n··noDeleteOnStaleGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort}\n···*/\n··allowStaleOnFetchAbort:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}\n···*/\n··allowStaleOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.ignoreFetchAbort}\n···*/\n··ignoreFetchAbort:·boolean\n\n··//·computed·properties\n··#size:·LRUCache.Count\n··#calculatedSize:·LRUCache.Size\n··#keyMap:·Map<K,·Index>\n··#keyList:·(K·|·undefined)[]\n··#valList:·(V·|·BackgroundFetch<V>·|·undefined)[]\n··#next:·NumberArray\n··#prev:·NumberArray\n··#head:·Index\n··#tail:·Index\n··#free:·StackLike\n··#disposed?:·DisposeTask<K,·V>[]\n··#sizes?:·ZeroArray\n··#starts?:·ZeroArray\n··#ttls?:·ZeroArray\n··#autopurgeTimers?:·(undefined·|·ReturnType<typeof·setTimeout>)[]\n\n··#hasDispose:·boolean\n··#hasFetchMethod:·boolean\n··#hasDisposeAfter:·boolean\n··#hasOnInsert:·boolean\n\n··/**\n···*·Do·not·call·this·method·unless·you·need·to·inspect·the\n···*·inner·workings·of·the·cache.··If·anything·returned·by·this\n···*·object·is·modified·in·any·way,·strange·breakage·may·occur.\n···*\n···*·These·fields·are·private·for·a·reason!\n···*\n···*·@internal\n···*/\n··static·unsafeExposeInternals<\n····K·extends·{},\n····V·extends·{},\n····FC·extends·unknown·=·unknown,\n··>(c:·LRUCache<K,·V,·FC>)·{\n····return·{\n······//·properties\n······starts:·c.#starts,\n······ttls:·c.#ttls,\n······autopurgeTimers:·c.#autopurgeTimers,\n······sizes:·c.#sizes,\n······keyMap:·c.#keyMap·as·Map<K,·number>,\n······keyList:·c.#keyList,\n······valList:·c.#valList,\n······next:·c.#next,\n······prev:·c.#prev,\n······get·head()·{\n········return·c.#head\n······},\n······get·tail()·{\n········return·c.#tail\n······},\n······free:·c.#free,\n······//·methods\n······isBackgroundFetch:·(p:·any)·=>·c.#isBackgroundFetch(p),\n······backgroundFetch:·(\n········k:·K,\n········index:·number·|·undefined,\n········options:·LRUCache.FetchOptions<K,·V,·FC>,\n········context:·any,\n······):·BackgroundFetch<V>·=>\n········c.#backgroundFetch(\n··········k,\n··········index·as·Index·|·undefined,\n··········options,\n··········context,\n········),\n······moveToTail:·(index:·number):·void·=>·c.#moveToTail(index·as·Index),\n······indexes:·(options?:·{·allowStale:·boolean·})·=>·c.#indexes(options),\n······rindexes:·(options?:·{·allowStale:·boolean·})·=>\n········c.#rindexes(options),\n······isStale:·(index:·number·|·undefined)·=>·c.#isStale(index·as·Index),\n····}\n··}\n\n··//·Protected·read-only·members\n\n··/**\n···*·{@link·LRUCache.OptionsBase.max}·(read-only)\n···*/\n··get·max():·LRUCache.Count·{\n····return·this.#max\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.maxSize}·(read-only)\n···*/\n··get·maxSize():·LRUCache.Count·{\n····return·this.#maxSize\n··}\n··/**\n···*·The·total·computed·size·of·items·in·the·cache·(read-only)\n···*/\n··get·calculatedSize():·LRUCache.Size·{\n····return·this.#calculatedSize\n··}\n··/**\n···*·The·number·of·items·stored·in·the·cache·(read-only)\n···*/\n··get·size():·LRUCache.Count·{\n····return·this.#size\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·(read-only)\n···*/\n··get·fetchMethod():·LRUCache.Fetcher<K,·V,·FC>·|·undefined·{\n····return·this.#fetchMethod\n··}\n··get·memoMethod():·LRUCache.Memoizer<K,·V,·FC>·|·undefined·{\n····return·this.#memoMethod\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.dispose}·(read-only)\n···*/\n··get·dispose()·{\n····return·this.#dispose\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.onInsert}·(read-only)\n···*/\n··get·onInsert()·{\n····return·this.#onInsert\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.disposeAfter}·(read-only)\n···*/\n··get·disposeAfter()·{\n····return·this.#disposeAfter\n··}\n\n··constructor(options:·LRUCache.Options<K,·V,·FC>·|·LRUCache<K,·V,·FC>)·{\n····const·{\n······max·=·0,\n······ttl,\n······ttlResolution·=·1,\n······ttlAutopurge,\n······updateAgeOnGet,\n······updateAgeOnHas,\n······allowStale,\n······dispose,\n······onInsert,\n······disposeAfter,\n······noDisposeOnSet,\n······noUpdateTTL,\n······maxSize·=·0,\n······maxEntrySize·=·0,\n······sizeCalculation,\n······fetchMethod,\n······memoMethod,\n······noDeleteOnFetchRejection,\n······noDeleteOnStaleGet,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······perf,\n····}·=·options\n\n····if·(perf·!==·undefined)·{\n······if·(typeof·perf?.now·!==·'function')·{\n········throw·new·TypeError(\n··········'perf·option·must·have·a·now()·method·if·specified',\n········)\n······}\n····}\n\n····this.#perf·=·perf·??·defaultPerf\n\n····if·(max·!==·0·&&·!isPosInt(max))·{\n······throw·new·TypeError('max·option·must·be·a·nonnegative·integer')\n····}\n\n····const·UintArray·=·max·?·getUintArray(max)·:·Array\n····if·(!UintArray)·{\n······throw·new·Error('invalid·max·value:·'·+·max)\n····}\n\n····this.#max·=·max\n····this.#maxSize·=·maxSize\n····this.maxEntrySize·=·maxEntrySize·||·this.#maxSize\n····this.sizeCalculation·=·sizeCalculation\n····if·(this.sizeCalculation)·{\n······if·(!this.#maxSize·&&·!this.maxEntrySize)·{\n········throw·new·TypeError(\n··········'cannot·set·sizeCalculation·without·setting·maxSize·or·maxEntrySize',\n········)\n······}\n······if·(typeof·this.sizeCalculation·!==·'function')·{\n········throw·new·TypeError('sizeCalculation·set·to·non-function')\n······}\n····}\n\n····if·(memoMethod·!==·undefined·&&·typeof·memoMethod·!==·'function')·{\n······throw·new·TypeError('memoMethod·must·be·a·function·if·defined')\n····}\n····this.#memoMethod·=·memoMethod\n\n····if·(fetchMethod·!==·undefined·&&·typeof·fetchMethod·!==·'function')·{\n······throw·new·TypeError('fetchMethod·must·be·a·function·if·specified')\n····}\n····this.#fetchMethod·=·fetchMethod\n····this.#hasFetchMethod·=·!!fetchMethod\n\n····this.#keyMap·=·new·Map()\n····this.#keyList·=·new·Array(max).fill(undefined)\n····this.#valList·=·new·Array(max).fill(undefined)\n····this.#next·=·new·UintArray(max)\n····this.#prev·=·new·UintArray(max)\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free·=·Stack.create(max)\n····this.#size·=·0\n····this.#calculatedSize·=·0\n\n····if·(typeof·dispose·===·'function')·{\n······this.#dispose·=·dispose\n····}\n····if·(typeof·onInsert·===·'function')·{\n······this.#onInsert·=·onInsert\n····}\n····if·(typeof·disposeAfter·===·'function')·{\n······this.#disposeAfter·=·disposeAfter\n······this.#disposed·=·[]\n····}·else·{\n······this.#disposeAfter·=·undefined\n······this.#disposed·=·undefined\n····}\n····this.#hasDispose·=·!!this.#dispose\n····this.#hasOnInsert·=·!!this.#onInsert\n····this.#hasDisposeAfter·=·!!this.#disposeAfter\n\n····this.noDisposeOnSet·=·!!noDisposeOnSet\n····this.noUpdateTTL·=·!!noUpdateTTL\n····this.noDeleteOnFetchRejection·=·!!noDeleteOnFetchRejection\n····this.allowStaleOnFetchRejection·=·!!allowStaleOnFetchRejection\n····this.allowStaleOnFetchAbort·=·!!allowStaleOnFetchAbort\n····this.ignoreFetchAbort·=·!!ignoreFetchAbort\n\n····//·NB:·maxEntrySize·is·set·to·maxSize·if·it's·set\n····if·(this.maxEntrySize·!==·0)·{\n······if·(this.#maxSize·!==·0)·{\n········if·(!isPosInt(this.#maxSize))·{\n··········throw·new·TypeError(\n············'maxSize·must·be·a·positive·integer·if·specified',\n··········)\n········}\n······}\n······if·(!isPosInt(this.maxEntrySize))·{\n········throw·new·TypeError(\n··········'maxEntrySize·must·be·a·positive·integer·if·specified',\n········)\n······}\n······this.#initializeSizeTracking()\n····}\n\n····this.allowStale·=·!!allowStale\n····this.noDeleteOnStaleGet·=·!!noDeleteOnStaleGet\n····this.updateAgeOnGet·=·!!updateAgeOnGet\n····this.updateAgeOnHas·=·!!updateAgeOnHas\n····this.ttlResolution·=\n······isPosInt(ttlResolution)·||·ttlResolution·===·0·?·ttlResolution·:·1\n····this.ttlAutopurge·=·!!ttlAutopurge\n····this.ttl·=·ttl·||·0\n····if·(this.ttl)·{\n······if·(!isPosInt(this.ttl))·{\n········throw·new·TypeError('ttl·must·be·a·positive·integer·if·specified')\n······}\n······this.#initializeTTLTracking()\n····}\n\n····//·do·not·allow·completely·unbounded·caches\n····if·(this.#max·===·0·&&·this.ttl·===·0·&&·this.#maxSize·===·0)·{\n······throw·new·TypeError(\n········'At·least·one·of·max,·maxSize,·or·ttl·is·required',\n······)\n····}\n····if·(!this.ttlAutopurge·&&·!this.#max·&&·!this.#maxSize)·{\n······const·code·=·'LRU_CACHE_UNBOUNDED'\n······if·(shouldWarn(code))·{\n········warned.add(code)\n········const·msg·=\n··········'TTL·caching·without·ttlAutopurge,·max,·or·maxSize·can·'·+\n··········'result·in·unbounded·memory·consumption.'\n········emitWarning(msg,·'UnboundedCacheWarning',·code,·LRUCache)\n······}\n····}\n··}\n\n··/**\n···*·Return·the·number·of·ms·left·in·the·item's·TTL.·If·item·is·not·in·cache,\n···*·returns·`0`.·Returns·`Infinity`·if·item·is·in·cache·without·a·defined·TTL.\n···*/\n··getRemainingTTL(key:·K)·{\n····return·this.#keyMap.has(key)·?·Infinity·:·0\n··}\n\n··#initializeTTLTracking()·{\n····const·ttls·=·new·ZeroArray(this.#max)\n····const·starts·=·new·ZeroArray(this.#max)\n····this.#ttls·=·ttls\n····this.#starts·=·starts\n····const·purgeTimers·=\n······this.ttlAutopurge·?\n········new·Array<undefined·|·ReturnType<typeof·setTimeout>>(this.#max)\n······:·undefined\n····this.#autopurgeTimers·=·purgeTimers\n\n····this.#setItemTTL·=·(index,·ttl,·start·=·this.#perf.now())·=>·{\n······starts[index]·=·ttl·!==·0·?·start·:·0\n······ttls[index]·=·ttl\n······//·clear·out·the·purge·timer·if·we're·setting·TTL·to·0,·and\n······//·previously·had·a·ttl·purge·timer·running,·so·it·doesn't\n······//·fire·unnecessarily.\n······if·(purgeTimers?.[index])·{\n········clearTimeout(purgeTimers[index])\n········purgeTimers[index]·=·undefined\n······}\n······if·(ttl·!==·0·&&·purgeTimers)·{\n········const·t·=·setTimeout(()·=>·{\n··········if·(this.#isStale(index))·{\n············this.#delete(this.#keyList[index]·as·K,·'expire')\n··········}\n········},·ttl·+·1)\n········//·unref()·not·supported·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n········purgeTimers[index]·=·t\n······}\n····}\n\n····this.#updateItemAge·=·index·=>·{\n······starts[index]·=·ttls[index]·!==·0·?·this.#perf.now()·:·0\n····}\n\n····this.#statusTTL·=·(status,·index)·=>·{\n······if·(ttls[index])·{\n········const·ttl·=·ttls[index]\n········const·start·=·starts[index]\n········/*·c8·ignore·next·*/\n········if·(!ttl·||·!start)·return\n········status.ttl·=·ttl\n········status.start·=·start\n········status.now·=·cachedNow·||·getNow()\n········const·age·=·status.now·-·start\n········status.remainingTTL·=·ttl·-·age\n······}\n····}\n\n····//·debounce·calls·to·perf.now()·to·1s·so·we're·not·hitting\n····//·that·costly·call·repeatedly.\n····let·cachedNow·=·0\n····const·getNow·=·()·=>·{\n······const·n·=·this.#perf.now()\n······if·(this.ttlResolution·>·0)·{\n········cachedNow·=·n\n········const·t·=·setTimeout(()·=>·(cachedNow·=·0),·this.ttlResolution)\n········//·not·available·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n······}\n······return·n\n····}\n\n····this.getRemainingTTL·=·key·=>·{\n······const·index·=·this.#keyMap.get(key)\n······if·(index·===·undefined)·{\n········return·0\n······}\n······const·ttl·=·ttls[index]\n······const·start·=·starts[index]\n······if·(!ttl·||·!start)·{\n········return·Infinity\n······}\n······const·age·=·(cachedNow·||·getNow())·-·start\n······return·ttl·-·age\n····}\n\n····this.#isStale·=·index·=>·{\n······const·s·=·starts[index]\n······const·t·=·ttls[index]\n······return·!!t·&&·!!s·&&·(cachedNow·||·getNow())·-·s·>·t\n····}\n··}\n\n··//·conditionally·set·private·methods·related·to·TTL\n··#updateItemAge:·(index:·Index)·=>·void·=·()·=>·{}\n··#statusTTL:·(status:·LRUCache.Status<V>,·index:·Index)·=>·void·=·()·=>·{}\n··#setItemTTL:·(\n····index:·Index,\n····ttl:·LRUCache.Milliseconds,\n····start?:·LRUCache.Milliseconds,\n····//·ignore·because·we·never·call·this·if·we're·not·already·in·TTL·mode\n····/*·c8·ignore·start·*/\n··)·=>·void·=·()·=>·{}\n··/*·c8·ignore·stop·*/\n\n··#isStale:·(index:·Index)·=>·boolean·=·()·=>·false\n\n··#initializeSizeTracking()·{\n····const·sizes·=·new·ZeroArray(this.#max)\n····this.#calculatedSize·=·0\n····this.#sizes·=·sizes\n····this.#removeItemSize·=·index·=>·{\n······this.#calculatedSize·-=·sizes[index]·as·number\n······sizes[index]·=·0\n····}\n····this.#requireSize·=·(k,·v,·size,·sizeCalculation)·=>·{\n······//·provisionally·accept·background·fetches.\n······//·actual·value·size·will·be·checked·when·they·return.\n······if·(this.#isBackgroundFetch(v))·{\n········return·0\n······}\n······if·(!isPosInt(size))·{\n········if·(sizeCalculation)·{\n··········if·(typeof·sizeCalculation·!==·'function')·{\n············throw·new·TypeError('sizeCalculation·must·be·a·function')\n··········}\n··········size·=·sizeCalculation(v,·k)\n··········if·(!isPosInt(size))·{\n············throw·new·TypeError(\n··············'sizeCalculation·return·invalid·(expect·positive·integer)',\n············)\n··········}\n········}·else·{\n··········throw·new·TypeError(\n············'invalid·size·value·(must·be·positive·integer).·'·+\n··············'When·maxSize·or·maxEntrySize·is·used,·sizeCalculation·'·+\n··············'or·size·must·be·set.',\n··········)\n········}\n······}\n······return·size\n····}\n····this.#addItemSize·=·(\n······index:·Index,\n······size:·LRUCache.Size,\n······status?:·LRUCache.Status<V>,\n····)·=>·{\n······sizes[index]·=·size\n······if·(this.#maxSize)·{\n········const·maxSize·=·this.#maxSize·-·(sizes[index]·as·number)\n········while·(this.#calculatedSize·>·maxSize)·{\n··········this.#evict(true)\n········}\n······}\n······this.#calculatedSize·+=·sizes[index]·as·number\n······if·(status)·{\n········status.entrySize·=·size\n········status.totalCalculatedSize·=·this.#calculatedSize\n······}\n····}\n··}\n\n··#removeItemSize:·(index:·Index)·=>·void·=·_i·=>·{}\n··#addItemSize:·(\n····index:·Index,\n····size:·LRUCache.Size,\n····status?:·LRUCache.Status<V>,\n··)·=>·void·=·(_i,·_s,·_st)·=>·{}\n··#requireSize:·(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·LRUCache.Size·=·(\n····_k:·K,\n····_v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·{\n····if·(size·||·sizeCalculation)·{\n······throw·new·TypeError(\n········'cannot·set·size·without·setting·maxSize·or·maxEntrySize·on·cache',\n······)\n····}\n····return·0\n··};\n\n··*#indexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#tail;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#head)·{\n··········break\n········}·else·{\n··········i·=·this.#prev[i]·as·Index\n········}\n······}\n····}\n··}\n\n··*#rindexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#head;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#tail)·{\n··········break\n········}·else·{\n··········i·=·this.#next[i]·as·Index\n········}\n······}\n····}\n··}\n\n··#isValidIndex(index:·Index)·{\n····return·(\n······index·!==·undefined·&&\n······this.#keyMap.get(this.#keyList[index]·as·K)·===·index\n····)\n··}\n\n··/**\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*entries()·{\n····for·(const·i·of·this.#indexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]·as·[K,·V]\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.entries}\n···*\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rentries()·{\n····for·(const·i·of·this.#rindexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*keys()·{\n····for·(const·i·of·this.#indexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.keys}\n···*\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rkeys()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*values()·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]·as·V\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.values}\n···*\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rvalues()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]\n······}\n····}\n··}\n\n··/**\n···*·Iterating·over·the·cache·itself·yields·the·same·results·as\n···*·{@link·LRUCache.entries}\n···*/\n··[Symbol.iterator]()·{\n····return·this.entries()\n··}\n\n··/**\n···*·A·String·value·that·is·used·in·the·creation·of·the·default·string\n···*·description·of·an·object.·Called·by·the·built-in·method\n···*·`Object.prototype.toString`.\n···*/\n··[Symbol.toStringTag]·=·'LRUCache'\n\n··/**\n···*·Find·a·value·for·which·the·supplied·fn·method·returns·a·truthy·value,\n···*·similar·to·`Array.find()`.·fn·is·called·as·`fn(value,·key,·cache)`.\n···*/\n··find(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·boolean,\n····getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{},\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······if·(fn(value,·this.#keyList[i]·as·K,·this))·{\n········return·this.get(this.#keyList[i]·as·K,·getOptions)\n······}\n····}\n··}\n\n··/**\n···*·Call·the·supplied·function·on·each·item·in·the·cache,·in·order·from·most\n···*·recently·used·to·least·recently·used.\n···*\n···*·`fn`·is·called·as·`fn(value,·key,·cache)`.\n···*\n···*·If·`thisp`·is·provided,·function·will·be·called·in·the·`this`-context·of\n···*·the·provided·object,·or·the·cache·if·no·`thisp`·object·is·provided.\n···*\n···*·Does·not·update·age·or·recenty·of·use,·or·iterate·over·stale·values.\n···*/\n··forEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·The·same·as·{@link·LRUCache.forEach}·but·items·are·iterated·over·in\n···*·reverse·order.··(ie,·less·recently·used·items·are·iterated·over·first.)\n···*/\n··rforEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·Delete·any·stale·entries.·Returns·true·if·anything·was·removed,\n···*·false·otherwise.\n···*/\n··purgeStale()·{\n····let·deleted·=·false\n····for·(const·i·of·this.#rindexes({·allowStale:·true·}))·{\n······if·(this.#isStale(i))·{\n········this.#delete(this.#keyList[i]·as·K,·'expire')\n········deleted·=·true\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Get·the·extended·info·about·a·given·entry,·to·get·its·value,·size,·and\n···*·TTL·info·simultaneously.·Returns·`undefined`·if·the·key·is·not·present.\n···*\n···*·Unlike·{@link·LRUCache#dump},·which·is·designed·to·be·portable·and·survive\n···*·serialization,·the·`start`·value·is·always·the·current·timestamp,·and·the\n···*·`ttl`·is·a·calculated·remaining·time·to·live·(negative·if·expired).\n···*\n···*·Always·returns·stale·values,·if·their·info·is·found·in·the·cache,·so·be\n···*·sure·to·check·for·expirations·(ie,·a·negative·{@link·LRUCache.Entry#ttl})\n···*·if·relevant.\n···*/\n··info(key:·K):·LRUCache.Entry<V>·|·undefined·{\n····const·i·=·this.#keyMap.get(key)\n····if·(i·===·undefined)·return·undefined\n····const·v·=·this.#valList[i]\n····/*·c8·ignore·start·-·this·isn't·tested·for·the·info·function,\n·····*·but·it's·the·same·logic·as·found·in·other·places.·*/\n····const·value:·V·|·undefined·=\n······this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n····if·(value·===·undefined)·return·undefined\n····/*·c8·ignore·end·*/\n····const·entry:·LRUCache.Entry<V>·=·{·value·}\n····if·(this.#ttls·&&·this.#starts)·{\n······const·ttl·=·this.#ttls[i]\n······const·start·=·this.#starts[i]\n······if·(ttl·&&·start)·{\n········const·remain·=·ttl·-·(this.#perf.now()·-·start)\n········entry.ttl·=·remain\n········entry.start·=·Date.now()\n······}\n····}\n····if·(this.#sizes)·{\n······entry.size·=·this.#sizes[i]\n····}\n····return·entry\n··}\n\n··/**\n···*·Return·an·array·of·[key,·{@link·LRUCache.Entry}]·tuples·which·can·be\n···*·passed·to·{@link·LRUCache#load}.\n···*\n···*·The·`start`·fields·are·calculated·relative·to·a·portable·`Date.now()`\n···*·timestamp,·even·if·`performance.now()`·is·available.\n···*\n···*·Stale·entries·are·always·included·in·the·`dump`,·even·if\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·false.\n···*\n···*·Note:·this·returns·an·actual·array,·not·a·generator,·so·it·can·be·more\n···*·easily·passed·around.\n···*/\n··dump()·{\n····const·arr:·[K,·LRUCache.Entry<V>][]·=·[]\n····for·(const·i·of·this.#indexes({·allowStale:·true·}))·{\n······const·key·=·this.#keyList[i]\n······const·v·=·this.#valList[i]\n······const·value:·V·|·undefined·=\n········this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined·||·key·===·undefined)·continue\n······const·entry:·LRUCache.Entry<V>·=·{·value·}\n······if·(this.#ttls·&&·this.#starts)·{\n········entry.ttl·=·this.#ttls[i]\n········//·always·dump·the·start·relative·to·a·portable·timestamp\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·this.#perf.now()·-·(this.#starts[i]·as·number)\n········entry.start·=·Math.floor(Date.now()·-·age)\n······}\n······if·(this.#sizes)·{\n········entry.size·=·this.#sizes[i]\n······}\n······arr.unshift([key,·entry])\n····}\n····return·arr\n··}\n\n··/**\n···*·Reset·the·cache·and·load·in·the·items·in·entries·in·the·order·listed.\n···*\n···*·The·shape·of·the·resulting·cache·may·be·different·if·the·same·options·are\n···*·not·used·in·both·caches.\n···*\n···*·The·`start`·fields·are·assumed·to·be·calculated·relative·to·a·portable\n···*·`Date.now()`·timestamp,·even·if·`performance.now()`·is·available.\n···*/\n··load(arr:·[K,·LRUCache.Entry<V>][])·{\n····this.clear()\n····for·(const·[key,·entry]·of·arr)·{\n······if·(entry.start)·{\n········//·entry.start·is·a·portable·timestamp,·but·we·may·be·using\n········//·node's·performance.now(),·so·calculate·the·offset,·so·that\n········//·we·get·the·intended·remaining·TTL,·no·matter·how·long·it's\n········//·been·on·ice.\n········//\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·Date.now()·-·entry.start\n········entry.start·=·this.#perf.now()·-·age\n······}\n······this.set(key,·entry.value,·entry)\n····}\n··}\n\n··/**\n···*·Add·a·value·to·the·cache.\n···*\n···*·Note:·if·`undefined`·is·specified·as·a·value,·this·is·an·alias·for\n···*·{@link·LRUCache#delete}\n···*\n···*·Fields·on·the·{@link·LRUCache.SetOptions}·options·param·will·override\n···*·their·corresponding·values·in·the·constructor·options·for·the·scope\n···*·of·this·single·`set()`·operation.\n···*\n···*·If·`start`·is·provided,·then·that·will·set·the·effective·start\n···*·time·for·the·TTL·calculation.·Note·that·this·must·be·a·previous\n···*·value·of·`performance.now()`·if·supported,·or·a·previous·value·of\n···*·`Date.now()`·if·not.\n···*\n···*·Options·object·may·also·include·`size`,·which·will·prevent\n···*·calling·the·`sizeCalculation`·function·and·just·use·the·specified\n···*·number·if·it·is·a·positive·integer,·and·`noDisposeOnSet`·which\n···*·will·prevent·calling·a·`dispose`·function·in·the·case·of\n···*·overwrites.\n···*\n···*·If·the·`size`·(or·return·value·of·`sizeCalculation`)·for·a·given\n···*·entry·is·greater·than·`maxEntrySize`,·then·the·item·will·not·be\n···*·added·to·the·cache.\n···*\n···*·Will·update·the·recency·of·the·entry.\n···*\n···*·If·the·value·is·`undefined`,·then·this·is·an·alias·for\n···*·`cache.delete(key)`.·`undefined`·is·never·stored·in·the·cache.\n···*/\n··set(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>·|·undefined,\n····setOptions:·LRUCache.SetOptions<K,·V,·FC>·=·{},\n··)·{\n····if·(v·===·undefined)·{\n······this.delete(k)\n······return·this\n····}\n····const·{\n······ttl·=·this.ttl,\n······start,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······sizeCalculation·=·this.sizeCalculation,\n······status,\n····}·=·setOptions\n····let·{·noUpdateTTL·=·this.noUpdateTTL·}·=·setOptions\n\n····const·size·=·this.#requireSize(\n······k,\n······v,\n······setOptions.size·||·0,\n······sizeCalculation,\n····)\n····//·if·the·item·doesn't·fit,·don't·do·anything\n····//·NB:·maxEntrySize·set·to·maxSize·by·default\n····if·(this.maxEntrySize·&&·size·>·this.maxEntrySize)·{\n······if·(status)·{\n········status.set·=·'miss'\n········status.maxEntrySizeExceeded·=·true\n······}\n······//·have·to·delete,·in·case·something·is·there·already.\n······this.#delete(k,·'set')\n······return·this\n····}\n····let·index·=·this.#size·===·0·?·undefined·:·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······//·addition\n······index·=·(\n········this.#size·===·0·?·this.#tail\n········:·this.#free.length·!==·0·?·this.#free.pop()\n········:·this.#size·===·this.#max·?·this.#evict(false)\n········:·this.#size)·as·Index\n······this.#keyList[index]·=·k\n······this.#valList[index]·=·v\n······this.#keyMap.set(k,·index)\n······this.#next[this.#tail]·=·index\n······this.#prev[index]·=·this.#tail\n······this.#tail·=·index\n······this.#size++\n······this.#addItemSize(index,·size,·status)\n······if·(status)·status.set·=·'add'\n······noUpdateTTL·=·false\n······if·(this.#hasOnInsert)·{\n········this.#onInsert?.(v·as·V,·k,·'add')\n······}\n····}·else·{\n······//·update\n······this.#moveToTail(index)\n······const·oldVal·=·this.#valList[index]·as·V·|·BackgroundFetch<V>\n······if·(v·!==·oldVal)·{\n········if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(oldVal))·{\n··········oldVal.__abortController.abort(new·Error('replaced'))\n··········const·{·__staleWhileFetching:·s·}·=·oldVal\n··········if·(s·!==·undefined·&&·!noDisposeOnSet)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(s·as·V,·k,·'set')\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([s·as·V,·k,·'set'])\n············}\n··········}\n········}·else·if·(!noDisposeOnSet)·{\n··········if·(this.#hasDispose)·{\n············this.#dispose?.(oldVal·as·V,·k,·'set')\n··········}\n··········if·(this.#hasDisposeAfter)·{\n············this.#disposed?.push([oldVal·as·V,·k,·'set'])\n··········}\n········}\n········this.#removeItemSize(index)\n········this.#addItemSize(index,·size,·status)\n········this.#valList[index]·=·v\n········if·(status)·{\n··········status.set·=·'replace'\n··········const·oldValue·=\n············oldVal·&&·this.#isBackgroundFetch(oldVal)·?\n··············oldVal.__staleWhileFetching\n············:·oldVal\n··········if·(oldValue·!==·undefined)·status.oldValue·=·oldValue\n········}\n······}·else·if·(status)·{\n········status.set·=·'update'\n······}\n\n······if·(this.#hasOnInsert)·{\n········this.onInsert?.(v·as·V,·k,·v·===·oldVal·?·'update'·:·'replace')\n······}\n····}\n····if·(ttl·!==·0·&&·!this.#ttls)·{\n······this.#initializeTTLTracking()\n····}\n····if·(this.#ttls)·{\n······if·(!noUpdateTTL)·{\n········this.#setItemTTL(index,·ttl,·start)\n······}\n······if·(status)·this.#statusTTL(status,·index)\n····}\n····if·(!noDisposeOnSet·&&·this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·this\n··}\n\n··/**\n···*·Evict·the·least·recently·used·item,·returning·its·value·or\n···*·`undefined`·if·cache·is·empty.\n···*/\n··pop():·V·|·undefined·{\n····try·{\n······while·(this.#size)·{\n········const·val·=·this.#valList[this.#head]\n········this.#evict(true)\n········if·(this.#isBackgroundFetch(val))·{\n··········if·(val.__staleWhileFetching)·{\n············return·val.__staleWhileFetching\n··········}\n········}·else·if·(val·!==·undefined)·{\n··········return·val\n········}\n······}\n····}·finally·{\n······if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n········const·dt·=·this.#disposed\n········let·task:·DisposeTask<K,·V>·|·undefined\n········while·((task·=·dt?.shift()))·{\n··········this.#disposeAfter?.(...task)\n········}\n······}\n····}\n··}\n\n··#evict(free:·boolean)·{\n····const·head·=·this.#head\n····const·k·=·this.#keyList[head]·as·K\n····const·v·=·this.#valList[head]·as·V\n····if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(v))·{\n······v.__abortController.abort(new·Error('evicted'))\n····}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n······if·(this.#hasDispose)·{\n········this.#dispose?.(v,·k,·'evict')\n······}\n······if·(this.#hasDisposeAfter)·{\n········this.#disposed?.push([v,·k,·'evict'])\n······}\n····}\n····this.#removeItemSize(head)\n····if·(this.#autopurgeTimers?.[head])·{\n······clearTimeout(this.#autopurgeTimers[head])\n······this.#autopurgeTimers[head]·=·undefined\n····}\n····//·if·we·aren't·about·to·use·the·index,·then·null·these·out\n····if·(free)·{\n······this.#keyList[head]·=·undefined\n······this.#valList[head]·=·undefined\n······this.#free.push(head)\n····}\n····if·(this.#size·===·1)·{\n······this.#head·=·this.#tail·=·0·as·Index\n······this.#free.length·=·0\n····}·else·{\n······this.#head·=·this.#next[head]·as·Index\n····}\n····this.#keyMap.delete(k)\n····this.#size--\n····return·head\n··}\n\n··/**\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of·use.\n···*·Will·return·false·if·the·item·is·stale,·even·though·it·is·technically\n···*·in·the·cache.\n···*\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of\n···*·use.·Age·is·updated·if·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set\n···*·to·`true`·in·either·the·options·or·the·constructor.\n···*\n···*·Will·return·`false`·if·the·item·is·stale,·even·though·it·is·technically·in\n···*·the·cache.·The·difference·can·be·determined·(if·it·matters)·by·using·a\n···*·`status`·argument,·and·inspecting·the·`has`·field.\n···*\n···*·Will·not·update·item·age·unless\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set.\n···*/\n··has(k:·K,·hasOptions:·LRUCache.HasOptions<K,·V,·FC>·=·{})·{\n····const·{·updateAgeOnHas·=·this.updateAgeOnHas,·status·}·=·hasOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·v·=·this.#valList[index]\n······if·(\n········this.#isBackgroundFetch(v)·&&\n········v.__staleWhileFetching·===·undefined\n······)·{\n········return·false\n······}\n······if·(!this.#isStale(index))·{\n········if·(updateAgeOnHas)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·{\n··········status.has·=·'hit'\n··········this.#statusTTL(status,·index)\n········}\n········return·true\n······}·else·if·(status)·{\n········status.has·=·'stale'\n········this.#statusTTL(status,·index)\n······}\n····}·else·if·(status)·{\n······status.has·=·'miss'\n····}\n····return·false\n··}\n\n··/**\n···*·Like·{@link·LRUCache#get}·but·doesn't·update·recency·or·delete·stale\n···*·items.\n···*\n···*·Returns·`undefined`·if·the·item·is·stale,·unless\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·set.\n···*/\n··peek(k:·K,·peekOptions:·LRUCache.PeekOptions<K,·V,·FC>·=·{})·{\n····const·{·allowStale·=·this.allowStale·}·=·peekOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined·||·(!allowStale·&&·this.#isStale(index)))·{\n······return\n····}\n····const·v·=·this.#valList[index]\n····//·either·stale·and·allowed,·or·forcing·a·refresh·of·non-stale·value\n····return·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n··}\n\n··#backgroundFetch(\n····k:·K,\n····index:·Index·|·undefined,\n····options:·LRUCache.FetchOptions<K,·V,·FC>,\n····context:·any,\n··):·BackgroundFetch<V>·{\n····const·v·=·index·===·undefined·?·undefined·:·this.#valList[index]\n····if·(this.#isBackgroundFetch(v))·{\n······return·v\n····}\n\n····const·ac·=·new·AC()\n····const·{·signal·}·=·options\n····//·when/if·our·AC·signals,·then·stop·listening·to·theirs.\n····signal?.addEventListener('abort',·()·=>·ac.abort(signal.reason),·{\n······signal:·ac.signal,\n····})\n\n····const·fetchOpts·=·{\n······signal:·ac.signal,\n······options,\n······context,\n····}\n\n····const·cb·=·(v:·V·|·undefined,·updateCache·=·false):·V·|·undefined·=>·{\n······const·{·aborted·}·=·ac.signal\n······const·ignoreAbort·=·options.ignoreFetchAbort·&&·v·!==·undefined\n······const·proceed·=·options.ignoreFetchAbort·||\n········!!(options.allowStaleOnFetchAbort·&&·v·!==·undefined)\n······if·(options.status)·{\n········if·(aborted·&&·!updateCache)·{\n··········options.status.fetchAborted·=·true\n··········options.status.fetchErr[·...·truncated·by·diffoscope;·len:·2046,·SHA:·bc26851e544864912e306c8a65e2ad2d112546bf99737e3236751c8c73b882ef·...·]·bf.__staleWhileFetching·===·undefined\n········if·(del)·{\n··········this.#delete(k,·'fetch')\n········}·else·if·(!allowStaleAborted)·{\n··········//·still·replace·the·*promise*·with·the·stale·value,\n··········//·since·we·are·done·with·the·promise·at·this·point.\n··········//·leave·it·untouched·if·we're·still·waiting·for·an\n··········//·aborted·background·fetch·that·hasn't·yet·returned.\n··········this.#valList[index·as·Index]·=·bf.__staleWhileFetching\n········}\n······}\n······if·(allowStale)·{\n········if·(options.status·&&·bf.__staleWhileFetching·!==·undefined)·{\n··········options.status.returnedStale·=·true\n········}\n········return·bf.__staleWhileFetching\n······}·else·if·(bf.__returned·===·bf)·{\n········throw·er\n······}\n····}\n\n····const·pcall·=·(\n······res:·(v:·V·|·undefined)·=>·void,\n······rej:·(e:·any)·=>·void,\n····)·=>·{\n······const·fmp·=·this.#fetchMethod?.(k,·v,·fetchOpts)\n······if·(fmp·&&·fmp·instanceof·Promise)·{\n········fmp.then(v·=>·res(v·===·undefined·?·undefined·:·v),·rej)\n······}\n······//·ignored,·we·go·until·we·finish,·regardless.\n······//·defer·check·until·we·are·actually·aborting,\n······//·so·fetchMethod·can·override.\n······ac.signal.addEventListener('abort',·()·=>·{\n········if·(!options.ignoreFetchAbort·||·options.allowStaleOnFetchAbort)·{\n··········res(undefined)\n··········//·when·it·eventually·resolves,·update·the·cache.\n··········if·(options.allowStaleOnFetchAbort)·{\n············res·=·v·=>·cb(v,·true)\n··········}\n········}\n······})\n····}\n\n····if·(options.status)·options.status.fetchDispatched·=·true\n····const·p·=·new·Promise(pcall).then(cb,·eb)\n····const·bf:·BackgroundFetch<V>·=·Object.assign(p,·{\n······__abortController:·ac,\n······__staleWhileFetching:·v,\n······__returned:·undefined,\n····})\n\n····if·(index·===·undefined)·{\n······//·internal,·don't·expose·status.\n······this.set(k,·bf,·{·...fetchOpts.options,·status:·undefined·})\n······index·=·this.#keyMap.get(k)\n····}·else·{\n······this.#valList[index]·=·bf\n····}\n····return·bf\n··}\n\n··#isBackgroundFetch(p:·any):·p·is·BackgroundFetch<V>·{\n····if·(!this.#hasFetchMethod)·return·false\n····const·b·=·p·as·BackgroundFetch<V>\n····return·(\n······!!b·&&\n······b·instanceof·Promise·&&\n······b.hasOwnProperty('__staleWhileFetching')·&&\n······b.__abortController·instanceof·AC\n····)\n··}\n\n··/**\n···*·Make·an·asynchronous·cached·fetch·using·the\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·function.\n···*\n···*·If·the·value·is·in·the·cache·and·not·stale,·then·the·returned\n···*·Promise·resolves·to·the·value.\n···*\n···*·If·not·in·the·cache,·or·beyond·its·TTL·staleness,·then\n···*·`fetchMethod(key,·staleValue,·{·options,·signal,·context·})`·is\n···*·called,·and·the·value·returned·will·be·added·to·the·cache·once\n···*·resolved.\n···*\n···*·If·called·with·`allowStale`,·and·an·asynchronous·fetch·is\n···*·currently·in·progress·to·reload·a·stale·value,·then·the·former\n···*·stale·value·will·be·returned.\n···*\n···*·If·called·with·`forceRefresh`,·then·the·cached·item·will·be\n···*·re-fetched,·even·if·it·is·not·stale.·However,·if·`allowStale`·is·also\n···*·set,·then·the·old·value·will·still·be·returned.·This·is·useful\n···*·in·cases·where·you·want·to·force·a·reload·of·a·cached·value.·If\n···*·a·background·fetch·is·already·in·progress,·then·`forceRefresh`\n···*·has·no·effect.\n···*\n···*·If·multiple·fetches·for·the·same·key·are·issued,·then·they·will·all·be\n···*·coalesced·into·a·single·call·to·fetchMethod.\n···*\n···*·Note·that·this·means·that·handling·options·such·as\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort},\n···*·{@link·LRUCache.FetchOptions.signal},\n···*·and·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}·will·be\n···*·determined·by·the·FIRST·fetch()·call·for·a·given·key.\n···*\n···*·This·is·a·known·(fixable)·shortcoming·which·will·be·addresed·on·when\n···*·someone·complains·about·it,·as·the·fix·would·involve·added·complexity·and\n···*·may·not·be·worth·the·costs·for·this·edge·case.\n···*\n···*·If·{@link·LRUCache.OptionsBase.fetchMethod}·is·not·specified,·then·this·is\n···*·effectively·an·alias·for·`Promise.resolve(cache.get(key))`.\n···*\n···*·When·the·fetch·method·resolves·to·a·value,·if·the·fetch·has·not\n···*·been·aborted·due·to·deletion,·eviction,·or·being·overwritten,\n···*·then·it·is·added·to·the·cache·using·the·options·provided.\n···*\n···*·If·the·key·is·evicted·or·deleted·before·the·`fetchMethod`\n···*·resolves,·then·the·AbortSignal·passed·to·the·`fetchMethod`·will\n···*·receive·an·`abort`·event,·and·the·promise·returned·by·`fetch()`\n···*·will·reject·with·the·reason·for·the·abort.\n···*\n···*·If·a·`signal`·is·passed·to·the·`fetch()`·call,·then·aborting·the\n···*·signal·will·abort·the·fetch·and·cause·the·`fetch()`·promise·to\n···*·reject·with·the·reason·provided.\n···*\n···*·**Setting·`context`**\n···*\n···*·If·an·`FC`·type·is·set·to·a·type·other·than·`unknown`,·`void`,·or\n···*·`undefined`·in·the·{@link·LRUCache}·constructor,·then·all\n···*·calls·to·`cache.fetch()`·_must_·provide·a·`context`·option.·If\n···*·set·to·`undefined`·or·`void`,·then·calls·to·fetch·_must·not_\n···*·provide·a·`context`·option.\n···*\n···*·The·`context`·param·allows·you·to·provide·arbitrary·data·that\n···*·might·be·relevant·in·the·course·of·fetching·the·data.·It·is·only\n···*·relevant·for·the·course·of·a·single·`fetch()`·operation,·and\n···*·discarded·afterwards.\n···*\n···*·**Note:·`fetch()`·calls·are·inflight-unique**\n···*\n···*·If·you·call·`fetch()`·multiple·times·with·the·same·key·value,\n···*·then·every·call·after·the·first·will·resolve·on·the·same\n···*·promise<sup>1</sup>,\n···*·_even·if·they·have·different·settings·that·would·otherwise·change\n···*·the·behavior·of·the·fetch_,·such·as·`noDeleteOnFetchRejection`\n···*·or·`ignoreFetchAbort`.\n···*\n···*·In·most·cases,·this·is·not·a·problem·(in·fact,·only·fetching\n···*·something·once·is·what·you·probably·want,·if·you're·caching·in\n···*·the·first·place).·If·you·are·changing·the·fetch()·options\n···*·dramatically·between·runs,·there's·a·good·chance·that·you·might\n···*·be·trying·to·fit·divergent·semantics·into·a·single·object,·and\n···*·would·be·better·off·with·multiple·cache·instances.\n···*\n···*·**1**:·Ie,·they're·not·the·\"same·Promise\",·but·they·resolve·at\n···*·the·same·time,·because·they're·both·waiting·on·the·same\n···*·underlying·fetchMethod·response.\n···*/\n\n··fetch(\n····k:·K,\n····fetchOptions:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n··):·Promise<undefined·|·V>\n\n··//·this·overload·not·allowed·if·context·is·required\n··fetch(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····fetchOptions?:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·never,\n··):·Promise<undefined·|·V>\n\n··async·fetch(\n····k:·K,\n····fetchOptions:·LRUCache.FetchOptions<K,·V,·FC>·=·{},\n··):·Promise<undefined·|·V>·{\n····const·{\n······//·get·options\n······allowStale·=·this.allowStale,\n······updateAgeOnGet·=·this.updateAgeOnGet,\n······noDeleteOnStaleGet·=·this.noDeleteOnStaleGet,\n······//·set·options\n······ttl·=·this.ttl,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······size·=·0,\n······sizeCalculation·=·this.sizeCalculation,\n······noUpdateTTL·=·this.noUpdateTTL,\n······//·fetch·exclusive·options\n······noDeleteOnFetchRejection·=·this.noDeleteOnFetchRejection,\n······allowStaleOnFetchRejection·=·this.allowStaleOnFetchRejection,\n······ignoreFetchAbort·=·this.ignoreFetchAbort,\n······allowStaleOnFetchAbort·=·this.allowStaleOnFetchAbort,\n······context,\n······forceRefresh·=·false,\n······status,\n······signal,\n····}·=·fetchOptions\n\n····if·(!this.#hasFetchMethod)·{\n······if·(status)·status.fetch·=·'get'\n······return·this.get(k,·{\n········allowStale,\n········updateAgeOnGet,\n········noDeleteOnStaleGet,\n········status,\n······})\n····}\n\n····const·options·=·{\n······allowStale,\n······updateAgeOnGet,\n······noDeleteOnStaleGet,\n······ttl,\n······noDisposeOnSet,\n······size,\n······sizeCalculation,\n······noUpdateTTL,\n······noDeleteOnFetchRejection,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······status,\n······signal,\n····}\n\n····let·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······if·(status)·status.fetch·=·'miss'\n······const·p·=·this.#backgroundFetch(k,·index,·options,·context)\n······return·(p.__returned·=·p)\n····}·else·{\n······//·in·cache,·maybe·already·fetching\n······const·v·=·this.#valList[index]\n······if·(this.#isBackgroundFetch(v))·{\n········const·stale·=·allowStale·&&·v.__staleWhileFetching·!==·undefined\n········if·(status)·{\n··········status.fetch·=·'inflight'\n··········if·(stale)·status.returnedStale·=·true\n········}\n········return·stale·?·v.__staleWhileFetching·:·(v.__returned·=·v)\n······}\n\n······//·if·we·force·a·refresh,·that·means·do·NOT·serve·the·cached·value,\n······//·unless·we·are·already·in·the·process·of·refreshing·the·cache.\n······const·isStale·=·this.#isStale(index)\n······if·(!forceRefresh·&&·!isStale)·{\n········if·(status)·status.fetch·=·'hit'\n········this.#moveToTail(index)\n········if·(updateAgeOnGet)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·this.#statusTTL(status,·index)\n········return·v\n······}\n\n······//·ok,·it·is·stale·or·a·forced·refresh,·and·not·already·fetching.\n······//·refresh·the·cache.\n······const·p·=·this.#backgroundFetch(k,·index,·options,·context)\n······const·hasStale·=·p.__staleWhileFetching·!==·undefined\n······const·staleVal·=·hasStale·&&·allowStale\n······if·(status)·{\n········status.fetch·=·isStale·?·'stale'·:·'refresh'\n········if·(staleVal·&&·isStale)·status.returnedStale·=·true\n······}\n······return·staleVal·?·p.__staleWhileFetching·:·(p.__returned·=·p)\n····}\n··}\n\n··/**\n···*·In·some·cases,·`cache.fetch()`·may·resolve·to·`undefined`,·either·because\n···*·a·{@link·LRUCache.OptionsBase#fetchMethod}·was·not·provided·(turning\n···*·`cache.fetch(k)`·into·just·an·async·wrapper·around·`cache.get(k)`)·or\n···*·because·`ignoreFetchAbort`·was·specified·(either·to·the·constructor·or\n···*·in·the·{@link·LRUCache.FetchOptions}).·Also,·the\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·may·return·`undefined`·or·`void`,·making\n···*·the·test·even·more·complicated.\n···*\n···*·Because·inferring·the·cases·where·`undefined`·might·be·returned·are·so\n···*·cumbersome,·but·testing·for·`undefined`·can·also·be·annoying,·this·method\n···*·can·be·used,·which·will·reject·if·`this.fetch()`·resolves·to·undefined.\n···*/\n··forceFetch(\n····k:·K,\n····fetchOptions:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n··):·Promise<V>\n··//·this·overload·not·allowed·if·context·is·required\n··forceFetch(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····fetchOptions?:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·never,\n··):·Promise<V>\n··async·forceFetch(\n····k:·K,\n····fetchOptions:·LRUCache.FetchOptions<K,·V,·FC>·=·{},\n··):·Promise<V>·{\n····const·v·=·await·this.fetch(\n······k,\n······fetchOptions·as·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n······:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n······:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n····)\n····if·(v·===·undefined)·throw·new·Error('fetch()·returned·undefined')\n····return·v\n··}\n\n··/**\n···*·If·the·key·is·found·in·the·cache,·then·this·is·equivalent·to\n···*·{@link·LRUCache#get}.·If·not,·in·the·cache,·then·calculate·the·value·using\n···*·the·{@link·LRUCache.OptionsBase.memoMethod},·and·add·it·to·the·cache.\n···*\n···*·If·an·`FC`·type·is·set·to·a·type·other·than·`unknown`,·`void`,·or\n···*·`undefined`·in·the·LRUCache·constructor,·then·all·calls·to·`cache.memo()`\n···*·_must_·provide·a·`context`·option.·If·set·to·`undefined`·or·`void`,·then\n···*·calls·to·memo·_must·not_·provide·a·`context`·option.\n···*\n···*·The·`context`·param·allows·you·to·provide·arbitrary·data·that·might·be\n···*·relevant·in·the·course·of·fetching·the·data.·It·is·only·relevant·for·the\n···*·course·of·a·single·`memo()`·operation,·and·discarded·afterwards.\n···*/\n··memo(\n····k:·K,\n····memoOptions:·unknown·extends·FC·?·LRUCache.MemoOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.MemoOptionsNoContext<K,·V>\n····:·LRUCache.MemoOptionsWithContext<K,·V,·FC>,\n··):·V\n··//·this·overload·not·allowed·if·context·is·required\n··memo(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····memoOptions?:·unknown·extends·FC·?·LRUCache.MemoOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.MemoOptionsNoContext<K,·V>\n····:·never,\n··):·V\n··memo(k:·K,·memoOptions:·LRUCache.MemoOptions<K,·V,·FC>·=·{})·{\n····const·memoMethod·=·this.#memoMethod\n····if·(!memoMethod)·{\n······throw·new·Error('no·memoMethod·provided·to·constructor')\n····}\n····const·{·context,·forceRefresh,·...options·}·=·memoOptions\n····const·v·=·this.get(k,·options)\n····if·(!forceRefresh·&&·v·!==·undefined)·return·v\n····const·vv·=·memoMethod(k,·v,·{\n······options,\n······context,\n····}·as·LRUCache.MemoizerOptions<K,·V,·FC>)\n····this.set(k,·vv,·options)\n····return·vv\n··}\n\n··/**\n···*·Return·a·value·from·the·cache.·Will·update·the·recency·of·the·cache\n···*·entry·found.\n···*\n···*·If·the·key·is·not·found,·get()·will·return·`undefined`.\n···*/\n··get(k:·K,·getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{})·{\n····const·{\n······allowStale·=·this.allowStale,\n······updateAgeOnGet·=·this.updateAgeOnGet,\n······noDeleteOnStaleGet·=·this.noDeleteOnStaleGet,\n······status,\n····}·=·getOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·value·=·this.#valList[index]\n······const·fetching·=·this.#isBackgroundFetch(value)\n······if·(status)·this.#statusTTL(status,·index)\n······if·(this.#isStale(index))·{\n········if·(status)·status.get·=·'stale'\n········//·delete·only·if·not·an·in-flight·background·fetch\n········if·(!fetching)·{\n··········if·(!noDeleteOnStaleGet)·{\n············this.#delete(k,·'expire')\n··········}\n··········if·(status·&&·allowStale)·status.returnedStale·=·true\n··········return·allowStale·?·value·:·undefined\n········}·else·{\n··········if·(\n············status·&&\n············allowStale·&&\n············value.__staleWhileFetching·!==·undefined\n··········)·{\n············status.returnedStale·=·true\n··········}\n··········return·allowStale·?·value.__staleWhileFetching·:·undefined\n········}\n······}·else·{\n········if·(status)·status.get·=·'hit'\n········//·if·we're·currently·fetching·it,·we·don't·actually·have·it·yet\n········//·it's·not·stale,·which·means·this·isn't·a·staleWhileRefetching.\n········//·If·it's·not·stale,·and·fetching,·AND·has·a·__staleWhileFetching\n········//·value,·then·that·means·the·user·fetched·with·{forceRefresh:true},\n········//·so·it's·safe·to·return·that·value.\n········if·(fetching)·{\n··········return·value.__staleWhileFetching\n········}\n········this.#moveToTail(index)\n········if·(updateAgeOnGet)·{\n··········this.#updateItemAge(index)\n········}\n········return·value\n······}\n····}·else·if·(status)·{\n······status.get·=·'miss'\n····}\n··}\n\n··#connect(p:·Index,·n:·Index)·{\n····this.#prev[n]·=·p\n····this.#next[p]·=·n\n··}\n\n··#moveToTail(index:·Index):·void·{\n····//·if·tail·already,·nothing·to·do\n····//·if·head,·move·head·to·next[index]\n····//·else\n····//···move·next[prev[index]]·to·next[index]·(head·has·no·prev)\n····//···move·prev[next[index]]·to·prev[index]\n····//·prev[index]·=·tail\n····//·next[tail]·=·index\n····//·tail·=·index\n····if·(index·!==·this.#tail)·{\n······if·(index·===·this.#head)·{\n········this.#head·=·this.#next[index]·as·Index\n······}·else·{\n········this.#connect(\n··········this.#prev[index]·as·Index,\n··········this.#next[index]·as·Index,\n········)\n······}\n······this.#connect(this.#tail,·index)\n······this.#tail·=·index\n····}\n··}\n\n··/**\n···*·Deletes·a·key·out·of·the·cache.\n···*\n···*·Returns·true·if·the·key·was·deleted,·false·otherwise.\n···*/\n··delete(k:·K)·{\n····return·this.#delete(k,·'delete')\n··}\n\n··#delete(k:·K,·reason:·LRUCache.DisposeReason)·{\n····let·deleted·=·false\n····if·(this.#size·!==·0)·{\n······const·index·=·this.#keyMap.get(k)\n······if·(index·!==·undefined)·{\n········if·(this.#autopurgeTimers?.[index])·{\n··········clearTimeout(this.#autopurgeTimers?.[index])\n··········this.#autopurgeTimers[index]·=·undefined\n········}\n········deleted·=·true\n········if·(this.#size·===·1)·{\n··········this.#clear(reason)\n········}·else·{\n··········this.#removeItemSize(index)\n··········const·v·=·this.#valList[index]\n··········if·(this.#isBackgroundFetch(v))·{\n············v.__abortController.abort(new·Error('deleted'))\n··········}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(v·as·V,·k,·reason)\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([v·as·V,·k,·reason])\n············}\n··········}\n··········this.#keyMap.delete(k)\n··········this.#keyList[index]·=·undefined\n··········this.#valList[index]·=·undefined\n··········if·(index·===·this.#tail)·{\n············this.#tail·=·this.#prev[index]·as·Index\n··········}·else·if·(index·===·this.#head)·{\n············this.#head·=·this.#next[index]·as·Index\n··········}·else·{\n············const·pi·=·this.#prev[index]·as·number\n············this.#next[pi]·=·this.#next[index]·as·number\n············const·ni·=·this.#next[index]·as·number\n············this.#prev[ni]·=·this.#prev[index]·as·number\n··········}\n··········this.#size--\n··········this.#free.push(index)\n········}\n······}\n····}\n····if·(this.#hasDisposeAfter·&&·this.#disposed?.length)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Clear·the·cache·entirely,·throwing·away·all·values.\n···*/\n··clear()·{\n····return·this.#clear('delete')\n··}\n··#clear(reason:·LRUCache.DisposeReason)·{\n····for·(const·index·of·this.#rindexes({·allowStale:·true·}))·{\n······const·v·=·this.#valList[index]\n······if·(this.#isBackgroundFetch(v))·{\n········v.__abortController.abort(new·Error('deleted'))\n······}·else·{\n········const·k·=·this.#keyList[index]\n········if·(this.#hasDispose)·{\n··········this.#dispose?.(v·as·V,·k·as·K,·reason)\n········}\n········if·(this.#hasDisposeAfter)·{\n··········this.#disposed?.push([v·as·V,·k·as·K,·reason])\n········}\n······}\n····}\n\n····this.#keyMap.clear()\n····this.#valList.fill(undefined)\n····this.#keyList.fill(undefined)\n····if·(this.#ttls·&&·this.#starts)·{\n······this.#ttls.fill(0)\n······this.#starts.fill(0)\n······for·(const·t·of·this.#autopurgeTimers·??·[])·{\n········if·(t·!==·undefined)·clearTimeout(t)\n······}\n······this.#autopurgeTimers?.fill(undefined)\n····}\n····if·(this.#sizes)·{\n······this.#sizes.fill(0)\n····}\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free.length·=·0\n····this.#calculatedSize·=·0\n····this.#size·=·0\n····if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n··}\n}\n" |
| 178 | ····], | 179 | ····], |
| 179 | ····"version":·3 | 180 | ····"version":·3 |
| 180 | } | 181 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.d.ts", | 2 | ····"file":·"index.d.ts", |
| 3 | ····"mappings":·"AAAA;;GAEG;AAMH,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,MAAM,CAAA;CAAE,CAAA;AA0FxC,QAAA,MAAM,IAAI,eAAiB,CAAA;AAC3B,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG;IAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAA;CAAE,CAAA;AAC5D,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG;IAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAAA;AAKzD,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAA;AAC9D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,EAAE,CAAA;AAoB9C,cAAM,SAAU,SAAQ,KAAK,CAAC,MAAM,CAAC;gBACvB,IAAI,EAAE,MAAM;CAIzB;AACD,YAAY,EAAE,SAAS,EAAE,CAAA;AACzB,YAAY,EAAE,KAAK,EAAE,CAAA;AAErB,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,KAAK,EAAE,CAAA;AACvC,cAAM,KAAK;;IACT,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IAGd,MAAM,CAAC,MAAM,CA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,IAAI,CACF,CAAC,EAAE,CAAC,EACJ,WAAW,EAAE,OAAO,SAAS,EAAE,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAC9D,EAAE,SAAS,SAAS,GAAG,IAAI,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,GACjE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAC1C,CAAC;IAEJ,IAAI,CACF,CAAC,EAAE,OAAO,SAAS,EAAE,GAAG,CAAC,GACvB,EAAE,SAAS,SAAS,GAAG,IAAI,GAAG,CAAC,GAC/B,KAAK,EACP,WAAW,CAAC,EAAE,OAAO,SAAS,EAAE,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAC/D,EAAE,SAAS,SAAS,GAAG,IAAI,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,GACjE,KAAK,GACN,CAAC;IAiBJ;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,GAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAM;IAgFxD;;;;OAIG;IACH,MAAM,CAAC,CAAC,EAAE,CAAC;IAyDX;;OAEG;IACH,KAAK;CA8CN", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 2550, 1018 lines modified | Offset 2550, 1032 lines modified | ||
| 00009f50:·2020·636f·6e73·7420·7b20·6162·6f72·7465····const·{·aborte | 00009f50:·2020·636f·6e73·7420·7b20·6162·6f72·7465····const·{·aborte | ||
| 00009f60:·6420·7d20·3d20·6163·2e73·6967·6e61·6c3b··d·}·=·ac.signal; | 00009f60:·6420·7d20·3d20·6163·2e73·6967·6e61·6c3b··d·}·=·ac.signal; | ||
| 00009f70:·0a20·2020·2020·2020·2020·2020·2063·6f6e··.············con | 00009f70:·0a20·2020·2020·2020·2020·2020·2063·6f6e··.············con | ||
| 00009f80:·7374·2069·676e·6f72·6541·626f·7274·203d··st·ignoreAbort·= | 00009f80:·7374·2069·676e·6f72·6541·626f·7274·203d··st·ignoreAbort·= | ||
| 00009f90:·206f·7074·696f·6e73·2e69·676e·6f72·6546···options.ignoreF | 00009f90:·206f·7074·696f·6e73·2e69·676e·6f72·6546···options.ignoreF | ||
| 00009fa0:·6574·6368·4162·6f72·7420·2626·2076·2021··etchAbort·&&·v·! | 00009fa0:·6574·6368·4162·6f72·7420·2626·2076·2021··etchAbort·&&·v·! | ||
| 00009fb0:·3d3d·2075·6e64·6566·696e·6564·3b0a·2020··==·undefined;.·· | 00009fb0:·3d3d·2075·6e64·6566·696e·6564·3b0a·2020··==·undefined;.·· | ||
| 00009fc0:·2020·2020·2020·2020·2020·636f·6e73·7420············const· | |||
| 00009fd0:·7072·6f63·6565·6420·3d20·6f70·7469·6f6e··proceed·=·option | |||
| 00009fe0:·732e·6967·6e6f·7265·4665·7463·6841·626f··s.ignoreFetchAbo | |||
| 00009ff0:·7274·207c·7c0a·2020·2020·2020·2020·2020··rt·||.·········· | |||
| 0000a000:·2020·2020·2020·2121·286f·7074·696f·6e73········!!(options | |||
| 0000a010:·2e61·6c6c·6f77·5374·616c·654f·6e46·6574··.allowStaleOnFet | |||
| 0000a020:·6368·4162·6f72·7420·2626·2076·2021·3d3d··chAbort·&&·v·!== | |||
| 0000a030:·2075·6e64·6566·696e·6564·293b·0a20·2020···undefined);.··· | |||
| 0000 | 0000a040:·2020·2020·2020·2020·2069·6620·286f·7074···········if·(opt | ||
| 0000 | 0000a050:·696f·6e73·2e73·7461·7475·7329·207b·0a20··ions.status)·{.· | ||
| 0000 | 0000a060:·2020·2020·2020·2020·2020·2020·2020·2069·················i | ||
| 00009ff0:·6966·2028·6162·6f72·7465·6420·2626·2021··if·(aborted·&&·! | |||
| 0000a0 | 0000a070:·6620·2861·626f·7274·6564·2026·2620·2175··f·(aborted·&&·!u | ||
| 0000a080:·7064·6174·6543·6163·6865·2920·7b0a·2020··pdateCache)·{.·· | |||
| 0000a0 | 0000a090:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 0000a020:·2020·206f·7074·696f·6e73·2e73·7461·7475·····options.statu | |||
| 0000a030:·732e·6665·7463·6841·626f·7274·6564·203d··s.fetchAborted·= | |||
| 0000a0 | 0000a0a0:·2020·6f70·7469·6f6e·732e·7374·6174·7573····options.status | ||
| 0000a0b0:·2e66·6574·6368·4162·6f72·7465·6420·3d20··.fetchAborted·=· | |||
| 0000a0c0:·7472·7565·3b0a·2020·2020·2020·2020·2020··true;.·········· | |||
| 0000a0 | 0000a0d0:·2020·2020·2020·2020·2020·6f70·7469·6f6e············option | ||
| 0000a060:·6e73·2e73·7461·7475·732e·6665·7463·6845··ns.status.fetchE | |||
| 0000a0 | 0000a0e0:·732e·7374·6174·7573·2e66·6574·6368·4572··s.status.fetchEr | ||
| 0000a0f0:·726f·7220·3d20·6163·2e73·6967·6e61·6c2e··ror·=·ac.signal. | |||
| 0000a | 0000a100:·7265·6173·6f6e·3b0a·2020·2020·2020·2020··reason;.········ | ||
| 0000a | 0000a110:·2020·2020·2020·2020·2020·2020·6966·2028··············if·( | ||
| 0000a | 0000a120:·6967·6e6f·7265·4162·6f72·7429·0a20·2020··ignoreAbort).··· | ||
| 0000a | 0000a130:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 0000a0c0:·2020·2020·2020·6f70·7469·6f6e·732e·7374········options.st | |||
| 0000a0d0:·6174·7573·2e66·6574·6368·4162·6f72·7449··atus.fetchAbortI | |||
| 0000a | 0000a140:·2020·2020·206f·7074·696f·6e73·2e73·7461·······options.sta | ||
| 0000a150:·7475·732e·6665·7463·6841·626f·7274·4967··tus.fetchAbortIg | |||
| 0000a160:·6e6f·7265·6420·3d20·7472·7565·3b0a·2020··nored·=·true;.·· | |||
| 0000a | 0000a170:·2020·2020·2020·2020·2020·2020·2020·7d0a················}. | ||
| 0000a1 | 0000a180:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 0000a1 | 0000a190:·656c·7365·207b·0a20·2020·2020·2020·2020··else·{.········· | ||
| 0000a1 | 0000a1a0:·2020·2020·2020·2020·2020·206f·7074·696f·············optio | ||
| 0000a130:·6f6e·732e·7374·6174·7573·2e66·6574·6368··ons.status.fetch | |||
| 0000a1 | 0000a1b0:·6e73·2e73·7461·7475·732e·6665·7463·6852··ns.status.fetchR | ||
| 0000a1c0:·6573·6f6c·7665·6420·3d20·7472·7565·3b0a··esolved·=·true;. | |||
| 0000a1 | 0000a1d0:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 0000a160:·207d·0a20·2020·2020·2020·2020·2020·207d···}.············} | |||
| 0000a170:·0a20·2020·2020·2020·2020·2020·2069·6620··.············if· | |||
| 0000a180:·2861·626f·7274·6564·2026·2620·2169·676e··(aborted·&&·!ign | |||
| 0000a190:·6f72·6541·626f·7274·2026·2620·2175·7064··oreAbort·&&·!upd | |||
| 0000a1a0:·6174·6543·6163·6865·2920·7b0a·2020·2020··ateCache)·{.···· | |||
| 0000a1b0:·2020·2020·2020·2020·2020·2020·7265·7475··············retu | |||
| 0000a1c0:·726e·2066·6574·6368·4661·696c·2861·632e··rn·fetchFail(ac. | |||
| 0000a1d0:·7369·676e·616c·2e72·6561·736f·6e29·3b0a··signal.reason);. | |||
| 0000a1e0:·2020·2020·2020·2020·2020·2020·7d0a· | 0000a1e0:·7d0a·2020·2020·2020·2020·2020·2020·7d0a··}.············}. | ||
| 0000a1f0:·2020·2020·2020·2020·2020·2f2f·2065·6974············//·eit | |||
| 0000a200:·6865·7220·7765·2064·6964·6e27·7420·6162··her·we·didn't·ab | |||
| 0000a210:·6f72·742c·2061·6e64·2061·7265·2073·7469··ort,·and·are·sti | |||
| 0000a220:·6c6c·2068·6572·652c·206f·7220·7765·2064··ll·here,·or·we·d | |||
| 0000a230:·6964·2c20·616e·6420·6967·6e6f·7265·640a··id,·and·ignored. | |||
| 0000a240:·2020·2020·2020·2020·2020·2020·636f·6e73··············cons | |||
| 0000a250:·7420·6266·203d·2070·3b0a·2020·2020·2020··t·bf·=·p;.······ | |||
| 0000a260:·2020·2020·2020·2f2f·2069·6620·6e6f·7468········//·if·noth | |||
| 0000a270:·696e·6720·656c·7365·2068·6173·2062·6565··ing·else·has·bee | |||
| 0000a280:·6e20·7772·6974·7465·6e20·7468·6572·6520··n·written·there· | |||
| 0000a290:·6275·7420·7765·2772·6520·7365·7420·746f··but·we're·set·to | |||
| 0000a2a0:·2075·7064·6174·6520·7468·650a·2020·2020···update·the.···· | |||
| 0000a2b0:·2020·2020·2020·2020·2f2f·2063·6163·6865··········//·cache | |||
| 0000a2c0:·2061·6e64·2069·676e·6f72·6520·7468·6520···and·ignore·the· | |||
| 0000a2d0:·6162·6f72·742c·206f·7220·6966·2069·7427··abort,·or·if·it' | |||
| 0000a2e0:·7320·7374·696c·6c20·7065·6e64·696e·6720··s·still·pending· | |||
| 0000a2f0:·6f6e·2074·6869·7320·7370·6563·6966·6963··on·this·specific | |||
| 0000a300:·0a20·2020·2020·2020·2020·2020·202f·2f20··.············//· | |||
| 0000a310:·6261·636b·6772·6f75·6e64·2072·6571·7565··background·reque | |||
| 0000a320:·7374·2c20·7468·656e·2077·7269·7465·2069··st,·then·write·i | |||
| 0000a330:·7420·746f·2074·6865·2063·6163·6865·2e0a··t·to·the·cache.. | |||
| 0000a340:·2020·2020·2020·2020·2020·2020·636f·6e73··············cons | |||
| 0000a350:·7420·766c·203d·2074·6869·732e·2376·616c··t·vl·=·this.#val | |||
| 0000a360:·4c69·7374·5b69·6e64·6578·5d3b·0a20·2020··List[index];.··· | |||
| 0000a370:·2020·2020·2020·2020·2069·6620·2876·6c20···········if·(vl· | |||
| 0000a380:·3d3d·3d20·7020·7c7c·2028·6967·6e6f·7265··===·p·||·(ignore | |||
| 0000a390:·4162·6f72·7420·2626·2075·7064·6174·6543··Abort·&&·updateC | |||
| 0000a3a0:·6163·6865·2026·2620·766c·203d·3d3d·2075··ache·&&·vl·===·u | |||
| 0000a3b0:·6e64·6566·696e·6564·2929·207b·0a20·2020··ndefined))·{.··· | |||
| 0000a | 0000a1f0:·2020·2020·2020·2020·2020·2020·6966·2028··············if·( | ||
| 0000a200:·6162·6f72·7465·6420·2626·2021·6967·6e6f··aborted·&&·!igno | |||
| 0000a210:·7265·4162·6f72·7420·2626·2021·7570·6461··reAbort·&&·!upda | |||
| 0000a220:·7465·4361·6368·6529·207b·0a20·2020·2020··teCache)·{.····· | |||
| 0000a230:·2020·2020·2020·2020·2020·2072·6574·7572·············retur | |||
| 0000a240:·6e20·6665·7463·6846·6169·6c28·6163·2e73··n·fetchFail(ac.s | |||
| 0000a250:·6967·6e61·6c2e·7265·6173·6f6e·2c20·7072··ignal.reason,·pr | |||
| 0000a260:·6f63·6565·6429·3b0a·2020·2020·2020·2020··oceed);.········ | |||
| 0000a270:·2020·2020·7d0a·2020·2020·2020·2020·2020······}.·········· | |||
| 0000a280:·2020·2f2f·2065·6974·6865·7220·7765·2064····//·either·we·d | |||
| 0000a290:·6964·6e27·7420·6162·6f72·742c·2061·6e64··idn't·abort,·and | |||
| 0000a2a0:·2061·7265·2073·7469·6c6c·2068·6572·652c···are·still·here, | |||
| 0000a2b0:·206f·7220·7765·2064·6964·2c20·616e·6420···or·we·did,·and· | |||
| Max diff block lines reached; 129707/140637 bytes (92.23%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.js", | 2 | ····"file":·"index.js", |
| 3 | ····"mappings":·"AAAA;;GAEG;AAOH,MAAM,WAAW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,CAAC,KAAK,GAAG,CAAU,CAAA;QACvB,IAAI,CAAC,KAAK,GAAG,CAAU,CAAA;QACvB,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;QACrB,IAAI,CAAC,eAAe,GAAG,CAAC,CAAA;QACxB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAA;QACd,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAC5C,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAA;YACzB,IAAI,IAAmC,CAAA;YACvC,OAAO,CAAC,IAAI,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;gBAC5B,IAAI,CAAC,aAAa,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;YAC/B,CAAC;QACH,CAAC;IACH,CAAC;CACF", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"/**\n·*·@module·LRUCache\n·*/\n\n//·module-private·names·and·types\n//·this·provides·the·default·Perf·object·source.\n//·it·can·be·passed·in·via·configuration·to·override·it\n//·for·a·single·LRU·object.\nexport·type·Perf·=·{·now:·()·=>·number·}\nconst·defaultPerf:·Perf·=\n··(\n····typeof·performance·===·'object'·&&\n····performance·&&\n····typeof·performance.now·===·'function'\n··)·?\n····performance\n··:·Date\n\nconst·warned·=·new·Set<string>()\n\n//·either·a·function·or·a·class\ntype·ForC·=·((...a:·any[])·=>·any)·|·{·new·(...a:·any[]):·any·}\n\n/*·c8·ignore·start·*/\nconst·PROCESS·=·(\n··typeof·process·===·'object'·&&·!!process·?\n····process\n··:·{})·as·{·[k:·string]:·any·}\n/*·c8·ignore·start·*/\n\nconst·emitWarning·=·(\n··msg:·string,\n··type:·string,\n··code:·string,\n··fn:·ForC,\n)·=>·{\n··typeof·PROCESS.emitWarning·===·'function'·?\n····PROCESS.emitWarning(msg,·type,·code,·fn)\n··:·console.error(`[${code}]·${type}:·${msg}`)\n}\n\nlet·AC·=·globalThis.AbortController\nlet·AS·=·globalThis.AbortSignal\n\n/*·c8·ignore·start·*/\nif·(typeof·AC·===·'undefined')·{\n··//@ts-ignore\n··AS·=·class·AbortSignal·{\n····onabort?:·(...a:·any[])·=>·any\n····_onabort:·((...a:·any[])·=>·any)[]·=·[]\n····reason?:·any\n····aborted:·boolean·=·false\n····addEventListener(_:·string,·fn:·(...a:·any[])·=>·any)·{\n······this._onabort.push(fn)\n····}\n··}\n··//@ts-ignore\n··AC·=·class·AbortController·{\n····constructor()·{\n······warnACPolyfill()\n····}\n····signal·=·new·AS()\n····abort(reason:·any)·{\n······if·(this.signal.aborted)·return\n······//@ts-ignore\n······this.signal.reason·=·reason\n······//@ts-ignore\n······this.signal.aborted·=·true\n······//@ts-ignore\n······for·(const·fn·of·this.signal._onabort)·{\n········fn(reason)\n······}\n······this.signal.onabort?.(reason)\n····}\n··}\n··let·printACPolyfillWarning·=\n····PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING·!==·'1'\n··const·warnACPolyfill·=·()·=>·{\n····if·(!printACPolyfillWarning)·return\n····printACPolyfillWarning·=·false\n····emitWarning(\n······'AbortController·is·not·defined.·If·using·lru-cache·in·'·+\n········'node·14,·load·an·AbortController·polyfill·from·the·'·+\n········'`node-abort-controller`·package.·A·minimal·polyfill·is·'·+\n········'provided·for·use·by·LRUCache.fetch(),·but·it·should·not·be·'·+\n········'relied·upon·in·other·contexts·(eg,·passing·it·to·other·APIs·that·'·+\n········'use·AbortController/AbortSignal·might·have·undesirable·effects).·'·+\n········'You·may·disable·this·with·LRU_CACHE_IGNORE_AC_WARNING=1·in·the·env.',\n······'NO_ABORT_CONTROLLER',\n······'ENOTSUP',\n······warnACPolyfill,\n····)\n··}\n}\n/*·c8·ignore·stop·*/\n\nconst·shouldWarn·=·(code:·string)·=>·!warned.has(code)\n\nconst·TYPE·=·Symbol('type')\nexport·type·PosInt·=·number·&·{·[TYPE]:·'Positive·Integer'·}\nexport·type·Index·=·number·&·{·[TYPE]:·'LRUCache·Index'·}\n\nconst·isPosInt·=·(n:·any):·n·is·PosInt·=>\n··n·&&·n·===·Math.floor(n)·&&·n·>·0·&&·isFinite(n)\n\nexport·type·UintArray·=·Uint8Array·|·Uint16Array·|·Uint32Array\nexport·type·NumberArray·=·UintArray·|·number[]\n\n/*·c8·ignore·start·*/\n//·This·is·a·little·bit·ridiculous,·tbh.\n//·The·maximum·array·length·is·2^32-1·or·thereabouts·on·most·JS·impls.\n//·And·well·before·that·point,·you're·caching·the·entire·world,·I·mean,\n//·that's·~32GB·of·just·integers·for·the·next/prev·links,·plus·whatever\n//·else·to·hold·that·many·keys·and·values.··Just·filling·the·memory·with\n//·zeroes·at·init·time·is·brutal·when·you·get·that·big.\n//·But·why·not·be·complete?\n//·Maybe·in·the·future,·these·limits·will·have·expanded.\nconst·getUintArray·=·(max:·number)·=>\n··!isPosInt(max)·?·null\n··:·max·<=·Math.pow(2,·8)·?·Uint8Array\n··:·max·<=·Math.pow(2,·16)·?·Uint16Array\n··:·max·<=·Math.pow(2,·32)·?·Uint32Array\n··:·max·<=·Number.MAX_SAFE_INTEGER·?·ZeroArray\n··:·null\n/*·c8·ignore·stop·*/\n\nclass·ZeroArray·extends·Array<number>·{\n··constructor(size:·number)·{\n····super(size)\n····this.fill(0)\n··}\n}\nexport·type·{·ZeroArray·}\nexport·type·{·Stack·}\n\nexport·type·StackLike·=·Stack·|·Index[]\nclass·Stack·{\n··heap:·NumberArray\n··length:·number\n··//·private·constructor\n··static·#constructing:·boolean·=·false\n··static·create(max:·number):·StackLike·{\n····const·HeapCls·=·getUintArray(max)\n····if·(!HeapCls)·return·[]\n····Stack.#constructing·=·true\n····const·s·=·new·Stack(max,·HeapCls)\n····Stack.#constructing·=·false\n····return·s\n··}\n··constructor(max:·number,·HeapCls:·{·new·(n:·number):·NumberArray·})·{\n····/*·c8·ignore·start·*/\n····if·(!Stack.#constructing)·{\n······throw·new·TypeError('instantiate·Stack·using·Stack.create(n)')\n····}\n····/*·c8·ignore·stop·*/\n····this.heap·=·new·HeapCls(max)\n····this.length·=·0\n··}\n··push(n:·Index)·{\n····this.heap[this.length++]·=·n\n··}\n··pop():·Index·{\n····return·this.heap[--this.length]·as·Index\n··}\n}\n\n/**\n·*·Promise·representing·an·in-progress·{@link·LRUCache#fetch}·call\n·*/\nexport·type·BackgroundFetch<V>·=·Promise<V·|·undefined>·&·{\n··__returned:·BackgroundFetch<V>·|·undefined\n··__abortController:·AbortController\n··__staleWhileFetching:·V·|·undefined\n}\n\nexport·type·DisposeTask<K,·V>·=·[\n··value:·V,\n··key:·K,\n··reason:·LRUCache.DisposeReason,\n]\n\nexport·namespace·LRUCache·{\n··/**\n···*·An·integer·greater·than·0,·reflecting·the·calculated·size·of·items\n···*/\n··export·type·Size·=·number\n\n··/**\n···*·Integer·greater·than·0,·representing·some·number·of·milliseconds,·or·the\n···*·time·at·which·a·TTL·started·counting·from.\n···*/\n··export·type·Milliseconds·=·number\n\n··/**\n···*·An·integer·greater·than·0,·reflecting·a·number·of·items\n···*/\n··export·type·Count·=·number\n\n··/**\n···*·The·reason·why·an·item·was·removed·from·the·cache,·passed\n···*·to·the·{@link·Disposer}·methods.\n···*\n···*·-·`evict`:·The·item·was·evicted·because·it·is·the·least·recently·used,\n···*···and·the·cache·is·full.\n···*·-·`set`:·A·new·value·was·set,·overwriting·the·old·value·being·disposed.\n···*·-·`delete`:·The·item·was·explicitly·deleted,·either·by·calling\n···*···{@link·LRUCache#delete},·{@link·LRUCache#clear},·or\n···*···{@link·LRUCache#set}·with·an·undefined·value.\n···*·-·`expire`:·The·item·was·removed·due·to·exceeding·its·TTL.\n···*·-·`fetch`:·A·{@link·OptionsBase#fetchMethod}·operation·returned\n···*···`undefined`·or·was·aborted,·causing·the·item·to·be·deleted.\n···*/\n··export·type·DisposeReason·=\n····|·'evict'\n····|·'set'\n····|·'delete'\n····|·'expire'\n····|·'fetch'\n··/**\n···*·A·method·called·upon·item·removal,·passed·as·the\n···*·{@link·OptionsBase.dispose}·and/or\n···*·{@link·OptionsBase.disposeAfter}·options.\n···*/\n··export·type·Disposer<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·DisposeReason,\n··)·=>·void\n\n··/**\n···*·The·reason·why·an·item·was·added·to·the·cache,·passed\n···*·to·the·{@link·Inserter}·methods.\n···*\n···*·-·`add`:·the·item·was·not·found·in·the·cache,·and·was·added\n···*·-·`update`:·the·item·was·in·the·cache,·with·the·same·value·provided\n···*·-·`replace`:·the·item·was·in·the·cache,·and·replaced\n···*/\n··export·type·InsertReason·=·'add'·|·'update'·|·'replace'\n\n··/**\n···*·A·method·called·upon·item·insertion,·passed·as·the\n···*·{@link·OptionsBase.insert}\n···*/\n··export·type·Inserter<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·InsertReason,\n··)·=>·void\n\n··/**\n···*·A·function·that·returns·the·effective·calculated·size\n···*·of·an·entry·in·the·cache.\n···*/\n··export·type·SizeCalculator<K,·V>·=·(value:·V,·key:·K)·=>·Size\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.fetchMethod}·function.\n···*/\n··export·interface·FetcherOptions<K,·V,·FC·=·unknown>·{\n····signal:·AbortSignal\n····options:·FetcherFetchOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·FetchOptions.context}·option·to\n·····*·{@link·LRUCache#fetch}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·Occasionally,·it·may·be·useful·to·track·the·internal·behavior·of·the\n···*·cache,·particularly·for·logging,·debugging,·or·for·behavior·within·the\n···*·`fetchMethod`.·To·do·this,·you·can·pass·a·`status`·object·to·the\n···*·{@link·LRUCache#fetch},·{@link·LRUCache#get},·{@link·LRUCache#set},\n···*·{@link·LRUCache#memo},·and·{@link·LRUCache#has}·methods.\n···*\n···*·The·`status`·option·should·be·a·plain·JavaScript·object.·The·following\n···*·fields·will·be·set·on·it·appropriately,·depending·on·the·situation.\n···*/\n··export·interface·Status<V>·{\n····/**\n·····*·The·status·of·a·set()·operation.\n·····*\n·····*·-·add:·the·item·was·not·found·in·the·cache,·and·was·added\n·····*·-·update:·the·item·was·in·the·cache,·with·the·same·value·provided\n·····*·-·replace:·the·item·was·in·the·cache,·and·replaced\n·····*·-·miss:·the·item·was·not·added·to·the·cache·for·some·reason\n·····*/\n····set?:·'add'·|·'update'·|·'replace'·|·'miss'\n\n····/**\n·····*·the·ttl·stored·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·the·start·time·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····start?:·Milliseconds\n\n····/**\n·····*·The·timestamp·used·for·TTL·calculation\n·····*/\n····now?:·Milliseconds\n\n····/**\n·····*·the·remaining·ttl·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····remainingTTL?:·Milliseconds\n\n····/**\n·····*·The·calculated·size·for·the·item,·if·sizes·are·used.\n·····*/\n····entrySize?:·Size\n\n····/**\n·····*·The·total·calculated·size·of·the·cache,·if·sizes·are·used.\n·····*/\n····totalCalculatedSize?:·Size\n\n····/**\n·····*·A·flag·indicating·that·the·item·was·not·stored,·due·to·exceeding·the\n·····*·{@link·OptionsBase.maxEntrySize}\n·····*/\n····maxEntrySizeExceeded?:·true\n\n····/**\n·····*·The·old·value,·specified·in·the·case·of·`set:'update'`·or\n·····*·`set:'replace'`\n·····*/\n····oldValue?:·V\n\n····/**\n·····*·The·results·of·a·{@link·LRUCache#has}·operation\n·····*\n·····*·-·hit:·the·item·was·found·in·the·cache\n·····*·-·stale:·the·item·was·found·in·the·cache,·but·is·stale\n·····*·-·miss:·the·item·was·not·found·in·the·cache\n·····*/\n····has?:·'hit'·|·'stale'·|·'miss'\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#fetch}·operation.\n·····*·Note·that·this·can·change·as·the·underlying·fetch()·moves·through\n·····*·various·states.\n·····*\n·····*·-·inflight:·there·is·another·fetch()·for·this·key·which·is·in·process\n·····*·-·get:·there·is·no·{@link·OptionsBase.fetchMethod},·so\n·····*···{@link·LRUCache#get}·was·called.\n·····*·-·miss:·the·item·is·not·in·cache,·and·will·be·fetched.\n·····*·-·hit:·the·item·is·in·the·cache,·and·was·resolved·immediately.\n·····*·-·stale:·the·item·is·in·the·cache,·but·stale.\n·····*·-·refresh:·the·item·is·in·the·cache,·and·not·stale,·but\n·····*···{@link·FetchOptions.forceRefresh}·was·specified.\n·····*/\n····fetch?:·'get'·|·'inflight'·|·'miss'·|·'hit'·|·'stale'·|·'refresh'\n\n····/**\n·····*·The·{@link·OptionsBase.fetchMethod}·was·called\n·····*/\n····fetchDispatched?:·true\n\n····/**\n·····*·The·cached·value·was·updated·after·a·successful·call·to\n·····*·{@link·OptionsBase.fetchMethod}\n·····*/\n····fetchUpdated?:·true\n\n····/**\n·····*·The·reason·for·a·fetch()·rejection.··Either·the·error·raised·by·the\n·····*·{@link·OptionsBase.fetchMethod},·or·the·reason·for·an\n·····*·AbortSignal.\n·····*/\n····fetchError?:·Error\n\n····/**\n·····*·The·fetch·received·an·abort·signal\n·····*/\n····fetchAborted?:·true\n\n····/**\n·····*·The·abort·signal·received·was·ignored,·and·the·fetch·was·allowed·to\n·····*·continue.\n·····*/\n····fetchAbortIgnored?:·true\n\n····/**\n·····*·The·fetchMethod·promise·resolved·successfully\n·····*/\n····fetchResolved?:·true\n\n····/**\n·····*·The·fetchMethod·promise·was·rejected\n·····*/\n····fetchRejected?:·true\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#get}·operation.\n·····*\n·····*·-·fetching:·The·item·is·currently·being·fetched.··If·a·previous·value\n·····*···is·present·and·allowed,·that·will·be·returned.\n·····*·-·stale:·The·item·is·in·the·cache,·and·is·stale.\n·····*·-·hit:·the·item·is·in·the·cache\n·····*·-·miss:·the·item·is·not·in·the·cache\n·····*/\n····get?:·'stale'·|·'hit'·|·'miss'\n\n····/**\n·····*·A·fetch·or·get·operation·returned·a·stale·value.\n·····*/\n····returnedStale?:·true\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#fetch}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·OptionsBase.noDeleteOnFetchRejection},\n···*·{@link·OptionsBase.allowStaleOnFetchRejection},\n···*·{@link·FetchOptions.forceRefresh},·and\n···*·{@link·FetcherOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.fetchMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·fetchMethod·is·called.\n···*/\n··export·interface·FetcherFetchOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#fetch}·method.\n···*/\n··export·interface·FetchOptions<K,·V,·FC>\n····extends·FetcherFetchOptions<K,·V,·FC>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.fetchMethod}·as\n·····*·the·{@link·FetcherOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····signal?:·AbortSignal\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·FetchOptionsWithContext<K,·V,·FC>\n····extends·FetchOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·FetchOptionsNoContext<K,·V>\n····extends·FetchOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··export·interface·MemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.memoMethod}·as\n·····*·the·{@link·MemoizerOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·MemoOptionsWithContext<K,·V,·FC>\n····extends·MemoOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·MemoOptionsNoContext<K,·V>\n····extends·MemoOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.memoMethod}·function.\n···*/\n··export·interface·MemoizerOptions<K,·V,·FC·=·unknown>·{\n····options:·MemoizerMemoOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·MemoOptions.context}·option·to\n·····*·{@link·LRUCache#memo}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#memo}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·MemoOptions.forceRefresh},·and\n···*·{@link·MemoOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.memoMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·memoMethod·is·called.\n···*/\n··export·interface·MemoizerMemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n····start?:·Milliseconds\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#has}·method.\n···*/\n··export·interface·HasOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'updateAgeOnHas'>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#get}·method.\n···*/\n··export·interface·GetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'allowStale'·|·'updateAgeOnGet'·|·'noDeleteOnStaleGet'\n····>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#peek}·method.\n···*/\n··export·interface·PeekOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'allowStale'>·{}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#set}·method.\n···*/\n··export·interface·SetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'sizeCalculation'·|·'ttl'·|·'noDisposeOnSet'·|·'noUpdateTTL'\n····>·{\n····/**\n·····*·If·size·tracking·is·enabled,·then·setting·an·explicit·size\n·····*·in·the·{@link·LRUCache#set}·call·will·prevent·calling·the\n·····*·{@link·OptionsBase.sizeCalculation}·function.\n·····*/\n····size?:·Size\n····/**\n·····*·If·TTL·tracking·is·enabled,·then·setting·an·explicit·start\n·····*·time·in·the·{@link·LRUCache#set}·call·will·override·the\n·····*·default·time·from·`performance.now()`·or·`Date.now()`.\n·····*\n·····*·Note·that·it·must·be·a·valid·value·for·whichever·time-tracking\n·····*·method·is·in·use.\n·····*/\n····start?:·Milliseconds\n····status?:·Status<V>\n··}\n\n··/**\n···*·The·type·signature·for·the·{@link·OptionsBase.fetchMethod}·option.\n···*/\n··export·type·Fetcher<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·FetcherOptions<K,·V,·FC>,\n··)·=>·Promise<V·|·undefined·|·void>·|·V·|·undefined·|·void\n\n··/**\n···*·the·type·signature·for·the·{@link·OptionsBase.memoMethod}·option.\n···*/\n··export·type·Memoizer<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·MemoizerOptions<K,·V,·FC>,\n··)·=>·V\n\n··/**\n···*·Options·which·may·be·passed·to·the·{@link·LRUCache}·constructor.\n···*\n···*·Most·of·these·may·be·overridden·in·the·various·options·that·use\n···*·them.\n···*\n···*·Despite·all·being·technically·optional,·the·constructor·requires·that\n···*·a·cache·is·at·minimum·limited·by·one·or·more·of·{@link·OptionsBase.max},\n···*·{@link·OptionsBase.ttl},·or·{@link·OptionsBase.maxSize}.\n···*\n···*·If·{@link·OptionsBase.ttl}·is·used·alone,·then·it·is·strongly·advised\n···*·(and·in·fact·required·by·the·type·definitions·here)·that·the·cache\n···*·also·set·{@link·OptionsBase.ttlAutopurge},·to·prevent·potentially\n···*·unbounded·storage.\n···*\n···*·All·options·are·also·available·on·the·{@link·LRUCache}·instance,·making\n···*·it·safe·to·pass·an·LRUCache·instance·as·the·options·argumemnt·to\n···*·make·another·empty·cache·of·the·same·type.\n···*\n···*·Some·options·are·marked·as·read-only,·because·changing·them·after\n···*·instantiation·is·not·safe.·Changing·any·of·the·other·options·will·of\n···*·course·only·have·an·effect·on·subsequent·method·calls.\n···*/\n··export·interface·OptionsBase<K,·V,·FC>·{\n····/**\n·····*·The·maximum·number·of·items·to·store·in·the·cache·before·evicting\n·····*·old·entries.·This·is·read-only·on·the·{@link·LRUCache}·instance,\n·····*·and·may·not·be·overridden.\n·····*\n·····*·If·set,·then·storage·space·will·be·pre-allocated·at·construction\n·····*·time,·and·the·cache·will·perform·significantly·faster.\n·····*\n·····*·Note·that·significantly·fewer·items·may·be·stored,·if\n·····*·{@link·OptionsBase.maxSize}·and/or·{@link·OptionsBase.ttl}·are·also\n·····*·set.\n·····*\n·····*·**It·is·strongly·recommended·to·set·a·`max`·to·prevent·unbounded·growth\n·····*·of·the·cache.**\n·····*/\n····max?:·Count\n\n····/**\n·····*·Max·time·in·milliseconds·for·items·to·live·in·cache·before·they·are\n·····*·considered·stale.··Note·that·stale·items·are·NOT·preemptively·removed·by\n·····*·default,·and·MAY·live·in·the·cache,·contributing·to·its·LRU·max,·long\n·····*·after·they·have·expired,·unless·{@link·OptionsBase.ttlAutopurge}·is\n·····*·set.\n·····*\n·····*·If·set·to·`0`·(the·default·value),·then·that·means·\"do·not·track\n·····*·TTL\",·not·\"expire·immediately\".\n·····*\n·····*·Also,·as·this·cache·is·optimized·for·LRU/MRU·operations,·some·of\n·····*·the·staleness/TTL·checks·will·reduce·performance,·as·they·will·incur\n·····*·overhead·by·deleting·items.\n·····*\n·····*·This·is·not·primarily·a·TTL·cache,·and·does·not·make·strong·TTL\n·····*·guarantees.·There·is·no·pre-emptive·pruning·of·expired·items,·but·you\n·····*·_may_·set·a·TTL·on·the·cache,·and·it·will·treat·expired·items·as·missing\n·····*·when·they·are·fetched,·and·delete·them.\n·····*\n·····*·Optional,·but·must·be·a·non-negative·integer·in·ms·if·specified.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.set()`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·ttl·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·If·ttl·tracking·is·enabled,·and·`max`·and·`maxSize`·are·not·set,\n·····*·and·`ttlAutopurge`·is·not·set,·then·a·warning·will·be·emitted\n·····*·cautioning·about·the·potential·for·unbounded·memory·consumption.\n·····*·(The·TypeScript·definitions·will·also·discourage·this.)\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·Minimum·amount·of·time·in·ms·in·which·to·check·for·staleness.\n·····*·Defaults·to·1,·which·means·that·the·current·time·is·checked\n·····*·at·most·once·per·millisecond.\n·····*\n·····*·Set·to·0·to·check·the·current·time·every·time·staleness·is·tested.\n·····*·(This·reduces·performance,·and·is·theoretically·unnecessary.)\n·····*\n·····*·Setting·this·to·a·higher·value·will·improve·performance·somewhat\n·····*·while·using·ttl·tracking,·albeit·at·the·expense·of·keeping·stale\n·····*·items·around·a·bit·longer·than·their·TTLs·would·indicate.\n·····*\n·····*·@default·1\n·····*/\n····ttlResolution?:·Milliseconds\n\n····/**\n·····*·Preemptively·remove·stale·items·from·the·cache.\n·····*\n·····*·Note·that·this·may·*significantly*·degrade·performance,·especially·if\n·····*·the·cache·is·storing·a·large·number·of·items.·It·is·almost·always·best\n·····*·to·just·leave·the·stale·items·in·the·cache,·and·let·them·fall·out·as·new\n·····*·items·are·added.\n·····*\n·····*·Note·that·this·means·that·{@link·OptionsBase.allowStale}·is·a·bit\n·····*·pointless,·as·stale·items·will·be·deleted·almost·as·soon·as·they\n·····*·expire.\n·····*\n·····*·Use·with·caution!\n·····*/\n····ttlAutopurge?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·it·is·retrieved·from·cache·with\n·····*·{@link·LRUCache#get},·causing·it·to·not·expire.·(It·can·still·fall·out\n·····*·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*/\n····updateAgeOnGet?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·its·presence·in·the·cache·is\n·····*·checked·with·{@link·LRUCache#has},·causing·it·to·not·expire.·(It·can\n·····*·still·fall·out·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*/\n····updateAgeOnHas?:·boolean\n\n····/**\n·····*·Allow·{@link·LRUCache#get}·and·{@link·LRUCache#fetch}·calls·to·return\n·····*·stale·data,·if·available.\n·····*\n·····*·By·default,·if·you·set·`ttl`,·stale·items·will·only·be·deleted·from·the\n·····*·cache·when·you·`get(key)`.·That·is,·it's·not·preemptively·pruning·items,\n·····*·unless·{@link·OptionsBase.ttlAutopurge}·is·set.\n·····*\n·····*·If·you·set·`allowStale:true`,·it'll·return·the·stale·value·*as·well·as*\n·····*·deleting·it.·If·you·don't·set·this,·then·it'll·return·`undefined`·when\n·····*·you·try·to·get·a·stale·entry.\n·····*\n·····*·Note·that·when·a·stale·entry·is·fetched,·_even·if·it·is·returned·due·to\n·····*·`allowStale`·being·set_,·it·is·removed·from·the·cache·immediately.·You\n·····*·can·suppress·this·behavior·by·setting\n·····*·{@link·OptionsBase.noDeleteOnStaleGet},·either·in·the·constructor,·or·in\n·····*·the·options·provided·to·{@link·LRUCache#get}.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*·The·`cache.has()`·method·will·always·return·`false`·for·stale·items.\n·····*\n·····*·Only·relevant·if·a·ttl·is·set.\n·····*/\n····allowStale?:·boolean\n\n····/**\n·····*·Function·that·is·called·on·items·when·they·are·dropped·from·the\n·····*·cache,·as·`dispose(value,·key,·reason)`.\n·····*\n·····*·This·can·be·handy·if·you·want·to·close·file·descriptors·or·do\n·····*·other·cleanup·tasks·when·items·are·no·longer·stored·in·the·cache.\n·····*\n·····*·**NOTE**:·It·is·called·_before_·the·item·has·been·fully·removed\n·····*·from·the·cache,·so·if·you·want·to·put·it·right·back·in,·you·need\n·····*·to·wait·until·the·next·tick.·If·you·try·to·add·it·back·in·during\n·····*·the·`dispose()`·function·call,·it·will·break·things·in·subtle·and\n·····*·weird·ways.\n·····*\n·····*·Unlike·several·other·options,·this·may·_not_·be·overridden·by\n·····*·passing·an·option·to·`set()`,·for·performance·reasons.\n·····*\n·····*·The·`reason`·will·be·one·of·the·following·strings,·corresponding\n·····*·to·the·reason·for·the·item's·deletion:\n·····*\n·····*·-·`evict`·Item·was·evicted·to·make·space·for·a·new·addition\n·····*·-·`set`·Item·was·overwritten·by·a·new·value\n·····*·-·`expire`·Item·expired·its·TTL\n·····*·-·`fetch`·Item·was·deleted·due·to·a·failed·or·aborted·fetch,·or·a\n·····*···fetchMethod·returning·`undefined.\n·····*·-·`delete`·Item·was·removed·by·explicit·`cache.delete(key)`,\n·····*···`cache.clear()`,·or·`cache.set(key,·undefined)`.\n·····*/\n····dispose?:·Disposer<K,·V>\n\n····/**\n·····*·Function·that·is·called·when·new·items·are·inserted·into·the·cache,\n·····*·as·`onInsert(value,·key,·reason)`.\n·····*\n·····*·This·can·be·useful·if·you·need·to·perform·actions·when·an·item·is\n·····*·added,·such·as·logging·or·tracking·insertions.\n·····*\n·····*·Unlike·some·other·options,·this·may·_not_·be·overridden·by·passing\n·····*·an·option·to·`set()`,·for·performance·and·consistency·reasons.\n·····*/\n····onInsert?:·Inserter<K,·V>\n\n····/**\n·····*·The·same·as·{@link·OptionsBase.dispose},·but·called·*after*·the·entry\n·····*·is·completely·removed·and·the·cache·is·once·again·in·a·clean·state.\n·····*\n·····*·It·is·safe·to·add·an·item·right·back·into·the·cache·at·this·point.\n·····*·However,·note·that·it·is·*very*·easy·to·inadvertently·create·infinite\n·····*·recursion·this·way.\n·····*/\n····disposeAfter?:·Disposer<K,·V>\n\n····/**\n·····*·Set·to·true·to·suppress·calling·the\n·····*·{@link·OptionsBase.dispose}·function·if·the·entry·key·is\n·····*·still·accessible·within·the·cache.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to\n·····*·{@link·LRUCache#set}.\n·····*\n·····*·Only·relevant·if·`dispose`·or·`disposeAfter`·are·set.\n·····*/\n····noDisposeOnSet?:·boolean\n\n····/**\n·····*·Boolean·flag·to·tell·the·cache·to·not·update·the·TTL·when·setting·a·new\n·····*·value·for·an·existing·key·(ie,·when·updating·a·value·rather·than\n·····*·inserting·a·new·value).··Note·that·the·TTL·value·is·_always_·set·(if\n·····*·provided)·when·adding·a·new·entry·into·the·cache.\n·····*\n·····*·Has·no·effect·if·a·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·May·be·passed·as·an·option·to·{@link·LRUCache#set}.\n·····*/\n····noUpdateTTL?:·boolean\n\n····/**\n·····*·Set·to·a·positive·integer·to·track·the·sizes·of·items·added·to·the\n·····*·cache,·and·automatically·evict·items·in·order·to·stay·below·this·size.\n·····*·Note·that·this·may·result·in·fewer·than·`max`·items·being·stored.\n·····*\n·····*·Attempting·to·add·an·item·to·the·cache·whose·calculated·size·is·greater\n·····*·that·this·amount·will·be·a·no-op.·The·item·will·not·be·cached,·and·no\n·····*·other·items·will·be·evicted.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.\n·····*\n·····*·Sets·`maxEntrySize`·to·the·same·value,·unless·a·different·value·is\n·····*·provided·for·`maxEntrySize`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·size·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·Note·also·that·size·tracking·can·negatively·impact·performance,\n·····*·though·for·most·cases,·only·minimally.\n·····*/\n····maxSize?:·Size\n\n····/**\n·····*·The·maximum·allowed·size·for·any·single·item·in·the·cache.\n·····*\n·····*·If·a·larger·item·is·passed·to·{@link·LRUCache#set}·or·returned·by·a\n·····*·{@link·OptionsBase.fetchMethod}·or·{@link·OptionsBase.memoMethod},·then\n·····*·it·will·not·be·stored·in·the·cache.\n·····*\n·····*·Attempting·to·add·an·item·whose·calculated·size·is·greater·than\n·····*·this·amount·will·not·cache·the·item·or·evict·any·old·items,·but\n·····*·WILL·delete·an·existing·value·if·one·is·already·present.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.·Defaults·to\n·····*·the·value·of·`maxSize`·if·provided.\n·····*/\n····maxEntrySize?:·Size\n\n····/**\n·····*·A·function·that·returns·a·number·indicating·the·item's·size.\n·····*\n·····*·Requires·{@link·OptionsBase.maxSize}·to·be·set.\n·····*\n·····*·If·not·provided,·and·{@link·OptionsBase.maxSize}·or\n·····*·{@link·OptionsBase.maxEntrySize}·are·set,·then·all\n·····*·{@link·LRUCache#set}·calls·**must**·provide·an·explicit\n·····*·{@link·SetOptions.size}·or·sizeCalculation·param.\n·····*/\n····sizeCalculation?:·SizeCalculator<K,·V>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#fetch}\n·····*\n·····*·```ts\n·····*·fetchMethod(key,·staleValue,·{·signal,·options,·context·})\n·····*·```\n·····*\n·····*·If·`fetchMethod`·is·not·provided,·then·`cache.fetch(key)`·is·equivalent\n·····*·to·`Promise.resolve(cache.get(key))`.\n·····*\n·····*·If·at·any·time,·`signal.aborted`·is·set·to·`true`,·or·if·the\n·····*·`signal.onabort`·method·is·called,·or·if·it·emits·an·`'abort'`·event\n·····*·which·you·can·listen·to·with·`addEventListener`,·then·that·means·that\n·····*·the·fetch·should·be·abandoned.·This·may·be·passed·along·to·async\n·····*·functions·aware·of·AbortController/AbortSignal·behavior.\n·····*\n·····*·The·`fetchMethod`·should·**only**·return·`undefined`·or·a·Promise\n·····*·resolving·to·`undefined`·if·the·AbortController·signaled·an·`abort`\n·····*·event.·In·all·other·cases,·it·should·return·or·resolve·to·a·value\n·····*·suitable·for·adding·to·the·cache.\n·····*\n·····*·The·`options`·object·is·a·union·of·the·options·that·may·be·provided·to\n·····*·`set()`·and·`get()`.·If·they·are·modified,·then·that·will·result·in\n·····*·modifying·the·settings·to·`cache.set()`·when·the·value·is·resolved,·and\n·····*·in·the·case·of\n·····*·{@link·OptionsBase.noDeleteOnFetchRejection}·and\n·····*·{@link·OptionsBase.allowStaleOnFetchRejection},·the·handling·of\n·····*·`fetchMethod`·failures.\n·····*\n·····*·For·example,·a·DNS·cache·may·update·the·TTL·based·on·the·value·returned\n·····*·from·a·remote·DNS·server·by·changing·`options.ttl`·in·the·`fetchMethod`.\n·····*/\n····fetchMethod?:·Fetcher<K,·V,·FC>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#memo}\n·····*/\n····memoMethod?:·Memoizer<K,·V,·FC>\n\n····/**\n·····*·Set·to·true·to·suppress·the·deletion·of·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·returns·a·rejected·promise.\n·····*/\n····noDeleteOnFetchRejection?:·boolean\n\n····/**\n·····*·Do·not·delete·stale·items·when·they·are·retrieved·with\n·····*·{@link·LRUCache#get}.\n·····*\n·····*·Note·that·the·`get`·return·value·will·still·be·`undefined`\n·····*·unless·{@link·OptionsBase.allowStale}·is·true.\n·····*\n·····*·When·using·time-expiring·entries·with·`ttl`,·by·default·stale\n·····*·items·will·be·removed·from·the·cache·when·the·key·is·accessed\n·····*·with·`cache.get()`.\n·····*\n·····*·Setting·this·option·will·cause·stale·items·to·remain·in·the·cache,·until\n·····*·they·are·explicitly·deleted·with·`cache.delete(key)`,·or·retrieved·with\n·····*·`noDeleteOnStaleGet`·set·to·`false`.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*\n·····*·Only·relevant·if·a·ttl·is·used.\n·····*/\n····noDeleteOnStaleGet?:·boolean\n\n····/**\n·····*·Set·to·true·to·allow·returning·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·throws·an·error·or·returns·a·rejected\n·····*·promise.\n·····*\n·····*·This·differs·from·using·{@link·OptionsBase.allowStale}·in·that·stale\n·····*·data·will·ONLY·be·returned·in·the·case·that·the·{@link·LRUCache#fetch}\n·····*·fails,·not·any·other·times.\n·····*\n·····*·If·a·`fetchMethod`·fails,·and·there·is·no·stale·value·available,·the\n·····*·`fetch()`·will·resolve·to·`undefined`.·Ie,·all·`fetchMethod`·errors·are\n·····*·suppressed.\n·····*\n·····*·Implies·`noDeleteOnFetchRejection`.\n·····*\n·····*·This·may·be·set·in·calls·to·`fetch()`,·or·defaulted·on·the·constructor,\n·····*·or·overridden·by·modifying·the·options·object·in·the·`fetchMethod`.\n·····*/\n····allowStaleOnFetchRejection?:·boolean\n\n····/**\n·····*·Set·to·true·to·return·a·stale·value·from·the·cache·when·the\n·····*·`AbortSignal`·passed·to·the·{@link·OptionsBase.fetchMethod}·dispatches\n·····*·an·`'abort'`·event,·whether·user-triggered,·or·due·to·internal·cache\n·····*·behavior.\n·····*\n·····*·Unless·{@link·OptionsBase.ignoreFetchAbort}·is·also·set,·the·underlying\n·····*·{@link·OptionsBase.fetchMethod}·will·still·be·considered·canceled,·and\n·····*·any·value·it·returns·will·be·ignored·and·not·cached.\n·····*\n·····*·Caveat:·since·fetches·are·aborted·when·a·new·value·is·explicitly\n·····*·set·in·the·cache,·this·can·lead·to·fetch·returning·a·stale·value,\n·····*·since·that·was·the·fallback·value·_at·the·moment·the·`fetch()`·was\n·····*·initiated_,·even·though·the·new·updated·value·is·now·present·in\n·····*·the·cache.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·cache·=·new·LRUCache<string,·any>({\n·····*···ttl:·100,\n·····*···fetchMethod:·async·(url,·oldValue,·{·signal·})·=>··{\n·····*·····const·res·=·await·fetch(url,·{·signal·})\n·····*·····return·await·res.json()\n·····*···}\n·····*·})\n·····*·cache.set('https://example.com/',·{·some:·'data'·})\n·····*·//·100ms·go·by...\n·····*·const·result·=·cache.fetch('https://example.com/')\n·····*·cache.set('https://example.com/',·{·other:·'thing'·})\n·····*·console.log(await·result)·//·{·some:·'data'·}\n·····*·console.log(cache.get('https://example.com/'))·//·{·other:·'thing'·}\n·····*·```\n·····*/\n····allowStaleOnFetchAbort?:·boolean\n\n····/**\n·····*·Set·to·true·to·ignore·the·`abort`·event·emitted·by·the·`AbortSignal`\n·····*·object·passed·to·{@link·OptionsBase.fetchMethod},·and·still·cache·the\n·····*·resulting·resolution·value,·as·long·as·it·is·not·`undefined`.\n·····*\n·····*·When·used·on·its·own,·this·means·aborted·{@link·LRUCache#fetch}·calls\n·····*·are·not·immediately·resolved·or·rejected·when·they·are·aborted,·and\n·····*·instead·take·the·full·time·to·await.\n·····*\n·····*·When·used·with·{@link·OptionsBase.allowStaleOnFetchAbort},·aborted\n·····*·{@link·LRUCache#fetch}·calls·will·resolve·immediately·to·their·stale\n·····*·cached·value·or·`undefined`,·and·will·continue·to·process·and·eventually\n·····*·update·the·cache·when·they·resolve,·as·long·as·the·resulting·value·is\n·····*·not·`undefined`,·thus·supporting·a·\"return·stale·on·timeout·while\n·····*·refreshing\"·mechanism·by·passing·`AbortSignal.timeout(n)`·as·the·signal.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·c·=·new·LRUCache({\n·····*···ttl:·100,\n·····*···ignoreFetchAbort:·true,\n·····*···allowStaleOnFetchAbort:·true,\n·····*···fetchMethod:·async·(key,·oldValue,·{·signal·})·=>·{\n·····*·····//·note:·do·NOT·pass·the·signal·to·fetch()!\n·····*·····//·let's·say·this·fetch·can·take·a·long·time.\n·····*·····const·res·=·await·fetch(`https://slow-backend-server/${key}`)\n·····*·····return·await·res.json()\n·····*···},\n·····*·})\n·····*\n·····*·//·this·will·return·the·stale·value·after·100ms,·while·still\n·····*·//·updating·in·the·background·for·next·time.\n·····*·const·val·=·await·c.fetch('key',·{·signal:·AbortSignal.timeout(100)·})\n·····*·```\n·····*\n·····*·**Note**:·regardless·of·this·setting,·an·`abort`·event·_is·still\n·····*·emitted·on·the·`AbortSignal`·object_,·so·may·result·in·invalid·results\n·····*·when·passed·to·other·underlying·APIs·that·use·AbortSignals.\n·····*\n·····*·This·may·be·overridden·in·the·{@link·OptionsBase.fetchMethod}·or·the\n·····*·call·to·{@link·LRUCache#fetch}.\n·····*/\n····ignoreFetchAbort?:·boolean\n\n····/**\n·····*·In·some·cases,·you·may·want·to·swap·out·the·performance/Date·object\n·····*·used·for·TTL·tracking.·This·should·almost·certainly·NOT·be·done·in\n·····*·production·environments!\n·····*\n·····*·This·value·defaults·to·`global.performance`·if·it·has·a·`now()`·method,\n·····*·or·the·`global.Date`·object·otherwise.\n·····*/\n····perf?:·Perf\n··}\n\n··export·interface·OptionsMaxLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····max:·Count\n··}\n··export·interface·OptionsTTLLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····ttl:·Milliseconds\n····ttlAutopurge:·boolean\n··}\n··export·interface·OptionsSizeLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····maxSize:·Size\n··}\n\n··/**\n···*·The·valid·safe·options·for·the·{@link·LRUCache}·constructor\n···*/\n··export·type·Options<K,·V,·FC>·=\n····|·OptionsMaxLimit<K,·V,·FC>\n····|·OptionsSizeLimit<K,·V,·FC>\n····|·OptionsTTLLimit<K,·V,·FC>\n\n··/**\n···*·Entry·objects·used·by·{@link·LRUCache#load}·and·{@link·LRUCache#dump},\n···*·and·returned·by·{@link·LRUCache#info}.\n···*/\n··export·interface·Entry<V>·{\n····value:·V\n····ttl?:·Milliseconds\n····size?:·Size\n····start?:·Milliseconds\n··}\n}\n\n/**\n·*·Default·export,·the·thing·you're·using·this·module·to·get.\n·*\n·*·The·`K`·and·`V`·types·define·the·key·and·value·types,·respectively.·The\n·*·optional·`FC`·type·defines·the·type·of·the·`context`·object·passed·to\n·*·`cache.fetch()`·and·`cache.memo()`.\n·*\n·*·Keys·and·values·**must·not**·be·`null`·or·`undefined`.\n·*\n·*·All·properties·from·the·options·object·(with·the·exception·of·`max`,\n·*·`maxSize`,·`fetchMethod`,·`memoMethod`,·`dispose`·and·`disposeAfter`)·are\n·*·added·as·normal·public·members.·(The·listed·options·are·read-only·getters.)\n·*\n·*·Changing·any·of·these·will·alter·the·defaults·for·subsequent·method·calls.\n·*/\nexport·class·LRUCache<K·extends·{},·V·extends·{},·FC·=·unknown>·{\n··//·options·that·cannot·be·changed·without·disaster\n··readonly·#max:·LRUCache.Count\n··readonly·#maxSize:·LRUCache.Size\n··readonly·#dispose?:·LRUCache.Disposer<K,·V>\n··readonly·#onInsert?:·LRUCache.Inserter<K,·V>\n··readonly·#disposeAfter?:·LRUCache.Disposer<K,·V>\n··readonly·#fetchMethod?:·LRUCache.Fetcher<K,·V,·FC>\n··readonly·#memoMethod?:·LRUCache.Memoizer<K,·V,·FC>\n··readonly·#perf:·Perf\n\n··/**\n···*·{@link·LRUCache.OptionsBase.perf}\n···*/\n··get·perf()·{\n····return·this.#perf\n··}\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttl}\n···*/\n··ttl:·LRUCache.Milliseconds\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlResolution}\n···*/\n··ttlResolution:·LRUCache.Milliseconds\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlAutopurge}\n···*/\n··ttlAutopurge:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnGet}\n···*/\n··updateAgeOnGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}\n···*/\n··updateAgeOnHas:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStale}\n···*/\n··allowStale:·boolean\n\n··/**\n···*·{@link·LRUCache.OptionsBase.noDisposeOnSet}\n···*/\n··noDisposeOnSet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noUpdateTTL}\n···*/\n··noUpdateTTL:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.maxEntrySize}\n···*/\n··maxEntrySize:·LRUCache.Size\n··/**\n···*·{@link·LRUCache.OptionsBase.sizeCalculation}\n···*/\n··sizeCalculation?:·LRUCache.SizeCalculator<K,·V>\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnFetchRejection}\n···*/\n··noDeleteOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnStaleGet}\n···*/\n··noDeleteOnStaleGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort}\n···*/\n··allowStaleOnFetchAbort:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}\n···*/\n··allowStaleOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.ignoreFetchAbort}\n···*/\n··ignoreFetchAbort:·boolean\n\n··//·computed·properties\n··#size:·LRUCache.Count\n··#calculatedSize:·LRUCache.Size\n··#keyMap:·Map<K,·Index>\n··#keyList:·(K·|·undefined)[]\n··#valList:·(V·|·BackgroundFetch<V>·|·undefined)[]\n··#next:·NumberArray\n··#prev:·NumberArray\n··#head:·Index\n··#tail:·Index\n··#free:·StackLike\n··#disposed?:·DisposeTask<K,·V>[]\n··#sizes?:·ZeroArray\n··#starts?:·ZeroArray\n··#ttls?:·ZeroArray\n··#autopurgeTimers?:·(undefined·|·ReturnType<typeof·setTimeout>)[]\n\n··#hasDispose:·boolean\n··#hasFetchMethod:·boolean\n··#hasDisposeAfter:·boolean\n··#hasOnInsert:·boolean\n\n··/**\n···*·Do·not·call·this·method·unless·you·need·to·inspect·the\n···*·inner·workings·of·the·cache.··If·anything·returned·by·this\n···*·object·is·modified·in·any·way,·strange·breakage·may·occur.\n···*\n···*·These·fields·are·private·for·a·reason!\n···*\n···*·@internal\n···*/\n··static·unsafeExposeInternals<\n····K·extends·{},\n····V·extends·{},\n····FC·extends·unknown·=·unknown,\n··>(c:·LRUCache<K,·V,·FC>)·{\n····return·{\n······//·properties\n······starts:·c.#starts,\n······ttls:·c.#ttls,\n······autopurgeTimers:·c.#autopurgeTimers,\n······sizes:·c.#sizes,\n······keyMap:·c.#keyMap·as·Map<K,·number>,\n······keyList:·c.#keyList,\n······valList:·c.#valList,\n······next:·c.#next,\n······prev:·c.#prev,\n······get·head()·{\n········return·c.#head\n······},\n······get·tail()·{\n········return·c.#tail\n······},\n······free:·c.#free,\n······//·methods\n······isBackgroundFetch:·(p:·any)·=>·c.#isBackgroundFetch(p),\n······backgroundFetch:·(\n········k:·K,\n········index:·number·|·undefined,\n········options:·LRUCache.FetchOptions<K,·V,·FC>,\n········context:·any,\n······):·BackgroundFetch<V>·=>\n········c.#backgroundFetch(\n··········k,\n··········index·as·Index·|·undefined,\n··········options,\n··········context,\n········),\n······moveToTail:·(index:·number):·void·=>·c.#moveToTail(index·as·Index),\n······indexes:·(options?:·{·allowStale:·boolean·})·=>·c.#indexes(options),\n······rindexes:·(options?:·{·allowStale:·boolean·})·=>\n········c.#rindexes(options),\n······isStale:·(index:·number·|·undefined)·=>·c.#isStale(index·as·Index),\n····}\n··}\n\n··//·Protected·read-only·members\n\n··/**\n···*·{@link·LRUCache.OptionsBase.max}·(read-only)\n···*/\n··get·max():·LRUCache.Count·{\n····return·this.#max\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.maxSize}·(read-only)\n···*/\n··get·maxSize():·LRUCache.Count·{\n····return·this.#maxSize\n··}\n··/**\n···*·The·total·computed·size·of·items·in·the·cache·(read-only)\n···*/\n··get·calculatedSize():·LRUCache.Size·{\n····return·this.#calculatedSize\n··}\n··/**\n···*·The·number·of·items·stored·in·the·cache·(read-only)\n···*/\n··get·size():·LRUCache.Count·{\n····return·this.#size\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·(read-only)\n···*/\n··get·fetchMethod():·LRUCache.Fetcher<K,·V,·FC>·|·undefined·{\n····return·this.#fetchMethod\n··}\n··get·memoMethod():·LRUCache.Memoizer<K,·V,·FC>·|·undefined·{\n····return·this.#memoMethod\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.dispose}·(read-only)\n···*/\n··get·dispose()·{\n····return·this.#dispose\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.onInsert}·(read-only)\n···*/\n··get·onInsert()·{\n····return·this.#onInsert\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.disposeAfter}·(read-only)\n···*/\n··get·disposeAfter()·{\n····return·this.#disposeAfter\n··}\n\n··constructor(options:·LRUCache.Options<K,·V,·FC>·|·LRUCache<K,·V,·FC>)·{\n····const·{\n······max·=·0,\n······ttl,\n······ttlResolution·=·1,\n······ttlAutopurge,\n······updateAgeOnGet,\n······updateAgeOnHas,\n······allowStale,\n······dispose,\n······onInsert,\n······disposeAfter,\n······noDisposeOnSet,\n······noUpdateTTL,\n······maxSize·=·0,\n······maxEntrySize·=·0,\n······sizeCalculation,\n······fetchMethod,\n······memoMethod,\n······noDeleteOnFetchRejection,\n······noDeleteOnStaleGet,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······perf,\n····}·=·options\n\n····if·(perf·!==·undefined)·{\n······if·(typeof·perf?.now·!==·'function')·{\n········throw·new·TypeError(\n··········'perf·option·must·have·a·now()·method·if·specified',\n········)\n······}\n····}\n\n····this.#perf·=·perf·??·defaultPerf\n\n····if·(max·!==·0·&&·!isPosInt(max))·{\n······throw·new·TypeError('max·option·must·be·a·nonnegative·integer')\n····}\n\n····const·UintArray·=·max·?·getUintArray(max)·:·Array\n····if·(!UintArray)·{\n······throw·new·Error('invalid·max·value:·'·+·max)\n····}\n\n····this.#max·=·max\n····this.#maxSize·=·maxSize\n····this.maxEntrySize·=·maxEntrySize·||·this.#maxSize\n····this.sizeCalculation·=·sizeCalculation\n····if·(this.sizeCalculation)·{\n······if·(!this.#maxSize·&&·!this.maxEntrySize)·{\n········throw·new·TypeError(\n··········'cannot·set·sizeCalculation·without·setting·maxSize·or·maxEntrySize',\n········)\n······}\n······if·(typeof·this.sizeCalculation·!==·'function')·{\n········throw·new·TypeError('sizeCalculation·set·to·non-function')\n······}\n····}\n\n····if·(memoMethod·!==·undefined·&&·typeof·memoMethod·!==·'function')·{\n······throw·new·TypeError('memoMethod·must·be·a·function·if·defined')\n····}\n····this.#memoMethod·=·memoMethod\n\n····if·(fetchMethod·!==·undefined·&&·typeof·fetchMethod·!==·'function')·{\n······throw·new·TypeError('fetchMethod·must·be·a·function·if·specified')\n····}\n····this.#fetchMethod·=·fetchMethod\n····this.#hasFetchMethod·=·!!fetchMethod\n\n····this.#keyMap·=·new·Map()\n····this.#keyList·=·new·Array(max).fill(undefined)\n····this.#valList·=·new·Array(max).fill(undefined)\n····this.#next·=·new·UintArray(max)\n····this.#prev·=·new·UintArray(max)\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free·=·Stack.create(max)\n····this.#size·=·0\n····this.#calculatedSize·=·0\n\n····if·(typeof·dispose·===·'function')·{\n······this.#dispose·=·dispose\n····}\n····if·(typeof·onInsert·===·'function')·{\n······this.#onInsert·=·onInsert\n····}\n····if·(typeof·disposeAfter·===·'function')·{\n······this.#disposeAfter·=·disposeAfter\n······this.#disposed·=·[]\n····}·else·{\n······this.#disposeAfter·=·undefined\n······this.#disposed·=·undefined\n····}\n····this.#hasDispose·=·!!this.#dispose\n····this.#hasOnInsert·=·!!this.#onInsert\n····this.#hasDisposeAfter·=·!!this.#disposeAfter\n\n····this.noDisposeOnSet·=·!!noDisposeOnSet\n····this.noUpdateTTL·=·!!noUpdateTTL\n····this.noDeleteOnFetchRejection·=·!!noDeleteOnFetchRejection\n····this.allowStaleOnFetchRejection·=·!!allowStaleOnFetchRejection\n····this.allowStaleOnFetchAbort·=·!!allowStaleOnFetchAbort\n····this.ignoreFetchAbort·=·!!ignoreFetchAbort\n\n····//·NB:·maxEntrySize·is·set·to·maxSize·if·it's·set\n····if·(this.maxEntrySize·!==·0)·{\n······if·(this.#maxSize·!==·0)·{\n········if·(!isPosInt(this.#maxSize))·{\n··········throw·new·TypeError(\n············'maxSize·must·be·a·positive·integer·if·specified',\n··········)\n········}\n······}\n······if·(!isPosInt(this.maxEntrySize))·{\n········throw·new·TypeError(\n··········'maxEntrySize·must·be·a·positive·integer·if·specified',\n········)\n······}\n······this.#initializeSizeTracking()\n····}\n\n····this.allowStale·=·!!allowStale\n····this.noDeleteOnStaleGet·=·!!noDeleteOnStaleGet\n····this.updateAgeOnGet·=·!!updateAgeOnGet\n····this.updateAgeOnHas·=·!!updateAgeOnHas\n····this.ttlResolution·=\n······isPosInt(ttlResolution)·||·ttlResolution·===·0·?·ttlResolution·:·1\n····this.ttlAutopurge·=·!!ttlAutopurge\n····this.ttl·=·ttl·||·0\n····if·(this.ttl)·{\n······if·(!isPosInt(this.ttl))·{\n········throw·new·TypeError('ttl·must·be·a·positive·integer·if·specified')\n······}\n······this.#initializeTTLTracking()\n····}\n\n····//·do·not·allow·completely·unbounded·caches\n····if·(this.#max·===·0·&&·this.ttl·===·0·&&·this.#maxSize·===·0)·{\n······throw·new·TypeError(\n········'At·least·one·of·max,·maxSize,·or·ttl·is·required',\n······)\n····}\n····if·(!this.ttlAutopurge·&&·!this.#max·&&·!this.#maxSize)·{\n······const·code·=·'LRU_CACHE_UNBOUNDED'\n······if·(shouldWarn(code))·{\n········warned.add(code)\n········const·msg·=\n··········'TTL·caching·without·ttlAutopurge,·max,·or·maxSize·can·'·+\n··········'result·in·unbounded·memory·consumption.'\n········emitWarning(msg,·'UnboundedCacheWarning',·code,·LRUCache)\n······}\n····}\n··}\n\n··/**\n···*·Return·the·number·of·ms·left·in·the·item's·TTL.·If·item·is·not·in·cache,\n···*·returns·`0`.·Returns·`Infinity`·if·item·is·in·cache·without·a·defined·TTL.\n···*/\n··getRemainingTTL(key:·K)·{\n····return·this.#keyMap.has(key)·?·Infinity·:·0\n··}\n\n··#initializeTTLTracking()·{\n····const·ttls·=·new·ZeroArray(this.#max)\n····const·starts·=·new·ZeroArray(this.#max)\n····this.#ttls·=·ttls\n····this.#starts·=·starts\n····const·purgeTimers·=\n······this.ttlAutopurge·?\n········new·Array<undefined·|·ReturnType<typeof·setTimeout>>(this.#max)\n······:·undefined\n····this.#autopurgeTimers·=·purgeTimers\n\n····this.#setItemTTL·=·(index,·ttl,·start·=·this.#perf.now())·=>·{\n······starts[index]·=·ttl·!==·0·?·start·:·0\n······ttls[index]·=·ttl\n······//·clear·out·the·purge·timer·if·we're·setting·TTL·to·0,·and\n······//·previously·had·a·ttl·purge·timer·running,·so·it·doesn't\n······//·fire·unnecessarily.\n······if·(purgeTimers?.[index])·{\n········clearTimeout(purgeTimers[index])\n········purgeTimers[index]·=·undefined\n······}\n······if·(ttl·!==·0·&&·purgeTimers)·{\n········const·t·=·setTimeout(()·=>·{\n··········if·(this.#isStale(index))·{\n············this.#delete(this.#keyList[index]·as·K,·'expire')\n··········}\n········},·ttl·+·1)\n········//·unref()·not·supported·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n········purgeTimers[index]·=·t\n······}\n····}\n\n····this.#updateItemAge·=·index·=>·{\n······starts[index]·=·ttls[index]·!==·0·?·this.#perf.now()·:·0\n····}\n\n····this.#statusTTL·=·(status,·index)·=>·{\n······if·(ttls[index])·{\n········const·ttl·=·ttls[index]\n········const·start·=·starts[index]\n········/*·c8·ignore·next·*/\n········if·(!ttl·||·!start)·return\n········status.ttl·=·ttl\n········status.start·=·start\n········status.now·=·cachedNow·||·getNow()\n········const·age·=·status.now·-·start\n········status.remainingTTL·=·ttl·-·age\n······}\n····}\n\n····//·debounce·calls·to·perf.now()·to·1s·so·we're·not·hitting\n····//·that·costly·call·repeatedly.\n····let·cachedNow·=·0\n····const·getNow·=·()·=>·{\n······const·n·=·this.#perf.now()\n······if·(this.ttlResolution·>·0)·{\n········cachedNow·=·n\n········const·t·=·setTimeout(()·=>·(cachedNow·=·0),·this.ttlResolution)\n········//·not·available·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n······}\n······return·n\n····}\n\n····this.getRemainingTTL·=·key·=>·{\n······const·index·=·this.#keyMap.get(key)\n······if·(index·===·undefined)·{\n········return·0\n······}\n······const·ttl·=·ttls[index]\n······const·start·=·starts[index]\n······if·(!ttl·||·!start)·{\n········return·Infinity\n······}\n······const·age·=·(cachedNow·||·getNow())·-·start\n······return·ttl·-·age\n····}\n\n····this.#isStale·=·index·=>·{\n······const·s·=·starts[index]\n······const·t·=·ttls[index]\n······return·!!t·&&·!!s·&&·(cachedNow·||·getNow())·-·s·>·t\n····}\n··}\n\n··//·conditionally·set·private·methods·related·to·TTL\n··#updateItemAge:·(index:·Index)·=>·void·=·()·=>·{}\n··#statusTTL:·(status:·LRUCache.Status<V>,·index:·Index)·=>·void·=·()·=>·{}\n··#setItemTTL:·(\n····index:·Index,\n····ttl:·LRUCache.Milliseconds,\n····start?:·LRUCache.Milliseconds,\n····//·ignore·because·we·never·call·this·if·we're·not·already·in·TTL·mode\n····/*·c8·ignore·start·*/\n··)·=>·void·=·()·=>·{}\n··/*·c8·ignore·stop·*/\n\n··#isStale:·(index:·Index)·=>·boolean·=·()·=>·false\n\n··#initializeSizeTracking()·{\n····const·sizes·=·new·ZeroArray(this.#max)\n····this.#calculatedSize·=·0\n····this.#sizes·=·sizes\n····this.#removeItemSize·=·index·=>·{\n······this.#calculatedSize·-=·sizes[index]·as·number\n······sizes[index]·=·0\n····}\n····this.#requireSize·=·(k,·v,·size,·sizeCalculation)·=>·{\n······//·provisionally·accept·background·fetches.\n······//·actual·value·size·will·be·checked·when·they·return.\n······if·(this.#isBackgroundFetch(v))·{\n········return·0\n······}\n······if·(!isPosInt(size))·{\n········if·(sizeCalculation)·{\n··········if·(typeof·sizeCalculation·!==·'function')·{\n············throw·new·TypeError('sizeCalculation·must·be·a·function')\n··········}\n··········size·=·sizeCalculation(v,·k)\n··········if·(!isPosInt(size))·{\n············throw·new·TypeError(\n··············'sizeCalculation·return·invalid·(expect·positive·integer)',\n············)\n··········}\n········}·else·{\n··········throw·new·TypeError(\n············'invalid·size·value·(must·be·positive·integer).·'·+\n··············'When·maxSize·or·maxEntrySize·is·used,·sizeCalculation·'·+\n··············'or·size·must·be·set.',\n··········)\n········}\n······}\n······return·size\n····}\n····this.#addItemSize·=·(\n······index:·Index,\n······size:·LRUCache.Size,\n······status?:·LRUCache.Status<V>,\n····)·=>·{\n······sizes[index]·=·size\n······if·(this.#maxSize)·{\n········const·maxSize·=·this.#maxSize·-·(sizes[index]·as·number)\n········while·(this.#calculatedSize·>·maxSize)·{\n··········this.#evict(true)\n········}\n······}\n······this.#calculatedSize·+=·sizes[index]·as·number\n······if·(status)·{\n········status.entrySize·=·size\n········status.totalCalculatedSize·=·this.#calculatedSize\n······}\n····}\n··}\n\n··#removeItemSize:·(index:·Index)·=>·void·=·_i·=>·{}\n··#addItemSize:·(\n····index:·Index,\n····size:·LRUCache.Size,\n····status?:·LRUCache.Status<V>,\n··)·=>·void·=·(_i,·_s,·_st)·=>·{}\n··#requireSize:·(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·LRUCache.Size·=·(\n····_k:·K,\n····_v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·{\n····if·(size·||·sizeCalculation)·{\n······throw·new·TypeError(\n········'cannot·set·size·without·setting·maxSize·or·maxEntrySize·on·cache',\n······)\n····}\n····return·0\n··};\n\n··*#indexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#tail;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#head)·{\n··········break\n········}·else·{\n··········i·=·this.#prev[i]·as·Index\n········}\n······}\n····}\n··}\n\n··*#rindexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#head;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#tail)·{\n··········break\n········}·else·{\n··········i·=·this.#next[i]·as·Index\n········}\n······}\n····}\n··}\n\n··#isValidIndex(index:·Index)·{\n····return·(\n······index·!==·undefined·&&\n······this.#keyMap.get(this.#keyList[index]·as·K)·===·index\n····)\n··}\n\n··/**\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*entries()·{\n····for·(const·i·of·this.#indexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]·as·[K,·V]\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.entries}\n···*\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rentries()·{\n····for·(const·i·of·this.#rindexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*keys()·{\n····for·(const·i·of·this.#indexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.keys}\n···*\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rkeys()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*values()·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]·as·V\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.values}\n···*\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rvalues()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]\n······}\n····}\n··}\n\n··/**\n···*·Iterating·over·the·cache·itself·yields·the·same·results·as\n···*·{@link·LRUCache.entries}\n···*/\n··[Symbol.iterator]()·{\n····return·this.entries()\n··}\n\n··/**\n···*·A·String·value·that·is·used·in·the·creation·of·the·default·string\n···*·description·of·an·object.·Called·by·the·built-in·method\n···*·`Object.prototype.toString`.\n···*/\n··[Symbol.toStringTag]·=·'LRUCache'\n\n··/**\n···*·Find·a·value·for·which·the·supplied·fn·method·returns·a·truthy·value,\n···*·similar·to·`Array.find()`.·fn·is·called·as·`fn(value,·key,·cache)`.\n···*/\n··find(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·boolean,\n····getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{},\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······if·(fn(value,·this.#keyList[i]·as·K,·this))·{\n········return·this.get(this.#keyList[i]·as·K,·getOptions)\n······}\n····}\n··}\n\n··/**\n···*·Call·the·supplied·function·on·each·item·in·the·cache,·in·order·from·most\n···*·recently·used·to·least·recently·used.\n···*\n···*·`fn`·is·called·as·`fn(value,·key,·cache)`.\n···*\n···*·If·`thisp`·is·provided,·function·will·be·called·in·the·`this`-context·of\n···*·the·provided·object,·or·the·cache·if·no·`thisp`·object·is·provided.\n···*\n···*·Does·not·update·age·or·recenty·of·use,·or·iterate·over·stale·values.\n···*/\n··forEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·The·same·as·{@link·LRUCache.forEach}·but·items·are·iterated·over·in\n···*·reverse·order.··(ie,·less·recently·used·items·are·iterated·over·first.)\n···*/\n··rforEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·Delete·any·stale·entries.·Returns·true·if·anything·was·removed,\n···*·false·otherwise.\n···*/\n··purgeStale()·{\n····let·deleted·=·false\n····for·(const·i·of·this.#rindexes({·allowStale:·true·}))·{\n······if·(this.#isStale(i))·{\n········this.#delete(this.#keyList[i]·as·K,·'expire')\n········deleted·=·true\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Get·the·extended·info·about·a·given·entry,·to·get·its·value,·size,·and\n···*·TTL·info·simultaneously.·Returns·`undefined`·if·the·key·is·not·present.\n···*\n···*·Unlike·{@link·LRUCache#dump},·which·is·designed·to·be·portable·and·survive\n···*·serialization,·the·`start`·value·is·always·the·current·timestamp,·and·the\n···*·`ttl`·is·a·calculated·remaining·time·to·live·(negative·if·expired).\n···*\n···*·Always·returns·stale·values,·if·their·info·is·found·in·the·cache,·so·be\n···*·sure·to·check·for·expirations·(ie,·a·negative·{@link·LRUCache.Entry#ttl})\n···*·if·relevant.\n···*/\n··info(key:·K):·LRUCache.Entry<V>·|·undefined·{\n····const·i·=·this.#keyMap.get(key)\n····if·(i·===·undefined)·return·undefined\n····const·v·=·this.#valList[i]\n····/*·c8·ignore·start·-·this·isn't·tested·for·the·info·function,\n·····*·but·it's·the·same·logic·as·found·in·other·places.·*/\n····const·value:·V·|·undefined·=\n······this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n····if·(value·===·undefined)·return·undefined\n····/*·c8·ignore·end·*/\n····const·entry:·LRUCache.Entry<V>·=·{·value·}\n····if·(this.#ttls·&&·this.#starts)·{\n······const·ttl·=·this.#ttls[i]\n······const·start·=·this.#starts[i]\n······if·(ttl·&&·start)·{\n········const·remain·=·ttl·-·(this.#perf.now()·-·start)\n········entry.ttl·=·remain\n········entry.start·=·Date.now()\n······}\n····}\n····if·(this.#sizes)·{\n······entry.size·=·this.#sizes[i]\n····}\n····return·entry\n··}\n\n··/**\n···*·Return·an·array·of·[key,·{@link·LRUCache.Entry}]·tuples·which·can·be\n···*·passed·to·{@link·LRUCache#load}.\n···*\n···*·The·`start`·fields·are·calculated·relative·to·a·portable·`Date.now()`\n···*·timestamp,·even·if·`performance.now()`·is·available.\n···*\n···*·Stale·entries·are·always·included·in·the·`dump`,·even·if\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·false.\n···*\n···*·Note:·this·returns·an·actual·array,·not·a·generator,·so·it·can·be·more\n···*·easily·passed·around.\n···*/\n··dump()·{\n····const·arr:·[K,·LRUCache.Entry<V>][]·=·[]\n····for·(const·i·of·this.#indexes({·allowStale:·true·}))·{\n······const·key·=·this.#keyList[i]\n······const·v·=·this.#valList[i]\n······const·value:·V·|·undefined·=\n········this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined·||·key·===·undefined)·continue\n······const·entry:·LRUCache.Entry<V>·=·{·value·}\n······if·(this.#ttls·&&·this.#starts)·{\n········entry.ttl·=·this.#ttls[i]\n········//·always·dump·the·start·relative·to·a·portable·timestamp\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·this.#perf.now()·-·(this.#starts[i]·as·number)\n········entry.start·=·Math.floor(Date.now()·-·age)\n······}\n······if·(this.#sizes)·{\n········entry.size·=·this.#sizes[i]\n······}\n······arr.unshift([key,·entry])\n····}\n····return·arr\n··}\n\n··/**\n···*·Reset·the·cache·and·load·in·the·items·in·entries·in·the·order·listed.\n···*\n···*·The·shape·of·the·resulting·cache·may·be·different·if·the·same·options·are\n···*·not·used·in·both·caches.\n···*\n···*·The·`start`·fields·are·assumed·to·be·calculated·relative·to·a·portable\n···*·`Date.now()`·timestamp,·even·if·`performance.now()`·is·available.\n···*/\n··load(arr:·[K,·LRUCache.Entry<V>][])·{\n····this.clear()\n····for·(const·[key,·entry]·of·arr)·{\n······if·(entry.start)·{\n········//·entry.start·is·a·portable·timestamp,·but·we·may·be·using\n········//·node's·performance.now(),·so·calculate·the·offset,·so·that\n········//·we·get·the·intended·remaining·TTL,·no·matter·how·long·it's\n········//·been·on·ice.\n········//\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·Date.now()·-·entry.start\n········entry.start·=·this.#perf.now()·-·age\n······}\n······this.set(key,·entry.value,·entry)\n····}\n··}\n\n··/**\n···*·Add·a·value·to·the·cache.\n···*\n···*·Note:·if·`undefined`·is·specified·as·a·value,·this·is·an·alias·for\n···*·{@link·LRUCache#delete}\n···*\n···*·Fields·on·the·{@link·LRUCache.SetOptions}·options·param·will·override\n···*·their·corresponding·values·in·the·constructor·options·for·the·scope\n···*·of·this·single·`set()`·operation.\n···*\n···*·If·`start`·is·provided,·then·that·will·set·the·effective·start\n···*·time·for·the·TTL·calculation.·Note·that·this·must·be·a·previous\n···*·value·of·`performance.now()`·if·supported,·or·a·previous·value·of\n···*·`Date.now()`·if·not.\n···*\n···*·Options·object·may·also·include·`size`,·which·will·prevent\n···*·calling·the·`sizeCalculation`·function·and·just·use·the·specified\n···*·number·if·it·is·a·positive·integer,·and·`noDisposeOnSet`·which\n···*·will·prevent·calling·a·`dispose`·function·in·the·case·of\n···*·overwrites.\n···*\n···*·If·the·`size`·(or·return·value·of·`sizeCalculation`)·for·a·given\n···*·entry·is·greater·than·`maxEntrySize`,·then·the·item·will·not·be\n···*·added·to·the·cache.\n···*\n···*·Will·update·the·recency·of·the·entry.\n···*\n···*·If·the·value·is·`undefined`,·then·this·is·an·alias·for\n···*·`cache.delete(key)`.·`undefined`·is·never·stored·in·the·cache.\n···*/\n··set(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>·|·undefined,\n····setOptions:·LRUCache.SetOptions<K,·V,·FC>·=·{},\n··)·{\n····if·(v·===·undefined)·{\n······this.delete(k)\n······return·this\n····}\n····const·{\n······ttl·=·this.ttl,\n······start,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······sizeCalculation·=·this.sizeCalculation,\n······status,\n····}·=·setOptions\n····let·{·noUpdateTTL·=·this.noUpdateTTL·}·=·setOptions\n\n····const·size·=·this.#requireSize(\n······k,\n······v,\n······setOptions.size·||·0,\n······sizeCalculation,\n····)\n····//·if·the·item·doesn't·fit,·don't·do·anything\n····//·NB:·maxEntrySize·set·to·maxSize·by·default\n····if·(this.maxEntrySize·&&·size·>·this.maxEntrySize)·{\n······if·(status)·{\n········status.set·=·'miss'\n········status.maxEntrySizeExceeded·=·true\n······}\n······//·have·to·delete,·in·case·something·is·there·already.\n······this.#delete(k,·'set')\n······return·this\n····}\n····let·index·=·this.#size·===·0·?·undefined·:·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······//·addition\n······index·=·(\n········this.#size·===·0·?·this.#tail\n········:·this.#free.length·!==·0·?·this.#free.pop()\n········:·this.#size·===·this.#max·?·this.#evict(false)\n········:·this.#size)·as·Index\n······this.#keyList[index]·=·k\n······this.#valList[index]·=·v\n······this.#keyMap.set(k,·index)\n······this.#next[this.#tail]·=·index\n······this.#prev[index]·=·this.#tail\n······this.#tail·=·index\n······this.#size++\n······this.#addItemSize(index,·size,·status)\n······if·(status)·status.set·=·'add'\n······noUpdateTTL·=·false\n······if·(this.#hasOnInsert)·{\n········this.#onInsert?.(v·as·V,·k,·'add')\n······}\n····}·else·{\n······//·update\n······this.#moveToTail(index)\n······const·oldVal·=·this.#valList[index]·as·V·|·BackgroundFetch<V>\n······if·(v·!==·oldVal)·{\n········if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(oldVal))·{\n··········oldVal.__abortController.abort(new·Error('replaced'))\n··········const·{·__staleWhileFetching:·s·}·=·oldVal\n··········if·(s·!==·undefined·&&·!noDisposeOnSet)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(s·as·V,·k,·'set')\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([s·as·V,·k,·'set'])\n············}\n··········}\n········}·else·if·(!noDisposeOnSet)·{\n··········if·(this.#hasDispose)·{\n············this.#dispose?.(oldVal·as·V,·k,·'set')\n··········}\n··········if·(this.#hasDisposeAfter)·{\n············this.#disposed?.push([oldVal·as·V,·k,·'set'])\n··········}\n········}\n········this.#removeItemSize(index)\n········this.#addItemSize(index,·size,·status)\n········this.#valList[index]·=·v\n········if·(status)·{\n··········status.set·=·'replace'\n··········const·oldValue·=\n············oldVal·&&·this.#isBackgroundFetch(oldVal)·?\n··············oldVal.__staleWhileFetching\n············:·oldVal\n··········if·(oldValue·!==·undefined)·status.oldValue·=·oldValue\n········}\n······}·else·if·(status)·{\n········status.set·=·'update'\n······}\n\n······if·(this.#hasOnInsert)·{\n········this.onInsert?.(v·as·V,·k,·v·===·oldVal·?·'update'·:·'replace')\n······}\n····}\n····if·(ttl·!==·0·&&·!this.#ttls)·{\n······this.#initializeTTLTracking()\n····}\n····if·(this.#ttls)·{\n······if·(!noUpdateTTL)·{\n········this.#setItemTTL(index,·ttl,·start)\n······}\n······if·(status)·this.#statusTTL(status,·index)\n····}\n····if·(!noDisposeOnSet·&&·this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·this\n··}\n\n··/**\n···*·Evict·the·least·recently·used·item,·returning·its·value·or\n···*·`undefined`·if·cache·is·empty.\n···*/\n··pop():·V·|·undefined·{\n····try·{\n······while·(this.#size)·{\n········const·val·=·this.#valList[this.#head]\n········this.#evict(true)\n········if·(this.#isBackgroundFetch(val))·{\n··········if·(val.__staleWhileFetching)·{\n············return·val.__staleWhileFetching\n··········}\n········}·else·if·(val·!==·undefined)·{\n··········return·val\n········}\n······}\n····}·finally·{\n······if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n········const·dt·=·this.#disposed\n········let·task:·DisposeTask<K,·V>·|·undefined\n········while·((task·=·dt?.shift()))·{\n··········this.#disposeAfter?.(...task)\n········}\n······}\n····}\n··}\n\n··#evict(free:·boolean)·{\n····const·head·=·this.#head\n····const·k·=·this.#keyList[head]·as·K\n····const·v·=·this.#valList[head]·as·V\n····if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(v))·{\n······v.__abortController.abort(new·Error('evicted'))\n····}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n······if·(this.#hasDispose)·{\n········this.#dispose?.(v,·k,·'evict')\n······}\n······if·(this.#hasDisposeAfter)·{\n········this.#disposed?.push([v,·k,·'evict'])\n······}\n····}\n····this.#removeItemSize(head)\n····if·(this.#autopurgeTimers?.[head])·{\n······clearTimeout(this.#autopurgeTimers[head])\n······this.#autopurgeTimers[head]·=·undefined\n····}\n····//·if·we·aren't·about·to·use·the·index,·then·null·these·out\n····if·(free)·{\n······this.#keyList[head]·=·undefined\n······this.#valList[head]·=·undefined\n······this.#free.push(head)\n····}\n····if·(this.#size·===·1)·{\n······this.#head·=·this.#tail·=·0·as·Index\n······this.#free.length·=·0\n····}·else·{\n······this.#head·=·this.#next[head]·as·Index\n····}\n····this.#keyMap.delete(k)\n····this.#size--\n····return·head\n··}\n\n··/**\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of·use.\n···*·Will·return·false·if·the·item·is·stale,·even·though·it·is·technically\n···*·in·the·cache.\n···*\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of\n···*·use.·Age·is·updated·if·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set\n···*·to·`true`·in·either·the·options·or·the·constructor.\n···*\n···*·Will·return·`false`·if·the·item·is·stale,·even·though·it·is·technically·in\n···*·the·cache.·The·difference·can·be·determined·(if·it·matters)·by·using·a\n···*·`status`·argument,·and·inspecting·the·`has`·field.\n···*\n···*·Will·not·update·item·age·unless\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set.\n···*/\n··has(k:·K,·hasOptions:·LRUCache.HasOptions<K,·V,·FC>·=·{})·{\n····const·{·updateAgeOnHas·=·this.updateAgeOnHas,·status·}·=·hasOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·v·=·this.#valList[index]\n······if·(\n········this.#isBackgroundFetch(v)·&&\n········v.__staleWhileFetching·===·undefined\n······)·{\n········return·false\n······}\n······if·(!this.#isStale(index))·{\n········if·(updateAgeOnHas)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·{\n··········status.has·=·'hit'\n··········this.#statusTTL(status,·index)\n········}\n········return·true\n······}·else·if·(status)·{\n········status.has·=·'stale'\n········this.#statusTTL(status,·index)\n······}\n····}·else·if·(status)·{\n······status.has·=·'miss'\n····}\n····return·false\n··}\n\n··/**\n···*·Like·{@link·LRUCache#get}·but·doesn't·update·recency·or·delete·stale\n···*·items.\n···*\n···*·Returns·`undefined`·if·the·item·is·stale,·unless\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·set.\n···*/\n··peek(k:·K,·peekOptions:·LRUCache.PeekOptions<K,·V,·FC>·=·{})·{\n····const·{·allowStale·=·this.allowStale·}·=·peekOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined·||·(!allowStale·&&·this.#isStale(index)))·{\n······return\n····}\n····const·v·=·this.#valList[index]\n····//·either·stale·and·allowed,·or·forcing·a·refresh·of·non-stale·value\n····return·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n··}\n\n··#backgroundFetch(\n····k:·K,\n····index:·Index·|·undefined,\n····options:·LRUCache.FetchOptions<K,·V,·FC>,\n····context:·any,\n··):·BackgroundFetch<V>·{\n····const·v·=·index·===·undefined·?·undefined·:·this.#valList[index]\n····if·(this.#isBackgroundFetch(v))·{\n······return·v\n····}\n\n····const·ac·=·new·AC()\n····const·{·signal·}·=·options\n····//·when/if·our·AC·signals,·then·stop·listening·to·theirs.\n····signal?.addEventListener('abort',·()·=>·ac.abort(signal.reason),·{\n······signal:·ac.signal,\n····})\n\n····const·fetchOpts·=·{\n······signal:·ac.signal,\n······options,\n······context,\n····}\n\n····const·cb·=·(v:·V·|·undefined,·updateCache·=·false):·V·|·undefined·=>·{\n······const·{·aborted·}·=·ac.signal\n······const·ignoreAbort·=·options.ignoreFetchAbort·&&·v·!==·undefined\n······ | 10 | ········"/**\n·*·@module·LRUCache\n·*/\n\n//·module-private·names·and·types\n//·this·provides·the·default·Perf·object·source.\n//·it·can·be·passed·in·via·configuration·to·override·it\n//·for·a·single·LRU·object.\nexport·type·Perf·=·{·now:·()·=>·number·}\nconst·defaultPerf:·Perf·=\n··(\n····typeof·performance·===·'object'·&&\n····performance·&&\n····typeof·performance.now·===·'function'\n··)·?\n····performance\n··:·Date\n\nconst·warned·=·new·Set<string>()\n\n//·either·a·function·or·a·class\ntype·ForC·=·((...a:·any[])·=>·any)·|·{·new·(...a:·any[]):·any·}\n\n/*·c8·ignore·start·*/\nconst·PROCESS·=·(\n··typeof·process·===·'object'·&&·!!process·?\n····process\n··:·{})·as·{·[k:·string]:·any·}\n/*·c8·ignore·start·*/\n\nconst·emitWarning·=·(\n··msg:·string,\n··type:·string,\n··code:·string,\n··fn:·ForC,\n)·=>·{\n··typeof·PROCESS.emitWarning·===·'function'·?\n····PROCESS.emitWarning(msg,·type,·code,·fn)\n··:·console.error(`[${code}]·${type}:·${msg}`)\n}\n\nlet·AC·=·globalThis.AbortController\nlet·AS·=·globalThis.AbortSignal\n\n/*·c8·ignore·start·*/\nif·(typeof·AC·===·'undefined')·{\n··//@ts-ignore\n··AS·=·class·AbortSignal·{\n····onabort?:·(...a:·any[])·=>·any\n····_onabort:·((...a:·any[])·=>·any)[]·=·[]\n····reason?:·any\n····aborted:·boolean·=·false\n····addEventListener(_:·string,·fn:·(...a:·any[])·=>·any)·{\n······this._onabort.push(fn)\n····}\n··}\n··//@ts-ignore\n··AC·=·class·AbortController·{\n····constructor()·{\n······warnACPolyfill()\n····}\n····signal·=·new·AS()\n····abort(reason:·any)·{\n······if·(this.signal.aborted)·return\n······//@ts-ignore\n······this.signal.reason·=·reason\n······//@ts-ignore\n······this.signal.aborted·=·true\n······//@ts-ignore\n······for·(const·fn·of·this.signal._onabort)·{\n········fn(reason)\n······}\n······this.signal.onabort?.(reason)\n····}\n··}\n··let·printACPolyfillWarning·=\n····PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING·!==·'1'\n··const·warnACPolyfill·=·()·=>·{\n····if·(!printACPolyfillWarning)·return\n····printACPolyfillWarning·=·false\n····emitWarning(\n······'AbortController·is·not·defined.·If·using·lru-cache·in·'·+\n········'node·14,·load·an·AbortController·polyfill·from·the·'·+\n········'`node-abort-controller`·package.·A·minimal·polyfill·is·'·+\n········'provided·for·use·by·LRUCache.fetch(),·but·it·should·not·be·'·+\n········'relied·upon·in·other·contexts·(eg,·passing·it·to·other·APIs·that·'·+\n········'use·AbortController/AbortSignal·might·have·undesirable·effects).·'·+\n········'You·may·disable·this·with·LRU_CACHE_IGNORE_AC_WARNING=1·in·the·env.',\n······'NO_ABORT_CONTROLLER',\n······'ENOTSUP',\n······warnACPolyfill,\n····)\n··}\n}\n/*·c8·ignore·stop·*/\n\nconst·shouldWarn·=·(code:·string)·=>·!warned.has(code)\n\nconst·TYPE·=·Symbol('type')\nexport·type·PosInt·=·number·&·{·[TYPE]:·'Positive·Integer'·}\nexport·type·Index·=·number·&·{·[TYPE]:·'LRUCache·Index'·}\n\nconst·isPosInt·=·(n:·any):·n·is·PosInt·=>\n··n·&&·n·===·Math.floor(n)·&&·n·>·0·&&·isFinite(n)\n\nexport·type·UintArray·=·Uint8Array·|·Uint16Array·|·Uint32Array\nexport·type·NumberArray·=·UintArray·|·number[]\n\n/*·c8·ignore·start·*/\n//·This·is·a·little·bit·ridiculous,·tbh.\n//·The·maximum·array·length·is·2^32-1·or·thereabouts·on·most·JS·impls.\n//·And·well·before·that·point,·you're·caching·the·entire·world,·I·mean,\n//·that's·~32GB·of·just·integers·for·the·next/prev·links,·plus·whatever\n//·else·to·hold·that·many·keys·and·values.··Just·filling·the·memory·with\n//·zeroes·at·init·time·is·brutal·when·you·get·that·big.\n//·But·why·not·be·complete?\n//·Maybe·in·the·future,·these·limits·will·have·expanded.\nconst·getUintArray·=·(max:·number)·=>\n··!isPosInt(max)·?·null\n··:·max·<=·Math.pow(2,·8)·?·Uint8Array\n··:·max·<=·Math.pow(2,·16)·?·Uint16Array\n··:·max·<=·Math.pow(2,·32)·?·Uint32Array\n··:·max·<=·Number.MAX_SAFE_INTEGER·?·ZeroArray\n··:·null\n/*·c8·ignore·stop·*/\n\nclass·ZeroArray·extends·Array<number>·{\n··constructor(size:·number)·{\n····super(size)\n····this.fill(0)\n··}\n}\nexport·type·{·ZeroArray·}\nexport·type·{·Stack·}\n\nexport·type·StackLike·=·Stack·|·Index[]\nclass·Stack·{\n··heap:·NumberArray\n··length:·number\n··//·private·constructor\n··static·#constructing:·boolean·=·false\n··static·create(max:·number):·StackLike·{\n····const·HeapCls·=·getUintArray(max)\n····if·(!HeapCls)·return·[]\n····Stack.#constructing·=·true\n····const·s·=·new·Stack(max,·HeapCls)\n····Stack.#constructing·=·false\n····return·s\n··}\n··constructor(max:·number,·HeapCls:·{·new·(n:·number):·NumberArray·})·{\n····/*·c8·ignore·start·*/\n····if·(!Stack.#constructing)·{\n······throw·new·TypeError('instantiate·Stack·using·Stack.create(n)')\n····}\n····/*·c8·ignore·stop·*/\n····this.heap·=·new·HeapCls(max)\n····this.length·=·0\n··}\n··push(n:·Index)·{\n····this.heap[this.length++]·=·n\n··}\n··pop():·Index·{\n····return·this.heap[--this.length]·as·Index\n··}\n}\n\n/**\n·*·Promise·representing·an·in-progress·{@link·LRUCache#fetch}·call\n·*/\nexport·type·BackgroundFetch<V>·=·Promise<V·|·undefined>·&·{\n··__returned:·BackgroundFetch<V>·|·undefined\n··__abortController:·AbortController\n··__staleWhileFetching:·V·|·undefined\n}\n\nexport·type·DisposeTask<K,·V>·=·[\n··value:·V,\n··key:·K,\n··reason:·LRUCache.DisposeReason,\n]\n\nexport·namespace·LRUCache·{\n··/**\n···*·An·integer·greater·than·0,·reflecting·the·calculated·size·of·items\n···*/\n··export·type·Size·=·number\n\n··/**\n···*·Integer·greater·than·0,·representing·some·number·of·milliseconds,·or·the\n···*·time·at·which·a·TTL·started·counting·from.\n···*/\n··export·type·Milliseconds·=·number\n\n··/**\n···*·An·integer·greater·than·0,·reflecting·a·number·of·items\n···*/\n··export·type·Count·=·number\n\n··/**\n···*·The·reason·why·an·item·was·removed·from·the·cache,·passed\n···*·to·the·{@link·Disposer}·methods.\n···*\n···*·-·`evict`:·The·item·was·evicted·because·it·is·the·least·recently·used,\n···*···and·the·cache·is·full.\n···*·-·`set`:·A·new·value·was·set,·overwriting·the·old·value·being·disposed.\n···*·-·`delete`:·The·item·was·explicitly·deleted,·either·by·calling\n···*···{@link·LRUCache#delete},·{@link·LRUCache#clear},·or\n···*···{@link·LRUCache#set}·with·an·undefined·value.\n···*·-·`expire`:·The·item·was·removed·due·to·exceeding·its·TTL.\n···*·-·`fetch`:·A·{@link·OptionsBase#fetchMethod}·operation·returned\n···*···`undefined`·or·was·aborted,·causing·the·item·to·be·deleted.\n···*/\n··export·type·DisposeReason·=\n····|·'evict'\n····|·'set'\n····|·'delete'\n····|·'expire'\n····|·'fetch'\n··/**\n···*·A·method·called·upon·item·removal,·passed·as·the\n···*·{@link·OptionsBase.dispose}·and/or\n···*·{@link·OptionsBase.disposeAfter}·options.\n···*/\n··export·type·Disposer<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·DisposeReason,\n··)·=>·void\n\n··/**\n···*·The·reason·why·an·item·was·added·to·the·cache,·passed\n···*·to·the·{@link·Inserter}·methods.\n···*\n···*·-·`add`:·the·item·was·not·found·in·the·cache,·and·was·added\n···*·-·`update`:·the·item·was·in·the·cache,·with·the·same·value·provided\n···*·-·`replace`:·the·item·was·in·the·cache,·and·replaced\n···*/\n··export·type·InsertReason·=·'add'·|·'update'·|·'replace'\n\n··/**\n···*·A·method·called·upon·item·insertion,·passed·as·the\n···*·{@link·OptionsBase.insert}\n···*/\n··export·type·Inserter<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·InsertReason,\n··)·=>·void\n\n··/**\n···*·A·function·that·returns·the·effective·calculated·size\n···*·of·an·entry·in·the·cache.\n···*/\n··export·type·SizeCalculator<K,·V>·=·(value:·V,·key:·K)·=>·Size\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.fetchMethod}·function.\n···*/\n··export·interface·FetcherOptions<K,·V,·FC·=·unknown>·{\n····signal:·AbortSignal\n····options:·FetcherFetchOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·FetchOptions.context}·option·to\n·····*·{@link·LRUCache#fetch}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·Occasionally,·it·may·be·useful·to·track·the·internal·behavior·of·the\n···*·cache,·particularly·for·logging,·debugging,·or·for·behavior·within·the\n···*·`fetchMethod`.·To·do·this,·you·can·pass·a·`status`·object·to·the\n···*·{@link·LRUCache#fetch},·{@link·LRUCache#get},·{@link·LRUCache#set},\n···*·{@link·LRUCache#memo},·and·{@link·LRUCache#has}·methods.\n···*\n···*·The·`status`·option·should·be·a·plain·JavaScript·object.·The·following\n···*·fields·will·be·set·on·it·appropriately,·depending·on·the·situation.\n···*/\n··export·interface·Status<V>·{\n····/**\n·····*·The·status·of·a·set()·operation.\n·····*\n·····*·-·add:·the·item·was·not·found·in·the·cache,·and·was·added\n·····*·-·update:·the·item·was·in·the·cache,·with·the·same·value·provided\n·····*·-·replace:·the·item·was·in·the·cache,·and·replaced\n·····*·-·miss:·the·item·was·not·added·to·the·cache·for·some·reason\n·····*/\n····set?:·'add'·|·'update'·|·'replace'·|·'miss'\n\n····/**\n·····*·the·ttl·stored·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·the·start·time·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····start?:·Milliseconds\n\n····/**\n·····*·The·timestamp·used·for·TTL·calculation\n·····*/\n····now?:·Milliseconds\n\n····/**\n·····*·the·remaining·ttl·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····remainingTTL?:·Milliseconds\n\n····/**\n·····*·The·calculated·size·for·the·item,·if·sizes·are·used.\n·····*/\n····entrySize?:·Size\n\n····/**\n·····*·The·total·calculated·size·of·the·cache,·if·sizes·are·used.\n·····*/\n····totalCalculatedSize?:·Size\n\n····/**\n·····*·A·flag·indicating·that·the·item·was·not·stored,·due·to·exceeding·the\n·····*·{@link·OptionsBase.maxEntrySize}\n·····*/\n····maxEntrySizeExceeded?:·true\n\n····/**\n·····*·The·old·value,·specified·in·the·case·of·`set:'update'`·or\n·····*·`set:'replace'`\n·····*/\n····oldValue?:·V\n\n····/**\n·····*·The·results·of·a·{@link·LRUCache#has}·operation\n·····*\n·····*·-·hit:·the·item·was·found·in·the·cache\n·····*·-·stale:·the·item·was·found·in·the·cache,·but·is·stale\n·····*·-·miss:·the·item·was·not·found·in·the·cache\n·····*/\n····has?:·'hit'·|·'stale'·|·'miss'\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#fetch}·operation.\n·····*·Note·that·this·can·change·as·the·underlying·fetch()·moves·through\n·····*·various·states.\n·····*\n·····*·-·inflight:·there·is·another·fetch()·for·this·key·which·is·in·process\n·····*·-·get:·there·is·no·{@link·OptionsBase.fetchMethod},·so\n·····*···{@link·LRUCache#get}·was·called.\n·····*·-·miss:·the·item·is·not·in·cache,·and·will·be·fetched.\n·····*·-·hit:·the·item·is·in·the·cache,·and·was·resolved·immediately.\n·····*·-·stale:·the·item·is·in·the·cache,·but·stale.\n·····*·-·refresh:·the·item·is·in·the·cache,·and·not·stale,·but\n·····*···{@link·FetchOptions.forceRefresh}·was·specified.\n·····*/\n····fetch?:·'get'·|·'inflight'·|·'miss'·|·'hit'·|·'stale'·|·'refresh'\n\n····/**\n·····*·The·{@link·OptionsBase.fetchMethod}·was·called\n·····*/\n····fetchDispatched?:·true\n\n····/**\n·····*·The·cached·value·was·updated·after·a·successful·call·to\n·····*·{@link·OptionsBase.fetchMethod}\n·····*/\n····fetchUpdated?:·true\n\n····/**\n·····*·The·reason·for·a·fetch()·rejection.··Either·the·error·raised·by·the\n·····*·{@link·OptionsBase.fetchMethod},·or·the·reason·for·an\n·····*·AbortSignal.\n·····*/\n····fetchError?:·Error\n\n····/**\n·····*·The·fetch·received·an·abort·signal\n·····*/\n····fetchAborted?:·true\n\n····/**\n·····*·The·abort·signal·received·was·ignored,·and·the·fetch·was·allowed·to\n·····*·continue.\n·····*/\n····fetchAbortIgnored?:·true\n\n····/**\n·····*·The·fetchMethod·promise·resolved·successfully\n·····*/\n····fetchResolved?:·true\n\n····/**\n·····*·The·fetchMethod·promise·was·rejected\n·····*/\n····fetchRejected?:·true\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#get}·operation.\n·····*\n·····*·-·fetching:·The·item·is·currently·being·fetched.··If·a·previous·value\n·····*···is·present·and·allowed,·that·will·be·returned.\n·····*·-·stale:·The·item·is·in·the·cache,·and·is·stale.\n·····*·-·hit:·the·item·is·in·the·cache\n·····*·-·miss:·the·item·is·not·in·the·cache\n·····*/\n····get?:·'stale'·|·'hit'·|·'miss'\n\n····/**\n·····*·A·fetch·or·get·operation·returned·a·stale·value.\n·····*/\n····returnedStale?:·true\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#fetch}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·OptionsBase.noDeleteOnFetchRejection},\n···*·{@link·OptionsBase.allowStaleOnFetchRejection},\n···*·{@link·FetchOptions.forceRefresh},·and\n···*·{@link·FetcherOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.fetchMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·fetchMethod·is·called.\n···*/\n··export·interface·FetcherFetchOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#fetch}·method.\n···*/\n··export·interface·FetchOptions<K,·V,·FC>\n····extends·FetcherFetchOptions<K,·V,·FC>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.fetchMethod}·as\n·····*·the·{@link·FetcherOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····signal?:·AbortSignal\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·FetchOptionsWithContext<K,·V,·FC>\n····extends·FetchOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·FetchOptionsNoContext<K,·V>\n····extends·FetchOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··export·interface·MemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.memoMethod}·as\n·····*·the·{@link·MemoizerOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·MemoOptionsWithContext<K,·V,·FC>\n····extends·MemoOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·MemoOptionsNoContext<K,·V>\n····extends·MemoOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.memoMethod}·function.\n···*/\n··export·interface·MemoizerOptions<K,·V,·FC·=·unknown>·{\n····options:·MemoizerMemoOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·MemoOptions.context}·option·to\n·····*·{@link·LRUCache#memo}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#memo}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·MemoOptions.forceRefresh},·and\n···*·{@link·MemoOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.memoMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·memoMethod·is·called.\n···*/\n··export·interface·MemoizerMemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n····start?:·Milliseconds\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#has}·method.\n···*/\n··export·interface·HasOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'updateAgeOnHas'>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#get}·method.\n···*/\n··export·interface·GetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'allowStale'·|·'updateAgeOnGet'·|·'noDeleteOnStaleGet'\n····>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#peek}·method.\n···*/\n··export·interface·PeekOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'allowStale'>·{}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#set}·method.\n···*/\n··export·interface·SetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'sizeCalculation'·|·'ttl'·|·'noDisposeOnSet'·|·'noUpdateTTL'\n····>·{\n····/**\n·····*·If·size·tracking·is·enabled,·then·setting·an·explicit·size\n·····*·in·the·{@link·LRUCache#set}·call·will·prevent·calling·the\n·····*·{@link·OptionsBase.sizeCalculation}·function.\n·····*/\n····size?:·Size\n····/**\n·····*·If·TTL·tracking·is·enabled,·then·setting·an·explicit·start\n·····*·time·in·the·{@link·LRUCache#set}·call·will·override·the\n·····*·default·time·from·`performance.now()`·or·`Date.now()`.\n·····*\n·····*·Note·that·it·must·be·a·valid·value·for·whichever·time-tracking\n·····*·method·is·in·use.\n·····*/\n····start?:·Milliseconds\n····status?:·Status<V>\n··}\n\n··/**\n···*·The·type·signature·for·the·{@link·OptionsBase.fetchMethod}·option.\n···*/\n··export·type·Fetcher<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·FetcherOptions<K,·V,·FC>,\n··)·=>·Promise<V·|·undefined·|·void>·|·V·|·undefined·|·void\n\n··/**\n···*·the·type·signature·for·the·{@link·OptionsBase.memoMethod}·option.\n···*/\n··export·type·Memoizer<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·MemoizerOptions<K,·V,·FC>,\n··)·=>·V\n\n··/**\n···*·Options·which·may·be·passed·to·the·{@link·LRUCache}·constructor.\n···*\n···*·Most·of·these·may·be·overridden·in·the·various·options·that·use\n···*·them.\n···*\n···*·Despite·all·being·technically·optional,·the·constructor·requires·that\n···*·a·cache·is·at·minimum·limited·by·one·or·more·of·{@link·OptionsBase.max},\n···*·{@link·OptionsBase.ttl},·or·{@link·OptionsBase.maxSize}.\n···*\n···*·If·{@link·OptionsBase.ttl}·is·used·alone,·then·it·is·strongly·advised\n···*·(and·in·fact·required·by·the·type·definitions·here)·that·the·cache\n···*·also·set·{@link·OptionsBase.ttlAutopurge},·to·prevent·potentially\n···*·unbounded·storage.\n···*\n···*·All·options·are·also·available·on·the·{@link·LRUCache}·instance,·making\n···*·it·safe·to·pass·an·LRUCache·instance·as·the·options·argumemnt·to\n···*·make·another·empty·cache·of·the·same·type.\n···*\n···*·Some·options·are·marked·as·read-only,·because·changing·them·after\n···*·instantiation·is·not·safe.·Changing·any·of·the·other·options·will·of\n···*·course·only·have·an·effect·on·subsequent·method·calls.\n···*/\n··export·interface·OptionsBase<K,·V,·FC>·{\n····/**\n·····*·The·maximum·number·of·items·to·store·in·the·cache·before·evicting\n·····*·old·entries.·This·is·read-only·on·the·{@link·LRUCache}·instance,\n·····*·and·may·not·be·overridden.\n·····*\n·····*·If·set,·then·storage·space·will·be·pre-allocated·at·construction\n·····*·time,·and·the·cache·will·perform·significantly·faster.\n·····*\n·····*·Note·that·significantly·fewer·items·may·be·stored,·if\n·····*·{@link·OptionsBase.maxSize}·and/or·{@link·OptionsBase.ttl}·are·also\n·····*·set.\n·····*\n·····*·**It·is·strongly·recommended·to·set·a·`max`·to·prevent·unbounded·growth\n·····*·of·the·cache.**\n·····*/\n····max?:·Count\n\n····/**\n·····*·Max·time·in·milliseconds·for·items·to·live·in·cache·before·they·are\n·····*·considered·stale.··Note·that·stale·items·are·NOT·preemptively·removed·by\n·····*·default,·and·MAY·live·in·the·cache,·contributing·to·its·LRU·max,·long\n·····*·after·they·have·expired,·unless·{@link·OptionsBase.ttlAutopurge}·is\n·····*·set.\n·····*\n·····*·If·set·to·`0`·(the·default·value),·then·that·means·\"do·not·track\n·····*·TTL\",·not·\"expire·immediately\".\n·····*\n·····*·Also,·as·this·cache·is·optimized·for·LRU/MRU·operations,·some·of\n·····*·the·staleness/TTL·checks·will·reduce·performance,·as·they·will·incur\n·····*·overhead·by·deleting·items.\n·····*\n·····*·This·is·not·primarily·a·TTL·cache,·and·does·not·make·strong·TTL\n·····*·guarantees.·There·is·no·pre-emptive·pruning·of·expired·items,·but·you\n·····*·_may_·set·a·TTL·on·the·cache,·and·it·will·treat·expired·items·as·missing\n·····*·when·they·are·fetched,·and·delete·them.\n·····*\n·····*·Optional,·but·must·be·a·non-negative·integer·in·ms·if·specified.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.set()`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·ttl·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·If·ttl·tracking·is·enabled,·and·`max`·and·`maxSize`·are·not·set,\n·····*·and·`ttlAutopurge`·is·not·set,·then·a·warning·will·be·emitted\n·····*·cautioning·about·the·potential·for·unbounded·memory·consumption.\n·····*·(The·TypeScript·definitions·will·also·discourage·this.)\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·Minimum·amount·of·time·in·ms·in·which·to·check·for·staleness.\n·····*·Defaults·to·1,·which·means·that·the·current·time·is·checked\n·····*·at·most·once·per·millisecond.\n·····*\n·····*·Set·to·0·to·check·the·current·time·every·time·staleness·is·tested.\n·····*·(This·reduces·performance,·and·is·theoretically·unnecessary.)\n·····*\n·····*·Setting·this·to·a·higher·value·will·improve·performance·somewhat\n·····*·while·using·ttl·tracking,·albeit·at·the·expense·of·keeping·stale\n·····*·items·around·a·bit·longer·than·their·TTLs·would·indicate.\n·····*\n·····*·@default·1\n·····*/\n····ttlResolution?:·Milliseconds\n\n····/**\n·····*·Preemptively·remove·stale·items·from·the·cache.\n·····*\n·····*·Note·that·this·may·*significantly*·degrade·performance,·especially·if\n·····*·the·cache·is·storing·a·large·number·of·items.·It·is·almost·always·best\n·····*·to·just·leave·the·stale·items·in·the·cache,·and·let·them·fall·out·as·new\n·····*·items·are·added.\n·····*\n·····*·Note·that·this·means·that·{@link·OptionsBase.allowStale}·is·a·bit\n·····*·pointless,·as·stale·items·will·be·deleted·almost·as·soon·as·they\n·····*·expire.\n·····*\n·····*·Use·with·caution!\n·····*/\n····ttlAutopurge?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·it·is·retrieved·from·cache·with\n·····*·{@link·LRUCache#get},·causing·it·to·not·expire.·(It·can·still·fall·out\n·····*·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*/\n····updateAgeOnGet?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·its·presence·in·the·cache·is\n·····*·checked·with·{@link·LRUCache#has},·causing·it·to·not·expire.·(It·can\n·····*·still·fall·out·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*/\n····updateAgeOnHas?:·boolean\n\n····/**\n·····*·Allow·{@link·LRUCache#get}·and·{@link·LRUCache#fetch}·calls·to·return\n·····*·stale·data,·if·available.\n·····*\n·····*·By·default,·if·you·set·`ttl`,·stale·items·will·only·be·deleted·from·the\n·····*·cache·when·you·`get(key)`.·That·is,·it's·not·preemptively·pruning·items,\n·····*·unless·{@link·OptionsBase.ttlAutopurge}·is·set.\n·····*\n·····*·If·you·set·`allowStale:true`,·it'll·return·the·stale·value·*as·well·as*\n·····*·deleting·it.·If·you·don't·set·this,·then·it'll·return·`undefined`·when\n·····*·you·try·to·get·a·stale·entry.\n·····*\n·····*·Note·that·when·a·stale·entry·is·fetched,·_even·if·it·is·returned·due·to\n·····*·`allowStale`·being·set_,·it·is·removed·from·the·cache·immediately.·You\n·····*·can·suppress·this·behavior·by·setting\n·····*·{@link·OptionsBase.noDeleteOnStaleGet},·either·in·the·constructor,·or·in\n·····*·the·options·provided·to·{@link·LRUCache#get}.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*·The·`cache.has()`·method·will·always·return·`false`·for·stale·items.\n·····*\n·····*·Only·relevant·if·a·ttl·is·set.\n·····*/\n····allowStale?:·boolean\n\n····/**\n·····*·Function·that·is·called·on·items·when·they·are·dropped·from·the\n·····*·cache,·as·`dispose(value,·key,·reason)`.\n·····*\n·····*·This·can·be·handy·if·you·want·to·close·file·descriptors·or·do\n·····*·other·cleanup·tasks·when·items·are·no·longer·stored·in·the·cache.\n·····*\n·····*·**NOTE**:·It·is·called·_before_·the·item·has·been·fully·removed\n·····*·from·the·cache,·so·if·you·want·to·put·it·right·back·in,·you·need\n·····*·to·wait·until·the·next·tick.·If·you·try·to·add·it·back·in·during\n·····*·the·`dispose()`·function·call,·it·will·break·things·in·subtle·and\n·····*·weird·ways.\n·····*\n·····*·Unlike·several·other·options,·this·may·_not_·be·overridden·by\n·····*·passing·an·option·to·`set()`,·for·performance·reasons.\n·····*\n·····*·The·`reason`·will·be·one·of·the·following·strings,·corresponding\n·····*·to·the·reason·for·the·item's·deletion:\n·····*\n·····*·-·`evict`·Item·was·evicted·to·make·space·for·a·new·addition\n·····*·-·`set`·Item·was·overwritten·by·a·new·value\n·····*·-·`expire`·Item·expired·its·TTL\n·····*·-·`fetch`·Item·was·deleted·due·to·a·failed·or·aborted·fetch,·or·a\n·····*···fetchMethod·returning·`undefined.\n·····*·-·`delete`·Item·was·removed·by·explicit·`cache.delete(key)`,\n·····*···`cache.clear()`,·or·`cache.set(key,·undefined)`.\n·····*/\n····dispose?:·Disposer<K,·V>\n\n····/**\n·····*·Function·that·is·called·when·new·items·are·inserted·into·the·cache,\n·····*·as·`onInsert(value,·key,·reason)`.\n·····*\n·····*·This·can·be·useful·if·you·need·to·perform·actions·when·an·item·is\n·····*·added,·such·as·logging·or·tracking·insertions.\n·····*\n·····*·Unlike·some·other·options,·this·may·_not_·be·overridden·by·passing\n·····*·an·option·to·`set()`,·for·performance·and·consistency·reasons.\n·····*/\n····onInsert?:·Inserter<K,·V>\n\n····/**\n·····*·The·same·as·{@link·OptionsBase.dispose},·but·called·*after*·the·entry\n·····*·is·completely·removed·and·the·cache·is·once·again·in·a·clean·state.\n·····*\n·····*·It·is·safe·to·add·an·item·right·back·into·the·cache·at·this·point.\n·····*·However,·note·that·it·is·*very*·easy·to·inadvertently·create·infinite\n·····*·recursion·this·way.\n·····*/\n····disposeAfter?:·Disposer<K,·V>\n\n····/**\n·····*·Set·to·true·to·suppress·calling·the\n·····*·{@link·OptionsBase.dispose}·function·if·the·entry·key·is\n·····*·still·accessible·within·the·cache.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to\n·····*·{@link·LRUCache#set}.\n·····*\n·····*·Only·relevant·if·`dispose`·or·`disposeAfter`·are·set.\n·····*/\n····noDisposeOnSet?:·boolean\n\n····/**\n·····*·Boolean·flag·to·tell·the·cache·to·not·update·the·TTL·when·setting·a·new\n·····*·value·for·an·existing·key·(ie,·when·updating·a·value·rather·than\n·····*·inserting·a·new·value).··Note·that·the·TTL·value·is·_always_·set·(if\n·····*·provided)·when·adding·a·new·entry·into·the·cache.\n·····*\n·····*·Has·no·effect·if·a·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·May·be·passed·as·an·option·to·{@link·LRUCache#set}.\n·····*/\n····noUpdateTTL?:·boolean\n\n····/**\n·····*·Set·to·a·positive·integer·to·track·the·sizes·of·items·added·to·the\n·····*·cache,·and·automatically·evict·items·in·order·to·stay·below·this·size.\n·····*·Note·that·this·may·result·in·fewer·than·`max`·items·being·stored.\n·····*\n·····*·Attempting·to·add·an·item·to·the·cache·whose·calculated·size·is·greater\n·····*·that·this·amount·will·be·a·no-op.·The·item·will·not·be·cached,·and·no\n·····*·other·items·will·be·evicted.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.\n·····*\n·····*·Sets·`maxEntrySize`·to·the·same·value,·unless·a·different·value·is\n·····*·provided·for·`maxEntrySize`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·size·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·Note·also·that·size·tracking·can·negatively·impact·performance,\n·····*·though·for·most·cases,·only·minimally.\n·····*/\n····maxSize?:·Size\n\n····/**\n·····*·The·maximum·allowed·size·for·any·single·item·in·the·cache.\n·····*\n·····*·If·a·larger·item·is·passed·to·{@link·LRUCache#set}·or·returned·by·a\n·····*·{@link·OptionsBase.fetchMethod}·or·{@link·OptionsBase.memoMethod},·then\n·····*·it·will·not·be·stored·in·the·cache.\n·····*\n·····*·Attempting·to·add·an·item·whose·calculated·size·is·greater·than\n·····*·this·amount·will·not·cache·the·item·or·evict·any·old·items,·but\n·····*·WILL·delete·an·existing·value·if·one·is·already·present.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.·Defaults·to\n·····*·the·value·of·`maxSize`·if·provided.\n·····*/\n····maxEntrySize?:·Size\n\n····/**\n·····*·A·function·that·returns·a·number·indicating·the·item's·size.\n·····*\n·····*·Requires·{@link·OptionsBase.maxSize}·to·be·set.\n·····*\n·····*·If·not·provided,·and·{@link·OptionsBase.maxSize}·or\n·····*·{@link·OptionsBase.maxEntrySize}·are·set,·then·all\n·····*·{@link·LRUCache#set}·calls·**must**·provide·an·explicit\n·····*·{@link·SetOptions.size}·or·sizeCalculation·param.\n·····*/\n····sizeCalculation?:·SizeCalculator<K,·V>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#fetch}\n·····*\n·····*·```ts\n·····*·fetchMethod(key,·staleValue,·{·signal,·options,·context·})\n·····*·```\n·····*\n·····*·If·`fetchMethod`·is·not·provided,·then·`cache.fetch(key)`·is·equivalent\n·····*·to·`Promise.resolve(cache.get(key))`.\n·····*\n·····*·If·at·any·time,·`signal.aborted`·is·set·to·`true`,·or·if·the\n·····*·`signal.onabort`·method·is·called,·or·if·it·emits·an·`'abort'`·event\n·····*·which·you·can·listen·to·with·`addEventListener`,·then·that·means·that\n·····*·the·fetch·should·be·abandoned.·This·may·be·passed·along·to·async\n·····*·functions·aware·of·AbortController/AbortSignal·behavior.\n·····*\n·····*·The·`fetchMethod`·should·**only**·return·`undefined`·or·a·Promise\n·····*·resolving·to·`undefined`·if·the·AbortController·signaled·an·`abort`\n·····*·event.·In·all·other·cases,·it·should·return·or·resolve·to·a·value\n·····*·suitable·for·adding·to·the·cache.\n·····*\n·····*·The·`options`·object·is·a·union·of·the·options·that·may·be·provided·to\n·····*·`set()`·and·`get()`.·If·they·are·modified,·then·that·will·result·in\n·····*·modifying·the·settings·to·`cache.set()`·when·the·value·is·resolved,·and\n·····*·in·the·case·of\n·····*·{@link·OptionsBase.noDeleteOnFetchRejection}·and\n·····*·{@link·OptionsBase.allowStaleOnFetchRejection},·the·handling·of\n·····*·`fetchMethod`·failures.\n·····*\n·····*·For·example,·a·DNS·cache·may·update·the·TTL·based·on·the·value·returned\n·····*·from·a·remote·DNS·server·by·changing·`options.ttl`·in·the·`fetchMethod`.\n·····*/\n····fetchMethod?:·Fetcher<K,·V,·FC>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#memo}\n·····*/\n····memoMethod?:·Memoizer<K,·V,·FC>\n\n····/**\n·····*·Set·to·true·to·suppress·the·deletion·of·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·returns·a·rejected·promise.\n·····*/\n····noDeleteOnFetchRejection?:·boolean\n\n····/**\n·····*·Do·not·delete·stale·items·when·they·are·retrieved·with\n·····*·{@link·LRUCache#get}.\n·····*\n·····*·Note·that·the·`get`·return·value·will·still·be·`undefined`\n·····*·unless·{@link·OptionsBase.allowStale}·is·true.\n·····*\n·····*·When·using·time-expiring·entries·with·`ttl`,·by·default·stale\n·····*·items·will·be·removed·from·the·cache·when·the·key·is·accessed\n·····*·with·`cache.get()`.\n·····*\n·····*·Setting·this·option·will·cause·stale·items·to·remain·in·the·cache,·until\n·····*·they·are·explicitly·deleted·with·`cache.delete(key)`,·or·retrieved·with\n·····*·`noDeleteOnStaleGet`·set·to·`false`.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*\n·····*·Only·relevant·if·a·ttl·is·used.\n·····*/\n····noDeleteOnStaleGet?:·boolean\n\n····/**\n·····*·Set·to·true·to·allow·returning·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·throws·an·error·or·returns·a·rejected\n·····*·promise.\n·····*\n·····*·This·differs·from·using·{@link·OptionsBase.allowStale}·in·that·stale\n·····*·data·will·ONLY·be·returned·in·the·case·that·the·{@link·LRUCache#fetch}\n·····*·fails,·not·any·other·times.\n·····*\n·····*·If·a·`fetchMethod`·fails,·and·there·is·no·stale·value·available,·the\n·····*·`fetch()`·will·resolve·to·`undefined`.·Ie,·all·`fetchMethod`·errors·are\n·····*·suppressed.\n·····*\n·····*·Implies·`noDeleteOnFetchRejection`.\n·····*\n·····*·This·may·be·set·in·calls·to·`fetch()`,·or·defaulted·on·the·constructor,\n·····*·or·overridden·by·modifying·the·options·object·in·the·`fetchMethod`.\n·····*/\n····allowStaleOnFetchRejection?:·boolean\n\n····/**\n·····*·Set·to·true·to·return·a·stale·value·from·the·cache·when·the\n·····*·`AbortSignal`·passed·to·the·{@link·OptionsBase.fetchMethod}·dispatches\n·····*·an·`'abort'`·event,·whether·user-triggered,·or·due·to·internal·cache\n·····*·behavior.\n·····*\n·····*·Unless·{@link·OptionsBase.ignoreFetchAbort}·is·also·set,·the·underlying\n·····*·{@link·OptionsBase.fetchMethod}·will·still·be·considered·canceled,·and\n·····*·any·value·it·returns·will·be·ignored·and·not·cached.\n·····*\n·····*·Caveat:·since·fetches·are·aborted·when·a·new·value·is·explicitly\n·····*·set·in·the·cache,·this·can·lead·to·fetch·returning·a·stale·value,\n·····*·since·that·was·the·fallback·value·_at·the·moment·the·`fetch()`·was\n·····*·initiated_,·even·though·the·new·updated·value·is·now·present·in\n·····*·the·cache.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·cache·=·new·LRUCache<string,·any>({\n·····*···ttl:·100,\n·····*···fetchMethod:·async·(url,·oldValue,·{·signal·})·=>··{\n·····*·····const·res·=·await·fetch(url,·{·signal·})\n·····*·····return·await·res.json()\n·····*···}\n·····*·})\n·····*·cache.set('https://example.com/',·{·some:·'data'·})\n·····*·//·100ms·go·by...\n·····*·const·result·=·cache.fetch('https://example.com/')\n·····*·cache.set('https://example.com/',·{·other:·'thing'·})\n·····*·console.log(await·result)·//·{·some:·'data'·}\n·····*·console.log(cache.get('https://example.com/'))·//·{·other:·'thing'·}\n·····*·```\n·····*/\n····allowStaleOnFetchAbort?:·boolean\n\n····/**\n·····*·Set·to·true·to·ignore·the·`abort`·event·emitted·by·the·`AbortSignal`\n·····*·object·passed·to·{@link·OptionsBase.fetchMethod},·and·still·cache·the\n·····*·resulting·resolution·value,·as·long·as·it·is·not·`undefined`.\n·····*\n·····*·When·used·on·its·own,·this·means·aborted·{@link·LRUCache#fetch}·calls\n·····*·are·not·immediately·resolved·or·rejected·when·they·are·aborted,·and\n·····*·instead·take·the·full·time·to·await.\n·····*\n·····*·When·used·with·{@link·OptionsBase.allowStaleOnFetchAbort},·aborted\n·····*·{@link·LRUCache#fetch}·calls·will·resolve·immediately·to·their·stale\n·····*·cached·value·or·`undefined`,·and·will·continue·to·process·and·eventually\n·····*·update·the·cache·when·they·resolve,·as·long·as·the·resulting·value·is\n·····*·not·`undefined`,·thus·supporting·a·\"return·stale·on·timeout·while\n·····*·refreshing\"·mechanism·by·passing·`AbortSignal.timeout(n)`·as·the·signal.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·c·=·new·LRUCache({\n·····*···ttl:·100,\n·····*···ignoreFetchAbort:·true,\n·····*···allowStaleOnFetchAbort:·true,\n·····*···fetchMethod:·async·(key,·oldValue,·{·signal·})·=>·{\n·····*·····//·note:·do·NOT·pass·the·signal·to·fetch()!\n·····*·····//·let's·say·this·fetch·can·take·a·long·time.\n·····*·····const·res·=·await·fetch(`https://slow-backend-server/${key}`)\n·····*·····return·await·res.json()\n·····*···},\n·····*·})\n·····*\n·····*·//·this·will·return·the·stale·value·after·100ms,·while·still\n·····*·//·updating·in·the·background·for·next·time.\n·····*·const·val·=·await·c.fetch('key',·{·signal:·AbortSignal.timeout(100)·})\n·····*·```\n·····*\n·····*·**Note**:·regardless·of·this·setting,·an·`abort`·event·_is·still\n·····*·emitted·on·the·`AbortSignal`·object_,·so·may·result·in·invalid·results\n·····*·when·passed·to·other·underlying·APIs·that·use·AbortSignals.\n·····*\n·····*·This·may·be·overridden·in·the·{@link·OptionsBase.fetchMethod}·or·the\n·····*·call·to·{@link·LRUCache#fetch}.\n·····*/\n····ignoreFetchAbort?:·boolean\n\n····/**\n·····*·In·some·cases,·you·may·want·to·swap·out·the·performance/Date·object\n·····*·used·for·TTL·tracking.·This·should·almost·certainly·NOT·be·done·in\n·····*·production·environments!\n·····*\n·····*·This·value·defaults·to·`global.performance`·if·it·has·a·`now()`·method,\n·····*·or·the·`global.Date`·object·otherwise.\n·····*/\n····perf?:·Perf\n··}\n\n··export·interface·OptionsMaxLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····max:·Count\n··}\n··export·interface·OptionsTTLLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····ttl:·Milliseconds\n····ttlAutopurge:·boolean\n··}\n··export·interface·OptionsSizeLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····maxSize:·Size\n··}\n\n··/**\n···*·The·valid·safe·options·for·the·{@link·LRUCache}·constructor\n···*/\n··export·type·Options<K,·V,·FC>·=\n····|·OptionsMaxLimit<K,·V,·FC>\n····|·OptionsSizeLimit<K,·V,·FC>\n····|·OptionsTTLLimit<K,·V,·FC>\n\n··/**\n···*·Entry·objects·used·by·{@link·LRUCache#load}·and·{@link·LRUCache#dump},\n···*·and·returned·by·{@link·LRUCache#info}.\n···*/\n··export·interface·Entry<V>·{\n····value:·V\n····ttl?:·Milliseconds\n····size?:·Size\n····start?:·Milliseconds\n··}\n}\n\n/**\n·*·Default·export,·the·thing·you're·using·this·module·to·get.\n·*\n·*·The·`K`·and·`V`·types·define·the·key·and·value·types,·respectively.·The\n·*·optional·`FC`·type·defines·the·type·of·the·`context`·object·passed·to\n·*·`cache.fetch()`·and·`cache.memo()`.\n·*\n·*·Keys·and·values·**must·not**·be·`null`·or·`undefined`.\n·*\n·*·All·properties·from·the·options·object·(with·the·exception·of·`max`,\n·*·`maxSize`,·`fetchMethod`,·`memoMethod`,·`dispose`·and·`disposeAfter`)·are\n·*·added·as·normal·public·members.·(The·listed·options·are·read-only·getters.)\n·*\n·*·Changing·any·of·these·will·alter·the·defaults·for·subsequent·method·calls.\n·*/\nexport·class·LRUCache<K·extends·{},·V·extends·{},·FC·=·unknown>·{\n··//·options·that·cannot·be·changed·without·disaster\n··readonly·#max:·LRUCache.Count\n··readonly·#maxSize:·LRUCache.Size\n··readonly·#dispose?:·LRUCache.Disposer<K,·V>\n··readonly·#onInsert?:·LRUCache.Inserter<K,·V>\n··readonly·#disposeAfter?:·LRUCache.Disposer<K,·V>\n··readonly·#fetchMethod?:·LRUCache.Fetcher<K,·V,·FC>\n··readonly·#memoMethod?:·LRUCache.Memoizer<K,·V,·FC>\n··readonly·#perf:·Perf\n\n··/**\n···*·{@link·LRUCache.OptionsBase.perf}\n···*/\n··get·perf()·{\n····return·this.#perf\n··}\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttl}\n···*/\n··ttl:·LRUCache.Milliseconds\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlResolution}\n···*/\n··ttlResolution:·LRUCache.Milliseconds\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlAutopurge}\n···*/\n··ttlAutopurge:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnGet}\n···*/\n··updateAgeOnGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}\n···*/\n··updateAgeOnHas:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStale}\n···*/\n··allowStale:·boolean\n\n··/**\n···*·{@link·LRUCache.OptionsBase.noDisposeOnSet}\n···*/\n··noDisposeOnSet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noUpdateTTL}\n···*/\n··noUpdateTTL:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.maxEntrySize}\n···*/\n··maxEntrySize:·LRUCache.Size\n··/**\n···*·{@link·LRUCache.OptionsBase.sizeCalculation}\n···*/\n··sizeCalculation?:·LRUCache.SizeCalculator<K,·V>\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnFetchRejection}\n···*/\n··noDeleteOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnStaleGet}\n···*/\n··noDeleteOnStaleGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort}\n···*/\n··allowStaleOnFetchAbort:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}\n···*/\n··allowStaleOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.ignoreFetchAbort}\n···*/\n··ignoreFetchAbort:·boolean\n\n··//·computed·properties\n··#size:·LRUCache.Count\n··#calculatedSize:·LRUCache.Size\n··#keyMap:·Map<K,·Index>\n··#keyList:·(K·|·undefined)[]\n··#valList:·(V·|·BackgroundFetch<V>·|·undefined)[]\n··#next:·NumberArray\n··#prev:·NumberArray\n··#head:·Index\n··#tail:·Index\n··#free:·StackLike\n··#disposed?:·DisposeTask<K,·V>[]\n··#sizes?:·ZeroArray\n··#starts?:·ZeroArray\n··#ttls?:·ZeroArray\n··#autopurgeTimers?:·(undefined·|·ReturnType<typeof·setTimeout>)[]\n\n··#hasDispose:·boolean\n··#hasFetchMethod:·boolean\n··#hasDisposeAfter:·boolean\n··#hasOnInsert:·boolean\n\n··/**\n···*·Do·not·call·this·method·unless·you·need·to·inspect·the\n···*·inner·workings·of·the·cache.··If·anything·returned·by·this\n···*·object·is·modified·in·any·way,·strange·breakage·may·occur.\n···*\n···*·These·fields·are·private·for·a·reason!\n···*\n···*·@internal\n···*/\n··static·unsafeExposeInternals<\n····K·extends·{},\n····V·extends·{},\n····FC·extends·unknown·=·unknown,\n··>(c:·LRUCache<K,·V,·FC>)·{\n····return·{\n······//·properties\n······starts:·c.#starts,\n······ttls:·c.#ttls,\n······autopurgeTimers:·c.#autopurgeTimers,\n······sizes:·c.#sizes,\n······keyMap:·c.#keyMap·as·Map<K,·number>,\n······keyList:·c.#keyList,\n······valList:·c.#valList,\n······next:·c.#next,\n······prev:·c.#prev,\n······get·head()·{\n········return·c.#head\n······},\n······get·tail()·{\n········return·c.#tail\n······},\n······free:·c.#free,\n······//·methods\n······isBackgroundFetch:·(p:·any)·=>·c.#isBackgroundFetch(p),\n······backgroundFetch:·(\n········k:·K,\n········index:·number·|·undefined,\n········options:·LRUCache.FetchOptions<K,·V,·FC>,\n········context:·any,\n······):·BackgroundFetch<V>·=>\n········c.#backgroundFetch(\n··········k,\n··········index·as·Index·|·undefined,\n··········options,\n··········context,\n········),\n······moveToTail:·(index:·number):·void·=>·c.#moveToTail(index·as·Index),\n······indexes:·(options?:·{·allowStale:·boolean·})·=>·c.#indexes(options),\n······rindexes:·(options?:·{·allowStale:·boolean·})·=>\n········c.#rindexes(options),\n······isStale:·(index:·number·|·undefined)·=>·c.#isStale(index·as·Index),\n····}\n··}\n\n··//·Protected·read-only·members\n\n··/**\n···*·{@link·LRUCache.OptionsBase.max}·(read-only)\n···*/\n··get·max():·LRUCache.Count·{\n····return·this.#max\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.maxSize}·(read-only)\n···*/\n··get·maxSize():·LRUCache.Count·{\n····return·this.#maxSize\n··}\n··/**\n···*·The·total·computed·size·of·items·in·the·cache·(read-only)\n···*/\n··get·calculatedSize():·LRUCache.Size·{\n····return·this.#calculatedSize\n··}\n··/**\n···*·The·number·of·items·stored·in·the·cache·(read-only)\n···*/\n··get·size():·LRUCache.Count·{\n····return·this.#size\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·(read-only)\n···*/\n··get·fetchMethod():·LRUCache.Fetcher<K,·V,·FC>·|·undefined·{\n····return·this.#fetchMethod\n··}\n··get·memoMethod():·LRUCache.Memoizer<K,·V,·FC>·|·undefined·{\n····return·this.#memoMethod\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.dispose}·(read-only)\n···*/\n··get·dispose()·{\n····return·this.#dispose\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.onInsert}·(read-only)\n···*/\n··get·onInsert()·{\n····return·this.#onInsert\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.disposeAfter}·(read-only)\n···*/\n··get·disposeAfter()·{\n····return·this.#disposeAfter\n··}\n\n··constructor(options:·LRUCache.Options<K,·V,·FC>·|·LRUCache<K,·V,·FC>)·{\n····const·{\n······max·=·0,\n······ttl,\n······ttlResolution·=·1,\n······ttlAutopurge,\n······updateAgeOnGet,\n······updateAgeOnHas,\n······allowStale,\n······dispose,\n······onInsert,\n······disposeAfter,\n······noDisposeOnSet,\n······noUpdateTTL,\n······maxSize·=·0,\n······maxEntrySize·=·0,\n······sizeCalculation,\n······fetchMethod,\n······memoMethod,\n······noDeleteOnFetchRejection,\n······noDeleteOnStaleGet,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······perf,\n····}·=·options\n\n····if·(perf·!==·undefined)·{\n······if·(typeof·perf?.now·!==·'function')·{\n········throw·new·TypeError(\n··········'perf·option·must·have·a·now()·method·if·specified',\n········)\n······}\n····}\n\n····this.#perf·=·perf·??·defaultPerf\n\n····if·(max·!==·0·&&·!isPosInt(max))·{\n······throw·new·TypeError('max·option·must·be·a·nonnegative·integer')\n····}\n\n····const·UintArray·=·max·?·getUintArray(max)·:·Array\n····if·(!UintArray)·{\n······throw·new·Error('invalid·max·value:·'·+·max)\n····}\n\n····this.#max·=·max\n····this.#maxSize·=·maxSize\n····this.maxEntrySize·=·maxEntrySize·||·this.#maxSize\n····this.sizeCalculation·=·sizeCalculation\n····if·(this.sizeCalculation)·{\n······if·(!this.#maxSize·&&·!this.maxEntrySize)·{\n········throw·new·TypeError(\n··········'cannot·set·sizeCalculation·without·setting·maxSize·or·maxEntrySize',\n········)\n······}\n······if·(typeof·this.sizeCalculation·!==·'function')·{\n········throw·new·TypeError('sizeCalculation·set·to·non-function')\n······}\n····}\n\n····if·(memoMethod·!==·undefined·&&·typeof·memoMethod·!==·'function')·{\n······throw·new·TypeError('memoMethod·must·be·a·function·if·defined')\n····}\n····this.#memoMethod·=·memoMethod\n\n····if·(fetchMethod·!==·undefined·&&·typeof·fetchMethod·!==·'function')·{\n······throw·new·TypeError('fetchMethod·must·be·a·function·if·specified')\n····}\n····this.#fetchMethod·=·fetchMethod\n····this.#hasFetchMethod·=·!!fetchMethod\n\n····this.#keyMap·=·new·Map()\n····this.#keyList·=·new·Array(max).fill(undefined)\n····this.#valList·=·new·Array(max).fill(undefined)\n····this.#next·=·new·UintArray(max)\n····this.#prev·=·new·UintArray(max)\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free·=·Stack.create(max)\n····this.#size·=·0\n····this.#calculatedSize·=·0\n\n····if·(typeof·dispose·===·'function')·{\n······this.#dispose·=·dispose\n····}\n····if·(typeof·onInsert·===·'function')·{\n······this.#onInsert·=·onInsert\n····}\n····if·(typeof·disposeAfter·===·'function')·{\n······this.#disposeAfter·=·disposeAfter\n······this.#disposed·=·[]\n····}·else·{\n······this.#disposeAfter·=·undefined\n······this.#disposed·=·undefined\n····}\n····this.#hasDispose·=·!!this.#dispose\n····this.#hasOnInsert·=·!!this.#onInsert\n····this.#hasDisposeAfter·=·!!this.#disposeAfter\n\n····this.noDisposeOnSet·=·!!noDisposeOnSet\n····this.noUpdateTTL·=·!!noUpdateTTL\n····this.noDeleteOnFetchRejection·=·!!noDeleteOnFetchRejection\n····this.allowStaleOnFetchRejection·=·!!allowStaleOnFetchRejection\n····this.allowStaleOnFetchAbort·=·!!allowStaleOnFetchAbort\n····this.ignoreFetchAbort·=·!!ignoreFetchAbort\n\n····//·NB:·maxEntrySize·is·set·to·maxSize·if·it's·set\n····if·(this.maxEntrySize·!==·0)·{\n······if·(this.#maxSize·!==·0)·{\n········if·(!isPosInt(this.#maxSize))·{\n··········throw·new·TypeError(\n············'maxSize·must·be·a·positive·integer·if·specified',\n··········)\n········}\n······}\n······if·(!isPosInt(this.maxEntrySize))·{\n········throw·new·TypeError(\n··········'maxEntrySize·must·be·a·positive·integer·if·specified',\n········)\n······}\n······this.#initializeSizeTracking()\n····}\n\n····this.allowStale·=·!!allowStale\n····this.noDeleteOnStaleGet·=·!!noDeleteOnStaleGet\n····this.updateAgeOnGet·=·!!updateAgeOnGet\n····this.updateAgeOnHas·=·!!updateAgeOnHas\n····this.ttlResolution·=\n······isPosInt(ttlResolution)·||·ttlResolution·===·0·?·ttlResolution·:·1\n····this.ttlAutopurge·=·!!ttlAutopurge\n····this.ttl·=·ttl·||·0\n····if·(this.ttl)·{\n······if·(!isPosInt(this.ttl))·{\n········throw·new·TypeError('ttl·must·be·a·positive·integer·if·specified')\n······}\n······this.#initializeTTLTracking()\n····}\n\n····//·do·not·allow·completely·unbounded·caches\n····if·(this.#max·===·0·&&·this.ttl·===·0·&&·this.#maxSize·===·0)·{\n······throw·new·TypeError(\n········'At·least·one·of·max,·maxSize,·or·ttl·is·required',\n······)\n····}\n····if·(!this.ttlAutopurge·&&·!this.#max·&&·!this.#maxSize)·{\n······const·code·=·'LRU_CACHE_UNBOUNDED'\n······if·(shouldWarn(code))·{\n········warned.add(code)\n········const·msg·=\n··········'TTL·caching·without·ttlAutopurge,·max,·or·maxSize·can·'·+\n··········'result·in·unbounded·memory·consumption.'\n········emitWarning(msg,·'UnboundedCacheWarning',·code,·LRUCache)\n······}\n····}\n··}\n\n··/**\n···*·Return·the·number·of·ms·left·in·the·item's·TTL.·If·item·is·not·in·cache,\n···*·returns·`0`.·Returns·`Infinity`·if·item·is·in·cache·without·a·defined·TTL.\n···*/\n··getRemainingTTL(key:·K)·{\n····return·this.#keyMap.has(key)·?·Infinity·:·0\n··}\n\n··#initializeTTLTracking()·{\n····const·ttls·=·new·ZeroArray(this.#max)\n····const·starts·=·new·ZeroArray(this.#max)\n····this.#ttls·=·ttls\n····this.#starts·=·starts\n····const·purgeTimers·=\n······this.ttlAutopurge·?\n········new·Array<undefined·|·ReturnType<typeof·setTimeout>>(this.#max)\n······:·undefined\n····this.#autopurgeTimers·=·purgeTimers\n\n····this.#setItemTTL·=·(index,·ttl,·start·=·this.#perf.now())·=>·{\n······starts[index]·=·ttl·!==·0·?·start·:·0\n······ttls[index]·=·ttl\n······//·clear·out·the·purge·timer·if·we're·setting·TTL·to·0,·and\n······//·previously·had·a·ttl·purge·timer·running,·so·it·doesn't\n······//·fire·unnecessarily.\n······if·(purgeTimers?.[index])·{\n········clearTimeout(purgeTimers[index])\n········purgeTimers[index]·=·undefined\n······}\n······if·(ttl·!==·0·&&·purgeTimers)·{\n········const·t·=·setTimeout(()·=>·{\n··········if·(this.#isStale(index))·{\n············this.#delete(this.#keyList[index]·as·K,·'expire')\n··········}\n········},·ttl·+·1)\n········//·unref()·not·supported·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n········purgeTimers[index]·=·t\n······}\n····}\n\n····this.#updateItemAge·=·index·=>·{\n······starts[index]·=·ttls[index]·!==·0·?·this.#perf.now()·:·0\n····}\n\n····this.#statusTTL·=·(status,·index)·=>·{\n······if·(ttls[index])·{\n········const·ttl·=·ttls[index]\n········const·start·=·starts[index]\n········/*·c8·ignore·next·*/\n········if·(!ttl·||·!start)·return\n········status.ttl·=·ttl\n········status.start·=·start\n········status.now·=·cachedNow·||·getNow()\n········const·age·=·status.now·-·start\n········status.remainingTTL·=·ttl·-·age\n······}\n····}\n\n····//·debounce·calls·to·perf.now()·to·1s·so·we're·not·hitting\n····//·that·costly·call·repeatedly.\n····let·cachedNow·=·0\n····const·getNow·=·()·=>·{\n······const·n·=·this.#perf.now()\n······if·(this.ttlResolution·>·0)·{\n········cachedNow·=·n\n········const·t·=·setTimeout(()·=>·(cachedNow·=·0),·this.ttlResolution)\n········//·not·available·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n······}\n······return·n\n····}\n\n····this.getRemainingTTL·=·key·=>·{\n······const·index·=·this.#keyMap.get(key)\n······if·(index·===·undefined)·{\n········return·0\n······}\n······const·ttl·=·ttls[index]\n······const·start·=·starts[index]\n······if·(!ttl·||·!start)·{\n········return·Infinity\n······}\n······const·age·=·(cachedNow·||·getNow())·-·start\n······return·ttl·-·age\n····}\n\n····this.#isStale·=·index·=>·{\n······const·s·=·starts[index]\n······const·t·=·ttls[index]\n······return·!!t·&&·!!s·&&·(cachedNow·||·getNow())·-·s·>·t\n····}\n··}\n\n··//·conditionally·set·private·methods·related·to·TTL\n··#updateItemAge:·(index:·Index)·=>·void·=·()·=>·{}\n··#statusTTL:·(status:·LRUCache.Status<V>,·index:·Index)·=>·void·=·()·=>·{}\n··#setItemTTL:·(\n····index:·Index,\n····ttl:·LRUCache.Milliseconds,\n····start?:·LRUCache.Milliseconds,\n····//·ignore·because·we·never·call·this·if·we're·not·already·in·TTL·mode\n····/*·c8·ignore·start·*/\n··)·=>·void·=·()·=>·{}\n··/*·c8·ignore·stop·*/\n\n··#isStale:·(index:·Index)·=>·boolean·=·()·=>·false\n\n··#initializeSizeTracking()·{\n····const·sizes·=·new·ZeroArray(this.#max)\n····this.#calculatedSize·=·0\n····this.#sizes·=·sizes\n····this.#removeItemSize·=·index·=>·{\n······this.#calculatedSize·-=·sizes[index]·as·number\n······sizes[index]·=·0\n····}\n····this.#requireSize·=·(k,·v,·size,·sizeCalculation)·=>·{\n······//·provisionally·accept·background·fetches.\n······//·actual·value·size·will·be·checked·when·they·return.\n······if·(this.#isBackgroundFetch(v))·{\n········return·0\n······}\n······if·(!isPosInt(size))·{\n········if·(sizeCalculation)·{\n··········if·(typeof·sizeCalculation·!==·'function')·{\n············throw·new·TypeError('sizeCalculation·must·be·a·function')\n··········}\n··········size·=·sizeCalculation(v,·k)\n··········if·(!isPosInt(size))·{\n············throw·new·TypeError(\n··············'sizeCalculation·return·invalid·(expect·positive·integer)',\n············)\n··········}\n········}·else·{\n··········throw·new·TypeError(\n············'invalid·size·value·(must·be·positive·integer).·'·+\n··············'When·maxSize·or·maxEntrySize·is·used,·sizeCalculation·'·+\n··············'or·size·must·be·set.',\n··········)\n········}\n······}\n······return·size\n····}\n····this.#addItemSize·=·(\n······index:·Index,\n······size:·LRUCache.Size,\n······status?:·LRUCache.Status<V>,\n····)·=>·{\n······sizes[index]·=·size\n······if·(this.#maxSize)·{\n········const·maxSize·=·this.#maxSize·-·(sizes[index]·as·number)\n········while·(this.#calculatedSize·>·maxSize)·{\n··········this.#evict(true)\n········}\n······}\n······this.#calculatedSize·+=·sizes[index]·as·number\n······if·(status)·{\n········status.entrySize·=·size\n········status.totalCalculatedSize·=·this.#calculatedSize\n······}\n····}\n··}\n\n··#removeItemSize:·(index:·Index)·=>·void·=·_i·=>·{}\n··#addItemSize:·(\n····index:·Index,\n····size:·LRUCache.Size,\n····status?:·LRUCache.Status<V>,\n··)·=>·void·=·(_i,·_s,·_st)·=>·{}\n··#requireSize:·(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·LRUCache.Size·=·(\n····_k:·K,\n····_v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·{\n····if·(size·||·sizeCalculation)·{\n······throw·new·TypeError(\n········'cannot·set·size·without·setting·maxSize·or·maxEntrySize·on·cache',\n······)\n····}\n····return·0\n··};\n\n··*#indexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#tail;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#head)·{\n··········break\n········}·else·{\n··········i·=·this.#prev[i]·as·Index\n········}\n······}\n····}\n··}\n\n··*#rindexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#head;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#tail)·{\n··········break\n········}·else·{\n··········i·=·this.#next[i]·as·Index\n········}\n······}\n····}\n··}\n\n··#isValidIndex(index:·Index)·{\n····return·(\n······index·!==·undefined·&&\n······this.#keyMap.get(this.#keyList[index]·as·K)·===·index\n····)\n··}\n\n··/**\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*entries()·{\n····for·(const·i·of·this.#indexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]·as·[K,·V]\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.entries}\n···*\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rentries()·{\n····for·(const·i·of·this.#rindexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*keys()·{\n····for·(const·i·of·this.#indexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.keys}\n···*\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rkeys()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*values()·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]·as·V\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.values}\n···*\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rvalues()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]\n······}\n····}\n··}\n\n··/**\n···*·Iterating·over·the·cache·itself·yields·the·same·results·as\n···*·{@link·LRUCache.entries}\n···*/\n··[Symbol.iterator]()·{\n····return·this.entries()\n··}\n\n··/**\n···*·A·String·value·that·is·used·in·the·creation·of·the·default·string\n···*·description·of·an·object.·Called·by·the·built-in·method\n···*·`Object.prototype.toString`.\n···*/\n··[Symbol.toStringTag]·=·'LRUCache'\n\n··/**\n···*·Find·a·value·for·which·the·supplied·fn·method·returns·a·truthy·value,\n···*·similar·to·`Array.find()`.·fn·is·called·as·`fn(value,·key,·cache)`.\n···*/\n··find(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·boolean,\n····getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{},\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······if·(fn(value,·this.#keyList[i]·as·K,·this))·{\n········return·this.get(this.#keyList[i]·as·K,·getOptions)\n······}\n····}\n··}\n\n··/**\n···*·Call·the·supplied·function·on·each·item·in·the·cache,·in·order·from·most\n···*·recently·used·to·least·recently·used.\n···*\n···*·`fn`·is·called·as·`fn(value,·key,·cache)`.\n···*\n···*·If·`thisp`·is·provided,·function·will·be·called·in·the·`this`-context·of\n···*·the·provided·object,·or·the·cache·if·no·`thisp`·object·is·provided.\n···*\n···*·Does·not·update·age·or·recenty·of·use,·or·iterate·over·stale·values.\n···*/\n··forEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·The·same·as·{@link·LRUCache.forEach}·but·items·are·iterated·over·in\n···*·reverse·order.··(ie,·less·recently·used·items·are·iterated·over·first.)\n···*/\n··rforEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·Delete·any·stale·entries.·Returns·true·if·anything·was·removed,\n···*·false·otherwise.\n···*/\n··purgeStale()·{\n····let·deleted·=·false\n····for·(const·i·of·this.#rindexes({·allowStale:·true·}))·{\n······if·(this.#isStale(i))·{\n········this.#delete(this.#keyList[i]·as·K,·'expire')\n········deleted·=·true\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Get·the·extended·info·about·a·given·entry,·to·get·its·value,·size,·and\n···*·TTL·info·simultaneously.·Returns·`undefined`·if·the·key·is·not·present.\n···*\n···*·Unlike·{@link·LRUCache#dump},·which·is·designed·to·be·portable·and·survive\n···*·serialization,·the·`start`·value·is·always·the·current·timestamp,·and·the\n···*·`ttl`·is·a·calculated·remaining·time·to·live·(negative·if·expired).\n···*\n···*·Always·returns·stale·values,·if·their·info·is·found·in·the·cache,·so·be\n···*·sure·to·check·for·expirations·(ie,·a·negative·{@link·LRUCache.Entry#ttl})\n···*·if·relevant.\n···*/\n··info(key:·K):·LRUCache.Entry<V>·|·undefined·{\n····const·i·=·this.#keyMap.get(key)\n····if·(i·===·undefined)·return·undefined\n····const·v·=·this.#valList[i]\n····/*·c8·ignore·start·-·this·isn't·tested·for·the·info·function,\n·····*·but·it's·the·same·logic·as·found·in·other·places.·*/\n····const·value:·V·|·undefined·=\n······this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n····if·(value·===·undefined)·return·undefined\n····/*·c8·ignore·end·*/\n····const·entry:·LRUCache.Entry<V>·=·{·value·}\n····if·(this.#ttls·&&·this.#starts)·{\n······const·ttl·=·this.#ttls[i]\n······const·start·=·this.#starts[i]\n······if·(ttl·&&·start)·{\n········const·remain·=·ttl·-·(this.#perf.now()·-·start)\n········entry.ttl·=·remain\n········entry.start·=·Date.now()\n······}\n····}\n····if·(this.#sizes)·{\n······entry.size·=·this.#sizes[i]\n····}\n····return·entry\n··}\n\n··/**\n···*·Return·an·array·of·[key,·{@link·LRUCache.Entry}]·tuples·which·can·be\n···*·passed·to·{@link·LRUCache#load}.\n···*\n···*·The·`start`·fields·are·calculated·relative·to·a·portable·`Date.now()`\n···*·timestamp,·even·if·`performance.now()`·is·available.\n···*\n···*·Stale·entries·are·always·included·in·the·`dump`,·even·if\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·false.\n···*\n···*·Note:·this·returns·an·actual·array,·not·a·generator,·so·it·can·be·more\n···*·easily·passed·around.\n···*/\n··dump()·{\n····const·arr:·[K,·LRUCache.Entry<V>][]·=·[]\n····for·(const·i·of·this.#indexes({·allowStale:·true·}))·{\n······const·key·=·this.#keyList[i]\n······const·v·=·this.#valList[i]\n······const·value:·V·|·undefined·=\n········this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined·||·key·===·undefined)·continue\n······const·entry:·LRUCache.Entry<V>·=·{·value·}\n······if·(this.#ttls·&&·this.#starts)·{\n········entry.ttl·=·this.#ttls[i]\n········//·always·dump·the·start·relative·to·a·portable·timestamp\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·this.#perf.now()·-·(this.#starts[i]·as·number)\n········entry.start·=·Math.floor(Date.now()·-·age)\n······}\n······if·(this.#sizes)·{\n········entry.size·=·this.#sizes[i]\n······}\n······arr.unshift([key,·entry])\n····}\n····return·arr\n··}\n\n··/**\n···*·Reset·the·cache·and·load·in·the·items·in·entries·in·the·order·listed.\n···*\n···*·The·shape·of·the·resulting·cache·may·be·different·if·the·same·options·are\n···*·not·used·in·both·caches.\n···*\n···*·The·`start`·fields·are·assumed·to·be·calculated·relative·to·a·portable\n···*·`Date.now()`·timestamp,·even·if·`performance.now()`·is·available.\n···*/\n··load(arr:·[K,·LRUCache.Entry<V>][])·{\n····this.clear()\n····for·(const·[key,·entry]·of·arr)·{\n······if·(entry.start)·{\n········//·entry.start·is·a·portable·timestamp,·but·we·may·be·using\n········//·node's·performance.now(),·so·calculate·the·offset,·so·that\n········//·we·get·the·intended·remaining·TTL,·no·matter·how·long·it's\n········//·been·on·ice.\n········//\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·Date.now()·-·entry.start\n········entry.start·=·this.#perf.now()·-·age\n······}\n······this.set(key,·entry.value,·entry)\n····}\n··}\n\n··/**\n···*·Add·a·value·to·the·cache.\n···*\n···*·Note:·if·`undefined`·is·specified·as·a·value,·this·is·an·alias·for\n···*·{@link·LRUCache#delete}\n···*\n···*·Fields·on·the·{@link·LRUCache.SetOptions}·options·param·will·override\n···*·their·corresponding·values·in·the·constructor·options·for·the·scope\n···*·of·this·single·`set()`·operation.\n···*\n···*·If·`start`·is·provided,·then·that·will·set·the·effective·start\n···*·time·for·the·TTL·calculation.·Note·that·this·must·be·a·previous\n···*·value·of·`performance.now()`·if·supported,·or·a·previous·value·of\n···*·`Date.now()`·if·not.\n···*\n···*·Options·object·may·also·include·`size`,·which·will·prevent\n···*·calling·the·`sizeCalculation`·function·and·just·use·the·specified\n···*·number·if·it·is·a·positive·integer,·and·`noDisposeOnSet`·which\n···*·will·prevent·calling·a·`dispose`·function·in·the·case·of\n···*·overwrites.\n···*\n···*·If·the·`size`·(or·return·value·of·`sizeCalculation`)·for·a·given\n···*·entry·is·greater·than·`maxEntrySize`,·then·the·item·will·not·be\n···*·added·to·the·cache.\n···*\n···*·Will·update·the·recency·of·the·entry.\n···*\n···*·If·the·value·is·`undefined`,·then·this·is·an·alias·for\n···*·`cache.delete(key)`.·`undefined`·is·never·stored·in·the·cache.\n···*/\n··set(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>·|·undefined,\n····setOptions:·LRUCache.SetOptions<K,·V,·FC>·=·{},\n··)·{\n····if·(v·===·undefined)·{\n······this.delete(k)\n······return·this\n····}\n····const·{\n······ttl·=·this.ttl,\n······start,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······sizeCalculation·=·this.sizeCalculation,\n······status,\n····}·=·setOptions\n····let·{·noUpdateTTL·=·this.noUpdateTTL·}·=·setOptions\n\n····const·size·=·this.#requireSize(\n······k,\n······v,\n······setOptions.size·||·0,\n······sizeCalculation,\n····)\n····//·if·the·item·doesn't·fit,·don't·do·anything\n····//·NB:·maxEntrySize·set·to·maxSize·by·default\n····if·(this.maxEntrySize·&&·size·>·this.maxEntrySize)·{\n······if·(status)·{\n········status.set·=·'miss'\n········status.maxEntrySizeExceeded·=·true\n······}\n······//·have·to·delete,·in·case·something·is·there·already.\n······this.#delete(k,·'set')\n······return·this\n····}\n····let·index·=·this.#size·===·0·?·undefined·:·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······//·addition\n······index·=·(\n········this.#size·===·0·?·this.#tail\n········:·this.#free.length·!==·0·?·this.#free.pop()\n········:·this.#size·===·this.#max·?·this.#evict(false)\n········:·this.#size)·as·Index\n······this.#keyList[index]·=·k\n······this.#valList[index]·=·v\n······this.#keyMap.set(k,·index)\n······this.#next[this.#tail]·=·index\n······this.#prev[index]·=·this.#tail\n······this.#tail·=·index\n······this.#size++\n······this.#addItemSize(index,·size,·status)\n······if·(status)·status.set·=·'add'\n······noUpdateTTL·=·false\n······if·(this.#hasOnInsert)·{\n········this.#onInsert?.(v·as·V,·k,·'add')\n······}\n····}·else·{\n······//·update\n······this.#moveToTail(index)\n······const·oldVal·=·this.#valList[index]·as·V·|·BackgroundFetch<V>\n······if·(v·!==·oldVal)·{\n········if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(oldVal))·{\n··········oldVal.__abortController.abort(new·Error('replaced'))\n··········const·{·__staleWhileFetching:·s·}·=·oldVal\n··········if·(s·!==·undefined·&&·!noDisposeOnSet)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(s·as·V,·k,·'set')\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([s·as·V,·k,·'set'])\n············}\n··········}\n········}·else·if·(!noDisposeOnSet)·{\n··········if·(this.#hasDispose)·{\n············this.#dispose?.(oldVal·as·V,·k,·'set')\n··········}\n··········if·(this.#hasDisposeAfter)·{\n············this.#disposed?.push([oldVal·as·V,·k,·'set'])\n··········}\n········}\n········this.#removeItemSize(index)\n········this.#addItemSize(index,·size,·status)\n········this.#valList[index]·=·v\n········if·(status)·{\n··········status.set·=·'replace'\n··········const·oldValue·=\n············oldVal·&&·this.#isBackgroundFetch(oldVal)·?\n··············oldVal.__staleWhileFetching\n············:·oldVal\n··········if·(oldValue·!==·undefined)·status.oldValue·=·oldValue\n········}\n······}·else·if·(status)·{\n········status.set·=·'update'\n······}\n\n······if·(this.#hasOnInsert)·{\n········this.onInsert?.(v·as·V,·k,·v·===·oldVal·?·'update'·:·'replace')\n······}\n····}\n····if·(ttl·!==·0·&&·!this.#ttls)·{\n······this.#initializeTTLTracking()\n····}\n····if·(this.#ttls)·{\n······if·(!noUpdateTTL)·{\n········this.#setItemTTL(index,·ttl,·start)\n······}\n······if·(status)·this.#statusTTL(status,·index)\n····}\n····if·(!noDisposeOnSet·&&·this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·this\n··}\n\n··/**\n···*·Evict·the·least·recently·used·item,·returning·its·value·or\n···*·`undefined`·if·cache·is·empty.\n···*/\n··pop():·V·|·undefined·{\n····try·{\n······while·(this.#size)·{\n········const·val·=·this.#valList[this.#head]\n········this.#evict(true)\n········if·(this.#isBackgroundFetch(val))·{\n··········if·(val.__staleWhileFetching)·{\n············return·val.__staleWhileFetching\n··········}\n········}·else·if·(val·!==·undefined)·{\n··········return·val\n········}\n······}\n····}·finally·{\n······if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n········const·dt·=·this.#disposed\n········let·task:·DisposeTask<K,·V>·|·undefined\n········while·((task·=·dt?.shift()))·{\n··········this.#disposeAfter?.(...task)\n········}\n······}\n····}\n··}\n\n··#evict(free:·boolean)·{\n····const·head·=·this.#head\n····const·k·=·this.#keyList[head]·as·K\n····const·v·=·this.#valList[head]·as·V\n····if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(v))·{\n······v.__abortController.abort(new·Error('evicted'))\n····}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n······if·(this.#hasDispose)·{\n········this.#dispose?.(v,·k,·'evict')\n······}\n······if·(this.#hasDisposeAfter)·{\n········this.#disposed?.push([v,·k,·'evict'])\n······}\n····}\n····this.#removeItemSize(head)\n····if·(this.#autopurgeTimers?.[head])·{\n······clearTimeout(this.#autopurgeTimers[head])\n······this.#autopurgeTimers[head]·=·undefined\n····}\n····//·if·we·aren't·about·to·use·the·index,·then·null·these·out\n····if·(free)·{\n······this.#keyList[head]·=·undefined\n······this.#valList[head]·=·undefined\n······this.#free.push(head)\n····}\n····if·(this.#size·===·1)·{\n······this.#head·=·this.#tail·=·0·as·Index\n······this.#free.length·=·0\n····}·else·{\n······this.#head·=·this.#next[head]·as·Index\n····}\n····this.#keyMap.delete(k)\n····this.#size--\n····return·head\n··}\n\n··/**\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of·use.\n···*·Will·return·false·if·the·item·is·stale,·even·though·it·is·technically\n···*·in·the·cache.\n···*\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of\n···*·use.·Age·is·updated·if·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set\n···*·to·`true`·in·either·the·options·or·the·constructor.\n···*\n···*·Will·return·`false`·if·the·item·is·stale,·even·though·it·is·technically·in\n···*·the·cache.·The·difference·can·be·determined·(if·it·matters)·by·using·a\n···*·`status`·argument,·and·inspecting·the·`has`·field.\n···*\n···*·Will·not·update·item·age·unless\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set.\n···*/\n··has(k:·K,·hasOptions:·LRUCache.HasOptions<K,·V,·FC>·=·{})·{\n····const·{·updateAgeOnHas·=·this.updateAgeOnHas,·status·}·=·hasOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·v·=·this.#valList[index]\n······if·(\n········this.#isBackgroundFetch(v)·&&\n········v.__staleWhileFetching·===·undefined\n······)·{\n········return·false\n······}\n······if·(!this.#isStale(index))·{\n········if·(updateAgeOnHas)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·{\n··········status.has·=·'hit'\n··········this.#statusTTL(status,·index)\n········}\n········return·true\n······}·else·if·(status)·{\n········status.has·=·'stale'\n········this.#statusTTL(status,·index)\n······}\n····}·else·if·(status)·{\n······status.has·=·'miss'\n····}\n····return·false\n··}\n\n··/**\n···*·Like·{@link·LRUCache#get}·but·doesn't·update·recency·or·delete·stale\n···*·items.\n···*\n···*·Returns·`undefined`·if·the·item·is·stale,·unless\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·set.\n···*/\n··peek(k:·K,·peekOptions:·LRUCache.PeekOptions<K,·V,·FC>·=·{})·{\n····const·{·allowStale·=·this.allowStale·}·=·peekOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined·||·(!allowStale·&&·this.#isStale(index)))·{\n······return\n····}\n····const·v·=·this.#valList[index]\n····//·either·stale·and·allowed,·or·forcing·a·refresh·of·non-stale·value\n····return·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n··}\n\n··#backgroundFetch(\n····k:·K,\n····index:·Index·|·undefined,\n····options:·LRUCache.FetchOptions<K,·V,·FC>,\n····context:·any,\n··):·BackgroundFetch<V>·{\n····const·v·=·index·===·undefined·?·undefined·:·this.#valList[index]\n····if·(this.#isBackgroundFetch(v))·{\n······return·v\n····}\n\n····const·ac·=·new·AC()\n····const·{·signal·}·=·options\n····//·when/if·our·AC·signals,·then·stop·listening·to·theirs.\n····signal?.addEventListener('abort',·()·=>·ac.abort(signal.reason),·{\n······signal:·ac.signal,\n····})\n\n····const·fetchOpts·=·{\n······signal:·ac.signal,\n······options,\n······context,\n····}\n\n····const·cb·=·(v:·V·|·undefined,·updateCache·=·false):·V·|·undefined·=>·{\n······const·{·aborted·}·=·ac.signal\n······const·ignoreAbort·=·options.ignoreFetchAbort·&&·v·!==·undefined\n······const·proceed·=·options.ignoreFetchAbort·||\n········!!(options.allowStaleOnFetchAbort·&&·v·!==·undefined)\n······if·(options.status)·{\n········if·(aborted·&&·!updateCache)·{\n··········options.status.fetchAborted·=·true\n··········options.status.fetchErr[·...·truncated·by·diffoscope;·len:·2046,·SHA:·bc26851e544864912e306c8a65e2ad2d112546bf99737e3236751c8c73b882ef·...·]·bf.__staleWhileFetching·===·undefined\n········if·(del)·{\n··········this.#delete(k,·'fetch')\n········}·else·if·(!allowStaleAborted)·{\n··········//·still·replace·the·*promise*·with·the·stale·value,\n··········//·since·we·are·done·with·the·promise·at·this·point.\n··········//·leave·it·untouched·if·we're·still·waiting·for·an\n··········//·aborted·background·fetch·that·hasn't·yet·returned.\n··········this.#valList[index·as·Index]·=·bf.__staleWhileFetching\n········}\n······}\n······if·(allowStale)·{\n········if·(options.status·&&·bf.__staleWhileFetching·!==·undefined)·{\n··········options.status.returnedStale·=·true\n········}\n········return·bf.__staleWhileFetching\n······}·else·if·(bf.__returned·===·bf)·{\n········throw·er\n······}\n····}\n\n····const·pcall·=·(\n······res:·(v:·V·|·undefined)·=>·void,\n······rej:·(e:·any)·=>·void,\n····)·=>·{\n······const·fmp·=·this.#fetchMethod?.(k,·v,·fetchOpts)\n······if·(fmp·&&·fmp·instanceof·Promise)·{\n········fmp.then(v·=>·res(v·===·undefined·?·undefined·:·v),·rej)\n······}\n······//·ignored,·we·go·until·we·finish,·regardless.\n······//·defer·check·until·we·are·actually·aborting,\n······//·so·fetchMethod·can·override.\n······ac.signal.addEventListener('abort',·()·=>·{\n········if·(!options.ignoreFetchAbort·||·options.allowStaleOnFetchAbort)·{\n··········res(undefined)\n··········//·when·it·eventually·resolves,·update·the·cache.\n··········if·(options.allowStaleOnFetchAbort)·{\n············res·=·v·=>·cb(v,·true)\n··········}\n········}\n······})\n····}\n\n····if·(options.status)·options.status.fetchDispatched·=·true\n····const·p·=·new·Promise(pcall).then(cb,·eb)\n····const·bf:·BackgroundFetch<V>·=·Object.assign(p,·{\n······__abortController:·ac,\n······__staleWhileFetching:·v,\n······__returned:·undefined,\n····})\n\n····if·(index·===·undefined)·{\n······//·internal,·don't·expose·status.\n······this.set(k,·bf,·{·...fetchOpts.options,·status:·undefined·})\n······index·=·this.#keyMap.get(k)\n····}·else·{\n······this.#valList[index]·=·bf\n····}\n····return·bf\n··}\n\n··#isBackgroundFetch(p:·any):·p·is·BackgroundFetch<V>·{\n····if·(!this.#hasFetchMethod)·return·false\n····const·b·=·p·as·BackgroundFetch<V>\n····return·(\n······!!b·&&\n······b·instanceof·Promise·&&\n······b.hasOwnProperty('__staleWhileFetching')·&&\n······b.__abortController·instanceof·AC\n····)\n··}\n\n··/**\n···*·Make·an·asynchronous·cached·fetch·using·the\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·function.\n···*\n···*·If·the·value·is·in·the·cache·and·not·stale,·then·the·returned\n···*·Promise·resolves·to·the·value.\n···*\n···*·If·not·in·the·cache,·or·beyond·its·TTL·staleness,·then\n···*·`fetchMethod(key,·staleValue,·{·options,·signal,·context·})`·is\n···*·called,·and·the·value·returned·will·be·added·to·the·cache·once\n···*·resolved.\n···*\n···*·If·called·with·`allowStale`,·and·an·asynchronous·fetch·is\n···*·currently·in·progress·to·reload·a·stale·value,·then·the·former\n···*·stale·value·will·be·returned.\n···*\n···*·If·called·with·`forceRefresh`,·then·the·cached·item·will·be\n···*·re-fetched,·even·if·it·is·not·stale.·However,·if·`allowStale`·is·also\n···*·set,·then·the·old·value·will·still·be·returned.·This·is·useful\n···*·in·cases·where·you·want·to·force·a·reload·of·a·cached·value.·If\n···*·a·background·fetch·is·already·in·progress,·then·`forceRefresh`\n···*·has·no·effect.\n···*\n···*·If·multiple·fetches·for·the·same·key·are·issued,·then·they·will·all·be\n···*·coalesced·into·a·single·call·to·fetchMethod.\n···*\n···*·Note·that·this·means·that·handling·options·such·as\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort},\n···*·{@link·LRUCache.FetchOptions.signal},\n···*·and·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}·will·be\n···*·determined·by·the·FIRST·fetch()·call·for·a·given·key.\n···*\n···*·This·is·a·known·(fixable)·shortcoming·which·will·be·addresed·on·when\n···*·someone·complains·about·it,·as·the·fix·would·involve·added·complexity·and\n···*·may·not·be·worth·the·costs·for·this·edge·case.\n···*\n···*·If·{@link·LRUCache.OptionsBase.fetchMethod}·is·not·specified,·then·this·is\n···*·effectively·an·alias·for·`Promise.resolve(cache.get(key))`.\n···*\n···*·When·the·fetch·method·resolves·to·a·value,·if·the·fetch·has·not\n···*·been·aborted·due·to·deletion,·eviction,·or·being·overwritten,\n···*·then·it·is·added·to·the·cache·using·the·options·provided.\n···*\n···*·If·the·key·is·evicted·or·deleted·before·the·`fetchMethod`\n···*·resolves,·then·the·AbortSignal·passed·to·the·`fetchMethod`·will\n···*·receive·an·`abort`·event,·and·the·promise·returned·by·`fetch()`\n···*·will·reject·with·the·reason·for·the·abort.\n···*\n···*·If·a·`signal`·is·passed·to·the·`fetch()`·call,·then·aborting·the\n···*·signal·will·abort·the·fetch·and·cause·the·`fetch()`·promise·to\n···*·reject·with·the·reason·provided.\n···*\n···*·**Setting·`context`**\n···*\n···*·If·an·`FC`·type·is·set·to·a·type·other·than·`unknown`,·`void`,·or\n···*·`undefined`·in·the·{@link·LRUCache}·constructor,·then·all\n···*·calls·to·`cache.fetch()`·_must_·provide·a·`context`·option.·If\n···*·set·to·`undefined`·or·`void`,·then·calls·to·fetch·_must·not_\n···*·provide·a·`context`·option.\n···*\n···*·The·`context`·param·allows·you·to·provide·arbitrary·data·that\n···*·might·be·relevant·in·the·course·of·fetching·the·data.·It·is·only\n···*·relevant·for·the·course·of·a·single·`fetch()`·operation,·and\n···*·discarded·afterwards.\n···*\n···*·**Note:·`fetch()`·calls·are·inflight-unique**\n···*\n···*·If·you·call·`fetch()`·multiple·times·with·the·same·key·value,\n···*·then·every·call·after·the·first·will·resolve·on·the·same\n···*·promise<sup>1</sup>,\n···*·_even·if·they·have·different·settings·that·would·otherwise·change\n···*·the·behavior·of·the·fetch_,·such·as·`noDeleteOnFetchRejection`\n···*·or·`ignoreFetchAbort`.\n···*\n···*·In·most·cases,·this·is·not·a·problem·(in·fact,·only·fetching\n···*·something·once·is·what·you·probably·want,·if·you're·caching·in\n···*·the·first·place).·If·you·are·changing·the·fetch()·options\n···*·dramatically·between·runs,·there's·a·good·chance·that·you·might\n···*·be·trying·to·fit·divergent·semantics·into·a·single·object,·and\n···*·would·be·better·off·with·multiple·cache·instances.\n···*\n···*·**1**:·Ie,·they're·not·the·\"same·Promise\",·but·they·resolve·at\n···*·the·same·time,·because·they're·both·waiting·on·the·same\n···*·underlying·fetchMethod·response.\n···*/\n\n··fetch(\n····k:·K,\n····fetchOptions:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n··):·Promise<undefined·|·V>\n\n··//·this·overload·not·allowed·if·context·is·required\n··fetch(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····fetchOptions?:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·never,\n··):·Promise<undefined·|·V>\n\n··async·fetch(\n····k:·K,\n····fetchOptions:·LRUCache.FetchOptions<K,·V,·FC>·=·{},\n··):·Promise<undefined·|·V>·{\n····const·{\n······//·get·options\n······allowStale·=·this.allowStale,\n······updateAgeOnGet·=·this.updateAgeOnGet,\n······noDeleteOnStaleGet·=·this.noDeleteOnStaleGet,\n······//·set·options\n······ttl·=·this.ttl,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······size·=·0,\n······sizeCalculation·=·this.sizeCalculation,\n······noUpdateTTL·=·this.noUpdateTTL,\n······//·fetch·exclusive·options\n······noDeleteOnFetchRejection·=·this.noDeleteOnFetchRejection,\n······allowStaleOnFetchRejection·=·this.allowStaleOnFetchRejection,\n······ignoreFetchAbort·=·this.ignoreFetchAbort,\n······allowStaleOnFetchAbort·=·this.allowStaleOnFetchAbort,\n······context,\n······forceRefresh·=·false,\n······status,\n······signal,\n····}·=·fetchOptions\n\n····if·(!this.#hasFetchMethod)·{\n······if·(status)·status.fetch·=·'get'\n······return·this.get(k,·{\n········allowStale,\n········updateAgeOnGet,\n········noDeleteOnStaleGet,\n········status,\n······})\n····}\n\n····const·options·=·{\n······allowStale,\n······updateAgeOnGet,\n······noDeleteOnStaleGet,\n······ttl,\n······noDisposeOnSet,\n······size,\n······sizeCalculation,\n······noUpdateTTL,\n······noDeleteOnFetchRejection,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······status,\n······signal,\n····}\n\n····let·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······if·(status)·status.fetch·=·'miss'\n······const·p·=·this.#backgroundFetch(k,·index,·options,·context)\n······return·(p.__returned·=·p)\n····}·else·{\n······//·in·cache,·maybe·already·fetching\n······const·v·=·this.#valList[index]\n······if·(this.#isBackgroundFetch(v))·{\n········const·stale·=·allowStale·&&·v.__staleWhileFetching·!==·undefined\n········if·(status)·{\n··········status.fetch·=·'inflight'\n··········if·(stale)·status.returnedStale·=·true\n········}\n········return·stale·?·v.__staleWhileFetching·:·(v.__returned·=·v)\n······}\n\n······//·if·we·force·a·refresh,·that·means·do·NOT·serve·the·cached·value,\n······//·unless·we·are·already·in·the·process·of·refreshing·the·cache.\n······const·isStale·=·this.#isStale(index)\n······if·(!forceRefresh·&&·!isStale)·{\n········if·(status)·status.fetch·=·'hit'\n········this.#moveToTail(index)\n········if·(updateAgeOnGet)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·this.#statusTTL(status,·index)\n········return·v\n······}\n\n······//·ok,·it·is·stale·or·a·forced·refresh,·and·not·already·fetching.\n······//·refresh·the·cache.\n······const·p·=·this.#backgroundFetch(k,·index,·options,·context)\n······const·hasStale·=·p.__staleWhileFetching·!==·undefined\n······const·staleVal·=·hasStale·&&·allowStale\n······if·(status)·{\n········status.fetch·=·isStale·?·'stale'·:·'refresh'\n········if·(staleVal·&&·isStale)·status.returnedStale·=·true\n······}\n······return·staleVal·?·p.__staleWhileFetching·:·(p.__returned·=·p)\n····}\n··}\n\n··/**\n···*·In·some·cases,·`cache.fetch()`·may·resolve·to·`undefined`,·either·because\n···*·a·{@link·LRUCache.OptionsBase#fetchMethod}·was·not·provided·(turning\n···*·`cache.fetch(k)`·into·just·an·async·wrapper·around·`cache.get(k)`)·or\n···*·because·`ignoreFetchAbort`·was·specified·(either·to·the·constructor·or\n···*·in·the·{@link·LRUCache.FetchOptions}).·Also,·the\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·may·return·`undefined`·or·`void`,·making\n···*·the·test·even·more·complicated.\n···*\n···*·Because·inferring·the·cases·where·`undefined`·might·be·returned·are·so\n···*·cumbersome,·but·testing·for·`undefined`·can·also·be·annoying,·this·method\n···*·can·be·used,·which·will·reject·if·`this.fetch()`·resolves·to·undefined.\n···*/\n··forceFetch(\n····k:·K,\n····fetchOptions:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n··):·Promise<V>\n··//·this·overload·not·allowed·if·context·is·required\n··forceFetch(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····fetchOptions?:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·never,\n··):·Promise<V>\n··async·forceFetch(\n····k:·K,\n····fetchOptions:·LRUCache.FetchOptions<K,·V,·FC>·=·{},\n··):·Promise<V>·{\n····const·v·=·await·this.fetch(\n······k,\n······fetchOptions·as·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n······:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n······:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n····)\n····if·(v·===·undefined)·throw·new·Error('fetch()·returned·undefined')\n····return·v\n··}\n\n··/**\n···*·If·the·key·is·found·in·the·cache,·then·this·is·equivalent·to\n···*·{@link·LRUCache#get}.·If·not,·in·the·cache,·then·calculate·the·value·using\n···*·the·{@link·LRUCache.OptionsBase.memoMethod},·and·add·it·to·the·cache.\n···*\n···*·If·an·`FC`·type·is·set·to·a·type·other·than·`unknown`,·`void`,·or\n···*·`undefined`·in·the·LRUCache·constructor,·then·all·calls·to·`cache.memo()`\n···*·_must_·provide·a·`context`·option.·If·set·to·`undefined`·or·`void`,·then\n···*·calls·to·memo·_must·not_·provide·a·`context`·option.\n···*\n···*·The·`context`·param·allows·you·to·provide·arbitrary·data·that·might·be\n···*·relevant·in·the·course·of·fetching·the·data.·It·is·only·relevant·for·the\n···*·course·of·a·single·`memo()`·operation,·and·discarded·afterwards.\n···*/\n··memo(\n····k:·K,\n····memoOptions:·unknown·extends·FC·?·LRUCache.MemoOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.MemoOptionsNoContext<K,·V>\n····:·LRUCache.MemoOptionsWithContext<K,·V,·FC>,\n··):·V\n··//·this·overload·not·allowed·if·context·is·required\n··memo(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····memoOptions?:·unknown·extends·FC·?·LRUCache.MemoOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.MemoOptionsNoContext<K,·V>\n····:·never,\n··):·V\n··memo(k:·K,·memoOptions:·LRUCache.MemoOptions<K,·V,·FC>·=·{})·{\n····const·memoMethod·=·this.#memoMethod\n····if·(!memoMethod)·{\n······throw·new·Error('no·memoMethod·provided·to·constructor')\n····}\n····const·{·context,·forceRefresh,·...options·}·=·memoOptions\n····const·v·=·this.get(k,·options)\n····if·(!forceRefresh·&&·v·!==·undefined)·return·v\n····const·vv·=·memoMethod(k,·v,·{\n······options,\n······context,\n····}·as·LRUCache.MemoizerOptions<K,·V,·FC>)\n····this.set(k,·vv,·options)\n····return·vv\n··}\n\n··/**\n···*·Return·a·value·from·the·cache.·Will·update·the·recency·of·the·cache\n···*·entry·found.\n···*\n···*·If·the·key·is·not·found,·get()·will·return·`undefined`.\n···*/\n··get(k:·K,·getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{})·{\n····const·{\n······allowStale·=·this.allowStale,\n······updateAgeOnGet·=·this.updateAgeOnGet,\n······noDeleteOnStaleGet·=·this.noDeleteOnStaleGet,\n······status,\n····}·=·getOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·value·=·this.#valList[index]\n······const·fetching·=·this.#isBackgroundFetch(value)\n······if·(status)·this.#statusTTL(status,·index)\n······if·(this.#isStale(index))·{\n········if·(status)·status.get·=·'stale'\n········//·delete·only·if·not·an·in-flight·background·fetch\n········if·(!fetching)·{\n··········if·(!noDeleteOnStaleGet)·{\n············this.#delete(k,·'expire')\n··········}\n··········if·(status·&&·allowStale)·status.returnedStale·=·true\n··········return·allowStale·?·value·:·undefined\n········}·else·{\n··········if·(\n············status·&&\n············allowStale·&&\n············value.__staleWhileFetching·!==·undefined\n··········)·{\n············status.returnedStale·=·true\n··········}\n··········return·allowStale·?·value.__staleWhileFetching·:·undefined\n········}\n······}·else·{\n········if·(status)·status.get·=·'hit'\n········//·if·we're·currently·fetching·it,·we·don't·actually·have·it·yet\n········//·it's·not·stale,·which·means·this·isn't·a·staleWhileRefetching.\n········//·If·it's·not·stale,·and·fetching,·AND·has·a·__staleWhileFetching\n········//·value,·then·that·means·the·user·fetched·with·{forceRefresh:true},\n········//·so·it's·safe·to·return·that·value.\n········if·(fetching)·{\n··········return·value.__staleWhileFetching\n········}\n········this.#moveToTail(index)\n········if·(updateAgeOnGet)·{\n··········this.#updateItemAge(index)\n········}\n········return·value\n······}\n····}·else·if·(status)·{\n······status.get·=·'miss'\n····}\n··}\n\n··#connect(p:·Index,·n:·Index)·{\n····this.#prev[n]·=·p\n····this.#next[p]·=·n\n··}\n\n··#moveToTail(index:·Index):·void·{\n····//·if·tail·already,·nothing·to·do\n····//·if·head,·move·head·to·next[index]\n····//·else\n····//···move·next[prev[index]]·to·next[index]·(head·has·no·prev)\n····//···move·prev[next[index]]·to·prev[index]\n····//·prev[index]·=·tail\n····//·next[tail]·=·index\n····//·tail·=·index\n····if·(index·!==·this.#tail)·{\n······if·(index·===·this.#head)·{\n········this.#head·=·this.#next[index]·as·Index\n······}·else·{\n········this.#connect(\n··········this.#prev[index]·as·Index,\n··········this.#next[index]·as·Index,\n········)\n······}\n······this.#connect(this.#tail,·index)\n······this.#tail·=·index\n····}\n··}\n\n··/**\n···*·Deletes·a·key·out·of·the·cache.\n···*\n···*·Returns·true·if·the·key·was·deleted,·false·otherwise.\n···*/\n··delete(k:·K)·{\n····return·this.#delete(k,·'delete')\n··}\n\n··#delete(k:·K,·reason:·LRUCache.DisposeReason)·{\n····let·deleted·=·false\n····if·(this.#size·!==·0)·{\n······const·index·=·this.#keyMap.get(k)\n······if·(index·!==·undefined)·{\n········if·(this.#autopurgeTimers?.[index])·{\n··········clearTimeout(this.#autopurgeTimers?.[index])\n··········this.#autopurgeTimers[index]·=·undefined\n········}\n········deleted·=·true\n········if·(this.#size·===·1)·{\n··········this.#clear(reason)\n········}·else·{\n··········this.#removeItemSize(index)\n··········const·v·=·this.#valList[index]\n··········if·(this.#isBackgroundFetch(v))·{\n············v.__abortController.abort(new·Error('deleted'))\n··········}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(v·as·V,·k,·reason)\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([v·as·V,·k,·reason])\n············}\n··········}\n··········this.#keyMap.delete(k)\n··········this.#keyList[index]·=·undefined\n··········this.#valList[index]·=·undefined\n··········if·(index·===·this.#tail)·{\n············this.#tail·=·this.#prev[index]·as·Index\n··········}·else·if·(index·===·this.#head)·{\n············this.#head·=·this.#next[index]·as·Index\n··········}·else·{\n············const·pi·=·this.#prev[index]·as·number\n············this.#next[pi]·=·this.#next[index]·as·number\n············const·ni·=·this.#next[index]·as·number\n············this.#prev[ni]·=·this.#prev[index]·as·number\n··········}\n··········this.#size--\n··········this.#free.push(index)\n········}\n······}\n····}\n····if·(this.#hasDisposeAfter·&&·this.#disposed?.length)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Clear·the·cache·entirely,·throwing·away·all·values.\n···*/\n··clear()·{\n····return·this.#clear('delete')\n··}\n··#clear(reason:·LRUCache.DisposeReason)·{\n····for·(const·index·of·this.#rindexes({·allowStale:·true·}))·{\n······const·v·=·this.#valList[index]\n······if·(this.#isBackgroundFetch(v))·{\n········v.__abortController.abort(new·Error('deleted'))\n······}·else·{\n········const·k·=·this.#keyList[index]\n········if·(this.#hasDispose)·{\n··········this.#dispose?.(v·as·V,·k·as·K,·reason)\n········}\n········if·(this.#hasDisposeAfter)·{\n··········this.#disposed?.push([v·as·V,·k·as·K,·reason])\n········}\n······}\n····}\n\n····this.#keyMap.clear()\n····this.#valList.fill(undefined)\n····this.#keyList.fill(undefined)\n····if·(this.#ttls·&&·this.#starts)·{\n······this.#ttls.fill(0)\n······this.#starts.fill(0)\n······for·(const·t·of·this.#autopurgeTimers·??·[])·{\n········if·(t·!==·undefined)·clearTimeout(t)\n······}\n······this.#autopurgeTimers?.fill(undefined)\n····}\n····if·(this.#sizes)·{\n······this.#sizes.fill(0)\n····}\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free.length·=·0\n····this.#calculatedSize·=·0\n····this.#size·=·0\n····if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n··}\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 77, 16 lines modified | Offset 77, 16 lines modified | ||
| 000004c0:·3e79·2861·293f·613c·3d4d·6174·682e·706f··>y(a)?a<=Math.po | 000004c0:·3e79·2861·293f·613c·3d4d·6174·682e·706f··>y(a)?a<=Math.po | ||
| 000004d0:·7728·322c·3829·3f55·696e·7438·4172·7261··w(2,8)?Uint8Arra | 000004d0:·7728·322c·3829·3f55·696e·7438·4172·7261··w(2,8)?Uint8Arra | ||
| 000004e0:·793a·613c·3d4d·6174·682e·706f·7728·322c··y:a<=Math.pow(2, | 000004e0:·793a·613c·3d4d·6174·682e·706f·7728·322c··y:a<=Math.pow(2, | ||
| 000004f0:·3136·293f·5569·6e74·3136·4172·7261·793a··16)?Uint16Array: | 000004f0:·3136·293f·5569·6e74·3136·4172·7261·793a··16)?Uint16Array: | ||
| 00000500:·613c·3d4d·6174·682e·706f·7728·322c·3332··a<=Math.pow(2,32 | 00000500:·613c·3d4d·6174·682e·706f·7728·322c·3332··a<=Math.pow(2,32 | ||
| 00000510:·293f·5569·6e74·3332·4172·7261·793a·613c··)?Uint32Array:a< | 00000510:·293f·5569·6e74·3332·4172·7261·793a·613c··)?Uint32Array:a< | ||
| 00000520:·3d4e·756d·6265·722e·4d41·585f·5341·4645··=Number.MAX_SAFE | 00000520:·3d4e·756d·6265·722e·4d41·585f·5341·4645··=Number.MAX_SAFE | ||
| 00000530:·5f49·4e54·4547·4552·3f | 00000530:·5f49·4e54·4547·4552·3f7a·3a6e·756c·6c3a··_INTEGER?z:null: | ||
| 00000540:·6e75·6c6c·2c | 00000540:·6e75·6c6c·2c7a·3d63·6c61·7373·2065·7874··null,z=class·ext | ||
| 00000550:·656e·6473·2041·7272·6179·7b63·6f6e·7374··ends·Array{const | 00000550:·656e·6473·2041·7272·6179·7b63·6f6e·7374··ends·Array{const | ||
| 00000560:·7275·6374·6f72·2874·297b·7375·7065·7228··ructor(t){super( | 00000560:·7275·6374·6f72·2874·297b·7375·7065·7228··ructor(t){super( | ||
| 00000570:·7429·2c74·6869·732e·6669·6c6c·2830·297d··t),this.fill(0)} | 00000570:·7429·2c74·6869·732e·6669·6c6c·2830·297d··t),this.fill(0)} | ||
| 00000580:·7d2c·573d·636c·6173·7320·617b·6865·6170··},W=class·a{heap | 00000580:·7d2c·573d·636c·6173·7320·617b·6865·6170··},W=class·a{heap | ||
| 00000590:·3b6c·656e·6774·683b·7374·6174·6963·236f··;length;static#o | 00000590:·3b6c·656e·6774·683b·7374·6174·6963·236f··;length;static#o | ||
| 000005a0:·3d21·313b·7374·6174·6963·2063·7265·6174··=!1;static·creat | 000005a0:·3d21·313b·7374·6174·6963·2063·7265·6174··=!1;static·creat | ||
| 000005b0:·6528·7429·7b6c·6574·2065·3d55·2874·293b··e(t){let·e=U(t); | 000005b0:·6528·7429·7b6c·6574·2065·3d55·2874·293b··e(t){let·e=U(t); | ||
| Offset 145, 15 lines modified | Offset 145, 15 lines modified | ||
| 00000900:·6574·6368·3a65·3d3e·742e·2365·2865·292c··etch:e=>t.#e(e), | 00000900:·6574·6368·3a65·3d3e·742e·2365·2865·292c··etch:e=>t.#e(e), | ||
| 00000910:·6261·636b·6772·6f75·6e64·4665·7463·683a··backgroundFetch: | 00000910:·6261·636b·6772·6f75·6e64·4665·7463·683a··backgroundFetch: | ||
| 00000920:·2865·2c69·2c73·2c68·293d·3e74·2e23·4728··(e,i,s,h)=>t.#G( | 00000920:·2865·2c69·2c73·2c68·293d·3e74·2e23·4728··(e,i,s,h)=>t.#G( | ||
| 00000930:·652c·692c·732c·6829·2c6d·6f76·6554·6f54··e,i,s,h),moveToT | 00000930:·652c·692c·732c·6829·2c6d·6f76·6554·6f54··e,i,s,h),moveToT | ||
| 00000940:·6169·6c3a·653d·3e74·2e23·4428·6529·2c69··ail:e=>t.#D(e),i | 00000940:·6169·6c3a·653d·3e74·2e23·4428·6529·2c69··ail:e=>t.#D(e),i | ||
| 00000950:·6e64·6578·6573·3a65·3d3e·742e·2346·2865··ndexes:e=>t.#F(e | 00000950:·6e64·6578·6573·3a65·3d3e·742e·2346·2865··ndexes:e=>t.#F(e | ||
| 00000960:·292c·7269·6e64·6578·6573·3a65·3d3e·742e··),rindexes:e=>t. | 00000960:·292c·7269·6e64·6578·6573·3a65·3d3e·742e··),rindexes:e=>t. | ||
| 00000970:·234 | 00000970:·234f·2865·292c·6973·5374·616c·653a·653d··#O(e),isStale:e= | ||
| 00000980:·3e74·2e23·7028·6529·7d7d·6765·7420·6d61··>t.#p(e)}}get·ma | 00000980:·3e74·2e23·7028·6529·7d7d·6765·7420·6d61··>t.#p(e)}}get·ma | ||
| 00000990:·7828·297b·7265·7475·726e·2074·6869·732e··x(){return·this. | 00000990:·7828·297b·7265·7475·726e·2074·6869·732e··x(){return·this. | ||
| 000009a0:·236f·7d67·6574·206d·6178·5369·7a65·2829··#o}get·maxSize() | 000009a0:·236f·7d67·6574·206d·6178·5369·7a65·2829··#o}get·maxSize() | ||
| 000009b0:·7b72·6574·7572·6e20·7468·6973·2e23·637d··{return·this.#c} | 000009b0:·7b72·6574·7572·6e20·7468·6973·2e23·637d··{return·this.#c} | ||
| 000009c0:·6765·7420·6361·6c63·756c·6174·6564·5369··get·calculatedSi | 000009c0:·6765·7420·6361·6c63·756c·6174·6564·5369··get·calculatedSi | ||
| 000009d0:·7a65·2829·7b72·6574·7572·6e20·7468·6973··ze(){return·this | 000009d0:·7a65·2829·7b72·6574·7572·6e20·7468·6973··ze(){return·this | ||
| 000009e0:·2e23·5f7d·6765·7420·7369·7a65·2829·7b72··.#_}get·size(){r | 000009e0:·2e23·5f7d·6765·7420·7369·7a65·2829·7b72··.#_}get·size(){r | ||
| Offset 172, 45 lines modified | Offset 172, 45 lines modified | ||
| 00000ab0:·6178·3a65·3d30·2c74·746c·3a69·2c74·746c··ax:e=0,ttl:i,ttl | 00000ab0:·6178·3a65·3d30·2c74·746c·3a69·2c74·746c··ax:e=0,ttl:i,ttl | ||
| 00000ac0:·5265·736f·6c75·7469·6f6e·3a73·3d31·2c74··Resolution:s=1,t | 00000ac0:·5265·736f·6c75·7469·6f6e·3a73·3d31·2c74··Resolution:s=1,t | ||
| 00000ad0:·746c·4175·746f·7075·7267·653a·682c·7570··tlAutopurge:h,up | 00000ad0:·746c·4175·746f·7075·7267·653a·682c·7570··tlAutopurge:h,up | ||
| 00000ae0:·6461·7465·4167·654f·6e47·6574·3a6e·2c75··dateAgeOnGet:n,u | 00000ae0:·6461·7465·4167·654f·6e47·6574·3a6e·2c75··dateAgeOnGet:n,u | ||
| 00000af0:·7064·6174·6541·6765·4f6e·4861·733a·6f2c··pdateAgeOnHas:o, | 00000af0:·7064·6174·6541·6765·4f6e·4861·733a·6f2c··pdateAgeOnHas:o, | ||
| 00000b00:·616c·6c6f·7753·7461·6c65·3a72·2c64·6973··allowStale:r,dis | 00000b00:·616c·6c6f·7753·7461·6c65·3a72·2c64·6973··allowStale:r,dis | ||
| 00000b10:·706f·7365·3a66·2c6f·6e49·6e73·6572·743a··pose:f,onInsert: | 00000b10:·706f·7365·3a66·2c6f·6e49·6e73·6572·743a··pose:f,onInsert: | ||
| 00000b20:· | 00000b20:·6d2c·6469·7370·6f73·6541·6674·6572·3a63··m,disposeAfter:c | ||
| 00000b30:·2c6e·6f44·6973·706f·7365·4f6e·5365·743a··,noDisposeOnSet: | 00000b30:·2c6e·6f44·6973·706f·7365·4f6e·5365·743a··,noDisposeOnSet: | ||
| 00000b40:·642c·6e6f·5570·6461·7465·5454·4c3a·672c··d,noUpdateTTL:g, | 00000b40:·642c·6e6f·5570·6461·7465·5454·4c3a·672c··d,noUpdateTTL:g, | ||
| 00000b50:·6d61·7853·697a·653a·413d·302c·6d61·7845··maxSize:A=0,maxE | 00000b50:·6d61·7853·697a·653a·413d·302c·6d61·7845··maxSize:A=0,maxE | ||
| 00000b60:·6e74·7279·5369·7a65·3a70·3d30·2c73·697a··ntrySize:p=0,siz | 00000b60:·6e74·7279·5369·7a65·3a70·3d30·2c73·697a··ntrySize:p=0,siz | ||
| 00000b70:·6543·616c·6375·6c61·7469·6f6e·3a5f·2c66··eCalculation:_,f | 00000b70:·6543·616c·6375·6c61·7469·6f6e·3a5f·2c66··eCalculation:_,f | ||
| 00000b80:·6574·6368·4d65·7468·6f64·3a6c·2c6d·656d··etchMethod:l,mem | 00000b80:·6574·6368·4d65·7468·6f64·3a6c·2c6d·656d··etchMethod:l,mem | ||
| 00000b90:·6f4d·6574·686f·643a·772c·6e6f·4465·6c65··oMethod:w,noDele | 00000b90:·6f4d·6574·686f·643a·772c·6e6f·4465·6c65··oMethod:w,noDele | ||
| 00000ba0:·7465·4f6e·4665·7463·6852·656a·6563·7469··teOnFetchRejecti | 00000ba0:·7465·4f6e·4665·7463·6852·656a·6563·7469··teOnFetchRejecti | ||
| 00000bb0:·6f6e·3a62·2c6e·6f44·656c·6574·654f·6e53··on:b,noDeleteOnS | 00000bb0:·6f6e·3a62·2c6e·6f44·656c·6574·654f·6e53··on:b,noDeleteOnS | ||
| 00000bc0:·7461·6c65·4765·743a· | 00000bc0:·7461·6c65·4765·743a·532c·616c·6c6f·7753··taleGet:S,allowS | ||
| 00000bd0:·7461·6c65·4f6e·4665·7463·6852·656a·6563··taleOnFetchRejec | 00000bd0:·7461·6c65·4f6e·4665·7463·6852·656a·6563··taleOnFetchRejec | ||
| 00000be0:·7469·6f6e·3a | 00000be0:·7469·6f6e·3a75·2c61·6c6c·6f77·5374·616c··tion:u,allowStal | ||
| 00000bf0:·654f·6e46·6574·6368·4162·6f72·743a· | 00000bf0:·654f·6e46·6574·6368·4162·6f72·743a·542c··eOnFetchAbort:T, | ||
| 00000c00:·6967·6e6f·7265·4665·7463·6841·626f·7274··ignoreFetchAbort | 00000c00:·6967·6e6f·7265·4665·7463·6841·626f·7274··ignoreFetchAbort | ||
| 00000c10:·3a | 00000c10:·3a46·2c70·6572·663a·767d·3d74·3b69·6628··:F,perf:v}=t;if( | ||
| 00000c20:·7621·3d3d·766f·6964·2030·2626·7479·7065··v!==void·0&&type | 00000c20:·7621·3d3d·766f·6964·2030·2626·7479·7065··v!==void·0&&type | ||
| 00000c30:·6f66·2076·3f2e·6e6f·7721·3d22·6675·6e63··of·v?.now!="func | 00000c30:·6f66·2076·3f2e·6e6f·7721·3d22·6675·6e63··of·v?.now!="func | ||
| 00000c40:·7469·6f6e·2229·7468·726f·7720·6e65·7720··tion")throw·new· | 00000c40:·7469·6f6e·2229·7468·726f·7720·6e65·7720··tion")throw·new· | ||
| 00000c50:·5479·7065·4572·726f·7228·2270·6572·6620··TypeError("perf· | 00000c50:·5479·7065·4572·726f·7228·2270·6572·6620··TypeError("perf· | ||
| 00000c60:·6f70·7469·6f6e·206d·7573·7420·6861·7665··option·must·have | 00000c60:·6f70·7469·6f6e·206d·7573·7420·6861·7665··option·must·have | ||
| 00000c70:·2061·206e·6f77·2829·206d·6574·686f·6420···a·now()·method· | 00000c70:·2061·206e·6f77·2829·206d·6574·686f·6420···a·now()·method· | ||
| 00000c80:·6966·2073·7065·6369·6669·6564·2229·3b69··if·specified");i | 00000c80:·6966·2073·7065·6369·6669·6564·2229·3b69··if·specified");i | ||
| 00000c90:·6628·7468·6973·2e23·6d3d·763f·3f4d·2c65··f(this.#m=v??M,e | 00000c90:·6628·7468·6973·2e23·6d3d·763f·3f4d·2c65··f(this.#m=v??M,e | ||
| 00000ca0:·213d·3d30·2626·2179·2865·2929·7468·726f··!==0&&!y(e))thro | 00000ca0:·213d·3d30·2626·2179·2865·2929·7468·726f··!==0&&!y(e))thro | ||
| 00000cb0:·7720·6e65·7720·5479·7065·4572·726f·7228··w·new·TypeError( | 00000cb0:·7720·6e65·7720·5479·7065·4572·726f·7228··w·new·TypeError( | ||
| 00000cc0:·226d·6178·206f·7074·696f·6e20·6d75·7374··"max·option·must | 00000cc0:·226d·6178·206f·7074·696f·6e20·6d75·7374··"max·option·must | ||
| 00000cd0:·2062·6520·6120·6e6f·6e6e·6567·6174·6976···be·a·nonnegativ | 00000cd0:·2062·6520·6120·6e6f·6e6e·6567·6174·6976···be·a·nonnegativ | ||
| 00000ce0:·6520·696e·7465·6765·7222·293b·6c65·7420··e·integer");let· | 00000ce0:·6520·696e·7465·6765·7222·293b·6c65·7420··e·integer");let· | ||
| 00000cf0:·4 | 00000cf0:·4f3d·653f·5528·6529·3a41·7272·6179·3b69··O=e?U(e):Array;i | ||
| 00000d00:·6628·214 | 00000d00:·6628·214f·2974·6872·6f77·206e·6577·2045··f(!O)throw·new·E | ||
| 00000d10:·7272·6f72·2822·696e·7661·6c69·6420·6d61··rror("invalid·ma | 00000d10:·7272·6f72·2822·696e·7661·6c69·6420·6d61··rror("invalid·ma | ||
| 00000d20:·7820·7661·6c75·653a·2022·2b65·293b·6966··x·value:·"+e);if | 00000d20:·7820·7661·6c75·653a·2022·2b65·293b·6966··x·value:·"+e);if | ||
| 00000d30:·2874·6869·732e·236f·3d65·2c74·6869·732e··(this.#o=e,this. | 00000d30:·2874·6869·732e·236f·3d65·2c74·6869·732e··(this.#o=e,this. | ||
| 00000d40:·2363·3d41·2c74·6869·732e·6d61·7845·6e74··#c=A,this.maxEnt | 00000d40:·2363·3d41·2c74·6869·732e·6d61·7845·6e74··#c=A,this.maxEnt | ||
| 00000d50:·7279·5369·7a65·3d70·7c7c·7468·6973·2e23··rySize=p||this.# | 00000d50:·7279·5369·7a65·3d70·7c7c·7468·6973·2e23··rySize=p||this.# | ||
| 00000d60:·632c·7468·6973·2e73·697a·6543·616c·6375··c,this.sizeCalcu | 00000d60:·632c·7468·6973·2e73·697a·6543·616c·6375··c,this.sizeCalcu | ||
| 00000d70:·6c61·7469·6f6e·3d5f·2c74·6869·732e·7369··lation=_,this.si | 00000d70:·6c61·7469·6f6e·3d5f·2c74·6869·732e·7369··lation=_,this.si | ||
| Offset 245, 44 lines modified | Offset 245, 44 lines modified | ||
| 00000f40:·6422·293b·6966·2874·6869·732e·234c·3d6c··d");if(this.#L=l | 00000f40:·6422·293b·6966·2874·6869·732e·234c·3d6c··d");if(this.#L=l | ||
| 00000f50:·2c74·6869·732e·2376·3d21·216c·2c74·6869··,this.#v=!!l,thi | 00000f50:·2c74·6869·732e·2376·3d21·216c·2c74·6869··,this.#v=!!l,thi | ||
| 00000f60:·732e·2373·3d6e·6577·204d·6170·2c74·6869··s.#s=new·Map,thi | 00000f60:·732e·2373·3d6e·6577·204d·6170·2c74·6869··s.#s=new·Map,thi | ||
| 00000f70:·732e·2369·3d6e·6577·2041·7272·6179·2865··s.#i=new·Array(e | 00000f70:·732e·2369·3d6e·6577·2041·7272·6179·2865··s.#i=new·Array(e | ||
| 00000f80:·292e·6669·6c6c·2876·6f69·6420·3029·2c74··).fill(void·0),t | 00000f80:·292e·6669·6c6c·2876·6f69·6420·3029·2c74··).fill(void·0),t | ||
| 00000f90:·6869·732e·2374·3d6e·6577·2041·7272·6179··his.#t=new·Array | 00000f90:·6869·732e·2374·3d6e·6577·2041·7272·6179··his.#t=new·Array | ||
| 00000fa0:·2865·292e·6669·6c6c·2876·6f69·6420·3029··(e).fill(void·0) | 00000fa0:·2865·292e·6669·6c6c·2876·6f69·6420·3029··(e).fill(void·0) | ||
| 00000fb0:·2c74·6869·732e·2361·3d6e·6577·204 | 00000fb0:·2c74·6869·732e·2361·3d6e·6577·204f·2865··,this.#a=new·O(e | ||
| 00000fc0:·292c·7468·6973·2e23·753d·6e65·7720·4 | 00000fc0:·292c·7468·6973·2e23·753d·6e65·7720·4f28··),this.#u=new·O( | ||
| 00000fd0:·6529·2c74·6869·732e·236c·3d30·2c74·6869··e),this.#l=0,thi | 00000fd0:·6529·2c74·6869·732e·236c·3d30·2c74·6869··e),this.#l=0,thi | ||
| 00000fe0:·732e·2368·3d30·2c74·6869·732e·2362·3d57··s.#h=0,this.#b=W | 00000fe0:·732e·2368·3d30·2c74·6869·732e·2362·3d57··s.#h=0,this.#b=W | ||
| 00000ff0:·2e63·7265·6174·6528·6529·2c74·6869·732e··.create(e),this. | 00000ff0:·2e63·7265·6174·6528·6529·2c74·6869·732e··.create(e),this. | ||
| 00001000:·236e·3d30·2c74·6869·732e·235f·3d30·2c74··#n=0,this.#_=0,t | 00001000:·236e·3d30·2c74·6869·732e·235f·3d30·2c74··#n=0,this.#_=0,t | ||
| 00001010:·7970·656f·6620·663d·3d22·6675·6e63·7469··ypeof·f=="functi | 00001010:·7970·656f·6620·663d·3d22·6675·6e63·7469··ypeof·f=="functi | ||
| 00001020:·6f6e·2226·2628·7468·6973·2e23·773d·6629··on"&&(this.#w=f) | 00001020:·6f6e·2226·2628·7468·6973·2e23·773d·6629··on"&&(this.#w=f) | ||
| 00001030:·2c74·7970·656f·6620· | 00001030:·2c74·7970·656f·6620·6d3d·3d22·6675·6e63··,typeof·m=="func | ||
| 00001040:·7469·6f6e·2226·2628·7468·6973·2e23·433d··tion"&&(this.#C= | 00001040:·7469·6f6e·2226·2628·7468·6973·2e23·433d··tion"&&(this.#C= | ||
| 00001050:· | 00001050:·6d29·2c74·7970·656f·6620·633d·3d22·6675··m),typeof·c=="fu | ||
| 00001060:·6e63·7469·6f6e·223f·2874·6869·732e·2353··nction"?(this.#S | 00001060:·6e63·7469·6f6e·223f·2874·6869·732e·2353··nction"?(this.#S | ||
| 00001070:·3d63·2c74·6869·732e·2372·3d5b·5d29·3a28··=c,this.#r=[]):( | 00001070:·3d63·2c74·6869·732e·2372·3d5b·5d29·3a28··=c,this.#r=[]):( | ||
| Max diff block lines reached; 64595/72340 bytes (89.29%) of diff not shown. | |||
| Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
|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C,KAAKhD,IAAkB,KAAK,MAAS,CACvC,CASA,GARI,KAAKH,IACP,KAAKA,GAAO,KAAK,CAAC,EAEpB,KAAKJ,GAAQ,EACb,KAAKC,GAAQ,EACb,KAAKC,GAAM,OAAS,EACpB,KAAKR,GAAkB,EACvB,KAAKD,GAAQ,EACT,KAAKiB,IAAoB,KAAKP,GAAW,CAC3C,IAAMmF,EAAK,KAAKnF,GACZoF,EACJ,KAAQA,EAAOD,GAAI,MAAK,GACtB,KAAKjG,KAAgB,GAAGkG,CAAI,CAEhC,CACF", |
| 3 | ····"names":·[ | 3 | ····"names":·[ |
| 4 | ········"defaultPerf", | 4 | ········"defaultPerf", |
| 5 | ········"warned", | 5 | ········"warned", |
| 6 | ········"PROCESS", | 6 | ········"PROCESS", |
| 7 | ········"emitWarning", | 7 | ········"emitWarning", |
| 8 | ········"msg", | 8 | ········"msg", |
| 9 | ········"type", | 9 | ········"type", |
| Offset 141, 14 lines modified | Offset 141, 15 lines modified | ||
| 141 | ········"ac", | 141 | ········"ac", |
| 142 | ········"signal", | 142 | ········"signal", |
| 143 | ········"fetchOpts", | 143 | ········"fetchOpts", |
| 144 | ········"cb", | 144 | ········"cb", |
| 145 | ········"updateCache", | 145 | ········"updateCache", |
| 146 | ········"aborted", | 146 | ········"aborted", |
| 147 | ········"ignoreAbort", | 147 | ········"ignoreAbort", |
| 148 | ········"proceed", | ||
| 148 | ········"fetchFail", | 149 | ········"fetchFail", |
| 149 | ········"bf", | 150 | ········"bf", |
| 150 | ········"vl", | 151 | ········"vl", |
| 151 | ········"eb", | 152 | ········"eb", |
| 152 | ········"er", | 153 | ········"er", |
| 153 | ········"allowStaleAborted", | 154 | ········"allowStaleAborted", |
| 154 | ········"noDelete", | 155 | ········"noDelete", |
| Offset 170, 11 lines modified | Offset 171, 11 lines modified | ||
| 170 | ········"pi", | 171 | ········"pi", |
| 171 | ········"ni" | 172 | ········"ni" |
| 172 | ····], | 173 | ····], |
| 173 | ····"sources":·[ | 174 | ····"sources":·[ |
| 174 | ········"../../src/index.ts" | 175 | ········"../../src/index.ts" |
| 175 | ····], | 176 | ····], |
| 176 | ····"sourcesContent":·[ | 177 | ····"sourcesContent":·[ |
| 177 | ········"/**\n·*·@module·LRUCache\n·*/\n\n//·module-private·names·and·types\n//·this·provides·the·default·Perf·object·source.\n//·it·can·be·passed·in·via·configuration·to·override·it\n//·for·a·single·LRU·object.\nexport·type·Perf·=·{·now:·()·=>·number·}\nconst·defaultPerf:·Perf·=\n··(\n····typeof·performance·===·'object'·&&\n····performance·&&\n····typeof·performance.now·===·'function'\n··)·?\n····performance\n··:·Date\n\nconst·warned·=·new·Set<string>()\n\n//·either·a·function·or·a·class\ntype·ForC·=·((...a:·any[])·=>·any)·|·{·new·(...a:·any[]):·any·}\n\n/*·c8·ignore·start·*/\nconst·PROCESS·=·(\n··typeof·process·===·'object'·&&·!!process·?\n····process\n··:·{})·as·{·[k:·string]:·any·}\n/*·c8·ignore·start·*/\n\nconst·emitWarning·=·(\n··msg:·string,\n··type:·string,\n··code:·string,\n··fn:·ForC,\n)·=>·{\n··typeof·PROCESS.emitWarning·===·'function'·?\n····PROCESS.emitWarning(msg,·type,·code,·fn)\n··:·console.error(`[${code}]·${type}:·${msg}`)\n}\n\nlet·AC·=·globalThis.AbortController\nlet·AS·=·globalThis.AbortSignal\n\n/*·c8·ignore·start·*/\nif·(typeof·AC·===·'undefined')·{\n··//@ts-ignore\n··AS·=·class·AbortSignal·{\n····onabort?:·(...a:·any[])·=>·any\n····_onabort:·((...a:·any[])·=>·any)[]·=·[]\n····reason?:·any\n····aborted:·boolean·=·false\n····addEventListener(_:·string,·fn:·(...a:·any[])·=>·any)·{\n······this._onabort.push(fn)\n····}\n··}\n··//@ts-ignore\n··AC·=·class·AbortController·{\n····constructor()·{\n······warnACPolyfill()\n····}\n····signal·=·new·AS()\n····abort(reason:·any)·{\n······if·(this.signal.aborted)·return\n······//@ts-ignore\n······this.signal.reason·=·reason\n······//@ts-ignore\n······this.signal.aborted·=·true\n······//@ts-ignore\n······for·(const·fn·of·this.signal._onabort)·{\n········fn(reason)\n······}\n······this.signal.onabort?.(reason)\n····}\n··}\n··let·printACPolyfillWarning·=\n····PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING·!==·'1'\n··const·warnACPolyfill·=·()·=>·{\n····if·(!printACPolyfillWarning)·return\n····printACPolyfillWarning·=·false\n····emitWarning(\n······'AbortController·is·not·defined.·If·using·lru-cache·in·'·+\n········'node·14,·load·an·AbortController·polyfill·from·the·'·+\n········'`node-abort-controller`·package.·A·minimal·polyfill·is·'·+\n········'provided·for·use·by·LRUCache.fetch(),·but·it·should·not·be·'·+\n········'relied·upon·in·other·contexts·(eg,·passing·it·to·other·APIs·that·'·+\n········'use·AbortController/AbortSignal·might·have·undesirable·effects).·'·+\n········'You·may·disable·this·with·LRU_CACHE_IGNORE_AC_WARNING=1·in·the·env.',\n······'NO_ABORT_CONTROLLER',\n······'ENOTSUP',\n······warnACPolyfill,\n····)\n··}\n}\n/*·c8·ignore·stop·*/\n\nconst·shouldWarn·=·(code:·string)·=>·!warned.has(code)\n\nconst·TYPE·=·Symbol('type')\nexport·type·PosInt·=·number·&·{·[TYPE]:·'Positive·Integer'·}\nexport·type·Index·=·number·&·{·[TYPE]:·'LRUCache·Index'·}\n\nconst·isPosInt·=·(n:·any):·n·is·PosInt·=>\n··n·&&·n·===·Math.floor(n)·&&·n·>·0·&&·isFinite(n)\n\nexport·type·UintArray·=·Uint8Array·|·Uint16Array·|·Uint32Array\nexport·type·NumberArray·=·UintArray·|·number[]\n\n/*·c8·ignore·start·*/\n//·This·is·a·little·bit·ridiculous,·tbh.\n//·The·maximum·array·length·is·2^32-1·or·thereabouts·on·most·JS·impls.\n//·And·well·before·that·point,·you're·caching·the·entire·world,·I·mean,\n//·that's·~32GB·of·just·integers·for·the·next/prev·links,·plus·whatever\n//·else·to·hold·that·many·keys·and·values.··Just·filling·the·memory·with\n//·zeroes·at·init·time·is·brutal·when·you·get·that·big.\n//·But·why·not·be·complete?\n//·Maybe·in·the·future,·these·limits·will·have·expanded.\nconst·getUintArray·=·(max:·number)·=>\n··!isPosInt(max)·?·null\n··:·max·<=·Math.pow(2,·8)·?·Uint8Array\n··:·max·<=·Math.pow(2,·16)·?·Uint16Array\n··:·max·<=·Math.pow(2,·32)·?·Uint32Array\n··:·max·<=·Number.MAX_SAFE_INTEGER·?·ZeroArray\n··:·null\n/*·c8·ignore·stop·*/\n\nclass·ZeroArray·extends·Array<number>·{\n··constructor(size:·number)·{\n····super(size)\n····this.fill(0)\n··}\n}\nexport·type·{·ZeroArray·}\nexport·type·{·Stack·}\n\nexport·type·StackLike·=·Stack·|·Index[]\nclass·Stack·{\n··heap:·NumberArray\n··length:·number\n··//·private·constructor\n··static·#constructing:·boolean·=·false\n··static·create(max:·number):·StackLike·{\n····const·HeapCls·=·getUintArray(max)\n····if·(!HeapCls)·return·[]\n····Stack.#constructing·=·true\n····const·s·=·new·Stack(max,·HeapCls)\n····Stack.#constructing·=·false\n····return·s\n··}\n··constructor(max:·number,·HeapCls:·{·new·(n:·number):·NumberArray·})·{\n····/*·c8·ignore·start·*/\n····if·(!Stack.#constructing)·{\n······throw·new·TypeError('instantiate·Stack·using·Stack.create(n)')\n····}\n····/*·c8·ignore·stop·*/\n····this.heap·=·new·HeapCls(max)\n····this.length·=·0\n··}\n··push(n:·Index)·{\n····this.heap[this.length++]·=·n\n··}\n··pop():·Index·{\n····return·this.heap[--this.length]·as·Index\n··}\n}\n\n/**\n·*·Promise·representing·an·in-progress·{@link·LRUCache#fetch}·call\n·*/\nexport·type·BackgroundFetch<V>·=·Promise<V·|·undefined>·&·{\n··__returned:·BackgroundFetch<V>·|·undefined\n··__abortController:·AbortController\n··__staleWhileFetching:·V·|·undefined\n}\n\nexport·type·DisposeTask<K,·V>·=·[\n··value:·V,\n··key:·K,\n··reason:·LRUCache.DisposeReason,\n]\n\nexport·namespace·LRUCache·{\n··/**\n···*·An·integer·greater·than·0,·reflecting·the·calculated·size·of·items\n···*/\n··export·type·Size·=·number\n\n··/**\n···*·Integer·greater·than·0,·representing·some·number·of·milliseconds,·or·the\n···*·time·at·which·a·TTL·started·counting·from.\n···*/\n··export·type·Milliseconds·=·number\n\n··/**\n···*·An·integer·greater·than·0,·reflecting·a·number·of·items\n···*/\n··export·type·Count·=·number\n\n··/**\n···*·The·reason·why·an·item·was·removed·from·the·cache,·passed\n···*·to·the·{@link·Disposer}·methods.\n···*\n···*·-·`evict`:·The·item·was·evicted·because·it·is·the·least·recently·used,\n···*···and·the·cache·is·full.\n···*·-·`set`:·A·new·value·was·set,·overwriting·the·old·value·being·disposed.\n···*·-·`delete`:·The·item·was·explicitly·deleted,·either·by·calling\n···*···{@link·LRUCache#delete},·{@link·LRUCache#clear},·or\n···*···{@link·LRUCache#set}·with·an·undefined·value.\n···*·-·`expire`:·The·item·was·removed·due·to·exceeding·its·TTL.\n···*·-·`fetch`:·A·{@link·OptionsBase#fetchMethod}·operation·returned\n···*···`undefined`·or·was·aborted,·causing·the·item·to·be·deleted.\n···*/\n··export·type·DisposeReason·=\n····|·'evict'\n····|·'set'\n····|·'delete'\n····|·'expire'\n····|·'fetch'\n··/**\n···*·A·method·called·upon·item·removal,·passed·as·the\n···*·{@link·OptionsBase.dispose}·and/or\n···*·{@link·OptionsBase.disposeAfter}·options.\n···*/\n··export·type·Disposer<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·DisposeReason,\n··)·=>·void\n\n··/**\n···*·The·reason·why·an·item·was·added·to·the·cache,·passed\n···*·to·the·{@link·Inserter}·methods.\n···*\n···*·-·`add`:·the·item·was·not·found·in·the·cache,·and·was·added\n···*·-·`update`:·the·item·was·in·the·cache,·with·the·same·value·provided\n···*·-·`replace`:·the·item·was·in·the·cache,·and·replaced\n···*/\n··export·type·InsertReason·=·'add'·|·'update'·|·'replace'\n\n··/**\n···*·A·method·called·upon·item·insertion,·passed·as·the\n···*·{@link·OptionsBase.insert}\n···*/\n··export·type·Inserter<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·InsertReason,\n··)·=>·void\n\n··/**\n···*·A·function·that·returns·the·effective·calculated·size\n···*·of·an·entry·in·the·cache.\n···*/\n··export·type·SizeCalculator<K,·V>·=·(value:·V,·key:·K)·=>·Size\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.fetchMethod}·function.\n···*/\n··export·interface·FetcherOptions<K,·V,·FC·=·unknown>·{\n····signal:·AbortSignal\n····options:·FetcherFetchOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·FetchOptions.context}·option·to\n·····*·{@link·LRUCache#fetch}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·Occasionally,·it·may·be·useful·to·track·the·internal·behavior·of·the\n···*·cache,·particularly·for·logging,·debugging,·or·for·behavior·within·the\n···*·`fetchMethod`.·To·do·this,·you·can·pass·a·`status`·object·to·the\n···*·{@link·LRUCache#fetch},·{@link·LRUCache#get},·{@link·LRUCache#set},\n···*·{@link·LRUCache#memo},·and·{@link·LRUCache#has}·methods.\n···*\n···*·The·`status`·option·should·be·a·plain·JavaScript·object.·The·following\n···*·fields·will·be·set·on·it·appropriately,·depending·on·the·situation.\n···*/\n··export·interface·Status<V>·{\n····/**\n·····*·The·status·of·a·set()·operation.\n·····*\n·····*·-·add:·the·item·was·not·found·in·the·cache,·and·was·added\n·····*·-·update:·the·item·was·in·the·cache,·with·the·same·value·provided\n·····*·-·replace:·the·item·was·in·the·cache,·and·replaced\n·····*·-·miss:·the·item·was·not·added·to·the·cache·for·some·reason\n·····*/\n····set?:·'add'·|·'update'·|·'replace'·|·'miss'\n\n····/**\n·····*·the·ttl·stored·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·the·start·time·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····start?:·Milliseconds\n\n····/**\n·····*·The·timestamp·used·for·TTL·calculation\n·····*/\n····now?:·Milliseconds\n\n····/**\n·····*·the·remaining·ttl·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····remainingTTL?:·Milliseconds\n\n····/**\n·····*·The·calculated·size·for·the·item,·if·sizes·are·used.\n·····*/\n····entrySize?:·Size\n\n····/**\n·····*·The·total·calculated·size·of·the·cache,·if·sizes·are·used.\n·····*/\n····totalCalculatedSize?:·Size\n\n····/**\n·····*·A·flag·indicating·that·the·item·was·not·stored,·due·to·exceeding·the\n·····*·{@link·OptionsBase.maxEntrySize}\n·····*/\n····maxEntrySizeExceeded?:·true\n\n····/**\n·····*·The·old·value,·specified·in·the·case·of·`set:'update'`·or\n·····*·`set:'replace'`\n·····*/\n····oldValue?:·V\n\n····/**\n·····*·The·results·of·a·{@link·LRUCache#has}·operation\n·····*\n·····*·-·hit:·the·item·was·found·in·the·cache\n·····*·-·stale:·the·item·was·found·in·the·cache,·but·is·stale\n·····*·-·miss:·the·item·was·not·found·in·the·cache\n·····*/\n····has?:·'hit'·|·'stale'·|·'miss'\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#fetch}·operation.\n·····*·Note·that·this·can·change·as·the·underlying·fetch()·moves·through\n·····*·various·states.\n·····*\n·····*·-·inflight:·there·is·another·fetch()·for·this·key·which·is·in·process\n·····*·-·get:·there·is·no·{@link·OptionsBase.fetchMethod},·so\n·····*···{@link·LRUCache#get}·was·called.\n·····*·-·miss:·the·item·is·not·in·cache,·and·will·be·fetched.\n·····*·-·hit:·the·item·is·in·the·cache,·and·was·resolved·immediately.\n·····*·-·stale:·the·item·is·in·the·cache,·but·stale.\n·····*·-·refresh:·the·item·is·in·the·cache,·and·not·stale,·but\n·····*···{@link·FetchOptions.forceRefresh}·was·specified.\n·····*/\n····fetch?:·'get'·|·'inflight'·|·'miss'·|·'hit'·|·'stale'·|·'refresh'\n\n····/**\n·····*·The·{@link·OptionsBase.fetchMethod}·was·called\n·····*/\n····fetchDispatched?:·true\n\n····/**\n·····*·The·cached·value·was·updated·after·a·successful·call·to\n·····*·{@link·OptionsBase.fetchMethod}\n·····*/\n····fetchUpdated?:·true\n\n····/**\n·····*·The·reason·for·a·fetch()·rejection.··Either·the·error·raised·by·the\n·····*·{@link·OptionsBase.fetchMethod},·or·the·reason·for·an\n·····*·AbortSignal.\n·····*/\n····fetchError?:·Error\n\n····/**\n·····*·The·fetch·received·an·abort·signal\n·····*/\n····fetchAborted?:·true\n\n····/**\n·····*·The·abort·signal·received·was·ignored,·and·the·fetch·was·allowed·to\n·····*·continue.\n·····*/\n····fetchAbortIgnored?:·true\n\n····/**\n·····*·The·fetchMethod·promise·resolved·successfully\n·····*/\n····fetchResolved?:·true\n\n····/**\n·····*·The·fetchMethod·promise·was·rejected\n·····*/\n····fetchRejected?:·true\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#get}·operation.\n·····*\n·····*·-·fetching:·The·item·is·currently·being·fetched.··If·a·previous·value\n·····*···is·present·and·allowed,·that·will·be·returned.\n·····*·-·stale:·The·item·is·in·the·cache,·and·is·stale.\n·····*·-·hit:·the·item·is·in·the·cache\n·····*·-·miss:·the·item·is·not·in·the·cache\n·····*/\n····get?:·'stale'·|·'hit'·|·'miss'\n\n····/**\n·····*·A·fetch·or·get·operation·returned·a·stale·value.\n·····*/\n····returnedStale?:·true\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#fetch}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·OptionsBase.noDeleteOnFetchRejection},\n···*·{@link·OptionsBase.allowStaleOnFetchRejection},\n···*·{@link·FetchOptions.forceRefresh},·and\n···*·{@link·FetcherOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.fetchMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·fetchMethod·is·called.\n···*/\n··export·interface·FetcherFetchOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#fetch}·method.\n···*/\n··export·interface·FetchOptions<K,·V,·FC>\n····extends·FetcherFetchOptions<K,·V,·FC>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.fetchMethod}·as\n·····*·the·{@link·FetcherOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····signal?:·AbortSignal\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·FetchOptionsWithContext<K,·V,·FC>\n····extends·FetchOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·FetchOptionsNoContext<K,·V>\n····extends·FetchOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··export·interface·MemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.memoMethod}·as\n·····*·the·{@link·MemoizerOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·MemoOptionsWithContext<K,·V,·FC>\n····extends·MemoOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·MemoOptionsNoContext<K,·V>\n····extends·MemoOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.memoMethod}·function.\n···*/\n··export·interface·MemoizerOptions<K,·V,·FC·=·unknown>·{\n····options:·MemoizerMemoOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·MemoOptions.context}·option·to\n·····*·{@link·LRUCache#memo}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#memo}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·MemoOptions.forceRefresh},·and\n···*·{@link·MemoOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.memoMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·memoMethod·is·called.\n···*/\n··export·interface·MemoizerMemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n····start?:·Milliseconds\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#has}·method.\n···*/\n··export·interface·HasOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'updateAgeOnHas'>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#get}·method.\n···*/\n··export·interface·GetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'allowStale'·|·'updateAgeOnGet'·|·'noDeleteOnStaleGet'\n····>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#peek}·method.\n···*/\n··export·interface·PeekOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'allowStale'>·{}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#set}·method.\n···*/\n··export·interface·SetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'sizeCalculation'·|·'ttl'·|·'noDisposeOnSet'·|·'noUpdateTTL'\n····>·{\n····/**\n·····*·If·size·tracking·is·enabled,·then·setting·an·explicit·size\n·····*·in·the·{@link·LRUCache#set}·call·will·prevent·calling·the\n·····*·{@link·OptionsBase.sizeCalculation}·function.\n·····*/\n····size?:·Size\n····/**\n·····*·If·TTL·tracking·is·enabled,·then·setting·an·explicit·start\n·····*·time·in·the·{@link·LRUCache#set}·call·will·override·the\n·····*·default·time·from·`performance.now()`·or·`Date.now()`.\n·····*\n·····*·Note·that·it·must·be·a·valid·value·for·whichever·time-tracking\n·····*·method·is·in·use.\n·····*/\n····start?:·Milliseconds\n····status?:·Status<V>\n··}\n\n··/**\n···*·The·type·signature·for·the·{@link·OptionsBase.fetchMethod}·option.\n···*/\n··export·type·Fetcher<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·FetcherOptions<K,·V,·FC>,\n··)·=>·Promise<V·|·undefined·|·void>·|·V·|·undefined·|·void\n\n··/**\n···*·the·type·signature·for·the·{@link·OptionsBase.memoMethod}·option.\n···*/\n··export·type·Memoizer<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·MemoizerOptions<K,·V,·FC>,\n··)·=>·V\n\n··/**\n···*·Options·which·may·be·passed·to·the·{@link·LRUCache}·constructor.\n···*\n···*·Most·of·these·may·be·overridden·in·the·various·options·that·use\n···*·them.\n···*\n···*·Despite·all·being·technically·optional,·the·constructor·requires·that\n···*·a·cache·is·at·minimum·limited·by·one·or·more·of·{@link·OptionsBase.max},\n···*·{@link·OptionsBase.ttl},·or·{@link·OptionsBase.maxSize}.\n···*\n···*·If·{@link·OptionsBase.ttl}·is·used·alone,·then·it·is·strongly·advised\n···*·(and·in·fact·required·by·the·type·definitions·here)·that·the·cache\n···*·also·set·{@link·OptionsBase.ttlAutopurge},·to·prevent·potentially\n···*·unbounded·storage.\n···*\n···*·All·options·are·also·available·on·the·{@link·LRUCache}·instance,·making\n···*·it·safe·to·pass·an·LRUCache·instance·as·the·options·argumemnt·to\n···*·make·another·empty·cache·of·the·same·type.\n···*\n···*·Some·options·are·marked·as·read-only,·because·changing·them·after\n···*·instantiation·is·not·safe.·Changing·any·of·the·other·options·will·of\n···*·course·only·have·an·effect·on·subsequent·method·calls.\n···*/\n··export·interface·OptionsBase<K,·V,·FC>·{\n····/**\n·····*·The·maximum·number·of·items·to·store·in·the·cache·before·evicting\n·····*·old·entries.·This·is·read-only·on·the·{@link·LRUCache}·instance,\n·····*·and·may·not·be·overridden.\n·····*\n·····*·If·set,·then·storage·space·will·be·pre-allocated·at·construction\n·····*·time,·and·the·cache·will·perform·significantly·faster.\n·····*\n·····*·Note·that·significantly·fewer·items·may·be·stored,·if\n·····*·{@link·OptionsBase.maxSize}·and/or·{@link·OptionsBase.ttl}·are·also\n·····*·set.\n·····*\n·····*·**It·is·strongly·recommended·to·set·a·`max`·to·prevent·unbounded·growth\n·····*·of·the·cache.**\n·····*/\n····max?:·Count\n\n····/**\n·····*·Max·time·in·milliseconds·for·items·to·live·in·cache·before·they·are\n·····*·considered·stale.··Note·that·stale·items·are·NOT·preemptively·removed·by\n·····*·default,·and·MAY·live·in·the·cache,·contributing·to·its·LRU·max,·long\n·····*·after·they·have·expired,·unless·{@link·OptionsBase.ttlAutopurge}·is\n·····*·set.\n·····*\n·····*·If·set·to·`0`·(the·default·value),·then·that·means·\"do·not·track\n·····*·TTL\",·not·\"expire·immediately\".\n·····*\n·····*·Also,·as·this·cache·is·optimized·for·LRU/MRU·operations,·some·of\n·····*·the·staleness/TTL·checks·will·reduce·performance,·as·they·will·incur\n·····*·overhead·by·deleting·items.\n·····*\n·····*·This·is·not·primarily·a·TTL·cache,·and·does·not·make·strong·TTL\n·····*·guarantees.·There·is·no·pre-emptive·pruning·of·expired·items,·but·you\n·····*·_may_·set·a·TTL·on·the·cache,·and·it·will·treat·expired·items·as·missing\n·····*·when·they·are·fetched,·and·delete·them.\n·····*\n·····*·Optional,·but·must·be·a·non-negative·integer·in·ms·if·specified.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.set()`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·ttl·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·If·ttl·tracking·is·enabled,·and·`max`·and·`maxSize`·are·not·set,\n·····*·and·`ttlAutopurge`·is·not·set,·then·a·warning·will·be·emitted\n·····*·cautioning·about·the·potential·for·unbounded·memory·consumption.\n·····*·(The·TypeScript·definitions·will·also·discourage·this.)\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·Minimum·amount·of·time·in·ms·in·which·to·check·for·staleness.\n·····*·Defaults·to·1,·which·means·that·the·current·time·is·checked\n·····*·at·most·once·per·millisecond.\n·····*\n·····*·Set·to·0·to·check·the·current·time·every·time·staleness·is·tested.\n·····*·(This·reduces·performance,·and·is·theoretically·unnecessary.)\n·····*\n·····*·Setting·this·to·a·higher·value·will·improve·performance·somewhat\n·····*·while·using·ttl·tracking,·albeit·at·the·expense·of·keeping·stale\n·····*·items·around·a·bit·longer·than·their·TTLs·would·indicate.\n·····*\n·····*·@default·1\n·····*/\n····ttlResolution?:·Milliseconds\n\n····/**\n·····*·Preemptively·remove·stale·items·from·the·cache.\n·····*\n·····*·Note·that·this·may·*significantly*·degrade·performance,·especially·if\n·····*·the·cache·is·storing·a·large·number·of·items.·It·is·almost·always·best\n·····*·to·just·leave·the·stale·items·in·the·cache,·and·let·them·fall·out·as·new\n·····*·items·are·added.\n·····*\n·····*·Note·that·this·means·that·{@link·OptionsBase.allowStale}·is·a·bit\n·····*·pointless,·as·stale·items·will·be·deleted·almost·as·soon·as·they\n·····*·expire.\n·····*\n·····*·Use·with·caution!\n·····*/\n····ttlAutopurge?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·it·is·retrieved·from·cache·with\n·····*·{@link·LRUCache#get},·causing·it·to·not·expire.·(It·can·still·fall·out\n·····*·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*/\n····updateAgeOnGet?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·its·presence·in·the·cache·is\n·····*·checked·with·{@link·LRUCache#has},·causing·it·to·not·expire.·(It·can\n·····*·still·fall·out·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*/\n····updateAgeOnHas?:·boolean\n\n····/**\n·····*·Allow·{@link·LRUCache#get}·and·{@link·LRUCache#fetch}·calls·to·return\n·····*·stale·data,·if·available.\n·····*\n·····*·By·default,·if·you·set·`ttl`,·stale·items·will·only·be·deleted·from·the\n·····*·cache·when·you·`get(key)`.·That·is,·it's·not·preemptively·pruning·items,\n·····*·unless·{@link·OptionsBase.ttlAutopurge}·is·set.\n·····*\n·····*·If·you·set·`allowStale:true`,·it'll·return·the·stale·value·*as·well·as*\n·····*·deleting·it.·If·you·don't·set·this,·then·it'll·return·`undefined`·when\n·····*·you·try·to·get·a·stale·entry.\n·····*\n·····*·Note·that·when·a·stale·entry·is·fetched,·_even·if·it·is·returned·due·to\n·····*·`allowStale`·being·set_,·it·is·removed·from·the·cache·immediately.·You\n·····*·can·suppress·this·behavior·by·setting\n·····*·{@link·OptionsBase.noDeleteOnStaleGet},·either·in·the·constructor,·or·in\n·····*·the·options·provided·to·{@link·LRUCache#get}.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*·The·`cache.has()`·method·will·always·return·`false`·for·stale·items.\n·····*\n·····*·Only·relevant·if·a·ttl·is·set.\n·····*/\n····allowStale?:·boolean\n\n····/**\n·····*·Function·that·is·called·on·items·when·they·are·dropped·from·the\n·····*·cache,·as·`dispose(value,·key,·reason)`.\n·····*\n·····*·This·can·be·handy·if·you·want·to·close·file·descriptors·or·do\n·····*·other·cleanup·tasks·when·items·are·no·longer·stored·in·the·cache.\n·····*\n·····*·**NOTE**:·It·is·called·_before_·the·item·has·been·fully·removed\n·····*·from·the·cache,·so·if·you·want·to·put·it·right·back·in,·you·need\n·····*·to·wait·until·the·next·tick.·If·you·try·to·add·it·back·in·during\n·····*·the·`dispose()`·function·call,·it·will·break·things·in·subtle·and\n·····*·weird·ways.\n·····*\n·····*·Unlike·several·other·options,·this·may·_not_·be·overridden·by\n·····*·passing·an·option·to·`set()`,·for·performance·reasons.\n·····*\n·····*·The·`reason`·will·be·one·of·the·following·strings,·corresponding\n·····*·to·the·reason·for·the·item's·deletion:\n·····*\n·····*·-·`evict`·Item·was·evicted·to·make·space·for·a·new·addition\n·····*·-·`set`·Item·was·overwritten·by·a·new·value\n·····*·-·`expire`·Item·expired·its·TTL\n·····*·-·`fetch`·Item·was·deleted·due·to·a·failed·or·aborted·fetch,·or·a\n·····*···fetchMethod·returning·`undefined.\n·····*·-·`delete`·Item·was·removed·by·explicit·`cache.delete(key)`,\n·····*···`cache.clear()`,·or·`cache.set(key,·undefined)`.\n·····*/\n····dispose?:·Disposer<K,·V>\n\n····/**\n·····*·Function·that·is·called·when·new·items·are·inserted·into·the·cache,\n·····*·as·`onInsert(value,·key,·reason)`.\n·····*\n·····*·This·can·be·useful·if·you·need·to·perform·actions·when·an·item·is\n·····*·added,·such·as·logging·or·tracking·insertions.\n·····*\n·····*·Unlike·some·other·options,·this·may·_not_·be·overridden·by·passing\n·····*·an·option·to·`set()`,·for·performance·and·consistency·reasons.\n·····*/\n····onInsert?:·Inserter<K,·V>\n\n····/**\n·····*·The·same·as·{@link·OptionsBase.dispose},·but·called·*after*·the·entry\n·····*·is·completely·removed·and·the·cache·is·once·again·in·a·clean·state.\n·····*\n·····*·It·is·safe·to·add·an·item·right·back·into·the·cache·at·this·point.\n·····*·However,·note·that·it·is·*very*·easy·to·inadvertently·create·infinite\n·····*·recursion·this·way.\n·····*/\n····disposeAfter?:·Disposer<K,·V>\n\n····/**\n·····*·Set·to·true·to·suppress·calling·the\n·····*·{@link·OptionsBase.dispose}·function·if·the·entry·key·is\n·····*·still·accessible·within·the·cache.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to\n·····*·{@link·LRUCache#set}.\n·····*\n·····*·Only·relevant·if·`dispose`·or·`disposeAfter`·are·set.\n·····*/\n····noDisposeOnSet?:·boolean\n\n····/**\n·····*·Boolean·flag·to·tell·the·cache·to·not·update·the·TTL·when·setting·a·new\n·····*·value·for·an·existing·key·(ie,·when·updating·a·value·rather·than\n·····*·inserting·a·new·value).··Note·that·the·TTL·value·is·_always_·set·(if\n·····*·provided)·when·adding·a·new·entry·into·the·cache.\n·····*\n·····*·Has·no·effect·if·a·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·May·be·passed·as·an·option·to·{@link·LRUCache#set}.\n·····*/\n····noUpdateTTL?:·boolean\n\n····/**\n·····*·Set·to·a·positive·integer·to·track·the·sizes·of·items·added·to·the\n·····*·cache,·and·automatically·evict·items·in·order·to·stay·below·this·size.\n·····*·Note·that·this·may·result·in·fewer·than·`max`·items·being·stored.\n·····*\n·····*·Attempting·to·add·an·item·to·the·cache·whose·calculated·size·is·greater\n·····*·that·this·amount·will·be·a·no-op.·The·item·will·not·be·cached,·and·no\n·····*·other·items·will·be·evicted.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.\n·····*\n·····*·Sets·`maxEntrySize`·to·the·same·value,·unless·a·different·value·is\n·····*·provided·for·`maxEntrySize`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·size·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·Note·also·that·size·tracking·can·negatively·impact·performance,\n·····*·though·for·most·cases,·only·minimally.\n·····*/\n····maxSize?:·Size\n\n····/**\n·····*·The·maximum·allowed·size·for·any·single·item·in·the·cache.\n·····*\n·····*·If·a·larger·item·is·passed·to·{@link·LRUCache#set}·or·returned·by·a\n·····*·{@link·OptionsBase.fetchMethod}·or·{@link·OptionsBase.memoMethod},·then\n·····*·it·will·not·be·stored·in·the·cache.\n·····*\n·····*·Attempting·to·add·an·item·whose·calculated·size·is·greater·than\n·····*·this·amount·will·not·cache·the·item·or·evict·any·old·items,·but\n·····*·WILL·delete·an·existing·value·if·one·is·already·present.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.·Defaults·to\n·····*·the·value·of·`maxSize`·if·provided.\n·····*/\n····maxEntrySize?:·Size\n\n····/**\n·····*·A·function·that·returns·a·number·indicating·the·item's·size.\n·····*\n·····*·Requires·{@link·OptionsBase.maxSize}·to·be·set.\n·····*\n·····*·If·not·provided,·and·{@link·OptionsBase.maxSize}·or\n·····*·{@link·OptionsBase.maxEntrySize}·are·set,·then·all\n·····*·{@link·LRUCache#set}·calls·**must**·provide·an·explicit\n·····*·{@link·SetOptions.size}·or·sizeCalculation·param.\n·····*/\n····sizeCalculation?:·SizeCalculator<K,·V>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#fetch}\n·····*\n·····*·```ts\n·····*·fetchMethod(key,·staleValue,·{·signal,·options,·context·})\n·····*·```\n·····*\n·····*·If·`fetchMethod`·is·not·provided,·then·`cache.fetch(key)`·is·equivalent\n·····*·to·`Promise.resolve(cache.get(key))`.\n·····*\n·····*·If·at·any·time,·`signal.aborted`·is·set·to·`true`,·or·if·the\n·····*·`signal.onabort`·method·is·called,·or·if·it·emits·an·`'abort'`·event\n·····*·which·you·can·listen·to·with·`addEventListener`,·then·that·means·that\n·····*·the·fetch·should·be·abandoned.·This·may·be·passed·along·to·async\n·····*·functions·aware·of·AbortController/AbortSignal·behavior.\n·····*\n·····*·The·`fetchMethod`·should·**only**·return·`undefined`·or·a·Promise\n·····*·resolving·to·`undefined`·if·the·AbortController·signaled·an·`abort`\n·····*·event.·In·all·other·cases,·it·should·return·or·resolve·to·a·value\n·····*·suitable·for·adding·to·the·cache.\n·····*\n·····*·The·`options`·object·is·a·union·of·the·options·that·may·be·provided·to\n·····*·`set()`·and·`get()`.·If·they·are·modified,·then·that·will·result·in\n·····*·modifying·the·settings·to·`cache.set()`·when·the·value·is·resolved,·and\n·····*·in·the·case·of\n·····*·{@link·OptionsBase.noDeleteOnFetchRejection}·and\n·····*·{@link·OptionsBase.allowStaleOnFetchRejection},·the·handling·of\n·····*·`fetchMethod`·failures.\n·····*\n·····*·For·example,·a·DNS·cache·may·update·the·TTL·based·on·the·value·returned\n·····*·from·a·remote·DNS·server·by·changing·`options.ttl`·in·the·`fetchMethod`.\n·····*/\n····fetchMethod?:·Fetcher<K,·V,·FC>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#memo}\n·····*/\n····memoMethod?:·Memoizer<K,·V,·FC>\n\n····/**\n·····*·Set·to·true·to·suppress·the·deletion·of·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·returns·a·rejected·promise.\n·····*/\n····noDeleteOnFetchRejection?:·boolean\n\n····/**\n·····*·Do·not·delete·stale·items·when·they·are·retrieved·with\n·····*·{@link·LRUCache#get}.\n·····*\n·····*·Note·that·the·`get`·return·value·will·still·be·`undefined`\n·····*·unless·{@link·OptionsBase.allowStale}·is·true.\n·····*\n·····*·When·using·time-expiring·entries·with·`ttl`,·by·default·stale\n·····*·items·will·be·removed·from·the·cache·when·the·key·is·accessed\n·····*·with·`cache.get()`.\n·····*\n·····*·Setting·this·option·will·cause·stale·items·to·remain·in·the·cache,·until\n·····*·they·are·explicitly·deleted·with·`cache.delete(key)`,·or·retrieved·with\n·····*·`noDeleteOnStaleGet`·set·to·`false`.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*\n·····*·Only·relevant·if·a·ttl·is·used.\n·····*/\n····noDeleteOnStaleGet?:·boolean\n\n····/**\n·····*·Set·to·true·to·allow·returning·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·throws·an·error·or·returns·a·rejected\n·····*·promise.\n·····*\n·····*·This·differs·from·using·{@link·OptionsBase.allowStale}·in·that·stale\n·····*·data·will·ONLY·be·returned·in·the·case·that·the·{@link·LRUCache#fetch}\n·····*·fails,·not·any·other·times.\n·····*\n·····*·If·a·`fetchMethod`·fails,·and·there·is·no·stale·value·available,·the\n·····*·`fetch()`·will·resolve·to·`undefined`.·Ie,·all·`fetchMethod`·errors·are\n·····*·suppressed.\n·····*\n·····*·Implies·`noDeleteOnFetchRejection`.\n·····*\n·····*·This·may·be·set·in·calls·to·`fetch()`,·or·defaulted·on·the·constructor,\n·····*·or·overridden·by·modifying·the·options·object·in·the·`fetchMethod`.\n·····*/\n····allowStaleOnFetchRejection?:·boolean\n\n····/**\n·····*·Set·to·true·to·return·a·stale·value·from·the·cache·when·the\n·····*·`AbortSignal`·passed·to·the·{@link·OptionsBase.fetchMethod}·dispatches\n·····*·an·`'abort'`·event,·whether·user-triggered,·or·due·to·internal·cache\n·····*·behavior.\n·····*\n·····*·Unless·{@link·OptionsBase.ignoreFetchAbort}·is·also·set,·the·underlying\n·····*·{@link·OptionsBase.fetchMethod}·will·still·be·considered·canceled,·and\n·····*·any·value·it·returns·will·be·ignored·and·not·cached.\n·····*\n·····*·Caveat:·since·fetches·are·aborted·when·a·new·value·is·explicitly\n·····*·set·in·the·cache,·this·can·lead·to·fetch·returning·a·stale·value,\n·····*·since·that·was·the·fallback·value·_at·the·moment·the·`fetch()`·was\n·····*·initiated_,·even·though·the·new·updated·value·is·now·present·in\n·····*·the·cache.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·cache·=·new·LRUCache<string,·any>({\n·····*···ttl:·100,\n·····*···fetchMethod:·async·(url,·oldValue,·{·signal·})·=>··{\n·····*·····const·res·=·await·fetch(url,·{·signal·})\n·····*·····return·await·res.json()\n·····*···}\n·····*·})\n·····*·cache.set('https://example.com/',·{·some:·'data'·})\n·····*·//·100ms·go·by...\n·····*·const·result·=·cache.fetch('https://example.com/')\n·····*·cache.set('https://example.com/',·{·other:·'thing'·})\n·····*·console.log(await·result)·//·{·some:·'data'·}\n·····*·console.log(cache.get('https://example.com/'))·//·{·other:·'thing'·}\n·····*·```\n·····*/\n····allowStaleOnFetchAbort?:·boolean\n\n····/**\n·····*·Set·to·true·to·ignore·the·`abort`·event·emitted·by·the·`AbortSignal`\n·····*·object·passed·to·{@link·OptionsBase.fetchMethod},·and·still·cache·the\n·····*·resulting·resolution·value,·as·long·as·it·is·not·`undefined`.\n·····*\n·····*·When·used·on·its·own,·this·means·aborted·{@link·LRUCache#fetch}·calls\n·····*·are·not·immediately·resolved·or·rejected·when·they·are·aborted,·and\n·····*·instead·take·the·full·time·to·await.\n·····*\n·····*·When·used·with·{@link·OptionsBase.allowStaleOnFetchAbort},·aborted\n·····*·{@link·LRUCache#fetch}·calls·will·resolve·immediately·to·their·stale\n·····*·cached·value·or·`undefined`,·and·will·continue·to·process·and·eventually\n·····*·update·the·cache·when·they·resolve,·as·long·as·the·resulting·value·is\n·····*·not·`undefined`,·thus·supporting·a·\"return·stale·on·timeout·while\n·····*·refreshing\"·mechanism·by·passing·`AbortSignal.timeout(n)`·as·the·signal.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·c·=·new·LRUCache({\n·····*···ttl:·100,\n·····*···ignoreFetchAbort:·true,\n·····*···allowStaleOnFetchAbort:·true,\n·····*···fetchMethod:·async·(key,·oldValue,·{·signal·})·=>·{\n·····*·····//·note:·do·NOT·pass·the·signal·to·fetch()!\n·····*·····//·let's·say·this·fetch·can·take·a·long·time.\n·····*·····const·res·=·await·fetch(`https://slow-backend-server/${key}`)\n·····*·····return·await·res.json()\n·····*···},\n·····*·})\n·····*\n·····*·//·this·will·return·the·stale·value·after·100ms,·while·still\n·····*·//·updating·in·the·background·for·next·time.\n·····*·const·val·=·await·c.fetch('key',·{·signal:·AbortSignal.timeout(100)·})\n·····*·```\n·····*\n·····*·**Note**:·regardless·of·this·setting,·an·`abort`·event·_is·still\n·····*·emitted·on·the·`AbortSignal`·object_,·so·may·result·in·invalid·results\n·····*·when·passed·to·other·underlying·APIs·that·use·AbortSignals.\n·····*\n·····*·This·may·be·overridden·in·the·{@link·OptionsBase.fetchMethod}·or·the\n·····*·call·to·{@link·LRUCache#fetch}.\n·····*/\n····ignoreFetchAbort?:·boolean\n\n····/**\n·····*·In·some·cases,·you·may·want·to·swap·out·the·performance/Date·object\n·····*·used·for·TTL·tracking.·This·should·almost·certainly·NOT·be·done·in\n·····*·production·environments!\n·····*\n·····*·This·value·defaults·to·`global.performance`·if·it·has·a·`now()`·method,\n·····*·or·the·`global.Date`·object·otherwise.\n·····*/\n····perf?:·Perf\n··}\n\n··export·interface·OptionsMaxLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····max:·Count\n··}\n··export·interface·OptionsTTLLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····ttl:·Milliseconds\n····ttlAutopurge:·boolean\n··}\n··export·interface·OptionsSizeLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····maxSize:·Size\n··}\n\n··/**\n···*·The·valid·safe·options·for·the·{@link·LRUCache}·constructor\n···*/\n··export·type·Options<K,·V,·FC>·=\n····|·OptionsMaxLimit<K,·V,·FC>\n····|·OptionsSizeLimit<K,·V,·FC>\n····|·OptionsTTLLimit<K,·V,·FC>\n\n··/**\n···*·Entry·objects·used·by·{@link·LRUCache#load}·and·{@link·LRUCache#dump},\n···*·and·returned·by·{@link·LRUCache#info}.\n···*/\n··export·interface·Entry<V>·{\n····value:·V\n····ttl?:·Milliseconds\n····size?:·Size\n····start?:·Milliseconds\n··}\n}\n\n/**\n·*·Default·export,·the·thing·you're·using·this·module·to·get.\n·*\n·*·The·`K`·and·`V`·types·define·the·key·and·value·types,·respectively.·The\n·*·optional·`FC`·type·defines·the·type·of·the·`context`·object·passed·to\n·*·`cache.fetch()`·and·`cache.memo()`.\n·*\n·*·Keys·and·values·**must·not**·be·`null`·or·`undefined`.\n·*\n·*·All·properties·from·the·options·object·(with·the·exception·of·`max`,\n·*·`maxSize`,·`fetchMethod`,·`memoMethod`,·`dispose`·and·`disposeAfter`)·are\n·*·added·as·normal·public·members.·(The·listed·options·are·read-only·getters.)\n·*\n·*·Changing·any·of·these·will·alter·the·defaults·for·subsequent·method·calls.\n·*/\nexport·class·LRUCache<K·extends·{},·V·extends·{},·FC·=·unknown>·{\n··//·options·that·cannot·be·changed·without·disaster\n··readonly·#max:·LRUCache.Count\n··readonly·#maxSize:·LRUCache.Size\n··readonly·#dispose?:·LRUCache.Disposer<K,·V>\n··readonly·#onInsert?:·LRUCache.Inserter<K,·V>\n··readonly·#disposeAfter?:·LRUCache.Disposer<K,·V>\n··readonly·#fetchMethod?:·LRUCache.Fetcher<K,·V,·FC>\n··readonly·#memoMethod?:·LRUCache.Memoizer<K,·V,·FC>\n··readonly·#perf:·Perf\n\n··/**\n···*·{@link·LRUCache.OptionsBase.perf}\n···*/\n··get·perf()·{\n····return·this.#perf\n··}\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttl}\n···*/\n··ttl:·LRUCache.Milliseconds\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlResolution}\n···*/\n··ttlResolution:·LRUCache.Milliseconds\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlAutopurge}\n···*/\n··ttlAutopurge:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnGet}\n···*/\n··updateAgeOnGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}\n···*/\n··updateAgeOnHas:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStale}\n···*/\n··allowStale:·boolean\n\n··/**\n···*·{@link·LRUCache.OptionsBase.noDisposeOnSet}\n···*/\n··noDisposeOnSet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noUpdateTTL}\n···*/\n··noUpdateTTL:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.maxEntrySize}\n···*/\n··maxEntrySize:·LRUCache.Size\n··/**\n···*·{@link·LRUCache.OptionsBase.sizeCalculation}\n···*/\n··sizeCalculation?:·LRUCache.SizeCalculator<K,·V>\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnFetchRejection}\n···*/\n··noDeleteOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnStaleGet}\n···*/\n··noDeleteOnStaleGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort}\n···*/\n··allowStaleOnFetchAbort:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}\n···*/\n··allowStaleOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.ignoreFetchAbort}\n···*/\n··ignoreFetchAbort:·boolean\n\n··//·computed·properties\n··#size:·LRUCache.Count\n··#calculatedSize:·LRUCache.Size\n··#keyMap:·Map<K,·Index>\n··#keyList:·(K·|·undefined)[]\n··#valList:·(V·|·BackgroundFetch<V>·|·undefined)[]\n··#next:·NumberArray\n··#prev:·NumberArray\n··#head:·Index\n··#tail:·Index\n··#free:·StackLike\n··#disposed?:·DisposeTask<K,·V>[]\n··#sizes?:·ZeroArray\n··#starts?:·ZeroArray\n··#ttls?:·ZeroArray\n··#autopurgeTimers?:·(undefined·|·ReturnType<typeof·setTimeout>)[]\n\n··#hasDispose:·boolean\n··#hasFetchMethod:·boolean\n··#hasDisposeAfter:·boolean\n··#hasOnInsert:·boolean\n\n··/**\n···*·Do·not·call·this·method·unless·you·need·to·inspect·the\n···*·inner·workings·of·the·cache.··If·anything·returned·by·this\n···*·object·is·modified·in·any·way,·strange·breakage·may·occur.\n···*\n···*·These·fields·are·private·for·a·reason!\n···*\n···*·@internal\n···*/\n··static·unsafeExposeInternals<\n····K·extends·{},\n····V·extends·{},\n····FC·extends·unknown·=·unknown,\n··>(c:·LRUCache<K,·V,·FC>)·{\n····return·{\n······//·properties\n······starts:·c.#starts,\n······ttls:·c.#ttls,\n······autopurgeTimers:·c.#autopurgeTimers,\n······sizes:·c.#sizes,\n······keyMap:·c.#keyMap·as·Map<K,·number>,\n······keyList:·c.#keyList,\n······valList:·c.#valList,\n······next:·c.#next,\n······prev:·c.#prev,\n······get·head()·{\n········return·c.#head\n······},\n······get·tail()·{\n········return·c.#tail\n······},\n······free:·c.#free,\n······//·methods\n······isBackgroundFetch:·(p:·any)·=>·c.#isBackgroundFetch(p),\n······backgroundFetch:·(\n········k:·K,\n········index:·number·|·undefined,\n········options:·LRUCache.FetchOptions<K,·V,·FC>,\n········context:·any,\n······):·BackgroundFetch<V>·=>\n········c.#backgroundFetch(\n··········k,\n··········index·as·Index·|·undefined,\n··········options,\n··········context,\n········),\n······moveToTail:·(index:·number):·void·=>·c.#moveToTail(index·as·Index),\n······indexes:·(options?:·{·allowStale:·boolean·})·=>·c.#indexes(options),\n······rindexes:·(options?:·{·allowStale:·boolean·})·=>\n········c.#rindexes(options),\n······isStale:·(index:·number·|·undefined)·=>·c.#isStale(index·as·Index),\n····}\n··}\n\n··//·Protected·read-only·members\n\n··/**\n···*·{@link·LRUCache.OptionsBase.max}·(read-only)\n···*/\n··get·max():·LRUCache.Count·{\n····return·this.#max\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.maxSize}·(read-only)\n···*/\n··get·maxSize():·LRUCache.Count·{\n····return·this.#maxSize\n··}\n··/**\n···*·The·total·computed·size·of·items·in·the·cache·(read-only)\n···*/\n··get·calculatedSize():·LRUCache.Size·{\n····return·this.#calculatedSize\n··}\n··/**\n···*·The·number·of·items·stored·in·the·cache·(read-only)\n···*/\n··get·size():·LRUCache.Count·{\n····return·this.#size\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·(read-only)\n···*/\n··get·fetchMethod():·LRUCache.Fetcher<K,·V,·FC>·|·undefined·{\n····return·this.#fetchMethod\n··}\n··get·memoMethod():·LRUCache.Memoizer<K,·V,·FC>·|·undefined·{\n····return·this.#memoMethod\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.dispose}·(read-only)\n···*/\n··get·dispose()·{\n····return·this.#dispose\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.onInsert}·(read-only)\n···*/\n··get·onInsert()·{\n····return·this.#onInsert\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.disposeAfter}·(read-only)\n···*/\n··get·disposeAfter()·{\n····return·this.#disposeAfter\n··}\n\n··constructor(options:·LRUCache.Options<K,·V,·FC>·|·LRUCache<K,·V,·FC>)·{\n····const·{\n······max·=·0,\n······ttl,\n······ttlResolution·=·1,\n······ttlAutopurge,\n······updateAgeOnGet,\n······updateAgeOnHas,\n······allowStale,\n······dispose,\n······onInsert,\n······disposeAfter,\n······noDisposeOnSet,\n······noUpdateTTL,\n······maxSize·=·0,\n······maxEntrySize·=·0,\n······sizeCalculation,\n······fetchMethod,\n······memoMethod,\n······noDeleteOnFetchRejection,\n······noDeleteOnStaleGet,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······perf,\n····}·=·options\n\n····if·(perf·!==·undefined)·{\n······if·(typeof·perf?.now·!==·'function')·{\n········throw·new·TypeError(\n··········'perf·option·must·have·a·now()·method·if·specified',\n········)\n······}\n····}\n\n····this.#perf·=·perf·??·defaultPerf\n\n····if·(max·!==·0·&&·!isPosInt(max))·{\n······throw·new·TypeError('max·option·must·be·a·nonnegative·integer')\n····}\n\n····const·UintArray·=·max·?·getUintArray(max)·:·Array\n····if·(!UintArray)·{\n······throw·new·Error('invalid·max·value:·'·+·max)\n····}\n\n····this.#max·=·max\n····this.#maxSize·=·maxSize\n····this.maxEntrySize·=·maxEntrySize·||·this.#maxSize\n····this.sizeCalculation·=·sizeCalculation\n····if·(this.sizeCalculation)·{\n······if·(!this.#maxSize·&&·!this.maxEntrySize)·{\n········throw·new·TypeError(\n··········'cannot·set·sizeCalculation·without·setting·maxSize·or·maxEntrySize',\n········)\n······}\n······if·(typeof·this.sizeCalculation·!==·'function')·{\n········throw·new·TypeError('sizeCalculation·set·to·non-function')\n······}\n····}\n\n····if·(memoMethod·!==·undefined·&&·typeof·memoMethod·!==·'function')·{\n······throw·new·TypeError('memoMethod·must·be·a·function·if·defined')\n····}\n····this.#memoMethod·=·memoMethod\n\n····if·(fetchMethod·!==·undefined·&&·typeof·fetchMethod·!==·'function')·{\n······throw·new·TypeError('fetchMethod·must·be·a·function·if·specified')\n····}\n····this.#fetchMethod·=·fetchMethod\n····this.#hasFetchMethod·=·!!fetchMethod\n\n····this.#keyMap·=·new·Map()\n····this.#keyList·=·new·Array(max).fill(undefined)\n····this.#valList·=·new·Array(max).fill(undefined)\n····this.#next·=·new·UintArray(max)\n····this.#prev·=·new·UintArray(max)\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free·=·Stack.create(max)\n····this.#size·=·0\n····this.#calculatedSize·=·0\n\n····if·(typeof·dispose·===·'function')·{\n······this.#dispose·=·dispose\n····}\n····if·(typeof·onInsert·===·'function')·{\n······this.#onInsert·=·onInsert\n····}\n····if·(typeof·disposeAfter·===·'function')·{\n······this.#disposeAfter·=·disposeAfter\n······this.#disposed·=·[]\n····}·else·{\n······this.#disposeAfter·=·undefined\n······this.#disposed·=·undefined\n····}\n····this.#hasDispose·=·!!this.#dispose\n····this.#hasOnInsert·=·!!this.#onInsert\n····this.#hasDisposeAfter·=·!!this.#disposeAfter\n\n····this.noDisposeOnSet·=·!!noDisposeOnSet\n····this.noUpdateTTL·=·!!noUpdateTTL\n····this.noDeleteOnFetchRejection·=·!!noDeleteOnFetchRejection\n····this.allowStaleOnFetchRejection·=·!!allowStaleOnFetchRejection\n····this.allowStaleOnFetchAbort·=·!!allowStaleOnFetchAbort\n····this.ignoreFetchAbort·=·!!ignoreFetchAbort\n\n····//·NB:·maxEntrySize·is·set·to·maxSize·if·it's·set\n····if·(this.maxEntrySize·!==·0)·{\n······if·(this.#maxSize·!==·0)·{\n········if·(!isPosInt(this.#maxSize))·{\n··········throw·new·TypeError(\n············'maxSize·must·be·a·positive·integer·if·specified',\n··········)\n········}\n······}\n······if·(!isPosInt(this.maxEntrySize))·{\n········throw·new·TypeError(\n··········'maxEntrySize·must·be·a·positive·integer·if·specified',\n········)\n······}\n······this.#initializeSizeTracking()\n····}\n\n····this.allowStale·=·!!allowStale\n····this.noDeleteOnStaleGet·=·!!noDeleteOnStaleGet\n····this.updateAgeOnGet·=·!!updateAgeOnGet\n····this.updateAgeOnHas·=·!!updateAgeOnHas\n····this.ttlResolution·=\n······isPosInt(ttlResolution)·||·ttlResolution·===·0·?·ttlResolution·:·1\n····this.ttlAutopurge·=·!!ttlAutopurge\n····this.ttl·=·ttl·||·0\n····if·(this.ttl)·{\n······if·(!isPosInt(this.ttl))·{\n········throw·new·TypeError('ttl·must·be·a·positive·integer·if·specified')\n······}\n······this.#initializeTTLTracking()\n····}\n\n····//·do·not·allow·completely·unbounded·caches\n····if·(this.#max·===·0·&&·this.ttl·===·0·&&·this.#maxSize·===·0)·{\n······throw·new·TypeError(\n········'At·least·one·of·max,·maxSize,·or·ttl·is·required',\n······)\n····}\n····if·(!this.ttlAutopurge·&&·!this.#max·&&·!this.#maxSize)·{\n······const·code·=·'LRU_CACHE_UNBOUNDED'\n······if·(shouldWarn(code))·{\n········warned.add(code)\n········const·msg·=\n··········'TTL·caching·without·ttlAutopurge,·max,·or·maxSize·can·'·+\n··········'result·in·unbounded·memory·consumption.'\n········emitWarning(msg,·'UnboundedCacheWarning',·code,·LRUCache)\n······}\n····}\n··}\n\n··/**\n···*·Return·the·number·of·ms·left·in·the·item's·TTL.·If·item·is·not·in·cache,\n···*·returns·`0`.·Returns·`Infinity`·if·item·is·in·cache·without·a·defined·TTL.\n···*/\n··getRemainingTTL(key:·K)·{\n····return·this.#keyMap.has(key)·?·Infinity·:·0\n··}\n\n··#initializeTTLTracking()·{\n····const·ttls·=·new·ZeroArray(this.#max)\n····const·starts·=·new·ZeroArray(this.#max)\n····this.#ttls·=·ttls\n····this.#starts·=·starts\n····const·purgeTimers·=\n······this.ttlAutopurge·?\n········new·Array<undefined·|·ReturnType<typeof·setTimeout>>(this.#max)\n······:·undefined\n····this.#autopurgeTimers·=·purgeTimers\n\n····this.#setItemTTL·=·(index,·ttl,·start·=·this.#perf.now())·=>·{\n······starts[index]·=·ttl·!==·0·?·start·:·0\n······ttls[index]·=·ttl\n······//·clear·out·the·purge·timer·if·we're·setting·TTL·to·0,·and\n······//·previously·had·a·ttl·purge·timer·running,·so·it·doesn't\n······//·fire·unnecessarily.\n······if·(purgeTimers?.[index])·{\n········clearTimeout(purgeTimers[index])\n········purgeTimers[index]·=·undefined\n······}\n······if·(ttl·!==·0·&&·purgeTimers)·{\n········const·t·=·setTimeout(()·=>·{\n··········if·(this.#isStale(index))·{\n············this.#delete(this.#keyList[index]·as·K,·'expire')\n··········}\n········},·ttl·+·1)\n········//·unref()·not·supported·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n········purgeTimers[index]·=·t\n······}\n····}\n\n····this.#updateItemAge·=·index·=>·{\n······starts[index]·=·ttls[index]·!==·0·?·this.#perf.now()·:·0\n····}\n\n····this.#statusTTL·=·(status,·index)·=>·{\n······if·(ttls[index])·{\n········const·ttl·=·ttls[index]\n········const·start·=·starts[index]\n········/*·c8·ignore·next·*/\n········if·(!ttl·||·!start)·return\n········status.ttl·=·ttl\n········status.start·=·start\n········status.now·=·cachedNow·||·getNow()\n········const·age·=·status.now·-·start\n········status.remainingTTL·=·ttl·-·age\n······}\n····}\n\n····//·debounce·calls·to·perf.now()·to·1s·so·we're·not·hitting\n····//·that·costly·call·repeatedly.\n····let·cachedNow·=·0\n····const·getNow·=·()·=>·{\n······const·n·=·this.#perf.now()\n······if·(this.ttlResolution·>·0)·{\n········cachedNow·=·n\n········const·t·=·setTimeout(()·=>·(cachedNow·=·0),·this.ttlResolution)\n········//·not·available·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n······}\n······return·n\n····}\n\n····this.getRemainingTTL·=·key·=>·{\n······const·index·=·this.#keyMap.get(key)\n······if·(index·===·undefined)·{\n········return·0\n······}\n······const·ttl·=·ttls[index]\n······const·start·=·starts[index]\n······if·(!ttl·||·!start)·{\n········return·Infinity\n······}\n······const·age·=·(cachedNow·||·getNow())·-·start\n······return·ttl·-·age\n····}\n\n····this.#isStale·=·index·=>·{\n······const·s·=·starts[index]\n······const·t·=·ttls[index]\n······return·!!t·&&·!!s·&&·(cachedNow·||·getNow())·-·s·>·t\n····}\n··}\n\n··//·conditionally·set·private·methods·related·to·TTL\n··#updateItemAge:·(index:·Index)·=>·void·=·()·=>·{}\n··#statusTTL:·(status:·LRUCache.Status<V>,·index:·Index)·=>·void·=·()·=>·{}\n··#setItemTTL:·(\n····index:·Index,\n····ttl:·LRUCache.Milliseconds,\n····start?:·LRUCache.Milliseconds,\n····//·ignore·because·we·never·call·this·if·we're·not·already·in·TTL·mode\n····/*·c8·ignore·start·*/\n··)·=>·void·=·()·=>·{}\n··/*·c8·ignore·stop·*/\n\n··#isStale:·(index:·Index)·=>·boolean·=·()·=>·false\n\n··#initializeSizeTracking()·{\n····const·sizes·=·new·ZeroArray(this.#max)\n····this.#calculatedSize·=·0\n····this.#sizes·=·sizes\n····this.#removeItemSize·=·index·=>·{\n······this.#calculatedSize·-=·sizes[index]·as·number\n······sizes[index]·=·0\n····}\n····this.#requireSize·=·(k,·v,·size,·sizeCalculation)·=>·{\n······//·provisionally·accept·background·fetches.\n······//·actual·value·size·will·be·checked·when·they·return.\n······if·(this.#isBackgroundFetch(v))·{\n········return·0\n······}\n······if·(!isPosInt(size))·{\n········if·(sizeCalculation)·{\n··········if·(typeof·sizeCalculation·!==·'function')·{\n············throw·new·TypeError('sizeCalculation·must·be·a·function')\n··········}\n··········size·=·sizeCalculation(v,·k)\n··········if·(!isPosInt(size))·{\n············throw·new·TypeError(\n··············'sizeCalculation·return·invalid·(expect·positive·integer)',\n············)\n··········}\n········}·else·{\n··········throw·new·TypeError(\n············'invalid·size·value·(must·be·positive·integer).·'·+\n··············'When·maxSize·or·maxEntrySize·is·used,·sizeCalculation·'·+\n··············'or·size·must·be·set.',\n··········)\n········}\n······}\n······return·size\n····}\n····this.#addItemSize·=·(\n······index:·Index,\n······size:·LRUCache.Size,\n······status?:·LRUCache.Status<V>,\n····)·=>·{\n······sizes[index]·=·size\n······if·(this.#maxSize)·{\n········const·maxSize·=·this.#maxSize·-·(sizes[index]·as·number)\n········while·(this.#calculatedSize·>·maxSize)·{\n··········this.#evict(true)\n········}\n······}\n······this.#calculatedSize·+=·sizes[index]·as·number\n······if·(status)·{\n········status.entrySize·=·size\n········status.totalCalculatedSize·=·this.#calculatedSize\n······}\n····}\n··}\n\n··#removeItemSize:·(index:·Index)·=>·void·=·_i·=>·{}\n··#addItemSize:·(\n····index:·Index,\n····size:·LRUCache.Size,\n····status?:·LRUCache.Status<V>,\n··)·=>·void·=·(_i,·_s,·_st)·=>·{}\n··#requireSize:·(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·LRUCache.Size·=·(\n····_k:·K,\n····_v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·{\n····if·(size·||·sizeCalculation)·{\n······throw·new·TypeError(\n········'cannot·set·size·without·setting·maxSize·or·maxEntrySize·on·cache',\n······)\n····}\n····return·0\n··};\n\n··*#indexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#tail;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#head)·{\n··········break\n········}·else·{\n··········i·=·this.#prev[i]·as·Index\n········}\n······}\n····}\n··}\n\n··*#rindexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#head;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#tail)·{\n··········break\n········}·else·{\n··········i·=·this.#next[i]·as·Index\n········}\n······}\n····}\n··}\n\n··#isValidIndex(index:·Index)·{\n····return·(\n······index·!==·undefined·&&\n······this.#keyMap.get(this.#keyList[index]·as·K)·===·index\n····)\n··}\n\n··/**\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*entries()·{\n····for·(const·i·of·this.#indexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]·as·[K,·V]\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.entries}\n···*\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rentries()·{\n····for·(const·i·of·this.#rindexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*keys()·{\n····for·(const·i·of·this.#indexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.keys}\n···*\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rkeys()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*values()·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]·as·V\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.values}\n···*\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rvalues()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]\n······}\n····}\n··}\n\n··/**\n···*·Iterating·over·the·cache·itself·yields·the·same·results·as\n···*·{@link·LRUCache.entries}\n···*/\n··[Symbol.iterator]()·{\n····return·this.entries()\n··}\n\n··/**\n···*·A·String·value·that·is·used·in·the·creation·of·the·default·string\n···*·description·of·an·object.·Called·by·the·built-in·method\n···*·`Object.prototype.toString`.\n···*/\n··[Symbol.toStringTag]·=·'LRUCache'\n\n··/**\n···*·Find·a·value·for·which·the·supplied·fn·method·returns·a·truthy·value,\n···*·similar·to·`Array.find()`.·fn·is·called·as·`fn(value,·key,·cache)`.\n···*/\n··find(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·boolean,\n····getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{},\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······if·(fn(value,·this.#keyList[i]·as·K,·this))·{\n········return·this.get(this.#keyList[i]·as·K,·getOptions)\n······}\n····}\n··}\n\n··/**\n···*·Call·the·supplied·function·on·each·item·in·the·cache,·in·order·from·most\n···*·recently·used·to·least·recently·used.\n···*\n···*·`fn`·is·called·as·`fn(value,·key,·cache)`.\n···*\n···*·If·`thisp`·is·provided,·function·will·be·called·in·the·`this`-context·of\n···*·the·provided·object,·or·the·cache·if·no·`thisp`·object·is·provided.\n···*\n···*·Does·not·update·age·or·recenty·of·use,·or·iterate·over·stale·values.\n···*/\n··forEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·The·same·as·{@link·LRUCache.forEach}·but·items·are·iterated·over·in\n···*·reverse·order.··(ie,·less·recently·used·items·are·iterated·over·first.)\n···*/\n··rforEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·Delete·any·stale·entries.·Returns·true·if·anything·was·removed,\n···*·false·otherwise.\n···*/\n··purgeStale()·{\n····let·deleted·=·false\n····for·(const·i·of·this.#rindexes({·allowStale:·true·}))·{\n······if·(this.#isStale(i))·{\n········this.#delete(this.#keyList[i]·as·K,·'expire')\n········deleted·=·true\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Get·the·extended·info·about·a·given·entry,·to·get·its·value,·size,·and\n···*·TTL·info·simultaneously.·Returns·`undefined`·if·the·key·is·not·present.\n···*\n···*·Unlike·{@link·LRUCache#dump},·which·is·designed·to·be·portable·and·survive\n···*·serialization,·the·`start`·value·is·always·the·current·timestamp,·and·the\n···*·`ttl`·is·a·calculated·remaining·time·to·live·(negative·if·expired).\n···*\n···*·Always·returns·stale·values,·if·their·info·is·found·in·the·cache,·so·be\n···*·sure·to·check·for·expirations·(ie,·a·negative·{@link·LRUCache.Entry#ttl})\n···*·if·relevant.\n···*/\n··info(key:·K):·LRUCache.Entry<V>·|·undefined·{\n····const·i·=·this.#keyMap.get(key)\n····if·(i·===·undefined)·return·undefined\n····const·v·=·this.#valList[i]\n····/*·c8·ignore·start·-·this·isn't·tested·for·the·info·function,\n·····*·but·it's·the·same·logic·as·found·in·other·places.·*/\n····const·value:·V·|·undefined·=\n······this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n····if·(value·===·undefined)·return·undefined\n····/*·c8·ignore·end·*/\n····const·entry:·LRUCache.Entry<V>·=·{·value·}\n····if·(this.#ttls·&&·this.#starts)·{\n······const·ttl·=·this.#ttls[i]\n······const·start·=·this.#starts[i]\n······if·(ttl·&&·start)·{\n········const·remain·=·ttl·-·(this.#perf.now()·-·start)\n········entry.ttl·=·remain\n········entry.start·=·Date.now()\n······}\n····}\n····if·(this.#sizes)·{\n······entry.size·=·this.#sizes[i]\n····}\n····return·entry\n··}\n\n··/**\n···*·Return·an·array·of·[key,·{@link·LRUCache.Entry}]·tuples·which·can·be\n···*·passed·to·{@link·LRUCache#load}.\n···*\n···*·The·`start`·fields·are·calculated·relative·to·a·portable·`Date.now()`\n···*·timestamp,·even·if·`performance.now()`·is·available.\n···*\n···*·Stale·entries·are·always·included·in·the·`dump`,·even·if\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·false.\n···*\n···*·Note:·this·returns·an·actual·array,·not·a·generator,·so·it·can·be·more\n···*·easily·passed·around.\n···*/\n··dump()·{\n····const·arr:·[K,·LRUCache.Entry<V>][]·=·[]\n····for·(const·i·of·this.#indexes({·allowStale:·true·}))·{\n······const·key·=·this.#keyList[i]\n······const·v·=·this.#valList[i]\n······const·value:·V·|·undefined·=\n········this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined·||·key·===·undefined)·continue\n······const·entry:·LRUCache.Entry<V>·=·{·value·}\n······if·(this.#ttls·&&·this.#starts)·{\n········entry.ttl·=·this.#ttls[i]\n········//·always·dump·the·start·relative·to·a·portable·timestamp\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·this.#perf.now()·-·(this.#starts[i]·as·number)\n········entry.start·=·Math.floor(Date.now()·-·age)\n······}\n······if·(this.#sizes)·{\n········entry.size·=·this.#sizes[i]\n······}\n······arr.unshift([key,·entry])\n····}\n····return·arr\n··}\n\n··/**\n···*·Reset·the·cache·and·load·in·the·items·in·entries·in·the·order·listed.\n···*\n···*·The·shape·of·the·resulting·cache·may·be·different·if·the·same·options·are\n···*·not·used·in·both·caches.\n···*\n···*·The·`start`·fields·are·assumed·to·be·calculated·relative·to·a·portable\n···*·`Date.now()`·timestamp,·even·if·`performance.now()`·is·available.\n···*/\n··load(arr:·[K,·LRUCache.Entry<V>][])·{\n····this.clear()\n····for·(const·[key,·entry]·of·arr)·{\n······if·(entry.start)·{\n········//·entry.start·is·a·portable·timestamp,·but·we·may·be·using\n········//·node's·performance.now(),·so·calculate·the·offset,·so·that\n········//·we·get·the·intended·remaining·TTL,·no·matter·how·long·it's\n········//·been·on·ice.\n········//\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·Date.now()·-·entry.start\n········entry.start·=·this.#perf.now()·-·age\n······}\n······this.set(key,·entry.value,·entry)\n····}\n··}\n\n··/**\n···*·Add·a·value·to·the·cache.\n···*\n···*·Note:·if·`undefined`·is·specified·as·a·value,·this·is·an·alias·for\n···*·{@link·LRUCache#delete}\n···*\n···*·Fields·on·the·{@link·LRUCache.SetOptions}·options·param·will·override\n···*·their·corresponding·values·in·the·constructor·options·for·the·scope\n···*·of·this·single·`set()`·operation.\n···*\n···*·If·`start`·is·provided,·then·that·will·set·the·effective·start\n···*·time·for·the·TTL·calculation.·Note·that·this·must·be·a·previous\n···*·value·of·`performance.now()`·if·supported,·or·a·previous·value·of\n···*·`Date.now()`·if·not.\n···*\n···*·Options·object·may·also·include·`size`,·which·will·prevent\n···*·calling·the·`sizeCalculation`·function·and·just·use·the·specified\n···*·number·if·it·is·a·positive·integer,·and·`noDisposeOnSet`·which\n···*·will·prevent·calling·a·`dispose`·function·in·the·case·of\n···*·overwrites.\n···*\n···*·If·the·`size`·(or·return·value·of·`sizeCalculation`)·for·a·given\n···*·entry·is·greater·than·`maxEntrySize`,·then·the·item·will·not·be\n···*·added·to·the·cache.\n···*\n···*·Will·update·the·recency·of·the·entry.\n···*\n···*·If·the·value·is·`undefined`,·then·this·is·an·alias·for\n···*·`cache.delete(key)`.·`undefined`·is·never·stored·in·the·cache.\n···*/\n··set(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>·|·undefined,\n····setOptions:·LRUCache.SetOptions<K,·V,·FC>·=·{},\n··)·{\n····if·(v·===·undefined)·{\n······this.delete(k)\n······return·this\n····}\n····const·{\n······ttl·=·this.ttl,\n······start,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······sizeCalculation·=·this.sizeCalculation,\n······status,\n····}·=·setOptions\n····let·{·noUpdateTTL·=·this.noUpdateTTL·}·=·setOptions\n\n····const·size·=·this.#requireSize(\n······k,\n······v,\n······setOptions.size·||·0,\n······sizeCalculation,\n····)\n····//·if·the·item·doesn't·fit,·don't·do·anything\n····//·NB:·maxEntrySize·set·to·maxSize·by·default\n····if·(this.maxEntrySize·&&·size·>·this.maxEntrySize)·{\n······if·(status)·{\n········status.set·=·'miss'\n········status.maxEntrySizeExceeded·=·true\n······}\n······//·have·to·delete,·in·case·something·is·there·already.\n······this.#delete(k,·'set')\n······return·this\n····}\n····let·index·=·this.#size·===·0·?·undefined·:·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······//·addition\n······index·=·(\n········this.#size·===·0·?·this.#tail\n········:·this.#free.length·!==·0·?·this.#free.pop()\n········:·this.#size·===·this.#max·?·this.#evict(false)\n········:·this.#size)·as·Index\n······this.#keyList[index]·=·k\n······this.#valList[index]·=·v\n······this.#keyMap.set(k,·index)\n······this.#next[this.#tail]·=·index\n······this.#prev[index]·=·this.#tail\n······this.#tail·=·index\n······this.#size++\n······this.#addItemSize(index,·size,·status)\n······if·(status)·status.set·=·'add'\n······noUpdateTTL·=·false\n······if·(this.#hasOnInsert)·{\n········this.#onInsert?.(v·as·V,·k,·'add')\n······}\n····}·else·{\n······//·update\n······this.#moveToTail(index)\n······const·oldVal·=·this.#valList[index]·as·V·|·BackgroundFetch<V>\n······if·(v·!==·oldVal)·{\n········if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(oldVal))·{\n··········oldVal.__abortController.abort(new·Error('replaced'))\n··········const·{·__staleWhileFetching:·s·}·=·oldVal\n··········if·(s·!==·undefined·&&·!noDisposeOnSet)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(s·as·V,·k,·'set')\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([s·as·V,·k,·'set'])\n············}\n··········}\n········}·else·if·(!noDisposeOnSet)·{\n··········if·(this.#hasDispose)·{\n············this.#dispose?.(oldVal·as·V,·k,·'set')\n··········}\n··········if·(this.#hasDisposeAfter)·{\n············this.#disposed?.push([oldVal·as·V,·k,·'set'])\n··········}\n········}\n········this.#removeItemSize(index)\n········this.#addItemSize(index,·size,·status)\n········this.#valList[index]·=·v\n········if·(status)·{\n··········status.set·=·'replace'\n··········const·oldValue·=\n············oldVal·&&·this.#isBackgroundFetch(oldVal)·?\n··············oldVal.__staleWhileFetching\n············:·oldVal\n··········if·(oldValue·!==·undefined)·status.oldValue·=·oldValue\n········}\n······}·else·if·(status)·{\n········status.set·=·'update'\n······}\n\n······if·(this.#hasOnInsert)·{\n········this.onInsert?.(v·as·V,·k,·v·===·oldVal·?·'update'·:·'replace')\n······}\n····}\n····if·(ttl·!==·0·&&·!this.#ttls)·{\n······this.#initializeTTLTracking()\n····}\n····if·(this.#ttls)·{\n······if·(!noUpdateTTL)·{\n········this.#setItemTTL(index,·ttl,·start)\n······}\n······if·(status)·this.#statusTTL(status,·index)\n····}\n····if·(!noDisposeOnSet·&&·this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·this\n··}\n\n··/**\n···*·Evict·the·least·recently·used·item,·returning·its·value·or\n···*·`undefined`·if·cache·is·empty.\n···*/\n··pop():·V·|·undefined·{\n····try·{\n······while·(this.#size)·{\n········const·val·=·this.#valList[this.#head]\n········this.#evict(true)\n········if·(this.#isBackgroundFetch(val))·{\n··········if·(val.__staleWhileFetching)·{\n············return·val.__staleWhileFetching\n··········}\n········}·else·if·(val·!==·undefined)·{\n··········return·val\n········}\n······}\n····}·finally·{\n······if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n········const·dt·=·this.#disposed\n········let·task:·DisposeTask<K,·V>·|·undefined\n········while·((task·=·dt?.shift()))·{\n··········this.#disposeAfter?.(...task)\n········}\n······}\n····}\n··}\n\n··#evict(free:·boolean)·{\n····const·head·=·this.#head\n····const·k·=·this.#keyList[head]·as·K\n····const·v·=·this.#valList[head]·as·V\n····if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(v))·{\n······v.__abortController.abort(new·Error('evicted'))\n····}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n······if·(this.#hasDispose)·{\n········this.#dispose?.(v,·k,·'evict')\n······}\n······if·(this.#hasDisposeAfter)·{\n········this.#disposed?.push([v,·k,·'evict'])\n······}\n····}\n····this.#removeItemSize(head)\n····if·(this.#autopurgeTimers?.[head])·{\n······clearTimeout(this.#autopurgeTimers[head])\n······this.#autopurgeTimers[head]·=·undefined\n····}\n····//·if·we·aren't·about·to·use·the·index,·then·null·these·out\n····if·(free)·{\n······this.#keyList[head]·=·undefined\n······this.#valList[head]·=·undefined\n······this.#free.push(head)\n····}\n····if·(this.#size·===·1)·{\n······this.#head·=·this.#tail·=·0·as·Index\n······this.#free.length·=·0\n····}·else·{\n······this.#head·=·this.#next[head]·as·Index\n····}\n····this.#keyMap.delete(k)\n····this.#size--\n····return·head\n··}\n\n··/**\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of·use.\n···*·Will·return·false·if·the·item·is·stale,·even·though·it·is·technically\n···*·in·the·cache.\n···*\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of\n···*·use.·Age·is·updated·if·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set\n···*·to·`true`·in·either·the·options·or·the·constructor.\n···*\n···*·Will·return·`false`·if·the·item·is·stale,·even·though·it·is·technically·in\n···*·the·cache.·The·difference·can·be·determined·(if·it·matters)·by·using·a\n···*·`status`·argument,·and·inspecting·the·`has`·field.\n···*\n···*·Will·not·update·item·age·unless\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set.\n···*/\n··has(k:·K,·hasOptions:·LRUCache.HasOptions<K,·V,·FC>·=·{})·{\n····const·{·updateAgeOnHas·=·this.updateAgeOnHas,·status·}·=·hasOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·v·=·this.#valList[index]\n······if·(\n········this.#isBackgroundFetch(v)·&&\n········v.__staleWhileFetching·===·undefined\n······)·{\n········return·false\n······}\n······if·(!this.#isStale(index))·{\n········if·(updateAgeOnHas)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·{\n··········status.has·=·'hit'\n··········this.#statusTTL(status,·index)\n········}\n········return·true\n······}·else·if·(status)·{\n········status.has·=·'stale'\n········this.#statusTTL(status,·index)\n······}\n····}·else·if·(status)·{\n······status.has·=·'miss'\n····}\n····return·false\n··}\n\n··/**\n···*·Like·{@link·LRUCache#get}·but·doesn't·update·recency·or·delete·stale\n···*·items.\n···*\n···*·Returns·`undefined`·if·the·item·is·stale,·unless\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·set.\n···*/\n··peek(k:·K,·peekOptions:·LRUCache.PeekOptions<K,·V,·FC>·=·{})·{\n····const·{·allowStale·=·this.allowStale·}·=·peekOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined·||·(!allowStale·&&·this.#isStale(index)))·{\n······return\n····}\n····const·v·=·this.#valList[index]\n····//·either·stale·and·allowed,·or·forcing·a·refresh·of·non-stale·value\n····return·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n··}\n\n··#backgroundFetch(\n····k:·K,\n····index:·Index·|·undefined,\n····options:·LRUCache.FetchOptions<K,·V,·FC>,\n····context:·any,\n··):·BackgroundFetch<V>·{\n····const·v·=·index·===·undefined·?·undefined·:·this.#valList[index]\n····if·(this.#isBackgroundFetch(v))·{\n······return·v\n····}\n\n····const·ac·=·new·AC()\n····const·{·signal·}·=·options\n····//·when/if·our·AC·signals,·then·stop·listening·to·theirs.\n····signal?.addEventListener('abort',·()·=>·ac.abort(signal.reason),·{\n······signal:·ac.signal,\n····})\n\n····const·fetchOpts·=·{\n······signal:·ac.signal,\n······options,\n······context,\n····}\n\n····const·cb·=·(v:·V·|·undefined,·updateCache·=·false):·V·|·undefined·=>·{\n······const·{·aborted·}·=·ac.signal\n······const·ignoreAbort·=·options.ignoreFetchAbort·&&·v·!==·undefined\n······ | 178 | ········"/**\n·*·@module·LRUCache\n·*/\n\n//·module-private·names·and·types\n//·this·provides·the·default·Perf·object·source.\n//·it·can·be·passed·in·via·configuration·to·override·it\n//·for·a·single·LRU·object.\nexport·type·Perf·=·{·now:·()·=>·number·}\nconst·defaultPerf:·Perf·=\n··(\n····typeof·performance·===·'object'·&&\n····performance·&&\n····typeof·performance.now·===·'function'\n··)·?\n····performance\n··:·Date\n\nconst·warned·=·new·Set<string>()\n\n//·either·a·function·or·a·class\ntype·ForC·=·((...a:·any[])·=>·any)·|·{·new·(...a:·any[]):·any·}\n\n/*·c8·ignore·start·*/\nconst·PROCESS·=·(\n··typeof·process·===·'object'·&&·!!process·?\n····process\n··:·{})·as·{·[k:·string]:·any·}\n/*·c8·ignore·start·*/\n\nconst·emitWarning·=·(\n··msg:·string,\n··type:·string,\n··code:·string,\n··fn:·ForC,\n)·=>·{\n··typeof·PROCESS.emitWarning·===·'function'·?\n····PROCESS.emitWarning(msg,·type,·code,·fn)\n··:·console.error(`[${code}]·${type}:·${msg}`)\n}\n\nlet·AC·=·globalThis.AbortController\nlet·AS·=·globalThis.AbortSignal\n\n/*·c8·ignore·start·*/\nif·(typeof·AC·===·'undefined')·{\n··//@ts-ignore\n··AS·=·class·AbortSignal·{\n····onabort?:·(...a:·any[])·=>·any\n····_onabort:·((...a:·any[])·=>·any)[]·=·[]\n····reason?:·any\n····aborted:·boolean·=·false\n····addEventListener(_:·string,·fn:·(...a:·any[])·=>·any)·{\n······this._onabort.push(fn)\n····}\n··}\n··//@ts-ignore\n··AC·=·class·AbortController·{\n····constructor()·{\n······warnACPolyfill()\n····}\n····signal·=·new·AS()\n····abort(reason:·any)·{\n······if·(this.signal.aborted)·return\n······//@ts-ignore\n······this.signal.reason·=·reason\n······//@ts-ignore\n······this.signal.aborted·=·true\n······//@ts-ignore\n······for·(const·fn·of·this.signal._onabort)·{\n········fn(reason)\n······}\n······this.signal.onabort?.(reason)\n····}\n··}\n··let·printACPolyfillWarning·=\n····PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING·!==·'1'\n··const·warnACPolyfill·=·()·=>·{\n····if·(!printACPolyfillWarning)·return\n····printACPolyfillWarning·=·false\n····emitWarning(\n······'AbortController·is·not·defined.·If·using·lru-cache·in·'·+\n········'node·14,·load·an·AbortController·polyfill·from·the·'·+\n········'`node-abort-controller`·package.·A·minimal·polyfill·is·'·+\n········'provided·for·use·by·LRUCache.fetch(),·but·it·should·not·be·'·+\n········'relied·upon·in·other·contexts·(eg,·passing·it·to·other·APIs·that·'·+\n········'use·AbortController/AbortSignal·might·have·undesirable·effects).·'·+\n········'You·may·disable·this·with·LRU_CACHE_IGNORE_AC_WARNING=1·in·the·env.',\n······'NO_ABORT_CONTROLLER',\n······'ENOTSUP',\n······warnACPolyfill,\n····)\n··}\n}\n/*·c8·ignore·stop·*/\n\nconst·shouldWarn·=·(code:·string)·=>·!warned.has(code)\n\nconst·TYPE·=·Symbol('type')\nexport·type·PosInt·=·number·&·{·[TYPE]:·'Positive·Integer'·}\nexport·type·Index·=·number·&·{·[TYPE]:·'LRUCache·Index'·}\n\nconst·isPosInt·=·(n:·any):·n·is·PosInt·=>\n··n·&&·n·===·Math.floor(n)·&&·n·>·0·&&·isFinite(n)\n\nexport·type·UintArray·=·Uint8Array·|·Uint16Array·|·Uint32Array\nexport·type·NumberArray·=·UintArray·|·number[]\n\n/*·c8·ignore·start·*/\n//·This·is·a·little·bit·ridiculous,·tbh.\n//·The·maximum·array·length·is·2^32-1·or·thereabouts·on·most·JS·impls.\n//·And·well·before·that·point,·you're·caching·the·entire·world,·I·mean,\n//·that's·~32GB·of·just·integers·for·the·next/prev·links,·plus·whatever\n//·else·to·hold·that·many·keys·and·values.··Just·filling·the·memory·with\n//·zeroes·at·init·time·is·brutal·when·you·get·that·big.\n//·But·why·not·be·complete?\n//·Maybe·in·the·future,·these·limits·will·have·expanded.\nconst·getUintArray·=·(max:·number)·=>\n··!isPosInt(max)·?·null\n··:·max·<=·Math.pow(2,·8)·?·Uint8Array\n··:·max·<=·Math.pow(2,·16)·?·Uint16Array\n··:·max·<=·Math.pow(2,·32)·?·Uint32Array\n··:·max·<=·Number.MAX_SAFE_INTEGER·?·ZeroArray\n··:·null\n/*·c8·ignore·stop·*/\n\nclass·ZeroArray·extends·Array<number>·{\n··constructor(size:·number)·{\n····super(size)\n····this.fill(0)\n··}\n}\nexport·type·{·ZeroArray·}\nexport·type·{·Stack·}\n\nexport·type·StackLike·=·Stack·|·Index[]\nclass·Stack·{\n··heap:·NumberArray\n··length:·number\n··//·private·constructor\n··static·#constructing:·boolean·=·false\n··static·create(max:·number):·StackLike·{\n····const·HeapCls·=·getUintArray(max)\n····if·(!HeapCls)·return·[]\n····Stack.#constructing·=·true\n····const·s·=·new·Stack(max,·HeapCls)\n····Stack.#constructing·=·false\n····return·s\n··}\n··constructor(max:·number,·HeapCls:·{·new·(n:·number):·NumberArray·})·{\n····/*·c8·ignore·start·*/\n····if·(!Stack.#constructing)·{\n······throw·new·TypeError('instantiate·Stack·using·Stack.create(n)')\n····}\n····/*·c8·ignore·stop·*/\n····this.heap·=·new·HeapCls(max)\n····this.length·=·0\n··}\n··push(n:·Index)·{\n····this.heap[this.length++]·=·n\n··}\n··pop():·Index·{\n····return·this.heap[--this.length]·as·Index\n··}\n}\n\n/**\n·*·Promise·representing·an·in-progress·{@link·LRUCache#fetch}·call\n·*/\nexport·type·BackgroundFetch<V>·=·Promise<V·|·undefined>·&·{\n··__returned:·BackgroundFetch<V>·|·undefined\n··__abortController:·AbortController\n··__staleWhileFetching:·V·|·undefined\n}\n\nexport·type·DisposeTask<K,·V>·=·[\n··value:·V,\n··key:·K,\n··reason:·LRUCache.DisposeReason,\n]\n\nexport·namespace·LRUCache·{\n··/**\n···*·An·integer·greater·than·0,·reflecting·the·calculated·size·of·items\n···*/\n··export·type·Size·=·number\n\n··/**\n···*·Integer·greater·than·0,·representing·some·number·of·milliseconds,·or·the\n···*·time·at·which·a·TTL·started·counting·from.\n···*/\n··export·type·Milliseconds·=·number\n\n··/**\n···*·An·integer·greater·than·0,·reflecting·a·number·of·items\n···*/\n··export·type·Count·=·number\n\n··/**\n···*·The·reason·why·an·item·was·removed·from·the·cache,·passed\n···*·to·the·{@link·Disposer}·methods.\n···*\n···*·-·`evict`:·The·item·was·evicted·because·it·is·the·least·recently·used,\n···*···and·the·cache·is·full.\n···*·-·`set`:·A·new·value·was·set,·overwriting·the·old·value·being·disposed.\n···*·-·`delete`:·The·item·was·explicitly·deleted,·either·by·calling\n···*···{@link·LRUCache#delete},·{@link·LRUCache#clear},·or\n···*···{@link·LRUCache#set}·with·an·undefined·value.\n···*·-·`expire`:·The·item·was·removed·due·to·exceeding·its·TTL.\n···*·-·`fetch`:·A·{@link·OptionsBase#fetchMethod}·operation·returned\n···*···`undefined`·or·was·aborted,·causing·the·item·to·be·deleted.\n···*/\n··export·type·DisposeReason·=\n····|·'evict'\n····|·'set'\n····|·'delete'\n····|·'expire'\n····|·'fetch'\n··/**\n···*·A·method·called·upon·item·removal,·passed·as·the\n···*·{@link·OptionsBase.dispose}·and/or\n···*·{@link·OptionsBase.disposeAfter}·options.\n···*/\n··export·type·Disposer<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·DisposeReason,\n··)·=>·void\n\n··/**\n···*·The·reason·why·an·item·was·added·to·the·cache,·passed\n···*·to·the·{@link·Inserter}·methods.\n···*\n···*·-·`add`:·the·item·was·not·found·in·the·cache,·and·was·added\n···*·-·`update`:·the·item·was·in·the·cache,·with·the·same·value·provided\n···*·-·`replace`:·the·item·was·in·the·cache,·and·replaced\n···*/\n··export·type·InsertReason·=·'add'·|·'update'·|·'replace'\n\n··/**\n···*·A·method·called·upon·item·insertion,·passed·as·the\n···*·{@link·OptionsBase.insert}\n···*/\n··export·type·Inserter<K,·V>·=·(\n····value:·V,\n····key:·K,\n····reason:·InsertReason,\n··)·=>·void\n\n··/**\n···*·A·function·that·returns·the·effective·calculated·size\n···*·of·an·entry·in·the·cache.\n···*/\n··export·type·SizeCalculator<K,·V>·=·(value:·V,·key:·K)·=>·Size\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.fetchMethod}·function.\n···*/\n··export·interface·FetcherOptions<K,·V,·FC·=·unknown>·{\n····signal:·AbortSignal\n····options:·FetcherFetchOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·FetchOptions.context}·option·to\n·····*·{@link·LRUCache#fetch}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·Occasionally,·it·may·be·useful·to·track·the·internal·behavior·of·the\n···*·cache,·particularly·for·logging,·debugging,·or·for·behavior·within·the\n···*·`fetchMethod`.·To·do·this,·you·can·pass·a·`status`·object·to·the\n···*·{@link·LRUCache#fetch},·{@link·LRUCache#get},·{@link·LRUCache#set},\n···*·{@link·LRUCache#memo},·and·{@link·LRUCache#has}·methods.\n···*\n···*·The·`status`·option·should·be·a·plain·JavaScript·object.·The·following\n···*·fields·will·be·set·on·it·appropriately,·depending·on·the·situation.\n···*/\n··export·interface·Status<V>·{\n····/**\n·····*·The·status·of·a·set()·operation.\n·····*\n·····*·-·add:·the·item·was·not·found·in·the·cache,·and·was·added\n·····*·-·update:·the·item·was·in·the·cache,·with·the·same·value·provided\n·····*·-·replace:·the·item·was·in·the·cache,·and·replaced\n·····*·-·miss:·the·item·was·not·added·to·the·cache·for·some·reason\n·····*/\n····set?:·'add'·|·'update'·|·'replace'·|·'miss'\n\n····/**\n·····*·the·ttl·stored·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·the·start·time·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····start?:·Milliseconds\n\n····/**\n·····*·The·timestamp·used·for·TTL·calculation\n·····*/\n····now?:·Milliseconds\n\n····/**\n·····*·the·remaining·ttl·for·the·item,·or·undefined·if·ttls·are·not·used.\n·····*/\n····remainingTTL?:·Milliseconds\n\n····/**\n·····*·The·calculated·size·for·the·item,·if·sizes·are·used.\n·····*/\n····entrySize?:·Size\n\n····/**\n·····*·The·total·calculated·size·of·the·cache,·if·sizes·are·used.\n·····*/\n····totalCalculatedSize?:·Size\n\n····/**\n·····*·A·flag·indicating·that·the·item·was·not·stored,·due·to·exceeding·the\n·····*·{@link·OptionsBase.maxEntrySize}\n·····*/\n····maxEntrySizeExceeded?:·true\n\n····/**\n·····*·The·old·value,·specified·in·the·case·of·`set:'update'`·or\n·····*·`set:'replace'`\n·····*/\n····oldValue?:·V\n\n····/**\n·····*·The·results·of·a·{@link·LRUCache#has}·operation\n·····*\n·····*·-·hit:·the·item·was·found·in·the·cache\n·····*·-·stale:·the·item·was·found·in·the·cache,·but·is·stale\n·····*·-·miss:·the·item·was·not·found·in·the·cache\n·····*/\n····has?:·'hit'·|·'stale'·|·'miss'\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#fetch}·operation.\n·····*·Note·that·this·can·change·as·the·underlying·fetch()·moves·through\n·····*·various·states.\n·····*\n·····*·-·inflight:·there·is·another·fetch()·for·this·key·which·is·in·process\n·····*·-·get:·there·is·no·{@link·OptionsBase.fetchMethod},·so\n·····*···{@link·LRUCache#get}·was·called.\n·····*·-·miss:·the·item·is·not·in·cache,·and·will·be·fetched.\n·····*·-·hit:·the·item·is·in·the·cache,·and·was·resolved·immediately.\n·····*·-·stale:·the·item·is·in·the·cache,·but·stale.\n·····*·-·refresh:·the·item·is·in·the·cache,·and·not·stale,·but\n·····*···{@link·FetchOptions.forceRefresh}·was·specified.\n·····*/\n····fetch?:·'get'·|·'inflight'·|·'miss'·|·'hit'·|·'stale'·|·'refresh'\n\n····/**\n·····*·The·{@link·OptionsBase.fetchMethod}·was·called\n·····*/\n····fetchDispatched?:·true\n\n····/**\n·····*·The·cached·value·was·updated·after·a·successful·call·to\n·····*·{@link·OptionsBase.fetchMethod}\n·····*/\n····fetchUpdated?:·true\n\n····/**\n·····*·The·reason·for·a·fetch()·rejection.··Either·the·error·raised·by·the\n·····*·{@link·OptionsBase.fetchMethod},·or·the·reason·for·an\n·····*·AbortSignal.\n·····*/\n····fetchError?:·Error\n\n····/**\n·····*·The·fetch·received·an·abort·signal\n·····*/\n····fetchAborted?:·true\n\n····/**\n·····*·The·abort·signal·received·was·ignored,·and·the·fetch·was·allowed·to\n·····*·continue.\n·····*/\n····fetchAbortIgnored?:·true\n\n····/**\n·····*·The·fetchMethod·promise·resolved·successfully\n·····*/\n····fetchResolved?:·true\n\n····/**\n·····*·The·fetchMethod·promise·was·rejected\n·····*/\n····fetchRejected?:·true\n\n····/**\n·····*·The·status·of·a·{@link·LRUCache#get}·operation.\n·····*\n·····*·-·fetching:·The·item·is·currently·being·fetched.··If·a·previous·value\n·····*···is·present·and·allowed,·that·will·be·returned.\n·····*·-·stale:·The·item·is·in·the·cache,·and·is·stale.\n·····*·-·hit:·the·item·is·in·the·cache\n·····*·-·miss:·the·item·is·not·in·the·cache\n·····*/\n····get?:·'stale'·|·'hit'·|·'miss'\n\n····/**\n·····*·A·fetch·or·get·operation·returned·a·stale·value.\n·····*/\n····returnedStale?:·true\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#fetch}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·OptionsBase.noDeleteOnFetchRejection},\n···*·{@link·OptionsBase.allowStaleOnFetchRejection},\n···*·{@link·FetchOptions.forceRefresh},·and\n···*·{@link·FetcherOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.fetchMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·fetchMethod·is·called.\n···*/\n··export·interface·FetcherFetchOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#fetch}·method.\n···*/\n··export·interface·FetchOptions<K,·V,·FC>\n····extends·FetcherFetchOptions<K,·V,·FC>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.fetchMethod}·as\n·····*·the·{@link·FetcherOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····signal?:·AbortSignal\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·FetchOptionsWithContext<K,·V,·FC>\n····extends·FetchOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#fetch}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·FetchOptionsNoContext<K,·V>\n····extends·FetchOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··export·interface·MemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n······|·'noDeleteOnFetchRejection'\n······|·'allowStaleOnFetchRejection'\n······|·'ignoreFetchAbort'\n······|·'allowStaleOnFetchAbort'\n····>·{\n····/**\n·····*·Set·to·true·to·force·a·re-load·of·the·existing·data,·even·if·it\n·····*·is·not·yet·stale.\n·····*/\n····forceRefresh?:·boolean\n····/**\n·····*·Context·provided·to·the·{@link·OptionsBase.memoMethod}·as\n·····*·the·{@link·MemoizerOptions.context}·param.\n·····*\n·····*·If·the·FC·type·is·specified·as·unknown·(the·default),\n·····*·undefined·or·void,·then·this·is·optional.··Otherwise,·it·will\n·····*·be·required.\n·····*/\n····context?:·FC\n····status?:·Status<V>\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is·something\n···*·other·than·`unknown`,·`undefined`,·or·`void`\n···*/\n··export·interface·MemoOptionsWithContext<K,·V,·FC>\n····extends·MemoOptions<K,·V,·FC>·{\n····context:·FC\n··}\n··/**\n···*·Options·provided·to·{@link·LRUCache#memo}·when·the·FC·type·is\n···*·`undefined`·or·`void`\n···*/\n··export·interface·MemoOptionsNoContext<K,·V>\n····extends·MemoOptions<K,·V,·undefined>·{\n····context?:·undefined\n··}\n\n··/**\n···*·Options·provided·to·the\n···*·{@link·OptionsBase.memoMethod}·function.\n···*/\n··export·interface·MemoizerOptions<K,·V,·FC·=·unknown>·{\n····options:·MemoizerMemoOptions<K,·V,·FC>\n····/**\n·····*·Object·provided·in·the·{@link·MemoOptions.context}·option·to\n·····*·{@link·LRUCache#memo}\n·····*/\n····context:·FC\n··}\n\n··/**\n···*·options·which·override·the·options·set·in·the·LRUCache·constructor\n···*·when·calling·{@link·LRUCache#memo}.\n···*\n···*·This·is·the·union·of·{@link·GetOptions}·and·{@link·SetOptions},·plus\n···*·{@link·MemoOptions.forceRefresh},·and\n···*·{@link·MemoOptions.context}\n···*\n···*·Any·of·these·may·be·modified·in·the·{@link·OptionsBase.memoMethod}\n···*·function,·but·the·{@link·GetOptions}·fields·will·of·course·have·no\n···*·effect,·as·the·{@link·LRUCache#get}·call·already·happened·by·the·time\n···*·the·memoMethod·is·called.\n···*/\n··export·interface·MemoizerMemoOptions<K,·V,·FC·=·unknown>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······|·'allowStale'\n······|·'updateAgeOnGet'\n······|·'noDeleteOnStaleGet'\n······|·'sizeCalculation'\n······|·'ttl'\n······|·'noDisposeOnSet'\n······|·'noUpdateTTL'\n····>·{\n····status?:·Status<V>\n····size?:·Size\n····start?:·Milliseconds\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#has}·method.\n···*/\n··export·interface·HasOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'updateAgeOnHas'>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#get}·method.\n···*/\n··export·interface·GetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'allowStale'·|·'updateAgeOnGet'·|·'noDeleteOnStaleGet'\n····>·{\n····status?:·Status<V>\n··}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#peek}·method.\n···*/\n··export·interface·PeekOptions<K,·V,·FC>\n····extends·Pick<OptionsBase<K,·V,·FC>,·'allowStale'>·{}\n\n··/**\n···*·Options·that·may·be·passed·to·the·{@link·LRUCache#set}·method.\n···*/\n··export·interface·SetOptions<K,·V,·FC>\n····extends·Pick<\n······OptionsBase<K,·V,·FC>,\n······'sizeCalculation'·|·'ttl'·|·'noDisposeOnSet'·|·'noUpdateTTL'\n····>·{\n····/**\n·····*·If·size·tracking·is·enabled,·then·setting·an·explicit·size\n·····*·in·the·{@link·LRUCache#set}·call·will·prevent·calling·the\n·····*·{@link·OptionsBase.sizeCalculation}·function.\n·····*/\n····size?:·Size\n····/**\n·····*·If·TTL·tracking·is·enabled,·then·setting·an·explicit·start\n·····*·time·in·the·{@link·LRUCache#set}·call·will·override·the\n·····*·default·time·from·`performance.now()`·or·`Date.now()`.\n·····*\n·····*·Note·that·it·must·be·a·valid·value·for·whichever·time-tracking\n·····*·method·is·in·use.\n·····*/\n····start?:·Milliseconds\n····status?:·Status<V>\n··}\n\n··/**\n···*·The·type·signature·for·the·{@link·OptionsBase.fetchMethod}·option.\n···*/\n··export·type·Fetcher<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·FetcherOptions<K,·V,·FC>,\n··)·=>·Promise<V·|·undefined·|·void>·|·V·|·undefined·|·void\n\n··/**\n···*·the·type·signature·for·the·{@link·OptionsBase.memoMethod}·option.\n···*/\n··export·type·Memoizer<K,·V,·FC·=·unknown>·=·(\n····key:·K,\n····staleValue:·V·|·undefined,\n····options:·MemoizerOptions<K,·V,·FC>,\n··)·=>·V\n\n··/**\n···*·Options·which·may·be·passed·to·the·{@link·LRUCache}·constructor.\n···*\n···*·Most·of·these·may·be·overridden·in·the·various·options·that·use\n···*·them.\n···*\n···*·Despite·all·being·technically·optional,·the·constructor·requires·that\n···*·a·cache·is·at·minimum·limited·by·one·or·more·of·{@link·OptionsBase.max},\n···*·{@link·OptionsBase.ttl},·or·{@link·OptionsBase.maxSize}.\n···*\n···*·If·{@link·OptionsBase.ttl}·is·used·alone,·then·it·is·strongly·advised\n···*·(and·in·fact·required·by·the·type·definitions·here)·that·the·cache\n···*·also·set·{@link·OptionsBase.ttlAutopurge},·to·prevent·potentially\n···*·unbounded·storage.\n···*\n···*·All·options·are·also·available·on·the·{@link·LRUCache}·instance,·making\n···*·it·safe·to·pass·an·LRUCache·instance·as·the·options·argumemnt·to\n···*·make·another·empty·cache·of·the·same·type.\n···*\n···*·Some·options·are·marked·as·read-only,·because·changing·them·after\n···*·instantiation·is·not·safe.·Changing·any·of·the·other·options·will·of\n···*·course·only·have·an·effect·on·subsequent·method·calls.\n···*/\n··export·interface·OptionsBase<K,·V,·FC>·{\n····/**\n·····*·The·maximum·number·of·items·to·store·in·the·cache·before·evicting\n·····*·old·entries.·This·is·read-only·on·the·{@link·LRUCache}·instance,\n·····*·and·may·not·be·overridden.\n·····*\n·····*·If·set,·then·storage·space·will·be·pre-allocated·at·construction\n·····*·time,·and·the·cache·will·perform·significantly·faster.\n·····*\n·····*·Note·that·significantly·fewer·items·may·be·stored,·if\n·····*·{@link·OptionsBase.maxSize}·and/or·{@link·OptionsBase.ttl}·are·also\n·····*·set.\n·····*\n·····*·**It·is·strongly·recommended·to·set·a·`max`·to·prevent·unbounded·growth\n·····*·of·the·cache.**\n·····*/\n····max?:·Count\n\n····/**\n·····*·Max·time·in·milliseconds·for·items·to·live·in·cache·before·they·are\n·····*·considered·stale.··Note·that·stale·items·are·NOT·preemptively·removed·by\n·····*·default,·and·MAY·live·in·the·cache,·contributing·to·its·LRU·max,·long\n·····*·after·they·have·expired,·unless·{@link·OptionsBase.ttlAutopurge}·is\n·····*·set.\n·····*\n·····*·If·set·to·`0`·(the·default·value),·then·that·means·\"do·not·track\n·····*·TTL\",·not·\"expire·immediately\".\n·····*\n·····*·Also,·as·this·cache·is·optimized·for·LRU/MRU·operations,·some·of\n·····*·the·staleness/TTL·checks·will·reduce·performance,·as·they·will·incur\n·····*·overhead·by·deleting·items.\n·····*\n·····*·This·is·not·primarily·a·TTL·cache,·and·does·not·make·strong·TTL\n·····*·guarantees.·There·is·no·pre-emptive·pruning·of·expired·items,·but·you\n·····*·_may_·set·a·TTL·on·the·cache,·and·it·will·treat·expired·items·as·missing\n·····*·when·they·are·fetched,·and·delete·them.\n·····*\n·····*·Optional,·but·must·be·a·non-negative·integer·in·ms·if·specified.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.set()`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·ttl·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·If·ttl·tracking·is·enabled,·and·`max`·and·`maxSize`·are·not·set,\n·····*·and·`ttlAutopurge`·is·not·set,·then·a·warning·will·be·emitted\n·····*·cautioning·about·the·potential·for·unbounded·memory·consumption.\n·····*·(The·TypeScript·definitions·will·also·discourage·this.)\n·····*/\n····ttl?:·Milliseconds\n\n····/**\n·····*·Minimum·amount·of·time·in·ms·in·which·to·check·for·staleness.\n·····*·Defaults·to·1,·which·means·that·the·current·time·is·checked\n·····*·at·most·once·per·millisecond.\n·····*\n·····*·Set·to·0·to·check·the·current·time·every·time·staleness·is·tested.\n·····*·(This·reduces·performance,·and·is·theoretically·unnecessary.)\n·····*\n·····*·Setting·this·to·a·higher·value·will·improve·performance·somewhat\n·····*·while·using·ttl·tracking,·albeit·at·the·expense·of·keeping·stale\n·····*·items·around·a·bit·longer·than·their·TTLs·would·indicate.\n·····*\n·····*·@default·1\n·····*/\n····ttlResolution?:·Milliseconds\n\n····/**\n·····*·Preemptively·remove·stale·items·from·the·cache.\n·····*\n·····*·Note·that·this·may·*significantly*·degrade·performance,·especially·if\n·····*·the·cache·is·storing·a·large·number·of·items.·It·is·almost·always·best\n·····*·to·just·leave·the·stale·items·in·the·cache,·and·let·them·fall·out·as·new\n·····*·items·are·added.\n·····*\n·····*·Note·that·this·means·that·{@link·OptionsBase.allowStale}·is·a·bit\n·····*·pointless,·as·stale·items·will·be·deleted·almost·as·soon·as·they\n·····*·expire.\n·····*\n·····*·Use·with·caution!\n·····*/\n····ttlAutopurge?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·it·is·retrieved·from·cache·with\n·····*·{@link·LRUCache#get},·causing·it·to·not·expire.·(It·can·still·fall·out\n·····*·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*/\n····updateAgeOnGet?:·boolean\n\n····/**\n·····*·When·using·time-expiring·entries·with·`ttl`,·setting·this·to·`true`·will\n·····*·make·each·item's·age·reset·to·0·whenever·its·presence·in·the·cache·is\n·····*·checked·with·{@link·LRUCache#has},·causing·it·to·not·expire.·(It·can\n·····*·still·fall·out·of·cache·based·on·recency·of·use,·of·course.)\n·····*\n·····*·Has·no·effect·if·{@link·OptionsBase.ttl}·is·not·set.\n·····*/\n····updateAgeOnHas?:·boolean\n\n····/**\n·····*·Allow·{@link·LRUCache#get}·and·{@link·LRUCache#fetch}·calls·to·return\n·····*·stale·data,·if·available.\n·····*\n·····*·By·default,·if·you·set·`ttl`,·stale·items·will·only·be·deleted·from·the\n·····*·cache·when·you·`get(key)`.·That·is,·it's·not·preemptively·pruning·items,\n·····*·unless·{@link·OptionsBase.ttlAutopurge}·is·set.\n·····*\n·····*·If·you·set·`allowStale:true`,·it'll·return·the·stale·value·*as·well·as*\n·····*·deleting·it.·If·you·don't·set·this,·then·it'll·return·`undefined`·when\n·····*·you·try·to·get·a·stale·entry.\n·····*\n·····*·Note·that·when·a·stale·entry·is·fetched,·_even·if·it·is·returned·due·to\n·····*·`allowStale`·being·set_,·it·is·removed·from·the·cache·immediately.·You\n·····*·can·suppress·this·behavior·by·setting\n·····*·{@link·OptionsBase.noDeleteOnStaleGet},·either·in·the·constructor,·or·in\n·····*·the·options·provided·to·{@link·LRUCache#get}.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*·The·`cache.has()`·method·will·always·return·`false`·for·stale·items.\n·····*\n·····*·Only·relevant·if·a·ttl·is·set.\n·····*/\n····allowStale?:·boolean\n\n····/**\n·····*·Function·that·is·called·on·items·when·they·are·dropped·from·the\n·····*·cache,·as·`dispose(value,·key,·reason)`.\n·····*\n·····*·This·can·be·handy·if·you·want·to·close·file·descriptors·or·do\n·····*·other·cleanup·tasks·when·items·are·no·longer·stored·in·the·cache.\n·····*\n·····*·**NOTE**:·It·is·called·_before_·the·item·has·been·fully·removed\n·····*·from·the·cache,·so·if·you·want·to·put·it·right·back·in,·you·need\n·····*·to·wait·until·the·next·tick.·If·you·try·to·add·it·back·in·during\n·····*·the·`dispose()`·function·call,·it·will·break·things·in·subtle·and\n·····*·weird·ways.\n·····*\n·····*·Unlike·several·other·options,·this·may·_not_·be·overridden·by\n·····*·passing·an·option·to·`set()`,·for·performance·reasons.\n·····*\n·····*·The·`reason`·will·be·one·of·the·following·strings,·corresponding\n·····*·to·the·reason·for·the·item's·deletion:\n·····*\n·····*·-·`evict`·Item·was·evicted·to·make·space·for·a·new·addition\n·····*·-·`set`·Item·was·overwritten·by·a·new·value\n·····*·-·`expire`·Item·expired·its·TTL\n·····*·-·`fetch`·Item·was·deleted·due·to·a·failed·or·aborted·fetch,·or·a\n·····*···fetchMethod·returning·`undefined.\n·····*·-·`delete`·Item·was·removed·by·explicit·`cache.delete(key)`,\n·····*···`cache.clear()`,·or·`cache.set(key,·undefined)`.\n·····*/\n····dispose?:·Disposer<K,·V>\n\n····/**\n·····*·Function·that·is·called·when·new·items·are·inserted·into·the·cache,\n·····*·as·`onInsert(value,·key,·reason)`.\n·····*\n·····*·This·can·be·useful·if·you·need·to·perform·actions·when·an·item·is\n·····*·added,·such·as·logging·or·tracking·insertions.\n·····*\n·····*·Unlike·some·other·options,·this·may·_not_·be·overridden·by·passing\n·····*·an·option·to·`set()`,·for·performance·and·consistency·reasons.\n·····*/\n····onInsert?:·Inserter<K,·V>\n\n····/**\n·····*·The·same·as·{@link·OptionsBase.dispose},·but·called·*after*·the·entry\n·····*·is·completely·removed·and·the·cache·is·once·again·in·a·clean·state.\n·····*\n·····*·It·is·safe·to·add·an·item·right·back·into·the·cache·at·this·point.\n·····*·However,·note·that·it·is·*very*·easy·to·inadvertently·create·infinite\n·····*·recursion·this·way.\n·····*/\n····disposeAfter?:·Disposer<K,·V>\n\n····/**\n·····*·Set·to·true·to·suppress·calling·the\n·····*·{@link·OptionsBase.dispose}·function·if·the·entry·key·is\n·····*·still·accessible·within·the·cache.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to\n·····*·{@link·LRUCache#set}.\n·····*\n·····*·Only·relevant·if·`dispose`·or·`disposeAfter`·are·set.\n·····*/\n····noDisposeOnSet?:·boolean\n\n····/**\n·····*·Boolean·flag·to·tell·the·cache·to·not·update·the·TTL·when·setting·a·new\n·····*·value·for·an·existing·key·(ie,·when·updating·a·value·rather·than\n·····*·inserting·a·new·value).··Note·that·the·TTL·value·is·_always_·set·(if\n·····*·provided)·when·adding·a·new·entry·into·the·cache.\n·····*\n·····*·Has·no·effect·if·a·{@link·OptionsBase.ttl}·is·not·set.\n·····*\n·····*·May·be·passed·as·an·option·to·{@link·LRUCache#set}.\n·····*/\n····noUpdateTTL?:·boolean\n\n····/**\n·····*·Set·to·a·positive·integer·to·track·the·sizes·of·items·added·to·the\n·····*·cache,·and·automatically·evict·items·in·order·to·stay·below·this·size.\n·····*·Note·that·this·may·result·in·fewer·than·`max`·items·being·stored.\n·····*\n·····*·Attempting·to·add·an·item·to·the·cache·whose·calculated·size·is·greater\n·····*·that·this·amount·will·be·a·no-op.·The·item·will·not·be·cached,·and·no\n·····*·other·items·will·be·evicted.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.\n·····*\n·····*·Sets·`maxEntrySize`·to·the·same·value,·unless·a·different·value·is\n·····*·provided·for·`maxEntrySize`.\n·····*\n·····*·At·least·one·of·`max`,·`maxSize`,·or·`TTL`·is·required.·This·must·be·a\n·····*·positive·integer·if·set.\n·····*\n·····*·Even·if·size·tracking·is·enabled,·**it·is·strongly·recommended·to·set·a\n·····*·`max`·to·prevent·unbounded·growth·of·the·cache.**\n·····*\n·····*·Note·also·that·size·tracking·can·negatively·impact·performance,\n·····*·though·for·most·cases,·only·minimally.\n·····*/\n····maxSize?:·Size\n\n····/**\n·····*·The·maximum·allowed·size·for·any·single·item·in·the·cache.\n·····*\n·····*·If·a·larger·item·is·passed·to·{@link·LRUCache#set}·or·returned·by·a\n·····*·{@link·OptionsBase.fetchMethod}·or·{@link·OptionsBase.memoMethod},·then\n·····*·it·will·not·be·stored·in·the·cache.\n·····*\n·····*·Attempting·to·add·an·item·whose·calculated·size·is·greater·than\n·····*·this·amount·will·not·cache·the·item·or·evict·any·old·items,·but\n·····*·WILL·delete·an·existing·value·if·one·is·already·present.\n·····*\n·····*·Optional,·must·be·a·positive·integer·if·provided.·Defaults·to\n·····*·the·value·of·`maxSize`·if·provided.\n·····*/\n····maxEntrySize?:·Size\n\n····/**\n·····*·A·function·that·returns·a·number·indicating·the·item's·size.\n·····*\n·····*·Requires·{@link·OptionsBase.maxSize}·to·be·set.\n·····*\n·····*·If·not·provided,·and·{@link·OptionsBase.maxSize}·or\n·····*·{@link·OptionsBase.maxEntrySize}·are·set,·then·all\n·····*·{@link·LRUCache#set}·calls·**must**·provide·an·explicit\n·····*·{@link·SetOptions.size}·or·sizeCalculation·param.\n·····*/\n····sizeCalculation?:·SizeCalculator<K,·V>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#fetch}\n·····*\n·····*·```ts\n·····*·fetchMethod(key,·staleValue,·{·signal,·options,·context·})\n·····*·```\n·····*\n·····*·If·`fetchMethod`·is·not·provided,·then·`cache.fetch(key)`·is·equivalent\n·····*·to·`Promise.resolve(cache.get(key))`.\n·····*\n·····*·If·at·any·time,·`signal.aborted`·is·set·to·`true`,·or·if·the\n·····*·`signal.onabort`·method·is·called,·or·if·it·emits·an·`'abort'`·event\n·····*·which·you·can·listen·to·with·`addEventListener`,·then·that·means·that\n·····*·the·fetch·should·be·abandoned.·This·may·be·passed·along·to·async\n·····*·functions·aware·of·AbortController/AbortSignal·behavior.\n·····*\n·····*·The·`fetchMethod`·should·**only**·return·`undefined`·or·a·Promise\n·····*·resolving·to·`undefined`·if·the·AbortController·signaled·an·`abort`\n·····*·event.·In·all·other·cases,·it·should·return·or·resolve·to·a·value\n·····*·suitable·for·adding·to·the·cache.\n·····*\n·····*·The·`options`·object·is·a·union·of·the·options·that·may·be·provided·to\n·····*·`set()`·and·`get()`.·If·they·are·modified,·then·that·will·result·in\n·····*·modifying·the·settings·to·`cache.set()`·when·the·value·is·resolved,·and\n·····*·in·the·case·of\n·····*·{@link·OptionsBase.noDeleteOnFetchRejection}·and\n·····*·{@link·OptionsBase.allowStaleOnFetchRejection},·the·handling·of\n·····*·`fetchMethod`·failures.\n·····*\n·····*·For·example,·a·DNS·cache·may·update·the·TTL·based·on·the·value·returned\n·····*·from·a·remote·DNS·server·by·changing·`options.ttl`·in·the·`fetchMethod`.\n·····*/\n····fetchMethod?:·Fetcher<K,·V,·FC>\n\n····/**\n·····*·Method·that·provides·the·implementation·for·{@link·LRUCache#memo}\n·····*/\n····memoMethod?:·Memoizer<K,·V,·FC>\n\n····/**\n·····*·Set·to·true·to·suppress·the·deletion·of·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·returns·a·rejected·promise.\n·····*/\n····noDeleteOnFetchRejection?:·boolean\n\n····/**\n·····*·Do·not·delete·stale·items·when·they·are·retrieved·with\n·····*·{@link·LRUCache#get}.\n·····*\n·····*·Note·that·the·`get`·return·value·will·still·be·`undefined`\n·····*·unless·{@link·OptionsBase.allowStale}·is·true.\n·····*\n·····*·When·using·time-expiring·entries·with·`ttl`,·by·default·stale\n·····*·items·will·be·removed·from·the·cache·when·the·key·is·accessed\n·····*·with·`cache.get()`.\n·····*\n·····*·Setting·this·option·will·cause·stale·items·to·remain·in·the·cache,·until\n·····*·they·are·explicitly·deleted·with·`cache.delete(key)`,·or·retrieved·with\n·····*·`noDeleteOnStaleGet`·set·to·`false`.\n·····*\n·····*·This·may·be·overridden·by·passing·an·options·object·to·`cache.get()`.\n·····*\n·····*·Only·relevant·if·a·ttl·is·used.\n·····*/\n····noDeleteOnStaleGet?:·boolean\n\n····/**\n·····*·Set·to·true·to·allow·returning·stale·data·when·a\n·····*·{@link·OptionsBase.fetchMethod}·throws·an·error·or·returns·a·rejected\n·····*·promise.\n·····*\n·····*·This·differs·from·using·{@link·OptionsBase.allowStale}·in·that·stale\n·····*·data·will·ONLY·be·returned·in·the·case·that·the·{@link·LRUCache#fetch}\n·····*·fails,·not·any·other·times.\n·····*\n·····*·If·a·`fetchMethod`·fails,·and·there·is·no·stale·value·available,·the\n·····*·`fetch()`·will·resolve·to·`undefined`.·Ie,·all·`fetchMethod`·errors·are\n·····*·suppressed.\n·····*\n·····*·Implies·`noDeleteOnFetchRejection`.\n·····*\n·····*·This·may·be·set·in·calls·to·`fetch()`,·or·defaulted·on·the·constructor,\n·····*·or·overridden·by·modifying·the·options·object·in·the·`fetchMethod`.\n·····*/\n····allowStaleOnFetchRejection?:·boolean\n\n····/**\n·····*·Set·to·true·to·return·a·stale·value·from·the·cache·when·the\n·····*·`AbortSignal`·passed·to·the·{@link·OptionsBase.fetchMethod}·dispatches\n·····*·an·`'abort'`·event,·whether·user-triggered,·or·due·to·internal·cache\n·····*·behavior.\n·····*\n·····*·Unless·{@link·OptionsBase.ignoreFetchAbort}·is·also·set,·the·underlying\n·····*·{@link·OptionsBase.fetchMethod}·will·still·be·considered·canceled,·and\n·····*·any·value·it·returns·will·be·ignored·and·not·cached.\n·····*\n·····*·Caveat:·since·fetches·are·aborted·when·a·new·value·is·explicitly\n·····*·set·in·the·cache,·this·can·lead·to·fetch·returning·a·stale·value,\n·····*·since·that·was·the·fallback·value·_at·the·moment·the·`fetch()`·was\n·····*·initiated_,·even·though·the·new·updated·value·is·now·present·in\n·····*·the·cache.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·cache·=·new·LRUCache<string,·any>({\n·····*···ttl:·100,\n·····*···fetchMethod:·async·(url,·oldValue,·{·signal·})·=>··{\n·····*·····const·res·=·await·fetch(url,·{·signal·})\n·····*·····return·await·res.json()\n·····*···}\n·····*·})\n·····*·cache.set('https://example.com/',·{·some:·'data'·})\n·····*·//·100ms·go·by...\n·····*·const·result·=·cache.fetch('https://example.com/')\n·····*·cache.set('https://example.com/',·{·other:·'thing'·})\n·····*·console.log(await·result)·//·{·some:·'data'·}\n·····*·console.log(cache.get('https://example.com/'))·//·{·other:·'thing'·}\n·····*·```\n·····*/\n····allowStaleOnFetchAbort?:·boolean\n\n····/**\n·····*·Set·to·true·to·ignore·the·`abort`·event·emitted·by·the·`AbortSignal`\n·····*·object·passed·to·{@link·OptionsBase.fetchMethod},·and·still·cache·the\n·····*·resulting·resolution·value,·as·long·as·it·is·not·`undefined`.\n·····*\n·····*·When·used·on·its·own,·this·means·aborted·{@link·LRUCache#fetch}·calls\n·····*·are·not·immediately·resolved·or·rejected·when·they·are·aborted,·and\n·····*·instead·take·the·full·time·to·await.\n·····*\n·····*·When·used·with·{@link·OptionsBase.allowStaleOnFetchAbort},·aborted\n·····*·{@link·LRUCache#fetch}·calls·will·resolve·immediately·to·their·stale\n·····*·cached·value·or·`undefined`,·and·will·continue·to·process·and·eventually\n·····*·update·the·cache·when·they·resolve,·as·long·as·the·resulting·value·is\n·····*·not·`undefined`,·thus·supporting·a·\"return·stale·on·timeout·while\n·····*·refreshing\"·mechanism·by·passing·`AbortSignal.timeout(n)`·as·the·signal.\n·····*\n·····*·For·example:\n·····*\n·····*·```ts\n·····*·const·c·=·new·LRUCache({\n·····*···ttl:·100,\n·····*···ignoreFetchAbort:·true,\n·····*···allowStaleOnFetchAbort:·true,\n·····*···fetchMethod:·async·(key,·oldValue,·{·signal·})·=>·{\n·····*·····//·note:·do·NOT·pass·the·signal·to·fetch()!\n·····*·····//·let's·say·this·fetch·can·take·a·long·time.\n·····*·····const·res·=·await·fetch(`https://slow-backend-server/${key}`)\n·····*·····return·await·res.json()\n·····*···},\n·····*·})\n·····*\n·····*·//·this·will·return·the·stale·value·after·100ms,·while·still\n·····*·//·updating·in·the·background·for·next·time.\n·····*·const·val·=·await·c.fetch('key',·{·signal:·AbortSignal.timeout(100)·})\n·····*·```\n·····*\n·····*·**Note**:·regardless·of·this·setting,·an·`abort`·event·_is·still\n·····*·emitted·on·the·`AbortSignal`·object_,·so·may·result·in·invalid·results\n·····*·when·passed·to·other·underlying·APIs·that·use·AbortSignals.\n·····*\n·····*·This·may·be·overridden·in·the·{@link·OptionsBase.fetchMethod}·or·the\n·····*·call·to·{@link·LRUCache#fetch}.\n·····*/\n····ignoreFetchAbort?:·boolean\n\n····/**\n·····*·In·some·cases,·you·may·want·to·swap·out·the·performance/Date·object\n·····*·used·for·TTL·tracking.·This·should·almost·certainly·NOT·be·done·in\n·····*·production·environments!\n·····*\n·····*·This·value·defaults·to·`global.performance`·if·it·has·a·`now()`·method,\n·····*·or·the·`global.Date`·object·otherwise.\n·····*/\n····perf?:·Perf\n··}\n\n··export·interface·OptionsMaxLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····max:·Count\n··}\n··export·interface·OptionsTTLLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····ttl:·Milliseconds\n····ttlAutopurge:·boolean\n··}\n··export·interface·OptionsSizeLimit<K,·V,·FC>\n····extends·OptionsBase<K,·V,·FC>·{\n····maxSize:·Size\n··}\n\n··/**\n···*·The·valid·safe·options·for·the·{@link·LRUCache}·constructor\n···*/\n··export·type·Options<K,·V,·FC>·=\n····|·OptionsMaxLimit<K,·V,·FC>\n····|·OptionsSizeLimit<K,·V,·FC>\n····|·OptionsTTLLimit<K,·V,·FC>\n\n··/**\n···*·Entry·objects·used·by·{@link·LRUCache#load}·and·{@link·LRUCache#dump},\n···*·and·returned·by·{@link·LRUCache#info}.\n···*/\n··export·interface·Entry<V>·{\n····value:·V\n····ttl?:·Milliseconds\n····size?:·Size\n····start?:·Milliseconds\n··}\n}\n\n/**\n·*·Default·export,·the·thing·you're·using·this·module·to·get.\n·*\n·*·The·`K`·and·`V`·types·define·the·key·and·value·types,·respectively.·The\n·*·optional·`FC`·type·defines·the·type·of·the·`context`·object·passed·to\n·*·`cache.fetch()`·and·`cache.memo()`.\n·*\n·*·Keys·and·values·**must·not**·be·`null`·or·`undefined`.\n·*\n·*·All·properties·from·the·options·object·(with·the·exception·of·`max`,\n·*·`maxSize`,·`fetchMethod`,·`memoMethod`,·`dispose`·and·`disposeAfter`)·are\n·*·added·as·normal·public·members.·(The·listed·options·are·read-only·getters.)\n·*\n·*·Changing·any·of·these·will·alter·the·defaults·for·subsequent·method·calls.\n·*/\nexport·class·LRUCache<K·extends·{},·V·extends·{},·FC·=·unknown>·{\n··//·options·that·cannot·be·changed·without·disaster\n··readonly·#max:·LRUCache.Count\n··readonly·#maxSize:·LRUCache.Size\n··readonly·#dispose?:·LRUCache.Disposer<K,·V>\n··readonly·#onInsert?:·LRUCache.Inserter<K,·V>\n··readonly·#disposeAfter?:·LRUCache.Disposer<K,·V>\n··readonly·#fetchMethod?:·LRUCache.Fetcher<K,·V,·FC>\n··readonly·#memoMethod?:·LRUCache.Memoizer<K,·V,·FC>\n··readonly·#perf:·Perf\n\n··/**\n···*·{@link·LRUCache.OptionsBase.perf}\n···*/\n··get·perf()·{\n····return·this.#perf\n··}\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttl}\n···*/\n··ttl:·LRUCache.Milliseconds\n\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlResolution}\n···*/\n··ttlResolution:·LRUCache.Milliseconds\n··/**\n···*·{@link·LRUCache.OptionsBase.ttlAutopurge}\n···*/\n··ttlAutopurge:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnGet}\n···*/\n··updateAgeOnGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}\n···*/\n··updateAgeOnHas:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStale}\n···*/\n··allowStale:·boolean\n\n··/**\n···*·{@link·LRUCache.OptionsBase.noDisposeOnSet}\n···*/\n··noDisposeOnSet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noUpdateTTL}\n···*/\n··noUpdateTTL:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.maxEntrySize}\n···*/\n··maxEntrySize:·LRUCache.Size\n··/**\n···*·{@link·LRUCache.OptionsBase.sizeCalculation}\n···*/\n··sizeCalculation?:·LRUCache.SizeCalculator<K,·V>\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnFetchRejection}\n···*/\n··noDeleteOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.noDeleteOnStaleGet}\n···*/\n··noDeleteOnStaleGet:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort}\n···*/\n··allowStaleOnFetchAbort:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}\n···*/\n··allowStaleOnFetchRejection:·boolean\n··/**\n···*·{@link·LRUCache.OptionsBase.ignoreFetchAbort}\n···*/\n··ignoreFetchAbort:·boolean\n\n··//·computed·properties\n··#size:·LRUCache.Count\n··#calculatedSize:·LRUCache.Size\n··#keyMap:·Map<K,·Index>\n··#keyList:·(K·|·undefined)[]\n··#valList:·(V·|·BackgroundFetch<V>·|·undefined)[]\n··#next:·NumberArray\n··#prev:·NumberArray\n··#head:·Index\n··#tail:·Index\n··#free:·StackLike\n··#disposed?:·DisposeTask<K,·V>[]\n··#sizes?:·ZeroArray\n··#starts?:·ZeroArray\n··#ttls?:·ZeroArray\n··#autopurgeTimers?:·(undefined·|·ReturnType<typeof·setTimeout>)[]\n\n··#hasDispose:·boolean\n··#hasFetchMethod:·boolean\n··#hasDisposeAfter:·boolean\n··#hasOnInsert:·boolean\n\n··/**\n···*·Do·not·call·this·method·unless·you·need·to·inspect·the\n···*·inner·workings·of·the·cache.··If·anything·returned·by·this\n···*·object·is·modified·in·any·way,·strange·breakage·may·occur.\n···*\n···*·These·fields·are·private·for·a·reason!\n···*\n···*·@internal\n···*/\n··static·unsafeExposeInternals<\n····K·extends·{},\n····V·extends·{},\n····FC·extends·unknown·=·unknown,\n··>(c:·LRUCache<K,·V,·FC>)·{\n····return·{\n······//·properties\n······starts:·c.#starts,\n······ttls:·c.#ttls,\n······autopurgeTimers:·c.#autopurgeTimers,\n······sizes:·c.#sizes,\n······keyMap:·c.#keyMap·as·Map<K,·number>,\n······keyList:·c.#keyList,\n······valList:·c.#valList,\n······next:·c.#next,\n······prev:·c.#prev,\n······get·head()·{\n········return·c.#head\n······},\n······get·tail()·{\n········return·c.#tail\n······},\n······free:·c.#free,\n······//·methods\n······isBackgroundFetch:·(p:·any)·=>·c.#isBackgroundFetch(p),\n······backgroundFetch:·(\n········k:·K,\n········index:·number·|·undefined,\n········options:·LRUCache.FetchOptions<K,·V,·FC>,\n········context:·any,\n······):·BackgroundFetch<V>·=>\n········c.#backgroundFetch(\n··········k,\n··········index·as·Index·|·undefined,\n··········options,\n··········context,\n········),\n······moveToTail:·(index:·number):·void·=>·c.#moveToTail(index·as·Index),\n······indexes:·(options?:·{·allowStale:·boolean·})·=>·c.#indexes(options),\n······rindexes:·(options?:·{·allowStale:·boolean·})·=>\n········c.#rindexes(options),\n······isStale:·(index:·number·|·undefined)·=>·c.#isStale(index·as·Index),\n····}\n··}\n\n··//·Protected·read-only·members\n\n··/**\n···*·{@link·LRUCache.OptionsBase.max}·(read-only)\n···*/\n··get·max():·LRUCache.Count·{\n····return·this.#max\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.maxSize}·(read-only)\n···*/\n··get·maxSize():·LRUCache.Count·{\n····return·this.#maxSize\n··}\n··/**\n···*·The·total·computed·size·of·items·in·the·cache·(read-only)\n···*/\n··get·calculatedSize():·LRUCache.Size·{\n····return·this.#calculatedSize\n··}\n··/**\n···*·The·number·of·items·stored·in·the·cache·(read-only)\n···*/\n··get·size():·LRUCache.Count·{\n····return·this.#size\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·(read-only)\n···*/\n··get·fetchMethod():·LRUCache.Fetcher<K,·V,·FC>·|·undefined·{\n····return·this.#fetchMethod\n··}\n··get·memoMethod():·LRUCache.Memoizer<K,·V,·FC>·|·undefined·{\n····return·this.#memoMethod\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.dispose}·(read-only)\n···*/\n··get·dispose()·{\n····return·this.#dispose\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.onInsert}·(read-only)\n···*/\n··get·onInsert()·{\n····return·this.#onInsert\n··}\n··/**\n···*·{@link·LRUCache.OptionsBase.disposeAfter}·(read-only)\n···*/\n··get·disposeAfter()·{\n····return·this.#disposeAfter\n··}\n\n··constructor(options:·LRUCache.Options<K,·V,·FC>·|·LRUCache<K,·V,·FC>)·{\n····const·{\n······max·=·0,\n······ttl,\n······ttlResolution·=·1,\n······ttlAutopurge,\n······updateAgeOnGet,\n······updateAgeOnHas,\n······allowStale,\n······dispose,\n······onInsert,\n······disposeAfter,\n······noDisposeOnSet,\n······noUpdateTTL,\n······maxSize·=·0,\n······maxEntrySize·=·0,\n······sizeCalculation,\n······fetchMethod,\n······memoMethod,\n······noDeleteOnFetchRejection,\n······noDeleteOnStaleGet,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······perf,\n····}·=·options\n\n····if·(perf·!==·undefined)·{\n······if·(typeof·perf?.now·!==·'function')·{\n········throw·new·TypeError(\n··········'perf·option·must·have·a·now()·method·if·specified',\n········)\n······}\n····}\n\n····this.#perf·=·perf·??·defaultPerf\n\n····if·(max·!==·0·&&·!isPosInt(max))·{\n······throw·new·TypeError('max·option·must·be·a·nonnegative·integer')\n····}\n\n····const·UintArray·=·max·?·getUintArray(max)·:·Array\n····if·(!UintArray)·{\n······throw·new·Error('invalid·max·value:·'·+·max)\n····}\n\n····this.#max·=·max\n····this.#maxSize·=·maxSize\n····this.maxEntrySize·=·maxEntrySize·||·this.#maxSize\n····this.sizeCalculation·=·sizeCalculation\n····if·(this.sizeCalculation)·{\n······if·(!this.#maxSize·&&·!this.maxEntrySize)·{\n········throw·new·TypeError(\n··········'cannot·set·sizeCalculation·without·setting·maxSize·or·maxEntrySize',\n········)\n······}\n······if·(typeof·this.sizeCalculation·!==·'function')·{\n········throw·new·TypeError('sizeCalculation·set·to·non-function')\n······}\n····}\n\n····if·(memoMethod·!==·undefined·&&·typeof·memoMethod·!==·'function')·{\n······throw·new·TypeError('memoMethod·must·be·a·function·if·defined')\n····}\n····this.#memoMethod·=·memoMethod\n\n····if·(fetchMethod·!==·undefined·&&·typeof·fetchMethod·!==·'function')·{\n······throw·new·TypeError('fetchMethod·must·be·a·function·if·specified')\n····}\n····this.#fetchMethod·=·fetchMethod\n····this.#hasFetchMethod·=·!!fetchMethod\n\n····this.#keyMap·=·new·Map()\n····this.#keyList·=·new·Array(max).fill(undefined)\n····this.#valList·=·new·Array(max).fill(undefined)\n····this.#next·=·new·UintArray(max)\n····this.#prev·=·new·UintArray(max)\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free·=·Stack.create(max)\n····this.#size·=·0\n····this.#calculatedSize·=·0\n\n····if·(typeof·dispose·===·'function')·{\n······this.#dispose·=·dispose\n····}\n····if·(typeof·onInsert·===·'function')·{\n······this.#onInsert·=·onInsert\n····}\n····if·(typeof·disposeAfter·===·'function')·{\n······this.#disposeAfter·=·disposeAfter\n······this.#disposed·=·[]\n····}·else·{\n······this.#disposeAfter·=·undefined\n······this.#disposed·=·undefined\n····}\n····this.#hasDispose·=·!!this.#dispose\n····this.#hasOnInsert·=·!!this.#onInsert\n····this.#hasDisposeAfter·=·!!this.#disposeAfter\n\n····this.noDisposeOnSet·=·!!noDisposeOnSet\n····this.noUpdateTTL·=·!!noUpdateTTL\n····this.noDeleteOnFetchRejection·=·!!noDeleteOnFetchRejection\n····this.allowStaleOnFetchRejection·=·!!allowStaleOnFetchRejection\n····this.allowStaleOnFetchAbort·=·!!allowStaleOnFetchAbort\n····this.ignoreFetchAbort·=·!!ignoreFetchAbort\n\n····//·NB:·maxEntrySize·is·set·to·maxSize·if·it's·set\n····if·(this.maxEntrySize·!==·0)·{\n······if·(this.#maxSize·!==·0)·{\n········if·(!isPosInt(this.#maxSize))·{\n··········throw·new·TypeError(\n············'maxSize·must·be·a·positive·integer·if·specified',\n··········)\n········}\n······}\n······if·(!isPosInt(this.maxEntrySize))·{\n········throw·new·TypeError(\n··········'maxEntrySize·must·be·a·positive·integer·if·specified',\n········)\n······}\n······this.#initializeSizeTracking()\n····}\n\n····this.allowStale·=·!!allowStale\n····this.noDeleteOnStaleGet·=·!!noDeleteOnStaleGet\n····this.updateAgeOnGet·=·!!updateAgeOnGet\n····this.updateAgeOnHas·=·!!updateAgeOnHas\n····this.ttlResolution·=\n······isPosInt(ttlResolution)·||·ttlResolution·===·0·?·ttlResolution·:·1\n····this.ttlAutopurge·=·!!ttlAutopurge\n····this.ttl·=·ttl·||·0\n····if·(this.ttl)·{\n······if·(!isPosInt(this.ttl))·{\n········throw·new·TypeError('ttl·must·be·a·positive·integer·if·specified')\n······}\n······this.#initializeTTLTracking()\n····}\n\n····//·do·not·allow·completely·unbounded·caches\n····if·(this.#max·===·0·&&·this.ttl·===·0·&&·this.#maxSize·===·0)·{\n······throw·new·TypeError(\n········'At·least·one·of·max,·maxSize,·or·ttl·is·required',\n······)\n····}\n····if·(!this.ttlAutopurge·&&·!this.#max·&&·!this.#maxSize)·{\n······const·code·=·'LRU_CACHE_UNBOUNDED'\n······if·(shouldWarn(code))·{\n········warned.add(code)\n········const·msg·=\n··········'TTL·caching·without·ttlAutopurge,·max,·or·maxSize·can·'·+\n··········'result·in·unbounded·memory·consumption.'\n········emitWarning(msg,·'UnboundedCacheWarning',·code,·LRUCache)\n······}\n····}\n··}\n\n··/**\n···*·Return·the·number·of·ms·left·in·the·item's·TTL.·If·item·is·not·in·cache,\n···*·returns·`0`.·Returns·`Infinity`·if·item·is·in·cache·without·a·defined·TTL.\n···*/\n··getRemainingTTL(key:·K)·{\n····return·this.#keyMap.has(key)·?·Infinity·:·0\n··}\n\n··#initializeTTLTracking()·{\n····const·ttls·=·new·ZeroArray(this.#max)\n····const·starts·=·new·ZeroArray(this.#max)\n····this.#ttls·=·ttls\n····this.#starts·=·starts\n····const·purgeTimers·=\n······this.ttlAutopurge·?\n········new·Array<undefined·|·ReturnType<typeof·setTimeout>>(this.#max)\n······:·undefined\n····this.#autopurgeTimers·=·purgeTimers\n\n····this.#setItemTTL·=·(index,·ttl,·start·=·this.#perf.now())·=>·{\n······starts[index]·=·ttl·!==·0·?·start·:·0\n······ttls[index]·=·ttl\n······//·clear·out·the·purge·timer·if·we're·setting·TTL·to·0,·and\n······//·previously·had·a·ttl·purge·timer·running,·so·it·doesn't\n······//·fire·unnecessarily.\n······if·(purgeTimers?.[index])·{\n········clearTimeout(purgeTimers[index])\n········purgeTimers[index]·=·undefined\n······}\n······if·(ttl·!==·0·&&·purgeTimers)·{\n········const·t·=·setTimeout(()·=>·{\n··········if·(this.#isStale(index))·{\n············this.#delete(this.#keyList[index]·as·K,·'expire')\n··········}\n········},·ttl·+·1)\n········//·unref()·not·supported·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n········purgeTimers[index]·=·t\n······}\n····}\n\n····this.#updateItemAge·=·index·=>·{\n······starts[index]·=·ttls[index]·!==·0·?·this.#perf.now()·:·0\n····}\n\n····this.#statusTTL·=·(status,·index)·=>·{\n······if·(ttls[index])·{\n········const·ttl·=·ttls[index]\n········const·start·=·starts[index]\n········/*·c8·ignore·next·*/\n········if·(!ttl·||·!start)·return\n········status.ttl·=·ttl\n········status.start·=·start\n········status.now·=·cachedNow·||·getNow()\n········const·age·=·status.now·-·start\n········status.remainingTTL·=·ttl·-·age\n······}\n····}\n\n····//·debounce·calls·to·perf.now()·to·1s·so·we're·not·hitting\n····//·that·costly·call·repeatedly.\n····let·cachedNow·=·0\n····const·getNow·=·()·=>·{\n······const·n·=·this.#perf.now()\n······if·(this.ttlResolution·>·0)·{\n········cachedNow·=·n\n········const·t·=·setTimeout(()·=>·(cachedNow·=·0),·this.ttlResolution)\n········//·not·available·on·all·platforms\n········/*·c8·ignore·start·*/\n········if·(t.unref)·{\n··········t.unref()\n········}\n········/*·c8·ignore·stop·*/\n······}\n······return·n\n····}\n\n····this.getRemainingTTL·=·key·=>·{\n······const·index·=·this.#keyMap.get(key)\n······if·(index·===·undefined)·{\n········return·0\n······}\n······const·ttl·=·ttls[index]\n······const·start·=·starts[index]\n······if·(!ttl·||·!start)·{\n········return·Infinity\n······}\n······const·age·=·(cachedNow·||·getNow())·-·start\n······return·ttl·-·age\n····}\n\n····this.#isStale·=·index·=>·{\n······const·s·=·starts[index]\n······const·t·=·ttls[index]\n······return·!!t·&&·!!s·&&·(cachedNow·||·getNow())·-·s·>·t\n····}\n··}\n\n··//·conditionally·set·private·methods·related·to·TTL\n··#updateItemAge:·(index:·Index)·=>·void·=·()·=>·{}\n··#statusTTL:·(status:·LRUCache.Status<V>,·index:·Index)·=>·void·=·()·=>·{}\n··#setItemTTL:·(\n····index:·Index,\n····ttl:·LRUCache.Milliseconds,\n····start?:·LRUCache.Milliseconds,\n····//·ignore·because·we·never·call·this·if·we're·not·already·in·TTL·mode\n····/*·c8·ignore·start·*/\n··)·=>·void·=·()·=>·{}\n··/*·c8·ignore·stop·*/\n\n··#isStale:·(index:·Index)·=>·boolean·=·()·=>·false\n\n··#initializeSizeTracking()·{\n····const·sizes·=·new·ZeroArray(this.#max)\n····this.#calculatedSize·=·0\n····this.#sizes·=·sizes\n····this.#removeItemSize·=·index·=>·{\n······this.#calculatedSize·-=·sizes[index]·as·number\n······sizes[index]·=·0\n····}\n····this.#requireSize·=·(k,·v,·size,·sizeCalculation)·=>·{\n······//·provisionally·accept·background·fetches.\n······//·actual·value·size·will·be·checked·when·they·return.\n······if·(this.#isBackgroundFetch(v))·{\n········return·0\n······}\n······if·(!isPosInt(size))·{\n········if·(sizeCalculation)·{\n··········if·(typeof·sizeCalculation·!==·'function')·{\n············throw·new·TypeError('sizeCalculation·must·be·a·function')\n··········}\n··········size·=·sizeCalculation(v,·k)\n··········if·(!isPosInt(size))·{\n············throw·new·TypeError(\n··············'sizeCalculation·return·invalid·(expect·positive·integer)',\n············)\n··········}\n········}·else·{\n··········throw·new·TypeError(\n············'invalid·size·value·(must·be·positive·integer).·'·+\n··············'When·maxSize·or·maxEntrySize·is·used,·sizeCalculation·'·+\n··············'or·size·must·be·set.',\n··········)\n········}\n······}\n······return·size\n····}\n····this.#addItemSize·=·(\n······index:·Index,\n······size:·LRUCache.Size,\n······status?:·LRUCache.Status<V>,\n····)·=>·{\n······sizes[index]·=·size\n······if·(this.#maxSize)·{\n········const·maxSize·=·this.#maxSize·-·(sizes[index]·as·number)\n········while·(this.#calculatedSize·>·maxSize)·{\n··········this.#evict(true)\n········}\n······}\n······this.#calculatedSize·+=·sizes[index]·as·number\n······if·(status)·{\n········status.entrySize·=·size\n········status.totalCalculatedSize·=·this.#calculatedSize\n······}\n····}\n··}\n\n··#removeItemSize:·(index:·Index)·=>·void·=·_i·=>·{}\n··#addItemSize:·(\n····index:·Index,\n····size:·LRUCache.Size,\n····status?:·LRUCache.Status<V>,\n··)·=>·void·=·(_i,·_s,·_st)·=>·{}\n··#requireSize:·(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·LRUCache.Size·=·(\n····_k:·K,\n····_v:·V·|·BackgroundFetch<V>,\n····size?:·LRUCache.Size,\n····sizeCalculation?:·LRUCache.SizeCalculator<K,·V>,\n··)·=>·{\n····if·(size·||·sizeCalculation)·{\n······throw·new·TypeError(\n········'cannot·set·size·without·setting·maxSize·or·maxEntrySize·on·cache',\n······)\n····}\n····return·0\n··};\n\n··*#indexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#tail;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#head)·{\n··········break\n········}·else·{\n··········i·=·this.#prev[i]·as·Index\n········}\n······}\n····}\n··}\n\n··*#rindexes({·allowStale·=·this.allowStale·}·=·{})·{\n····if·(this.#size)·{\n······for·(let·i·=·this.#head;·true;·)·{\n········if·(!this.#isValidIndex(i))·{\n··········break\n········}\n········if·(allowStale·||·!this.#isStale(i))·{\n··········yield·i\n········}\n········if·(i·===·this.#tail)·{\n··········break\n········}·else·{\n··········i·=·this.#next[i]·as·Index\n········}\n······}\n····}\n··}\n\n··#isValidIndex(index:·Index)·{\n····return·(\n······index·!==·undefined·&&\n······this.#keyMap.get(this.#keyList[index]·as·K)·===·index\n····)\n··}\n\n··/**\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*entries()·{\n····for·(const·i·of·this.#indexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]·as·[K,·V]\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.entries}\n···*\n···*·Return·a·generator·yielding·`[key,·value]`·pairs,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rentries()·{\n····for·(const·i·of·this.#rindexes())·{\n······if·(\n········this.#valList[i]·!==·undefined·&&\n········this.#keyList[i]·!==·undefined·&&\n········!this.#isBackgroundFetch(this.#valList[i])\n······)·{\n········yield·[this.#keyList[i],·this.#valList[i]]\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*keys()·{\n····for·(const·i·of·this.#indexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.keys}\n···*\n···*·Return·a·generator·yielding·the·keys·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rkeys()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·k·=·this.#keyList[i]\n······if·(k·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·k\n······}\n····}\n··}\n\n··/**\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·most·recently·used·to·least·recently·used.\n···*/\n··*values()·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]·as·V\n······}\n····}\n··}\n\n··/**\n···*·Inverse·order·version·of·{@link·LRUCache.values}\n···*\n···*·Return·a·generator·yielding·the·values·in·the·cache,\n···*·in·order·from·least·recently·used·to·most·recently·used.\n···*/\n··*rvalues()·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······if·(v·!==·undefined·&&·!this.#isBackgroundFetch(this.#valList[i]))·{\n········yield·this.#valList[i]\n······}\n····}\n··}\n\n··/**\n···*·Iterating·over·the·cache·itself·yields·the·same·results·as\n···*·{@link·LRUCache.entries}\n···*/\n··[Symbol.iterator]()·{\n····return·this.entries()\n··}\n\n··/**\n···*·A·String·value·that·is·used·in·the·creation·of·the·default·string\n···*·description·of·an·object.·Called·by·the·built-in·method\n···*·`Object.prototype.toString`.\n···*/\n··[Symbol.toStringTag]·=·'LRUCache'\n\n··/**\n···*·Find·a·value·for·which·the·supplied·fn·method·returns·a·truthy·value,\n···*·similar·to·`Array.find()`.·fn·is·called·as·`fn(value,·key,·cache)`.\n···*/\n··find(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·boolean,\n····getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{},\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······if·(fn(value,·this.#keyList[i]·as·K,·this))·{\n········return·this.get(this.#keyList[i]·as·K,·getOptions)\n······}\n····}\n··}\n\n··/**\n···*·Call·the·supplied·function·on·each·item·in·the·cache,·in·order·from·most\n···*·recently·used·to·least·recently·used.\n···*\n···*·`fn`·is·called·as·`fn(value,·key,·cache)`.\n···*\n···*·If·`thisp`·is·provided,·function·will·be·called·in·the·`this`-context·of\n···*·the·provided·object,·or·the·cache·if·no·`thisp`·object·is·provided.\n···*\n···*·Does·not·update·age·or·recenty·of·use,·or·iterate·over·stale·values.\n···*/\n··forEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#indexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·The·same·as·{@link·LRUCache.forEach}·but·items·are·iterated·over·in\n···*·reverse·order.··(ie,·less·recently·used·items·are·iterated·over·first.)\n···*/\n··rforEach(\n····fn:·(v:·V,·k:·K,·self:·LRUCache<K,·V,·FC>)·=>·any,\n····thisp:·any·=·this,\n··)·{\n····for·(const·i·of·this.#rindexes())·{\n······const·v·=·this.#valList[i]\n······const·value·=·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined)·continue\n······fn.call(thisp,·value,·this.#keyList[i]·as·K,·this)\n····}\n··}\n\n··/**\n···*·Delete·any·stale·entries.·Returns·true·if·anything·was·removed,\n···*·false·otherwise.\n···*/\n··purgeStale()·{\n····let·deleted·=·false\n····for·(const·i·of·this.#rindexes({·allowStale:·true·}))·{\n······if·(this.#isStale(i))·{\n········this.#delete(this.#keyList[i]·as·K,·'expire')\n········deleted·=·true\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Get·the·extended·info·about·a·given·entry,·to·get·its·value,·size,·and\n···*·TTL·info·simultaneously.·Returns·`undefined`·if·the·key·is·not·present.\n···*\n···*·Unlike·{@link·LRUCache#dump},·which·is·designed·to·be·portable·and·survive\n···*·serialization,·the·`start`·value·is·always·the·current·timestamp,·and·the\n···*·`ttl`·is·a·calculated·remaining·time·to·live·(negative·if·expired).\n···*\n···*·Always·returns·stale·values,·if·their·info·is·found·in·the·cache,·so·be\n···*·sure·to·check·for·expirations·(ie,·a·negative·{@link·LRUCache.Entry#ttl})\n···*·if·relevant.\n···*/\n··info(key:·K):·LRUCache.Entry<V>·|·undefined·{\n····const·i·=·this.#keyMap.get(key)\n····if·(i·===·undefined)·return·undefined\n····const·v·=·this.#valList[i]\n····/*·c8·ignore·start·-·this·isn't·tested·for·the·info·function,\n·····*·but·it's·the·same·logic·as·found·in·other·places.·*/\n····const·value:·V·|·undefined·=\n······this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n····if·(value·===·undefined)·return·undefined\n····/*·c8·ignore·end·*/\n····const·entry:·LRUCache.Entry<V>·=·{·value·}\n····if·(this.#ttls·&&·this.#starts)·{\n······const·ttl·=·this.#ttls[i]\n······const·start·=·this.#starts[i]\n······if·(ttl·&&·start)·{\n········const·remain·=·ttl·-·(this.#perf.now()·-·start)\n········entry.ttl·=·remain\n········entry.start·=·Date.now()\n······}\n····}\n····if·(this.#sizes)·{\n······entry.size·=·this.#sizes[i]\n····}\n····return·entry\n··}\n\n··/**\n···*·Return·an·array·of·[key,·{@link·LRUCache.Entry}]·tuples·which·can·be\n···*·passed·to·{@link·LRUCache#load}.\n···*\n···*·The·`start`·fields·are·calculated·relative·to·a·portable·`Date.now()`\n···*·timestamp,·even·if·`performance.now()`·is·available.\n···*\n···*·Stale·entries·are·always·included·in·the·`dump`,·even·if\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·false.\n···*\n···*·Note:·this·returns·an·actual·array,·not·a·generator,·so·it·can·be·more\n···*·easily·passed·around.\n···*/\n··dump()·{\n····const·arr:·[K,·LRUCache.Entry<V>][]·=·[]\n····for·(const·i·of·this.#indexes({·allowStale:·true·}))·{\n······const·key·=·this.#keyList[i]\n······const·v·=·this.#valList[i]\n······const·value:·V·|·undefined·=\n········this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n······if·(value·===·undefined·||·key·===·undefined)·continue\n······const·entry:·LRUCache.Entry<V>·=·{·value·}\n······if·(this.#ttls·&&·this.#starts)·{\n········entry.ttl·=·this.#ttls[i]\n········//·always·dump·the·start·relative·to·a·portable·timestamp\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·this.#perf.now()·-·(this.#starts[i]·as·number)\n········entry.start·=·Math.floor(Date.now()·-·age)\n······}\n······if·(this.#sizes)·{\n········entry.size·=·this.#sizes[i]\n······}\n······arr.unshift([key,·entry])\n····}\n····return·arr\n··}\n\n··/**\n···*·Reset·the·cache·and·load·in·the·items·in·entries·in·the·order·listed.\n···*\n···*·The·shape·of·the·resulting·cache·may·be·different·if·the·same·options·are\n···*·not·used·in·both·caches.\n···*\n···*·The·`start`·fields·are·assumed·to·be·calculated·relative·to·a·portable\n···*·`Date.now()`·timestamp,·even·if·`performance.now()`·is·available.\n···*/\n··load(arr:·[K,·LRUCache.Entry<V>][])·{\n····this.clear()\n····for·(const·[key,·entry]·of·arr)·{\n······if·(entry.start)·{\n········//·entry.start·is·a·portable·timestamp,·but·we·may·be·using\n········//·node's·performance.now(),·so·calculate·the·offset,·so·that\n········//·we·get·the·intended·remaining·TTL,·no·matter·how·long·it's\n········//·been·on·ice.\n········//\n········//·it's·ok·for·this·to·be·a·bit·slow,·it's·a·rare·operation.\n········const·age·=·Date.now()·-·entry.start\n········entry.start·=·this.#perf.now()·-·age\n······}\n······this.set(key,·entry.value,·entry)\n····}\n··}\n\n··/**\n···*·Add·a·value·to·the·cache.\n···*\n···*·Note:·if·`undefined`·is·specified·as·a·value,·this·is·an·alias·for\n···*·{@link·LRUCache#delete}\n···*\n···*·Fields·on·the·{@link·LRUCache.SetOptions}·options·param·will·override\n···*·their·corresponding·values·in·the·constructor·options·for·the·scope\n···*·of·this·single·`set()`·operation.\n···*\n···*·If·`start`·is·provided,·then·that·will·set·the·effective·start\n···*·time·for·the·TTL·calculation.·Note·that·this·must·be·a·previous\n···*·value·of·`performance.now()`·if·supported,·or·a·previous·value·of\n···*·`Date.now()`·if·not.\n···*\n···*·Options·object·may·also·include·`size`,·which·will·prevent\n···*·calling·the·`sizeCalculation`·function·and·just·use·the·specified\n···*·number·if·it·is·a·positive·integer,·and·`noDisposeOnSet`·which\n···*·will·prevent·calling·a·`dispose`·function·in·the·case·of\n···*·overwrites.\n···*\n···*·If·the·`size`·(or·return·value·of·`sizeCalculation`)·for·a·given\n···*·entry·is·greater·than·`maxEntrySize`,·then·the·item·will·not·be\n···*·added·to·the·cache.\n···*\n···*·Will·update·the·recency·of·the·entry.\n···*\n···*·If·the·value·is·`undefined`,·then·this·is·an·alias·for\n···*·`cache.delete(key)`.·`undefined`·is·never·stored·in·the·cache.\n···*/\n··set(\n····k:·K,\n····v:·V·|·BackgroundFetch<V>·|·undefined,\n····setOptions:·LRUCache.SetOptions<K,·V,·FC>·=·{},\n··)·{\n····if·(v·===·undefined)·{\n······this.delete(k)\n······return·this\n····}\n····const·{\n······ttl·=·this.ttl,\n······start,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······sizeCalculation·=·this.sizeCalculation,\n······status,\n····}·=·setOptions\n····let·{·noUpdateTTL·=·this.noUpdateTTL·}·=·setOptions\n\n····const·size·=·this.#requireSize(\n······k,\n······v,\n······setOptions.size·||·0,\n······sizeCalculation,\n····)\n····//·if·the·item·doesn't·fit,·don't·do·anything\n····//·NB:·maxEntrySize·set·to·maxSize·by·default\n····if·(this.maxEntrySize·&&·size·>·this.maxEntrySize)·{\n······if·(status)·{\n········status.set·=·'miss'\n········status.maxEntrySizeExceeded·=·true\n······}\n······//·have·to·delete,·in·case·something·is·there·already.\n······this.#delete(k,·'set')\n······return·this\n····}\n····let·index·=·this.#size·===·0·?·undefined·:·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······//·addition\n······index·=·(\n········this.#size·===·0·?·this.#tail\n········:·this.#free.length·!==·0·?·this.#free.pop()\n········:·this.#size·===·this.#max·?·this.#evict(false)\n········:·this.#size)·as·Index\n······this.#keyList[index]·=·k\n······this.#valList[index]·=·v\n······this.#keyMap.set(k,·index)\n······this.#next[this.#tail]·=·index\n······this.#prev[index]·=·this.#tail\n······this.#tail·=·index\n······this.#size++\n······this.#addItemSize(index,·size,·status)\n······if·(status)·status.set·=·'add'\n······noUpdateTTL·=·false\n······if·(this.#hasOnInsert)·{\n········this.#onInsert?.(v·as·V,·k,·'add')\n······}\n····}·else·{\n······//·update\n······this.#moveToTail(index)\n······const·oldVal·=·this.#valList[index]·as·V·|·BackgroundFetch<V>\n······if·(v·!==·oldVal)·{\n········if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(oldVal))·{\n··········oldVal.__abortController.abort(new·Error('replaced'))\n··········const·{·__staleWhileFetching:·s·}·=·oldVal\n··········if·(s·!==·undefined·&&·!noDisposeOnSet)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(s·as·V,·k,·'set')\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([s·as·V,·k,·'set'])\n············}\n··········}\n········}·else·if·(!noDisposeOnSet)·{\n··········if·(this.#hasDispose)·{\n············this.#dispose?.(oldVal·as·V,·k,·'set')\n··········}\n··········if·(this.#hasDisposeAfter)·{\n············this.#disposed?.push([oldVal·as·V,·k,·'set'])\n··········}\n········}\n········this.#removeItemSize(index)\n········this.#addItemSize(index,·size,·status)\n········this.#valList[index]·=·v\n········if·(status)·{\n··········status.set·=·'replace'\n··········const·oldValue·=\n············oldVal·&&·this.#isBackgroundFetch(oldVal)·?\n··············oldVal.__staleWhileFetching\n············:·oldVal\n··········if·(oldValue·!==·undefined)·status.oldValue·=·oldValue\n········}\n······}·else·if·(status)·{\n········status.set·=·'update'\n······}\n\n······if·(this.#hasOnInsert)·{\n········this.onInsert?.(v·as·V,·k,·v·===·oldVal·?·'update'·:·'replace')\n······}\n····}\n····if·(ttl·!==·0·&&·!this.#ttls)·{\n······this.#initializeTTLTracking()\n····}\n····if·(this.#ttls)·{\n······if·(!noUpdateTTL)·{\n········this.#setItemTTL(index,·ttl,·start)\n······}\n······if·(status)·this.#statusTTL(status,·index)\n····}\n····if·(!noDisposeOnSet·&&·this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·this\n··}\n\n··/**\n···*·Evict·the·least·recently·used·item,·returning·its·value·or\n···*·`undefined`·if·cache·is·empty.\n···*/\n··pop():·V·|·undefined·{\n····try·{\n······while·(this.#size)·{\n········const·val·=·this.#valList[this.#head]\n········this.#evict(true)\n········if·(this.#isBackgroundFetch(val))·{\n··········if·(val.__staleWhileFetching)·{\n············return·val.__staleWhileFetching\n··········}\n········}·else·if·(val·!==·undefined)·{\n··········return·val\n········}\n······}\n····}·finally·{\n······if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n········const·dt·=·this.#disposed\n········let·task:·DisposeTask<K,·V>·|·undefined\n········while·((task·=·dt?.shift()))·{\n··········this.#disposeAfter?.(...task)\n········}\n······}\n····}\n··}\n\n··#evict(free:·boolean)·{\n····const·head·=·this.#head\n····const·k·=·this.#keyList[head]·as·K\n····const·v·=·this.#valList[head]·as·V\n····if·(this.#hasFetchMethod·&&·this.#isBackgroundFetch(v))·{\n······v.__abortController.abort(new·Error('evicted'))\n····}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n······if·(this.#hasDispose)·{\n········this.#dispose?.(v,·k,·'evict')\n······}\n······if·(this.#hasDisposeAfter)·{\n········this.#disposed?.push([v,·k,·'evict'])\n······}\n····}\n····this.#removeItemSize(head)\n····if·(this.#autopurgeTimers?.[head])·{\n······clearTimeout(this.#autopurgeTimers[head])\n······this.#autopurgeTimers[head]·=·undefined\n····}\n····//·if·we·aren't·about·to·use·the·index,·then·null·these·out\n····if·(free)·{\n······this.#keyList[head]·=·undefined\n······this.#valList[head]·=·undefined\n······this.#free.push(head)\n····}\n····if·(this.#size·===·1)·{\n······this.#head·=·this.#tail·=·0·as·Index\n······this.#free.length·=·0\n····}·else·{\n······this.#head·=·this.#next[head]·as·Index\n····}\n····this.#keyMap.delete(k)\n····this.#size--\n····return·head\n··}\n\n··/**\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of·use.\n···*·Will·return·false·if·the·item·is·stale,·even·though·it·is·technically\n···*·in·the·cache.\n···*\n···*·Check·if·a·key·is·in·the·cache,·without·updating·the·recency·of\n···*·use.·Age·is·updated·if·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set\n···*·to·`true`·in·either·the·options·or·the·constructor.\n···*\n···*·Will·return·`false`·if·the·item·is·stale,·even·though·it·is·technically·in\n···*·the·cache.·The·difference·can·be·determined·(if·it·matters)·by·using·a\n···*·`status`·argument,·and·inspecting·the·`has`·field.\n···*\n···*·Will·not·update·item·age·unless\n···*·{@link·LRUCache.OptionsBase.updateAgeOnHas}·is·set.\n···*/\n··has(k:·K,·hasOptions:·LRUCache.HasOptions<K,·V,·FC>·=·{})·{\n····const·{·updateAgeOnHas·=·this.updateAgeOnHas,·status·}·=·hasOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·v·=·this.#valList[index]\n······if·(\n········this.#isBackgroundFetch(v)·&&\n········v.__staleWhileFetching·===·undefined\n······)·{\n········return·false\n······}\n······if·(!this.#isStale(index))·{\n········if·(updateAgeOnHas)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·{\n··········status.has·=·'hit'\n··········this.#statusTTL(status,·index)\n········}\n········return·true\n······}·else·if·(status)·{\n········status.has·=·'stale'\n········this.#statusTTL(status,·index)\n······}\n····}·else·if·(status)·{\n······status.has·=·'miss'\n····}\n····return·false\n··}\n\n··/**\n···*·Like·{@link·LRUCache#get}·but·doesn't·update·recency·or·delete·stale\n···*·items.\n···*\n···*·Returns·`undefined`·if·the·item·is·stale,·unless\n···*·{@link·LRUCache.OptionsBase.allowStale}·is·set.\n···*/\n··peek(k:·K,·peekOptions:·LRUCache.PeekOptions<K,·V,·FC>·=·{})·{\n····const·{·allowStale·=·this.allowStale·}·=·peekOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined·||·(!allowStale·&&·this.#isStale(index)))·{\n······return\n····}\n····const·v·=·this.#valList[index]\n····//·either·stale·and·allowed,·or·forcing·a·refresh·of·non-stale·value\n····return·this.#isBackgroundFetch(v)·?·v.__staleWhileFetching·:·v\n··}\n\n··#backgroundFetch(\n····k:·K,\n····index:·Index·|·undefined,\n····options:·LRUCache.FetchOptions<K,·V,·FC>,\n····context:·any,\n··):·BackgroundFetch<V>·{\n····const·v·=·index·===·undefined·?·undefined·:·this.#valList[index]\n····if·(this.#isBackgroundFetch(v))·{\n······return·v\n····}\n\n····const·ac·=·new·AC()\n····const·{·signal·}·=·options\n····//·when/if·our·AC·signals,·then·stop·listening·to·theirs.\n····signal?.addEventListener('abort',·()·=>·ac.abort(signal.reason),·{\n······signal:·ac.signal,\n····})\n\n····const·fetchOpts·=·{\n······signal:·ac.signal,\n······options,\n······context,\n····}\n\n····const·cb·=·(v:·V·|·undefined,·updateCache·=·false):·V·|·undefined·=>·{\n······const·{·aborted·}·=·ac.signal\n······const·ignoreAbort·=·options.ignoreFetchAbort·&&·v·!==·undefined\n······const·proceed·=·options.ignoreFetchAbort·||\n········!!(options.allowStaleOnFetchAbort·&&·v·!==·undefined)\n······if·(options.status)·{\n········if·(aborted·&&·!updateCache)·{\n··········options.status.fetchAborted·=·true\n··········options.status.fetchErr[·...·truncated·by·diffoscope;·len:·2046,·SHA:·bc26851e544864912e306c8a65e2ad2d112546bf99737e3236751c8c73b882ef·...·]·bf.__staleWhileFetching·===·undefined\n········if·(del)·{\n··········this.#delete(k,·'fetch')\n········}·else·if·(!allowStaleAborted)·{\n··········//·still·replace·the·*promise*·with·the·stale·value,\n··········//·since·we·are·done·with·the·promise·at·this·point.\n··········//·leave·it·untouched·if·we're·still·waiting·for·an\n··········//·aborted·background·fetch·that·hasn't·yet·returned.\n··········this.#valList[index·as·Index]·=·bf.__staleWhileFetching\n········}\n······}\n······if·(allowStale)·{\n········if·(options.status·&&·bf.__staleWhileFetching·!==·undefined)·{\n··········options.status.returnedStale·=·true\n········}\n········return·bf.__staleWhileFetching\n······}·else·if·(bf.__returned·===·bf)·{\n········throw·er\n······}\n····}\n\n····const·pcall·=·(\n······res:·(v:·V·|·undefined)·=>·void,\n······rej:·(e:·any)·=>·void,\n····)·=>·{\n······const·fmp·=·this.#fetchMethod?.(k,·v,·fetchOpts)\n······if·(fmp·&&·fmp·instanceof·Promise)·{\n········fmp.then(v·=>·res(v·===·undefined·?·undefined·:·v),·rej)\n······}\n······//·ignored,·we·go·until·we·finish,·regardless.\n······//·defer·check·until·we·are·actually·aborting,\n······//·so·fetchMethod·can·override.\n······ac.signal.addEventListener('abort',·()·=>·{\n········if·(!options.ignoreFetchAbort·||·options.allowStaleOnFetchAbort)·{\n··········res(undefined)\n··········//·when·it·eventually·resolves,·update·the·cache.\n··········if·(options.allowStaleOnFetchAbort)·{\n············res·=·v·=>·cb(v,·true)\n··········}\n········}\n······})\n····}\n\n····if·(options.status)·options.status.fetchDispatched·=·true\n····const·p·=·new·Promise(pcall).then(cb,·eb)\n····const·bf:·BackgroundFetch<V>·=·Object.assign(p,·{\n······__abortController:·ac,\n······__staleWhileFetching:·v,\n······__returned:·undefined,\n····})\n\n····if·(index·===·undefined)·{\n······//·internal,·don't·expose·status.\n······this.set(k,·bf,·{·...fetchOpts.options,·status:·undefined·})\n······index·=·this.#keyMap.get(k)\n····}·else·{\n······this.#valList[index]·=·bf\n····}\n····return·bf\n··}\n\n··#isBackgroundFetch(p:·any):·p·is·BackgroundFetch<V>·{\n····if·(!this.#hasFetchMethod)·return·false\n····const·b·=·p·as·BackgroundFetch<V>\n····return·(\n······!!b·&&\n······b·instanceof·Promise·&&\n······b.hasOwnProperty('__staleWhileFetching')·&&\n······b.__abortController·instanceof·AC\n····)\n··}\n\n··/**\n···*·Make·an·asynchronous·cached·fetch·using·the\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·function.\n···*\n···*·If·the·value·is·in·the·cache·and·not·stale,·then·the·returned\n···*·Promise·resolves·to·the·value.\n···*\n···*·If·not·in·the·cache,·or·beyond·its·TTL·staleness,·then\n···*·`fetchMethod(key,·staleValue,·{·options,·signal,·context·})`·is\n···*·called,·and·the·value·returned·will·be·added·to·the·cache·once\n···*·resolved.\n···*\n···*·If·called·with·`allowStale`,·and·an·asynchronous·fetch·is\n···*·currently·in·progress·to·reload·a·stale·value,·then·the·former\n···*·stale·value·will·be·returned.\n···*\n···*·If·called·with·`forceRefresh`,·then·the·cached·item·will·be\n···*·re-fetched,·even·if·it·is·not·stale.·However,·if·`allowStale`·is·also\n···*·set,·then·the·old·value·will·still·be·returned.·This·is·useful\n···*·in·cases·where·you·want·to·force·a·reload·of·a·cached·value.·If\n···*·a·background·fetch·is·already·in·progress,·then·`forceRefresh`\n···*·has·no·effect.\n···*\n···*·If·multiple·fetches·for·the·same·key·are·issued,·then·they·will·all·be\n···*·coalesced·into·a·single·call·to·fetchMethod.\n···*\n···*·Note·that·this·means·that·handling·options·such·as\n···*·{@link·LRUCache.OptionsBase.allowStaleOnFetchAbort},\n···*·{@link·LRUCache.FetchOptions.signal},\n···*·and·{@link·LRUCache.OptionsBase.allowStaleOnFetchRejection}·will·be\n···*·determined·by·the·FIRST·fetch()·call·for·a·given·key.\n···*\n···*·This·is·a·known·(fixable)·shortcoming·which·will·be·addresed·on·when\n···*·someone·complains·about·it,·as·the·fix·would·involve·added·complexity·and\n···*·may·not·be·worth·the·costs·for·this·edge·case.\n···*\n···*·If·{@link·LRUCache.OptionsBase.fetchMethod}·is·not·specified,·then·this·is\n···*·effectively·an·alias·for·`Promise.resolve(cache.get(key))`.\n···*\n···*·When·the·fetch·method·resolves·to·a·value,·if·the·fetch·has·not\n···*·been·aborted·due·to·deletion,·eviction,·or·being·overwritten,\n···*·then·it·is·added·to·the·cache·using·the·options·provided.\n···*\n···*·If·the·key·is·evicted·or·deleted·before·the·`fetchMethod`\n···*·resolves,·then·the·AbortSignal·passed·to·the·`fetchMethod`·will\n···*·receive·an·`abort`·event,·and·the·promise·returned·by·`fetch()`\n···*·will·reject·with·the·reason·for·the·abort.\n···*\n···*·If·a·`signal`·is·passed·to·the·`fetch()`·call,·then·aborting·the\n···*·signal·will·abort·the·fetch·and·cause·the·`fetch()`·promise·to\n···*·reject·with·the·reason·provided.\n···*\n···*·**Setting·`context`**\n···*\n···*·If·an·`FC`·type·is·set·to·a·type·other·than·`unknown`,·`void`,·or\n···*·`undefined`·in·the·{@link·LRUCache}·constructor,·then·all\n···*·calls·to·`cache.fetch()`·_must_·provide·a·`context`·option.·If\n···*·set·to·`undefined`·or·`void`,·then·calls·to·fetch·_must·not_\n···*·provide·a·`context`·option.\n···*\n···*·The·`context`·param·allows·you·to·provide·arbitrary·data·that\n···*·might·be·relevant·in·the·course·of·fetching·the·data.·It·is·only\n···*·relevant·for·the·course·of·a·single·`fetch()`·operation,·and\n···*·discarded·afterwards.\n···*\n···*·**Note:·`fetch()`·calls·are·inflight-unique**\n···*\n···*·If·you·call·`fetch()`·multiple·times·with·the·same·key·value,\n···*·then·every·call·after·the·first·will·resolve·on·the·same\n···*·promise<sup>1</sup>,\n···*·_even·if·they·have·different·settings·that·would·otherwise·change\n···*·the·behavior·of·the·fetch_,·such·as·`noDeleteOnFetchRejection`\n···*·or·`ignoreFetchAbort`.\n···*\n···*·In·most·cases,·this·is·not·a·problem·(in·fact,·only·fetching\n···*·something·once·is·what·you·probably·want,·if·you're·caching·in\n···*·the·first·place).·If·you·are·changing·the·fetch()·options\n···*·dramatically·between·runs,·there's·a·good·chance·that·you·might\n···*·be·trying·to·fit·divergent·semantics·into·a·single·object,·and\n···*·would·be·better·off·with·multiple·cache·instances.\n···*\n···*·**1**:·Ie,·they're·not·the·\"same·Promise\",·but·they·resolve·at\n···*·the·same·time,·because·they're·both·waiting·on·the·same\n···*·underlying·fetchMethod·response.\n···*/\n\n··fetch(\n····k:·K,\n····fetchOptions:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n··):·Promise<undefined·|·V>\n\n··//·this·overload·not·allowed·if·context·is·required\n··fetch(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····fetchOptions?:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·never,\n··):·Promise<undefined·|·V>\n\n··async·fetch(\n····k:·K,\n····fetchOptions:·LRUCache.FetchOptions<K,·V,·FC>·=·{},\n··):·Promise<undefined·|·V>·{\n····const·{\n······//·get·options\n······allowStale·=·this.allowStale,\n······updateAgeOnGet·=·this.updateAgeOnGet,\n······noDeleteOnStaleGet·=·this.noDeleteOnStaleGet,\n······//·set·options\n······ttl·=·this.ttl,\n······noDisposeOnSet·=·this.noDisposeOnSet,\n······size·=·0,\n······sizeCalculation·=·this.sizeCalculation,\n······noUpdateTTL·=·this.noUpdateTTL,\n······//·fetch·exclusive·options\n······noDeleteOnFetchRejection·=·this.noDeleteOnFetchRejection,\n······allowStaleOnFetchRejection·=·this.allowStaleOnFetchRejection,\n······ignoreFetchAbort·=·this.ignoreFetchAbort,\n······allowStaleOnFetchAbort·=·this.allowStaleOnFetchAbort,\n······context,\n······forceRefresh·=·false,\n······status,\n······signal,\n····}·=·fetchOptions\n\n····if·(!this.#hasFetchMethod)·{\n······if·(status)·status.fetch·=·'get'\n······return·this.get(k,·{\n········allowStale,\n········updateAgeOnGet,\n········noDeleteOnStaleGet,\n········status,\n······})\n····}\n\n····const·options·=·{\n······allowStale,\n······updateAgeOnGet,\n······noDeleteOnStaleGet,\n······ttl,\n······noDisposeOnSet,\n······size,\n······sizeCalculation,\n······noUpdateTTL,\n······noDeleteOnFetchRejection,\n······allowStaleOnFetchRejection,\n······allowStaleOnFetchAbort,\n······ignoreFetchAbort,\n······status,\n······signal,\n····}\n\n····let·index·=·this.#keyMap.get(k)\n····if·(index·===·undefined)·{\n······if·(status)·status.fetch·=·'miss'\n······const·p·=·this.#backgroundFetch(k,·index,·options,·context)\n······return·(p.__returned·=·p)\n····}·else·{\n······//·in·cache,·maybe·already·fetching\n······const·v·=·this.#valList[index]\n······if·(this.#isBackgroundFetch(v))·{\n········const·stale·=·allowStale·&&·v.__staleWhileFetching·!==·undefined\n········if·(status)·{\n··········status.fetch·=·'inflight'\n··········if·(stale)·status.returnedStale·=·true\n········}\n········return·stale·?·v.__staleWhileFetching·:·(v.__returned·=·v)\n······}\n\n······//·if·we·force·a·refresh,·that·means·do·NOT·serve·the·cached·value,\n······//·unless·we·are·already·in·the·process·of·refreshing·the·cache.\n······const·isStale·=·this.#isStale(index)\n······if·(!forceRefresh·&&·!isStale)·{\n········if·(status)·status.fetch·=·'hit'\n········this.#moveToTail(index)\n········if·(updateAgeOnGet)·{\n··········this.#updateItemAge(index)\n········}\n········if·(status)·this.#statusTTL(status,·index)\n········return·v\n······}\n\n······//·ok,·it·is·stale·or·a·forced·refresh,·and·not·already·fetching.\n······//·refresh·the·cache.\n······const·p·=·this.#backgroundFetch(k,·index,·options,·context)\n······const·hasStale·=·p.__staleWhileFetching·!==·undefined\n······const·staleVal·=·hasStale·&&·allowStale\n······if·(status)·{\n········status.fetch·=·isStale·?·'stale'·:·'refresh'\n········if·(staleVal·&&·isStale)·status.returnedStale·=·true\n······}\n······return·staleVal·?·p.__staleWhileFetching·:·(p.__returned·=·p)\n····}\n··}\n\n··/**\n···*·In·some·cases,·`cache.fetch()`·may·resolve·to·`undefined`,·either·because\n···*·a·{@link·LRUCache.OptionsBase#fetchMethod}·was·not·provided·(turning\n···*·`cache.fetch(k)`·into·just·an·async·wrapper·around·`cache.get(k)`)·or\n···*·because·`ignoreFetchAbort`·was·specified·(either·to·the·constructor·or\n···*·in·the·{@link·LRUCache.FetchOptions}).·Also,·the\n···*·{@link·LRUCache.OptionsBase.fetchMethod}·may·return·`undefined`·or·`void`,·making\n···*·the·test·even·more·complicated.\n···*\n···*·Because·inferring·the·cases·where·`undefined`·might·be·returned·are·so\n···*·cumbersome,·but·testing·for·`undefined`·can·also·be·annoying,·this·method\n···*·can·be·used,·which·will·reject·if·`this.fetch()`·resolves·to·undefined.\n···*/\n··forceFetch(\n····k:·K,\n····fetchOptions:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n··):·Promise<V>\n··//·this·overload·not·allowed·if·context·is·required\n··forceFetch(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····fetchOptions?:·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n····:·never,\n··):·Promise<V>\n··async·forceFetch(\n····k:·K,\n····fetchOptions:·LRUCache.FetchOptions<K,·V,·FC>·=·{},\n··):·Promise<V>·{\n····const·v·=·await·this.fetch(\n······k,\n······fetchOptions·as·unknown·extends·FC·?·LRUCache.FetchOptions<K,·V,·FC>\n······:·FC·extends·undefined·|·void·?·LRUCache.FetchOptionsNoContext<K,·V>\n······:·LRUCache.FetchOptionsWithContext<K,·V,·FC>,\n····)\n····if·(v·===·undefined)·throw·new·Error('fetch()·returned·undefined')\n····return·v\n··}\n\n··/**\n···*·If·the·key·is·found·in·the·cache,·then·this·is·equivalent·to\n···*·{@link·LRUCache#get}.·If·not,·in·the·cache,·then·calculate·the·value·using\n···*·the·{@link·LRUCache.OptionsBase.memoMethod},·and·add·it·to·the·cache.\n···*\n···*·If·an·`FC`·type·is·set·to·a·type·other·than·`unknown`,·`void`,·or\n···*·`undefined`·in·the·LRUCache·constructor,·then·all·calls·to·`cache.memo()`\n···*·_must_·provide·a·`context`·option.·If·set·to·`undefined`·or·`void`,·then\n···*·calls·to·memo·_must·not_·provide·a·`context`·option.\n···*\n···*·The·`context`·param·allows·you·to·provide·arbitrary·data·that·might·be\n···*·relevant·in·the·course·of·fetching·the·data.·It·is·only·relevant·for·the\n···*·course·of·a·single·`memo()`·operation,·and·discarded·afterwards.\n···*/\n··memo(\n····k:·K,\n····memoOptions:·unknown·extends·FC·?·LRUCache.MemoOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.MemoOptionsNoContext<K,·V>\n····:·LRUCache.MemoOptionsWithContext<K,·V,·FC>,\n··):·V\n··//·this·overload·not·allowed·if·context·is·required\n··memo(\n····k:·unknown·extends·FC·?·K\n····:·FC·extends·undefined·|·void·?·K\n····:·never,\n····memoOptions?:·unknown·extends·FC·?·LRUCache.MemoOptions<K,·V,·FC>\n····:·FC·extends·undefined·|·void·?·LRUCache.MemoOptionsNoContext<K,·V>\n····:·never,\n··):·V\n··memo(k:·K,·memoOptions:·LRUCache.MemoOptions<K,·V,·FC>·=·{})·{\n····const·memoMethod·=·this.#memoMethod\n····if·(!memoMethod)·{\n······throw·new·Error('no·memoMethod·provided·to·constructor')\n····}\n····const·{·context,·forceRefresh,·...options·}·=·memoOptions\n····const·v·=·this.get(k,·options)\n····if·(!forceRefresh·&&·v·!==·undefined)·return·v\n····const·vv·=·memoMethod(k,·v,·{\n······options,\n······context,\n····}·as·LRUCache.MemoizerOptions<K,·V,·FC>)\n····this.set(k,·vv,·options)\n····return·vv\n··}\n\n··/**\n···*·Return·a·value·from·the·cache.·Will·update·the·recency·of·the·cache\n···*·entry·found.\n···*\n···*·If·the·key·is·not·found,·get()·will·return·`undefined`.\n···*/\n··get(k:·K,·getOptions:·LRUCache.GetOptions<K,·V,·FC>·=·{})·{\n····const·{\n······allowStale·=·this.allowStale,\n······updateAgeOnGet·=·this.updateAgeOnGet,\n······noDeleteOnStaleGet·=·this.noDeleteOnStaleGet,\n······status,\n····}·=·getOptions\n····const·index·=·this.#keyMap.get(k)\n····if·(index·!==·undefined)·{\n······const·value·=·this.#valList[index]\n······const·fetching·=·this.#isBackgroundFetch(value)\n······if·(status)·this.#statusTTL(status,·index)\n······if·(this.#isStale(index))·{\n········if·(status)·status.get·=·'stale'\n········//·delete·only·if·not·an·in-flight·background·fetch\n········if·(!fetching)·{\n··········if·(!noDeleteOnStaleGet)·{\n············this.#delete(k,·'expire')\n··········}\n··········if·(status·&&·allowStale)·status.returnedStale·=·true\n··········return·allowStale·?·value·:·undefined\n········}·else·{\n··········if·(\n············status·&&\n············allowStale·&&\n············value.__staleWhileFetching·!==·undefined\n··········)·{\n············status.returnedStale·=·true\n··········}\n··········return·allowStale·?·value.__staleWhileFetching·:·undefined\n········}\n······}·else·{\n········if·(status)·status.get·=·'hit'\n········//·if·we're·currently·fetching·it,·we·don't·actually·have·it·yet\n········//·it's·not·stale,·which·means·this·isn't·a·staleWhileRefetching.\n········//·If·it's·not·stale,·and·fetching,·AND·has·a·__staleWhileFetching\n········//·value,·then·that·means·the·user·fetched·with·{forceRefresh:true},\n········//·so·it's·safe·to·return·that·value.\n········if·(fetching)·{\n··········return·value.__staleWhileFetching\n········}\n········this.#moveToTail(index)\n········if·(updateAgeOnGet)·{\n··········this.#updateItemAge(index)\n········}\n········return·value\n······}\n····}·else·if·(status)·{\n······status.get·=·'miss'\n····}\n··}\n\n··#connect(p:·Index,·n:·Index)·{\n····this.#prev[n]·=·p\n····this.#next[p]·=·n\n··}\n\n··#moveToTail(index:·Index):·void·{\n····//·if·tail·already,·nothing·to·do\n····//·if·head,·move·head·to·next[index]\n····//·else\n····//···move·next[prev[index]]·to·next[index]·(head·has·no·prev)\n····//···move·prev[next[index]]·to·prev[index]\n····//·prev[index]·=·tail\n····//·next[tail]·=·index\n····//·tail·=·index\n····if·(index·!==·this.#tail)·{\n······if·(index·===·this.#head)·{\n········this.#head·=·this.#next[index]·as·Index\n······}·else·{\n········this.#connect(\n··········this.#prev[index]·as·Index,\n··········this.#next[index]·as·Index,\n········)\n······}\n······this.#connect(this.#tail,·index)\n······this.#tail·=·index\n····}\n··}\n\n··/**\n···*·Deletes·a·key·out·of·the·cache.\n···*\n···*·Returns·true·if·the·key·was·deleted,·false·otherwise.\n···*/\n··delete(k:·K)·{\n····return·this.#delete(k,·'delete')\n··}\n\n··#delete(k:·K,·reason:·LRUCache.DisposeReason)·{\n····let·deleted·=·false\n····if·(this.#size·!==·0)·{\n······const·index·=·this.#keyMap.get(k)\n······if·(index·!==·undefined)·{\n········if·(this.#autopurgeTimers?.[index])·{\n··········clearTimeout(this.#autopurgeTimers?.[index])\n··········this.#autopurgeTimers[index]·=·undefined\n········}\n········deleted·=·true\n········if·(this.#size·===·1)·{\n··········this.#clear(reason)\n········}·else·{\n··········this.#removeItemSize(index)\n··········const·v·=·this.#valList[index]\n··········if·(this.#isBackgroundFetch(v))·{\n············v.__abortController.abort(new·Error('deleted'))\n··········}·else·if·(this.#hasDispose·||·this.#hasDisposeAfter)·{\n············if·(this.#hasDispose)·{\n··············this.#dispose?.(v·as·V,·k,·reason)\n············}\n············if·(this.#hasDisposeAfter)·{\n··············this.#disposed?.push([v·as·V,·k,·reason])\n············}\n··········}\n··········this.#keyMap.delete(k)\n··········this.#keyList[index]·=·undefined\n··········this.#valList[index]·=·undefined\n··········if·(index·===·this.#tail)·{\n············this.#tail·=·this.#prev[index]·as·Index\n··········}·else·if·(index·===·this.#head)·{\n············this.#head·=·this.#next[index]·as·Index\n··········}·else·{\n············const·pi·=·this.#prev[index]·as·number\n············this.#next[pi]·=·this.#next[index]·as·number\n············const·ni·=·this.#next[index]·as·number\n············this.#prev[ni]·=·this.#prev[index]·as·number\n··········}\n··········this.#size--\n··········this.#free.push(index)\n········}\n······}\n····}\n····if·(this.#hasDisposeAfter·&&·this.#disposed?.length)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n····return·deleted\n··}\n\n··/**\n···*·Clear·the·cache·entirely,·throwing·away·all·values.\n···*/\n··clear()·{\n····return·this.#clear('delete')\n··}\n··#clear(reason:·LRUCache.DisposeReason)·{\n····for·(const·index·of·this.#rindexes({·allowStale:·true·}))·{\n······const·v·=·this.#valList[index]\n······if·(this.#isBackgroundFetch(v))·{\n········v.__abortController.abort(new·Error('deleted'))\n······}·else·{\n········const·k·=·this.#keyList[index]\n········if·(this.#hasDispose)·{\n··········this.#dispose?.(v·as·V,·k·as·K,·reason)\n········}\n········if·(this.#hasDisposeAfter)·{\n··········this.#disposed?.push([v·as·V,·k·as·K,·reason])\n········}\n······}\n····}\n\n····this.#keyMap.clear()\n····this.#valList.fill(undefined)\n····this.#keyList.fill(undefined)\n····if·(this.#ttls·&&·this.#starts)·{\n······this.#ttls.fill(0)\n······this.#starts.fill(0)\n······for·(const·t·of·this.#autopurgeTimers·??·[])·{\n········if·(t·!==·undefined)·clearTimeout(t)\n······}\n······this.#autopurgeTimers?.fill(undefined)\n····}\n····if·(this.#sizes)·{\n······this.#sizes.fill(0)\n····}\n····this.#head·=·0·as·Index\n····this.#tail·=·0·as·Index\n····this.#free.length·=·0\n····this.#calculatedSize·=·0\n····this.#size·=·0\n····if·(this.#hasDisposeAfter·&&·this.#disposed)·{\n······const·dt·=·this.#disposed\n······let·task:·DisposeTask<K,·V>·|·undefined\n······while·((task·=·dt?.shift()))·{\n········this.#disposeAfter?.(...task)\n······}\n····}\n··}\n}\n" |
| 178 | ····], | 179 | ····], |
| 179 | ····"version":·3 | 180 | ····"version":·3 |
| 180 | } | 181 | } |
| Offset 47, 15 lines modified | Offset 47, 15 lines modified | ||
| 47 | ····], | 47 | ····], |
| 48 | ····"license":·"BlueOak-1.0.0", | 48 | ····"license":·"BlueOak-1.0.0", |
| 49 | ····"main":·"./dist/commonjs/index.js", | 49 | ····"main":·"./dist/commonjs/index.js", |
| 50 | ····"module":·"./dist/esm/index.js", | 50 | ····"module":·"./dist/esm/index.js", |
| 51 | ····"name":·"lru-cache", | 51 | ····"name":·"lru-cache", |
| 52 | ····"repository":·{ | 52 | ····"repository":·{ |
| 53 | ········"type":·"git", | 53 | ········"type":·"git", |
| 54 | ········"url":·"git://github.com/isaacs/node-lru-cache.git" | 54 | ········"url":·"git+ssh://git@github.com/isaacs/node-lru-cache.git" |
| 55 | ····}, | 55 | ····}, |
| 56 | ····"scripts":·{ | 56 | ····"scripts":·{ |
| 57 | ········"benchmark":·"make·-C·benchmark", | 57 | ········"benchmark":·"make·-C·benchmark", |
| 58 | ········"benchmark-results-typedoc":·"bash·scripts/benchmark-results-typedoc.sh", | 58 | ········"benchmark-results-typedoc":·"bash·scripts/benchmark-results-typedoc.sh", |
| 59 | ········"build":·"npm·run·prepare", | 59 | ········"build":·"npm·run·prepare", |
| 60 | ········"format":·"prettier·--write·.", | 60 | ········"format":·"prettier·--write·.", |
| 61 | ········"postversion":·"npm·publish", | 61 | ········"postversion":·"npm·publish", |
| Offset 93, 9 lines modified | Offset 93, 9 lines modified | ||
| 93 | ····················"types":·"./dist/commonjs/index.d.ts" | 93 | ····················"types":·"./dist/commonjs/index.d.ts" |
| 94 | ················} | 94 | ················} |
| 95 | ············} | 95 | ············} |
| 96 | ········} | 96 | ········} |
| 97 | ····}, | 97 | ····}, |
| 98 | ····"type":·"module", | 98 | ····"type":·"module", |
| 99 | ····"types":·"./dist/commonjs/index.d.ts", | 99 | ····"types":·"./dist/commonjs/index.d.ts", |
| 100 | ····"version":·"11.2. | 100 | ····"version":·"11.2.5" |
| 101 | } | 101 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"brace-expressions.d.ts", | 2 | ····"file":·"brace-expressions.d.ts", |
| 3 | ····"mappings":·"AA+BA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;CAClB,CAAA;AAQD,eAAO,MAAM,UAAU, | 3 | ····"mappings":·"AA+BA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;CAClB,CAAA;AAQD,eAAO,MAAM,UAAU,GACrB,MAAM,MAAM,EACZ,UAAU,MAAM,KACf,gBA6HF,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/brace-expressions.ts" | 7 | ········"../../src/brace-expressions.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"escape.d.ts", | 2 | ····"file":·"escape.d.ts", |
| 3 | ····"mappings":·"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM, | 3 | ····"mappings":·"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,GACjB,GAAG,MAAM,EACT,2CAGG,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,GAAG,eAAe,CAAM,WAazE,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/escape.ts" | 7 | ········"../../src/escape.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.d.ts", | 2 | ····"file":·"index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B/C,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE;IAoBtC,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IA6D7C,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE;IA0F1C,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE;IAkBxD,UAAU,CACR,CAAC,EAAE,MAAM,EAAE,EACX,CAAC,EAAE,MAAM,EAAE,EACX,YAAY,GAAE,OAAe,GAC5B,KAAK,GAAG,MAAM,EAAE;IA+CnB,WAAW;IAqBX,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,OAAO,GAAE,OAAe;IAiNzE,WAAW;IAIX,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW;IAiDnC,MAAM;IAwGN,UAAU,CAAC,CAAC,EAAE,MAAM;IAepB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,UAAe;IAiEvC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,gBAAgB;CAGtC;AAED,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"unescape.d.ts", | 2 | ····"file":·"unescape.d.ts", |
| 3 | ····"mappings":·"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,QAAQ, | 3 | ····"mappings":·"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,QAAQ,GACnB,GAAG,MAAM,EACT,2CAGG,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,GAAG,eAAe,CAAM,WAczE,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/unescape.ts" | 7 | ········"../../src/unescape.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"brace-expressions.d.ts", | 2 | ····"file":·"brace-expressions.d.ts", |
| 3 | ····"mappings":·"AA+BA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;CAClB,CAAA;AAQD,eAAO,MAAM,UAAU, | 3 | ····"mappings":·"AA+BA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;CAClB,CAAA;AAQD,eAAO,MAAM,UAAU,GACrB,MAAM,MAAM,EACZ,UAAU,MAAM,KACf,gBA6HF,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/brace-expressions.ts" | 7 | ········"../../src/brace-expressions.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"escape.d.ts", | 2 | ····"file":·"escape.d.ts", |
| 3 | ····"mappings":·"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM, | 3 | ····"mappings":·"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,GACjB,GAAG,MAAM,EACT,2CAGG,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,GAAG,eAAe,CAAM,WAazE,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/escape.ts" | 7 | ········"../../src/escape.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.d.ts", | 2 | ····"file":·"index.d.ts", |
| 3 | ····"mappings":·"AAEA,OAAO,EAAE,GAAG,EAAe,MAAM,UAAU,CAAA;AAI3C,MAAM,MAAM,QAAQ,GAChB,KAAK,GACL,SAAS,GACT,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,SAAS,GACT,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,CAAA;AAEZ,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAA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+CnB,WAAW;IAqBX,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,OAAO,GAAE,OAAe;IAiNzE,WAAW;IAIX,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW;IAiDnC,MAAM;IAwGN,UAAU,CAAC,CAAC,EAAE,MAAM;IAepB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,UAAe;IAiEvC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,gBAAgB;CAGtC;AAED,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"unescape.d.ts", | 2 | ····"file":·"unescape.d.ts", |
| 3 | ····"mappings":·"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,QAAQ, | 3 | ····"mappings":·"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,QAAQ,GACnB,GAAG,MAAM,EACT,2CAGG,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,GAAG,eAAe,CAAM,WAczE,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/unescape.ts" | 7 | ········"../../src/unescape.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"author":·"Isaac·Z.·Schlueter·<[email protected]>·(http://blog.izs.me)", | 2 | ····"author":·"Isaac·Z.·Schlueter·<[email protected]>·(http://blog.izs.me)", |
| 3 | ····"dependencies":·{ | 3 | ····"dependencies":·{ |
| 4 | ········"@isaacs/brace-expansion":·"^5.0. | 4 | ········"@isaacs/brace-expansion":·"^5.0.1" |
| 5 | ····}, | 5 | ····}, |
| 6 | ····"description":·"a·glob·matcher·in·javascript", | 6 | ····"description":·"a·glob·matcher·in·javascript", |
| 7 | ····"devDependencies":·{ | 7 | ····"devDependencies":·{ |
| 8 | ········"@types/node":·"^24.0.0", | 8 | ········"@types/node":·"^24.0.0", |
| 9 | ········"mkdirp":·"^3.0.1", | 9 | ········"mkdirp":·"^3.0.1", |
| 10 | ········"prettier":·"^3.6.2", | 10 | ········"prettier":·"^3.6.2", |
| 11 | ········"tap":·"^21.1.0", | 11 | ········"tap":·"^21.1.0", |
| Offset 34, 25 lines modified | Offset 34, 14 lines modified | ||
| 34 | ····"funding":·{ | 34 | ····"funding":·{ |
| 35 | ········"url":·"https://github.com/sponsors/isaacs" | 35 | ········"url":·"https://github.com/sponsors/isaacs" |
| 36 | ····}, | 36 | ····}, |
| 37 | ····"license":·"BlueOak-1.0.0", | 37 | ····"license":·"BlueOak-1.0.0", |
| 38 | ····"main":·"./dist/commonjs/index.js", | 38 | ····"main":·"./dist/commonjs/index.js", |
| 39 | ····"module":·"./dist/esm/index.js", | 39 | ····"module":·"./dist/esm/index.js", |
| 40 | ····"name":·"minimatch", | 40 | ····"name":·"minimatch", |
| 41 | ····"prettier":·{ | ||
| 42 | ········"arrowParens":·"avoid", | ||
| 43 | ········"bracketSameLine":·true, | ||
| 44 | ········"endOfLine":·"lf", | ||
| 45 | ········"jsxSingleQuote":·false, | ||
| 46 | ········"printWidth":·80, | ||
| 47 | ········"semi":·false, | ||
| 48 | ········"singleQuote":·true, | ||
| 49 | ········"tabWidth":·2, | ||
| 50 | ········"useTabs":·false | ||
| 51 | ····}, | ||
| 52 | ····"repository":·{ | 41 | ····"repository":·{ |
| 53 | ········"type":·"git", | 42 | ········"type":·"git", |
| 54 | ········"url":·"[email protected]:isaacs/minimatch" | 43 | ········"url":·"[email protected]:isaacs/minimatch" |
| 55 | ····}, | 44 | ····}, |
| 56 | ····"scripts":·{ | 45 | ····"scripts":·{ |
| 57 | ········"benchmark":·"node·benchmark/index.js", | 46 | ········"benchmark":·"node·benchmark/index.js", |
| 58 | ········"format":·"prettier·--write·.·--log-level·warn", | 47 | ········"format":·"prettier·--write·.·--log-level·warn", |
| Offset 70, 9 lines modified | Offset 59, 9 lines modified | ||
| 70 | ········"exports":·{ | 59 | ········"exports":·{ |
| 71 | ············".":·"./src/index.ts", | 60 | ············".":·"./src/index.ts", |
| 72 | ············"./package.json":·"./package.json" | 61 | ············"./package.json":·"./package.json" |
| 73 | ········} | 62 | ········} |
| 74 | ····}, | 63 | ····}, |
| 75 | ····"type":·"module", | 64 | ····"type":·"module", |
| 76 | ····"types":·"./dist/commonjs/index.d.ts", | 65 | ····"types":·"./dist/commonjs/index.d.ts", |
| 77 | ····"version":·"10.1. | 66 | ····"version":·"10.1.2" |
| 78 | } | 67 | } |
| Offset 1, 660 lines modified | Offset 1, 660 lines modified | ||
| 00000000:·2775·7365·2073·7472·6963·7427·0a63·6f6e··'use·strict'.con | 00000000:·2775·7365·2073·7472·6963·7427·0a63·6f6e··'use·strict'.con | ||
| 00000010:·7374·207b·204d·696e·6970·6173·7320·7d20··st·{·Minipass·}· | 00000010:·7374·207b·204d·696e·6970·6173·7320·7d20··st·{·Minipass·}· | Diff chunk too large, falling back to line-by-line diff (657 lines added, 657 lines removed) | |
| 00000020:·3d20·7265·7175·6972·6528·276d·696e·6970··=·require('minip | 00000020:·3d20·7265·7175·6972·6528·276d·696e·6970··=·require('minip | ||
| 00000030:·6173·7327·290a·636f·6e73·7420· | 00000030:·6173·7327·290a·636f·6e73·7420·7b20·4d69··ass').const·{·Mi | ||
| 00000040:·7061·7373·5369·7a65·6420· | 00000040:·6e69·7061·7373·5369·7a65·6420·7d20·3d20··nipassSized·}·=· | ||
| 00000050:·6972·6528·276d·696e·6970·6173· | 00000050:·7265·7175·6972·6528·276d·696e·6970·6173··require('minipas | ||
| 00000060:·7a65·6427·290a·0a63·6f6e·7374· | 00000060:·732d·7369·7a65·6427·290a·0a63·6f6e·7374··s-sized')..const | ||
| 00000070:·6220·3d20·7265·7175·6972·6528· | 00000070:·2042·6c6f·6220·3d20·7265·7175·6972·6528···Blob·=·require( | ||
| 00000080:·6c6f·622e·6a73·2729·0a63·6f6e· | 00000080:·272e·2f62·6c6f·622e·6a73·2729·0a63·6f6e··'./blob.js').con | ||
| 00000090:·2042·5546·4645·5220·7d20·3d20· | 00000090:·7374·207b·2042·5546·4645·5220·7d20·3d20··st·{·BUFFER·}·=· | ||
| 000000a0:·0a63·6f6e·7374·2046·6574·6368· | 000000a0:·426c·6f62·0a63·6f6e·7374·2046·6574·6368··Blob.const·Fetch | ||
| 000000b0:·7220·3d20·7265·7175·6972·6528· | 000000b0:·4572·726f·7220·3d20·7265·7175·6972·6528··Error·=·require( | ||
| 000000c0:·6574·6368·2d65·7272·6f72·2e6a· | 000000c0:·272e·2f66·6574·6368·2d65·7272·6f72·2e6a··'./fetch-error.j | ||
| 000000d0:·0a2f·2f20·6f70·7469·6f6e·616c· | 000000d0:·7327·290a·0a2f·2f20·6f70·7469·6f6e·616c··s')..//·optional | ||
| 000000e0:·656e·6465·6e63·7920·6f6e·2027· | 000000e0:·2064·6570·656e·6465·6e63·7920·6f6e·2027···dependency·on·' | ||
| 000000f0:·6469·6e67·270a·6c65·7420·636f· | 000000f0:·656e·636f·6469·6e67·270a·6c65·7420·636f··encoding'.let·co | ||
| 00000100:·740a·7472·7920·7b0a·2020·636f· | 00000100:·6e76·6572·740a·7472·7920·7b0a·2020·636f··nvert.try·{.··co | ||
| 00000110:·7420·3d20·7265·7175·6972·6528· | 00000110:·6e76·6572·7420·3d20·7265·7175·6972·6528··nvert·=·require( | ||
| 00000120:·6f64·696e·6727·292e·636f·6e76· | 00000120:·2765·6e63·6f64·696e·6727·292e·636f·6e76··'encoding').conv | ||
| 00000130:·7d20·6361·7463·6820·2865·2920· | 00000130:·6572·740a·7d20·6361·7463·6820·2865·2920··ert.}·catch·(e)· | ||
| 00000140:·2f2f·2064·6566·6572·2065·7272· | 00000140:·7b0a·2020·2f2f·2064·6566·6572·2065·7272··{.··//·defer·err | ||
| 00000150:·6e74·696c·2074·6578·7443·6f6e· | 00000150:·6f72·2075·6e74·696c·2074·6578·7443·6f6e··or·until·textCon | ||
| 00000160:·6564·2069·7320·6361·6c6c·6564· | 00000160:·7665·7274·6564·2069·7320·6361·6c6c·6564··verted·is·called | ||
| 00000170:·636f·6e73·7420·494e·5445·524e· | 00000170:·0a7d·0a0a·636f·6e73·7420·494e·5445·524e··.}..const·INTERN | ||
| 00000180:·3d20·5379·6d62·6f6c·2827·426f· | 00000180:·414c·5320·3d20·5379·6d62·6f6c·2827·426f··ALS·=·Symbol('Bo | ||
| 00000190:·6e74·6572·6e61·6c73·2729·0a63· | 00000190:·6479·2069·6e74·6572·6e61·6c73·2729·0a63··dy·internals').c | ||
| 000001a0:·2043·4f4e·5355·4d45·5f42·4f44· | 000001a0:·6f6e·7374·2043·4f4e·5355·4d45·5f42·4f44··onst·CONSUME_BOD | ||
| 000001b0:·5379·6d62·6f6c·2827·636f·6e73· | 000001b0:·5920·3d20·5379·6d62·6f6c·2827·636f·6e73··Y·=·Symbol('cons | ||
| 000001c0:·6f64·7927·290a·0a63·6c61·7373· | 000001c0:·756d·6542·6f64·7927·290a·0a63·6c61·7373··umeBody')..class | ||
| 000001d0:·7920·7b0a·2020·636f·6e73·7472· | 000001d0:·2042·6f64·7920·7b0a·2020·636f·6e73·7472···Body·{.··constr | ||
| 000001e0:·7220·2862·6f64·7941·7267·2c20· | 000001e0:·7563·746f·7220·2862·6f64·7941·7267·2c20··uctor·(bodyArg,· | ||
| 000001f0:·6f6e·7320·3d20·7b7d·2920·7b0a· | 000001f0:·6f70·7469·6f6e·7320·3d20·7b7d·2920·7b0a··options·=·{})·{. | ||
| 00000200:·636f·6e73·7420·7b20·7369·7a65· | 00000200:·2020·2020·636f·6e73·7420·7b20·7369·7a65······const·{·size | ||
| 00000210:·2c20·7469·6d65·6f75·7420·3d20· | 00000210:·203d·2030·2c20·7469·6d65·6f75·7420·3d20···=·0,·timeout·=· | ||
| 00000220:·3d20·6f70·7469·6f6e·730a·2020· | 00000220:·3020·7d20·3d20·6f70·7469·6f6e·730a·2020··0·}·=·options.·· | ||
| 00000230:·6e73·7420·626f·6479·203d·2062· | 00000230:·2020·636f·6e73·7420·626f·6479·203d·2062····const·body·=·b | ||
| 00000240:·7267·203d·3d3d·2075·6e64·6566· | 00000240:·6f64·7941·7267·203d·3d3d·2075·6e64·6566··odyArg·===·undef | ||
| 00000250:·207c·7c20·626f·6479·4172·6720· | 00000250:·696e·6564·207c·7c20·626f·6479·4172·6720··ined·||·bodyArg· | ||
| 00000260:·6e75·6c6c·203f·206e·756c·6c0a· | 00000260:·3d3d·3d20·6e75·6c6c·203f·206e·756c·6c0a··===·null·?·null. | ||
| 00000270:·2020·3a20·6973·5552·4c53·6561· | 00000270:·2020·2020·2020·3a20·6973·5552·4c53·6561········:·isURLSea | ||
| 00000280:·6172·616d·7328·626f·6479·4172· | 00000280:·7263·6850·6172·616d·7328·626f·6479·4172··rchParams(bodyAr | ||
| 00000290:·2042·7566·6665·722e·6672·6f6d· | 00000290:·6729·203f·2042·7566·6665·722e·6672·6f6d··g)·?·Buffer.from | ||
| 000002a0:·7941·7267·2e74·6f53·7472·696e· | 000002a0:·2862·6f64·7941·7267·2e74·6f53·7472·696e··(bodyArg.toStrin | ||
| 000002b0:·0a20·2020·2020·203a·2069·7342· | 000002b0:·6728·2929·0a20·2020·2020·203a·2069·7342··g()).······:·isB | ||
| 000002c0:·626f·6479·4172·6729·203f·2062· | 000002c0:·6c6f·6228·626f·6479·4172·6729·203f·2062··lob(bodyArg)·?·b | ||
| 000002d0:·7267·0a20·2020·2020·203a·2042· | 000002d0:·6f64·7941·7267·0a20·2020·2020·203a·2042··odyArg.······:·B | ||
| 000002e0:·722e·6973·4275·6666·6572·2862· | 000002e0:·7566·6665·722e·6973·4275·6666·6572·2862··uffer.isBuffer(b | ||
| 000002f0:·7267·2920·3f20·626f·6479·4172· | 000002f0:·6f64·7941·7267·2920·3f20·626f·6479·4172··odyArg)·?·bodyAr | ||
| 00000300:·2020·2020·3a20·4f62·6a65·6374· | 00000300:·670a·2020·2020·2020·3a20·4f62·6a65·6374··g.······:·Object | ||
| 00000310:·746f·7479·7065·2e74·6f53·7472· | 00000310:·2e70·726f·746f·7479·7065·2e74·6f53·7472··.prototype.toStr | ||
| 00000320:·6361·6c6c·2862·6f64·7941·7267· | 00000320:·696e·672e·6361·6c6c·2862·6f64·7941·7267··ing.call(bodyArg | ||
| 00000330:·3d20·275b·6f62·6a65·6374·2041· | 00000330:·2920·3d3d·3d20·275b·6f62·6a65·6374·2041··)·===·'[object·A | ||
| 00000340:·4275·6666·6572·5d27·0a20·2020· | 00000340:·7272·6179·4275·6666·6572·5d27·0a20·2020··rrayBuffer]'.··· | ||
| 00000350:·203f·2042·7566·6665·722e·6672· | 00000350:·2020·2020·203f·2042·7566·6665·722e·6672·······?·Buffer.fr | ||
| 00000360:·6f64·7941·7267·290a·2020·2020· | 00000360:·6f6d·2862·6f64·7941·7267·290a·2020·2020··om(bodyArg).···· | ||
| 00000370:·3a20·4172·7261·7942·7566·6665· | 00000370:·2020·2020·3a20·4172·7261·7942·7566·6665······:·ArrayBuffe | ||
| 00000380:·5669·6577·2862·6f64·7941·7267· | 00000380:·722e·6973·5669·6577·2862·6f64·7941·7267··r.isView(bodyArg | ||
| 00000390:·2020·2020·2020·2020·3f20·4275· | 00000390:·290a·2020·2020·2020·2020·2020·3f20·4275··).··········?·Bu | ||
| 000003a0:·2e66·726f·6d28·626f·6479·4172· | 000003a0:·6666·6572·2e66·726f·6d28·626f·6479·4172··ffer.from(bodyAr | ||
| 000003b0:·6666·6572·2c20·626f·6479·4172· | 000003b0:·672e·6275·6666·6572·2c20·626f·6479·4172··g.buffer,·bodyAr | ||
| 000003c0:·7465·4f66·6673·6574·2c20·626f· | 000003c0:·672e·6279·7465·4f66·6673·6574·2c20·626f··g.byteOffset,·bo | ||
| 000003d0:·672e·6279·7465·4c65·6e67·7468· | 000003d0:·6479·4172·672e·6279·7465·4c65·6e67·7468··dyArg.byteLength | ||
| 000003e0:·2020·2020·2020·2020· | 000003e0:·290a·2020·2020·2020·2020·2020·3a20·4d69··).··········:·Mi | ||
| 000003f0:·7373·2e69·7353·7472·6561·6d28· | 000003f0:·6e69·7061·7373·2e69·7353·7472·6561·6d28··nipass.isStream( | ||
| 00000400:·4172·6729·203f·2062·6f64·7941· | 00000400:·626f·6479·4172·6729·203f·2062·6f64·7941··bodyArg)·?·bodyA | ||
| 00000410:·2020·2020·2020·2020·20 | 00000410:·7267·0a20·2020·2020·2020·2020·203a·2042··rg.··········:·B | ||
| 00000420:·722e·6672·6f6d·2853·7472·696e· | 00000420:·7566·6665·722e·6672·6f6d·2853·7472·696e··uffer.from(Strin | ||
| 00000430:·6479·4172·6729·290a·0a20·2020· | 00000430:·6728·626f·6479·4172·6729·290a·0a20·2020··g(bodyArg))..··· | ||
| 00000440:·735b·494e·5445·524e·414c·535d· | 00000440:·2074·6869·735b·494e·5445·524e·414c·535d···this[INTERNALS] | ||
| 00000450:·0a20·2020·2020·2062·6f64·792c· | 00000450:·203d·207b·0a20·2020·2020·2062·6f64·792c···=·{.······body, | ||
| 00000460:·2020·2064·6973·7475·7262·6564· | 00000460:·0a20·2020·2020·2064·6973·7475·7262·6564··.······disturbed | ||
| 00000470:·6c73·652c·0a20·2020·2020·2065· | 00000470:·3a20·6661·6c73·652c·0a20·2020·2020·2065··:·false,.······e | ||
| 00000480:·3a20·6e75·6c6c·2c0a·2020·2020· | 00000480:·7272·6f72·3a20·6e75·6c6c·2c0a·2020·2020··rror:·null,.···· | ||
| 00000490:·2020·2074·6869·732e·7369·7a65· | 00000490:·7d0a·0a20·2020·2074·6869·732e·7369·7a65··}..····this.size | ||
| 000004a0:·697a·650a·2020·2020·7468·6973· | 000004a0:·203d·2073·697a·650a·2020·2020·7468·6973···=·size.····this | ||
| 000004b0:·656f·7574·203d·2074·696d·656f· | 000004b0:·2e74·696d·656f·7574·203d·2074·696d·656f··.timeout·=·timeo | ||
| 000004c0:·2020·2020·6966·2028·4d69·6e69· | 000004c0:·7574·0a0a·2020·2020·6966·2028·4d69·6e69··ut..····if·(Mini | ||
| 000004d0:·2e69·7353·7472·6561·6d28·626f· | 000004d0:·7061·7373·2e69·7353·7472·6561·6d28·626f··pass.isStream(bo | ||
| 000004e0:·207b·0a20·2020·2020·2062·6f64· | 000004e0:·6479·2929·207b·0a20·2020·2020·2062·6f64··dy))·{.······bod | ||
| 000004f0:·2827·6572·726f·7227·2c20·6572· | 000004f0:·792e·6f6e·2827·6572·726f·7227·2c20·6572··y.on('error',·er | ||
| 00000500:·7b0a·2020·2020·2020·2020·636f· | 00000500:·203d·3e20·7b0a·2020·2020·2020·2020·636f···=>·{.········co | ||
| 00000510:·6572·726f·7220·3d20·6572·2e6e· | 00000510:·6e73·7420·6572·726f·7220·3d20·6572·2e6e··nst·error·=·er.n | ||
| 00000520:·3d3d·3d20·2741·626f·7274·4572· | 00000520:·616d·6520·3d3d·3d20·2741·626f·7274·4572··ame·===·'AbortEr | ||
| 00000530:· | 00000530:·726f·7227·203f·2065·720a·2020·2020·2020··ror'·?·er.······ | ||
| 00000540:·3a20·6e65·7720·4665·7463·6845· | 00000540:·2020·2020·3a20·6e65·7720·4665·7463·6845······:·new·FetchE | ||
| 00000550:·2860·496e·7661·6c69·6420·7265· | 00000550:·7272·6f72·2860·496e·7661·6c69·6420·7265··rror(`Invalid·re | ||
| 00000560:·7365·2077·6869·6c65·2074·7279· | 00000560:·7370·6f6e·7365·2077·6869·6c65·2074·7279··sponse·while·try | ||
| 00000570:·746f·2066·6574·6368·2024·7b0a· | 00000570:·696e·6720·746f·2066·6574·6368·2024·7b0a··ing·to·fetch·${. | ||
| 00000580:·2020·2020·2020·2020·7468·6973· | 00000580:·2020·2020·2020·2020·2020·2020·7468·6973··············this | ||
| 00000590:·7d3a·2024·7b65·722e·6d65·7373· | 00000590:·2e75·726c·7d3a·2024·7b65·722e·6d65·7373··.url}:·${er.mess | ||
| 000005a0:·602c·2027·7379·7374·656d·272c· | 000005a0:·6167·657d·602c·2027·7379·7374·656d·272c··age}`,·'system', | ||
| 000005b0:·0a20·2020·2020·2020·2074·6869· | 000005b0:·2065·7229·0a20·2020·2020·2020·2074·6869···er).········thi | ||
| 000005c0:·5445·524e·414c·535d·2e65·7272· | 000005c0:·735b·494e·5445·524e·414c·535d·2e65·7272··s[INTERNALS].err | ||
| 000005d0:·2065·7272·6f72·0a20·2020·2020· | 000005d0:·6f72·203d·2065·7272·6f72·0a20·2020·2020··or·=·error.····· | ||
| 000005e0:·2020·2020·7d0a·2020·7d0a·0a20· | 000005e0:·207d·290a·2020·2020·7d0a·2020·7d0a·0a20···}).····}.··}..· | ||
| 000005f0:·2062·6f64·7920·2829·207b·0a20· | 000005f0:·2067·6574·2062·6f64·7920·2829·207b·0a20···get·body·()·{.· | ||
| 00000600:·6574·7572·6e20·7468·6973·5b49· | 00000600:·2020·2072·6574·7572·6e20·7468·6973·5b49·····return·this[I | ||
| 00000610:·4e41·4c53·5d2e·626f·6479·0a20· | 00000610:·4e54·4552·4e41·4c53·5d2e·626f·6479·0a20··NTERNALS].body.· | ||
| Max diff block lines reached; -1/90873 bytes (-0.00%) of diff not shown. | |||
| Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"author":·"GitHub·Inc.", | 2 | ····"author":·"GitHub·Inc.", |
| 3 | ····"dependencies":·{ | 3 | ····"dependencies":·{ |
| 4 | ········"minipass":·"^7.0.3", | 4 | ········"minipass":·"^7.0.3", |
| 5 | ········"minipass-sized":·"^ | 5 | ········"minipass-sized":·"^2.0.0", |
| 6 | ········"minizlib":·"^3.0.1" | 6 | ········"minizlib":·"^3.0.1" |
| 7 | ····}, | 7 | ····}, |
| 8 | ····"description":·"An·implementation·of·window.fetch·in·Node.js·using·Minipass·streams", | 8 | ····"description":·"An·implementation·of·window.fetch·in·Node.js·using·Minipass·streams", |
| 9 | ····"devDependencies":·{ | 9 | ····"devDependencies":·{ |
| 10 | ········"@npmcli/eslint-config":·"^5.0.0", | 10 | ········"@npmcli/eslint-config":·"^5.0.0", |
| 11 | ········"@npmcli/template-oss":·"4.27.1", | 11 | ········"@npmcli/template-oss":·"4.27.1", |
| 12 | ········"@ungap/url-search-params":·"^0.2.2", | 12 | ········"@ungap/url-search-params":·"^0.2.2", |
| Offset 62, 9 lines modified | Offset 62, 9 lines modified | ||
| 62 | ········] | 62 | ········] |
| 63 | ····}, | 63 | ····}, |
| 64 | ····"templateOSS":·{ | 64 | ····"templateOSS":·{ |
| 65 | ········"//@npmcli/template-oss":·"This·file·is·partially·managed·by·@npmcli/template-oss.·Edits·may·be·overwritten.", | 65 | ········"//@npmcli/template-oss":·"This·file·is·partially·managed·by·@npmcli/template-oss.·Edits·may·be·overwritten.", |
| 66 | ········"publish":·"true", | 66 | ········"publish":·"true", |
| 67 | ········"version":·"4.27.1" | 67 | ········"version":·"4.27.1" |
| 68 | ····}, | 68 | ····}, |
| 69 | ····"version":·"5.0. | 69 | ····"version":·"5.0.1" |
| 70 | } | 70 | } |
| Offset 1, 28 lines modified | Offset 1, 30 lines modified | ||
| 1 | #·minipass-sized | 1 | #·minipass-sized |
| 2 | A·Minipass·stream·that·raises·an·error·if·you·get·a·different | 2 | A·Minipass·stream·that·raises·an·error·if·you·get·a·different |
| 3 | bytes·than·expected. | 3 | number·of·bytes·than·expected. |
| 4 | ##·USAGE | 4 | ##·USAGE |
| 5 | Use·just·like·any·old·[minipass](http://npm.im/minipass)·stream, | 5 | Use·just·like·any·old·[minipass](http://npm.im/minipass)·stream, |
| 6 | provide·a·`size`·option·to·the·constructor. | 6 | but·provide·a·`size`·option·to·the·constructor. |
| 7 | The·`size`·option·must·be·a·positive·integer,·smaller·than | 7 | The·`size`·option·must·be·a·positive·integer,·smaller·than |
| 8 | `Number.MAX_SAFE_INTEGER`. | 8 | `Number.MAX_SAFE_INTEGER`. |
| 9 | ``` | 9 | ```ts |
| 10 | import·{·MinipassSized·}·from·'minipass-sized' | ||
| 11 | //·or: | ||
| 10 | const·MinipassSized·=·require('minipass-sized') | 12 | //·const·{·MinipassSized·}·=·require('minipass-sized') |
| 11 | //·figure·out·how·much·data·you·expect·to·get | 13 | //·figure·out·how·much·data·you·expect·to·get |
| 12 | const·expectedSize·=·+headers['content-length'] | 14 | const·expectedSize·=·+headers['content-length'] |
| 13 | const·stream·=·new·MinipassSized({·size:·expectedSize·}) | 15 | const·stream·=·new·MinipassSized({·size:·expectedSize·}) |
| 14 | stream.on('error',·er·=>·{ | 16 | stream.on('error',·er·=>·{ |
| 15 | ··//·if·it's·the·wrong·size,·then·this·will·raise·an·error·with | 17 | ··//·if·it's·the·wrong·size,·then·this·will·raise·an·error·with |
| 16 | ··//·{·found:·<number>,·expect:·<number>,·code:·'EBADSIZE'·} | 18 | ··//·{·found:·<number>,·expect:·<number>,·code:·'EBADSIZE'·} |
| 17 | }) | 19 | }) |
| 18 | response.pipe(stream) | 20 | response.pipe(stream) |
| 19 | ``` | 21 | ``` |
| 20 | Caveats:·this·does·not·work·with·`objectMode`·streams,·and·will | 22 | Caveats:·this·does·not·work·with·`objectMode`·streams,·and·will |
| 21 | `TypeError`·from·the·constructor·if·the·size·argument | 23 | throw·a·`TypeError`·from·the·constructor·if·the·size·argument·is |
| 22 | invalid. | 24 | missing·or·invalid. |
| Offset 1, 39 lines modified | Offset 1, 69 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"author":·"Isaac·Z.·Schlueter·<[email protected]>·(https://izs.me)", | 2 | ····"author":·"Isaac·Z.·Schlueter·<[email protected]>·(https://izs.me)", |
| 3 | ····"dependencies":·{ | 3 | ····"dependencies":·{ |
| 4 | ········"minipass":·"^ | 4 | ········"minipass":·"^7.1.2" |
| 5 | ····}, | 5 | ····}, |
| 6 | ····"description":·"A·Minipass·stream·that·raises·an·error·if·you·get·a·different·number·of·bytes·than·expected", | 6 | ····"description":·"A·Minipass·stream·that·raises·an·error·if·you·get·a·different·number·of·bytes·than·expected", |
| 7 | ····"devDependencies":·{ | 7 | ····"devDependencies":·{ |
| 8 | ········"prettier":·"^3.7.4", | ||
| 8 | ········"tap":·"^ | 9 | ········"tap":·"^21.5.0", |
| 10 | ········"tshy":·"^3.1.0", | ||
| 11 | ········"typedoc":·"^0.28.15" | ||
| 9 | ····}, | 12 | ····}, |
| 10 | ····"directories":·{ | 13 | ····"directories":·{ |
| 11 | ········"test":·"test" | 14 | ········"test":·"test" |
| 12 | ····}, | 15 | ····}, |
| 13 | ····"engines":·{ | 16 | ····"engines":·{ |
| 14 | ········"node":·">=8" | 17 | ········"node":·">=8" |
| 15 | ····}, | 18 | ····}, |
| 19 | ····"exports":·{ | ||
| 20 | ········".":·{ | ||
| 21 | ············"import":·{ | ||
| 22 | ················"default":·"./dist/esm/index.js", | ||
| 23 | ················"types":·"./dist/esm/index.d.ts" | ||
| 24 | ············}, | ||
| 25 | ············"require":·{ | ||
| 26 | ················"default":·"./dist/commonjs/index.js", | ||
| 27 | ················"types":·"./dist/commonjs/index.d.ts" | ||
| 28 | ············} | ||
| 29 | ········}, | ||
| 30 | ········"./package.json":·"./package.json" | ||
| 31 | ····}, | ||
| 32 | ····"files":·[ | ||
| 33 | ········"dist" | ||
| 34 | ····], | ||
| 16 | ····"keywords":·[ | 35 | ····"keywords":·[ |
| 17 | ········"minipass", | 36 | ········"minipass", |
| 18 | ········"size", | 37 | ········"size", |
| 19 | ········"length" | 38 | ········"length" |
| 20 | ····], | 39 | ····], |
| 21 | ····"license":·"ISC", | 40 | ····"license":·"ISC", |
| 22 | ····"main":·"index.js", | 41 | ····"main":·"./dist/commonjs/index.js", |
| 42 | ····"module":·"./dist/esm/index.js", | ||
| 23 | ····"name":·"minipass-sized", | 43 | ····"name":·"minipass-sized", |
| 24 | ····"repository":·{ | 44 | ····"repository":·{ |
| 25 | ········"type":·"git", | 45 | ········"type":·"git", |
| 26 | ········"url":·"git+https://github.com/isaacs/minipass-sized.git" | 46 | ········"url":·"git+https://github.com/isaacs/minipass-sized.git" |
| 27 | ····}, | 47 | ····}, |
| 28 | ····"scripts":·{ | 48 | ····"scripts":·{ |
| 29 | ········" | 49 | ········"format":·"prettier·--write·.·--log-level·warn", |
| 30 | ········"postversion":·"npm·publish", | 50 | ········"postversion":·"npm·publish", |
| 51 | ········"prepare":·"tshy", | ||
| 52 | ········"prepublishOnly":·"git·push·origin·--follow-tags", | ||
| 53 | ········"presnap":·"npm·run·prepare", | ||
| 54 | ········"pretest":·"npm·run·prepare", | ||
| 31 | ········"preversion":·"npm·test", | 55 | ········"preversion":·"npm·test", |
| 32 | ········"snap":·"tap", | 56 | ········"snap":·"tap", |
| 33 | ········"test":·"tap" | 57 | ········"test":·"tap", |
| 58 | ········"typedoc":·"typedoc" | ||
| 34 | ····}, | ||
| 35 | ····"tap":·{ | ||
| 36 | ········"check-coverage":·true | ||
| 37 | ····}, | 59 | ····}, |
| 60 | ····"tshy":·{ | ||
| 61 | ········"exports":·{ | ||
| 62 | ············".":·"./src/index.ts", | ||
| 63 | ············"./package.json":·"./package.json" | ||
| 64 | ········} | ||
| 65 | ····}, | ||
| 66 | ····"type":·"module", | ||
| 67 | ····"types":·"./dist/commonjs/index.d.ts", | ||
| 38 | ····"version":·" | 68 | ····"version":·"2.0.0" |
| 39 | } | 69 | } |
| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····".":·"12. | 2 | ····".":·"12.2.0" |
| 3 | } | 3 | } |
| Offset 1, 9 lines modified | Offset 1, 43 lines modified | ||
| 1 | #·Changelog | 1 | #·Changelog |
| 2 | ##·[12.2.0](https://github.com/nodejs/node-gyp/compare/v12.1.0...v12.2.0)·(2026-01-26) | ||
| 3 | ###·Features | ||
| 4 | *·include·built·package·version·in·error·logs·([#3254](https://github.com/nodejs/node-gyp/issues/3254))·([ee9cbdd](https://github.com/nodejs/node-gyp/commit/ee9cbdd6e1d40dc7c1cdc5ed6a75432c716eaf3f)) | ||
| 5 | *·update·gyp-next·to·v0.21.1·([#3273](https://github.com/nodejs/node-gyp/issues/3273))·([888ff2c](https://github.com/nodejs/node-gyp/commit/888ff2c48a4cf5602013b96b52c6670906976f63)) | ||
| 6 | ###·Bug·Fixes | ||
| 7 | *·cpu·concurrency·detection·on·some·platforms·([#3255](https://github.com/nodejs/node-gyp/issues/3255))·([f15b79a](https://github.com/nodejs/node-gyp/commit/f15b79a03c54cea0f66d940a0d6d839df867a319)),·closes·[#3191](https://github.com/nodejs/node-gyp/issues/3191) | ||
| 8 | *·python·is·no·longer·a·valid·npm·config·setting·([#3258](https://github.com/nodejs/node-gyp/issues/3258))·([c7c678f](https://github.com/nodejs/node-gyp/commit/c7c678f89837d956194f326b01c5a8eb1d745db3)) | ||
| 9 | *·Switch·to·URL·instead·of·url.parse·([#3256](https://github.com/nodejs/node-gyp/issues/3256))·([3f81949](https://github.com/nodejs/node-gyp/commit/3f819499d8ce6d46c646466de7b9492bf7bde663)) | ||
| 10 | *·Test·Windows·on·Python·3.14,·not·3.13·([#3262](https://github.com/nodejs/node-gyp/issues/3262))·([7b4f315](https://github.com/nodejs/node-gyp/commit/7b4f315e4dad880c841d21df641d6dd9b68bf36b)) | ||
| 11 | ###·Core | ||
| 12 | *·**deps:**·bump·actions/checkout·from·5·to·6·([#3248](https://github.com/nodejs/node-gyp/issues/3248))·([db5385c](https://github.com/nodejs/node-gyp/commit/db5385c5467e5bfb914b9954f0313c46f1f4e10d)) | ||
| 13 | ###·Doc | ||
| 14 | *·add·a·note·about·changes·in·gyp·folder·([#3259](https://github.com/nodejs/node-gyp/issues/3259))·([a52bc81](https://github.com/nodejs/node-gyp/commit/a52bc819f44b881854ff798865ad416430e3dce2)) | ||
| 15 | *·correct·typos·([#3269](https://github.com/nodejs/node-gyp/issues/3269))·([0f2bc7d](https://github.com/nodejs/node-gyp/commit/0f2bc7d2e0665b1c7bb03e1cd8653ea330277a70)) | ||
| 16 | *·remove·obsolete·Microsoft·Node.js·Guidelines·link·([#3268](https://github.com/nodejs/node-gyp/issues/3268))·([30cda26](https://github.com/nodejs/node-gyp/commit/30cda268730798dc0f67182c8c568d8b8069964e)) | ||
| 17 | *·update·Python·manual·install·instructions·for·Windows·([#3265](https://github.com/nodejs/node-gyp/issues/3265))·([0407877](https://github.com/nodejs/node-gyp/commit/0407877e3e26d3201f74cf1a9deabbbfc40bdbb7)) | ||
| 18 | ###·Miscellaneous | ||
| 19 | *·**deps:**·upgrade·tar·to·7.5.4·to·address·CVE-2026-23950·([#3271](https://github.com/nodejs/node-gyp/issues/3271))·([7bf371c](https://github.com/nodejs/node-gyp/commit/7bf371c4dd7c694232ab3169d02fe8197e1ecc6d)) | ||
| 2 | ##·[12.1.0](https://github.com/nodejs/node-gyp/compare/v12.0.0...v12.1.0)·(2025-11-12) | 20 | ##·[12.1.0](https://github.com/nodejs/node-gyp/compare/v12.0.0...v12.1.0)·(2025-11-12) |
| 3 | ###·Features | 21 | ###·Features |
| 4 | *·Add·support·for·Visual·Studio·2026·(18.x)·([69e5fd2](https://github.com/nodejs/node-gyp/commit/69e5fd2c98ac83dad5200a47515b301ccd80d2d3)) | 22 | *·Add·support·for·Visual·Studio·2026·(18.x)·([69e5fd2](https://github.com/nodejs/node-gyp/commit/69e5fd2c98ac83dad5200a47515b301ccd80d2d3)) |
| 5 | *·Support·for·Visual·Studio·2026·(18.x)·([69e5fd2](https://github.com/nodejs/node-gyp/commit/69e5fd2c98ac83dad5200a47515b301ccd80d2d3)) | 23 | *·Support·for·Visual·Studio·2026·(18.x)·([69e5fd2](https://github.com/nodejs/node-gyp/commit/69e5fd2c98ac83dad5200a47515b301ccd80d2d3)) |
| Offset 1, 9 lines modified | Offset 1, 17 lines modified | ||
| 1 | #·Contributing·to·node-gyp | 1 | #·Contributing·to·node-gyp |
| 2 | ##·Making·changes·to·gyp-next | ||
| 3 | Changes·in·the·subfolder·`gyp/`·should·be·submitted·to·the | ||
| 4 | [`gyp-next`][]·repository·first.·The·`gyp/`·folder·is·regularly | ||
| 5 | synced·from·[`gyp-next`][]·with·GitHub·Actions·workflow | ||
| 6 | [`update-gyp-next.yml`](.github/workflows/update-gyp-next.yml), | ||
| 7 | and·any·changes·in·this·folder·would·be·overridden·by·the·workflow. | ||
| 2 | ##·Code·of·Conduct | 8 | ##·Code·of·Conduct |
| 3 | Please·read·the | 9 | Please·read·the |
| 4 | [Code·of·Conduct](https://github.com/nodejs/admin/blob/main/CODE_OF_CONDUCT.md) | 10 | [Code·of·Conduct](https://github.com/nodejs/admin/blob/main/CODE_OF_CONDUCT.md) |
| 5 | which·explains·the·minimum·behavior·expectations·for·node-gyp·contributors. | 11 | which·explains·the·minimum·behavior·expectations·for·node-gyp·contributors. |
| 6 | <a·id="developers-certificate-of-origin"></a> | 12 | <a·id="developers-certificate-of-origin"></a> |
| Offset 28, 7 lines modified | Offset 36, 9 lines modified | ||
| 28 | ··it. | 36 | ··it. |
| 29 | *·(d)·I·understand·and·agree·that·this·project·and·the·contribution | 37 | *·(d)·I·understand·and·agree·that·this·project·and·the·contribution |
| 30 | ··are·public·and·that·a·record·of·the·contribution·(including·all | 38 | ··are·public·and·that·a·record·of·the·contribution·(including·all |
| 31 | ··personal·information·I·submit·with·it,·including·my·sign-off)·is | 39 | ··personal·information·I·submit·with·it,·including·my·sign-off)·is |
| 32 | ··maintained·indefinitely·and·may·be·redistributed·consistent·with | 40 | ··maintained·indefinitely·and·may·be·redistributed·consistent·with |
| 33 | ··this·project·or·the·open·source·license(s)·involved. | 41 | ··this·project·or·the·open·source·license(s)·involved. |
| 42 | [`gyp-next`]:·https://github.com/nodejs/gyp-next | ||
| Offset 51, 27 lines modified | Offset 51, 25 lines modified | ||
| 51 | Install·tools·with·[Chocolatey](https://chocolatey.org): | 51 | Install·tools·with·[Chocolatey](https://chocolatey.org): |
| 52 | ```·bash | 52 | ```·bash |
| 53 | choco·install·python·visualstudio2022-workload-vctools·-y | 53 | choco·install·python·visualstudio2022-workload-vctools·-y |
| 54 | ``` | 54 | ``` |
| 55 | Or·install·and·configure·Python·and·Visual·Studio·tools·manually: | 55 | Or·install·and·configure·Python·and·Visual·Studio·tools·manually: |
| 56 | ··*·Follow·the·instructions·in·[Using·Python·on·Windows](https://docs.python.org/3/using/windows.html)·to·install | ||
| 56 | ·· | 57 | ····the·current·[version·of·Python](https://www.python.org/downloads/). |
| 57 | ··[Microsoft·Store](https://apps.microsoft.com/store/search?publisher=Python+Software+Foundation). | ||
| 58 | ···*·Install·Visual·C++·Build·Environment:·For·Visual·Studio·2019·or·later,·use·the·`Desktop·development·with·C++`·workload·from·[Visual·Studio·Community](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community).··For·a·version·older·than·Visual·Studio·2019,·install·[Visual·Studio·Build·Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools)·with·the·`Visual·C++·build·tools`·option. | 58 | ···*·Install·Visual·C++·Build·Environment:·For·Visual·Studio·2019·or·later,·use·the·`Desktop·development·with·C++`·workload·from·[Visual·Studio·Community](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community).··For·a·version·older·than·Visual·Studio·2019,·install·[Visual·Studio·Build·Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools)·with·the·`Visual·C++·build·tools`·option. |
| 59 | ···If·the·above·steps·didn't·work·for·you,·please·visit·[Microsoft's·Node.js·Guidelines·for·Windows](https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules)·for·additional·tips. | ||
| 60 | ···To·target·native·ARM64·Node.js·on·Windows·on·ARM,·add·the·components·"Visual·C++·compilers·and·libraries·for·ARM64"·and·"Visual·C++·ATL·for·ARM64". | 59 | ···To·target·native·ARM64·Node.js·on·Windows·on·ARM,·add·the·components·"Visual·C++·compilers·and·libraries·for·ARM64"·and·"Visual·C++·ATL·for·ARM64". |
| 61 | ···To·use·the·native·ARM64·C++·compiler·on·Windows·on·ARM,·ensure·that·you·have·Visual·Studio·2022·[17.4·or·later](https://devblogs.microsoft.com/visualstudio/arm64-visual-studio-is-officially-here/)·installed. | 60 | ···To·use·the·native·ARM64·C++·compiler·on·Windows·on·ARM,·ensure·that·you·have·Visual·Studio·2022·[17.4·or·later](https://devblogs.microsoft.com/visualstudio/arm64-visual-studio-is-officially-here/)·installed. |
| 62 | It's·advised·to·install·following·Power | 61 | It's·advised·to·install·the·following·PowerShell·module:·[VSSetup](https://github.com/microsoft/vssetup.powershell)·using·`Install-Module·VSSetup·-Scope·CurrentUser`. |
| 63 | This·will·make·Visual·Studio·detection·logic· | 62 | This·will·make·Visual·Studio·detection·logic·use·a·more·flexible·and·accessible·method,·avoiding·PowerShell's·`ConstrainedLanguage`·mode. |
| 64 | ###·Configuring·Python·Dependency | 63 | ###·Configuring·Python·Dependency |
| 65 | `node-gyp`·requires·that·you·have·installed·a·[supported·version·of·Python](https://devguide.python.org/versions/). | 64 | `node-gyp`·requires·that·you·have·installed·a·[supported·version·of·Python](https://devguide.python.org/versions/). |
| 66 | If·you·have·multiple·versions·of·Python·installed,·you·can·identify·which·version | 65 | If·you·have·multiple·versions·of·Python·installed,·you·can·identify·which·version |
| 67 | `node-gyp`·should·use·in·one·of·the·following·ways: | 66 | `node-gyp`·should·use·in·one·of·the·following·ways: |
| Offset 266, 16 lines modified | Offset 264, 16 lines modified | ||
| 266 | Or·this·on·Windows: | 264 | Or·this·on·Windows: |
| 267 | ```console | 265 | ```console |
| 268 | set·npm_package_config_node_gyp_devdir=c:\temp\.gyp | 266 | set·npm_package_config_node_gyp_devdir=c:\temp\.gyp |
| 269 | ``` | 267 | ``` |
| 270 | Note·that·in·versions·of·npm·before·v11·it·was·possible·to·use·the·prefix·`npm_config_`·for | 268 | Note·that·in·versions·of·npm·before·v11·it·was·possible·to·use·the·prefix·`npm_config_`·for |
| 271 | environ | 269 | environment·variables.·This·was·deprecated·in·npm@11·and·will·be·removed·in·npm@12·so·it |
| 272 | is·recommened·to·convert·your·environment·variables·to·the·above·format. | 270 | is·recommended·to·convert·your·environment·variables·to·the·above·format. |
| 273 | ###·`npm`·configuration·for·npm·versions·before·v9 | 271 | ###·`npm`·configuration·for·npm·versions·before·v9 |
| 274 | Use·the·form·`OPTION_NAME`·for·any·of·the·command·options·listed·above. | 272 | Use·the·form·`OPTION_NAME`·for·any·of·the·command·options·listed·above. |
| 275 | For·example,·to·set·`devdir`·equal·to·`/tmp/.gyp`,·you·would·run: | 273 | For·example,·to·set·`devdir`·equal·to·`/tmp/.gyp`,·you·would·run: |
| Offset 190, 25 lines modified | Offset 190, 38 lines modified | ||
| 00000bd0:·7228·2763·7764·272c·2070·726f·6365·7373··r('cwd',·process | 00000bd0:·7228·2763·7764·272c·2070·726f·6365·7373··r('cwd',·process | ||
| 00000be0:·2e63·7764·2829·290a·2020·6c6f·672e·6572··.cwd()).··log.er | 00000be0:·2e63·7764·2829·290a·2020·6c6f·672e·6572··.cwd()).··log.er | ||
| 00000bf0:·726f·7228·276e·6f64·6520·2d76·272c·2070··ror('node·-v',·p | 00000bf0:·726f·7228·276e·6f64·6520·2d76·272c·2070··ror('node·-v',·p | ||
| 00000c00:·726f·6365·7373·2e76·6572·7369·6f6e·290a··rocess.version). | 00000c00:·726f·6365·7373·2e76·6572·7369·6f6e·290a··rocess.version). | ||
| 00000c10:·2020·6c6f·672e·6572·726f·7228·276e·6f64····log.error('nod | 00000c10:·2020·6c6f·672e·6572·726f·7228·276e·6f64····log.error('nod | ||
| 00000c20:·652d·6779·7020·2d76·272c·2027·7627·202b··e-gyp·-v',·'v'·+ | 00000c20:·652d·6779·7020·2d76·272c·2027·7627·202b··e-gyp·-v',·'v'·+ | ||
| 00000c30:·2070·726f·672e·7061·636b·6167·652e·7665···prog.package.ve | 00000c30:·2070·726f·672e·7061·636b·6167·652e·7665···prog.package.ve | ||
| 00000c40:·7273·696f·6e29·0a | 00000c40:·7273·696f·6e29·0a20·202f·2f20·7072·696e··rsion).··//·prin | ||
| 00000c50:·7420·7468·6520·6e70·6d20·7061·636b·6167··t·the·npm·packag | |||
| 00000c60:·6520·7665·7273·696f·6e0a·2020·666f·7220··e·version.··for· | |||
| 00000c70:·2863·6f6e·7374·2065·6e76·206f·6620·5b27··(const·env·of·[' | |||
| 00000c80:·6e70·6d5f·7061·636b·6167·655f·6e61·6d65··npm_package_name | |||
| 00000c90:·272c·2027·6e70·6d5f·7061·636b·6167·655f··',·'npm_package_ | |||
| 00000ca0:·7665·7273·696f·6e27·5d29·207b·0a20·2020··version'])·{.··· | |||
| 00000cb0:·2063·6f6e·7374·2076·616c·7565·203d·2070···const·value·=·p | |||
| 00000cc0:·726f·6365·7373·2e65·6e76·5b65·6e76·5d0a··rocess.env[env]. | |||
| 00000cd0:·2020·2020·6966·2028·7661·6c75·6520·213d······if·(value·!= | |||
| 00000ce0:·206e·756c·6c29·207b·0a20·2020·2020·206c···null)·{.······l | |||
| 00000cf0:·6f67·2e65·7272·6f72·2860·2424·7b65·6e76··og.error(`$${env | |||
| 00000d00:·7d60·2c20·7661·6c75·6529·0a20·2020·207d··}`,·value).····} | |||
| 00000d10:·0a20·207d·0a7d·0a0a·6675·6e63·7469·6f6e··.··}.}..function | |||
| 00000 | 00000d20:·2069·7373·7565·4d65·7373·6167·6520·2829···issueMessage·() | ||
| 00000 | 00000d30:·207b·0a20·2065·7272·6f72·4d65·7373·6167···{.··errorMessag | ||
| 00000 | 00000d40:·6528·290a·2020·6c6f·672e·6572·726f·7228··e().··log.error( | ||
| 00000 | 00000d50:·2727·2c20·5b27·4e6f·6465·2d67·7970·2066··'',·['Node-gyp·f | ||
| 00000 | 00000d60:·6169·6c65·6420·746f·2062·7569·6c64·2079··ailed·to·build·y | ||
| 00000 | 00000d70:·6f75·7220·7061·636b·6167·652e·272c·0a20··our·package.',.· | ||
| 00000 | 00000d80:·2020·2027·5472·7920·746f·2075·7064·6174·····'Try·to·updat | ||
| 00000 | 00000d90:·6520·6e70·6d20·616e·642f·6f72·206e·6f64··e·npm·and/or·nod | ||
| 00000 | 00000da0:·652d·6779·7020·616e·6420·6966·2069·7420··e-gyp·and·if·it· | ||
| 00000 | 00000db0:·646f·6573·206e·6f74·2068·656c·7020·6669··does·not·help·fi | ||
| 00000 | 00000dc0:·6c65·2061·6e20·6973·7375·6520·7769·7468··le·an·issue·with | ||
| 00000d | 00000dd0:·2074·6865·2070·6163·6b61·6765·2061·7574···the·package·aut | ||
| 00000d | 00000de0:·686f·722e·270a·2020·5d2e·6a6f·696e·2827··hor.'.··].join(' | ||
| 00000d | 00000df0:·5c6e·2729·290a·7d0a·0a2f·2f20·7374·6172··\n')).}..//·star | ||
| 00000 | 00000e00:·7420·7275·6e6e·696e·6720·7468·6520·6769··t·running·the·gi | ||
| 00000 | 00000e10:·7665·6e20·636f·6d6d·616e·6473·210a·7275··ven·commands!.ru | ||
| 00000 | 00000e20:·6e28·290a································n(). |
| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····".":·"0.21. | 2 | ····".":·"0.21.1" |
| 3 | } | 3 | } |
| Offset 30, 26 lines modified | Offset 30, 26 lines modified | ||
| 30 | def·MakeGuid(name,·seed="msvs_new"): | 30 | def·MakeGuid(name,·seed="msvs_new"): |
| 31 | ····"""Returns·a·GUID·for·the·specified·target·name. | 31 | ····"""Returns·a·GUID·for·the·specified·target·name. |
| 32 | ····Args: | 32 | ····Args: |
| 33 | ······name:·Target·name. | 33 | ······name:·Target·name. |
| 34 | ······seed:·Seed·for· | 34 | ······seed:·Seed·for·SHA-256·hash. |
| 35 | ····Returns: | 35 | ····Returns: |
| 36 | ······A·GUID-line·string·calculated·from·the·name·and·seed. | 36 | ······A·GUID-line·string·calculated·from·the·name·and·seed. |
| 37 | ····This·generates·something·which·looks·like·a·GUID,·but·depends·only·on·the | 37 | ····This·generates·something·which·looks·like·a·GUID,·but·depends·only·on·the |
| 38 | ····name·and·seed.··This·means·the·same·name/seed·will·always·generate·the·same | 38 | ····name·and·seed.··This·means·the·same·name/seed·will·always·generate·the·same |
| 39 | ····GUID,·so·that·projects·and·solutions·which·refer·to·each·other·can·explicitly | 39 | ····GUID,·so·that·projects·and·solutions·which·refer·to·each·other·can·explicitly |
| 40 | ····determine·the·GUID·to·refer·to·explicitly.··It·also·means·that·the·GUID·will | 40 | ····determine·the·GUID·to·refer·to·explicitly.··It·also·means·that·the·GUID·will |
| 41 | ····not·change·when·the·project·for·a·target·is·rebuilt. | 41 | ····not·change·when·the·project·for·a·target·is·rebuilt. |
| 42 | ····""" | 42 | ····""" |
| 43 | ····#·Calculate·a· | 43 | ····#·Calculate·a·SHA-256·signature·for·the·seed·and·name. |
| 44 | ····d·=·hashlib. | 44 | ····d·=·hashlib.sha256((str(seed)·+·str(name)).encode("utf-8")).hexdigest().upper() |
| 45 | ····#·Convert·most·of·the·signature·to·GUID·form·(discard·the·rest) | 45 | ····#·Convert·most·of·the·signature·to·GUID·form·(discard·the·rest) |
| 46 | ····guid·=·( | 46 | ····guid·=·( |
| 47 | ········"{" | 47 | ········"{" |
| 48 | ········+·d[:8] | 48 | ········+·d[:8] |
| 49 | ········+·"-" | 49 | ········+·"-" |
| 50 | ········+·d[8:12] | 50 | ········+·d[8:12] |
| 51 | ········+·"-" | 51 | ········+·"-" |
| Offset 2165, 15 lines modified | Offset 2165, 15 lines modified | ||
| 2165 | ············#·-·Make·.INTERMEDIATE·depend·on·the·intermediate. | 2165 | ············#·-·Make·.INTERMEDIATE·depend·on·the·intermediate. |
| 2166 | ············#·-·The·intermediate·file·depends·on·the·inputs·and·executes·the | 2166 | ············#·-·The·intermediate·file·depends·on·the·inputs·and·executes·the |
| 2167 | ············#···actual·command. | 2167 | ············#···actual·command. |
| 2168 | ············#·-·The·intermediate·recipe·will·'touch'·the·intermediate·file. | 2168 | ············#·-·The·intermediate·recipe·will·'touch'·the·intermediate·file. |
| 2169 | ············#·-·The·multi-output·rule·will·have·an·do-nothing·recipe. | 2169 | ············#·-·The·multi-output·rule·will·have·an·do-nothing·recipe. |
| 2170 | ············#·Hash·the·target·name·to·avoid·generating·overlong·filenames. | 2170 | ············#·Hash·the·target·name·to·avoid·generating·overlong·filenames. |
| 2171 | ············cmddigest·=·hashlib.sha | 2171 | ············cmddigest·=·hashlib.sha256( |
| 2172 | ················(command·or·self.target).encode("utf-8") | 2172 | ················(command·or·self.target).encode("utf-8") |
| 2173 | ············).hexdigest() | 2173 | ············).hexdigest() |
| 2174 | ············intermediate·=·"%s.intermediate"·%·cmddigest | 2174 | ············intermediate·=·"%s.intermediate"·%·cmddigest |
| 2175 | ············self.WriteLn("{}:·{}".format("·".join(outputs),·intermediate)) | 2175 | ············self.WriteLn("{}:·{}".format("·".join(outputs),·intermediate)) |
| 2176 | ············self.WriteLn("\t%s"·%·"@:") | 2176 | ············self.WriteLn("\t%s"·%·"@:") |
| 2177 | ············self.WriteLn("{}:·{}".format(".INTERMEDIATE",·intermediate)) | 2177 | ············self.WriteLn("{}:·{}".format(".INTERMEDIATE",·intermediate)) |
| 2178 | ············self.WriteLn( | 2178 | ············self.WriteLn( |
| Offset 805, 17 lines modified | Offset 805, 16 lines modified | ||
| 805 | ························extra_bindings.append(("name",·cygwin_munge(basename))) | 805 | ························extra_bindings.append(("name",·cygwin_munge(basename))) |
| 806 | ····················else: | 806 | ····················else: |
| 807 | ························assert·var·is·None,·repr(var) | 807 | ························assert·var·is·None,·repr(var) |
| 808 | ················outputs·=·[self.GypPathToNinja(o,·env)·for·o·in·outputs] | 808 | ················outputs·=·[self.GypPathToNinja(o,·env)·for·o·in·outputs] |
| 809 | ················if·self.flavor·==·"win": | 809 | ················if·self.flavor·==·"win": |
| 810 | ····················#·WriteNewNinjaRule·uses·unique_name·to·create·a·rsp·file·on·win. | 810 | ····················#·WriteNewNinjaRule·uses·unique_name·to·create·a·rsp·file·on·win. |
| 811 | ····················extra_bindings.append( | ||
| 812 | ···················· | 811 | ····················unique_name·=·hashlib.sha256(outputs[0].encode("utf-8")).hexdigest() |
| 813 | ····················) | 812 | ····················extra_bindings.append(("unique_name",·unique_name)) |
| 814 | ················self.ninja.build( | 813 | ················self.ninja.build( |
| 815 | ····················outputs, | 814 | ····················outputs, |
| 816 | ····················rule_name, | 815 | ····················rule_name, |
| 817 | ····················self.GypPathToNinja(source), | 816 | ····················self.GypPathToNinja(source), |
| 818 | ····················implicit=inputs, | 817 | ····················implicit=inputs, |
| 819 | ····················order_only=prebuild, | 818 | ····················order_only=prebuild, |
| Offset 2799, 15 lines modified | Offset 2798, 15 lines modified | ||
| 2799 | ········#·with·that·case·at·the·moment. | 2798 | ········#·with·that·case·at·the·moment. |
| 2800 | ········build_file·=·gyp.common.RelativePath(build_file,·options.toplevel_dir,·False) | 2799 | ········build_file·=·gyp.common.RelativePath(build_file,·options.toplevel_dir,·False) |
| 2801 | ········qualified_target_for_hash·=·gyp.common.QualifiedTarget( | 2800 | ········qualified_target_for_hash·=·gyp.common.QualifiedTarget( |
| 2802 | ············build_file,·name,·toolset | 2801 | ············build_file,·name,·toolset |
| 2803 | ········) | 2802 | ········) |
| 2804 | ········qualified_target_for_hash·=·qualified_target_for_hash.encode("utf-8") | 2803 | ········qualified_target_for_hash·=·qualified_target_for_hash.encode("utf-8") |
| 2805 | ········hash_for_rules·=·hashlib. | 2804 | ········hash_for_rules·=·hashlib.sha256(qualified_target_for_hash).hexdigest() |
| 2806 | ········base_path·=·os.path.dirname(build_file) | 2805 | ········base_path·=·os.path.dirname(build_file) |
| 2807 | ········obj·=·"obj" | 2806 | ········obj·=·"obj" |
| 2808 | ········if·toolset·!=·"target": | 2807 | ········if·toolset·!=·"target": |
| 2809 | ············obj·+=·"."·+·toolset | 2808 | ············obj·+=·"."·+·toolset |
| 2810 | ········output_file·=·os.path.join(obj,·base_path,·name·+·".ninja") | 2809 | ········output_file·=·os.path.join(obj,·base_path,·name·+·".ninja") |
| Offset 425, 15 lines modified | Offset 425, 15 lines modified | ||
| 425 | ············hash.update(struct.pack(">i",·len(data))) | 425 | ············hash.update(struct.pack(">i",·len(data))) |
| 426 | ············if·isinstance(data,·str): | 426 | ············if·isinstance(data,·str): |
| 427 | ················data·=·data.encode("utf-8") | 427 | ················data·=·data.encode("utf-8") |
| 428 | ············hash.update(data) | 428 | ············hash.update(data) |
| 429 | ········if·seed_hash·is·None: | 429 | ········if·seed_hash·is·None: |
| 430 | ············seed_hash·=·hashlib.sha | 430 | ············seed_hash·=·hashlib.sha256() |
| 431 | ········hash·=·seed_hash.copy() | 431 | ········hash·=·seed_hash.copy() |
| 432 | ········hashables·=·self.Hashables() | 432 | ········hashables·=·self.Hashables() |
| 433 | ········assert·len(hashables)·>·0 | 433 | ········assert·len(hashables)·>·0 |
| 434 | ········for·hashable·in·hashables: | 434 | ········for·hashable·in·hashables: |
| 435 | ············_HashUpdate(hash,·hashable) | 435 | ············_HashUpdate(hash,·hashable) |
| Offset 1, 14 lines modified | Offset 1, 14 lines modified | ||
| 1 | [build-system] | 1 | [build-system] |
| 2 | requires·=·["setuptools>=61.0"] | 2 | requires·=·["setuptools>=61.0"] |
| 3 | build-backend·=·"setuptools.build_meta" | 3 | build-backend·=·"setuptools.build_meta" |
| 4 | [project] | 4 | [project] |
| 5 | name·=·"gyp-next" | 5 | name·=·"gyp-next" |
| 6 | version·=·"0.21. | 6 | version·=·"0.21.1" |
| 7 | authors·=·[ | 7 | authors·=·[ |
| 8 | ··{·name="Node.js·contributors",·email="[email protected]"·}, | 8 | ··{·name="Node.js·contributors",·email="[email protected]"·}, |
| 9 | ] | 9 | ] |
| 10 | description·=·"A·fork·of·the·GYP·build·system·for·use·in·the·Node.js·projects" | 10 | description·=·"A·fork·of·the·GYP·build·system·for·use·in·the·Node.js·projects" |
| 11 | readme·=·"README.md" | 11 | readme·=·"README.md" |
| 12 | license·=·{·file="LICENSE"·} | 12 | license·=·{·file="LICENSE"·} |
| 13 | requires-python·=·">=3.8" | 13 | requires-python·=·">=3.8" |
| Offset 286, 135 lines modified | Offset 286, 136 lines modified | ||
| 000011d0:·0a20·2020·2020·2020·2020·2061·7267·762e··.··········argv. | 000011d0:·0a20·2020·2020·2020·2020·2061·7267·762e··.··········argv. | ||
| 000011e0:·7075·7368·2827·2f6d·3a27·202b·206a·290a··push('/m:'·+·j). | 000011e0:·7075·7368·2827·2f6d·3a27·202b·206a·290a··push('/m:'·+·j). | ||
| 000011f0:·2020·2020·2020·2020·7d20·656c·7365·2069··········}·else·i | 000011f0:·2020·2020·2020·2020·7d20·656c·7365·2069··········}·else·i | ||
| 00001200:·6620·286a·6f62·732e·746f·5570·7065·7243··f·(jobs.toUpperC | 00001200:·6620·286a·6f62·732e·746f·5570·7065·7243··f·(jobs.toUpperC | ||
| 00001210:·6173·6528·2920·3d3d·3d20·274d·4158·2729··ase()·===·'MAX') | 00001210:·6173·6528·2920·3d3d·3d20·274d·4158·2729··ase()·===·'MAX') | ||
| 00001220:·207b·0a20·2020·2020·2020·2020·2061·7267···{.··········arg | 00001220:·207b·0a20·2020·2020·2020·2020·2061·7267···{.··········arg | ||
| 00001230:·762e·7075·7368·2827·2f6d·3a27·202b·2072··v.push('/m:'·+·r | 00001230:·762e·7075·7368·2827·2f6d·3a27·202b·2072··v.push('/m:'·+·r | ||
| 00001240:·6571·7569·7265·2827·6f73·2729·2e6 | 00001240:·6571·7569·7265·2827·6f73·2729·2e61·7661··equire('os').ava | ||
| 00001250:· | 00001250:·696c·6162·6c65·5061·7261·6c6c·656c·6973··ilableParallelis | ||
| 00001260:·6d28·2929·0a20·2020·2020·2020·207d·0a20··m()).········}.· | |||
| 000012 | 00001270:·2020·2020·207d·0a20·2020·207d·2065·6c73·······}.····}·els | ||
| 00001270:·2020·7d20·656c·7365·207b·0a20·2020·2020····}·else·{.····· | |||
| 00001280:·2061·7267·762e·7075·7368·2827·4255·494c···argv.push('BUIL | |||
| 00001290:·4454·5950·453d·2720·2b20·6275·696c·6454··DTYPE='·+·buildT | |||
| 000012a0:·7970·6529·0a20·2020·2020·202f·2f20·496e··ype).······//·In | |||
| 000012b0:·766f·6b65·2074·6865·204d·616b·6566·696c··voke·the·Makefil | |||
| 000012c0:·6520·696e·2074·6865·2027·6275·696c·6427··e·in·the·'build' | |||
| 000012 | 00001280:·6520·7b0a·2020·2020·2020·6172·6776·2e70··e·{.······argv.p | ||
| 000012e0:·2e70·7573·6828·272d·4327·290a·2020·2020··.push('-C').···· | |||
| 000012f0:·2020·6172·6776·2e70·7573·6828·2762·7569····argv.push('bui | |||
| 00001300:·6c64·2729·0a20·2020·2020·2069·6620·286a··ld').······if·(j | |||
| 00001310:·6f62·7329·207b·0a20·2020·2020·2020·206a··obs)·{.········j | |||
| 00001320:·203d·2070·6172·7365·496e·7428·6a6f·6273···=·parseInt(jobs | |||
| 00001330:·2c20·3130·290a·2020·2020·2020·2020·6966··,·10).········if | |||
| 00001340:·2028·2169·734e·614e·286a·2920·2626·206a···(!isNaN(j)·&&·j | |||
| 00001350:·203e·2030·2920·7b0a·2020·2020·2020·2020···>·0)·{.········ | |||
| 00001360:·2020·6172·6776·2e70·7573·6828·272d·2d6a····argv.push('--j | |||
| 00001370:·6f62·7327·290a·2020·2020·2020·2020·2020··obs').·········· | |||
| 00001380:·6172·6776·2e70·7573·6828·6a29·0a20·2020··argv.push(j).··· | |||
| 00001390:·2020·2020·207d·2065·6c73·6520·6966·2028·······}·else·if·( | |||
| 000013a0:·6a6f·6273·2e74·6f55·7070·6572·4361·7365··jobs.toUpperCase | |||
| 00001 | 00001290:·7573·6828·2742·5549·4c44·5459·5045·3d27··ush('BUILDTYPE=' | ||
| 000012a0:·202b·2062·7569·6c64·5479·7065·290a·2020···+·buildType).·· | |||
| 000012b0:·2020·2020·2f2f·2049·6e76·6f6b·6520·7468······//·Invoke·th | |||
| 000012c0:·6520·4d61·6b65·6669·6c65·2069·6e20·7468··e·Makefile·in·th | |||
| 000012d0:·6520·2762·7569·6c64·2720·6469·722e·0a20··e·'build'·dir..· | |||
| 000012e0:·2020·2020·2061·7267·762e·7075·7368·2827·······argv.push(' | |||
| 000012f0:·2d43·2729·0a20·2020·2020·2061·7267·762e··-C').······argv. | |||
| 00001300:·7075·7368·2827·6275·696c·6427·290a·2020··push('build').·· | |||
| 00001310:·2020·2020·6966·2028·6a6f·6273·2920·7b0a······if·(jobs)·{. | |||
| 00001320:·2020·2020·2020·2020·6a20·3d20·7061·7273··········j·=·pars | |||
| 00001330:·6549·6e74·286a·6f62·732c·2031·3029·0a20··eInt(jobs,·10).· | |||
| 00001340:·2020·2020·2020·2069·6620·2821·6973·4e61·········if·(!isNa | |||
| 00001350:·4e28·6a29·2026·2620·6a20·3e20·3029·207b··N(j)·&&·j·>·0)·{ | |||
| 00001360:·0a20·2020·2020·2020·2020·2061·7267·762e··.··········argv. | |||
| 00001370:·7075·7368·2827·2d2d·6a6f·6273·2729·0a20··push('--jobs').· | |||
| 000013 | 00001380:·2020·2020·2020·2020·2061·7267·762e·7075···········argv.pu | ||
| 000013d0:·7573·6828·272d·2d6a·6f62·7327·290a·2020··ush('--jobs').·· | |||
| 000013e0:·2020·2020·2020·2020·6172·6776·2e70·7573··········argv.pus | |||
| 000013f0:·6828·7265·7175·6972·6528·276f·7327·292e··h(require('os'). | |||
| 00001 | 00001390:·7368·286a·290a·2020·2020·2020·2020·7d20··sh(j).········}· | ||
| 000013a0:·656c·7365·2069·6620·286a·6f62·732e·746f··else·if·(jobs.to | |||
| 000013b0:·5570·7065·7243·6173·6528·2920·3d3d·3d20··UpperCase()·===· | |||
| 000013c0:·274d·4158·2729·207b·0a20·2020·2020·2020··'MAX')·{.······· | |||
| 000013d0:·2020·2061·7267·762e·7075·7368·2827·2d2d·····argv.push('-- | |||
| 000013e0:·6a6f·6273·2729·0a20·2020·2020·2020·2020··jobs').········· | |||
| 000013f0:·2061·7267·762e·7075·7368·2872·6571·7569···argv.push(requi | |||
| 00001400:·7265·2827·6f73·2729·2e61·7661·696c·6162··re('os').availab | |||
| 00001410:·6c65·5061·7261·6c6c·656c·6973·6d28·2929··leParallelism()) | |||
| 000014 | 00001420:·0a20·2020·2020·2020·207d·0a20·2020·2020··.········}.····· | ||
| 00001420 | 00001430:·207d·0a20·2020·207d·0a0a·2020·2020·6966···}.····}..····if | ||
| 000014 | 00001440:·2028·6d73·7673·2920·7b0a·2020·2020·2020···(msvs)·{.······ | ||
| 000014 | 00001450:·2f2f·2064·6964·2074·6865·2075·7365·7220··//·did·the·user· | ||
| 000014 | 00001460:·7370·6563·6966·7920·7468·6569·7220·6f77··specify·their·ow | ||
| 000014 | 00001470:·6e20·2e73·6c6e·2066·696c·653f·0a20·2020··n·.sln·file?.··· | ||
| 000014 | 00001480:·2020·2063·6f6e·7374·2068·6173·536c·6e20·····const·hasSln· | ||
| 000014 | 00001490:·3d20·6172·6776·2e73·6f6d·6528·6675·6e63··=·argv.some(func | ||
| 000014 | 000014a0:·7469·6f6e·2028·6172·6729·207b·0a20·2020··tion·(arg)·{.··· | ||
| 000014 | 000014b0:·2020·2020·2072·6574·7572·6e20·7061·7468·······return·path | ||
| 000014 | 000014c0:·2e65·7874·6e61·6d65·2861·7267·2920·3d3d··.extname(arg)·== | ||
| 000014 | 000014d0:·3d20·272e·736c·6e27·0a20·2020·2020·207d··=·'.sln'.······} | ||
| 000014 | 000014e0:·290a·2020·2020·2020·6966·2028·2168·6173··).······if·(!has | ||
| 000014 | 000014f0:·536c·6e29·207b·0a20·2020·2020·2020·2061··Sln)·{.········a | ||
| 00001 | 00001500:·7267·762e·756e·7368·6966·7428·6779·702e··rgv.unshift(gyp. | ||
| 000015 | 00001510:·6f70·7473·2e73·6f6c·7574·696f·6e20·7c7c··opts.solution·|| | ||
| 000015 | 00001520:·2067·7565·7373·6564·536f·6c75·7469·6f6e···guessedSolution | ||
| 00001520 | 00001530:·290a·2020·2020·2020·7d0a·2020·2020·7d0a··).······}.····}. | ||
| 000015 | 00001540:·0a20·2020·2069·6620·2821·7769·6e29·207b··.····if·(!win)·{ | ||
| 000015 | 00001550:·0a20·2020·2020·202f·2f20·4164·6420·6275··.······//·Add·bu | ||
| 000015 | 00001560:·696c·642d·7469·6d65·2064·6570·656e·6465··ild-time·depende | ||
| 000015 | 00001570:·6e63·7920·7379·6d6c·696e·6b73·2028·7375··ncy·symlinks·(su | ||
| 000015 | 00001580:·6368·2061·7320·5079·7468·6f6e·2920·746f··ch·as·Python)·to | ||
| 000015 | 00001590:·2050·4154·480a·2020·2020·2020·6275·696c···PATH.······buil | ||
| 000015 | 000015a0:·6442·696e·7344·6972·203d·2070·6174·682e··dBinsDir·=·path. | ||
| 000015 | 000015b0:·7265·736f·6c76·6528·2762·7569·6c64·272c··resolve('build', | ||
| 000015 | 000015c0:·2027·6e6f·6465·5f67·7970·5f62·696e·7327···'node_gyp_bins' | ||
| 000015 | 000015d0:·290a·2020·2020·2020·7072·6f63·6573·732e··).······process. | ||
| 000015 | 000015e0:·656e·762e·5041·5448·203d·2060·247b·6275··env.PATH·=·`${bu | ||
| 000015 | 000015f0:·696c·6442·696e·7344·6972·7d3a·247b·7072··ildBinsDir}:${pr | ||
| 00001 | 00001600:·6f63·6573·732e·656e·762e·5041·5448·7d60··ocess.env.PATH}` | ||
| 00001600 | 00001610:·0a20·2020·2020·2061·7761·6974·2066·732e··.······await·fs. | ||
| 00001620:·6d6b·6469·7228·6275·696c·6442·696e·7344··mkdir(buildBinsD | |||
| 00001630:·6972·2c20·7b20·7265·6375·7273·6976·653a··ir,·{·recursive: | |||
| 00001640:·2074·7275·6520·7d29·0a20·2020·2020·2063···true·}).······c | |||
| 00001650:·6f6e·7374·2073·796d·6c69·6e6b·4465·7374··onst·symlinkDest | |||
| 00001660:·696e·6174·696f·6e20·3d20·7061·7468·2e6a··ination·=·path.j | |||
| 000016 | 00001670:·6f69·6e28·6275·696c·6442·696e·7344·6972··oin(buildBinsDir | ||
| 00001620:·2c20·7b20·7265·6375·7273·6976·653a·2074··,·{·recursive:·t | |||
| 00001630:·7275·6520·7d29·0a20·2020·2020·2063·6f6e··rue·}).······con | |||
| Max diff block lines reached; -1/18214 bytes (-0.01%) of diff not shown. | |||
| Offset 185, 503 lines modified | Offset 185, 485 lines modified | ||
| 00000b80:·2020·2063·6f6e·7374·2063·6865·636b·7320·····const·checks· | 00000b80:·2020·2063·6f6e·7374·2063·6865·636b·7320·····const·checks· | ||
| 00000b90:·3d20·5b0a·2020·2020·2020·2020·7b0a·2020··=·[.········{.·· | 00000b90:·3d20·5b0a·2020·2020·2020·2020·7b0a·2020··=·[.········{.·· | ||
| 00000ba0:·2020·2020·2020·2020·6265·666f·7265·3a20··········before:· | 00000ba0:·2020·2020·2020·2020·6265·666f·7265·3a20··········before:· | ||
| 00000bb0:·2829·203d·3e20·7b0a·2020·2020·2020·2020··()·=>·{.········ | 00000bb0:·2829·203d·3e20·7b0a·2020·2020·2020·2020··()·=>·{.········ | ||
| 00000bc0:·2020·2020·6966·2028·2174·6869·732e·636f······if·(!this.co | 00000bc0:·2020·2020·6966·2028·2174·6869·732e·636f······if·(!this.co | ||
| 00000bd0:·6e66·6967·5079·7468·6f6e·2920·7b0a·2020··nfigPython)·{.·· | 00000bd0:·6e66·6967·5079·7468·6f6e·2920·7b0a·2020··nfigPython)·{.·· | ||
| 00000be0:·2020·2020·2020·2020·2020·2020·7468·6973··············this | 00000be0:·2020·2020·2020·2020·2020·2020·7468·6973··············this | ||
| 00000bf0:·2e61·6464·4c6f·6728· | 00000bf0:·2e61·6464·4c6f·6728·272d·2d70·7974·686f··.addLog('--pytho | ||
| 00000c00:·6e20·7761·7320·6e6f·7420·7365·7420·6f6e··n·was·not·set·on | |||
| 00000c10:·2074·6865·2063·6f6d·6d61·6e64·206c·696e···the·command·lin | |||
| 00000c20:·6527·290a·2020·2020·2020·2020·2020·2020··e').············ | |||
| 00000c30:·2020·7265·7475·726e·2053·4b49·500a·2020····return·SKIP.·· | |||
| 00000c40:·2020·2020·2020·2020·2020·7d0a·2020·2020············}.···· | |||
| 00000c50:·2020·2020·2020·2020·7468·6973·2e61·6464··········this.add | |||
| 00000c60:·4c6f·6728·602d·2d70·7974·686f·6e3d·247b··Log(`--python=${ | |||
| 00000c70:·7468·6973·2e63·6f6e·6669·6750·7974·686f··this.configPytho | |||
| 00000c80:·6e7d·2077·6173·2073·6574·206f·6e20·7468··n}·was·set·on·th | |||
| 00000c90:·6520·636f·6d6d·616e·6420·6c69·6e65·6029··e·command·line`) | |||
| 00000ca0:·0a20·2020·2020·2020·2020·207d·2c0a·2020··.··········},.·· | |||
| 00000cb0:·2020·2020·2020·2020·6368·6563·6b3a·2028··········check:·( | |||
| 00000cc0:·2920·3d3e·2074·6869·732e·6368·6563·6b43··)·=>·this.checkC | |||
| 00000cd0:·6f6d·6d61·6e64·2874·6869·732e·636f·6e66··ommand(this.conf | |||
| 00000ce0:·6967·5079·7468·6f6e·290a·2020·2020·2020··igPython).······ | |||
| 00000cf0:·2020·7d2c·0a20·2020·2020·2020·207b·0a20····},.········{.· | |||
| 00000 | 00000d00:·2020·2020·2020·2020·2062·6566·6f72·653a···········before: | ||
| 00000d10:·2028·2920·3d3e·207b·0a20·2020·2020·2020···()·=>·{.······· | |||
| 00000d20:·2020·2020·2069·6620·2821·7468·6973·2e65·······if·(!this.e | |||
| 00000d30:·6e76·2e50·5954·484f·4e29·207b·0a20·2020··nv.PYTHON)·{.··· | |||
| 00000d40:·2020·2020·2020·2020·2020·2074·6869·732e·············this. | |||
| 00000d50:·6164·644c·6f67·2827·5079·7468·6f6e·2069··addLog('Python·i | |||
| 00000 | 00000d60:·7320·6e6f·7420·7365·7420·6672·6f6d·2065··s·not·set·from·e | ||
| 00000c20:·2063·6f6d·6d61·6e64·206c·696e·6520·6f72···command·line·or | |||
| 00000 | 00000d70:·6e76·6972·6f6e·6d65·6e74·2076·6172·6961··nvironment·varia | ||
| 00000d80:·626c·6520·2720·2b0a·2020·2020·2020·2020··ble·'·+.········ | |||
| 00000d90:·2020·2020·2020·2020·2750·5954·484f·4e27··········'PYTHON' | |||
| 00000 | 00000da0:·290a·2020·2020·2020·2020·2020·2020·2020··).·············· | ||
| 00000 | 00000db0:·7265·7475·726e·2053·4b49·500a·2020·2020··return·SKIP.···· | ||
| 00000dc0:·2020·2020·2020·2020·7d0a·2020·2020·2020··········}.······ | |||
| 00000dd0:·2020·2020·2020·7468·6973·2e61·6464·4c6f········this.addLo | |||
| 00000de0:·6728·2763·6865·636b·696e·6720·5079·7468··g('checking·Pyth | |||
| 00000df0:·6f6e·2065·7870·6c69·6369·746c·7920·7365··on·explicitly·se | |||
| 00000e00:·7420·6672·6f6d·2065·6e76·6972·6f6e·6d65··t·from·environme | |||
| 00000e10:·6e74·2027·202b·0a20·2020·2020·2020·2020··nt·'·+.········· | |||
| 00000e20:·2020·2020·2027·7661·7269·6162·6c65·2050·······'variable·P | |||
| 00000e30:·5954·484f·4e27·290a·2020·2020·2020·2020··YTHON').········ | |||
| 00000e40:·2020·2020·7468·6973·2e61·6464·4c6f·6728······this.addLog( | |||
| 00000e50:·602d·2070·726f·6365·7373·2e65·6e76·2e50··`-·process.env.P | |||
| 00000e60:·5954·484f·4e20·6973·2022·247b·7468·6973··YTHON·is·"${this | |||
| 00000e70:·2e65·6e76·2e50·5954·484f·4e7d·2260·290a··.env.PYTHON}"`). | |||
| 00000 | 00000e80:·2020·2020·2020·2020·2020·7d2c·0a20·2020············},.··· | ||
| 00000c70:·2020·2020·2020·2020·2074·6869·732e·6164···········this.ad | |||
| 00000c80:·644c·6f67·2827·6368·6563·6b69·6e67·2050··dLog('checking·P | |||
| 00000c90:·7974·686f·6e20·6578·706c·6963·6974·6c79··ython·explicitly | |||
| 00000ca0:·2073·6574·2066·726f·6d20·636f·6d6d·616e···set·from·comman | |||
| 00000cb0:·6420·6c69·6e65·206f·7220·2720·2b0a·2020··d·line·or·'·+.·· | |||
| 00000cc0:·2020·2020·2020·2020·2020·2020·276e·706d··············'npm | |||
| 00000cd0:·2063·6f6e·6669·6775·7261·7469·6f6e·2729···configuration') | |||
| 00000ce0:·0a20·2020·2020·2020·2020·2020·2074·6869··.············thi | |||
| 00000cf0:·732e·6164·644c·6f67·2827·2d20·222d·2d70··s.addLog('-·"--p | |||
| 00000d00:·7974·686f·6e3d·2220·6f72·2022·6e70·6d20··ython="·or·"npm· | |||
| 00000d10:·636f·6e66·6967·2067·6574·2070·7974·686f··config·get·pytho | |||
| 00000d20:·6e22·2069·7320·2720·2b0a·2020·2020·2020··n"·is·'·+.······ | |||
| 00000d30:·2020·2020·2020·2020·6022·247b·7468·6973··········`"${this | |||
| 00000d40:·2e63·6f6e·6669·6750·7974·686f·6e7d·2260··.configPython}"` | |||
| 00000d50:·290a·2020·2020·2020·2020·2020·7d2c·0a20··).··········},.· | |||
| 00000 | 00000e90:·2020·2020·2020·2063·6865·636b·3a20·2829·········check:·() | ||
| 00000 | 00000ea0:·203d·3e20·7468·6973·2e63·6865·636b·436f···=>·this.checkCo | ||
| 00000 | 00000eb0:·6d6d·616e·6428·7468·6973·2e65·6e76·2e50··mmand(this.env.P | ||
| 00000d90:·6669·6750·7974·686f·6e29·0a20·2020·2020··figPython).····· | |||
| 00000da0:·2020·207d·2c0a·2020·2020·2020·2020·7b0a·····},.········{. | |||
| 00000db0:·2020·2020·2020·2020·2020·6265·666f·7265············before | |||
| 00000dc0:·3a20·2829·203d·3e20·7b0a·2020·2020·2020··:·()·=>·{.······ | |||
| 00000dd0:·2020·2020·2020·6966·2028·2174·6869·732e········if·(!this. | |||
| 00000 | 00000ec0:·5954·484f·4e29·0a20·2020·2020·2020·207d··YTHON).········} | ||
| 00000ed0:·0a20·2020·2020·205d·0a0a·2020·2020·2020··.······]..······ | |||
| 00000ee0:·6966·2028·7468·6973·2e77·696e·2920·7b0a··if·(this.win)·{. | |||
| 00000ef0:·2020·2020·2020·2020·6368·6563·6b73·2e70··········checks.p | |||
| 00000f00:·7573·6828·7b0a·2020·2020·2020·2020·2020··ush({.·········· | |||
| 00000f10:·6265·666f·7265·3a20·2829·203d·3e20·7b0a··before:·()·=>·{. | |||
| 00000 | 00000f20:·2020·2020·2020·2020·2020·2020·7468·6973··············this | ||
| 00000f30:·2e61·6464·4c6f·6728·0a20·2020·2020·2020··.addLog(.······· | |||
| 00000f40:·2020·2020·2020·2027·6368·6563·6b69·6e67·········'checking | |||
| 00000f50:·2069·6620·7468·6520·7079·206c·6175·6e63···if·the·py·launc | |||
| 00000f60:·6865·7220·6361·6e20·6265·2075·7365·6420··her·can·be·used· | |||
| 00000f70:·746f·2066·696e·6420·5079·7468·6f6e·2033··to·find·Python·3 | |||
| 00000e00:·2e61·6464·4c6f·6728·2750·7974·686f·6e20··.addLog('Python· | |||
| 00000e10:·6973·206e·6f74·2073·6574·2066·726f·6d20··is·not·set·from· | |||
| 00000e20:·656e·7669·726f·6e6d·656e·7420·7661·7269··environment·vari | |||
| 00000e30:·6162·6c65·2027·202b·0a20·2020·2020·2020··able·'·+.······· | |||
| 00000e40:·2020·2020·2020·2020·2027·5059·5448·4f4e···········'PYTHON | |||
| 00000e50:·2729·0a20·2020·2020·2020·2020·2020·2020··').············· | |||
| 00000e60:·2072·6574·7572·6e20·534b·4950·0a20·2020···return·SKIP.··· | |||
| 00000e70:·2020·2020·2020·2020·207d·0a20·2020·2020···········}.····· | |||
| 00000e80:·2020·2020·2020·2074·6869·732e·6164·644c·········this.addL | |||
| 00000e90:·6f67·2827·6368·6563·6b69·6e67·2050·7974··og('checking·Pyt | |||
| 00000ea0:·686f·6e20·6578·706c·6963·6974·6c79·2073··hon·explicitly·s | |||
| 00000eb0:·6574·2066·726f·6d20·656e·7669·726f·6e6d··et·from·environm | |||
| 00000ec0:·656e·7420·2720·2b0a·2020·2020·2020·2020··ent·'·+.········ | |||
| 00000ed0:·2020·2020·2020·2776·6172·6961·626c·6520········'variable· | |||
| Max diff block lines reached; 57462/67560 bytes (85.05%) of diff not shown. | |||
| Offset 52, 1222 lines modified | Offset 52, 1222 lines modified | ||
| 00000330:·2028·2920·7b0a·2020·2020·7468·6973·2e63···()·{.····this.c | 00000330:·2028·2920·7b0a·2020·2020·7468·6973·2e63···()·{.····this.c | ||
| 00000340:·6f6e·6669·6756·6572·7369·6f6e·5965·6172··onfigVersionYear | 00000340:·6f6e·6669·6756·6572·7369·6f6e·5965·6172··onfigVersionYear | ||
| 00000350:·203d·206e·756c·6c0a·2020·2020·7468·6973···=·null.····this | 00000350:·203d·206e·756c·6c0a·2020·2020·7468·6973···=·null.····this | ||
| 00000360:·2e63·6f6e·6669·6750·6174·6820·3d20·6e75··.configPath·=·nu | 00000360:·2e63·6f6e·6669·6750·6174·6820·3d20·6e75··.configPath·=·nu | ||
| 00000370:·6c6c·0a20·2020·2069·6620·2874·6869·732e··ll.····if·(this. | 00000370:·6c6c·0a20·2020·2069·6620·2874·6869·732e··ll.····if·(this. | ||
| 00000380:·636f·6e66·6967·4d73·7673·5665·7273·696f··configMsvsVersio | 00000380:·636f·6e66·6967·4d73·7673·5665·7273·696f··configMsvsVersio | ||
| 00000390:·6e29·207b·0a20·2020·2020·2074·6869·732e··n)·{.······this. | 00000390:·6e29·207b·0a20·2020·2020·2074·6869·732e··n)·{.······this. | ||
| 000003a0:·6164·644c·6f67·282 | 000003a0:·6164·644c·6f67·2860·2d2d·6d73·7673·5f76··addLog(`--msvs_v | ||
| 000003b0:·7369·6f6e· | 000003b0:·6572·7369·6f6e·3d24·7b74·6869·732e·636f··ersion=${this.co | ||
| 000003c0:·6e66·6967·4d73·7673·5665·7273·696f·6e7d··nfigMsvsVersion} | |||
| 000003d0:·2077·6173·2073·6574·206f·6e20·7468·6520···was·set·on·the· | |||
| 000003 | 000003e0:·636f·6d6d·616e·6420·6c69·6e65·6029·0a20··command·line`).· | ||
| 000003d0:·7220·6e70·6d20·636f·6e66·6967·2729·0a20··r·npm·config').· | |||
| 000003 | 000003f0:·2020·2020·2069·6620·2874·6869·732e·636f·······if·(this.co | ||
| 00000 | 00000400:·6e66·6967·4d73·7673·5665·7273·696f·6e2e··nfigMsvsVersion. | ||
| 000004 | 00000410:·6d61·7463·6828·2f5e·5c64·7b34·7d24·2f29··match(/^\d{4}$/) | ||
| 000004 | 00000420:·2920·7b0a·2020·2020·2020·2020·7468·6973··)·{.········this | ||
| 000004 | 00000430:·2e63·6f6e·6669·6756·6572·7369·6f6e·5965··.configVersionYe | ||
| 000004 | 00000440:·6172·203d·2070·6172·7365·496e·7428·7468··ar·=·parseInt(th | ||
| 000004 | 00000450:·6973·2e63·6f6e·6669·674d·7376·7356·6572··is.configMsvsVer | ||
| 000004 | 00000460:·7369·6f6e·2c20·3130·290a·2020·2020·2020··sion,·10).······ | ||
| 000004 | 00000470:·2020·7468·6973·2e61·6464·4c6f·6728·0a20····this.addLog(.· | ||
| 000004 | 00000480:·2020·2020·2020·2020·2060·2d20·6c6f·6f6b···········`-·look | ||
| 000004 | 00000490:·696e·6720·666f·7220·5669·7375·616c·2053··ing·for·Visual·S | ||
| 000004 | 000004a0:·7475·6469·6f20·7665·7273·696f·6e20·247b··tudio·version·${ | ||
| 000004 | 000004b0:·7468·6973·2e63·6f6e·6669·6756·6572·7369··this.configVersi | ||
| 000004 | 000004c0:·6f6e·5965·6172·7d60·290a·2020·2020·2020··onYear}`).······ | ||
| 000004 | 000004d0:·7d20·656c·7365·207b·0a20·2020·2020·2020··}·else·{.······· | ||
| 000004 | 000004e0:·2074·6869·732e·636f·6e66·6967·5061·7468···this.configPath | ||
| 000004 | 000004f0:·203d·2070·6174·682e·7265·736f·6c76·6528···=·path.resolve( | ||
| 00000 | 00000500:·7468·6973·2e63·6f6e·6669·674d·7376·7356··this.configMsvsV | ||
| 000005 | 00000510:·6572·7369·6f6e·290a·2020·2020·2020·2020··ersion).········ | ||
| 000005 | 00000520:·7468·6973·2e61·6464·4c6f·6728·0a20·2020··this.addLog(.··· | ||
| 000005 | 00000530:·2020·2020·2020·2060·2d20·6c6f·6f6b·696e·········`-·lookin | ||
| 000005 | 00000540:·6720·666f·7220·5669·7375·616c·2053·7475··g·for·Visual·Stu | ||
| 000005 | 00000550:·6469·6f20·696e·7374·616c·6c65·6420·696e··dio·installed·in | ||
| 000005 | 00000560:·2022·247b·7468·6973·2e63·6f6e·6669·6750···"${this.configP | ||
| 000005 | 00000570:·6174·687d·2260·290a·2020·2020·2020·7d0a··ath}"`).······}. | ||
| 000005 | 00000580:·2020·2020·7d20·656c·7365·207b·0a20·2020······}·else·{.··· | ||
| 000005 | 00000590:·2020·2074·6869·732e·6164·644c·6f67·2827·····this.addLog(' | ||
| 000005 | 000005a0:·2d2d·6d73·7673·5f76·6572·7369·6f6e·2077··--msvs_version·w | ||
| 000005b0:·6173·206e·6f74·2073·6574·206f·6e20·7468··as·not·set·on·th | |||
| 000005c0:·6520·636f·6d6d·616e·6420·6c69·6e65·2729··e·command·line') | |||
| 000005d0:·0a20·2020·207d·0a0a·2020·2020·6966·2028··.····}..····if·( | |||
| 000005a0:·2073·6574·2066·726f·6d20·636f·6d6d·616e···set·from·comman | |||
| 000005b0:·6420·6c69·6e65·206f·7220·6e70·6d20·636f··d·line·or·npm·co | |||
| 000005c0:·6e66·6967·2729·0a20·2020·207d·0a0a·2020··nfig').····}..·· | |||
| 000005d0:·2020·6966·2028·7072·6f63·6573·732e·656e····if·(process.en | |||
| 000005e0:·762e·5643·494e·5354·414c·4c44·4952·2920··v.VCINSTALLDIR)· | |||
| 000005f0:·7b0a·2020·2020·2020·7468·6973·2e65·6e76··{.······this.env | |||
| 00000600:·5663·496e·7374·616c·6c44·6972·203d·0a20··VcInstallDir·=.· | |||
| 00000610:·2020·2020·2020·2070·6174·682e·7265·736f·········path.reso | |||
| 00000 | 000005e0:·7072·6f63·6573·732e·656e·762e·5643·494e··process.env.VCIN | ||
| 00000630:·5643·494e·5354·414c·4c44·4952·2c20·272e··VCINSTALLDIR,·'. | |||
| 00000640:·2e27·290a·2020·2020·2020·7468·6973·2e61··.').······this.a | |||
| 00000 | 000005f0:·5354·414c·4c44·4952·2920·7b0a·2020·2020··STALLDIR)·{.···· | ||
| 00000600:·2020·7468·6973·2e65·6e76·5663·496e·7374····this.envVcInst | |||
| 00000610:·616c·6c44·6972·203d·0a20·2020·2020·2020··allDir·=.······· | |||
| 00000620:·2070·6174·682e·7265·736f·6c76·6528·7072···path.resolve(pr | |||
| 00000630:·6f63·6573·732e·656e·762e·5643·494e·5354··ocess.env.VCINST | |||
| 00000640:·414c·4c44·4952·2c20·272e·2e27·290a·2020··ALLDIR,·'..').·· | |||
| 00000650:·2020·2020·7468·6973·2e61·6464·4c6f·6728······this.addLog( | |||
| 00000660:·2772·756e·6e69·6e67·2069·6e20·5653·2043··'running·in·VS·C | |||
| 00000670:·6f6d·6d61·6e64·2050·726f·6d70·742c·2069··ommand·Prompt,·i | |||
| 00000680:·6e73·7461·6c6c·6174·696f·6e20·7061·7468··nstallation·path | |||
| 00000690:·2069·733a·5c6e·2720·2b0a·2020·2020·2020···is:\n'·+.······ | |||
| 000006a0:·2020·6022·247b·7468·6973·2e65·6e76·5663····`"${this.envVc | |||
| 000006b0:·496e·7374·616c·6c44·6972·7d22·5c6e·2d20··InstallDir}"\n-· | |||
| 000006c0:·7769·6c6c·206f·6e6c·7920·7573·6520·7468··will·only·use·th | |||
| 000006d0:·6973·2076·6572·7369·6f6e·6029·0a20·2020··is·version`).··· | |||
| 000006e0:·207d·2065·6c73·6520·7b0a·2020·2020·2020···}·else·{.······ | |||
| 000006f0:·7468·6973·2e61·6464·4c6f·6728·2756·4349··this.addLog('VCI | |||
| 00000700:·4e53·5441·4c4c·4449·5220·6e6f·7420·7365··NSTALLDIR·not·se | |||
| 00000710:·742c·206e·6f74·2072·756e·6e69·6e67·2069··t,·not·running·i | |||
| 00000 | 00000720:·6e20·5653·2043·6f6d·6d61·6e64·2050·726f··n·VS·Command·Pro | ||
| 00000730:·6d70·7427·290a·2020·2020·7d0a·0a20·2020··mpt').····}..··· | |||
| 00000740:·2063·6f6e·7374·2063·6865·636b·7320·3d20···const·checks·=· | |||
| 00000670:·6d70·742c·2069·6e73·7461·6c6c·6174·696f··mpt,·installatio | |||
| 00000680:·6e20·7061·7468·2069·733a·5c6e·2720·2b0a··n·path·is:\n'·+. | |||
| 00000690:·2020·2020·2020·2020·6022·247b·7468·6973··········`"${this | |||
| 000006a0:·2e65·6e76·5663·496e·7374·616c·6c44·6972··.envVcInstallDir | |||
| 000006b0:·7d22·5c6e·2d20·7769·6c6c·206f·6e6c·7920··}"\n-·will·only· | |||
| 000006c0:·7573·6520·7468·6973·2076·6572·7369·6f6e··use·this·version | |||
| 000006d0:·6029·0a20·2020·207d·2065·6c73·6520·7b0a··`).····}·else·{. | |||
| 000006e0:·2020·2020·2020·7468·6973·2e61·6464·4c6f········this.addLo | |||
| 000006f0:·6728·2756·4349·4e53·5441·4c4c·4449·5220··g('VCINSTALLDIR· | |||
| 00000700:·6e6f·7420·7365·742c·206e·6f74·2072·756e··not·set,·not·run | |||
| 00000710:·6e69·6e67·2069·6e20·5653·2043·6f6d·6d61··ning·in·VS·Comma | |||
| 00000720:·6e64·2050·726f·6d70·7427·290a·2020·2020··nd·Prompt').···· | |||
| 00000730:·7d0a·0a20·2020·2063·6f6e·7374·2063·6865··}..····const·che | |||
| 00000740:·636b·7320·3d20·5b0a·2020·2020·2020·2829··cks·=·[.······() | |||
| 00000750:·203d·3e20·7468·6973·2e66·696e·6456·6973···=>·this.findVis | |||
| 00000760:·7561·6c53·7475·6469·6f32·3031·394f·724e··ualStudio2019OrN | |||
| 00000770:·6577·6572·4672·6f6d·5370·6563·6966·6965··ewerFromSpecifie | |||
| 00000780:·644c·6f63·6174·696f·6e28·292c·0a20·2020··dLocation(),.··· | |||
| 00000790:·2020·2028·2920·3d3e·2074·6869·732e·6669·····()·=>·this.fi | |||
| 000007a0:·6e64·5669·7375·616c·5374·7564·696f·3230··ndVisualStudio20 | |||
| 000007b0:·3139·4f72·4e65·7765·7255·7369·6e67·5365··19OrNewerUsingSe | |||
| 000007c0:·7475·704d·6f64·756c·6528·292c·0a20·2020··tupModule(),.··· | |||
| Max diff block lines reached; 144058/167680 bytes (85.91%) of diff not shown. | |||
| Offset 407, 15 lines modified | Offset 407, 15 lines modified | ||
| 00001960:·2020·206c·6f67·2e65·7272·6f72·2827·6572·····log.error('er | 00001960:·2020·206c·6f67·2e65·7272·6f72·2827·6572·····log.error('er | ||
| 00001970:·726f·7220·7768·696c·6520·6578·7472·6163··ror·while·extrac | 00001970:·726f·7220·7768·696c·6520·6578·7472·6163··ror·while·extrac | ||
| 00001980:·7469·6e67·2074·6172·6261·6c6c·272c·2063··ting·tarball',·c | 00001980:·7469·6e67·2074·6172·6261·6c6c·272c·2063··ting·tarball',·c | ||
| 00001990:·6f64·652c·206d·6573·7361·6765·290a·2020··ode,·message).·· | 00001990:·6f64·652c·206d·6573·7361·6765·290a·2020··ode,·message).·· | ||
| 000019a0:·2020·7d0a·0a20·2020·202f·2f20·646f·776e····}..····//·down | 000019a0:·2020·7d0a·0a20·2020·202f·2f20·646f·776e····}..····//·down | ||
| 000019b0:·6c6f·6164·2074·6865·2074·6172·6261·6c6c··load·the·tarball | 000019b0:·6c6f·6164·2074·6865·2074·6172·6261·6c6c··load·the·tarball | ||
| 000019c0:·2061·6e64·2065·7874·7261·6374·210a·2020···and·extract!.·· | 000019c0:·2061·6e64·2065·7874·7261·6374·210a·2020···and·extract!.·· | ||
| 000019d0:·2020·2f2f·204f·6d6 | 000019d0:·2020·2f2f·204f·6d69·7474·6564·206f·6e20····//·Omitted·on· | ||
| 000019e0:·5769·6e64·6f77·7320·6966·206f·6e6c·7920··Windows·if·only· | 000019e0:·5769·6e64·6f77·7320·6966·206f·6e6c·7920··Windows·if·only· | ||
| 000019f0:·6e65·7720·6e6f·6465·2e6c·6962·2069·7320··new·node.lib·is· | 000019f0:·6e65·7720·6e6f·6465·2e6c·6962·2069·7320··new·node.lib·is· | ||
| 00001a00:·7265·7175·6972·6564·0a0a·2020·2020·2f2f··required..····// | 00001a00:·7265·7175·6972·6564·0a0a·2020·2020·2f2f··required..····// | ||
| 00001a10:·2074·6865·7265·2063·616e·2062·6520·6669···there·can·be·fi | 00001a10:·2074·6865·7265·2063·616e·2062·6520·6669···there·can·be·fi | ||
| 00001a20:·6c65·2065·7272·6f72·7320·6672·6f6d·2074··le·errors·from·t | 00001a20:·6c65·2065·7272·6f72·7320·6672·6f6d·2074··le·errors·from·t | ||
| 00001a30:·6172·2069·6620·7061·7261·6c6c·656c·2069··ar·if·parallel·i | 00001a30:·6172·2069·6620·7061·7261·6c6c·656c·2069··ar·if·parallel·i | ||
| 00001a40:·6e73·7461·6c6c·730a·2020·2020·2f2f·2061··nstalls.····//·a | 00001a40:·6e73·7461·6c6c·730a·2020·2020·2f2f·2061··nstalls.····//·a |
| Offset 279, 80 lines modified | Offset 279, 81 lines modified | ||
| 00001160:·2027·6e6f·6465·2720·3f20·6e61·6d65·202b···'node'·?·name·+ | 00001160:·2027·6e6f·6465·2720·3f20·6e61·6d65·202b···'node'·?·name·+ | ||
| 00001170:·2027·2d27·203a·2027·2729·202b·2076·6572···'-'·:·'')·+·ver | 00001170:·2027·2d27·203a·2027·2729·202b·2076·6572···'-'·:·'')·+·ver | ||
| 00001180:·7369·6f6e·2c0a·2020·2020·6961·3332·3a20··sion,.····ia32:· | 00001180:·7369·6f6e·2c0a·2020·2020·6961·3332·3a20··sion,.····ia32:· | ||
| 00001190:·7b0a·2020·2020·2020·6c69·6255·726c·3a20··{.······libUrl:· | 00001190:·7b0a·2020·2020·2020·6c69·6255·726c·3a20··{.······libUrl:· | ||
| 000011a0:·6c69·6255·726c·3332·2c0a·2020·2020·2020··libUrl32,.······ | 000011a0:·6c69·6255·726c·3332·2c0a·2020·2020·2020··libUrl32,.······ | ||
| 000011b0:·6c69·6250·6174·683a·206e·6f72·6d61·6c69··libPath:·normali | 000011b0:·6c69·6250·6174·683a·206e·6f72·6d61·6c69··libPath:·normali | ||
| 000011c0:·7a65·5061·7468·2870·6174·682e·7265·6c61··zePath(path.rela | 000011c0:·7a65·5061·7468·2870·6174·682e·7265·6c61··zePath(path.rela | ||
| 000011d0:·7469·7665·28 | 000011d0:·7469·7665·286e·6577·2055·524c·2862·6173··tive(new·URL(bas | ||
| 000011e0:·6 | 000011e0:·6555·726c·292e·7061·7468·6e61·6d65·2c20··eUrl).pathname,· | ||
| 000011f0:·6 | 000011f0:·6e65·7720·5552·4c28·6c69·6255·726c·3332··new·URL(libUrl32 | ||
| 00001200:·292e·7061·7468· | 00001200:·292e·7061·7468·6e61·6d65·2929·0a20·2020··).pathname)).··· | ||
| 00001210:·2020·2020·7836·343a·207b·0a20· | 00001210:·207d·2c0a·2020·2020·7836·343a·207b·0a20···},.····x64:·{.· | ||
| 00001220:·206c·6962·5572·6c3a·206c·6962· | 00001220:·2020·2020·206c·6962·5572·6c3a·206c·6962·······libUrl:·lib | ||
| 00001230:·342c·0a20·2020·2020·206c·6962· | 00001230:·5572·6c36·342c·0a20·2020·2020·206c·6962··Url64,.······lib | ||
| 00001240:·3a20·6e6f·726d·616c·697a·6550· | 00001240:·5061·7468·3a20·6e6f·726d·616c·697a·6550··Path:·normalizeP | ||
| 00001250:·7061·7468·2e72·656c·6174·6976· | 00001250:·6174·6828·7061·7468·2e72·656c·6174·6976··ath(path.relativ | ||
| 00001260:·6c2e·7061·7273·6528·6261·7365·5572·6c29··l.parse(baseUrl) | |||
| 000012 | 00001260:·6528·6e65·7720·5552·4c28·6261·7365·5572··e(new·URL(baseUr | ||
| 00001270:·6c29·2e70·6174·686e·616d·652c·206e·6577··l).pathname,·new | |||
| 00001280:·286c·6962·5572·6c36·3429·2e70· | 00001280:·2055·524c·286c·6962·5572·6c36·3429·2e70···URL(libUrl64).p | ||
| 00001290:·290a·2020·2020·7d2c·0a20·2020·2061·726d··).····},.····arm | |||
| 000012a0:·3634·3a20·7b0a·2020·2020·2020·6c69·6255··64:·{.······libU | |||
| 000012b0:·726c·3a20·6c69·6255·726c·4172·6d36·342c··rl:·libUrlArm64, | |||
| 000012c0:·0a20·2020·2020·206c·6962·5061·7468·3a20··.······libPath:· | |||
| 000012d0:·6e6f·726d·616c·697a·6550·6174·6828·7061··normalizePath(pa | |||
| 000012e0:·7468·2e72·656c·6174·6976·6528·7572·6c2e··th.relative(url. | |||
| 000012f0:·7061·7273·6528·6261·7365·5572·6c29·2e70··parse(baseUrl).p | |||
| 00001300:·6174·682c·2075·726c·2e70·6172·7365·286c··ath,·url.parse(l | |||
| 00001 | 00001290:·6174·686e·616d·6529·290a·2020·2020·7d2c··athname)).····}, | ||
| 000012a0:·0a20·2020·2061·726d·3634·3a20·7b0a·2020··.····arm64:·{.·· | |||
| 000012b0:·2020·2020·6c69·6255·726c·3a20·6c69·6255······libUrl:·libU | |||
| 000012c0:·726c·4172·6d36·342c·0a20·2020·2020·206c··rlArm64,.······l | |||
| 000012d0:·6962·5061·7468·3a20·6e6f·726d·616c·697a··ibPath:·normaliz | |||
| 000012e0:·6550·6174·6828·7061·7468·2e72·656c·6174··ePath(path.relat | |||
| 000012f0:·6976·6528·6e65·7720·5552·4c28·6261·7365··ive(new·URL(base | |||
| 00001300:·5572·6c29·2e70·6174·686e·616d·652c·206e··Url).pathname,·n | |||
| 00001310:·6577·2055·524c·286c·6962·5572·6c41·726d··ew·URL(libUrlArm | |||
| 00001320:·3634·292e·7061·7468·6e61·6d65·2929·0a20··64).pathname)).· | |||
| 000013 | 00001330:·2020·207d·0a20·207d·0a7d·0a0a·6675·6e63·····}.··}.}..func | ||
| 000013 | 00001340:·7469·6f6e·206e·6f72·6d61·6c69·7a65·5061··tion·normalizePa | ||
| 000013 | 00001350:·7468·2028·7029·207b·0a20·2072·6574·7572··th·(p)·{.··retur | ||
| 000013 | 00001360:·6e20·7061·7468·2e6e·6f72·6d61·6c69·7a65··n·path.normalize | ||
| 000013 | 00001370:·2870·292e·7265·706c·6163·6528·2f5c·5c2f··(p).replace(/\\/ | ||
| 000013 | 00001380:·672c·2027·2f27·290a·7d0a·0a66·756e·6374··g,·'/').}..funct | ||
| 000013 | 00001390:·696f·6e20·7265·736f·6c76·654c·6962·5572··ion·resolveLibUr | ||
| 000013 | 000013a0:·6c20·286e·616d·652c·2064·6566·6175·6c74··l·(name,·default | ||
| 000013 | 000013b0:·5572·6c2c·2061·7263·682c·2076·6572·7369··Url,·arch,·versi | ||
| 000013 | 000013c0:·6f6e·4d61·6a6f·7229·207b·0a20·2063·6f6e··onMajor)·{.··con | ||
| 000013 | 000013d0:·7374·2062·6173·6520·3d20·7572·6c2e·7265··st·base·=·url.re | ||
| 000013 | 000013e0:·736f·6c76·6528·6465·6661·756c·7455·726c··solve(defaultUrl | ||
| 000013 | 000013f0:·2c20·272e·2f27·290a·2020·636f·6e73·7420··,·'./').··const· | ||
| 00001 | 00001400:·6861·734c·6962·5572·6c20·3d20·6269·7473··hasLibUrl·=·bits | ||
| 00001410:·7265·2e74·6573·7428·6465·6661·756c·7455··re.test(defaultU | |||
| 00001420:·726c·2920·7c7c·2028·7665·7273·696f·6e4d··rl)·||·(versionM | |||
| 00001430:·616a·6f72·203d·3d3d·2033·2026·2620·6269··ajor·===·3·&&·bi | |||
| 000014 | 00001440:·7473·7265·5633·2e74·6573·7428·6465·6661··tsreV3.test(defa | ||
| 00001410:·756c·7455·726c·2920·7c7c·2028·7665·7273··ultUrl)·||·(vers | |||
| 00001420:·696f·6e4d·616a·6f72·203d·3d3d·2033·2026··ionMajor·===·3·& | |||
| 00001430:·2620·6269·7473·7265·5633·2e74·6573·7428··&·bitsreV3.test( | |||
| 000014 | 00001450:·756c·7455·726c·2929·0a0a·2020·6966·2028··ultUrl))..··if·( | ||
| 000014 | 00001460:·2168·6173·4c69·6255·726c·2920·7b0a·2020··!hasLibUrl)·{.·· | ||
| 000014 | 00001470:·2020·2f2f·206c·6574·2773·2061·7373·756d····//·let's·assum | ||
| 000014 | 00001480:·6520·6974·2773·2061·2062·6173·6555·726c··e·it's·a·baseUrl | ||
| 000014 | 00001490:·2074·6865·6e0a·2020·2020·6966·2028·7665···then.····if·(ve | ||
| 000014 | 000014a0:·7273·696f·6e4d·616a·6f72·203e·3d20·3129··rsionMajor·>=·1) | ||
| 000014 | 000014b0:·207b·0a20·2020·2020·2072·6574·7572·6e20···{.······return· | ||
| 000014c0:·7572·6c2e·7265·736f·6c76·6528·6261·7365··url.resolve(base | |||
| 000014d0:·2c20·2777·696e·2d27·202b·2061·7263·6820··,·'win-'·+·arch· | |||
| 000014e0:·2b20·272f·2720·2b20·6e61·6d65·202b·2027··+·'/'·+·name·+·' | |||
| 000014f0:·2e6c·6962·2729·0a20·2020·207d·0a20·2020··.lib').····}.··· | |||
| 00001500:·202f·2f20·7072·696f·7220·746f·2069·6f2e···//·prior·to·io. | |||
| 00001510:·6a73·4031·2e30·2e30·2033·322d·6269·7420··[email protected]·32-bit· | |||
| 00001520:·6e6f·6465·2e6c·6962·206c·6976·6573·2069··node.lib·lives·i | |||
| 00001530:·6e20·2f2c·2036·342d·6269·7420·6c69·7665··n·/,·64-bit·live | |||
| 00001540:·7320·696e·202f·7836·342f·0a20·2020·2072··s·in·/x64/.····r | |||
| 00001 | 00001550:·6574·7572·6e20·7572·6c2e·7265·736f·6c76··eturn·url.resolv | ||
| 00001 | 00001560:·6528·6261·7365·2c20·2861·7263·6820·3d3d··e(base,·(arch·== | ||
| 00001570:·3d20·2778·3836·2720·3f20·2727·203a·2061··=·'x86'·?·''·:·a | |||
| 00001 | 00001580:·7263·6820·2b20·272f·2729·202b·206e·616d··rch·+·'/')·+·nam | ||
| 000014e0:·202b·2027·2e6c·6962·2729·0a20·2020·207d···+·'.lib').····} | |||
| 000014f0:·0a20·2020·202f·2f20·7072·696f·7220·746f··.····//·prior·to | |||
| 00001500:·2069·6f2e·6a73·4031·2e30·2e30·2033·322d···[email protected]·32- | |||
| 00001510:·6269·7420·6e6f·6465·2e6c·6962·206c·6976··bit·node.lib·liv | |||
| 00001520:·6573·2069·6e20·2f2c·2036·342d·6269·7420··es·in·/,·64-bit· | |||
| 00001530:·6c69·7665·7320·696e·202f·7836·342f·0a20··lives·in·/x64/.· | |||
| 00001540:·2020·2072·6574·7572·6e20·7572·6c2e·7265·····return·url.re | |||
| 00001550:·736f·6c76·6528·6261·7365·2c20·2861·7263··solve(base,·(arc | |||
| 00001560:·6820·3d3d·3d20·2778·3836·2720·3f20·2727··h·===·'x86'·?·'' | |||
| 00001570:·203a·2061·7263·6820·2b20·272f·2729·202b···:·arch·+·'/')·+ | |||
| 000015 | 00001590:·6520·2b20·272e·6c69·6227·290a·2020·7d0a··e·+·'.lib').··}. | ||
| 000015 | 000015a0:·0a20·202f·2f20·656c·7365·2077·6520·6861··.··//·else·we·ha | ||
| 000015 | 000015b0:·7665·2061·2070·726f·7065·7220·7572·6c20··ve·a·proper·url· | ||
| 000015 | 000015c0:·746f·2061·202e·6c69·622c·206a·7573·7420··to·a·.lib,·just· | ||
| 000015 | 000015d0:·6d61·6b65·2073·7572·6520·6974·2773·2074··make·sure·it's·t | ||
| 000015 | 000015e0:·6865·2072·6967·6874·2061·7263·680a·2020··he·right·arch.·· | ||
| 000015 | 000015f0:·7265·7475·726e·2064·6566·6175·6c74·5572··return·defaultUr | ||
| 00001 | 00001600:·6c2e·7265·706c·6163·6528·7665·7273·696f··l.replace(versio | ||
| 000016 | 00001610:·6e4d·616a·6f72·203d·3d3d·2033·203f·2062··nMajor·===·3·?·b | ||
| 000016 | 00001620:·6974·7372·6556·3320·3a20·6269·7473·7265··itsreV3·:·bitsre | ||
| Max diff block lines reached; -1/10642 bytes (-0.01%) of diff not shown. | |||
| Offset 5, 15 lines modified | Offset 5, 15 lines modified | ||
| 5 | ········"env-paths":·"^2.2.0", | 5 | ········"env-paths":·"^2.2.0", |
| 6 | ········"exponential-backoff":·"^3.1.1", | 6 | ········"exponential-backoff":·"^3.1.1", |
| 7 | ········"graceful-fs":·"^4.2.6", | 7 | ········"graceful-fs":·"^4.2.6", |
| 8 | ········"make-fetch-happen":·"^15.0.0", | 8 | ········"make-fetch-happen":·"^15.0.0", |
| 9 | ········"nopt":·"^9.0.0", | 9 | ········"nopt":·"^9.0.0", |
| 10 | ········"proc-log":·"^6.0.0", | 10 | ········"proc-log":·"^6.0.0", |
| 11 | ········"semver":·"^7.3.5", | 11 | ········"semver":·"^7.3.5", |
| 12 | ········"tar":·"^7.5. | 12 | ········"tar":·"^7.5.4", |
| 13 | ········"tinyglobby":·"^0.2.12", | 13 | ········"tinyglobby":·"^0.2.12", |
| 14 | ········"which":·"^6.0.0" | 14 | ········"which":·"^6.0.0" |
| 15 | ····}, | 15 | ····}, |
| 16 | ····"description":·"Node.js·native·addon·build·tool", | 16 | ····"description":·"Node.js·native·addon·build·tool", |
| 17 | ····"devDependencies":·{ | 17 | ····"devDependencies":·{ |
| 18 | ········"bindings":·"^1.5.0", | 18 | ········"bindings":·"^1.5.0", |
| 19 | ········"cross-env":·"^10.1.0", | 19 | ········"cross-env":·"^10.1.0", |
| Offset 44, 9 lines modified | Offset 44, 9 lines modified | ||
| 44 | ········"type":·"git", | 44 | ········"type":·"git", |
| 45 | ········"url":·"git://github.com/nodejs/node-gyp.git" | 45 | ········"url":·"git://github.com/nodejs/node-gyp.git" |
| 46 | ····}, | 46 | ····}, |
| 47 | ····"scripts":·{ | 47 | ····"scripts":·{ |
| 48 | ········"lint":·"eslint·\"*/*.js\"·\"test/**/*.js\"·\".github/**/*.js\"", | 48 | ········"lint":·"eslint·\"*/*.js\"·\"test/**/*.js\"·\".github/**/*.js\"", |
| 49 | ········"test":·"cross-env·NODE_GYP_NULL_LOGGER=true·mocha·--timeout·30000·test/test-download.js·test/test-*" | 49 | ········"test":·"cross-env·NODE_GYP_NULL_LOGGER=true·mocha·--timeout·30000·test/test-download.js·test/test-*" |
| 50 | ····}, | 50 | ····}, |
| 51 | ····"version":·"12. | 51 | ····"version":·"12.2.0" |
| 52 | } | 52 | } |
| Offset 17, 32 lines modified | Offset 17, 27 lines modified | ||
| 17 | ··}) | 17 | ··}) |
| 18 | pacote.tarball('https://server.com/package.tgz').then(data·=>·{ | 18 | pacote.tarball('https://server.com/package.tgz').then(data·=>·{ |
| 19 | ··console.log('got·'·+·data.length·+·'·bytes·of·tarball·data') | 19 | ··console.log('got·'·+·data.length·+·'·bytes·of·tarball·data') |
| 20 | }) | 20 | }) |
| 21 | ``` | 21 | ``` |
| 22 | `pacote`·works·with·any·kind·of·package·specifier·that·npm·can·install. | 22 | `pacote`·works·with·any·kind·of·package·specifier·that·npm·can·install. |
| 23 | you·can·pass·it·to·the·npm·CLI,·you·can·pass·it·to·pacote. | 23 | If·you·can·pass·it·to·the·npm·CLI,·you·can·pass·it·to·pacote. |
| 24 | exactly·what·the·npm·CLI·does.) | 24 | (In·fact,·that's·exactly·what·the·npm·CLI·does.) |
| 25 | Anything·that·you·can·do·with·one·kind·of·package,·you·can·do·with·another. | 25 | Anything·that·you·can·do·with·one·kind·of·package,·you·can·do·with·another. |
| 26 | Data·that·isn't·relevant·(like·a·packument·for·a·tarball)·will·be | 26 | Data·that·isn't·relevant·(like·a·packument·for·a·tarball)·will·be·simulated. |
| 27 | simulated. | ||
| 27 | `prepare`·scripts·will·be·run·when·generating·tarballs·from·`git`·and·`directory`·locations,·to·simulate·what·_would_·be·published·to·the·registry,·so·that·you·get·a·working·package·instead·of·just·raw·source·code·that·might·need·to·be·transpiled. | ||
| 28 | `prepare`·scripts·will·be·run·when·generating·tarballs·from·`git`·and | ||
| 29 | `directory`·locations,·to·simulate·what·_would_·be·published·to·the | ||
| 30 | registry,·so·that·you·get·a·working·package·instead·of·just·raw·source | ||
| 31 | code·that·might·need·to·be·transpiled. | ||
| 32 | ##·CLI | 28 | ##·CLI |
| 29 | This·module·exports·a·command·line·interface·that·can·do·most·of·what·is·described·below.··Run·`pacote·-h`·to·learn·more. | ||
| 33 | This·module·exports·a·command·line·interface·that·can·do·most·of·what·is | ||
| 34 | described·below.··Run·`pacote·-h`·to·learn·more. | ||
| 35 | ``` | 30 | ``` |
| 36 | Pacote·-·The·JavaScript·Package·Handler,·v10.1.1 | 31 | Pacote·-·The·JavaScript·Package·Handler,·v10.1.1 |
| 37 | Usage: | 32 | Usage: |
| 38 | ··pacote·resolve·<spec> | 33 | ··pacote·resolve·<spec> |
| Offset 71, 120 lines modified | Offset 66, 104 lines modified | ||
| 71 | ··--help·-h··Print·this·helpful·text. | 66 | ··--help·-h··Print·this·helpful·text. |
| 72 | For·example·'--cache=/path/to/folder'·will·use·that·folder·as·the·cache. | 67 | For·example·'--cache=/path/to/folder'·will·use·that·folder·as·the·cache. |
| 73 | ``` | 68 | ``` |
| 74 | ##·API | 69 | ##·API |
| 75 | The·`spec`·refers·to·any·kind·of·package·specifier·that·npm·can·install. | 70 | The·`spec`·refers·to·any·kind·of·[package·specifier](npm.im/npm-package-arg)·that·npm·can·install. |
| 76 | If·you·can·pass·it·to·the·npm·CLI,·you·can·pass·it·to·pacote.··(In·fact, | ||
| 77 | that's·exactly·what·the·npm·CLI·does.) | ||
| 78 | See·below·for·valid·`opts`·values. | 71 | See·below·for·valid·`opts`·values. |
| 72 | *·`pacote.resolve(spec,·opts)`·Resolve·a·specifier·like·`foo@latest`·or·`github:user/project`·all·the·way·to·a·tarball·url,·tarball·file,·or·git·repo·with·commit·hash. | ||
| 79 | *·`pacote.resolve(spec,·opts)`·Resolve·a·specifier·like·`foo@latest`·or | ||
| 80 | ··`github:user/project`·all·the·way·to·a·tarball·url,·tarball·file,·or·git | ||
| 81 | ··repo·with·commit·hash. | ||
| 82 | *·`pacote.extract(spec,·dest,·opts)`·Extract·a·package's·tarball·into·a | 73 | *·`pacote.extract(spec,·dest,·opts)`·Extract·a·package's·tarball·into·a·destination·folder. |
| 74 | ··Returns·a·promise·that·resolves·to·the·`{from,resolved,integrity}`·of·the·extracted·package. | ||
| 83 | ··destination·folder.··Returns·a·promise·that·resolves·to·the | ||
| 84 | ··`{from,resolved,integrity}`·of·the·extracted·package. | ||
| 75 | *·`pacote.manifest(spec,·opts)`·Fetch·(or·simulate)·a·package's·manifest·(basically,·the·`package.json`·file,·plus·a·bit·of·metadata). | ||
| 85 | *·`pacote.manifest(spec,·opts)`·Fetch·(or·simulate)·a·package's·manifest | ||
| 86 | ··(basically,·the·`package.json`·file,·plus·a·bit·of·metadata). | ||
| 87 | ··See·below·for·more·on·manifests·and·packuments. | 76 | ··See·below·for·more·on·manifests·and·packuments. |
| 88 | ··resolves·to·the·manifest·object. | 77 | ··Returns·a·Promise·that·resolves·to·the·manifest·object. |
| 78 | *·`pacote.packument(spec,·opts)`·Fetch·(or·simulate)·a·package's·packument·(basically,·the·top-level·package·document·listing·all·the·manifests·that·the·registry·returns). | ||
| 89 | *·`pacote.packument(spec,·opts)`·Fetch·(or·simulate)·a·package's·packument | ||
| 90 | ··(basically,·the·top-level·package·document·listing·all·the·manifests·that | ||
| 91 | ·· | 79 | ··See·below·for·more·on·manifests·and·packuments. |
| 92 | ··Returns·a·Promise·that·resolves·to·the·packument·object. | 80 | ··Returns·a·Promise·that·resolves·to·the·packument·object. |
| 93 | *·`pacote.tarball(spec,·opts)`··Get·a·package·tarball·data·as·a·buffer·in | 81 | *·`pacote.tarball(spec,·opts)`··Get·a·package·tarball·data·as·a·buffer·in |
| 94 | ··memory.··Returns·a·Promise·that·resolves·to·the·tarball·data·Buffer,·with | ||
| 95 | ·· | 82 | ··memory. |
| 83 | ··Returns·a·Promise·that·resolves·to·the·tarball·data·Buffer,·with·`from`,·`resolved`,·and·`integrity`·fields·attached. | ||
| 96 | *·`pacote.tarball.file(spec,·dest,·opts)`··Save·a·package·tarball·data·to | 84 | *·`pacote.tarball.file(spec,·dest,·opts)`··Save·a·package·tarball·data·to·a·file·on·disk. |
| 97 | ··a·file·on·disk.··Returns·a·Promise·that·resolves·to | ||
| 98 | ··`{from,integrity,resolved}`·of·the·fetched·tarball. | 85 | ··Returns·a·Promise·that·resolves·to·`{from,integrity,resolved}`·of·the·fetched·tarball. |
| 86 | *·`pacote.tarball.stream(spec,·streamHandler,·opts)`··Fetch·a·tarball·and·make·the·stream·available·to·the·`streamHandler`·function. | ||
| 99 | *·`pacote.tarball.stream(spec,·streamHandler,·opts)`··Fetch·a·tarball·and | ||
| 100 | ··make·the·stream·available·to·the·`streamHandler`·function. | ||
| 87 | ····This·is·mostly·an·internal·function,·but·it·is·exposed·because·it·does·provide·some·functionality·that·may·be·difficult·to·achieve·otherwise. | ||
| 101 | ····This·is·mostly·an·internal·function,·but·it·is·exposed·because·it·does | ||
| 102 | ····provide·some·functionality·that·may·be·difficult·to·achieve·otherwise. | ||
| 88 | ····The·`streamHandler`·function·MUST·return·a·Promise·that·resolves·when·the·stream·(and·all·associated·work)·is·ended,·or·rejects·if·the·stream | ||
| 103 | ····The·`streamHandler`·function·MUST·return·a·Promise·that·resolves·when | ||
| 104 | ····the·stream·(and·all·associated·work)·is·ended,·or·rejects·if·the·stream | ||
| 105 | ····has·an·error. | 89 | ····has·an·error. |
| 90 | ····The·`streamHandler`·function·MAY·be·called·multiple·times,·as·Pacote·retries·requests·in·some·scenarios,·such·as·cache·corruption·or·retriable·network·failures. | ||
| 106 | ····The·`streamHandler`·function·MAY·be·called·multiple·times,·as·Pacote | ||
| 107 | ····retries·requests·in·some·scenarios,·such·as·cache·corruption·or | ||
| 108 | ····retriable·network·failures. | ||
| 109 | ###·Options | 91 | ###·Options |
| Max diff block lines reached; 14148/20000 bytes (70.74%) of diff not shown. | |||
| Offset 1008, 47 lines modified | Offset 1008, 80 lines modified | ||
| 00003ef0:·6368·6572·203d·2072·6571·7569·7265·2827··cher·=·require(' | 00003ef0:·6368·6572·203d·2072·6571·7569·7265·2827··cher·=·require(' | ||
| 00003f00:·2e2f·6669·6c65·2e6a·7327·290a·636f·6e73··./file.js').cons | 00003f00:·2e2f·6669·6c65·2e6a·7327·290a·636f·6e73··./file.js').cons | ||
| 00003f10:·7420·4469·7246·6574·6368·6572·203d·2072··t·DirFetcher·=·r | 00003f10:·7420·4469·7246·6574·6368·6572·203d·2072··t·DirFetcher·=·r | ||
| 00003f20:·6571·7569·7265·2827·2e2f·6469·722e·6a73··equire('./dir.js | 00003f20:·6571·7569·7265·2827·2e2f·6469·722e·6a73··equire('./dir.js | ||
| 00003f30:·2729·0a63·6f6e·7374·2052·656d·6f74·6546··').const·RemoteF | 00003f30:·2729·0a63·6f6e·7374·2052·656d·6f74·6546··').const·RemoteF | ||
| 00003f40:·6574·6368·6572·203d·2072·6571·7569·7265··etcher·=·require | 00003f40:·6574·6368·6572·203d·2072·6571·7569·7265··etcher·=·require | ||
| 00003f50:·2827·2e2f·7265·6d6f·7465·2e6a·7327·290a··('./remote.js'). | 00003f50:·2827·2e2f·7265·6d6f·7465·2e6a·7327·290a··('./remote.js'). | ||
| 00003f60:·0a2f·2f20·706f·7373·6962·6c65·2076·616c··.//·possible·val | |||
| 00003f70:·7565·7320·666f·7220·616c·6c6f·773a·2027··ues·for·allow:·' | |||
| 00003f80:·616c·6c27·2c20·2772·6f6f·7427·2c20·276e··all',·'root',·'n | |||
| 00003f90:·6f6e·6527·0a63·6f6e·7374·2063·616e·5573··one'.const·canUs | |||
| 00003fa0:·6547·6974·203d·2028·616c·6c6f·7720·3d20··eGit·=·(allow·=· | |||
| 00003fb0:·2761·6c6c·272c·2069·7352·6f6f·7420·3d20··'all',·isRoot·=· | |||
| 00003fc0:·6661·6c73·6529·203d·3e20·7b0a·2020·6966··false)·=>·{.··if | |||
| 00003fd0:·2028·616c·6c6f·7720·3d3d·3d20·2761·6c6c···(allow·===·'all | |||
| 00003fe0:·2729·207b·0a20·2020·2072·6574·7572·6e20··')·{.····return· | |||
| 00003ff0:·7472·7565·0a20·207d·0a20·2069·6620·2861··true.··}.··if·(a | |||
| 00004000:·6c6c·6f77·2021·3d3d·2027·6e6f·6e65·2720··llow·!==·'none'· | |||
| 00004010:·2626·2069·7352·6f6f·7429·207b·0a20·2020··&&·isRoot)·{.··· | |||
| 00004020:·2072·6574·7572·6e20·7472·7565·0a20·207d···return·true.··} | |||
| 00004030:·0a20·2072·6574·7572·6e20·6661·6c73·650a··.··return·false. | |||
| 0000 | 00004040:·7d0a·0a2f·2f20·4765·7420·616e·2061·7070··}..//·Get·an·app | ||
| 0000 | 00004050:·726f·7072·6961·7465·2066·6574·6368·6572··ropriate·fetcher | ||
| 0000 | 00004060:·206f·626a·6563·7420·6672·6f6d·2061·2073···object·from·a·s | ||
| 0000 | 00004070:·7065·6320·616e·6420·6f70·7469·6f6e·730a··pec·and·options. | ||
| 0000 | 00004080:·4665·7463·6865·7242·6173·652e·6765·7420··FetcherBase.get· | ||
| 0000 | 00004090:·3d20·2872·6177·5370·6563·2c20·6f70·7473··=·(rawSpec,·opts | ||
| 0000 | 000040a0:·203d·207b·7d29·203d·3e20·7b0a·2020·636f···=·{})·=>·{.··co | ||
| 0000 | 000040b0:·6e73·7420·7370·6563·203d·206e·7061·2872··nst·spec·=·npa(r | ||
| 0000 | 000040c0:·6177·5370·6563·2c20·6f70·7473·2e77·6865··awSpec,·opts.whe | ||
| 0000 | 000040d0:·7265·290a·2020·7377·6974·6368·2028·7370··re).··switch·(sp | ||
| 000040 | 000040e0:·6563·2e74·7970·6529·207b·0a20·2020·2063··ec.type)·{.····c | ||
| 000040 | 000040f0:·6173·6520·2767·6974·273a·0a20·2020·2020··ase·'git':.····· | ||
| 00004020:·6574·7572·6e20·6e65·7720·4769·7446·6574··eturn·new·GitFet | |||
| 00004030:·6368·6572·2873·7065·632c·206f·7074·7329··cher(spec,·opts) | |||
| 00004040:·0a0a·2020·2020·6361·7365·2027·7265·6d6f··..····case·'remo | |||
| 00004050:·7465·273a·0a20·2020·2020·2072·6574·7572··te':.······retur | |||
| 00004060:·6e20·6e65·7720·5265·6d6f·7465·4665·7463··n·new·RemoteFetc | |||
| 00004070:·6865·7228·7370·6563·2c20·6f70·7473·290a··her(spec,·opts). | |||
| 00004080:·0a20·2020·2063·6173·6520·2776·6572·7369··.····case·'versi | |||
| 00004090:·6f6e·273a·0a20·2020·2063·6173·6520·2772··on':.····case·'r | |||
| 000040a0:·616e·6765·273a·0a20·2020·2063·6173·6520··ange':.····case· | |||
| 000040b0:·2774·6167·273a·0a20·2020·2063·6173·6520··'tag':.····case· | |||
| 00004 | 00004100:·2069·6620·2821·6361·6e55·7365·4769·7428···if·(!canUseGit( | ||
| 00004110:·6f70·7473·2e61·6c6c·6f77·4769·742c·206f··opts.allowGit,·o | |||
| 00004120:·7074·732e·5f69·7352·6f6f·7429·2920·7b0a··pts._isRoot))·{. | |||
| 00004130:·2020·2020·2020·2020·7468·726f·7720·4f62··········throw·Ob | |||
| 00004140:·6a65·6374·2e61·7373·6967·6e28·0a20·2020··ject.assign(.··· | |||
| 00004150:·2020·2020·2020·206e·6577·2045·7272·6f72·········new·Error | |||
| 00004160:·2860·4665·7463·6869·6e67·247b·6f70·7473··(`Fetching${opts | |||
| 00004170:·2e61·6c6c·6f77·4769·7420·3d3d·3d20·2772··.allowGit·===·'r | |||
| 00004180:·6f6f·7427·203f·2027·206e·6f6e·2d72·6f6f··oot'·?·'·non-roo | |||
| 00004190:·7427·203a·2027·277d·2070·6163·6b61·6765··t'·:·''}·package | |||
| 000041a0:·7320·6672·6f6d·2067·6974·2068·6173·2062··s·from·git·has·b | |||
| 000041b0:·6565·6e20·6469·7361·626c·6564·6029·2c0a··een·disabled`),. | |||
| 000041c0:·2020·2020·2020·2020·2020·7b0a·2020·2020············{.···· | |||
| 000041d0:·2020·2020·2020·2020·636f·6465·3a20·2745··········code:·'E | |||
| 000041e0:·414c·4c4f·5747·4954·272c·0a20·2020·2020··ALLOWGIT',.····· | |||
| 000041f0:·2020·2020·2020·2070·6163·6b61·6765·3a20·········package:· | |||
| 00004200:·7370·6563·2e74·6f53·7472·696e·6728·292c··spec.toString(), | |||
| 00004210:·0a20·2020·2020·2020·2020·207d·0a20·2020··.··········}.··· | |||
| 00004220:·2020·2020·2029·0a20·2020·2020·207d·0a20·······).······}.· | |||
| 00004230:·2020·2020·2072·6574·7572·6e20·6e65·7720·······return·new· | |||
| 00004240:·4769·7446·6574·6368·6572·2873·7065·632c··GitFetcher(spec, | |||
| 00004250:·206f·7074·7329·0a0a·2020·2020·6361·7365···opts)..····case | |||
| 00004260:·2027·7265·6d6f·7465·273a·0a20·2020·2020···'remote':.····· | |||
| 000040 | 00004270:·2072·6574·7572·6e20·6e65·7720·5265·6d6f···return·new·Remo | ||
| 00004 | 00004280:·7465·4665·7463·6865·7228·7370·6563·2c20··teFetcher(spec,· | ||
| 000040f0:·7562·5370·6563·207c·7c20·7370·6563·2c20··ubSpec·||·spec,· | |||
| 00004 | 00004290:·6f70·7473·290a·0a20·2020·2063·6173·6520··opts)..····case· | ||
| 00004110:·2766·696c·6527·3a0a·2020·2020·2020·7265··'file':.······re | |||
| 00004120:·7475·726e·206e·6577·2046·696c·6546·6574··turn·new·FileFet | |||
| 00004130:·6368·6572·2873·7065·632c·206f·7074·7329··cher(spec,·opts) | |||
| 00004140:·0a0a·2020·2020·6361·7365·2027·6469·7265··..····case·'dire | |||
| 00004150:·6374·6f72·7927·3a0a·2020·2020·2020·7265··ctory':.······re | |||
| 00004 | 000042a0:·2776·6572·7369·6f6e·273a·0a20·2020·2063··'version':.····c | ||
| 000042b0:·6173·6520·2772·616e·6765·273a·0a20·2020··ase·'range':.··· | |||
| 000042c0:·2063·6173·6520·2774·6167·273a·0a20·2020···case·'tag':.··· | |||
| 000042d0:·2063·6173·6520·2761·6c69·6173·273a·0a20···case·'alias':.· | |||
| 000042e0:·2020·2020·2072·6574·7572·6e20·6e65·7720·······return·new· | |||
| 000042f0:·5265·6769·7374·7279·4665·7463·6865·7228··RegistryFetcher( | |||
| 00004300:·7370·6563·2e73·7562·5370·6563·207c·7c20··spec.subSpec·||· | |||
| 00004 | 00004310:·7370·6563·2c20·6f70·7473·290a·0a20·2020··spec,·opts)..··· | ||
| 00004180:·0a20·2020·2064·6566·6175·6c74·3a0a·2020··.····default:.·· | |||
| 00004190:·2020·2020·7468·726f·7720·6e65·7720·5479······throw·new·Ty | |||
| 000041a0:·7065·4572·726f·7228·2755·6e6b·6e6f·776e··peError('Unknown | |||
| 000041b0:·2073·7065·6320·7479·7065·3a20·2720·2b20···spec·type:·'·+· | |||
| 000041c0:·7370·6563·2e74·7970·6529·0a20·207d·0a7d··spec.type).··}.} | |||
| 00004 | 00004320:·2063·6173·6520·2766·696c·6527·3a0a·2020···case·'file':.·· | ||
| 00004330:·2020·2020·7265·7475·726e·206e·6577·2046······return·new·F | |||
| 00004340:·696c·6546·6574·6368·6572·2873·7065·632c··ileFetcher(spec, | |||
| 00004350:·206f·7074·7329·0a0a·2020·2020·6361·7365···opts)..····case | |||
| 00004360:·2027·6469·7265·6374·6f72·7927·3a0a·2020···'directory':.·· | |||
| 00004370:·2020·2020·7265·7475·726e·206e·6577·2044······return·new·D | |||
| 00004380:·6972·4665·7463·6865·7228·7370·6563·2c20··irFetcher(spec,· | |||
| 00004390:·6f70·7473·290a·0a20·2020·2064·6566·6175··opts)..····defau | |||
| 000043a0:·6c74·3a0a·2020·2020·2020·7468·726f·7720··lt:.······throw· | |||
| 000043b0:·6e65·7720·5479·7065·4572·726f·7228·2755··new·TypeError('U | |||
| 000043c0:·6e6b·6e6f·776e·2073·7065·6320·7479·7065··nknown·spec·type | |||
| Max diff block lines reached; -1/8280 bytes (-0.01%) of diff not shown. | |||
| Offset 72, 9 lines modified | Offset 72, 9 lines modified | ||
| 72 | ····}, | 72 | ····}, |
| 73 | ····"templateOSS":·{ | 73 | ····"templateOSS":·{ |
| 74 | ········"//@npmcli/template-oss":·"This·file·is·partially·managed·by·@npmcli/template-oss.·Edits·may·be·overwritten.", | 74 | ········"//@npmcli/template-oss":·"This·file·is·partially·managed·by·@npmcli/template-oss.·Edits·may·be·overwritten.", |
| 75 | ········"publish":·"true", | 75 | ········"publish":·"true", |
| 76 | ········"version":·"4.28.0", | 76 | ········"version":·"4.28.0", |
| 77 | ········"windowsCI":·false | 77 | ········"windowsCI":·false |
| 78 | ····}, | 78 | ····}, |
| 79 | ····"version":·"21. | 79 | ····"version":·"21.1.0" |
| 80 | } | 80 | } |
| Offset 1, 15 lines modified | Offset 1, 21 lines modified | ||
| 1 | #·Changelog | 1 | #·Changelog |
| 2 | All·notable·changes·to·this·project·will·be·documented·in·this·file. | 2 | All·notable·changes·to·this·project·will·be·documented·in·this·file. |
| 3 | The·format·is·based·on·[Keep·a·Changelog](https://keepachangelog.com/en/1.0.0/) | 3 | The·format·is·based·on·[Keep·a·Changelog](https://keepachangelog.com/en/1.0.0/) |
| 4 | and·this·project·adheres·to·[Semantic·Versioning](https://semver.org/spec/v2.0.0.html). | 4 | and·this·project·adheres·to·[Semantic·Versioning](https://semver.org/spec/v2.0.0.html). |
| 5 | ##·[v2.0.0](https://github.com/ljharb/pargs/compare/v1.2. | 5 | ##·[v2.0.0](https://github.com/ljharb/pargs/compare/v1.2.2...v2.0.0)·-·2025-10-24 |
| 6 | ##·[v1.2.2](https://github.com/ljharb/pargs/compare/v1.2.1...v1.2.2)·-·2026-01-08 | ||
| 7 | ###·Commits | ||
| 8 | -·[Fix]·do·not·error·on·missing·required·positionals·when·`--help`·is·given·[`7a92a29`](https://github.com/ljharb/pargs/commit/7a92a299e3b525a41cb0542a588f7789caf2473b) | ||
| 6 | ##·[v1.2.1](https://github.com/ljharb/pargs/compare/v1.2.0...v1.2.1)·-·2025-12-17 | 9 | ##·[v1.2.1](https://github.com/ljharb/pargs/compare/v1.2.0...v1.2.1)·-·2025-12-17 |
| 7 | ###·Commits | 10 | ###·Commits |
| 8 | -·[types]·improve·types·[`c0c2f9d`](https://github.com/ljharb/pargs/commit/c0c2f9d67e42cb5112e06029ba3c1934d75b0686) | 11 | -·[types]·improve·types·[`c0c2f9d`](https://github.com/ljharb/pargs/commit/c0c2f9d67e42cb5112e06029ba3c1934d75b0686) |
| Offset 127, 21 lines modified | Offset 127, 23 lines modified | ||
| 127 | » » » » process.exit(); | 127 | » » » » process.exit(); |
| 128 | » » » } | 128 | » » » } |
| 129 | » » } | 129 | » » } |
| 130 | » » const·{·allowPositionals,·minPositionals·}·=·passedConfig; | 130 | » » const·{·allowPositionals,·minPositionals·}·=·passedConfig; |
| 131 | » » if·(!results.values.help)·{ | ||
| 131 | » » const·posCount·=·typeof·allowPositionals·===·'number'·?·allowPositionals·:·allowPositionals·||·subcommands·?·Infinity·:·0; | 132 | » » » const·posCount·=·typeof·allowPositionals·===·'number'·?·allowPositionals·:·allowPositionals·||·subcommands·?·Infinity·:·0; |
| 132 | » » if·(results.positionals.length·>·posCount)·{ | 133 | » » » if·(results.positionals.length·>·posCount)·{ |
| 133 | » » » errors[errors.length]·=·`Only·${posCount}·positional·arguments·allowed;·got·${results.positionals.length}`; | 134 | » » » » errors[errors.length]·=·`Only·${posCount}·positional·arguments·allowed;·got·${results.positionals.length}`; |
| 134 | » » } | 135 | » » » } |
| 135 | » » const·minPos·=·typeof·minPositionals·===·'number'·?·minPositionals·:·0; | 136 | » » » const·minPos·=·typeof·minPositionals·===·'number'·?·minPositionals·:·0; |
| 136 | » » if·(results.positionals.length·<·minPos)·{ | 137 | » » » if·(results.positionals.length·<·minPos)·{ |
| 137 | » » » errors[errors.length]·=·`At·least·${minPos}·positional·arguments·required;·got·${results.positionals.length}`; | 138 | » » » » errors[errors.length]·=·`At·least·${minPos}·positional·arguments·required;·got·${results.positionals.length}`; |
| 139 | » » » } | ||
| 138 | » » } | 140 | » » } |
| 139 | » » const·optionTokens·=·tokens.filter(/**·@type·{(token:·typeof·tokens[number])·=>·token·is·OptionToken}·*/·(token)·=>·token.kind·===·'option'); | 141 | » » const·optionTokens·=·tokens.filter(/**·@type·{(token:·typeof·tokens[number])·=>·token·is·OptionToken}·*/·(token)·=>·token.kind·===·'option'); |
| 140 | » » const·bools·=·obj.options·?·entries(obj.options).filter(([,·{·type·}])·=>·type·===·'boolean')·:·[]; | 142 | » » const·bools·=·obj.options·?·entries(obj.options).filter(([,·{·type·}])·=>·type·===·'boolean')·:·[]; |
| 141 | » » const·passedArgs·=·new·Set(optionTokens.map(({·name,·rawName·})·=>·(rawName.startsWith('--no-')·?·rawName.slice(2)·:·name))); | 143 | » » const·passedArgs·=·new·Set(optionTokens.map(({·name,·rawName·})·=>·(rawName.startsWith('--no-')·?·rawName.slice(2)·:·name))); |
| Offset 77, 9 lines modified | Offset 77, 9 lines modified | ||
| 77 | ········"prepublish":·"not-in-publish·||·npm·run·prepublishOnly", | 77 | ········"prepublish":·"not-in-publish·||·npm·run·prepublishOnly", |
| 78 | ········"prepublishOnly":·"safe-publish-latest", | 78 | ········"prepublishOnly":·"safe-publish-latest", |
| 79 | ········"pretest":·"npm·run·lint", | 79 | ········"pretest":·"npm·run·lint", |
| 80 | ········"test":·"npm·run·tests-only", | 80 | ········"test":·"npm·run·tests-only", |
| 81 | ········"tests-only":·"c8·tape·'test/**/*.*js'", | 81 | ········"tests-only":·"c8·tape·'test/**/*.*js'", |
| 82 | ········"version":·"auto-changelog·&&·git·add·CHANGELOG.md" | 82 | ········"version":·"auto-changelog·&&·git·add·CHANGELOG.md" |
| 83 | ····}, | 83 | ····}, |
| 84 | ····"version":·"1.2. | 84 | ····"version":·"1.2.2" |
| 85 | } | 85 | } |
| Offset 344, 23 lines modified | Offset 344, 23 lines modified | ||
| 344 | -·`statCache`·A·Map·object·that·caches·calls·`lstat`. | 344 | -·`statCache`·A·Map·object·that·caches·calls·`lstat`. |
| 345 | -·`readdirCache`·A·Map·object·that·caches·calls·to·`readdir`. | 345 | -·`readdirCache`·A·Map·object·that·caches·calls·to·`readdir`. |
| 346 | -·`jobs`·A·number·specifying·how·many·concurrent·jobs·to·run. | 346 | -·`jobs`·A·number·specifying·how·many·concurrent·jobs·to·run. |
| 347 | ··Defaults·to·4. | 347 | ··Defaults·to·4. |
| 348 | -·`maxReadSize`·The·maximum·buffer·size·for·`fs.read()`·operations. | 348 | -·`maxReadSize`·The·maximum·buffer·size·for·`fs.read()`·operations. |
| 349 | ··Defaults·to·16·MB. | 349 | ··Defaults·to·16·MB. |
| 350 | ####·Using·`onWrite | 350 | ####·Using·`onWriteEntry`·to·alter·entries |
| 351 | The·`onWrite | 351 | The·`onWriteEntry`·function,·if·provided,·will·get·a·reference |
| 352 | to·each·`entry`·object·on·its·way·into·the·archive. | 352 | to·each·`entry`·object·on·its·way·into·the·archive. |
| 353 | If·any·fields·on·this·entry·are·changed,·then·these·changes·will | 353 | If·any·fields·on·this·entry·are·changed,·then·these·changes·will |
| 354 | be·reflected·in·the·entry·that·is·written·to·the·archive. | 354 | be·reflected·in·the·entry·that·is·written·to·the·archive. |
| 355 | The·return·value·of·the· | 355 | The·return·value·of·the·function·is·ignored.·All·that·matters·is |
| 356 | the·final·state·of·the·entry·object.·This·can·also·be·used·to | 356 | the·final·state·of·the·entry·object.·This·can·also·be·used·to |
| 357 | track·the·files·added·to·an·archive,·for·example. | 357 | track·the·files·added·to·an·archive,·for·example. |
| 358 | ```js | 358 | ```js |
| 359 | import·*·as·tar·from·'tar' | 359 | import·*·as·tar·from·'tar' |
| 360 | const·filesAdded·=·[] | 360 | const·filesAdded·=·[] |
| 361 | tar.c( | 361 | tar.c( |
| Offset 41, 155 lines modified | Offset 41, 176 lines modified | ||
| 00000280:·3a20·7472·7565·2c20·7661·6c75·653a·2076··:·true,·value:·v | 00000280:·3a20·7472·7565·2c20·7661·6c75·653a·2076··:·true,·value:·v | ||
| 00000290:·207d·293b·0a7d·2920·3a20·6675·6e63·7469···});.})·:·functi | 00000290:·207d·293b·0a7d·2920·3a20·6675·6e63·7469···});.})·:·functi | ||
| 000002a0:·6f6e·286f·2c20·7629·207b·0a20·2020·206f··on(o,·v)·{.····o | 000002a0:·6f6e·286f·2c20·7629·207b·0a20·2020·206f··on(o,·v)·{.····o | ||
| 000002b0:·5b22·6465·6661·756c·7422·5d20·3d20·763b··["default"]·=·v; | 000002b0:·5b22·6465·6661·756c·7422·5d20·3d20·763b··["default"]·=·v; | ||
| 000002c0:·0a7d·293b·0a76·6172·205f·5f69·6d70·6f72··.});.var·__impor | 000002c0:·0a7d·293b·0a76·6172·205f·5f69·6d70·6f72··.});.var·__impor | ||
| 000002d0:·7453·7461·7220·3d20·2874·6869·7320·2626··tStar·=·(this·&& | 000002d0:·7453·7461·7220·3d20·2874·6869·7320·2626··tStar·=·(this·&& | ||
| 000002e0:·2074·6869·732e·5f5f·696d·706f·7274·5374···this.__importSt | 000002e0:·2074·6869·732e·5f5f·696d·706f·7274·5374···this.__importSt | ||
| 000002f0:·6172·2920·7c7c·20 | 000002f0:·6172·2920·7c7c·2028·6675·6e63·7469·6f6e··ar)·||·(function | ||
| 00000300:·2028·2920·7b0a·2020·2020·7661·7220·6f77···()·{.····var·ow | |||
| 00000310:·6e4b·6579·7320·3d20·6675·6e63·7469·6f6e··nKeys·=·function | |||
| 000003 | 00000320:·286f·2920·7b0a·2020·2020·2020·2020·6f77··(o)·{.········ow | ||
| 00000310:·6d6f·6420·2626·206d·6f64·2e5f·5f65·734d··mod·&&·mod.__esM | |||
| 000003 | 00000330:·6e4b·6579·7320·3d20·4f62·6a65·6374·2e67··nKeys·=·Object.g | ||
| 00000340:·6574·4f77·6e50·726f·7065·7274·794e·616d··etOwnPropertyNam | |||
| 00000350:·6573·207c·7c20·6675·6e63·7469·6f6e·2028··es·||·function·( | |||
| 00000360:·6f29·207b·0a20·2020·2020·2020·2020·2020··o)·{.··········· | |||
| 00000370:·2076·6172·2061·7220·3d20·5b5d·3b0a·2020···var·ar·=·[];.·· | |||
| 00000380:·2020·2020·2020·2020·2020·666f·7220·2876············for·(v | |||
| 00000390:·6172·206b·2069·6e20·6f29·2069·6620·284f··ar·k·in·o)·if·(O | |||
| 000003a0:·626a·6563·742e·7072·6f74·6f74·7970·652e··bject.prototype. | |||
| 000003b0:·6861·734f·776e·5072·6f70·6572·7479·2e63··hasOwnProperty.c | |||
| 000003c0:·616c·6c28·6f2c·206b·2929·2061·725b·6172··all(o,·k))·ar[ar | |||
| 000003d0:·2e6c·656e·6774·685d·203d·206b·3b0a·2020··.length]·=·k;.·· | |||
| 000003e0:·2020·2020·2020·2020·2020·7265·7475·726e············return | |||
| 000003f0:·2061·723b·0a20·2020·2020·2020·207d·3b0a···ar;.········};. | |||
| 00000400:·2020·2020·2020·2020·7265·7475·726e·206f··········return·o | |||
| 00000410:·776e·4b65·7973·286f·293b·0a20·2020·207d··wnKeys(o);.····} | |||
| 00000420:·3b0a·2020·2020·7265·7475·726e·2066·756e··;.····return·fun | |||
| 00000430:·6374·696f·6e20·286d·6f64·2920·7b0a·2020··ction·(mod)·{.·· | |||
| 00000440:·2020·2020·2020·6966·2028·6d6f·6420·2626········if·(mod·&& | |||
| 00000450:·206d·6f64·2e5f·5f65·734d·6f64·756c·6529···mod.__esModule) | |||
| 00000460:·2072·6574·7572·6e20·6d6f·643b·0a20·2020···return·mod;.··· | |||
| 00000 | 00000470:·2020·2020·2076·6172·2072·6573·756c·7420·······var·result· | ||
| 00000 | 00000480:·3d20·7b7d·3b0a·2020·2020·2020·2020·6966··=·{};.········if | ||
| 00000 | 00000490:·2028·6d6f·6420·213d·206e·756c·6c29·2066···(mod·!=·null)·f | ||
| 00000360:·2028·7661·7220·6b20·696e·206d·6f64·2920···(var·k·in·mod)· | |||
| 00000370:·6966·2028·6b20·213d·3d20·2264·6566·6175··if·(k·!==·"defau | |||
| 00000380:·6c74·2220·2626·204f·626a·6563·742e·7072··lt"·&&·Object.pr | |||
| 00000390:·6f74·6f74·7970·652e·6861·734f·776e·5072··ototype.hasOwnPr | |||
| 000003a0:·6f70·6572·7479·2e63·616c·6c28·6d6f·642c··operty.call(mod, | |||
| 000003b0:·206b·2929·205f·5f63·7265·6174·6542·696e···k))·__createBin | |||
| 00000 | 000004a0:·6f72·2028·7661·7220·6b20·3d20·6f77·6e4b··or·(var·k·=·ownK | ||
| 000004b0:·6579·7328·6d6f·6429·2c20·6920·3d20·303b··eys(mod),·i·=·0; | |||
| 000004c0:·2069·203c·206b·2e6c·656e·6774·683b·2069···i·<·k.length;·i | |||
| 000004d0:·2b2b·2920·6966·2028·6b5b·695d·2021·3d3d··++)·if·(k[i]·!== | |||
| 000004e0:·2022·6465·6661·756c·7422·2920·5f5f·6372···"default")·__cr | |||
| 000004f0:·6561·7465·4269·6e64·696e·6728·7265·7375··eateBinding(resu | |||
| 00000500:·6c74·2c20·6d6f·642c·206b·5b69·5d29·3b0a··lt,·mod,·k[i]);. | |||
| 00000 | 00000510:·2020·2020·2020·2020·5f5f·7365·744d·6f64··········__setMod | ||
| 00000 | 00000520:·756c·6544·6566·6175·6c74·2872·6573·756c··uleDefault(resul | ||
| 00000 | 00000530:·742c·206d·6f64·293b·0a20·2020·2020·2020··t,·mod);.······· | ||
| 00000400 | 00000540:·2072·6574·7572·6e20·7265·7375·6c74·3b0a···return·result;. | ||
| 00000550:·2020·2020·7d3b·0a7d·2928·293b·0a76·6172······};.})();.var | |||
| 00000 | 00000560:·205f·5f69·6d70·6f72·7444·6566·6175·6c74···__importDefault | ||
| 00000 | 00000570:·203d·2028·7468·6973·2026·2620·7468·6973···=·(this·&&·this | ||
| 00000 | 00000580:·2e5f·5f69·6d70·6f72·7444·6566·6175·6c74··.__importDefault | ||
| 00000 | 00000590:·2920·7c7c·2066·756e·6374·696f·6e20·286d··)·||·function·(m | ||
| 00000 | 000005a0:·6f64·2920·7b0a·2020·2020·7265·7475·726e··od)·{.····return | ||
| 00000 | 000005b0:·2028·6d6f·6420·2626·206d·6f64·2e5f·5f65···(mod·&&·mod.__e | ||
| 00000 | 000005c0:·734d·6f64·756c·6529·203f·206d·6f64·203a··sModule)·?·mod·: | ||
| 00000 | 000005d0:·207b·2022·6465·6661·756c·7422·3a20·6d6f···{·"default":·mo | ||
| 00000 | 000005e0:·6420·7d3b·0a7d·3b0a·4f62·6a65·6374·2e64··d·};.};.Object.d | ||
| 00000 | 000005f0:·6566·696e·6550·726f·7065·7274·7928·6578··efineProperty(ex | ||
| 00000 | 00000600:·706f·7274·732c·2022·5f5f·6573·4d6f·6475··ports,·"__esModu | ||
| 00000 | 00000610:·6c65·222c·207b·2076·616c·7565·3a20·7472··le",·{·value:·tr | ||
| 00000 | 00000620:·7565·207d·293b·0a65·7870·6f72·7473·2e65··ue·});.exports.e | ||
| 00000 | 00000630:·7874·7261·6374·203d·2076·6f69·6420·303b··xtract·=·void·0; | ||
| 00000 | 00000640:·0a2f·2f20·7461·7220·2d78·0a63·6f6e·7374··.//·tar·-x.const | ||
| 00000 | 00000650:·2066·736d·203d·205f·5f69·6d70·6f72·7453···fsm·=·__importS | ||
| 00000 | 00000660:·7461·7228·7265·7175·6972·6528·2240·6973··tar(require("@is | ||
| 00000 | 00000670:·6161·6373·2f66·732d·6d69·6e69·7061·7373··aacs/fs-minipass | ||
| 00000 | 00000680:·2229·293b·0a63·6f6e·7374·206e·6f64·655f··"));.const·node_ | ||
| 00000 | 00000690:·6673·5f31·203d·205f·5f69·6d70·6f72·7444··fs_1·=·__importD | ||
| 00000 | 000006a0:·6566·6175·6c74·2872·6571·7569·7265·2822··efault(require(" | ||
| 00000 | 000006b0:·6e6f·6465·3a66·7322·2929·3b0a·636f·6e73··node:fs"));.cons | ||
| 00000 | 000006c0:·7420·6c69·7374·5f6a·735f·3120·3d20·7265··t·list_js_1·=·re | ||
| 00000 | 000006d0:·7175·6972·6528·222e·2f6c·6973·742e·6a73··quire("./list.js | ||
| 000006e0:·2229·3b0a·636f·6e73·7420·6d61·6b65·5f63··");.const·make_c | |||
| 000006f0:·6f6d·6d61·6e64·5f6a·735f·3120·3d20·7265··ommand_js_1·=·re | |||
| 00000700:·7175·6972·6528·222e·2f6d·616b·652d·636f··quire("./make-co | |||
| 00000710:·6d6d·616e·642e·6a73·2229·3b0a·636f·6e73··mmand.js");.cons | |||
| 00000720:·7420·756e·7061·636b·5f6a·735f·3120·3d20··t·unpack_js_1·=· | |||
| 00000730:·7265·7175·6972·6528·222e·2f75·6e70·6163··require("./unpac | |||
| 00000 | 00000740:·6b2e·6a73·2229·3b0a·636f·6e73·7420·6578··k.js");.const·ex | ||
| 000005a0:·6b65·5f63·6f6d·6d61·6e64·5f6a·735f·3120··ke_command_js_1· | |||
| 000005b0:·3d20·7265·7175·6972·6528·222e·2f6d·616b··=·require("./mak | |||
| 00000 | 00000750:·7472·6163·7446·696c·6553·796e·6320·3d20··tractFileSync·=· | ||
| 00000760:·286f·7074·2920·3d3e·207b·0a20·2020·2063··(opt)·=>·{.····c | |||
| 00000770:·6f6e·7374·2075·203d·206e·6577·2075·6e70··onst·u·=·new·unp | |||
| 00000780:·6163·6b5f·6a73·5f31·2e55·6e70·6163·6b53··ack_js_1.UnpackS | |||
| 00000790:·796e·6328·6f70·7429·3b0a·2020·2020·636f··ync(opt);.····co | |||
| 000007a0:·6e73·7420·6669·6c65·203d·206f·7074·2e66··nst·file·=·opt.f | |||
| 000007b0:·696c·653b·0a20·2020·2063·6f6e·7374·2073··ile;.····const·s | |||
| 000007c0:·7461·7420·3d20·6e6f·6465·5f66·735f·312e··tat·=·node_fs_1. | |||
| 000007d0:·6465·6661·756c·742e·7374·6174·5379·6e63··default.statSync | |||
| 000007e0:·2866·696c·6529·3b0a·2020·2020·2f2f·2054··(file);.····//·T | |||
| 000007f0:·6869·7320·7472·6164·6573·2061·207a·6572··his·trades·a·zer | |||
| 00000800:·6f2d·6279·7465·2072·6561·6428·2920·7379··o-byte·read()·sy | |||
| 00000810:·7363·616c·6c20·666f·7220·6120·7374·6174··scall·for·a·stat | |||
| Max diff block lines reached; -1/22364 bytes (-0.00%) of diff not shown. | |||
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"extract.js", | 2 | ····"file":·"extract.js", |
| 3 | ····"mappings":·";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS;AACT,yDAA0C;AAC1C,sDAAwB;AACxB,uC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IAAA,6BAAW,EAChC,eAAe,EACf,WAAW,EACX,GAAG,CAAC,EAAE,CAAC,IAAI,sBAAU,CAAC,GAAG,CAAC,EAC1B,GAAG,CAAC,EAAE,CAAC,IAAI,kBAAM,CAAC,GAAG,CAAC,EACtB,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;IACb,IAAI,KAAK,EAAE,MAAM;QAAE,IAAA,qBAAW,EAAC,GAAG,EAAE,KAAK,CAAC,CAAA;AAC5C,CAAC,CACF,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/extract.ts" | 7 | ········"../../src/extract.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·tar·-x\nimport·*·as·fsm·from·'@isaacs/fs-minipass'\nimport·fs·from·'node:fs'\nimport·{·filesFilter·}·from·'./list.js'\nimport·{·makeCommand·}·from·'./make-command.js'\nimport·{·TarOptionsFile,·TarOptionsSyncFile·}·from·'./options.js'\nimport·{·Unpack,·UnpackSync·}·from·'./unpack.js'\n\nconst·extractFileSync·=·(opt:·TarOptionsSyncFile)·=>·{\n··const·u·=·new·UnpackSync(opt)\n··const·file·=·opt.file\n··const·stat·=·fs.statSync(file)\n··//·This·trades·a·zero-byte·read()·syscall·for·a·stat\n··//·However,·it·will·usually·result·in·less·memory·allocation\n··const·readSize·=·opt.maxReadSize·||·16·*·1024·*·1024\n··const·stream·=·new·fsm.ReadStreamSync(file,·{\n····readSize:·readSize,\n····size:·stat.size,\n··})\n··stream.pipe(u)\n}\n\nconst·extractFile·=·(opt:·TarOptionsFile,·_?:·string[])·=>·{\n··const·u·=·new·Unpack(opt)\n··const·readSize·=·opt.maxReadSize·||·16·*·1024·*·1024\n\n··const·file·=·opt.file\n··const·p·=·new·Promise<void>((resolve,·reject)·=>·{\n····u.on('error',·reject)\n····u.on('close',·resolve)\n\n····//·This·trades·a·zero-byte·read()·syscall·for·a·stat\n····//·However,·it·will·usually·result·in·less·memory·allocation\n····fs.stat(file,·(er,·stat)·=>·{\n······if·(er)·{\n········reject(er)\n······}·else·{\n········const·stream·=·new·fsm.ReadStream(file,·{\n··········readSize:·readSize,\n··········size:·stat.size,\n········})\n········stream.on('error',·reject)\n········stream.pipe(u)\n······}\n····})\n··})\n··return·p\n}\n\nexport·const·extract·=·makeCommand<Unpack,·UnpackSync>(\n··extractFileSync,\n··extractFile,\n··opt·=>·new·UnpackSync(opt),\n··opt·=>·new·Unpack(opt),\n··(opt,·files)·=>·{\n····if·(files?.length)·filesFilter(opt,·files)\n··},\n)\n" | 10 | ········"//·tar·-x\nimport·*·as·fsm·from·'@isaacs/fs-minipass'\nimport·fs·from·'node:fs'\nimport·{·filesFilter·}·from·'./list.js'\nimport·{·makeCommand·}·from·'./make-command.js'\nimport·{·TarOptionsFile,·TarOptionsSyncFile·}·from·'./options.js'\nimport·{·Unpack,·UnpackSync·}·from·'./unpack.js'\n\nconst·extractFileSync·=·(opt:·TarOptionsSyncFile)·=>·{\n··const·u·=·new·UnpackSync(opt)\n··const·file·=·opt.file\n··const·stat·=·fs.statSync(file)\n··//·This·trades·a·zero-byte·read()·syscall·for·a·stat\n··//·However,·it·will·usually·result·in·less·memory·allocation\n··const·readSize·=·opt.maxReadSize·||·16·*·1024·*·1024\n··const·stream·=·new·fsm.ReadStreamSync(file,·{\n····readSize:·readSize,\n····size:·stat.size,\n··})\n··stream.pipe(u)\n}\n\nconst·extractFile·=·(opt:·TarOptionsFile,·_?:·string[])·=>·{\n··const·u·=·new·Unpack(opt)\n··const·readSize·=·opt.maxReadSize·||·16·*·1024·*·1024\n\n··const·file·=·opt.file\n··const·p·=·new·Promise<void>((resolve,·reject)·=>·{\n····u.on('error',·reject)\n····u.on('close',·resolve)\n\n····//·This·trades·a·zero-byte·read()·syscall·for·a·stat\n····//·However,·it·will·usually·result·in·less·memory·allocation\n····fs.stat(file,·(er,·stat)·=>·{\n······if·(er)·{\n········reject(er)\n······}·else·{\n········const·stream·=·new·fsm.ReadStream(file,·{\n··········readSize:·readSize,\n··········size:·stat.size,\n········})\n········stream.on('error',·reject)\n········stream.pipe(u)\n······}\n····})\n··})\n··return·p\n}\n\nexport·const·extract·=·makeCommand<Unpack,·UnpackSync>(\n··extractFileSync,\n··extractFile,\n··opt·=>·new·UnpackSync(opt),\n··opt·=>·new·Unpack(opt),\n··(opt,·files)·=>·{\n····if·(files?.length)·filesFilter(opt,·files)\n··},\n)\n" |
| Offset 1, 9 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | ///·<reference·types="node"·/> | ||
| 3 | import·type·{·EntryTypeCode,·EntryTypeName·}·from·'./types.js'; | 1 | import·type·{·EntryTypeCode,·EntryTypeName·}·from·'./types.js'; |
| 4 | export·type·HeaderData·=·{ | 2 | export·type·HeaderData·=·{ |
| 5 | ····path?:·string; | 3 | ····path?:·string; |
| 6 | ····mode?:·number; | 4 | ····mode?:·number; |
| 7 | ····uid?:·number; | 5 | ····uid?:·number; |
| 8 | ····gid?:·number; | 6 | ····gid?:·number; |
| 9 | ····size?:·number; | 7 | ····size?:·number; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"header.d.ts", | 2 | ····"file":·"header.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG9D,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CA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C,EAAE,MAAM,CAAA;gBAGd,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,EAC1B,GAAG,GAAE,MAAU,EACf,EAAE,CAAC,EAAE,UAAU,EACf,GAAG,CAAC,EAAE,UAAU;IASlB,MAAM,CACJ,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,EAAE,CAAC,EAAE,UAAU,EACf,GAAG,CAAC,EAAE,UAAU;IA+GlB,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,MAAU;IAwEpC,IAAI,IAAI,IAAI,aAAa,CAKxB;IAED,IAAI,OAAO,IAAI,aAAa,GAAG,aAAa,CAE3C;IAED,IAAI,IAAI,CAAC,IAAI,EAAE,aAAa,GAAG,aAAa,GAAG,aAAa,EAS3D;CACF", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/header.ts" | 7 | ········"../../src/header.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 57, 714 lines modified | Offset 57, 734 lines modified | ||
| 00000380:·6d65·7261·626c·653a·2074·7275·652c·2076··merable:·true,·v | 00000380:·6d65·7261·626c·653a·2074·7275·652c·2076··merable:·true,·v | ||
| 00000390:·616c·7565·3a20·7620·7d29·3b0a·7d29·203a··alue:·v·});.})·: | 00000390:·616c·7565·3a20·7620·7d29·3b0a·7d29·203a··alue:·v·});.})·: | ||
| 000003a0:·2066·756e·6374·696f·6e28·6f2c·2076·2920···function(o,·v)· | 000003a0:·2066·756e·6374·696f·6e28·6f2c·2076·2920···function(o,·v)· | ||
| 000003b0:·7b0a·2020·2020·6f5b·2264·6566·6175·6c74··{.····o["default | 000003b0:·7b0a·2020·2020·6f5b·2264·6566·6175·6c74··{.····o["default | ||
| 000003c0:·225d·203d·2076·3b0a·7d29·3b0a·7661·7220··"]·=·v;.});.var· | 000003c0:·225d·203d·2076·3b0a·7d29·3b0a·7661·7220··"]·=·v;.});.var· | ||
| 000003d0:·5f5f·696d·706f·7274·5374·6172·203d·2028··__importStar·=·( | 000003d0:·5f5f·696d·706f·7274·5374·6172·203d·2028··__importStar·=·( | Diff chunk too large, falling back to line-by-line diff (409 lines added, 409 lines removed) | |
| 000003e0:·7468·6973·2026·2620·7468·6973·2e5f·5f69··this·&&·this.__i | 000003e0:·7468·6973·2026·2620·7468·6973·2e5f·5f69··this·&&·this.__i | ||
| 000003f0:·6d70·6f72·7453·7461·7229·207c·7c20· | 000003f0:·6d70·6f72·7453·7461·7229·207c·7c20·2866··mportStar)·||·(f | ||
| 00000400:·6e63 | 00000400:·756e·6374·696f·6e20·2829·207b·0a20·2020··unction·()·{.··· | ||
| 00000410:·20 | 00000410:·2076·6172·206f·776e·4b65·7973·203d·2066···var·ownKeys·=·f | ||
| 00000420:· | 00000420:·756e·6374·696f·6e28·6f29·207b·0a20·2020··unction(o)·{.··· | ||
| 00000430:· | 00000430:·2020·2020·206f·776e·4b65·7973·203d·204f·······ownKeys·=·O | ||
| 00000440:· | 00000440:·626a·6563·742e·6765·744f·776e·5072·6f70··bject.getOwnProp | ||
| 00000450:· | 00000450:·6572·7479·4e61·6d65·7320·7c7c·2066·756e··ertyNames·||·fun | ||
| 00000460:·6 | 00000460:·6374·696f·6e20·286f·2920·7b0a·2020·2020··ction·(o)·{.···· | ||
| 00000470:· | 00000470:·2020·2020·2020·2020·7661·7220·6172·203d··········var·ar·= | ||
| 00000480:·20 | 00000480:·205b·5d3b·0a20·2020·2020·2020·2020·2020···[];.··········· | ||
| 00000490:· | 00000490:·2066·6f72·2028·7661·7220·6b20·696e·206f···for·(var·k·in·o | ||
| 000004a0:· | 000004a0:·2920·6966·2028·4f62·6a65·6374·2e70·726f··)·if·(Object.pro | ||
| 000004b0:· | 000004b0:·746f·7479·7065·2e68·6173·4f77·6e50·726f··totype.hasOwnPro | ||
| 000004c0:· | 000004c0:·7065·7274·792e·6361·6c6c·286f·2c20·6b29··perty.call(o,·k) | ||
| 000004d0:· | 000004d0:·2920·6172·5b61·722e·6c65·6e67·7468·5d20··)·ar[ar.length]· | ||
| 000004e0:· | 000004e0:·3d20·6b3b·0a20·2020·2020·2020·2020·2020··=·k;.··········· | ||
| 000004f0:· | 000004f0:·2072·6574·7572·6e20·6172·3b0a·2020·2020···return·ar;.···· | ||
| 00000500:· | 00000500:·2020·2020·7d3b·0a20·2020·2020·2020·2072······};.········r | ||
| 00000510:· | 00000510:·6574·7572·6e20·6f77·6e4b·6579·7328·6f29··eturn·ownKeys(o) | ||
| 00000520:· | 00000520:·3b0a·2020·2020·7d3b·0a20·2020·2072·6574··;.····};.····ret | ||
| 00000530:·7 | 00000530:·7572·6e20·6675·6e63·7469·6f6e·2028·6d6f··urn·function·(mo | ||
| 00000540:·6 | 00000540:·6429·207b·0a20·2020·2020·2020·2069·6620··d)·{.········if· | ||
| 00000550:· | 00000550:·286d·6f64·2026·2620·6d6f·642e·5f5f·6573··(mod·&&·mod.__es | ||
| 00000560:· | 00000560:·4d6f·6475·6c65·2920·7265·7475·726e·206d··Module)·return·m | ||
| 00000570:·6 | 00000570:·6f64·3b0a·2020·2020·2020·2020·7661·7220··od;.········var· | ||
| 00000580:· | 00000580:·7265·7375·6c74·203d·207b·7d3b·0a20·2020··result·=·{};.··· | ||
| 00000590:· | 00000590:·2020·2020·2069·6620·286d·6f64·2021·3d20·······if·(mod·!=· | ||
| 000005a0:·6 | 000005a0:·6e75·6c6c·2920·666f·7220·2876·6172·206b··null)·for·(var·k | ||
| 000005b0:· | 000005b0:·203d·206f·776e·4b65·7973·286d·6f64·292c···=·ownKeys(mod), | ||
| 000005c0:· | 000005c0:·2069·203d·2030·3b20·6920·3c20·6b2e·6c65···i·=·0;·i·<·k.le | ||
| 000005d0:· | 000005d0:·6e67·7468·3b20·692b·2b29·2069·6620·286b··ngth;·i++)·if·(k | ||
| 000005e0:· | 000005e0:·5b69·5d20·213d·3d20·2264·6566·6175·6c74··[i]·!==·"default | ||
| 000005f0:· | 000005f0:·2229·205f·5f63·7265·6174·6542·696e·6469··")·__createBindi | ||
| 00000600:· | 00000600:·6e67·2872·6573·756c·742c·206d·6f64·2c20··ng(result,·mod,· | ||
| 00000610:·6 | 00000610:·6b5b·695d·293b·0a20·2020·2020·2020·205f··k[i]);.········_ | ||
| 00000620:·5 | 00000620:·5f73·6574·4d6f·6475·6c65·4465·6661·756c··_setModuleDefaul | ||
| 00000630:· | 00000630:·7428·7265·7375·6c74·2c20·6d6f·6429·3b0a··t(result,·mod);. | ||
| 00000640:· | 00000640:·2020·2020·2020·2020·7265·7475·726e·2072··········return·r | ||
| 00000650:·6 | 00000650:·6573·756c·743b·0a20·2020·207d·3b0a·7d29··esult;.····};.}) | ||
| 00000660:· | 00000660:·2829·3b0a·4f62·6a65·6374·2e64·6566·696e··();.Object.defin | ||
| 00000670:· | 00000670:·6550·726f·7065·7274·7928·6578·706f·7274··eProperty(export | ||
| 00000680:· | 00000680:·732c·2022·5f5f·6573·4d6f·6475·6c65·222c··s,·"__esModule", | ||
| 00000690:· | 00000690:·207b·2076·616c·7565·3a20·7472·7565·207d···{·value:·true·} | ||
| 000006a0:· | 000006a0:·293b·0a65·7870·6f72·7473·2e48·6561·6465··);.exports.Heade | ||
| 000006b0:·7 | 000006b0:·7220·3d20·766f·6964·2030·3b0a·636f·6e73··r·=·void·0;.cons | ||
| 000006c0:· | 000006c0:·7420·6e6f·6465·5f70·6174·685f·3120·3d20··t·node_path_1·=· | ||
| 000006d0:· | 000006d0:·7265·7175·6972·6528·226e·6f64·653a·7061··require("node:pa | ||
| 000006e0:· | 000006e0:·7468·2229·3b0a·636f·6e73·7420·6c61·7267··th");.const·larg | ||
| 000006f0:· | 000006f0:·6520·3d20·5f5f·696d·706f·7274·5374·6172··e·=·__importStar | ||
| 00000700:·2 | 00000700:·2872·6571·7569·7265·2822·2e2f·6c61·7267··(require("./larg | ||
| 00000710:· | 00000710:·652d·6e75·6d62·6572·732e·6a73·2229·293b··e-numbers.js")); | ||
| 00000720:·0a | 00000720:·0a63·6f6e·7374·2074·7970·6573·203d·205f··.const·types·=·_ | ||
| 00000730:· | 00000730:·5f69·6d70·6f72·7453·7461·7228·7265·7175··_importStar(requ | ||
| 00000740:·6 | 00000740:·6972·6528·222e·2f74·7970·6573·2e6a·7322··ire("./types.js" | ||
| 00000750:·2 | 00000750:·2929·3b0a·636c·6173·7320·4865·6164·6572··));.class·Header | ||
| 00000760:· | 00000760:·207b·0a20·2020·2063·6b73·756d·5661·6c69···{.····cksumVali | ||
| 00000770:· | 00000770:·6420·3d20·6661·6c73·653b·0a20·2020·206e··d·=·false;.····n | ||
| 00000780:· | 00000780:·6565·6450·6178·203d·2066·616c·7365·3b0a··eedPax·=·false;. | ||
| 00000790:·2020·2020· | 00000790:·2020·2020·6e75·6c6c·426c·6f63·6b20·3d20······nullBlock·=· | ||
| 000007a0:·6 | 000007a0:·6661·6c73·653b·0a20·2020·2062·6c6f·636b··false;.····block | ||
| 000007b0:· | 000007b0:·3b0a·2020·2020·7061·7468·3b0a·2020·2020··;.····path;.···· | ||
| 000007c0:· | 000007c0:·6d6f·6465·3b0a·2020·2020·7569·643b·0a20··mode;.····uid;.· | ||
| 000007d0:· | 000007d0:·2020·2067·6964·3b0a·2020·2020·7369·7a65·····gid;.····size | ||
| 000007e0:· | 000007e0:·3b0a·2020·2020·636b·7375·6d3b·0a20·2020··;.····cksum;.··· | ||
| 000007f0:·2 | 000007f0:·2023·7479·7065·203d·2027·556e·7375·7070···#type·=·'Unsupp | ||
| 00000800:· | 00000800:·6f72·7465·6427·3b0a·2020·2020·6c69·6e6b··orted';.····link | ||
| 00000810:· | 00000810:·7061·7468·3b0a·2020·2020·756e·616d·653b··path;.····uname; | ||
| 00000820:· | 00000820:·0a20·2020·2067·6e61·6d65·3b0a·2020·2020··.····gname;.···· | ||
| 00000830:· | 00000830:·6465·766d·616a·203d·2030·3b0a·2020·2020··devmaj·=·0;.···· | ||
| 00000840:· | 00000840:·6465·766d·696e·203d·2030·3b0a·2020·2020··devmin·=·0;.···· | ||
| 00000850:·6 | 00000850:·6174·696d·653b·0a20·2020·2063·7469·6d65··atime;.····ctime | ||
| 00000860:· | 00000860:·3b0a·2020·2020·6d74·696d·653b·0a20·2020··;.····mtime;.··· | ||
| 00000870:· | 00000870:·2063·6861·7273·6574·3b0a·2020·2020·636f···charset;.····co | ||
| 00000880:·6 | 00000880:·6d6d·656e·743b·0a20·2020·2063·6f6e·7374··mment;.····const | ||
| 00000890:· | 00000890:·7275·6374·6f72·2864·6174·612c·206f·6666··ructor(data,·off | ||
| 000008a0:· | 000008a0:·203d·2030·2c20·6578·2c20·6765·7829·207b···=·0,·ex,·gex)·{ | ||
| 000008b0:· | 000008b0:·0a20·2020·2020·2020·2069·6620·2842·7566··.········if·(Buf | ||
| 000008c0:·6 | 000008c0:·6665·722e·6973·4275·6666·6572·2864·6174··fer.isBuffer(dat | ||
| 000008d0:· | 000008d0:·6129·2920·7b0a·2020·2020·2020·2020·2020··a))·{.·········· | ||
| 000008e0:· | 000008e0:·2020·7468·6973·2e64·6563·6f64·6528·6461····this.decode(da | ||
| 000008f0:· | 000008f0:·7461·2c20·6f66·6620·7c7c·2030·2c20·6578··ta,·off·||·0,·ex | ||
| 00000900:·2 | 00000900:·2c20·6765·7829·3b0a·2020·2020·2020·2020··,·gex);.········ | ||
| 00000910:· | 00000910:·7d0a·2020·2020·2020·2020·656c·7365·2069··}.········else·i | ||
| 00000920:·6 | 00000920:·6620·2864·6174·6129·207b·0a20·2020·2020··f·(data)·{.····· | ||
| 00000930:·20 | 00000930:·2020·2020·2020·2074·6869·732e·2373·6c75·········this.#slu | ||
| 00000940:· | 00000940:·7270·2864·6174·6129·3b0a·2020·2020·2020··rp(data);.······ | ||
| 00000950:·202 | 00000950:·2020·7d0a·2020·2020·7d0a·2020·2020·6465····}.····}.····de | ||
| 00000960:· | 00000960:·636f·6465·2862·7566·2c20·6f66·662c·2065··code(buf,·off,·e | ||
| 00000970:·78 | 00000970:·782c·2067·6578·2920·7b0a·2020·2020·2020··x,·gex)·{.······ | ||
| 00000980:·696 | 00000980:·2020·6966·2028·216f·6666·2920·7b0a·2020····if·(!off)·{.·· | ||
| 00000990:· | 00000990:·2020·2020·2020·2020·2020·6f66·6620·3d20············off·=· | ||
| Max diff block lines reached; 42350/99366 bytes (42.62%) of diff not shown. | |||
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"header.js", | 2 | ····"file":·"header.js", |
| 3 | ····"mappings":·";AAAA,gEAAgE;AAChE,oEAAoE;AACpE,+DAA+D;AAC/D,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhE,yCAA+C;AAC/C,0DAA2C;AAE3C,kDAAmC;AA4BnC,MAAa,MAAM;IACjB,UAAU,GAAY,KAAK,CAAA;IAC3B,OAAO,GAAY,KAAK,CAAA;IACxB,SAAS,GAAY,KAAK,CAAA;IAE1B,KAAK,CAAS;IACd,IAAI,CAAS;IACb,IAAI,CAAS;IACb,GAAG,CAAS;IACZ,GAAG,CAAS;IACZ,IAAI,CAAS;IACb,KAAK,CAAS;IACd,KAAK,GAAkC,aAAa,CAAA;IACpD,QAAQ,CAAS;IACjB,KAAK,CAAS;IACd,KAAK,CAAS;IACd,MAAM,GAAW,CAAC,CAAA;IAClB,MAAM,GAAW,CAAC,CAAA;IAClB,KAAK,CAAO;IACZ,KAAK,CAAO;IACZ,KAAK,CAAO;IAEZ,OAAO,CAAS;IAChB,OAAO,CAAS;IAEhB,YACE,IAA0B,EAC1B,MAAc,CAAC,EACf,EAAe,EACf,GAAgB;QAEhB,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;QACtC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AC1D,MAAM,SAAS,GAAG,CAChB,GAAW,EACX,GAAW,EACX,IAAY,EACZ,GAAY,EACZ,EAAE,CACF,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAC1B,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC;IAC1C,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAC5D,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/header.ts" | 7 | ········"../../src/header.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·parse·a·512-byte·header·block·to·a·data·object,·or·vice-versa\n//·encode·returns·`true`·if·a·pax·extended·header·is·needed,·because\n//·the·data·could·not·be·faithfully·encoded·in·a·simple·header.\n//·(Also,·check·header.needPax·to·see·if·it·needs·a·pax·header.)\n\nimport·{·posix·as·pathModule·}·from·'node:path'\nimport·*·as·large·from·'./large-numbers.js'\nimport·type·{·EntryTypeCode,·EntryTypeName·}·from·'./types.js'\nimport·*·as·types·from·'./types.js'\n\nexport·type·HeaderData·=·{\n··path?:·string\n··mode?:·number\n··uid?:·number\n··gid?:·number\n··size?:·number\n··cksum?:·number\n··type?:·EntryTypeName·|·'Unsupported'\n··linkpath?:·string\n··uname?:·string\n··gname?:·string\n··devmaj?:·number\n··devmin?:·number\n··atime?:·Date\n··ctime?:·Date\n··mtime?:·Date\n\n··//·fields·that·are·common·in·extended·PAX·headers,·but·not·in·the\n··//·\"standard\"·tar·header·block\n··charset?:·string\n··comment?:·string\n··dev?:·number\n··ino?:·number\n··nlink?:·number\n}\n\nexport·class·Header·implements·HeaderData·{\n··cksumValid:·boolean·=·false\n··needPax:·boolean·=·false\n··nullBlock:·boolean·=·false\n\n··block?:·Buffer\n··path?:·string\n··mode?:·number\n··uid?:·number\n··gid?:·number\n··size?:·number\n··cksum?:·number\n··#type:·EntryTypeCode·|·'Unsupported'·=·'Unsupported'\n··linkpath?:·string\n··uname?:·string\n··gname?:·string\n··devmaj:·number·=·0\n··devmin:·number·=·0\n··atime?:·Date\n··ctime?:·Date\n··mtime?:·Date\n\n··charset?:·string\n··comment?:·string\n\n··constructor(\n····data?:·Buffer·|·HeaderData,\n····off:·number·=·0,\n····ex?:·HeaderData,\n····gex?:·HeaderData,\n··)·{\n····if·(Buffer.isBuffer(data))·{\n······this.decode(data,·off·||·0,·ex,·gex)\n····}·else·if·(data)·{\n······this.#slurp(data)\n····}\n··}\n\n··decode(\n····buf:·Buffer,\n····off:·number,\n····ex?:·HeaderData,\n····gex?:·HeaderData,\n··)·{\n····if·(!off)·{\n······off·=·0\n····}\n\n····if·(!buf·||·!(buf.length·>=·off·+·512))·{\n······throw·new·Error('need·512·bytes·for·header')\n····}\n\n····this.path·=·ex?.path·??·decString(buf,·off,·100)\n····this.mode·=·ex?.mode·??·gex?.mode·??·decNumber(buf,·off·+·100,·8)\n····this.uid·=·ex?.uid·??·gex?.uid·??·decNumber(buf,·off·+·108,·8)\n····this.gid·=·ex?.gid·??·gex?.gid·??·decNumber(buf,·off·+·116,·8)\n····this.size·=·ex?.size·??·gex?.size·??·decNumber(buf,·off·+·124,·12)\n····this.mtime·=\n······ex?.mtime·??·gex?.mtime·??·decDate(buf,·off·+·136,·12)\n····this.cksum·=·decNumber(buf,·off·+·148,·12)\n\n····//·if·we·have·extended·or·global·extended·headers,·apply·them·now\n····//·See·https://github.com/npm/node-tar/pull/187\n····//·Apply·global·before·local,·so·it·overrides\n····if·(gex)·this.#slurp(gex,·true)\n····if·(ex)·this.#slurp(ex)\n\n····//·old·tar·versions·marked·dirs·as·a·file·with·a·trailing·/\n····const·t·=·decString(buf,·off·+·156,·1)\n····if·(types.isCode(t))·{\n······this.#type·=·t·||·'0'\n····}\n····if·(this.#type·===·'0'·&&·this.path.slice(-1)·===·'/')·{\n······this.#type·=·'5'\n····}\n\n····//·tar·implementations·sometimes·incorrectly·put·the·stat(dir).size\n····//·as·the·size·in·the·tarball,·even·though·Directory·entries·are\n····//·not·able·to·have·any·body·at·all.··In·the·very·rare·chance·that\n····//·it·actually·DOES·have·a·body,·we·weren't·going·to·do·anything·with\n····//·it·anyway,·and·it'll·just·be·a·warning·about·an·invalid·header.\n····if·(this.#type·===·'5')·{\n······this.size·=·0\n····}\n\n····this.linkpath·=·decString(buf,·off·+·157,·100)\n····if·(\n······buf.subarray(off·+·257,·off·+·265).toString()·===\n······'ustar\\u000000'\n····)·{\n······/*·c8·ignore·start·*/\n······this.uname·=\n········ex?.uname·??·gex?.uname·??·decString(buf,·off·+·265,·32)\n······this.gname·=\n········ex?.gname·??·gex?.gname·??·decString(buf,·off·+·297,·32)\n······this.devmaj·=\n········ex?.devmaj·??·gex?.devmaj·??·decNumber(buf,·off·+·329,·8)·??·0\n······this.devmin·=\n········ex?.devmin·??·gex?.devmin·??·decNumber(buf,·off·+·337,·8)·??·0\n······/*·c8·ignore·stop·*/\n······if·(buf[off·+·475]·!==·0)·{\n········//·definitely·a·prefix,·definitely·>130·chars.\n········const·prefix·=·decString(buf,·off·+·345,·155)\n········this.path·=·prefix·+·'/'·+·this.path\n······}·else·{\n········const·prefix·=·decString(buf,·off·+·345,·130)\n········if·(prefix)·{\n··········this.path·=·prefix·+·'/'·+·this.path\n········}\n········/*·c8·ignore·start·*/\n········this.atime·=\n··········ex?.atime·??·gex?.atime·??·decDate(buf,·off·+·476,·12)\n········this.ctime·=\n··········ex?.ctime·??·gex?.ctime·??·decDate(buf,·off·+·488,·12)\n········/*·c8·ignore·stop·*/\n······}\n····}\n\n····let·sum·=·8·*·0x20\n····for·(let·i·=·off;·i·<·off·+·148;·i++)·{\n······sum·+=·buf[i]·as·number\n····}\n\n····for·(let·i·=·off·+·156;·i·<·off·+·512;·i++)·{\n······sum·+=·buf[i]·as·number\n····}\n\n····this.cksumValid·=·sum·===·this.cksum\n····if·(this.cksum·===·undefined·&&·sum·===·8·*·0x20)·{\n······this.nullBlock·=·true\n····}\n··}\n\n··#slurp(ex:·HeaderData,·gex:·boolean·=·false)·{\n····Object.assign(\n······this,\n······Object.fromEntries(\n········Object.entries(ex).filter(([k,·v])·=>·{\n··········//·we·slurp·in·everything·except·for·the·path·attribute·in\n··········//·a·global·extended·header,·because·that's·weird.·Also,·any\n··········//·null/undefined·values·are·ignored.\n··········return·!(\n············v·===·null·||\n············v·===·undefined·||\n············(k·===·'path'·&&·gex)·||\n············(k·===·'linkpath'·&&·gex)·||\n············k·===·'global'\n··········)\n········}),\n······),\n····)\n··}\n\n··encode(buf?:·Buffer,·off:·number·=·0)·{\n····if·(!buf)·{\n······buf·=·this.block·=·Buffer.alloc(512)\n····}\n\n····if·(this.#type·===·'Unsupported')·{\n······this.#type·=·'0'\n····}\n\n····if·(!(buf.length·>=·off·+·512))·{\n······throw·new·Error('need·512·bytes·for·header')\n····}\n\n····const·prefixSize·=·this.ctime·||·this.atime·?·130·:·155\n····const·split·=·splitPrefix(this.path·||·'',·prefixSize)\n····const·path·=·split[0]\n····const·prefix·=·split[1]\n····this.needPax·=·!!split[2]\n\n····this.needPax·=·encString(buf,·off,·100,·path)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·100,·8,·this.mode)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·108,·8,·this.uid)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·116,·8,·this.gid)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·124,·12,·this.size)·||·this.needPax\n····this.needPax·=\n······encDate(buf,·off·+·136,·12,·this.mtime)·||·this.needPax\n····buf[off·+·156]·=·this.#type.charCodeAt(0)\n····this.needPax·=\n······encString(buf,·off·+·157,·100,·this.linkpath)·||·this.needPax\n····buf.write('ustar\\u000000',·off·+·257,·8)\n····this.needPax·=\n······encString(buf,·off·+·265,·32,·this.uname)·||·this.needPax\n····this.needPax·=\n······encString(buf,·off·+·297,·32,·this.gname)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·329,·8,·this.devmaj)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·337,·8,·this.devmin)·||·this.needPax\n····this.needPax·=\n······encString(buf,·off·+·345,·prefixSize,·prefix)·||·this.needPax\n····if·(buf[off·+·475]·!==·0)·{\n······this.needPax·=\n········encString(buf,·off·+·345,·155,·prefix)·||·this.needPax\n····}·else·{\n······this.needPax·=\n········encString(buf,·off·+·345,·130,·prefix)·||·this.needPax\n······this.needPax·=\n········encDate(buf,·off·+·476,·12,·this.atime)·||·this.needPax\n······this.needPax·=\n········encDate(buf,·off·+·488,·12,·this.ctime)·||·this.needPax\n····}\n\n····let·sum·=·8·*·0x20\n····for·(let·i·=·off;·i·<·off·+·148;·i++)·{\n······sum·+=·buf[i]·as·number\n····}\n\n····for·(let·i·=·off·+·156;·i·<·off·+·512;·i++)·{\n······sum·+=·buf[i]·as·number\n····}\n\n····this.cksum·=·sum\n····encNumber(buf,·off·+·148,·8,·this.cksum)\n····this.cksumValid·=·true\n\n····return·this.needPax\n··}\n\n··get·type():·EntryTypeName·{\n····return·(\n······this.#type·===·'Unsupported'·?\n········this.#type\n······:·types.name.get(this.#type))·as·EntryTypeName\n··}\n\n··get·typeKey():·EntryTypeCode·|·'Unsupported'·{\n····return·this.#type\n··}\n\n··set·type(type:·EntryTypeCode·|·EntryTypeName·|·'Unsupported')·{\n····const·c·=·String(types.code.get(type·as·EntryTypeName))\n····if·(types.isCode(c)·||·c·===·'Unsupported')·{\n······this.#type·=·c\n····}·else·if·(types.isCode(type))·{\n······this.#type·=·type\n····}·else·{\n······throw·new·TypeError('invalid·entry·type:·'·+·type)\n····}\n··}\n}\n\nconst·splitPrefix·=·(\n··p:·string,\n··prefixSize:·number,\n):·[string,·string,·boolean]·=>·{\n··const·pathSize·=·100\n··let·pp·=·p\n··let·prefix·=·''\n··let·ret:·undefined·|·[string,·string,·boolean]·=·undefined\n··const·root·=·pathModule.parse(p).root·||·'.'\n\n··if·(Buffer.byteLength(pp)·<·pathSize)·{\n····ret·=·[pp,·prefix,·false]\n··}·else·{\n····//·first·set·prefix·to·the·dir,·and·path·to·the·base\n····prefix·=·pathModule.dirname(pp)\n····pp·=·pathModule.basename(pp)\n\n····do·{\n······if·(\n········Buffer.byteLength(pp)·<=·pathSize·&&\n········Buffer.byteLength(prefix)·<=·prefixSize\n······)·{\n········//·both·fit!\n········ret·=·[pp,·prefix,·false]\n······}·else·if·(\n········Buffer.byteLength(pp)·>·pathSize·&&\n········Buffer.byteLength(prefix)·<=·prefixSize\n······)·{\n········//·prefix·fits·in·prefix,·but·path·doesn't·fit·in·path\n········ret·=·[pp.slice(0,·pathSize·-·1),·prefix,·true]\n······}·else·{\n········//·make·path·take·a·bit·from·prefix\n········pp·=·pathModule.join(pathModule.basename(prefix),·pp)\n········prefix·=·pathModule.dirname(prefix)\n······}\n····}·while·(prefix·!==·root·&&·ret·===·undefined)\n\n····//·at·this·point,·found·no·resolution,·just·truncate\n····if·(!ret)·{\n······ret·=·[p.slice(0,·pathSize·-·1),·'',·true]\n····}\n··}\n··return·ret\n}\n\nconst·decString·=·(buf:·Buffer,·off:·number,·size:·number)·=>\n··buf\n····.subarray(off,·off·+·size)\n····.toString('utf8')\n····.replace(/\\0.*/,·'')\n\nconst·decDate·=·(buf:·Buffer,·off:·number,·size:·number)·=>\n··numToDate(decNumber(buf,·off,·size))\n\nconst·numToDate·=·(num?:·number)·=>\n··num·===·undefined·?·undefined·:·new·Date(num·*·1000)\n\nconst·decNumber·=·(buf:·Buffer,·off:·number,·size:·number)·=>\n··Number(buf[off])·&·0x80·?\n····large.parse(buf.subarray(off,·off·+·size))\n··:·decSmallNumber(buf,·off,·size)\n\nconst·nanUndef·=·(value:·number)·=>·(isNaN(value)·?·undefined·:·value)\n\nconst·decSmallNumber·=·(buf:·Buffer,·off:·number,·size:·number)·=>\n··nanUndef(\n····parseInt(\n······buf\n········.subarray(off,·off·+·size)\n········.toString('utf8')\n········.replace(/\\0.*$/,·'')\n········.trim(),\n······8,\n····),\n··)\n\n//·the·maximum·encodable·as·a·null-terminated·octal,·by·field·size\nconst·MAXNUM·=·{\n··12:·0o77777777777,\n··8:·0o7777777,\n}\n\nconst·encNumber·=·(\n··buf:·Buffer,\n··off:·number,\n··size:·12·|·8,\n··num?:·number,\n)·=>\n··num·===·undefined·?·false\n··:·num·>·MAXNUM[size]·||·num·<·0·?\n····(large.encode(num,·buf.subarray(off,·off·+·size)),·true)\n··:·(encSmallNumber(buf,·off,·size,·num),·false)\n\nconst·encSmallNumber·=·(\n··buf:·Buffer,\n··off:·number,\n··size:·number,\n··num:·number,\n)·=>·buf.write(octalString(num,·size),·off,·size,·'ascii')\n\nconst·octalString·=·(num:·number,·size:·number)·=>\n··padOctal(Math.floor(num).toString(8),·size)\n\nconst·padOctal·=·(str:·string,·size:·number)·=>\n··(str.length·===·size·-·1·?\n····str\n··:·new·Array(size·-·str.length·-·1).join('0')·+·str·+·'·')·+·'\\0'\n\nconst·encDate·=·(\n··buf:·Buffer,\n··off:·number,\n··size:·8·|·12,\n··date?:·Date,\n)·=>\n··date·===·undefined·?·false·:·(\n····encNumber(buf,·off,·size,·date.getTime()·/·1000)\n··)\n\n//·enough·to·fill·the·longest·string·we've·got\nconst·NULLS·=·new·Array(156).join('\\0')\n//·pad·with·nulls,·return·true·if·it's·longer·or·non-ascii\nconst·encString·=·(\n··buf:·Buffer,\n··off:·number,\n··size:·number,\n··str?:·string,\n)·=>\n··str·===·undefined·?·false·:·(\n····(buf.write(str·+·NULLS,·off,·size,·'utf8'),\n····str.length·!==·Buffer.byteLength(str)·||·str.length·>·size)\n··)\n" | 10 | ········"//·parse·a·512-byte·header·block·to·a·data·object,·or·vice-versa\n//·encode·returns·`true`·if·a·pax·extended·header·is·needed,·because\n//·the·data·could·not·be·faithfully·encoded·in·a·simple·header.\n//·(Also,·check·header.needPax·to·see·if·it·needs·a·pax·header.)\n\nimport·{·posix·as·pathModule·}·from·'node:path'\nimport·*·as·large·from·'./large-numbers.js'\nimport·type·{·EntryTypeCode,·EntryTypeName·}·from·'./types.js'\nimport·*·as·types·from·'./types.js'\n\nexport·type·HeaderData·=·{\n··path?:·string\n··mode?:·number\n··uid?:·number\n··gid?:·number\n··size?:·number\n··cksum?:·number\n··type?:·EntryTypeName·|·'Unsupported'\n··linkpath?:·string\n··uname?:·string\n··gname?:·string\n··devmaj?:·number\n··devmin?:·number\n··atime?:·Date\n··ctime?:·Date\n··mtime?:·Date\n\n··//·fields·that·are·common·in·extended·PAX·headers,·but·not·in·the\n··//·\"standard\"·tar·header·block\n··charset?:·string\n··comment?:·string\n··dev?:·number\n··ino?:·number\n··nlink?:·number\n}\n\nexport·class·Header·implements·HeaderData·{\n··cksumValid:·boolean·=·false\n··needPax:·boolean·=·false\n··nullBlock:·boolean·=·false\n\n··block?:·Buffer\n··path?:·string\n··mode?:·number\n··uid?:·number\n··gid?:·number\n··size?:·number\n··cksum?:·number\n··#type:·EntryTypeCode·|·'Unsupported'·=·'Unsupported'\n··linkpath?:·string\n··uname?:·string\n··gname?:·string\n··devmaj:·number·=·0\n··devmin:·number·=·0\n··atime?:·Date\n··ctime?:·Date\n··mtime?:·Date\n\n··charset?:·string\n··comment?:·string\n\n··constructor(\n····data?:·Buffer·|·HeaderData,\n····off:·number·=·0,\n····ex?:·HeaderData,\n····gex?:·HeaderData,\n··)·{\n····if·(Buffer.isBuffer(data))·{\n······this.decode(data,·off·||·0,·ex,·gex)\n····}·else·if·(data)·{\n······this.#slurp(data)\n····}\n··}\n\n··decode(\n····buf:·Buffer,\n····off:·number,\n····ex?:·HeaderData,\n····gex?:·HeaderData,\n··)·{\n····if·(!off)·{\n······off·=·0\n····}\n\n····if·(!buf·||·!(buf.length·>=·off·+·512))·{\n······throw·new·Error('need·512·bytes·for·header')\n····}\n\n····this.path·=·ex?.path·??·decString(buf,·off,·100)\n····this.mode·=·ex?.mode·??·gex?.mode·??·decNumber(buf,·off·+·100,·8)\n····this.uid·=·ex?.uid·??·gex?.uid·??·decNumber(buf,·off·+·108,·8)\n····this.gid·=·ex?.gid·??·gex?.gid·??·decNumber(buf,·off·+·116,·8)\n····this.size·=·ex?.size·??·gex?.size·??·decNumber(buf,·off·+·124,·12)\n····this.mtime·=\n······ex?.mtime·??·gex?.mtime·??·decDate(buf,·off·+·136,·12)\n····this.cksum·=·decNumber(buf,·off·+·148,·12)\n\n····//·if·we·have·extended·or·global·extended·headers,·apply·them·now\n····//·See·https://github.com/npm/node-tar/pull/187\n····//·Apply·global·before·local,·so·it·overrides\n····if·(gex)·this.#slurp(gex,·true)\n····if·(ex)·this.#slurp(ex)\n\n····//·old·tar·versions·marked·dirs·as·a·file·with·a·trailing·/\n····const·t·=·decString(buf,·off·+·156,·1)\n····if·(types.isCode(t))·{\n······this.#type·=·t·||·'0'\n····}\n····if·(this.#type·===·'0'·&&·this.path.slice(-1)·===·'/')·{\n······this.#type·=·'5'\n····}\n\n····//·tar·implementations·sometimes·incorrectly·put·the·stat(dir).size\n····//·as·the·size·in·the·tarball,·even·though·Directory·entries·are\n····//·not·able·to·have·any·body·at·all.··In·the·very·rare·chance·that\n····//·it·actually·DOES·have·a·body,·we·weren't·going·to·do·anything·with\n····//·it·anyway,·and·it'll·just·be·a·warning·about·an·invalid·header.\n····if·(this.#type·===·'5')·{\n······this.size·=·0\n····}\n\n····this.linkpath·=·decString(buf,·off·+·157,·100)\n····if·(\n······buf.subarray(off·+·257,·off·+·265).toString()·===\n······'ustar\\u000000'\n····)·{\n······/*·c8·ignore·start·*/\n······this.uname·=\n········ex?.uname·??·gex?.uname·??·decString(buf,·off·+·265,·32)\n······this.gname·=\n········ex?.gname·??·gex?.gname·??·decString(buf,·off·+·297,·32)\n······this.devmaj·=\n········ex?.devmaj·??·gex?.devmaj·??·decNumber(buf,·off·+·329,·8)·??·0\n······this.devmin·=\n········ex?.devmin·??·gex?.devmin·??·decNumber(buf,·off·+·337,·8)·??·0\n······/*·c8·ignore·stop·*/\n······if·(buf[off·+·475]·!==·0)·{\n········//·definitely·a·prefix,·definitely·>130·chars.\n········const·prefix·=·decString(buf,·off·+·345,·155)\n········this.path·=·prefix·+·'/'·+·this.path\n······}·else·{\n········const·prefix·=·decString(buf,·off·+·345,·130)\n········if·(prefix)·{\n··········this.path·=·prefix·+·'/'·+·this.path\n········}\n········/*·c8·ignore·start·*/\n········this.atime·=\n··········ex?.atime·??·gex?.atime·??·decDate(buf,·off·+·476,·12)\n········this.ctime·=\n··········ex?.ctime·??·gex?.ctime·??·decDate(buf,·off·+·488,·12)\n········/*·c8·ignore·stop·*/\n······}\n····}\n\n····let·sum·=·8·*·0x20\n····for·(let·i·=·off;·i·<·off·+·148;·i++)·{\n······sum·+=·buf[i]·as·number\n····}\n\n····for·(let·i·=·off·+·156;·i·<·off·+·512;·i++)·{\n······sum·+=·buf[i]·as·number\n····}\n\n····this.cksumValid·=·sum·===·this.cksum\n····if·(this.cksum·===·undefined·&&·sum·===·8·*·0x20)·{\n······this.nullBlock·=·true\n····}\n··}\n\n··#slurp(ex:·HeaderData,·gex:·boolean·=·false)·{\n····Object.assign(\n······this,\n······Object.fromEntries(\n········Object.entries(ex).filter(([k,·v])·=>·{\n··········//·we·slurp·in·everything·except·for·the·path·attribute·in\n··········//·a·global·extended·header,·because·that's·weird.·Also,·any\n··········//·null/undefined·values·are·ignored.\n··········return·!(\n············v·===·null·||\n············v·===·undefined·||\n············(k·===·'path'·&&·gex)·||\n············(k·===·'linkpath'·&&·gex)·||\n············k·===·'global'\n··········)\n········}),\n······),\n····)\n··}\n\n··encode(buf?:·Buffer,·off:·number·=·0)·{\n····if·(!buf)·{\n······buf·=·this.block·=·Buffer.alloc(512)\n····}\n\n····if·(this.#type·===·'Unsupported')·{\n······this.#type·=·'0'\n····}\n\n····if·(!(buf.length·>=·off·+·512))·{\n······throw·new·Error('need·512·bytes·for·header')\n····}\n\n····const·prefixSize·=·this.ctime·||·this.atime·?·130·:·155\n····const·split·=·splitPrefix(this.path·||·'',·prefixSize)\n····const·path·=·split[0]\n····const·prefix·=·split[1]\n····this.needPax·=·!!split[2]\n\n····this.needPax·=·encString(buf,·off,·100,·path)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·100,·8,·this.mode)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·108,·8,·this.uid)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·116,·8,·this.gid)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·124,·12,·this.size)·||·this.needPax\n····this.needPax·=\n······encDate(buf,·off·+·136,·12,·this.mtime)·||·this.needPax\n····buf[off·+·156]·=·this.#type.charCodeAt(0)\n····this.needPax·=\n······encString(buf,·off·+·157,·100,·this.linkpath)·||·this.needPax\n····buf.write('ustar\\u000000',·off·+·257,·8)\n····this.needPax·=\n······encString(buf,·off·+·265,·32,·this.uname)·||·this.needPax\n····this.needPax·=\n······encString(buf,·off·+·297,·32,·this.gname)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·329,·8,·this.devmaj)·||·this.needPax\n····this.needPax·=\n······encNumber(buf,·off·+·337,·8,·this.devmin)·||·this.needPax\n····this.needPax·=\n······encString(buf,·off·+·345,·prefixSize,·prefix)·||·this.needPax\n····if·(buf[off·+·475]·!==·0)·{\n······this.needPax·=\n········encString(buf,·off·+·345,·155,·prefix)·||·this.needPax\n····}·else·{\n······this.needPax·=\n········encString(buf,·off·+·345,·130,·prefix)·||·this.needPax\n······this.needPax·=\n········encDate(buf,·off·+·476,·12,·this.atime)·||·this.needPax\n······this.needPax·=\n········encDate(buf,·off·+·488,·12,·this.ctime)·||·this.needPax\n····}\n\n····let·sum·=·8·*·0x20\n····for·(let·i·=·off;·i·<·off·+·148;·i++)·{\n······sum·+=·buf[i]·as·number\n····}\n\n····for·(let·i·=·off·+·156;·i·<·off·+·512;·i++)·{\n······sum·+=·buf[i]·as·number\n····}\n\n····this.cksum·=·sum\n····encNumber(buf,·off·+·148,·8,·this.cksum)\n····this.cksumValid·=·true\n\n····return·this.needPax\n··}\n\n··get·type():·EntryTypeName·{\n····return·(\n······this.#type·===·'Unsupported'·?\n········this.#type\n······:·types.name.get(this.#type))·as·EntryTypeName\n··}\n\n··get·typeKey():·EntryTypeCode·|·'Unsupported'·{\n····return·this.#type\n··}\n\n··set·type(type:·EntryTypeCode·|·EntryTypeName·|·'Unsupported')·{\n····const·c·=·String(types.code.get(type·as·EntryTypeName))\n····if·(types.isCode(c)·||·c·===·'Unsupported')·{\n······this.#type·=·c\n····}·else·if·(types.isCode(type))·{\n······this.#type·=·type\n····}·else·{\n······throw·new·TypeError('invalid·entry·type:·'·+·type)\n····}\n··}\n}\n\nconst·splitPrefix·=·(\n··p:·string,\n··prefixSize:·number,\n):·[string,·string,·boolean]·=>·{\n··const·pathSize·=·100\n··let·pp·=·p\n··let·prefix·=·''\n··let·ret:·undefined·|·[string,·string,·boolean]·=·undefined\n··const·root·=·pathModule.parse(p).root·||·'.'\n\n··if·(Buffer.byteLength(pp)·<·pathSize)·{\n····ret·=·[pp,·prefix,·false]\n··}·else·{\n····//·first·set·prefix·to·the·dir,·and·path·to·the·base\n····prefix·=·pathModule.dirname(pp)\n····pp·=·pathModule.basename(pp)\n\n····do·{\n······if·(\n········Buffer.byteLength(pp)·<=·pathSize·&&\n········Buffer.byteLength(prefix)·<=·prefixSize\n······)·{\n········//·both·fit!\n········ret·=·[pp,·prefix,·false]\n······}·else·if·(\n········Buffer.byteLength(pp)·>·pathSize·&&\n········Buffer.byteLength(prefix)·<=·prefixSize\n······)·{\n········//·prefix·fits·in·prefix,·but·path·doesn't·fit·in·path\n········ret·=·[pp.slice(0,·pathSize·-·1),·prefix,·true]\n······}·else·{\n········//·make·path·take·a·bit·from·prefix\n········pp·=·pathModule.join(pathModule.basename(prefix),·pp)\n········prefix·=·pathModule.dirname(prefix)\n······}\n····}·while·(prefix·!==·root·&&·ret·===·undefined)\n\n····//·at·this·point,·found·no·resolution,·just·truncate\n····if·(!ret)·{\n······ret·=·[p.slice(0,·pathSize·-·1),·'',·true]\n····}\n··}\n··return·ret\n}\n\nconst·decString·=·(buf:·Buffer,·off:·number,·size:·number)·=>\n··buf\n····.subarray(off,·off·+·size)\n····.toString('utf8')\n····.replace(/\\0.*/,·'')\n\nconst·decDate·=·(buf:·Buffer,·off:·number,·size:·number)·=>\n··numToDate(decNumber(buf,·off,·size))\n\nconst·numToDate·=·(num?:·number)·=>\n··num·===·undefined·?·undefined·:·new·Date(num·*·1000)\n\nconst·decNumber·=·(buf:·Buffer,·off:·number,·size:·number)·=>\n··Number(buf[off])·&·0x80·?\n····large.parse(buf.subarray(off,·off·+·size))\n··:·decSmallNumber(buf,·off,·size)\n\nconst·nanUndef·=·(value:·number)·=>·(isNaN(value)·?·undefined·:·value)\n\nconst·decSmallNumber·=·(buf:·Buffer,·off:·number,·size:·number)·=>\n··nanUndef(\n····parseInt(\n······buf\n········.subarray(off,·off·+·size)\n········.toString('utf8')\n········.replace(/\\0.*$/,·'')\n········.trim(),\n······8,\n····),\n··)\n\n//·the·maximum·encodable·as·a·null-terminated·octal,·by·field·size\nconst·MAXNUM·=·{\n··12:·0o77777777777,\n··8:·0o7777777,\n}\n\nconst·encNumber·=·(\n··buf:·Buffer,\n··off:·number,\n··size:·12·|·8,\n··num?:·number,\n)·=>\n··num·===·undefined·?·false\n··:·num·>·MAXNUM[size]·||·num·<·0·?\n····(large.encode(num,·buf.subarray(off,·off·+·size)),·true)\n··:·(encSmallNumber(buf,·off,·size,·num),·false)\n\nconst·encSmallNumber·=·(\n··buf:·Buffer,\n··off:·number,\n··size:·number,\n··num:·number,\n)·=>·buf.write(octalString(num,·size),·off,·size,·'ascii')\n\nconst·octalString·=·(num:·number,·size:·number)·=>\n··padOctal(Math.floor(num).toString(8),·size)\n\nconst·padOctal·=·(str:·string,·size:·number)·=>\n··(str.length·===·size·-·1·?\n····str\n··:·new·Array(size·-·str.length·-·1).join('0')·+·str·+·'·')·+·'\\0'\n\nconst·encDate·=·(\n··buf:·Buffer,\n··off:·number,\n··size:·8·|·12,\n··date?:·Date,\n)·=>\n··date·===·undefined·?·false·:·(\n····encNumber(buf,·off,·size,·date.getTime()·/·1000)\n··)\n\n//·enough·to·fill·the·longest·string·we've·got\nconst·NULLS·=·new·Array(156).join('\\0')\n//·pad·with·nulls,·return·true·if·it's·longer·or·non-ascii\nconst·encString·=·(\n··buf:·Buffer,\n··off:·number,\n··size:·number,\n··str?:·string,\n)·=>\n··str·===·undefined·?·false·:·(\n····(buf.write(str·+·NULLS,·off,·size,·'utf8'),\n····str.length·!==·Buffer.byteLength(str)·||·str.length·>·size)\n··)\n" |
| Offset 54, 123 lines modified | Offset 54, 144 lines modified | ||
| 00000350:·776e·5072·6f70·6572·7479·2e63·616c·6c28··wnProperty.call( | 00000350:·776e·5072·6f70·6572·7479·2e63·616c·6c28··wnProperty.call( | ||
| 00000360:·6578·706f·7274·732c·2070·2929·205f·5f63··exports,·p))·__c | 00000360:·6578·706f·7274·732c·2070·2929·205f·5f63··exports,·p))·__c | ||
| 00000370:·7265·6174·6542·696e·6469·6e67·2865·7870··reateBinding(exp | 00000370:·7265·6174·6542·696e·6469·6e67·2865·7870··reateBinding(exp | ||
| 00000380:·6f72·7473·2c20·6d2c·2070·293b·0a7d·3b0a··orts,·m,·p);.};. | 00000380:·6f72·7473·2c20·6d2c·2070·293b·0a7d·3b0a··orts,·m,·p);.};. | ||
| 00000390:·7661·7220·5f5f·696d·706f·7274·5374·6172··var·__importStar | 00000390:·7661·7220·5f5f·696d·706f·7274·5374·6172··var·__importStar | ||
| 000003a0:·203d·2028·7468·6973·2026·2620·7468·6973···=·(this·&&·this | 000003a0:·203d·2028·7468·6973·2026·2620·7468·6973···=·(this·&&·this | ||
| 000003b0:·2e5f·5f69·6d70·6f72·7453·7461·7229·207c··.__importStar)·| | 000003b0:·2e5f·5f69·6d70·6f72·7453·7461·7229·207c··.__importStar)·| | ||
| 000003c0:·7c20·6675·6e63·7469·6f6e·2028·6d6f·6429··|·function·(mod) | |||
| 000003d0:·207b·0a20·2020·2069·6620·286d·6f64·2026···{.····if·(mod·& | |||
| 000003e0:·2620·6d6f·642e·5f5f·6573·4d6f·6475·6c65··&·mod.__esModule | |||
| 000003 | 000003c0:·7c20·2866·756e·6374·696f·6e20·2829·207b··|·(function·()·{ | ||
| 000003d0:·0a20·2020·2076·6172·206f·776e·4b65·7973··.····var·ownKeys | |||
| 000003e0:·203d·2066·756e·6374·696f·6e28·6f29·207b···=·function(o)·{ | |||
| 000003f0:·0a20·2020·2020·2020·206f·776e·4b65·7973··.········ownKeys | |||
| 00000400:·203d·204f·626a·6563·742e·6765·744f·776e···=·Object.getOwn | |||
| 00000410:·5072·6f70·6572·7479·4e61·6d65·7320·7c7c··PropertyNames·|| | |||
| 00000420:·2066·756e·6374·696f·6e20·286f·2920·7b0a···function·(o)·{. | |||
| 00000430:·2020·2020·2020·2020·2020·2020·7661·7220··············var· | |||
| 00000440:·6172·203d·205b·5d3b·0a20·2020·2020·2020··ar·=·[];.······· | |||
| 00000450:·2020·2020·2066·6f72·2028·7661·7220·6b20·······for·(var·k· | |||
| 00000460:·696e·206f·2920·6966·2028·4f62·6a65·6374··in·o)·if·(Object | |||
| 00000470:·2e70·726f·746f·7479·7065·2e68·6173·4f77··.prototype.hasOw | |||
| 00000480:·6e50·726f·7065·7274·792e·6361·6c6c·286f··nProperty.call(o | |||
| 00000490:·2c20·6b29·2920·6172·5b61·722e·6c65·6e67··,·k))·ar[ar.leng | |||
| 000004a0:·7468·5d20·3d20·6b3b·0a20·2020·2020·2020··th]·=·k;.······· | |||
| 000004b0:·2020·2020·2072·6574·7572·6e20·6172·3b0a·······return·ar;. | |||
| 000004c0:·2020·2020·2020·2020·7d3b·0a20·2020·2020··········};.····· | |||
| 000004d0:·2020·2072·6574·7572·6e20·6f77·6e4b·6579·····return·ownKey | |||
| 000004e0:·7328·6f29·3b0a·2020·2020·7d3b·0a20·2020··s(o);.····};.··· | |||
| 000004f0:·2072·6574·7572·6e20·6675·6e63·7469·6f6e···return·function | |||
| 00000500:·2028·6d6f·6429·207b·0a20·2020·2020·2020···(mod)·{.······· | |||
| 00000510:·2069·6620·286d·6f64·2026·2620·6d6f·642e···if·(mod·&&·mod. | |||
| 00000520:·5f5f·6573·4d6f·6475·6c65·2920·7265·7475··__esModule)·retu | |||
| 00000530:·726e·206d·6f64·3b0a·2020·2020·2020·2020··rn·mod;.········ | |||
| 00000 | 00000540:·7661·7220·7265·7375·6c74·203d·207b·7d3b··var·result·=·{}; | ||
| 00000 | 00000550:·0a20·2020·2020·2020·2069·6620·286d·6f64··.········if·(mod | ||
| 00000 | 00000560:·2021·3d20·6e75·6c6c·2920·666f·7220·2876···!=·null)·for·(v | ||
| 00000430:·206b·2069·6e20·6d6f·6429·2069·6620·286b···k·in·mod)·if·(k | |||
| 00000440:·2021·3d3d·2022·6465·6661·756c·7422·2026···!==·"default"·& | |||
| 00000450:·2620·4f62·6a65·6374·2e70·726f·746f·7479··&·Object.prototy | |||
| 00000460:·7065·2e68·6173·4f77·6e50·726f·7065·7274··pe.hasOwnPropert | |||
| 00000470:·792e·6361·6c6c·286d·6f64·2c20·6b29·2920··y.call(mod,·k))· | |||
| 00000480:·5f5f·6372·6561·7465·4269·6e64·696e·6728··__createBinding( | |||
| 00000 | 00000570:·6172·206b·203d·206f·776e·4b65·7973·286d··ar·k·=·ownKeys(m | ||
| 00000580:·6f64·292c·2069·203d·2030·3b20·6920·3c20··od),·i·=·0;·i·<· | |||
| 00000590:·6b2e·6c65·6e67·7468·3b20·692b·2b29·2069··k.length;·i++)·i | |||
| 000005a0:·6620·286b·5b69·5d20·213d·3d20·2264·6566··f·(k[i]·!==·"def | |||
| 000005b0:·6175·6c74·2229·205f·5f63·7265·6174·6542··ault")·__createB | |||
| 000005c0:·696e·6469·6e67·2872·6573·756c·742c·206d··inding(result,·m | |||
| 000005d0:·6f64·2c20·6b5b·695d·293b·0a20·2020·2020··od,·k[i]);.····· | |||
| 00000 | 000005e0:·2020·205f·5f73·6574·4d6f·6475·6c65·4465·····__setModuleDe | ||
| 00000 | 000005f0:·6661·756c·7428·7265·7375·6c74·2c20·6d6f··fault(result,·mo | ||
| 00000 | 00000600:·6429·3b0a·2020·2020·2020·2020·7265·7475··d);.········retu | ||
| 00000610:·726e·2072·6573·756c·743b·0a20·2020·207d··rn·result;.····} | |||
| 000004d0:·2072·6573·756c·743b·0a7d·3b0a·4f62·6a65···result;.};.Obje | |||
| 000004e0:·6374·2e64·6566·696e·6550·726f·7065·7274··ct.definePropert | |||
| 000004f0:·7928·6578·706f·7274·732c·2022·5f5f·6573··y(exports,·"__es | |||
| 00000500:·4d6f·6475·6c65·222c·207b·2076·616c·7565··Module",·{·value | |||
| 00000510:·3a20·7472·7565·207d·293b·0a65·7870·6f72··:·true·});.expor | |||
| 00000520:·7473·2e75·203d·2065·7870·6f72·7473·2e74··ts.u·=·exports.t | |||
| 00000530:·7970·6573·203d·2065·7870·6f72·7473·2e72··ypes·=·exports.r | |||
| 00000540:·203d·2065·7870·6f72·7473·2e74·203d·2065···=·exports.t·=·e | |||
| 00000550:·7870·6f72·7473·2e78·203d·2065·7870·6f72··xports.x·=·expor | |||
| 00000560:·7473·2e63·203d·2076·6f69·6420·303b·0a5f··ts.c·=·void·0;._ | |||
| 00000570:·5f65·7870·6f72·7453·7461·7228·7265·7175··_exportStar(requ | |||
| 00000580:·6972·6528·222e·2f63·7265·6174·652e·6a73··ire("./create.js | |||
| 00000590:·2229·2c20·6578·706f·7274·7329·3b0a·7661··"),·exports);.va | |||
| 000005a0:·7220·6372·6561·7465·5f6a·735f·3120·3d20··r·create_js_1·=· | |||
| 000005b0:·7265·7175·6972·6528·222e·2f63·7265·6174··require("./creat | |||
| 00000 | 00000620:·3b0a·7d29·2829·3b0a·4f62·6a65·6374·2e64··;.})();.Object.d | ||
| 00000 | 00000630:·6566·696e·6550·726f·7065·7274·7928·6578··efineProperty(ex | ||
| 00000640:·706f·7274·732c·2022·5f5f·6573·4d6f·6475··ports,·"__esModu | |||
| 00000650:·6c65·222c·207b·2076·616c·7565·3a20·7472··le",·{·value:·tr | |||
| 000005e0:·706f·7274·732c·2022·6322·2c20·7b20·656e··ports,·"c",·{·en | |||
| 000005f0:·756d·6572·6162·6c65·3a20·7472·7565·2c20··umerable:·true,· | |||
| 00000600:·6765·743a·2066·756e·6374·696f·6e20·2829··get:·function·() | |||
| 00000610:·207b·2072·6574·7572·6e20·6372·6561·7465···{·return·create | |||
| 00000620:·5f6a·735f·312e·6372·6561·7465·3b20·7d20··_js_1.create;·}· | |||
| 00000630:·7d29·3b0a·5f5f·6578·706f·7274·5374·6172··});.__exportStar | |||
| 00000640:·2872·6571·7569·7265·2822·2e2f·6578·7472··(require("./extr | |||
| 00000650:·6163·742e·6a73·2229·2c20·6578·706f·7274··act.js"),·export | |||
| 00000660:·7329·3b0a·7661·7220·6578·7472·6163·745f··s);.var·extract_ | |||
| 00000670:·6a73·5f31·203d·2072·6571·7569·7265·2822··js_1·=·require(" | |||
| 00000680:·2e2f·6578·7472·6163·742e·6a73·2229·3b0a··./extract.js");. | |||
| 00000690:·4f62·6a65·6374·2e64·6566·696e·6550·726f··Object.definePro | |||
| 000006a0:·7065·7274·7928·6578·706f·7274·732c·2022··perty(exports,·" | |||
| 000006b0:·7822·2c20·7b20·656e·756d·6572·6162·6c65··x",·{·enumerable | |||
| 000006c0:·3a20·7472·7565·2c20·6765·743a·2066·756e··:·true,·get:·fun | |||
| 000006d0:·6374·696f·6e20·2829·207b·2072·6574·7572··ction·()·{·retur | |||
| 000006e0:·6e20·6578·7472·6163·745f·6a73·5f31·2e65··n·extract_js_1.e | |||
| 000006f0:·7874·7261·6374·3b20·7d20·7d29·3b0a·5f5f··xtract;·}·});.__ | |||
| 00000700:·6578·706f·7274·5374·6172·2872·6571·7569··exportStar(requi | |||
| 00000710:·7265·2822·2e2f·6865·6164·6572·2e6a·7322··re("./header.js" | |||
| 00000720:·292c·2065·7870·6f72·7473·293b·0a5f·5f65··),·exports);.__e | |||
| 00000730:·7870·6f72·7453·7461·7228·7265·7175·6972··xportStar(requir | |||
| 00000740:·6528·222e·2f6c·6973·742e·6a73·2229·2c20··e("./list.js"),· | |||
| 00000750:·6578·706f·7274·7329·3b0a·7661·7220·6c69··exports);.var·li | |||
| 00000760:·7374·5f6a·735f·3120·3d20·7265·7175·6972··st_js_1·=·requir | |||
| 00000770:·6528·222e·2f6c·6973·742e·6a73·2229·3b0a··e("./list.js");. | |||
| Max diff block lines reached; -1/17936 bytes (-0.01%) of diff not shown. | |||
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"index.js", | 2 | ····"file":·"index.js", |
| 3 | ····"mappings":·";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,8CAA2B;AAC3B,yCAAyC;AAAhC,8FAAA,MAAM,OAAK;AACpB,+CAA4B;AAC5B,2CAA2C;AAAlC,+FAAA,OAAO,OAAK;AACrB,8CAA2B;AAC3B,4CAAyB;AACzB,qCAAqC;AAA5B,4FAAA,IAAI,OAAK;AAClB,UAAU;AACV,4CAAyB;AACzB,6CAA0B;AAC1B,2CAAwB;AACxB,kDAA+B;AAC/B,+CAA4B;AAC5B,2CAA2C;AAAlC,+FAAA,OAAO,OAAK;AACrB,oDAAmC;AACnC,8CAA2B;AAC3B,8CAA2B;AAC3B,yCAAyC;AAAhC,8FAAA,MAAM,OAAK;AACpB,mDAAgC", | 3 | ····"mappings":·";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,8CAA2B;AAC3B,yCAAyC;AAAhC,8FAAA,MAAM,OAAK;AACpB,+CAA4B;AAC5B,2CAA2C;AAAlC,+FAAA,OAAO,OAAK;AACrB,8CAA2B;AAC3B,4CAAyB;AACzB,qCAAqC;AAA5B,4FAAA,IAAI,OAAK;AAClB,UAAU;AACV,4CAAyB;AACzB,6CAA0B;AAC1B,2CAAwB;AACxB,kDAA+B;AAC/B,+CAA4B;AAC5B,2CAA2C;AAAlC,+FAAA,OAAO,OAAK;AACrB,oDAAmC;AACnC,8CAA2B;AAC3B,8CAA2B;AAC3B,yCAAyC;AAAhC,8FAAA,MAAM,OAAK;AACpB,mDAAgC", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/index.ts" | 7 | ········"../../src/index.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"export·{\n··type·TarOptionsWithAliasesAsync,\n··type·TarOptionsWithAliasesAsyncFile,\n··type·TarOptionsWithAliasesAsyncNoFile,\n··type·TarOptionsWithAliasesSyncNoFile,\n··type·TarOptionsWithAliases,\n··type·TarOptionsWithAliasesFile,\n··type·TarOptionsWithAliasesSync,\n··type·TarOptionsWithAliasesSyncFile,\n}·from·'./options.js'\n\nexport·*·from·'./create.js'\nexport·{·create·as·c·}·from·'./create.js'\nexport·*·from·'./extract.js'\nexport·{·extract·as·x·}·from·'./extract.js'\nexport·*·from·'./header.js'\nexport·*·from·'./list.js'\nexport·{·list·as·t·}·from·'./list.js'\n//·classes\nexport·*·from·'./pack.js'\nexport·*·from·'./parse.js'\nexport·*·from·'./pax.js'\nexport·*·from·'./read-entry.js'\nexport·*·from·'./replace.js'\nexport·{·replace·as·r·}·from·'./replace.js'\nexport·*·as·types·from·'./types.js'\nexport·*·from·'./unpack.js'\nexport·*·from·'./update.js'\nexport·{·update·as·u·}·from·'./update.js'\nexport·*·from·'./write-entry.js'\n" | 10 | ········"export·{\n··type·TarOptionsWithAliasesAsync,\n··type·TarOptionsWithAliasesAsyncFile,\n··type·TarOptionsWithAliasesAsyncNoFile,\n··type·TarOptionsWithAliasesSyncNoFile,\n··type·TarOptionsWithAliases,\n··type·TarOptionsWithAliasesFile,\n··type·TarOptionsWithAliasesSync,\n··type·TarOptionsWithAliasesSyncFile,\n}·from·'./options.js'\n\nexport·*·from·'./create.js'\nexport·{·create·as·c·}·from·'./create.js'\nexport·*·from·'./extract.js'\nexport·{·extract·as·x·}·from·'./extract.js'\nexport·*·from·'./header.js'\nexport·*·from·'./list.js'\nexport·{·list·as·t·}·from·'./list.js'\n//·classes\nexport·*·from·'./pack.js'\nexport·*·from·'./parse.js'\nexport·*·from·'./pax.js'\nexport·*·from·'./read-entry.js'\nexport·*·from·'./replace.js'\nexport·{·replace·as·r·}·from·'./replace.js'\nexport·*·as·types·from·'./types.js'\nexport·*·from·'./unpack.js'\nexport·*·from·'./update.js'\nexport·{·update·as·u·}·from·'./update.js'\nexport·*·from·'./write-entry.js'\n" |
| Offset 1, 5 lines modified | Offset 1, 3 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | ///·<reference·types="node"·/> | ||
| 3 | export·declare·const·encode:·(num:·number,·buf:·Buffer)·=>·Buffer; | 1 | export·declare·const·encode:·(num:·number,·buf:·Buffer)·=>·Buffer<ArrayBufferLike>; |
| 4 | export·declare·const·parse:·(buf:·Buffer)·=>·number; | 2 | export·declare·const·parse:·(buf:·Buffer)·=>·number; |
| 5 | //#·sourceMappingURL=large-numbers.d.ts.map | 3 | //#·sourceMappingURL=large-numbers.d.ts.map |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"large-numbers.d.ts", | 2 | ····"file":·"large-numbers.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAGA,eAAO,MAAM,MAAM,GAAI,KAAK,MAAM,EAAE,KAAK,MAAM,4BAa9C,CAAA;AA6BD,eAAO,MAAM,KAAK,GAAI,KAAK,MAAM,WAmBhC,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/large-numbers.ts" | 7 | ········"../../src/large-numbers.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"list.d.ts", | 2 | ····"file":·"list.d.ts", |
| 3 | ····"mappings":·"AAKA,OAAO,EACL,UAAU,EAGX,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAgBnC,eAAO,MAAM,WAAW, | 3 | ····"mappings":·"AAKA,OAAO,EACL,UAAU,EAGX,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAgBnC,eAAO,MAAM,WAAW,GAAI,KAAK,UAAU,EAAE,OAAO,MAAM,EAAE,SA4B3D,CAAA;AA+DD,eAAO,MAAM,IAAI;UAG4B,IAAI;EAMhD,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/list.ts" | 7 | ········"../../src/list.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 41, 279 lines modified | Offset 41, 300 lines modified | ||
| 00000280:·3a20·7472·7565·2c20·7661·6c75·653a·2076··:·true,·value:·v | 00000280:·3a20·7472·7565·2c20·7661·6c75·653a·2076··:·true,·value:·v | ||
| 00000290:·207d·293b·0a7d·2920·3a20·6675·6e63·7469···});.})·:·functi | 00000290:·207d·293b·0a7d·2920·3a20·6675·6e63·7469···});.})·:·functi | ||
| 000002a0:·6f6e·286f·2c20·7629·207b·0a20·2020·206f··on(o,·v)·{.····o | 000002a0:·6f6e·286f·2c20·7629·207b·0a20·2020·206f··on(o,·v)·{.····o | ||
| 000002b0:·5b22·6465·6661·756c·7422·5d20·3d20·763b··["default"]·=·v; | 000002b0:·5b22·6465·6661·756c·7422·5d20·3d20·763b··["default"]·=·v; | ||
| 000002c0:·0a7d·293b·0a76·6172·205f·5f69·6d70·6f72··.});.var·__impor | 000002c0:·0a7d·293b·0a76·6172·205f·5f69·6d70·6f72··.});.var·__impor | ||
| 000002d0:·7453·7461·7220·3d20·2874·6869·7320·2626··tStar·=·(this·&& | 000002d0:·7453·7461·7220·3d20·2874·6869·7320·2626··tStar·=·(this·&& | ||
| 000002e0:·2074·6869·732e·5f5f·696d·706f·7274·5374···this.__importSt | 000002e0:·2074·6869·732e·5f5f·696d·706f·7274·5374···this.__importSt | ||
| 000002f0:·6172·2920·7c7c·20 | 000002f0:·6172·2920·7c7c·2028·6675·6e63·7469·6f6e··ar)·||·(function | ||
| 00000300:·2028·2920·7b0a·2020·2020·7661·7220·6f77···()·{.····var·ow | |||
| 00000310:·6e4b·6579·7320·3d20·6675·6e63·7469·6f6e··nKeys·=·function | |||
| 000003 | 00000320:·286f·2920·7b0a·2020·2020·2020·2020·6f77··(o)·{.········ow | ||
| 00000310:·6d6f·6420·2626·206d·6f64·2e5f·5f65·734d··mod·&&·mod.__esM | |||
| 000003 | 00000330:·6e4b·6579·7320·3d20·4f62·6a65·6374·2e67··nKeys·=·Object.g | ||
| 00000340:·6574·4f77·6e50·726f·7065·7274·794e·616d··etOwnPropertyNam | |||
| 00000350:·6573·207c·7c20·6675·6e63·7469·6f6e·2028··es·||·function·( | |||
| 00000360:·6f29·207b·0a20·2020·2020·2020·2020·2020··o)·{.··········· | |||
| 00000370:·2076·6172·2061·7220·3d20·5b5d·3b0a·2020···var·ar·=·[];.·· | |||
| 00000380:·2020·2020·2020·2020·2020·666f·7220·2876············for·(v | |||
| 00000390:·6172·206b·2069·6e20·6f29·2069·6620·284f··ar·k·in·o)·if·(O | |||
| 000003a0:·626a·6563·742e·7072·6f74·6f74·7970·652e··bject.prototype. | |||
| 000003b0:·6861·734f·776e·5072·6f70·6572·7479·2e63··hasOwnProperty.c | |||
| 000003c0:·616c·6c28·6f2c·206b·2929·2061·725b·6172··all(o,·k))·ar[ar | |||
| 000003d0:·2e6c·656e·6774·685d·203d·206b·3b0a·2020··.length]·=·k;.·· | |||
| 000003e0:·2020·2020·2020·2020·2020·7265·7475·726e············return | |||
| 000003f0:·2061·723b·0a20·2020·2020·2020·207d·3b0a···ar;.········};. | |||
| 00000400:·2020·2020·2020·2020·7265·7475·726e·206f··········return·o | |||
| 00000410:·776e·4b65·7973·286f·293b·0a20·2020·207d··wnKeys(o);.····} | |||
| 00000420:·3b0a·2020·2020·7265·7475·726e·2066·756e··;.····return·fun | |||
| 00000430:·6374·696f·6e20·286d·6f64·2920·7b0a·2020··ction·(mod)·{.·· | |||
| 00000440:·2020·2020·2020·6966·2028·6d6f·6420·2626········if·(mod·&& | |||
| 00000450:·206d·6f64·2e5f·5f65·734d·6f64·756c·6529···mod.__esModule) | |||
| 00000460:·2072·6574·7572·6e20·6d6f·643b·0a20·2020···return·mod;.··· | |||
| 00000 | 00000470:·2020·2020·2076·6172·2072·6573·756c·7420·······var·result· | ||
| 00000 | 00000480:·3d20·7b7d·3b0a·2020·2020·2020·2020·6966··=·{};.········if | ||
| 00000 | 00000490:·2028·6d6f·6420·213d·206e·756c·6c29·2066···(mod·!=·null)·f | ||
| 00000360:·2028·7661·7220·6b20·696e·206d·6f64·2920···(var·k·in·mod)· | |||
| 00000370:·6966·2028·6b20·213d·3d20·2264·6566·6175··if·(k·!==·"defau | |||
| 00000380:·6c74·2220·2626·204f·626a·6563·742e·7072··lt"·&&·Object.pr | |||
| 00000390:·6f74·6f74·7970·652e·6861·734f·776e·5072··ototype.hasOwnPr | |||
| 000003a0:·6f70·6572·7479·2e63·616c·6c28·6d6f·642c··operty.call(mod, | |||
| 000003b0:·206b·2929·205f·5f63·7265·6174·6542·696e···k))·__createBin | |||
| 00000 | 000004a0:·6f72·2028·7661·7220·6b20·3d20·6f77·6e4b··or·(var·k·=·ownK | ||
| 000004b0:·6579·7328·6d6f·6429·2c20·6920·3d20·303b··eys(mod),·i·=·0; | |||
| 000004c0:·2069·203c·206b·2e6c·656e·6774·683b·2069···i·<·k.length;·i | |||
| 000004d0:·2b2b·2920·6966·2028·6b5b·695d·2021·3d3d··++)·if·(k[i]·!== | |||
| 000004e0:·2022·6465·6661·756c·7422·2920·5f5f·6372···"default")·__cr | |||
| 000004f0:·6561·7465·4269·6e64·696e·6728·7265·7375··eateBinding(resu | |||
| 00000500:·6c74·2c20·6d6f·642c·206b·5b69·5d29·3b0a··lt,·mod,·k[i]);. | |||
| 00000 | 00000510:·2020·2020·2020·2020·5f5f·7365·744d·6f64··········__setMod | ||
| 00000 | 00000520:·756c·6544·6566·6175·6c74·2872·6573·756c··uleDefault(resul | ||
| 00000 | 00000530:·742c·206d·6f64·293b·0a20·2020·2020·2020··t,·mod);.······· | ||
| 00000400 | 00000540:·2072·6574·7572·6e20·7265·7375·6c74·3b0a···return·result;. | ||
| 00000550:·2020·2020·7d3b·0a7d·2928·293b·0a76·6172······};.})();.var | |||
| 00000 | 00000560:·205f·5f69·6d70·6f72·7444·6566·6175·6c74···__importDefault | ||
| 00000 | 00000570:·203d·2028·7468·6973·2026·2620·7468·6973···=·(this·&&·this | ||
| 00000 | 00000580:·2e5f·5f69·6d70·6f72·7444·6566·6175·6c74··.__importDefault | ||
| 00000 | 00000590:·2920·7c7c·2066·756e·6374·696f·6e20·286d··)·||·function·(m | ||
| 00000 | 000005a0:·6f64·2920·7b0a·2020·2020·7265·7475·726e··od)·{.····return | ||
| 00000 | 000005b0:·2028·6d6f·6420·2626·206d·6f64·2e5f·5f65···(mod·&&·mod.__e | ||
| 00000 | 000005c0:·734d·6f64·756c·6529·203f·206d·6f64·203a··sModule)·?·mod·: | ||
| 00000 | 000005d0:·207b·2022·6465·6661·756c·7422·3a20·6d6f···{·"default":·mo | ||
| 00000 | 000005e0:·6420·7d3b·0a7d·3b0a·4f62·6a65·6374·2e64··d·};.};.Object.d | ||
| 00000 | 000005f0:·6566·696e·6550·726f·7065·7274·7928·6578··efineProperty(ex | ||
| 00000 | 00000600:·706f·7274·732c·2022·5f5f·6573·4d6f·6475··ports,·"__esModu | ||
| 00000 | 00000610:·6c65·222c·207b·2076·616c·7565·3a20·7472··le",·{·value:·tr | ||
| 00000 | 00000620:·7565·207d·293b·0a65·7870·6f72·7473·2e6c··ue·});.exports.l | ||
| 00000 | 00000630:·6973·7420·3d20·6578·706f·7274·732e·6669··ist·=·exports.fi | ||
| 00000 | 00000640:·6c65·7346·696c·7465·7220·3d20·766f·6964··lesFilter·=·void | ||
| 00000 | 00000650:·2030·3b0a·2f2f·2074·6172·202d·740a·636f···0;.//·tar·-t.co | ||
| 00000 | 00000660:·6e73·7420·6673·6d20·3d20·5f5f·696d·706f··nst·fsm·=·__impo | ||
| 00000 | 00000670:·7274·5374·6172·2872·6571·7569·7265·2822··rtStar(require(" | ||
| 00000 | 00000680:·4069·7361·6163·732f·6673·2d6d·696e·6970··@isaacs/fs-minip | ||
| 00000 | 00000690:·6173·7322·2929·3b0a·636f·6e73·7420·6e6f··ass"));.const·no | ||
| 00000 | 000006a0:·6465·5f66·735f·3120·3d20·5f5f·696d·706f··de_fs_1·=·__impo | ||
| 00000 | 000006b0:·7274·4465·6661·756c·7428·7265·7175·6972··rtDefault(requir | ||
| 00000 | 000006c0:·6528·226e·6f64·653a·6673·2229·293b·0a63··e("node:fs"));.c | ||
| 00000 | 000006d0:·6f6e·7374·2070·6174·685f·3120·3d20·7265··onst·path_1·=·re | ||
| 00000 | 000006e0:·7175·6972·6528·2270·6174·6822·293b·0a63··quire("path");.c | ||
| 00000 | 000006f0:·6f6e·7374·206d·616b·655f·636f·6d6d·616e··onst·make_comman | ||
| 00000 | 00000700:·645f·6a73·5f31·203d·2072·6571·7569·7265··d_js_1·=·require | ||
| 00000 | 00000710:·2822·2e2f·6d61·6b65·2d63·6f6d·6d61·6e64··("./make-command | ||
| 000005d0:·6d61·6e64·2e6a·7322·293b·0a63·6f6e·7374··mand.js");.const | |||
| 000005e0:·2070·6172·7365·5f6a·735f·3120·3d20·7265···parse_js_1·=·re | |||
| 000005f0:·7175·6972·6528·222e·2f70·6172·7365·2e6a··quire("./parse.j | |||
| 00000 | 00000720:·2e6a·7322·293b·0a63·6f6e·7374·2070·6172··.js");.const·par | ||
| 00000730:·7365·5f6a·735f·3120·3d20·7265·7175·6972··se_js_1·=·requir | |||
| 00000740:·6528·222e·2f70·6172·7365·2e6a·7322·293b··e("./parse.js"); | |||
| 00000750:·0a63·6f6e·7374·2073·7472·6970·5f74·7261··.const·strip_tra | |||
| 00000760:·696c·696e·675f·736c·6173·6865·735f·6a73··iling_slashes_js | |||
| 00000770:·5f31·203d·2072·6571·7569·7265·2822·2e2f··_1·=·require("./ | |||
| 00000780:·7374·7269·702d·7472·6169·6c69·6e67·2d73··strip-trailing-s | |||
| 00000790:·6c61·7368·6573·2e6a·7322·293b·0a63·6f6e··lashes.js");.con | |||
| 000007a0:·7374·206f·6e52·6561·6445·6e74·7279·4675··st·onReadEntryFu | |||
| 000007b0:·6e63·7469·6f6e·203d·2028·6f70·7429·203d··nction·=·(opt)·= | |||
| 000007c0:·3e20·7b0a·2020·2020·636f·6e73·7420·6f6e··>·{.····const·on | |||
| 000007d0:·5265·6164·456e·7472·7920·3d20·6f70·742e··ReadEntry·=·opt. | |||
| 000007e0:·6f6e·5265·6164·456e·7472·793b·0a20·2020··onReadEntry;.··· | |||
| 000007f0:·206f·7074·2e6f·6e52·6561·6445·6e74·7279···opt.onReadEntry | |||
| 00000800:·203d·0a20·2020·2020·2020·206f·6e52·6561···=.········onRea | |||
| Max diff block lines reached; -1/39486 bytes (-0.00%) of diff not shown. | |||
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"list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K,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAExB,iBAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE;YACzB,IAAI,EAAE,EAAE,CAAC;gBACP,MAAM,CAAC,EAAE,CAAC,CAAA;YACZ,CAAC;iBAAM,CAAC;gBACN,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE;oBACtC,QAAQ,EAAE,QAAQ;oBAClB,IAAI,EAAE,IAAI,CAAC,IAAI;iBAChB,CAAC,CAAA;gBACF,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;gBAC1B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACpB,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IACF,OAAO,CAAC,CAAA;AACV,CAAC,CAAA;AAEY,QAAA,IAAI,GAAG,IAAA,6BAAW,EAC7B,YAAY,EACZ,QAAQ,EACR,GAAG,CAAC,EAAE,CAAC,IAAI,iBAAM,CAAC,GAAG,CAA4B,EACjD,GAAG,CAAC,EAAE,CAAC,IAAI,iBAAM,CAAC,GAAG,CAAC,EACtB,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;IACb,IAAI,KAAK,EAAE,MAAM;QAAE,IAAA,mBAAW,EAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IAC1C,IAAI,CAAC,GAAG,CAAC,QAAQ;QAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;AAC7C,CAAC,CACF,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/list.ts" | 7 | ········"../../src/list.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·tar·-t\nimport·*·as·fsm·from·'@isaacs/fs-minipass'\nimport·fs·from·'node:fs'\nimport·{·dirname,·parse·}·from·'path'\nimport·{·makeCommand·}·from·'./make-command.js'\nimport·{\n··TarOptions,\n··TarOptionsFile,\n··TarOptionsSyncFile,\n}·from·'./options.js'\nimport·{·Parser·}·from·'./parse.js'\nimport·{·stripTrailingSlashes·}·from·'./strip-trailing-slashes.js'\n\nconst·onReadEntryFunction·=·(opt:·TarOptions)·=>·{\n··const·onReadEntry·=·opt.onReadEntry\n··opt.onReadEntry·=\n····onReadEntry·?\n······e·=>·{\n········onReadEntry(e)\n········e.resume()\n······}\n····:·e·=>·e.resume()\n}\n\n//·construct·a·filter·that·limits·the·file·entries·listed\n//·include·child·entries·if·a·dir·is·included\nexport·const·filesFilter·=·(opt:·TarOptions,·files:·string[])·=>·{\n··const·map·=·new·Map<string,·boolean>(\n····files.map(f·=>·[stripTrailingSlashes(f),·true]),\n··)\n··const·filter·=·opt.filter\n\n··const·mapHas·=·(file:·string,·r:·string·=·''):·boolean·=>·{\n····const·root·=·r·||·parse(file).root·||·'.'\n····let·ret:·boolean\n····if·(file·===·root)·ret·=·false\n····else·{\n······const·m·=·map.get(file)\n······if·(m·!==·undefined)·{\n········ret·=·m\n······}·else·{\n········ret·=·mapHas(dirname(file),·root)\n······}\n····}\n\n····map.set(file,·ret)\n····return·ret\n··}\n\n··opt.filter·=\n····filter·?\n······(file,·entry)·=>\n········filter(file,·entry)·&&·mapHas(stripTrailingSlashes(file))\n····:·file·=>·mapHas(stripTrailingSlashes(file))\n}\n\nconst·listFileSync·=·(opt:·TarOptionsSyncFile)·=>·{\n··const·p·=·new·Parser(opt)\n··const·file·=·opt.file\n··let·fd:·number·|·undefined\n··try·{\n····fd·=·fs.openSync(file,·'r')\n····const·stat:·fs.Stats·=·fs.fstatSync(fd)\n····const·readSize:·number·=·opt.maxReadSize·||·16·*·1024·*·1024\n····if·(stat.size·<·readSize)·{\n······const·buf·=·Buffer.allocUnsafe(stat.size)\n······const·read·=·fs.readSync(fd,·buf,·0,·stat.size,·0)\n······p.end(read·===·buf.byteLength·?·buf·:·buf.subarray(0,·read))\n····}·else·{\n······let·pos·=·0\n······const·buf·=·Buffer.allocUnsafe(readSize)\n······while·(pos·<·stat.size)·{\n········const·bytesRead·=·fs.readSync(fd,·buf,·0,·readSize,·pos)\n········if·(bytesRead·===·0)·break\n········pos·+=·bytesRead\n········p.write(buf.subarray(0,·bytesRead))\n······}\n······p.end()\n····}\n··}·finally·{\n····if·(typeof·fd·===·'number')·{\n······try·{\n········fs.closeSync(fd)\n········/*·c8·ignore·next·*/\n······}·catch·(er)·{}\n····}\n··}\n}\n\nconst·listFile·=·(\n··opt:·TarOptionsFile,\n··_files:·string[],\n):·Promise<void>·=>·{\n··const·parse·=·new·Parser(opt)\n··const·readSize·=·opt.maxReadSize·||·16·*·1024·*·1024\n\n··const·file·=·opt.file\n··const·p·=·new·Promise<void>((resolve,·reject)·=>·{\n····parse.on('error',·reject)\n····parse.on('end',·resolve)\n\n····fs.stat(file,·(er,·stat)·=>·{\n······if·(er)·{\n········reject(er)\n······}·else·{\n········const·stream·=·new·fsm.ReadStream(file,·{\n··········readSize:·readSize,\n··········size:·stat.size,\n········})\n········stream.on('error',·reject)\n········stream.pipe(parse)\n······}\n····})\n··})\n··return·p\n}\n\nexport·const·list·=·makeCommand(\n··listFileSync,\n··listFile,\n··opt·=>·new·Parser(opt)·as·Parser·&·{·sync:·true·},\n··opt·=>·new·Parser(opt),\n··(opt,·files)·=>·{\n····if·(files?.length)·filesFilter(opt,·files)\n····if·(!opt.noResume)·onReadEntryFunction(opt)\n··},\n)\n" | 10 | ········"//·tar·-t\nimport·*·as·fsm·from·'@isaacs/fs-minipass'\nimport·fs·from·'node:fs'\nimport·{·dirname,·parse·}·from·'path'\nimport·{·makeCommand·}·from·'./make-command.js'\nimport·{\n··TarOptions,\n··TarOptionsFile,\n··TarOptionsSyncFile,\n}·from·'./options.js'\nimport·{·Parser·}·from·'./parse.js'\nimport·{·stripTrailingSlashes·}·from·'./strip-trailing-slashes.js'\n\nconst·onReadEntryFunction·=·(opt:·TarOptions)·=>·{\n··const·onReadEntry·=·opt.onReadEntry\n··opt.onReadEntry·=\n····onReadEntry·?\n······e·=>·{\n········onReadEntry(e)\n········e.resume()\n······}\n····:·e·=>·e.resume()\n}\n\n//·construct·a·filter·that·limits·the·file·entries·listed\n//·include·child·entries·if·a·dir·is·included\nexport·const·filesFilter·=·(opt:·TarOptions,·files:·string[])·=>·{\n··const·map·=·new·Map<string,·boolean>(\n····files.map(f·=>·[stripTrailingSlashes(f),·true]),\n··)\n··const·filter·=·opt.filter\n\n··const·mapHas·=·(file:·string,·r:·string·=·''):·boolean·=>·{\n····const·root·=·r·||·parse(file).root·||·'.'\n····let·ret:·boolean\n····if·(file·===·root)·ret·=·false\n····else·{\n······const·m·=·map.get(file)\n······if·(m·!==·undefined)·{\n········ret·=·m\n······}·else·{\n········ret·=·mapHas(dirname(file),·root)\n······}\n····}\n\n····map.set(file,·ret)\n····return·ret\n··}\n\n··opt.filter·=\n····filter·?\n······(file,·entry)·=>\n········filter(file,·entry)·&&·mapHas(stripTrailingSlashes(file))\n····:·file·=>·mapHas(stripTrailingSlashes(file))\n}\n\nconst·listFileSync·=·(opt:·TarOptionsSyncFile)·=>·{\n··const·p·=·new·Parser(opt)\n··const·file·=·opt.file\n··let·fd:·number·|·undefined\n··try·{\n····fd·=·fs.openSync(file,·'r')\n····const·stat:·fs.Stats·=·fs.fstatSync(fd)\n····const·readSize:·number·=·opt.maxReadSize·||·16·*·1024·*·1024\n····if·(stat.size·<·readSize)·{\n······const·buf·=·Buffer.allocUnsafe(stat.size)\n······const·read·=·fs.readSync(fd,·buf,·0,·stat.size,·0)\n······p.end(read·===·buf.byteLength·?·buf·:·buf.subarray(0,·read))\n····}·else·{\n······let·pos·=·0\n······const·buf·=·Buffer.allocUnsafe(readSize)\n······while·(pos·<·stat.size)·{\n········const·bytesRead·=·fs.readSync(fd,·buf,·0,·readSize,·pos)\n········if·(bytesRead·===·0)·break\n········pos·+=·bytesRead\n········p.write(buf.subarray(0,·bytesRead))\n······}\n······p.end()\n····}\n··}·finally·{\n····if·(typeof·fd·===·'number')·{\n······try·{\n········fs.closeSync(fd)\n········/*·c8·ignore·next·*/\n······}·catch·(er)·{}\n····}\n··}\n}\n\nconst·listFile·=·(\n··opt:·TarOptionsFile,\n··_files:·string[],\n):·Promise<void>·=>·{\n··const·parse·=·new·Parser(opt)\n··const·readSize·=·opt.maxReadSize·||·16·*·1024·*·1024\n\n··const·file·=·opt.file\n··const·p·=·new·Promise<void>((resolve,·reject)·=>·{\n····parse.on('error',·reject)\n····parse.on('end',·resolve)\n\n····fs.stat(file,·(er,·stat)·=>·{\n······if·(er)·{\n········reject(er)\n······}·else·{\n········const·stream·=·new·fsm.ReadStream(file,·{\n··········readSize:·readSize,\n··········size:·stat.size,\n········})\n········stream.on('error',·reject)\n········stream.pipe(parse)\n······}\n····})\n··})\n··return·p\n}\n\nexport·const·list·=·makeCommand(\n··listFileSync,\n··listFile,\n··opt·=>·new·Parser(opt)·as·Parser·&·{·sync:·true·},\n··opt·=>·new·Parser(opt),\n··(opt,·files)·=>·{\n····if·(files?.length)·filesFilter(opt,·files)\n····if·(!opt.noResume)·onReadEntryFunction(opt)\n··},\n)\n" |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"make-command.d.ts", | 2 | ····"file":·"make-command.d.ts", |
| 3 | ····"mappings":·"AAAA,OAAO,EAML,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,cAAc,CAAA;AAErB,MAAM,MAAM,EAAE,GAAG,CAAC,EAAE,CA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AE,KACd,SAAS,CAAA;IACd,WAAW,EAAE,CACX,GAAG,EAAE,qBAAqB,EAC1B,OAAO,EAAE,MAAM,EAAE,KACd,UAAU,CAAA;IACf,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CACzD,CAAA;AAED,eAAO,MAAM,WAAW,GACtB,UAAU,EACV,SAAS,SAAS;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,EAEhC,UAAU,CAAC,GAAG,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,EAC9D,WAAW,CACT,GAAG,EAAE,mBAAmB,EACxB,OAAO,EAAE,MAAM,EAAE,EACjB,EAAE,CAAC,EAAE,EAAE,KACJ,OAAO,CAAC,IAAI,CAAC,EAClB,YAAY,CACV,GAAG,[·...·truncated·by·diffoscope;·len:·201,·SHA:·0e87109007853a288e4d78dfd4e43cd12e44221ac089f8b90316a4b96934560d·...·],UAAU,EAAE,SAAS,CAmElC,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/make-command.ts" | 7 | ········"../../src/make-command.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 8 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | import·{·CwdError·}·from·'./cwd-error.js'; | 1 | import·{·CwdError·}·from·'./cwd-error.js'; |
| 3 | import·{·SymlinkError·}·from·'./symlink-error.js'; | 2 | import·{·SymlinkError·}·from·'./symlink-error.js'; |
| 4 | export·type·MkdirOptions·=·{ | 3 | export·type·MkdirOptions·=·{ |
| 5 | ····uid?:·number; | 4 | ····uid?:·number; |
| 6 | ····gid?:·number; | 5 | ····gid?:·number; |
| 7 | ····processUid?:·number; | 6 | ····processUid?:·number; |
| 8 | ····processGid?:·number; | 7 | ····processGid?:·number; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"mkdir.d.ts", | 2 | ····"file":·"mkdir.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MA[·...·truncated·by·diffoscope;·len:·394,·SHA:·54113880c057c8a6eb436154c9764e2fafaa5a9018d102c5a94aad6ed8b46d02·...·],YAAY,wBAqEvD,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/mkdir.ts" | 7 | ········"../../src/mkdir.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"mode-fix.d.ts", | 2 | ····"file":·"mode-fix.d.ts", |
| 3 | ····"mappings":·"AAAA,eAAO,MAAM,OAAO, | 3 | ····"mappings":·"AAAA,eAAO,MAAM,OAAO,GAClB,MAAM,MAAM,EACZ,OAAO,OAAO,EACd,UAAU,OAAO,WA0BlB,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/mode-fix.ts" | 7 | ········"../../src/mode-fix.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"normalize-unicode.d.ts", | 2 | ····"file":·"normalize-unicode.d.ts", |
| 3 | ····"mappings":·"AASA,eAAO,MAAM,gBAAgB, | 3 | ····"mappings":·"AASA,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,KAAG,MAyB5C,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/normalize-unicode.ts" | 7 | ········"../../src/normalize-unicode.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 25, 40 lines modified | Offset 25, 49 lines modified | ||
| 00000180:·5255·2063·6163·6865·0a63·6f6e·7374·204d··RU·cache.const·M | 00000180:·5255·2063·6163·6865·0a63·6f6e·7374·204d··RU·cache.const·M | ||
| 00000190:·4158·203d·2031·3030·3030·3b0a·636f·6e73··AX·=·10000;.cons | 00000190:·4158·203d·2031·3030·3030·3b0a·636f·6e73··AX·=·10000;.cons | ||
| 000001a0:·7420·6361·6368·6520·3d20·6e65·7720·5365··t·cache·=·new·Se | 000001a0:·7420·6361·6368·6520·3d20·6e65·7720·5365··t·cache·=·new·Se | ||
| 000001b0:·7428·293b·0a63·6f6e·7374·206e·6f72·6d61··t();.const·norma | 000001b0:·7428·293b·0a63·6f6e·7374·206e·6f72·6d61··t();.const·norma | ||
| 000001c0:·6c69·7a65·556e·6963·6f64·6520·3d20·2873··lizeUnicode·=·(s | 000001c0:·6c69·7a65·556e·6963·6f64·6520·3d20·2873··lizeUnicode·=·(s | ||
| 000001d0:·2920·3d3e·207b·0a20·2020·2069·6620·2821··)·=>·{.····if·(! | 000001d0:·2920·3d3e·207b·0a20·2020·2069·6620·2821··)·=>·{.····if·(! | ||
| 000001e0:·6361·6368·652e·6861·7328·7329·2920·7b0a··cache.has(s))·{. | 000001e0:·6361·6368·652e·6861·7328·7329·2920·7b0a··cache.has(s))·{. | ||
| 000001f0:·2020·2020·2020·2020·6e6f·726d·616c·697a··········normaliz | |||
| 00000 | 000001f0:·2020·2020·2020·2020·2f2f·2073·6861·6b65··········//·shake | ||
| 00000200:·206f·7574·2069·6465·6e74·6963·616c·2061···out·identical·a | |||
| 00000210:·6363·656e·7473·2061·6e64·206c·6967·6174··ccents·and·ligat | |||
| 00000220:·7572·6573·0a20·2020·2020·2020·206e·6f72··ures.········nor | |||
| 00000230:·6d61·6c69·7a65·4361·6368·655b·735d·203d··malizeCache[s]·= | |||
| 00000240:·2073·0a20·2020·2020·2020·2020·2020·202e···s.············. | |||
| 000002 | 00000250:·6e6f·726d·616c·697a·6528·274e·4644·2729··normalize('NFD') | ||
| 00000260:·0a20·2020·2020·2020·2020·2020·202e·746f··.············.to | |||
| 00000270:·4c6f·6361·6c65·4c6f·7765·7243·6173·6528··LocaleLowerCase( | |||
| 00000280:·2765·6e27·290a·2020·2020·2020·2020·2020··'en').·········· | |||
| 00000290:·2020·2e74·6f4c·6f63·616c·6555·7070·6572····.toLocaleUpper | |||
| 000002a0:·4361·7365·2827·656e·2729·3b0a·2020·2020··Case('en');.···· | |||
| 000002 | 000002b0:·7d0a·2020·2020·656c·7365·207b·0a20·2020··}.····else·{.··· | ||
| 000002 | 000002c0:·2020·2020·2063·6163·6865·2e64·656c·6574·······cache.delet | ||
| 00000240:·656c·6574·6528·7329·3b0a·2020·2020·7d0a··elete(s);.····}. | |||
| 00000250:·2020·2020·6361·6368·652e·6164·6428·7329······cache.add(s) | |||
| 00000260:·3b0a·2020·2020·636f·6e73·7420·7265·7420··;.····const·ret· | |||
| 00000270:·3d20·6e6f·726d·616c·697a·6543·6163·6865··=·normalizeCache | |||
| 00000280:·5b73·5d3b·0a20·2020·206c·6574·2069·203d··[s];.····let·i·= | |||
| 00000290:·2063·6163·6865·2e73·697a·6520·2d20·4d41···cache.size·-·MA | |||
| 000002a0:·583b·0a20·2020·202f·2f20·6f6e·6c79·2070··X;.····//·only·p | |||
| 000002b0:·7275·6e65·2077·6865·6e20·7765·2772·6520··rune·when·we're· | |||
| 000002c0:·3130·2520·6f76·6572·2074·6865·206d·6178··10%·over·the·max | |||
| 000002d0:·0a20·2020·2069·6620·2869·203e·204d·4158··.····if·(i·>·MAX | |||
| 000002e0:·202f·2031·3029·207b·0a20·2020·2020·2020···/·10)·{.······· | |||
| 000002f0:·2066·6f72·2028·636f·6e73·7420·7320·6f66···for·(const·s·of | |||
| 00000300:·2063·6163·6865·2920·7b0a·2020·2020·2020···cache)·{.······ | |||
| 00000310:·2020·2020·2020·6361·6368·652e·6465·6c65········cache.dele | |||
| 00000 | 000002d0:·6528·7329·3b0a·2020·2020·7d0a·2020·2020··e(s);.····}.···· | ||
| 000002e0:·6361·6368·652e·6164·6428·7329·3b0a·2020··cache.add(s);.·· | |||
| 000002f0:·2020·636f·6e73·7420·7265·7420·3d20·6e6f····const·ret·=·no | |||
| 00000300:·726d·616c·697a·6543·6163·6865·5b73·5d3b··rmalizeCache[s]; | |||
| 00000310:·0a20·2020·206c·6574·2069·203d·2063·6163··.····let·i·=·cac | |||
| 00000320:·6865·2e73·697a·6520·2d20·4d41·583b·0a20··he.size·-·MAX;.· | |||
| 00000330:·2020·202f·2f20·6f6e·6c79·2070·7275·6e65·····//·only·prune | |||
| 00000340:·2077·6865·6e20·7765·2772·6520·3130·2520···when·we're·10%· | |||
| 00000350:·6f76·6572·2074·6865·206d·6178·0a20·2020··over·the·max.··· | |||
| 00000360:·2069·6620·2869·203e·204d·4158·202f·2031···if·(i·>·MAX·/·1 | |||
| 00000370:·3029·207b·0a20·2020·2020·2020·2066·6f72··0)·{.········for | |||
| 00000380:·2028·636f·6e73·7420·7320·6f66·2063·6163···(const·s·of·cac | |||
| 00000390:·6865·2920·7b0a·2020·2020·2020·2020·2020··he)·{.·········· | |||
| 000003a0:·2020·6361·6368·652e·6465·6c65·7465·2873····cache.delete(s | |||
| 000003b0:·293b·0a20·2020·2020·2020·2020·2020·2064··);.············d | |||
| 000003 | 000003c0:·656c·6574·6520·6e6f·726d·616c·697a·6543··elete·normalizeC | ||
| 000003 | 000003d0:·6163·6865·5b73·5d3b·0a20·2020·2020·2020··ache[s];.······· | ||
| 000003 | 000003e0:·2020·2020·2069·6620·282d·2d69·203c·3d20·······if·(--i·<=· | ||
| 000003 | 000003f0:·3029·0a20·2020·2020·2020·2020·2020·2020··0).············· | ||
| 00000 | 00000400:·2020·2062·7265·616b·3b0a·2020·2020·2020·····break;.······ | ||
| 00000 | 00000410:·2020·7d0a·2020·2020·7d0a·2020·2020·7265····}.····}.····re | ||
| 00000 | 00000420:·7475·726e·2072·6574·3b0a·7d3b·0a65·7870··turn·ret;.};.exp | ||
| 00000 | 00000430:·6f72·7473·2e6e·6f72·6d61·6c69·7a65·556e··orts.normalizeUn | ||
| 00000 | 00000440:·6963·6f64·6520·3d20·6e6f·726d·616c·697a··icode·=·normaliz | ||
| 00000 | 00000450:·6555·6e69·636f·6465·3b0a·2f2f·2320·736f··eUnicode;.//#·so | ||
| 00000 | 00000460:·7572·6365·4d61·7070·696e·6755·524c·3d6e··urceMappingURL=n | ||
| 00000 | 00000470:·6f72·6d61·6c69·7a65·2d75·6e69·636f·6465··ormalize-unicode | ||
| 00000 | 00000480:·2e6a·732e·6d61·70························.js.map |
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"normalize-unicode.js", | 2 | ····"file":·"normalize-unicode.js", |
| 3 | ····"mappings":·";;;AAAA,oCAAoC;AACpC,+CAA+C;AAC/C,6CAA6C;AAC7C,4CAA4C;AAC5C,MAAM,cAAc,GAA2B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAElE,4DAA4D;AAC5D,MAAM,GAAG,GAAG,KAAK,CAAA;AACjB,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAA;AACxB,MAAM,gBAAgB,GAAG,CAAC,CAAS,EAAU,EAAE;IACpD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAClB,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC | 3 | ····"mappings":·";;;AAAA,oCAAoC;AACpC,+CAA+C;AAC/C,6CAA6C;AAC7C,4CAA4C;AAC5C,MAAM,cAAc,GAA2B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAElE,4DAA4D;AAC5D,MAAM,GAAG,GAAG,KAAK,CAAA;AACjB,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAA;AACxB,MAAM,gBAAgB,GAAG,CAAC,CAAS,EAAU,EAAE;IACpD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAClB,4CAA4C;QAC5C,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC;aAClB,SAAS,CAAC,KAAK,CAAC;aAChB,iBAAiB,CAAC,IAAI,CAAC;aACvB,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAC5B,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAEZ,MAAM,GAAG[·...·truncated·by·diffoscope;·len:·378,·SHA:·b9b6943c211e1f2c6f1803d2aba0ec653532482ba1fd5b2776d5ce3e5cd5a9d8·...·]B5B", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/normalize-unicode.ts" | 7 | ········"../../src/normalize-unicode.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·warning:·extremely·hot·code·path.\n//·This·has·been·meticulously·optimized·for·use\n//·within·npm·install·on·large·package·trees.\n//·Do·not·edit·without·careful·benchmarking.\nconst·normalizeCache:·Record<string,·string>·=·Object.create(null)\n\n//·Limit·the·size·of·this.·Very·low-sophistication·LRU·cache\nconst·MAX·=·10000\nconst·cache·=·new·Set<string>()\nexport·const·normalizeUnicode·=·(s:·string):·string·=>·{\n··if·(!cache.has(s))·{\n····normalizeCache[s]·=·s.normalize('NFD')\n··}·else·{\n····cache.delete(s)\n··}\n··cache.add(s)\n\n··const·ret·=·normalizeCache[s]·as·string\n\n··let·i·=·cache.size·-·MAX\n··//·only·prune·when·we're·10%·over·the·max\n··if·(i·>·MAX·/·10)·{\n····for·(const·s·of·cache)·{\n······cache.delete(s)\n······delete·normalizeCache[s]\n······if·(--i·<=·0)·break\n····}\n··}\n\n··return·ret\n}\n" | 10 | ········"//·warning:·extremely·hot·code·path.\n//·This·has·been·meticulously·optimized·for·use\n//·within·npm·install·on·large·package·trees.\n//·Do·not·edit·without·careful·benchmarking.\nconst·normalizeCache:·Record<string,·string>·=·Object.create(null)\n\n//·Limit·the·size·of·this.·Very·low-sophistication·LRU·cache\nconst·MAX·=·10000\nconst·cache·=·new·Set<string>()\nexport·const·normalizeUnicode·=·(s:·string):·string·=>·{\n··if·(!cache.has(s))·{\n····//·shake·out·identical·accents·and·ligatures\n····normalizeCache[s]·=·s\n······.normalize('NFD')\n······.toLocaleLowerCase('en')\n······.toLocaleUpperCase('en')\n··}·else·{\n····cache.delete(s)\n··}\n··cache.add(s)\n\n··const·ret·=·normalizeCache[s]·as·string\n\n··let·i·=·cache.size·-·MAX\n··//·only·prune·when·we're·10%·over·the·max\n··if·(i·>·MAX·/·10)·{\n····for·(const·s·of·cache)·{\n······cache.delete(s)\n······delete·normalizeCache[s]\n······if·(--i·<=·0)·break\n····}\n··}\n\n··return·ret\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 1, 8 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | import·{·type·GzipOptions,·type·ZlibOptions·}·from·'minizlib'; | 1 | import·{·type·GzipOptions,·type·ZlibOptions·}·from·'minizlib'; |
| 3 | import·{·type·Stats·}·from·'node:fs'; | 2 | import·{·type·Stats·}·from·'node:fs'; |
| 4 | import·{·type·ReadEntry·}·from·'./read-entry.js'; | 3 | import·{·type·ReadEntry·}·from·'./read-entry.js'; |
| 5 | import·{·type·WarnData·}·from·'./warn-method.js'; | 4 | import·{·type·WarnData·}·from·'./warn-method.js'; |
| 6 | import·{·WriteEntry·}·from·'./write-entry.js'; | 5 | import·{·WriteEntry·}·from·'./write-entry.js'; |
| 7 | /** | 6 | /** |
| 8 | ·*·The·options·that·can·be·provided·to·tar·commands. | 7 | ·*·The·options·that·can·be·provided·to·tar·commands. |
| Offset 581, 41 lines modified | Offset 580, 17 lines modified | ||
| 581 | export·type·TarOptionsWithAliasesAsyncFile·=·TarOptionsWithAliasesAsync·&·TarOptionsWithAliasesFile; | 580 | export·type·TarOptionsWithAliasesAsyncFile·=·TarOptionsWithAliasesAsync·&·TarOptionsWithAliasesFile; |
| 582 | export·type·TarOptionsWithAliasesNoFile·=·TarOptionsWithAliases·&·{ | 581 | export·type·TarOptionsWithAliasesNoFile·=·TarOptionsWithAliases·&·{ |
| 583 | ····f?:·undefined; | 582 | ····f?:·undefined; |
| 584 | ····file?:·undefined; | 583 | ····file?:·undefined; |
| 585 | }; | 584 | }; |
| 586 | export·type·TarOptionsWithAliasesSyncNoFile·=·TarOptionsWithAliasesSync·&·TarOptionsWithAliasesNoFile; | 585 | export·type·TarOptionsWithAliasesSyncNoFile·=·TarOptionsWithAliasesSync·&·TarOptionsWithAliasesNoFile; |
| 587 | export·type·TarOptionsWithAliasesAsyncNoFile·=·TarOptionsWithAliasesAsync·&·TarOptionsWithAliasesNoFile; | 586 | export·type·TarOptionsWithAliasesAsyncNoFile·=·TarOptionsWithAliasesAsync·&·TarOptionsWithAliasesNoFile; |
| 588 | export·declare·const·isSyncFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 587 | export·declare·const·isSyncFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsSyncFile; |
| 589 | ····sync:·true; | ||
| 590 | }·&·{ | ||
| 591 | ····file:·string; | ||
| 592 | }; | ||
| 593 | export·declare·const·isAsyncFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 588 | export·declare·const·isAsyncFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsAsyncFile; |
| 594 | ····sync?:·false·|·undefined; | ||
| 595 | }·&·{ | ||
| 596 | ····file:·string; | ||
| 597 | }; | ||
| 598 | export·declare·const·isSyncNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 589 | export·declare·const·isSyncNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsSyncNoFile; |
| 599 | ····sync:·true; | ||
| 600 | }·&·{ | ||
| 601 | ····file?:·undefined; | ||
| 602 | }; | ||
| 603 | export·declare·const·isAsyncNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 590 | export·declare·const·isAsyncNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsAsyncNoFile; |
| 604 | ····sync?:·false·|·undefined; | ||
| 605 | }·&·{ | ||
| 606 | ····file?:·undefined; | ||
| 607 | }; | ||
| 608 | export·declare·const·isSync:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 591 | export·declare·const·isSync:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsSync; |
| 609 | ····sync:·true; | ||
| 610 | }; | ||
| 611 | export·declare·const·isAsync:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 592 | export·declare·const·isAsync:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsAsync; |
| 612 | ····sync?:·false·|·undefined; | ||
| 613 | }; | ||
| 614 | export·declare·const·isFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 593 | export·declare·const·isFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsFile; |
| 615 | ····file:·string; | ||
| 616 | }; | ||
| 617 | export·declare·const·isNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 594 | export·declare·const·isNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsNoFile; |
| 618 | ····file?:·undefined; | ||
| 619 | }; | ||
| 620 | export·declare·const·dealias:·(opt?:·TarOptionsWithAliases)·=>·TarOptions; | 595 | export·declare·const·dealias:·(opt?:·TarOptionsWithAliases)·=>·TarOptions; |
| 621 | //#·sourceMappingURL=options.d.ts.map | 596 | //#·sourceMappingURL=options.d.ts.map |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"options.d.ts", | 2 | ····"file":·"options.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AA2B7C;;;;;[·...·truncated·by·diffoscope;·len:·5808,·SHA:·7db887ad6c49573b2941ab3780af9831e567cba726d4ee87f84d1fc37e73ca96·...·]B,UAiBF,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/options.ts" | 7 | ········"../../src/options.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | ///·<reference·types="node"·/> | ||
| 3 | ///·<reference·types="node"·/> | ||
| 4 | import·{·type·Stats·}·from·'fs'; | 1 | import·{·type·Stats·}·from·'fs'; |
| 5 | import·{·WriteEntry,·WriteEntrySync,·WriteEntryTar·}·from·'./write-entry.js'; | 2 | import·{·WriteEntry,·WriteEntrySync,·WriteEntryTar·}·from·'./write-entry.js'; |
| 6 | export·declare·class·PackJob·{ | 3 | export·declare·class·PackJob·{ |
| 7 | ····path:·string; | 4 | ····path:·string; |
| 8 | ····absolute:·string; | 5 | ····absolute:·string; |
| 9 | ····entry?:·WriteEntry·|·WriteEntryTar; | 6 | ····entry?:·WriteEntry·|·WriteEntryTar; |
| 10 | ····stat?:·Stats; | 7 | ····stat?:·Stats; |
| Offset 37, 14 lines modified | Offset 34, 15 lines modified | ||
| 37 | declare·const·ENTRY:·unique·symbol; | 34 | declare·const·ENTRY:·unique·symbol; |
| 38 | declare·const·ENTRYOPT:·unique·symbol; | 35 | declare·const·ENTRYOPT:·unique·symbol; |
| 39 | declare·const·WRITEENTRYCLASS:·unique·symbol; | 36 | declare·const·WRITEENTRYCLASS:·unique·symbol; |
| 40 | declare·const·WRITE:·unique·symbol; | 37 | declare·const·WRITE:·unique·symbol; |
| 41 | declare·const·ONDRAIN:·unique·symbol; | 38 | declare·const·ONDRAIN:·unique·symbol; |
| 42 | import·{·TarOptions·}·from·'./options.js'; | 39 | import·{·TarOptions·}·from·'./options.js'; |
| 43 | export·declare·class·Pack·extends·Minipass<Buffer,·ReadEntry·|·string,·WarnEvent<Buffer>>·implements·Warner·{ | 40 | export·declare·class·Pack·extends·Minipass<Buffer,·ReadEntry·|·string,·WarnEvent<Buffer>>·implements·Warner·{ |
| 41 | ····sync:·boolean; | ||
| 44 | ····opt:·TarOptions; | 42 | ····opt:·TarOptions; |
| 45 | ····cwd:·string; | 43 | ····cwd:·string; |
| 46 | ····maxReadSize?:·number; | 44 | ····maxReadSize?:·number; |
| 47 | ····preservePaths:·boolean; | 45 | ····preservePaths:·boolean; |
| 48 | ····strict:·boolean; | 46 | ····strict:·boolean; |
| 49 | ····noPax:·boolean; | 47 | ····noPax:·boolean; |
| 50 | ····prefix:·string; | 48 | ····prefix:·string; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"pack.d.ts", | 2 | ····"file":·"pack.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AASA,OAAW,EAAE,KAAK,KAAK,EAAE,MAAM,IAAI,CAAA;AACnC,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACd,MAAM,kBAAkB,CAAA;AAEzB,qBAAa,OAAO;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,UAAU,GAAG,aAAa,CAAA;IAClC,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,OAA[·...·truncated·by·diffoscope;·len:·2755,·SHA:·88c02d2395acaa80ca0f84d379819b69321543ae33c4975d23173c9c5369e156·...·]lC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO;IAatB,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE;IAM3C,CAAC,OAAO,CAAC;IA+BT,IAAI,CAAC,OAAO,CAAC,wBAEZ;IAED,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,OAAO;IAMvB,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE,OAAO;IAyDzB,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,GAAG,UAAU;IAmBpC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,OAAO;IAepB,CAAC,OAAO,CAAC;IAOT,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,OAAO;IAgCnB,KAAK;IAML,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,KAAK,EACvB,IAAI,GAAE,QAAa,GAClB,IAAI;CAGR;AAED,qBAAa,QAAS,SAAQ,IAAI;IAChC,IAAI,EAAE,IAAI,CAAO;gBACL,GAAG,EAAE,UAAU;IAM3B,KAAK;IACL,MAAM;IAEN,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,OAAO;IAKnB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO;IAKtB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,OAAO;CA0BpB", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/pack.ts" | 7 | ········"../../src/pack.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 67, 908 lines modified | Offset 67, 961 lines modified | ||
| 00000420:·7275·652c·2076·616c·7565·3a20·7620·7d29··rue,·value:·v·}) | 00000420:·7275·652c·2076·616c·7565·3a20·7620·7d29··rue,·value:·v·}) | ||
| 00000430:·3b0a·7d29·203a·2066·756e·6374·696f·6e28··;.})·:·function( | 00000430:·3b0a·7d29·203a·2066·756e·6374·696f·6e28··;.})·:·function( | ||
| 00000440:·6f2c·2076·2920·7b0a·2020·2020·6f5b·2264··o,·v)·{.····o["d | 00000440:·6f2c·2076·2920·7b0a·2020·2020·6f5b·2264··o,·v)·{.····o["d | ||
| 00000450:·6566·6175·6c74·225d·203d·2076·3b0a·7d29··efault"]·=·v;.}) | 00000450:·6566·6175·6c74·225d·203d·2076·3b0a·7d29··efault"]·=·v;.}) | ||
| 00000460:·3b0a·7661·7220·5f5f·696d·706f·7274·5374··;.var·__importSt | 00000460:·3b0a·7661·7220·5f5f·696d·706f·7274·5374··;.var·__importSt | ||
| 00000470:·6172·203d·2028·7468·6973·2026·2620·7468··ar·=·(this·&&·th | 00000470:·6172·203d·2028·7468·6973·2026·2620·7468··ar·=·(this·&&·th | ||
| 00000480:·6973·2e5f·5f69·6d70·6f72·7453·7461·7229··is.__importStar) | 00000480:·6973·2e5f·5f69·6d70·6f72·7453·7461·7229··is.__importStar) | ||
| 00000490:·207c·7c20·6675·6e63·7469·6f6e·2028·6d6f···||·function·(mo | |||
| 000004a0:·6429·207b·0a20·2020·2069·6620·286d·6f64··d)·{.····if·(mod | |||
| 000004b0:·2026·2620·6d6f·642e·5f5f·6573·4d6f·6475···&&·mod.__esModu | |||
| 000004 | 00000490:·207c·7c20·2866·756e·6374·696f·6e20·2829···||·(function·() | ||
| 000004a0:·207b·0a20·2020·2076·6172·206f·776e·4b65···{.····var·ownKe | |||
| 000004b0:·7973·203d·2066·756e·6374·696f·6e28·6f29··ys·=·function(o) | |||
| 000004c0:·207b·0a20·2020·2020·2020·206f·776e·4b65···{.········ownKe | |||
| 000004d0:·7973·203d·204f·626a·6563·742e·6765·744f··ys·=·Object.getO | |||
| 000004e0:·776e·5072·6f70·6572·7479·4e61·6d65·7320··wnPropertyNames· | |||
| 000004f0:·7c7c·2066·756e·6374·696f·6e20·286f·2920··||·function·(o)· | |||
| 00000500:·7b0a·2020·2020·2020·2020·2020·2020·7661··{.············va | |||
| 00000510:·7220·6172·203d·205b·5d3b·0a20·2020·2020··r·ar·=·[];.····· | |||
| 00000520:·2020·2020·2020·2066·6f72·2028·7661·7220·········for·(var· | |||
| 00000530:·6b20·696e·206f·2920·6966·2028·4f62·6a65··k·in·o)·if·(Obje | |||
| 00000540:·6374·2e70·726f·746f·7479·7065·2e68·6173··ct.prototype.has | |||
| 00000550:·4f77·6e50·726f·7065·7274·792e·6361·6c6c··OwnProperty.call | |||
| 00000560:·286f·2c20·6b29·2920·6172·5b61·722e·6c65··(o,·k))·ar[ar.le | |||
| 00000570:·6e67·7468·5d20·3d20·6b3b·0a20·2020·2020··ngth]·=·k;.····· | |||
| 00000580:·2020·2020·2020·2072·6574·7572·6e20·6172·········return·ar | |||
| 00000590:·3b0a·2020·2020·2020·2020·7d3b·0a20·2020··;.········};.··· | |||
| 000005a0:·2020·2020·2072·6574·7572·6e20·6f77·6e4b·······return·ownK | |||
| 000005b0:·6579·7328·6f29·3b0a·2020·2020·7d3b·0a20··eys(o);.····};.· | |||
| 000005c0:·2020·2072·6574·7572·6e20·6675·6e63·7469·····return·functi | |||
| 000005d0:·6f6e·2028·6d6f·6429·207b·0a20·2020·2020··on·(mod)·{.····· | |||
| 000005e0:·2020·2069·6620·286d·6f64·2026·2620·6d6f·····if·(mod·&&·mo | |||
| 000005f0:·642e·5f5f·6573·4d6f·6475·6c65·2920·7265··d.__esModule)·re | |||
| 00000600:·7475·726e·206d·6f64·3b0a·2020·2020·2020··turn·mod;.······ | |||
| 00000 | 00000610:·2020·7661·7220·7265·7375·6c74·203d·207b····var·result·=·{ | ||
| 00000 | 00000620:·7d3b·0a20·2020·2020·2020·2069·6620·286d··};.········if·(m | ||
| 00000 | 00000630:·6f64·2021·3d20·6e75·6c6c·2920·666f·7220··od·!=·null)·for· | ||
| 00000500:·6172·206b·2069·6e20·6d6f·6429·2069·6620··ar·k·in·mod)·if· | |||
| 00000510:·286b·2021·3d3d·2022·6465·6661·756c·7422··(k·!==·"default" | |||
| 00000520:·2026·2620·4f62·6a65·6374·2e70·726f·746f···&&·Object.proto | |||
| 00000530:·7479·7065·2e68·6173·4f77·6e50·726f·7065··type.hasOwnPrope | |||
| 00000540:·7274·792e·6361·6c6c·286d·6f64·2c20·6b29··rty.call(mod,·k) | |||
| 00000550:·2920·5f5f·6372·6561·7465·4269·6e64·696e··)·__createBindin | |||
| 00000 | 00000640:·2876·6172·206b·203d·206f·776e·4b65·7973··(var·k·=·ownKeys | ||
| 00000650:·286d·6f64·292c·2069·203d·2030·3b20·6920··(mod),·i·=·0;·i· | |||
| 00000660:·3c20·6b2e·6c65·6e67·7468·3b20·692b·2b29··<·k.length;·i++) | |||
| 00000670:·2069·6620·286b·5b69·5d20·213d·3d20·2264···if·(k[i]·!==·"d | |||
| 00000680:·6566·6175·6c74·2229·205f·5f63·7265·6174··efault")·__creat | |||
| 00000690:·6542·696e·6469·6e67·2872·6573·756c·742c··eBinding(result, | |||
| 000006a0:·206d·6f64·2c20·6b5b·695d·293b·0a20·2020···mod,·k[i]);.··· | |||
| 00000 | 000006b0:·2020·2020·205f·5f73·6574·4d6f·6475·6c65·······__setModule | ||
| 00000 | 000006c0:·4465·6661·756c·7428·7265·7375·6c74·2c20··Default(result,· | ||
| 00000 | 000006d0:·6d6f·6429·3b0a·2020·2020·2020·2020·7265··mod);.········re | ||
| 00000 | 000006e0:·7475·726e·2072·6573·756c·743b·0a20·2020··turn·result;.··· | ||
| 000006f0:·207d·3b0a·7d29·2829·3b0a·7661·7220·5f5f···};.})();.var·__ | |||
| 00000 | 00000700:·696d·706f·7274·4465·6661·756c·7420·3d20··importDefault·=· | ||
| 00000 | 00000710:·2874·6869·7320·2626·2074·6869·732e·5f5f··(this·&&·this.__ | ||
| 00000 | 00000720:·696d·706f·7274·4465·6661·756c·7429·207c··importDefault)·| | ||
| 00000 | 00000730:·7c20·6675·6e63·7469·6f6e·2028·6d6f·6429··|·function·(mod) | ||
| 00000 | 00000740:·207b·0a20·2020·2072·6574·7572·6e20·286d···{.····return·(m | ||
| 00000 | 00000750:·6f64·2026·2620·6d6f·642e·5f5f·6573·4d6f··od·&&·mod.__esMo | ||
| 00000 | 00000760:·6475·6c65·2920·3f20·6d6f·6420·3a20·7b20··dule)·?·mod·:·{· | ||
| 00000 | 00000770:·2264·6566·6175·6c74·223a·206d·6f64·207d··"default":·mod·} | ||
| 00000 | 00000780:·3b0a·7d3b·0a4f·626a·6563·742e·6465·6669··;.};.Object.defi | ||
| 00000 | 00000790:·6e65·5072·6f70·6572·7479·2865·7870·6f72··neProperty(expor | ||
| 00000 | 000007a0:·7473·2c20·225f·5f65·734d·6f64·756c·6522··ts,·"__esModule" | ||
| 00000 | 000007b0:·2c20·7b20·7661·6c75·653a·2074·7275·6520··,·{·value:·true· | ||
| 00000 | 000007c0:·7d29·3b0a·6578·706f·7274·732e·5061·636b··});.exports.Pack | ||
| 00000 | 000007d0:·5379·6e63·203d·2065·7870·6f72·7473·2e50··Sync·=·exports.P | ||
| 00000 | 000007e0:·6163·6b20·3d20·6578·706f·7274·732e·5061··ack·=·exports.Pa | ||
| 00000 | 000007f0:·636b·4a6f·6220·3d20·766f·6964·2030·3b0a··ckJob·=·void·0;. | ||
| 00000800:·636f·6e73·7420·6673·5f31·203d·205f·5f69··const·fs_1·=·__i | |||
| 00000810:·6d70·6f72·7444·6566·6175·6c74·2872·6571··mportDefault(req | |||
| 00000820:·7569·7265·2822·6673·2229·293b·0a63·6f6e··uire("fs"));.con | |||
| 00000830:·7374·2077·7269·7465·5f65·6e74·7279·5f6a··st·write_entry_j | |||
| 00000840:·735f·3120·3d20·7265·7175·6972·6528·222e··s_1·=·require(". | |||
| 00000850:·2f77·7269·7465·2d65·6e74·7279·2e6a·7322··/write-entry.js" | |||
| 00000860:·293b·0a63·6c61·7373·2050·6163·6b4a·6f62··);.class·PackJob | |||
| 00000870:·207b·0a20·2020·2070·6174·683b·0a20·2020···{.····path;.··· | |||
| 00000880:·2061·6273·6f6c·7574·653b·0a20·2020·2065···absolute;.····e | |||
| 00000890:·6e74·7279·3b0a·2020·2020·7374·6174·3b0a··ntry;.····stat;. | |||
| 000008a0:·2020·2020·7265·6164·6469·723b·0a20·2020······readdir;.··· | |||
| 000008b0:·2070·656e·6469·6e67·203d·2066·616c·7365···pending·=·false | |||
| 000008c0:·3b0a·2020·2020·6967·6e6f·7265·203d·2066··;.····ignore·=·f | |||
| 000008d0:·616c·7365·3b0a·2020·2020·7069·7065·6420··alse;.····piped· | |||
| 000008e0:·3d20·6661·6c73·653b·0a20·2020·2063·6f6e··=·false;.····con | |||
| 000008f0:·7374·7275·6374·6f72·2870·6174·682c·2061··structor(path,·a | |||
| 00000900:·6273·6f6c·7574·6529·207b·0a20·2020·2020··bsolute)·{.····· | |||
| 00000910:·2020·2074·6869·732e·7061·7468·203d·2070·····this.path·=·p | |||
| 00000920:·6174·6820·7c7c·2027·2e2f·273b·0a20·2020··ath·||·'./';.··· | |||
| 00000930:·2020·2020·2074·6869·732e·6162·736f·6c75·······this.absolu | |||
| 00000940:·7465·203d·2061·6273·6f6c·7574·653b·0a20··te·=·absolute;.· | |||
| 00000950:·2020·207d·0a7d·0a65·7870·6f72·7473·2e50·····}.}.exports.P | |||
| 00000960:·6163·6b4a·6f62·203d·2050·6163·6b4a·6f62··ackJob·=·PackJob | |||
| 00000970:·3b0a·636f·6e73·7420·6d69·6e69·7061·7373··;.const·minipass | |||
| 00000980:·5f31·203d·2072·6571·7569·7265·2822·6d69··_1·=·require("mi | |||
| 00000990:·6e69·7061·7373·2229·3b0a·636f·6e73·7420··nipass");.const· | |||
| 000009a0:·7a6c·6962·203d·205f·5f69·6d70·6f72·7453··zlib·=·__importS | |||
| 000009b0:·7461·7228·7265·7175·6972·6528·226d·696e··tar(require("min | |||
| Max diff block lines reached; 86792/128352 bytes (67.62%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"pack.js", | 2 | ····"file":·"pack.js", |
| 3 | ····"mappings":·";AAAA,gCAAgC;AAChC,qEAAqE;AACrE,+BAA+B;AAC/B,yDAAyD;AACzD,8CAA8C;AAC9C,+DAA+D;AAC/D,oCAAoC;AACpC,uEAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvE,4CAAmC;AACnC,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AC;CACF;AA/CD,4BA+CC", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/pack.ts" | 7 | ········"../../src/pack.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·A·readable·tar·stream·creator\n//·Technically,·this·is·a·transform·stream·that·you·write·paths·into,\n//·and·tar·format·comes·out·of.\n//·The·`add()`·method·is·like·`write()`·but·returns·this,\n//·and·end()·return·`this`·as·well,·so·you·can\n//·do·`new·Pack(opt).add('files').add('dir').end().pipe(output)\n//·You·could·also·do·something·like:\n//·streamOfPaths().pipe(new·Pack()).pipe(new·fs.WriteStream('out.tar'))\n\nimport·fs,·{·type·Stats·}·from·'fs'\nimport·{\n··WriteEntry,\n··WriteEntrySync,\n··WriteEntryTar,\n}·from·'./write-entry.js'\n\nexport·class·PackJob·{\n··path:·string\n··absolute:·string\n··entry?:·WriteEntry·|·WriteEntryTar\n··stat?:·Stats\n··readdir?:·string[]\n··pending:·boolean·=·false\n··ignore:·boolean·=·false\n··piped:·boolean·=·false\n··constructor(path:·string,·absolute:·string)·{\n····this.path·=·path·||·'./'\n····this.absolute·=·absolute\n··}\n}\n\nimport·{·Minipass·}·from·'minipass'\nimport·*·as·zlib·from·'minizlib'\nimport·{·Yallist·}·from·'yallist'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{\n··WarnEvent,\n··warnMethod,\n··type·WarnData,\n··type·Warner,\n}·from·'./warn-method.js'\n\nconst·EOF·=·Buffer.alloc(1024)\nconst·ONSTAT·=·Symbol('onStat')\nconst·ENDED·=·Symbol('ended')\nconst·QUEUE·=·Symbol('queue')\nconst·CURRENT·=·Symbol('current')\nconst·PROCESS·=·Symbol('process')\nconst·PROCESSING·=·Symbol('processing')\nconst·PROCESSJOB·=·Symbol('processJob')\nconst·JOBS·=·Symbol('jobs')\nconst·JOBDONE·=·Symbol('jobDone')\nconst·ADDFSENTRY·=·Symbol('addFSEntry')\nconst·ADDTARENTRY·=·Symbol('addTarEntry')\nconst·STAT·=·Symbol('stat')\nconst·READDIR·=·Symbol('readdir')\nconst·ONREADDIR·=·Symbol('onreaddir')\nconst·PIPE·=·Symbol('pipe')\nconst·ENTRY·=·Symbol('entry')\nconst·ENTRYOPT·=·Symbol('entryOpt')\nconst·WRITEENTRYCLASS·=·Symbol('writeEntryClass')\nconst·WRITE·=·Symbol('write')\nconst·ONDRAIN·=·Symbol('ondrain')\n\nimport·path·from·'path'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{·TarOptions·}·from·'./options.js'\n\nexport·class·Pack\n··extends·Minipass<Buffer,·ReadEntry·|·string,·WarnEvent<Buffer>>\n··implements·Warner\n{\n··opt:·TarOptions\n··cwd:·string\n··maxReadSize?:·number\n··preservePaths:·boolean\n··strict:·boolean\n··noPax:·boolean\n··prefix:·string\n··linkCache:·Exclude<TarOptions['linkCache'],·undefined>\n··statCache:·Exclude<TarOptions['s | 10 | ········"//·A·readable·tar·stream·creator\n//·Technically,·this·is·a·transform·stream·that·you·write·paths·into,\n//·and·tar·format·comes·out·of.\n//·The·`add()`·method·is·like·`write()`·but·returns·this,\n//·and·end()·return·`this`·as·well,·so·you·can\n//·do·`new·Pack(opt).add('files').add('dir').end().pipe(output)\n//·You·could·also·do·something·like:\n//·streamOfPaths().pipe(new·Pack()).pipe(new·fs.WriteStream('out.tar'))\n\nimport·fs,·{·type·Stats·}·from·'fs'\nimport·{\n··WriteEntry,\n··WriteEntrySync,\n··WriteEntryTar,\n}·from·'./write-entry.js'\n\nexport·class·PackJob·{\n··path:·string\n··absolute:·string\n··entry?:·WriteEntry·|·WriteEntryTar\n··stat?:·Stats\n··readdir?:·string[]\n··pending:·boolean·=·false\n··ignore:·boolean·=·false\n··piped:·boolean·=·false\n··constructor(path:·string,·absolute:·string)·{\n····this.path·=·path·||·'./'\n····this.absolute·=·absolute\n··}\n}\n\nimport·{·Minipass·}·from·'minipass'\nimport·*·as·zlib·from·'minizlib'\nimport·{·Yallist·}·from·'yallist'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{\n··WarnEvent,\n··warnMethod,\n··type·WarnData,\n··type·Warner,\n}·from·'./warn-method.js'\n\nconst·EOF·=·Buffer.alloc(1024)\nconst·ONSTAT·=·Symbol('onStat')\nconst·ENDED·=·Symbol('ended')\nconst·QUEUE·=·Symbol('queue')\nconst·CURRENT·=·Symbol('current')\nconst·PROCESS·=·Symbol('process')\nconst·PROCESSING·=·Symbol('processing')\nconst·PROCESSJOB·=·Symbol('processJob')\nconst·JOBS·=·Symbol('jobs')\nconst·JOBDONE·=·Symbol('jobDone')\nconst·ADDFSENTRY·=·Symbol('addFSEntry')\nconst·ADDTARENTRY·=·Symbol('addTarEntry')\nconst·STAT·=·Symbol('stat')\nconst·READDIR·=·Symbol('readdir')\nconst·ONREADDIR·=·Symbol('onreaddir')\nconst·PIPE·=·Symbol('pipe')\nconst·ENTRY·=·Symbol('entry')\nconst·ENTRYOPT·=·Symbol('entryOpt')\nconst·WRITEENTRYCLASS·=·Symbol('writeEntryClass')\nconst·WRITE·=·Symbol('write')\nconst·ONDRAIN·=·Symbol('ondrain')\n\nimport·path·from·'path'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{·TarOptions·}·from·'./options.js'\n\nexport·class·Pack\n··extends·Minipass<Buffer,·ReadEntry·|·string,·WarnEvent<Buffer>>\n··implements·Warner\n{\n··sync:·boolean·=·false\n··opt:·TarOptions\n··cwd:·string\n··maxReadSize?:·number\n··preservePaths:·boolean\n··strict:·boolean\n··noPax:·boolean\n··prefix:·string\n··linkCache:·Exclude<TarOptions['linkCache'],·undefined>\n··statCache:·Exclude<TarOptions['sta[·...·truncated·by·diffoscope;·len:·6333,·SHA:·afa835b83c96b9d9359bacfde36c2393550009304e4b9bd623fe1d3f7d6f38f1·...·]\n····}\n\n····this[PROCESS]()\n··}\n\n··[READDIR](job:·PackJob)·{\n····job.pending·=·true\n····this[JOBS]·+=·1\n····fs.readdir(job.absolute,·(er,·entries)·=>·{\n······job.pending·=·false\n······this[JOBS]·-=·1\n······if·(er)·{\n········return·this.emit('error',·er)\n······}\n······this[ONREADDIR](job,·entries)\n····})\n··}\n\n··[ONREADDIR](job:·PackJob,·entries:·string[])·{\n····this.readdirCache.set(job.absolute,·entries)\n····job.readdir·=·entries\n····this[PROCESS]()\n··}\n\n··[PROCESS]()·{\n····if·(this[PROCESSING])·{\n······return\n····}\n\n····this[PROCESSING]·=·true\n····for·(\n······let·w·=·this[QUEUE].head;\n······!!w·&&·this[JOBS]·<·this.jobs;\n······w·=·w.next\n····)·{\n······this[PROCESSJOB](w.value)\n······if·(w.value.ignore)·{\n········const·p·=·w.next\n········this[QUEUE].removeNode(w)\n········w.next·=·p\n······}\n····}\n\n····this[PROCESSING]·=·false\n\n····if·(this[ENDED]·&&·!this[QUEUE].length·&&·this[JOBS]·===·0)·{\n······if·(this.zip)·{\n········this.zip.end(EOF)\n······}·else·{\n········super.write(EOF·as·unknown·as·string)\n········super.end()\n······}\n····}\n··}\n\n··get·[CURRENT]()·{\n····return·this[QUEUE]·&&·this[QUEUE].head·&&·this[QUEUE].head.value\n··}\n\n··[JOBDONE](_job:·PackJob)·{\n····this[QUEUE].shift()\n····this[JOBS]·-=·1\n····this[PROCESS]()\n··}\n\n··[PROCESSJOB](job:·PackJob)·{\n····if·(job.pending)·{\n······return\n····}\n\n····if·(job.entry)·{\n······if·(job·===·this[CURRENT]·&&·!job.piped)·{\n········this[PIPE](job)\n······}\n······return\n····}\n\n····if·(!job.stat)·{\n······const·sc·=·this.statCache.get(job.absolute)\n······if·(sc)·{\n········this[ONSTAT](job,·sc)\n······}·else·{\n········this[STAT](job)\n······}\n····}\n····if·(!job.stat)·{\n······return\n····}\n\n····//·filtered·out!\n····if·(job.ignore)·{\n······return\n····}\n\n····if·(\n······!this.noDirRecurse·&&\n······job.stat.isDirectory()·&&\n······!job.readdir\n····)·{\n······const·rc·=·this.readdirCache.get(job.absolute)\n······if·(rc)·{\n········this[ONREADDIR](job,·rc)\n······}·else·{\n········this[READDIR](job)\n······}\n······if·(!job.readdir)·{\n········return\n······}\n····}\n\n····//·we·know·it·doesn't·have·an·entry,·because·that·got·checked·above\n····job.entry·=·this[ENTRY](job)\n····if·(!job.entry)·{\n······job.ignore·=·true\n······return\n····}\n\n····if·(job·===·this[CURRENT]·&&·!job.piped)·{\n······this[PIPE](job)\n····}\n··}\n\n··[ENTRYOPT](job:·PackJob):·TarOptions·{\n····return·{\n······onwarn:·(code,·msg,·data)·=>·this.warn(code,·msg,·data),\n······noPax:·this.noPax,\n······cwd:·this.cwd,\n······absolute:·job.absolute,\n······preservePaths:·this.preservePaths,\n······maxReadSize:·this.maxReadSize,\n······strict:·this.strict,\n······portable:·this.portable,\n······linkCache:·this.linkCache,\n······statCache:·this.statCache,\n······noMtime:·this.noMtime,\n······mtime:·this.mtime,\n······prefix:·this.prefix,\n······onWriteEntry:·this.onWriteEntry,\n····}\n··}\n\n··[ENTRY](job:·PackJob)·{\n····this[JOBS]·+=·1\n····try·{\n······const·e·=·new·this[WRITEENTRYCLASS](\n········job.path,\n········this[ENTRYOPT](job),\n······)\n······return·e\n········.on('end',·()·=>·this[JOBDONE](job))\n········.on('error',·er·=>·this.emit('error',·er))\n····}·catch·(er)·{\n······this.emit('error',·er)\n····}\n··}\n\n··[ONDRAIN]()·{\n····if·(this[CURRENT]·&&·this[CURRENT].entry)·{\n······this[CURRENT].entry.resume()\n····}\n··}\n\n··//·like·.pipe()·but·using·super,·because·our·write()·is·special\n··[PIPE](job:·PackJob)·{\n····job.piped·=·true\n\n····if·(job.readdir)·{\n······job.readdir.forEach(entry·=>·{\n········const·p·=·job.path\n········const·base·=·p·===·'./'·?·''·:·p.replace(/\\/*$/,·'/')\n········this[ADDFSENTRY](base·+·entry)\n······})\n····}\n\n····const·source·=·job.entry\n····const·zip·=·this.zip\n····/*·c8·ignore·start·*/\n····if·(!source)·throw·new·Error('cannot·pipe·without·source')\n····/*·c8·ignore·stop·*/\n\n····if·(zip)·{\n······source.on('data',·chunk·=>·{\n········if·(!zip.write(chunk))·{\n··········source.pause()\n········}\n······})\n····}·else·{\n······source.on('data',·chunk·=>·{\n········if·(!super.write(chunk·as·unknown·as·string))·{\n··········source.pause()\n········}\n······})\n····}\n··}\n\n··pause()·{\n····if·(this.zip)·{\n······this.zip.pause()\n····}\n····return·super.pause()\n··}\n··warn(\n····code:·string,\n····message:·string·|·Error,\n····data:·WarnData·=·{},\n··):·void·{\n····warnMethod(this,·code,·message,·data)\n··}\n}\n\nexport·class·PackSync·extends·Pack·{\n··sync:·true·=·true\n··constructor(opt:·TarOptions)·{\n····super(opt)\n····this[WRITEENTRYCLASS]·=·WriteEntrySync\n··}\n\n··//·pause/resume·are·no-ops·in·sync·streams.\n··pause()·{}\n··resume()·{}\n\n··[STAT](job:·PackJob)·{\n····const·stat·=·this.follow·?·'statSync'·:·'lstatSync'\n····this[ONSTAT](job,·fs[stat](job.absolute))\n··}\n\n··[READDIR](job:·PackJob)·{\n····this[ONREADDIR](job,·fs.readdirSync(job.absolute))\n··}\n\n··//·gotta·get·it·all·in·this·tick\n··[PIPE](job:·PackJob)·{\n····const·source·=·job.entry\n····const·zip·=·this.zip\n\n····if·(job.readdir)·{\n······job.readdir.forEach(entry·=>·{\n········const·p·=·job.path\n········const·base·=·p·===·'./'·?·''·:·p.replace(/\\/*$/,·'/')\n········this[ADDFSENTRY](base·+·entry)\n······})\n····}\n\n····/*·c8·ignore·start·*/\n····if·(!source)·throw·new·Error('Cannot·pipe·without·source')\n····/*·c8·ignore·stop·*/\n\n····if·(zip)·{\n······source.on('data',·chunk·=>·{\n········zip.write(chunk)\n······})\n····}·else·{\n······source.on('data',·chunk·=>·{\n········super[WRITE](chunk)\n······})\n····}\n··}\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 1, 10 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | ///·<reference·types="node"·/> | ||
| 3 | ///·<reference·types="node"·/> | ||
| 4 | import·{·EventEmitter·as·EE·}·from·'events'; | 1 | import·{·EventEmitter·as·EE·}·from·'events'; |
| 5 | import·{·BrotliDecompress,·Unzip,·ZstdDecompress·}·from·'minizlib'; | 2 | import·{·BrotliDecompress,·Unzip,·ZstdDecompress·}·from·'minizlib'; |
| 6 | import·{·TarOptions·}·from·'./options.js'; | 3 | import·{·TarOptions·}·from·'./options.js'; |
| 7 | import·{·Pax·}·from·'./pax.js'; | 4 | import·{·Pax·}·from·'./pax.js'; |
| 8 | import·{·ReadEntry·}·from·'./read-entry.js'; | 5 | import·{·ReadEntry·}·from·'./read-entry.js'; |
| 9 | import·{·type·WarnData,·type·Warner·}·from·'./warn-method.js'; | 6 | import·{·type·WarnData,·type·Warner·}·from·'./warn-method.js'; |
| 10 | declare·const·STATE:·unique·symbol; | 7 | declare·const·STATE:·unique·symbol; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"parse.d.ts", | 2 | ····"file":·"parse.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAoBA,OAAO,EAAE,YAAY,IAAI,EAAE,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAElE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,MAAM,EACZ,MAAM,kBAAkB,CAAA;AAOzB,QAAA,MAAM,KAAK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AE,MAAM,IAAI,GAAG,IAAI;IAC1B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;IACjD,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;CAmCnE", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/parse.ts" | 7 | ········"../../src/parse.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"path-reservations.d.ts", | 2 | ····"file":·"path-reservations.d.ts", |
| 3 | ····"mappings":·"AAgBA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,IAAI,CAAA;AAmBjD,qBAAa,gBAAgB;;IAY3B,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,OAAO;IA | 3 | ····"mappings":·"AAgBA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,IAAI,CAAA;AAmBjD,qBAAa,gBAAgB;;IAY3B,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,OAAO;IA8DpC,KAAK,CAAC,EAAE,EAAE,OAAO;CA8ElB", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/path-reservations.ts" | 7 | ········"../../src/path-reservations.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 110, 250 lines modified | Offset 110, 249 lines modified | ||
| 000006d0:·7374·7269·705f·7472·6169·6c69·6e67·5f73··strip_trailing_s | 000006d0:·7374·7269·705f·7472·6169·6c69·6e67·5f73··strip_trailing_s | ||
| 000006e0:·6c61·7368·6573·5f6a·735f·312e·7374·7269··lashes_js_1.stri | 000006e0:·6c61·7368·6573·5f6a·735f·312e·7374·7269··lashes_js_1.stri | ||
| 000006f0:·7054·7261·696c·696e·6753·6c61·7368·6573··pTrailingSlashes | 000006f0:·7054·7261·696c·696e·6753·6c61·7368·6573··pTrailingSlashes | ||
| 00000700:·2928·2830·2c20·6e6f·6465·5f70·6174·685f··)((0,·node_path_ | 00000700:·2928·2830·2c20·6e6f·6465·5f70·6174·685f··)((0,·node_path_ | ||
| 00000710:·312e·6a6f·696e·2928·2830·2c20·6e6f·726d··1.join)((0,·norm | 00000710:·312e·6a6f·696e·2928·2830·2c20·6e6f·726d··1.join)((0,·norm | ||
| 00000720:·616c·697a·655f·756e·6963·6f64·655f·6a73··alize_unicode_js | 00000720:·616c·697a·655f·756e·6963·6f64·655f·6a73··alize_unicode_js | ||
| 00000730:·5f31·2e6e·6f72·6d61·6c69·7a65·556e·6963··_1.normalizeUnic | 00000730:·5f31·2e6e·6f72·6d61·6c69·7a65·556e·6963··_1.normalizeUnic | ||
| 00000740:·6f64·6529·2870·2929·293b·0a20·2020·2020··ode)(p)));.····· | |||
| 00000740:·6f64·6529·2870·2929·292e·746f·4c6f·7765··ode)(p))).toLowe | |||
| 00000750:·7243·6173·6528·293b·0a20·2020·2020·2020··rCase();.······· | |||
| 000007 | 00000750:·2020·2020·2020·2020·2020·207d·293b·0a20·············});.· | ||
| 000007 | 00000760:·2020·2020·2020·2063·6f6e·7374·2064·6972·········const·dir | ||
| 000007 | 00000770:·7320·3d20·6e65·7720·5365·7428·7061·7468··s·=·new·Set(path | ||
| 000007 | 00000780:·732e·6d61·7028·7061·7468·203d·3e20·6765··s.map(path·=>·ge | ||
| 000007 | 00000790:·7444·6972·7328·7061·7468·2929·2e72·6564··tDirs(path)).red | ||
| 000007 | 000007a0:·7563·6528·2861·2c20·6229·203d·3e20·612e··uce((a,·b)·=>·a. | ||
| 000007 | 000007b0:·636f·6e63·6174·2862·2929·293b·0a20·2020··concat(b)));.··· | ||
| 000007 | 000007c0:·2020·2020·2074·6869·732e·2372·6573·6572·······this.#reser | ||
| 000007 | 000007d0:·7661·7469·6f6e·732e·7365·7428·666e·2c20··vations.set(fn,· | ||
| 000007 | 000007e0:·7b20·6469·7273·2c20·7061·7468·7320·7d29··{·dirs,·paths·}) | ||
| 00000800:·2020·2020·2020·2020·666f·7220·2863·6f6e··········for·(con | |||
| 00000810:·7374·2070·206f·6620·7061·7468·7329·207b··st·p·of·paths)·{ | |||
| 00000820:·0a20·2020·2020·2020·2020·2020·2063·6f6e··.············con | |||
| 00000830:·7374·2071·203d·2074·6869·732e·2371·7565··st·q·=·this.#que | |||
| 00000840:·7565·732e·6765·7428·7029·3b0a·2020·2020··ues.get(p);.···· | |||
| 00000850:·2020·2020·2020·2020·6966·2028·2171·2920··········if·(!q)· | |||
| 00000860:·7b0a·2020·2020·2020·2020·2020·2020·2020··{.·············· | |||
| 00000870:·2020·7468·6973·2e23·7175·6575·6573·2e73····this.#queues.s | |||
| 00000880:·6574·2870·2c20·5b66·6e5d·293b·0a20·2020··et(p,·[fn]);.··· | |||
| 00000890:·2020·2020·2020·2020·207d·0a20·2020·2020···········}.····· | |||
| 000008a0:·2020·2020·2020·2065·6c73·6520·7b0a·2020·········else·{.·· | |||
| 000008b0:·2020·2020·2020·2020·2020·2020·2020·712e················q. | |||
| 000008c0:·7075·7368·2866·6e29·3b0a·2020·2020·2020··push(fn);.······ | |||
| 000008d0:·2020·2020·2020·7d0a·2020·2020·2020·2020········}.········ | |||
| 00000 | 000007f0:·3b0a·2020·2020·2020·2020·666f·7220·2863··;.········for·(c | ||
| 000008 | 00000800:·6f6e·7374·2070·206f·6620·7061·7468·7329··onst·p·of·paths) | ||
| 00000810:·207b·0a20·2020·2020·2020·2020·2020·2063···{.············c | |||
| 00000820:·6f6e·7374·2071·203d·2074·6869·732e·2371··onst·q·=·this.#q | |||
| 00000830:·7565·7565·732e·6765·7428·7029·3b0a·2020··ueues.get(p);.·· | |||
| 00000840:·2020·2020·2020·2020·2020·6966·2028·2171············if·(!q | |||
| 00000 | 00000850:·2920·7b0a·2020·2020·2020·2020·2020·2020··)·{.············ | ||
| 00000860:·2020·2020·7468·6973·2e23·7175·6575·6573······this.#queues | |||
| 00000870:·2e73·6574·2870·2c20·5b66·6e5d·293b·0a20··.set(p,·[fn]);.· | |||
| 00000910:·636f·6e73·7420·7120·3d20·7468·6973·2e23··const·q·=·this.# | |||
| 00000920:·7175·6575·6573·2e67·6574·2864·6972·293b··queues.get(dir); | |||
| 00000930:·0a20·2020·2020·2020·2020·2020·2069·6620··.············if· | |||
| 00000940:·2821·7129·207b·0a20·2020·2020·2020·2020··(!q)·{.········· | |||
| 00000950:·2020·2020·2020·2074·6869·732e·2371·7565·········this.#que | |||
| 00000960:·7565·732e·7365·7428·6469·722c·205b·6e65··ues.set(dir,·[ne | |||
| 00000970:·7720·5365·7428·5b66·6e5d·295d·293b·0a20··w·Set([fn])]);.· | |||
| 00000 | 00000880:·2020·2020·2020·2020·2020·207d·0a20·2020·············}.··· | ||
| 00000 | 00000890:·2020·2020·2020·2020·2065·6c73·6520·7b0a···········else·{. | ||
| 00000 | 000008a0:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 000008b0:·712e·7075·7368·2866·6e29·3b0a·2020·2020··q.push(fn);.···· | |||
| 000009b0:·636f·6e73·7420·6c20·3d20·715b·712e·6c65··const·l·=·q[q.le | |||
| 000009c0:·6e67·7468·202d·2031·5d3b·0a20·2020·2020··ngth·-·1];.····· | |||
| 00000 | 000008c0:·2020·2020·2020·2020·7d0a·2020·2020·2020··········}.······ | ||
| 00000 | 000008d0:·2020·7d0a·2020·2020·2020·2020·666f·7220····}.········for· | ||
| 000008e0:·2863·6f6e·7374·2064·6972·206f·6620·6469··(const·dir·of·di | |||
| 000008f0:·7273·2920·7b0a·2020·2020·2020·2020·2020··rs)·{.·········· | |||
| 00000900:·2020·636f·6e73·7420·7120·3d20·7468·6973····const·q·=·this | |||
| 00000910:·2e23·7175·6575·6573·2e67·6574·2864·6972··.#queues.get(dir | |||
| 000009 | 00000920:·293b·0a20·2020·2020·2020·2020·2020·2069··);.············i | ||
| 00000 | 00000930:·6620·2821·7129·207b·0a20·2020·2020·2020··f·(!q)·{.······· | ||
| 00000940:·2020·2020·2020·2020·2074·6869·732e·2371···········this.#q | |||
| 00000950:·7565·7565·732e·7365·7428·6469·722c·205b··ueues.set(dir,·[ | |||
| 00000960:·6e65·7720·5365·7428·5b66·6e5d·295d·293b··new·Set([fn])]); | |||
| 00000970:·0a20·2020·2020·2020·2020·2020·207d·0a20··.············}.· | |||
| 00000980:·2020·2020·2020·2020·2020·2065·6c73·6520·············else· | |||
| 00000 | 00000990:·7b0a·2020·2020·2020·2020·2020·2020·2020··{.·············· | ||
| 000009a0:·2020·636f·6e73·7420·6c20·3d20·715b·712e····const·l·=·q[q. | |||
| 000009b0:·6c65·6e67·7468·202d·2031·5d3b·0a20·2020··length·-·1];.··· | |||
| 000009c0:·2020·2020·2020·2020·2020·2020·2069·6620···············if· | |||
| 000009d0:·286c·2069·6e73·7461·6e63·656f·6620·5365··(l·instanceof·Se | |||
| 000009e0:·7429·207b·0a20·2020·2020·2020·2020·2020··t)·{.··········· | |||
| 000009f0:·2020·2020·2020·2020·206c·2e61·6464·2866···········l.add(f | |||
| 00000a00:·6e29·3b0a·2020·2020·2020·2020·2020·2020··n);.············ | |||
| 00000a20 | 00000a10:·2020·2020·7d0a·2020·2020·2020·2020·2020······}.·········· | ||
| 00000a | 00000a20:·2020·2020·2020·656c·7365·207b·0a20·2020········else·{.··· | ||
| 00000a | 00000a30:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 00000a | 00000a40:·2071·2e70·7573·6828·6e65·7720·5365·7428···q.push(new·Set( | ||
| 00000a | 00000a50:·5b66·6e5d·2929·3b0a·2020·2020·2020·2020··[fn]));.········ | ||
| 00000a60:·2020·2020·2020·2020·7d0a·2020·2020·2020··········}.······ | |||
| 00000a70:·2020·2020·2020·7d0a·2020·2020·2020·2020········}.········ | 00000a70:·2020·2020·2020·7d0a·2020·2020·2020·2020········}.········ | ||
| 00000a80:·2020·2020·7d0a·2020·2020·2020·2020·7d0a······}.········}. | |||
| 00000a | 00000a80:·7d0a·2020·2020·2020·2020·7265·7475·726e··}.········return | ||
| 00000a | 00000a90:·2074·6869·732e·2372·756e·2866·6e29·3b0a···this.#run(fn);. | ||
| 00000a | 00000aa0:·2020·2020·7d0a·2020·2020·2f2f·2072·6574······}.····//·ret | ||
| 00000a | 00000ab0:·7572·6e20·7468·6520·7175·6575·6573·2066··urn·the·queues·f | ||
| 00000a | 00000ac0:·6f72·2065·6163·6820·7061·7468·2074·6865··or·each·path·the | ||
| 00000a | 00000ad0:·2066·756e·6374·696f·6e20·6361·7265·7320···function·cares· | ||
| 00000a | 00000ae0:·6162·6f75·740a·2020·2020·2f2f·2066·6e20··about.····//·fn· | ||
| 00000 | 00000af0:·3d3e·207b·7061·7468·732c·2064·6972·737d··=>·{paths,·dirs} | ||
| 00000b | 00000b00:·0a20·2020·2023·6765·7451·7565·7565·7328··.····#getQueues( | ||
| 00000b | 00000b10:·666e·2920·7b0a·2020·2020·2020·2020·636f··fn)·{.········co | ||
| 00000b | 00000b20:·6e73·7420·7265·7320·3d20·7468·6973·2e23··nst·res·=·this.# | ||
| 00000b | 00000b30:·7265·7365·7276·6174·696f·6e73·2e67·6574··reservations.get | ||
| 00000b | 00000b40:·2866·6e29·3b0a·2020·2020·2020·2020·2f2a··(fn);.········/* | ||
| 00000b | 00000b50:·2063·3820·6967·6e6f·7265·2073·7461·7274···c8·ignore·start | ||
| Max diff block lines reached; 2387/33806 bytes (7.06%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"path-reservations.js", | 2 | ····"file":·"path-reservations.js", |
| 3 | ····"mappings":·";AAAA,sCAAsC;AACtC,iCAAiC;AACjC,qDAAqD;AACrD,mDAAmD;AACnD,EAAE;AACF,yDAAyD;AACzD,qDAAqD;;;AAErD,yCAAgC;AAChC,iEAAyD;AACzD,2EAAkE;AAElE,MAAM,QAAQ,GACZ,OAAO,CAAC,GAAG,CAAC,yBAAyB,IAAI,OAAO,CAAC,QAAQ,CAAA;AAC3D,MAAM,SAAS,GAAG,QAAQ,KAAK,OAAO,CAAA;AAStC,+CAA+C;AAC/C,0DAA0D;AAC1D,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,EAAE;IAC/B,MAAM,IAAI,GAAG,IAAI;SACd,KAAK,CAAC,GAAG,CAAC;SACV,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACZ,MAAM,CAAC,CAAC,GAAa,EAAE,IAAI,EAAE,EAAE;QAC9B,MAAM,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;QAC7B,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;YACpB,IAAI,GAAG,IAAA,gBAAI,EAAC,CAAC,EAAE,IAAI,CAAC,CAAA;QACtB,CAAC;QACD,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,CAAC,CAAA;QACrB,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAE,CAAC,CAAA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AAC,IAAI,CAAC,IAAI,IAAI,GAAG,CAAC,CAAA;QACrB,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAE,CAAC,CAAA;IACR,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAa,gBAAgB;IAC3B,4BAA4B;IAC5B,6CAA6C;IAC7C,4CAA4C;IAC5C,OAAO,GAAG,IAAI,GAAG,EAAsC,CAAA;IAEvD,6CAA6C;IAC7C,aAAa,GAAG,IAAI,GAAG,EAAwB,CAAA;IAE/C,8BAA8B;IAC9B,QAAQ,GAAG,IAAI,GAAG,EAAW,CAAA;IAE7B,OAAO,CAAC,KAAe,EAAE,EAAW;QAClC,KAAK;YACH,SAAS,CAAC,CAAC;gBACT,CAAC,gCAAgC,CAAC;gBACpC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;oBACZ,iEAAiE;oBACjE,OAAO,IAAA,gDAAoB,EAAC,IAAA,gBAAI,EAAC,IAAA,uCAAgB,EAAC,CAAC,CAAC,CAAC,CAAC,CAAA;gBACxD,CAAC,CAAC,CAAA;QAEN,MAAM,IAAI,GAAG,IAAI,GAAG,CAClB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CA[·...·truncated·by·diffoscope;·len:·4078,·SHA:·30c67d6473c6317b8a1cc4096b6c20e5c97ad6dca50e1a39d28637eacf498045·...·]JC", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/path-reservations.ts" | 7 | ········"../../src/path-reservations.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·A·path·exclusive·reservation·system\n//·reserve([list,·of,·paths],·fn)\n//·When·the·fn·is·first·in·line·for·all·its·paths,·it\n//·is·called·with·a·cb·that·clears·the·reservation.\n//\n//·Used·by·async·unpack·to·avoid·clobbering·paths·in·use,\n//·while·still·allowing·maximal·safe·parallelization.\n\nimport·{·join·}·from·'node:path'\nimport·{·normalizeUnicode·}·from·'./normalize-unicode.js'\nimport·{·stripTrailingSlashes·}·from·'./strip-trailing-slashes.js'\n\nconst·platform·=\n··process.env.TESTING_TAR_FAKE_PLATFORM·||·process.platform\nconst·isWindows·=·platform·===·'win32'\n\nexport·type·Reservation·=·{\n··paths:·string[]\n··dirs:·Set<string>\n}\n\nexport·type·Handler·=·(clear:·()·=>·void)·=>·void\n\n//·return·a·set·of·parent·dirs·for·a·given·path\n//·'/a/b/c/d'·->·['/',·'/a',·'/a/b',·'/a/b/c',·'/a/b/c/d']\nconst·getDirs·=·(path:·string)·=>·{\n··const·dirs·=·path\n····.split('/')\n····.slice(0,·-1)\n····.reduce((set:·string[],·path)·=>·{\n······const·s·=·set[set.length·-·1]\n······if·(s·!==·undefined)·{\n········path·=·join(s,·path)\n······}\n······set.push(path·||·'/')\n······return·set\n····},·[])\n··return·dirs\n}\n\nexport·class·PathReservations·{\n··//·path·=>·[function·or·Set]\n··//·A·Set·object·means·a·directory·reservation\n··//·A·fn·is·a·direct·reservation·on·that·path\n··#queues·=·new·Map<string,·(Handler·|·Set<Handler>)[]>()\n\n··//·fn·=>·{paths:[path,...],·dirs:[path,·...]}\n··#reservations·=·new·Map<Handler,·Reservation>()\n\n··//·functions·currently·running\n··#running·=·new·Set<Handler>()\n\n··reserve(paths:·string[],·fn:·Handler)·{\n····paths·=\n······isWindows·?\n········['win32·parallelization·disabled']\n······:·paths.map(p·=>·{\n··········//·don't·need·normPath,·because·we·skip·this·entirely·for·windows\n··········return·stripTrailingSlashes( | 10 | ········"//·A·path·exclusive·reservation·system\n//·reserve([list,·of,·paths],·fn)\n//·When·the·fn·is·first·in·line·for·all·its·paths,·it\n//·is·called·with·a·cb·that·clears·the·reservation.\n//\n//·Used·by·async·unpack·to·avoid·clobbering·paths·in·use,\n//·while·still·allowing·maximal·safe·parallelization.\n\nimport·{·join·}·from·'node:path'\nimport·{·normalizeUnicode·}·from·'./normalize-unicode.js'\nimport·{·stripTrailingSlashes·}·from·'./strip-trailing-slashes.js'\n\nconst·platform·=\n··process.env.TESTING_TAR_FAKE_PLATFORM·||·process.platform\nconst·isWindows·=·platform·===·'win32'\n\nexport·type·Reservation·=·{\n··paths:·string[]\n··dirs:·Set<string>\n}\n\nexport·type·Handler·=·(clear:·()·=>·void)·=>·void\n\n//·return·a·set·of·parent·dirs·for·a·given·path\n//·'/a/b/c/d'·->·['/',·'/a',·'/a/b',·'/a/b/c',·'/a/b/c/d']\nconst·getDirs·=·(path:·string)·=>·{\n··const·dirs·=·path\n····.split('/')\n····.slice(0,·-1)\n····.reduce((set:·string[],·path)·=>·{\n······const·s·=·set[set.length·-·1]\n······if·(s·!==·undefined)·{\n········path·=·join(s,·path)\n······}\n······set.push(path·||·'/')\n······return·set\n····},·[])\n··return·dirs\n}\n\nexport·class·PathReservations·{\n··//·path·=>·[function·or·Set]\n··//·A·Set·object·means·a·directory·reservation\n··//·A·fn·is·a·direct·reservation·on·that·path\n··#queues·=·new·Map<string,·(Handler·|·Set<Handler>)[]>()\n\n··//·fn·=>·{paths:[path,...],·dirs:[path,·...]}\n··#reservations·=·new·Map<Handler,·Reservation>()\n\n··//·functions·currently·running\n··#running·=·new·Set<Handler>()\n\n··reserve(paths:·string[],·fn:·Handler)·{\n····paths·=\n······isWindows·?\n········['win32·parallelization·disabled']\n······:·paths.map(p·=>·{\n··········//·don't·need·normPath,·because·we·skip·this·entirely·for·windows\n··········return·stripTrailingSlashes(join(normalizeUnicode(p)))\n········})\n\n····const·dirs·=·new·Set<string>(\n······paths.map(path·=>·getDirs(path)).reduce((a,·b)·=>·a.concat(b)),\n····)\n····this.#reservations.set(fn,·{·dirs,·paths·})\n····for·(const·p·of·paths)·{\n······const·q·=·this.#queues.get(p)\n······if·(!q)·{\n········this.#queues.set(p,·[fn])\n······}·else·{\n········q.push(fn)\n······}\n····}\n····for·(const·dir·of·dirs)·{\n······const·q·=·this.#queues.get(dir)\n······if·(!q)·{\n········this.#queues.set(dir,·[new·Set([fn])])\n······}·else·{\n········const·l·=·q[q.length·-·1]\n········if·(l·instanceof·Set)·{\n··········l.add(fn)\n········}·else·{\n··········q.push(new·Set([fn]))\n········}\n······}\n····}\n····return·this.#run(fn)\n··}\n\n··//·return·the·queues·for·each·path·the·function·cares·about\n··//·fn·=>·{paths,·dirs}\n··#getQueues(fn:·Handler):·{\n····paths:·Handler[][]\n····dirs:·(Handler·|·Set<Handler>)[][]\n··}·{\n····const·res·=·this.#reservations.get(fn)\n····/*·c8·ignore·start·*/\n····if·(!res)·{\n······throw·new·Error('function·does·not·have·any·path·reservations')\n····}\n····/*·c8·ignore·stop·*/\n····return·{\n······paths:·res.paths.map((path:·string)·=>\n········this.#queues.get(path),\n······)·as·Handler[][],\n······dirs:·[...res.dirs].map(path·=>·this.#queues.get(path))·as·(\n········|·Handler\n········|·Set<Handler>\n······)[][],\n····}\n··}\n\n··//·check·if·fn·is·first·in·line·for·all·its·paths,·and·is\n··//·included·in·the·first·set·for·all·its·dir·queues\n··check(fn:·Handler)·{\n····const·{·paths,·dirs·}·=·this.#getQueues(fn)\n····return·(\n······paths.every(q·=>·q·&&·q[0]·===·fn)·&&\n······dirs.every(q·=>·q·&&·q[0]·instanceof·Set·&&·q[0].has(fn))\n····)\n··}\n\n··//·run·the·function·if·it's·first·in·line·and·not·already·running\n··#run(fn:·Handler)·{\n····if·(this.#running.has(fn)·||·!this.check(fn))·{\n······return·false\n····}\n····this.#running.add(fn)\n····fn(()·=>·this.#clear(fn))\n····return·true\n··}\n\n··#clear(fn:·Handler)·{\n····if·(!this.#running.has(fn))·{\n······return·false\n····}\n····const·res·=·this.#reservations.get(fn)\n····/*·c8·ignore·start·*/\n····if·(!res)·{\n······throw·new·Error('invalid·reservation')\n····}\n····/*·c8·ignore·stop·*/\n····const·{·paths,·dirs·}·=·res\n\n····const·next·=·new·Set<Handler>()\n····for·(const·path·of·paths)·{\n······const·q·=·this.#queues.get(path)\n······/*·c8·ignore·start·*/\n······if·(!q·||·q?.[0]·!==·fn)·{\n········continue\n······}\n······/*·c8·ignore·stop·*/\n······const·q0·=·q[1]\n······if·(!q0)·{\n········this.#queues.delete(path)\n········continue\n······}\n······q.shift()\n······if·(typeof·q0·===·'function')·{\n········next.add(q0)\n······}·else·{\n········for·(const·f·of·q0)·{\n··········next.add(f)\n········}\n······}\n····}\n\n····for·(const·dir·of·dirs)·{\n······const·q·=·this.#queues.get(dir)\n······const·q0·=·q?.[0]\n······/*·c8·ignore·next·-·type·safety·only·*/\n······if·(!q·||·!(q0·instanceof·Set))·continue\n······if·(q0.size·===·1·&&·q.length·===·1)·{\n········this.#queues.delete(dir)\n········continue\n······}·else·if·(q0.size·===·1)·{\n········q.shift()\n········//·next·one·must·be·a·function,\n········//·or·else·the·Set·would've·been·reused\n········const·n·=·q[0]\n········if·(typeof·n·===·'function')·{\n··········next.add(n)\n········}\n······}·else·{\n········q0.delete(fn)\n······}\n····}\n\n····this.#running.delete(fn)\n····next.forEach(fn·=>·this.#run(fn))\n····return·true\n··}\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 1, 9 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | ///·<reference·types="node"·/> | ||
| 3 | import·{·HeaderData·}·from·'./header.js'; | 1 | import·{·HeaderData·}·from·'./header.js'; |
| 4 | export·declare·class·Pax·implements·HeaderData·{ | 2 | export·declare·class·Pax·implements·HeaderData·{ |
| 5 | ····atime?:·Date; | 3 | ····atime?:·Date; |
| 6 | ····mtime?:·Date; | 4 | ····mtime?:·Date; |
| 7 | ····ctime?:·Date; | 5 | ····ctime?:·Date; |
| 8 | ····charset?:·string; | 6 | ····charset?:·string; |
| 9 | ····comment?:·string; | 7 | ····comment?:·string; |
| Offset 16, 13 lines modified | Offset 14, 13 lines modified | ||
| 16 | ····ino?:·number; | 14 | ····ino?:·number; |
| 17 | ····nlink?:·number; | 15 | ····nlink?:·number; |
| 18 | ····path?:·string; | 16 | ····path?:·string; |
| 19 | ····size?:·number; | 17 | ····size?:·number; |
| 20 | ····mode?:·number; | 18 | ····mode?:·number; |
| 21 | ····global:·boolean; | 19 | ····global:·boolean; |
| 22 | ····constructor(obj:·HeaderData,·global?:·boolean); | 20 | ····constructor(obj:·HeaderData,·global?:·boolean); |
| 23 | ····encode():·Buffer; | 21 | ····encode():·Buffer<ArrayBuffer>; |
| 24 | ····encodeBody():·string; | 22 | ····encodeBody():·string; |
| 25 | ····encodeField(field:·keyof·Pax):·string; | 23 | ····encodeField(field:·keyof·Pax):·string; |
| 26 | ····static·parse(str:·string,·ex?:·HeaderData,·g?:·boolean):·Pax; | 24 | ····static·parse(str:·string,·ex?:·HeaderData,·g?:·boolean):·Pax; |
| 27 | } | 25 | } |
| 28 | //#·sourceMappingURL=pax.d.ts.map | 26 | //#·sourceMappingURL=pax.d.ts.map |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"pax.d.ts", | 2 | ····"file":·"pax.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AACA,OAAO,EAAU,UAAU,EAAE,MAAM,aAAa,CAAA;AAEhD,qBAAa,GAAI,YAAW,UAAU;IACpC,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IAEZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,MAAM,EAAE,OAAO,CAAA;gBAEH,GAAG,EAAE,UAAU,EAAE,MAAM,GAAE,OAAe;IAmBpD,MAAM;IAiDN,UAAU;IAoBV,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,MAAM;IA2BrC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,GAAE,OAAe;CAG9D", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/pax.ts" | 7 | ········"../../src/pax.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 9 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | ///·<reference·types="node"·/> | ||
| 3 | import·{·Minipass·}·from·'minipass'; | 1 | import·{·Minipass·}·from·'minipass'; |
| 4 | import·{·Header·}·from·'./header.js'; | 2 | import·{·Header·}·from·'./header.js'; |
| 5 | import·{·Pax·}·from·'./pax.js'; | 3 | import·{·Pax·}·from·'./pax.js'; |
| 6 | import·{·EntryTypeName·}·from·'./types.js'; | 4 | import·{·EntryTypeName·}·from·'./types.js'; |
| 7 | export·declare·class·ReadEntry·extends·Minipass<Buffer,·Buffer>·{ | 5 | export·declare·class·ReadEntry·extends·Minipass<Buffer,·Buffer>·{ |
| 8 | ····#private; | 6 | ····#private; |
| 9 | ····extended?:·Pax; | 7 | ····extended?:·Pax; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"read-entry.d.ts", | 2 | ····"file":·"read-entry.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1C,qBAAa,SAAU,SAAQ,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;;IACrD,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,cAAc,CAAC,EAAE,GAAG,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,aAAa,CAAA;IACnB,IAAI,EAAE,OAAO,CAAQ;IACrB,MAAM,EAAE,OAAO,CAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAI;IAChB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAQ;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,OAAO,CAAQ;gBAEhB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG;IA+E/C,KAAK,CAAC,IAAI,EAAE,MAAM;CAyCnB", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/read-entry.ts" | 7 | ········"../../src/read-entry.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"strip-absolute-path.d.ts", | 2 | ····"file":·"strip-absolute-path.d.ts", |
| 3 | ····"mappings":·"AAUA,eAAO,MAAM,iBAAiB, | 3 | ····"mappings":·"AAUA,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,aAgB7C,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/strip-absolute-path.ts" | 7 | ········"../../src/strip-absolute-path.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"strip-trailing-slashes.d.ts", | 2 | ····"file":·"strip-trailing-slashes.d.ts", |
| 3 | ····"mappings":·"AAIA,eAAO,MAAM,oBAAoB, | 3 | ····"mappings":·"AAIA,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,WAQ/C,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/strip-trailing-slashes.ts" | 7 | ········"../../src/strip-trailing-slashes.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"types.d.ts", | 2 | ····"file":·"types.d.ts", |
| 3 | ····"mappings":·"AAAA,eAAO,MAAM,MAAM, | 3 | ····"mappings":·"AAAA,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,KAAG,CAAC,IAAI,aACV,CAAA;AAE9B,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,KAAG,CAAC,IAAI,aACV,CAAA;AAE9B,MAAM,MAAM,aAAa,GACrB,GAAG,GACH,EAAE,GACF,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;AAEP,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,SAAS,GACT,MAAM,GACN,cAAc,GACd,iBAAiB,GACjB,aAAa,GACb,WAAW,GACX,MAAM,GACN,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,GAChB,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,yBAAyB,GACzB,qBAAqB,GACrB,kBAAkB,GAClB,gBAAgB,GAChB,YAAY,GACZ,kBAAkB,GAClB,mBAAmB,GACnB,aAAa,CAAA;AAGjB,eAAO,MAAM,IAAI,mCAsCf,CAAA;AAGF,eAAO,MAAM,IAAI,mCAEhB,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/types.ts" | 7 | ········"../../src/types.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 8 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | import·{·type·Stats·}·from·'node:fs'; | 1 | import·{·type·Stats·}·from·'node:fs'; |
| 3 | import·{·MkdirError·}·from·'./mkdir.js'; | 2 | import·{·MkdirError·}·from·'./mkdir.js'; |
| 4 | import·{·Parser·}·from·'./parse.js'; | 3 | import·{·Parser·}·from·'./parse.js'; |
| 5 | import·{·TarOptions·}·from·'./options.js'; | 4 | import·{·TarOptions·}·from·'./options.js'; |
| 6 | import·{·PathReservations·}·from·'./path-reservations.js'; | 5 | import·{·PathReservations·}·from·'./path-reservations.js'; |
| 7 | import·{·ReadEntry·}·from·'./read-entry.js'; | 6 | import·{·ReadEntry·}·from·'./read-entry.js'; |
| 8 | import·{·WarnData·}·from·'./warn-method.js'; | 7 | import·{·WarnData·}·from·'./warn-method.js'; |
| Offset 14, 14 lines modified | Offset 13, 15 lines modified | ||
| 14 | declare·const·FILE:·unique·symbol; | 13 | declare·const·FILE:·unique·symbol; |
| 15 | declare·const·DIRECTORY:·unique·symbol; | 14 | declare·const·DIRECTORY:·unique·symbol; |
| 16 | declare·const·LINK:·unique·symbol; | 15 | declare·const·LINK:·unique·symbol; |
| 17 | declare·const·SYMLINK:·unique·symbol; | 16 | declare·const·SYMLINK:·unique·symbol; |
| 18 | declare·const·HARDLINK:·unique·symbol; | 17 | declare·const·HARDLINK:·unique·symbol; |
| 19 | declare·const·UNSUPPORTED:·unique·symbol; | 18 | declare·const·UNSUPPORTED:·unique·symbol; |
| 20 | declare·const·CHECKPATH:·unique·symbol; | 19 | declare·const·CHECKPATH:·unique·symbol; |
| 20 | declare·const·STRIPABSOLUTEPATH:·unique·symbol; | ||
| 21 | declare·const·MKDIR:·unique·symbol; | 21 | declare·const·MKDIR:·unique·symbol; |
| 22 | declare·const·ONERROR:·unique·symbol; | 22 | declare·const·ONERROR:·unique·symbol; |
| 23 | declare·const·PENDING:·unique·symbol; | 23 | declare·const·PENDING:·unique·symbol; |
| 24 | declare·const·PEND:·unique·symbol; | 24 | declare·const·PEND:·unique·symbol; |
| 25 | declare·const·UNPEND:·unique·symbol; | 25 | declare·const·UNPEND:·unique·symbol; |
| 26 | declare·const·ENDED:·unique·symbol; | 26 | declare·const·ENDED:·unique·symbol; |
| 27 | declare·const·MAYBECLOSE:·unique·symbol; | 27 | declare·const·MAYBECLOSE:·unique·symbol; |
| Offset 58, 14 lines modified | Offset 58, 15 lines modified | ||
| 58 | ····umask:·number; | 58 | ····umask:·number; |
| 59 | ····dmode:·number; | 59 | ····dmode:·number; |
| 60 | ····fmode:·number; | 60 | ····fmode:·number; |
| 61 | ····chmod:·boolean; | 61 | ····chmod:·boolean; |
| 62 | ····constructor(opt?:·TarOptions); | 62 | ····constructor(opt?:·TarOptions); |
| 63 | ····warn(code:·string,·msg:·string·|·Error,·data?:·WarnData):·void; | 63 | ····warn(code:·string,·msg:·string·|·Error,·data?:·WarnData):·void; |
| 64 | ····[MAYBECLOSE]():·void; | 64 | ····[MAYBECLOSE]():·void; |
| 65 | ····[STRIPABSOLUTEPATH](entry:·ReadEntry,·field:·'path'·|·'linkpath'):·boolean; | ||
| 65 | ····[CHECKPATH](entry:·ReadEntry):·boolean; | 66 | ····[CHECKPATH](entry:·ReadEntry):·boolean; |
| 66 | ····[ONENTRY](entry:·ReadEntry):·void; | 67 | ····[ONENTRY](entry:·ReadEntry):·void; |
| 67 | ····[ONERROR](er:·Error,·entry:·ReadEntry):·void; | 68 | ····[ONERROR](er:·Error,·entry:·ReadEntry):·void; |
| 68 | ····[MKDIR](dir:·string,·mode:·number,·cb:·(er?:·null·|·MkdirError,·made?:·string)·=>·void):·void; | 69 | ····[MKDIR](dir:·string,·mode:·number,·cb:·(er?:·null·|·MkdirError,·made?:·string)·=>·void):·void; |
| 69 | ····[DOCHOWN](entry:·ReadEntry):·boolean; | 70 | ····[DOCHOWN](entry:·ReadEntry):·boolean; |
| 70 | ····[UID](entry:·ReadEntry):·number·|·undefined; | 71 | ····[UID](entry:·ReadEntry):·number·|·undefined; |
| 71 | ····[GID](entry:·ReadEntry):·number·|·undefined; | 72 | ····[GID](entry:·ReadEntry):·number·|·undefined; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"unpack.d.ts", | 2 | ····"file":·"unpack.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AASA,OAAW,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,EAAS,UAAU,EAAa,MAAM,YAAY,CAAA;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAInC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;[·...·truncated·by·diffoscope;·len:·1917,·SHA:·6b151b5042afbd630ad2a1ae47b2fd2e7f4e1d2e0ae447fea796f81e9788b282·...·]5B,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,SAAS;IA8B1B,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS;IAarC,CAAC,KAAK,CAAC,CACL,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI;IAmBrD,CAAC,OAAO,CAAC,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AS,EAAE,KAAK,EAAE,SAAS;IAIvD,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,SAAS;IAqE1B,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI;IAyFzC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI;IAkC9C,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAkBjC,CAAC,IAAI,CAAC,CACJ,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,MAAM,IAAI;CAWnB", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/unpack.ts" | 7 | ········"../../src/unpack.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 63, 1993 lines modified | Offset 63, 2121 lines modified | ||
| 000003e0:·6572·6162·6c65·3a20·7472·7565·2c20·7661··erable:·true,·va | 000003e0:·6572·6162·6c65·3a20·7472·7565·2c20·7661··erable:·true,·va | ||
| 000003f0:·6c75·653a·2076·207d·293b·0a7d·2920·3a20··lue:·v·});.})·:· | 000003f0:·6c75·653a·2076·207d·293b·0a7d·2920·3a20··lue:·v·});.})·:· | ||
| 00000400:·6675·6e63·7469·6f6e·286f·2c20·7629·207b··function(o,·v)·{ | 00000400:·6675·6e63·7469·6f6e·286f·2c20·7629·207b··function(o,·v)·{ | ||
| 00000410:·0a20·2020·206f·5b22·6465·6661·756c·7422··.····o["default" | 00000410:·0a20·2020·206f·5b22·6465·6661·756c·7422··.····o["default" | ||
| 00000420:·5d20·3d20·763b·0a7d·293b·0a76·6172·205f··]·=·v;.});.var·_ | 00000420:·5d20·3d20·763b·0a7d·293b·0a76·6172·205f··]·=·v;.});.var·_ | ||
| 00000430:·5f69·6d70·6f72·7453·7461·7220·3d20·2874··_importStar·=·(t | 00000430:·5f69·6d70·6f72·7453·7461·7220·3d20·2874··_importStar·=·(t | Diff chunk too large, falling back to line-by-line diff (2114 lines added, 1986 lines removed) | |
| 00000440:·6869·7320·2626·2074·6869·732e·5f5f·696d··his·&&·this.__im | 00000440:·6869·7320·2626·2074·6869·732e·5f5f·696d··his·&&·this.__im | ||
| 00000450:·706f·7274·5374·6172·2920·7c7c·20 | 00000450:·706f·7274·5374·6172·2920·7c7c·2028·6675··portStar)·||·(fu | ||
| 00000460:·6374 | 00000460:·6e63·7469·6f6e·2028·2920·7b0a·2020·2020··nction·()·{.···· | ||
| 00000470:· | 00000470:·7661·7220·6f77·6e4b·6579·7320·3d20·6675··var·ownKeys·=·fu | ||
| 00000480:· | 00000480:·6e63·7469·6f6e·286f·2920·7b0a·2020·2020··nction(o)·{.···· | ||
| 00000490:· | 00000490:·2020·2020·6f77·6e4b·6579·7320·3d20·4f62······ownKeys·=·Ob | ||
| 000004a0:· | 000004a0:·6a65·6374·2e67·6574·4f77·6e50·726f·7065··ject.getOwnPrope | ||
| 000004b0:· | 000004b0:·7274·794e·616d·6573·207c·7c20·6675·6e63··rtyNames·||·func | ||
| 000004c0:· | 000004c0:·7469·6f6e·2028·6f29·207b·0a20·2020·2020··tion·(o)·{.····· | ||
| 000004d0:·20 | 000004d0:·2020·2020·2020·2076·6172·2061·7220·3d20·········var·ar·=· | ||
| 000004e0:· | 000004e0:·5b5d·3b0a·2020·2020·2020·2020·2020·2020··[];.············ | ||
| 000004f0:·6 | 000004f0:·666f·7220·2876·6172·206b·2069·6e20·6f29··for·(var·k·in·o) | ||
| 00000500:· | 00000500:·2069·6620·284f·626a·6563·742e·7072·6f74···if·(Object.prot | ||
| 00000510:·6 | 00000510:·6f74·7970·652e·6861·734f·776e·5072·6f70··otype.hasOwnProp | ||
| 00000520:·6 | 00000520:·6572·7479·2e63·616c·6c28·6f2c·206b·2929··erty.call(o,·k)) | ||
| 00000530:· | 00000530:·2061·725b·6172·2e6c·656e·6774·685d·203d···ar[ar.length]·= | ||
| 00000540:· | 00000540:·206b·3b0a·2020·2020·2020·2020·2020·2020···k;.············ | ||
| 00000550:· | 00000550:·7265·7475·726e·2061·723b·0a20·2020·2020··return·ar;.····· | ||
| 00000560:· | 00000560:·2020·207d·3b0a·2020·2020·2020·2020·7265·····};.········re | ||
| 00000570:· | 00000570:·7475·726e·206f·776e·4b65·7973·286f·293b··turn·ownKeys(o); | ||
| 00000580:· | 00000580:·0a20·2020·207d·3b0a·2020·2020·7265·7475··.····};.····retu | ||
| 00000590:· | 00000590:·726e·2066·756e·6374·696f·6e20·286d·6f64··rn·function·(mod | ||
| 000005a0:· | 000005a0:·2920·7b0a·2020·2020·2020·2020·6966·2028··)·{.········if·( | ||
| 000005b0:· | 000005b0:·6d6f·6420·2626·206d·6f64·2e5f·5f65·734d··mod·&&·mod.__esM | ||
| 000005c0:· | 000005c0:·6f64·756c·6529·2072·6574·7572·6e20·6d6f··odule)·return·mo | ||
| 000005d0:· | 000005d0:·643b·0a20·2020·2020·2020·2076·6172·2072··d;.········var·r | ||
| 000005e0:·65 | 000005e0:·6573·756c·7420·3d20·7b7d·3b0a·2020·2020··esult·=·{};.···· | ||
| 000005f0:· | 000005f0:·2020·2020·6966·2028·6d6f·6420·213d·206e······if·(mod·!=·n | ||
| 00000600:· | 00000600:·756c·6c29·2066·6f72·2028·7661·7220·6b20··ull)·for·(var·k· | ||
| 00000610:· | 00000610:·3d20·6f77·6e4b·6579·7328·6d6f·6429·2c20··=·ownKeys(mod),· | ||
| 00000620:· | 00000620:·6920·3d20·303b·2069·203c·206b·2e6c·656e··i·=·0;·i·<·k.len | ||
| 00000630:· | 00000630:·6774·683b·2069·2b2b·2920·6966·2028·6b5b··gth;·i++)·if·(k[ | ||
| 00000640:· | 00000640:·695d·2021·3d3d·2022·6465·6661·756c·7422··i]·!==·"default" | ||
| 00000650:· | 00000650:·2920·5f5f·6372·6561·7465·4269·6e64·696e··)·__createBindin | ||
| 00000660:·7 | 00000660:·6728·7265·7375·6c74·2c20·6d6f·642c·206b··g(result,·mod,·k | ||
| 00000670:· | 00000670:·5b69·5d29·3b0a·2020·2020·2020·2020·5f5f··[i]);.········__ | ||
| 00000680:· | 00000680:·7365·744d·6f64·756c·6544·6566·6175·6c74··setModuleDefault | ||
| 00000690:·2 | 00000690:·2872·6573·756c·742c·206d·6f64·293b·0a20··(result,·mod);.· | ||
| 000006a0:· | 000006a0:·2020·2020·2020·2072·6574·7572·6e20·7265·········return·re | ||
| 000006b0:· | 000006b0:·7375·6c74·3b0a·2020·2020·7d3b·0a7d·2928··sult;.····};.})( | ||
| 000006c0:· | 000006c0:·293b·0a76·6172·205f·5f69·6d70·6f72·7444··);.var·__importD | ||
| 000006d0:·65 | 000006d0:·6566·6175·6c74·203d·2028·7468·6973·2026··efault·=·(this·& | ||
| 000006e0:· | 000006e0:·2620·7468·6973·2e5f·5f69·6d70·6f72·7444··&·this.__importD | ||
| 000006f0:·6 | 000006f0:·6566·6175·6c74·2920·7c7c·2066·756e·6374··efault)·||·funct | ||
| 00000700:· | 00000700:·696f·6e20·286d·6f64·2920·7b0a·2020·2020··ion·(mod)·{.···· | ||
| 00000710:·7 | 00000710:·7265·7475·726e·2028·6d6f·6420·2626·206d··return·(mod·&&·m | ||
| 00000720:· | 00000720:·6f64·2e5f·5f65·734d·6f64·756c·6529·203f··od.__esModule)·? | ||
| 00000730:· | 00000730:·206d·6f64·203a·207b·2022·6465·6661·756c···mod·:·{·"defaul | ||
| 00000740:·22 | 00000740:·7422·3a20·6d6f·6420·7d3b·0a7d·3b0a·4f62··t":·mod·};.};.Ob | ||
| 00000750:· | 00000750:·6a65·6374·2e64·6566·696e·6550·726f·7065··ject.definePrope | ||
| 00000760:· | 00000760:·7274·7928·6578·706f·7274·732c·2022·5f5f··rty(exports,·"__ | ||
| 00000770:· | 00000770:·6573·4d6f·6475·6c65·222c·207b·2076·616c··esModule",·{·val | ||
| 00000780:· | 00000780:·7565·3a20·7472·7565·207d·293b·0a65·7870··ue:·true·});.exp | ||
| 00000790:· | 00000790:·6f72·7473·2e55·6e70·6163·6b53·796e·6320··orts.UnpackSync· | ||
| 000007a0:·3 | 000007a0:·3d20·6578·706f·7274·732e·556e·7061·636b··=·exports.Unpack | ||
| 000007b0:· | 000007b0:·203d·2076·6f69·6420·303b·0a63·6f6e·7374···=·void·0;.const | ||
| 000007c0:·2 | 000007c0:·2066·736d·203d·205f·5f69·6d70·6f72·7453···fsm·=·__importS | ||
| 000007d0:· | 000007d0:·7461·7228·7265·7175·6972·6528·2240·6973··tar(require("@is | ||
| 000007e0:· | 000007e0:·6161·6373·2f66·732d·6d69·6e69·7061·7373··aacs/fs-minipass | ||
| 000007f0:· | 000007f0:·2229·293b·0a63·6f6e·7374·206e·6f64·655f··"));.const·node_ | ||
| 00000800:·6 | 00000800:·6173·7365·7274·5f31·203d·205f·5f69·6d70··assert_1·=·__imp | ||
| 00000810:· | 00000810:·6f72·7444·6566·6175·6c74·2872·6571·7569··ortDefault(requi | ||
| 00000820:· | 00000820:·7265·2822·6e6f·6465·3a61·7373·6572·7422··re("node:assert" | ||
| 00000830:· | 00000830:·2929·3b0a·636f·6e73·7420·6e6f·6465·5f63··));.const·node_c | ||
| 00000840:·7 | 00000840:·7279·7074·6f5f·3120·3d20·7265·7175·6972··rypto_1·=·requir | ||
| 00000850:· | 00000850:·6528·226e·6f64·653a·6372·7970·746f·2229··e("node:crypto") | ||
| 00000860:· | 00000860:·3b0a·636f·6e73·7420·6e6f·6465·5f66·735f··;.const·node_fs_ | ||
| 00000870:· | 00000870:·3120·3d20·5f5f·696d·706f·7274·4465·6661··1·=·__importDefa | ||
| 00000880:· | 00000880:·756c·7428·7265·7175·6972·6528·226e·6f64··ult(require("nod | ||
| 00000890:· | 00000890:·653a·6673·2229·293b·0a63·6f6e·7374·206e··e:fs"));.const·n | ||
| 000008a0:·6 | 000008a0:·6f64·655f·7061·7468·5f31·203d·205f·5f69··ode_path_1·=·__i | ||
| 000008b0:· | 000008b0:·6d70·6f72·7444·6566·6175·6c74·2872·6571··mportDefault(req | ||
| 000008c0:·7 | 000008c0:·7569·7265·2822·6e6f·6465·3a70·6174·6822··uire("node:path" | ||
| 000008d0:· | 000008d0:·2929·3b0a·636f·6e73·7420·6765·745f·7772··));.const·get_wr | ||
| 000008e0:· | 000008e0:·6974·655f·666c·6167·5f6a·735f·3120·3d20··ite_flag_js_1·=· | ||
| 000008f0:· | 000008f0:·7265·7175·6972·6528·222e·2f67·6574·2d77··require("./get-w | ||
| 00000900:·69 | 00000900:·7269·7465·2d66·6c61·672e·6a73·2229·3b0a··rite-flag.js");. | ||
| 00000910:· | 00000910:·636f·6e73·7420·6d6b·6469·725f·6a73·5f31··const·mkdir_js_1 | ||
| 00000920:· | 00000920:·203d·2072·6571·7569·7265·2822·2e2f·6d6b···=·require("./mk | ||
| 00000930:· | 00000930:·6469·722e·6a73·2229·3b0a·636f·6e73·7420··dir.js");.const· | ||
| 00000940:· | 00000940:·6e6f·726d·616c·697a·655f·7769·6e64·6f77··normalize_window | ||
| 00000950:· | 00000950:·735f·7061·7468·5f6a·735f·3120·3d20·7265··s_path_js_1·=·re | ||
| 00000960:·7 | 00000960:·7175·6972·6528·222e·2f6e·6f72·6d61·6c69··quire("./normali | ||
| 00000970:· | 00000970:·7a65·2d77·696e·646f·7773·2d70·6174·682e··ze-windows-path. | ||
| 00000980:·6 | 00000980:·6a73·2229·3b0a·636f·6e73·7420·7061·7273··js");.const·pars | ||
| 00000990:· | 00000990:·655f·6a73·5f31·203d·2072·6571·7569·7265··e_js_1·=·require | ||
| 000009a0:· | 000009a0:·2822·2e2f·7061·7273·652e·6a73·2229·3b0a··("./parse.js");. | ||
| 000009b0:· | 000009b0:·636f·6e73·7420·7374·7269·705f·6162·736f··const·strip_abso | ||
| 000009c0:· | 000009c0:·6c75·7465·5f70·6174·685f·6a73·5f31·203d··lute_path_js_1·= | ||
| 000009d0:·272 | 000009d0:·2072·6571·7569·7265·2822·2e2f·7374·7269···require("./stri | ||
| 000009e0:· | 000009e0:·702d·6162·736f·6c75·7465·2d70·6174·682e··p-absolute-path. | ||
| 000009f0:· | 000009f0:·6a73·2229·3b0a·636f·6e73·7420·7763·203d··js");.const·wc·= | ||
| Max diff block lines reached; -1/283391 bytes (-0.00%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"unpack.js", | 2 | ····"file":·"unpack.js", |
| 3 | ····"mappings":·";AAAA,0EAA0E;AAC1E,wEAAwE;AACxE,yEAAyE;AACzE,wEAAwE;AACxE,8DAA8D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D,yDAA0C;AAC1C,8DAAgC;AAChC,6CAAyC;AACzC,sDAAwC;AACxC,0DAA4B;AAC5B,2DAAkD;AAClD,yCAAyD;AACzD,2EAAkE;AAClE,yCAAmC;AACnC,qEAA4D;AAC5D,kDAAmC;AAGnC,iEAAyD;AAIzD,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;AACjC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,C | 3 | ····"mappings":·";AAAA,0EAA0E;AAC1E,wEAAwE;AACxE,yEAAyE;AACzE,wEAAwE;AACxE,8DAA8D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D,yDAA0C;AAC1C,8DAAgC;AAChC,6CAAyC;AACzC,sDAAwC;AACxC,0DAA4B;AAC5B,2DAAkD;AAClD,yCAAyD;AACzD,2EAAkE;AAClE,yCAAmC;AACnC,qEAA4D;AAC5D,kDAAmC;AAGnC,iEAAyD;AAIzD,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;AACjC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,CA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AA;QACN,KAAK,CAAC,MAAM,EAAE,CAAA;IAChB,CAAC;IAED,CAAC,KAAK,CAAC,CAAC,GAAW,EAAE,IAAY;QAC/B,IAAI,CAAC;YACH,OAAO,IAAA,oBAAS,EAAC,IAAA,gDAAoB,EAAC,GAAG,CAAC,EAAE;gBAC1C,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,KAAK,EAAE,IAAI,CAAC,YAAY;gBACxB,QAAQ,EAAE,IAAI,CAAC,aAAa;gBAC5B,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,IAAI,EAAE,IAAI;aACX,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,EAAE,EAAE,CAAC;YACZ,OAAO,EAAE,CAAA;QACX,CAAC;IACH,CAAC;IAED,CAAC,IAAI,CAAC,CACJ,KAAgB,EAChB,QAAgB,EAChB,IAAwB,EACxB,IAAgB;QAEhB,MAAM,EAAE,GAAyB,GAAG,IAAI,MAAM,CAAA;QAC9C,IAAI,CAAC;YACH,iBAAE,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;YACxC,IAAI,EAAE,CAAA;YACN,KAAK,CAAC,MAAM,EAAE,CAAA;QAChB,CAAC;QAAC,OAAO,EAAE,EAAE,CAAC;YACZ,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,EAAW,EAAE,KAAK,CAAC,CAAA;QAC1C,CAAC;IACH,CAAC;CACF;AAxOD,gCAwOC", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/unpack.ts" | 7 | ········"../../src/unpack.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·the·PEND/UNPEND·stuff·tracks·whether·we're·ready·to·emit·end/close·yet.\n//·but·the·path·reservations·are·required·to·avoid·race·conditions·where\n//·parallelized·unpack·ops·may·mess·with·one·another,·due·to·dependencies\n//·(like·a·Link·depending·on·its·target)·or·destructive·operations·(like\n//·clobbering·an·fs·object·to·create·one·of·a·different·type.)\n\nimport·*·as·fsm·from·'@isaacs/fs-minipass'\nimport·assert·from·'node:assert'\nimport·{·randomBytes·}·from·'node:crypto'\nimport·fs,·{·type·Stats·}·from·'node:fs'\nimport·path·from·'node:path'\nimport·{·getWriteFlag·}·from·'./get-write-flag.js'\nimport·{·mkdir,·MkdirError,·mkdirSync·}·from·'./mkdir.js'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{·Parser·}·from·'./parse.js'\nimport·{·stripAbsolutePath·}·from·'./strip-absolute-path.js'\nimport·*·as·wc·from·'./winchars.js'\n\nimport·{·TarOptions·}·from·'./options.js'\nimport·{·PathReservations·}·from·'./path-reservations.js'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{·WarnData·}·from·'./warn-method.js'\n\nconst·ONENTRY·=·Symbol('onEntry')\nconst·CHECKFS·=·Symbol('checkFs')\nconst·CHECKFS2·=·Symbol('checkFs2')\nconst·ISREUSABLE·=·Symbol('isReusable')\nconst·MAKEFS·=·Symbol('makeFs')\nconst·FILE·=·Symbol('file')\nconst·DIRECTORY·=·Symbol('directory')\nconst·LINK·=·Symbol('link')\nconst·SYMLINK·=·Symbol('symlink')\nconst·HARDLINK·=·Symbol('hardlink')\nconst·UNSUPPORTED·=·Symbol('unsupported')\nconst·CHECKPATH·=·Symbol('checkPath')\nconst·MKDIR·=·Symbol('mkdir')\nconst·ONERROR·=·Symbol('onError')\nconst·PENDING·=·Symbol('pending')\nconst·PEND·=·Symbol('pend')\nconst·UNPEND·=·Symbol('unpend')\nconst·ENDED·=·Symbol('ended')\nconst·MAYBECL | 10 | ········"//·the·PEND/UNPEND·stuff·tracks·whether·we're·ready·to·emit·end/close·yet.\n//·but·the·path·reservations·are·required·to·avoid·race·conditions·where\n//·parallelized·unpack·ops·may·mess·with·one·another,·due·to·dependencies\n//·(like·a·Link·depending·on·its·target)·or·destructive·operations·(like\n//·clobbering·an·fs·object·to·create·one·of·a·different·type.)\n\nimport·*·as·fsm·from·'@isaacs/fs-minipass'\nimport·assert·from·'node:assert'\nimport·{·randomBytes·}·from·'node:crypto'\nimport·fs,·{·type·Stats·}·from·'node:fs'\nimport·path·from·'node:path'\nimport·{·getWriteFlag·}·from·'./get-write-flag.js'\nimport·{·mkdir,·MkdirError,·mkdirSync·}·from·'./mkdir.js'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{·Parser·}·from·'./parse.js'\nimport·{·stripAbsolutePath·}·from·'./strip-absolute-path.js'\nimport·*·as·wc·from·'./winchars.js'\n\nimport·{·TarOptions·}·from·'./options.js'\nimport·{·PathReservations·}·from·'./path-reservations.js'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{·WarnData·}·from·'./warn-method.js'\n\nconst·ONENTRY·=·Symbol('onEntry')\nconst·CHECKFS·=·Symbol('checkFs')\nconst·CHECKFS2·=·Symbol('checkFs2')\nconst·ISREUSABLE·=·Symbol('isReusable')\nconst·MAKEFS·=·Symbol('makeFs')\nconst·FILE·=·Symbol('file')\nconst·DIRECTORY·=·Symbol('directory')\nconst·LINK·=·Symbol('link')\nconst·SYMLINK·=·Symbol('symlink')\nconst·HARDLINK·=·Symbol('hardlink')\nconst·UNSUPPORTED·=·Symbol('unsupported')\nconst·CHECKPATH·=·Symbol('checkPath')\nconst·STRIPABSOLUTEPATH·=·Symbol('stripAbsolutePath')\nconst·MKDIR·=·Symbol('mkdir')\nconst·ONERROR·=·Symbol('onError')\nconst·PENDING·=·Symbol('pending')\nconst·PEND·=·Symbol('pend')\nconst·UNPEND·=·Symbol('unpend')\nconst·ENDED·=·Symbol('ended')\nconst·MAYBECL[·...·truncated·by·diffoscope;·len:·9541,·SHA:·05ec957389f7d9e64f880e376d7d3e71ca2cb72840cc3bdd1150229175b18492·...·]\n····}\n\n····if·(path.isAbsolute(entry.path))·{\n······entry.absolute·=·normalizeWindowsPath(path.resolve(entry.path))\n····}·else·{\n······entry.absolute·=·normalizeWindowsPath(\n········path.resolve(this.cwd,·entry.path),\n······)\n····}\n\n····//·if·we·somehow·ended·up·with·a·path·that·escapes·the·cwd,·and·we·are\n····//·not·in·preservePaths·mode,·then·something·is·fishy!··This·should·have\n····//·been·prevented·above,·so·ignore·this·for·coverage.\n····/*·c8·ignore·start·-·defense·in·depth·*/\n····if·(\n······!this.preservePaths·&&\n······typeof·entry.absolute·===·'string'·&&\n······entry.absolute.indexOf(this.cwd·+·'/')·!==·0·&&\n······entry.absolute·!==·this.cwd\n····)·{\n······this.warn('TAR_ENTRY_ERROR',·'path·escaped·extraction·target',·{\n········entry,\n········path:·normalizeWindowsPath(entry.path),\n········resolvedPath:·entry.absolute,\n········cwd:·this.cwd,\n······})\n······return·false\n····}\n····/*·c8·ignore·stop·*/\n\n····//·an·archive·can·set·properties·on·the·extraction·directory,·but·it\n····//·may·not·replace·the·cwd·with·a·different·kind·of·thing·entirely.\n····if·(\n······entry.absolute·===·this.cwd·&&\n······entry.type·!==·'Directory'·&&\n······entry.type·!==·'GNUDumpDir'\n····)·{\n······return·false\n····}\n\n····//·only·encode·:·chars·that·aren't·drive·letter·indicators\n····if·(this.win32)·{\n······const·{·root:·aRoot·}·=·path.win32.parse(String(entry.absolute))\n······entry.absolute·=\n········aRoot·+·wc.encode(String(entry.absolute).slice(aRoot.length))\n······const·{·root:·pRoot·}·=·path.win32.parse(entry.path)\n······entry.path·=·pRoot·+·wc.encode(entry.path.slice(pRoot.length))\n····}\n\n····return·true\n··}\n\n··[ONENTRY](entry:·ReadEntry)·{\n····if·(!this[CHECKPATH](entry))·{\n······return·entry.resume()\n····}\n\n····assert.equal(typeof·entry.absolute,·'string')\n\n····switch·(entry.type)·{\n······case·'Directory':\n······case·'GNUDumpDir':\n········if·(entry.mode)·{\n··········entry.mode·=·entry.mode·|·0o700\n········}\n\n······//·eslint-disable-next-line·no-fallthrough\n······case·'File':\n······case·'OldFile':\n······case·'ContiguousFile':\n······case·'Link':\n······case·'SymbolicLink':\n········return·this[CHECKFS](entry)\n\n······case·'CharacterDevice':\n······case·'BlockDevice':\n······case·'FIFO':\n······default:\n········return·this[UNSUPPORTED](entry)\n····}\n··}\n\n··[ONERROR](er:·Error,·entry:·ReadEntry)·{\n····//·Cwd·has·to·exist,·or·else·nothing·works.·That's·serious.\n····//·Other·errors·are·warnings,·which·raise·the·error·in·strict\n····//·mode,·but·otherwise·continue·on.\n····if·(er.name·===·'CwdError')·{\n······this.emit('error',·er)\n····}·else·{\n······this.warn('TAR_ENTRY_ERROR',·er,·{·entry·})\n······this[UNPEND]()\n······entry.resume()\n····}\n··}\n\n··[MKDIR](\n····dir:·string,\n····mode:·number,\n····cb:·(er?:·null·|·MkdirError,·made?:·string)·=>·void,\n··)·{\n····mkdir(\n······normalizeWindowsPath(dir),\n······{\n········uid:·this.uid,\n········gid:·this.gid,\n········processUid:·this.processUid,\n········processGid:·this.processGid,\n········umask:·this.processUmask,\n········preserve:·this.preservePaths,\n········unlink:·this.unlink,\n········cwd:·this.cwd,\n········mode:·mode,\n······},\n······cb,\n····)\n··}\n\n··[DOCHOWN](entry:·ReadEntry)·{\n····//·in·preserve·owner·mode,·chown·if·the·entry·doesn't·match·process\n····//·in·set·owner·mode,·chown·if·setting·doesn't·match·process\n····return·(\n······this.forceChown·||\n······(this.preserveOwner·&&\n········((typeof·entry.uid·===·'number'·&&\n··········entry.uid·!==·this.processUid)·||\n··········(typeof·entry.gid·===·'number'·&&\n············entry.gid·!==·this.processGid)))·||\n······(typeof·this.uid·===·'number'·&&\n········this.uid·!==·this.processUid)·||\n······(typeof·this.gid·===·'number'·&&·this.gid·!==·this.processGid)\n····)\n··}\n\n··[UID](entry:·ReadEntry)·{\n····return·uint32(this.uid,·entry.uid,·this.processUid)\n··}\n\n··[GID](entry:·ReadEntry)·{\n····return·uint32(this.gid,·entry.gid,·this.processGid)\n··}\n\n··[FILE](entry:·ReadEntry,·fullyDone:·()·=>·void)·{\n····const·mode·=\n······typeof·entry.mode·===·'number'·?\n········entry.mode·&·0o7777\n······:·this.fmode\n····const·stream·=·new·fsm.WriteStream(String(entry.absolute),·{\n······//·slight·lie,·but·it·can·be·numeric·flags\n······flags:·getWriteFlag(entry.size)·as·string,\n······mode:·mode,\n······autoClose:·false,\n····})\n····stream.on('error',·(er:·Error)·=>·{\n······if·(stream.fd)·{\n········fs.close(stream.fd,·()·=>·{})\n······}\n\n······//·flush·all·the·data·out·so·that·we·aren't·left·hanging\n······//·if·the·error·wasn't·actually·fatal.··otherwise·the·parse\n······//·is·blocked,·and·we·never·proceed.\n······stream.write·=·()·=>·true\n······this[ONERROR](er,·entry)\n······fullyDone()\n····})\n\n····let·actions·=·1\n····const·done·=·(er?:·null·|·Error)·=>·{\n······if·(er)·{\n········/*·c8·ignore·start·-·we·should·always·have·a·fd·by·now·*/\n········if·(stream.fd)·{\n··········fs.close(stream.fd,·()·=>·{})\n········}\n········/*·c8·ignore·stop·*/\n\n········this[ONERROR](er,·entry)\n········fullyDone()\n········return\n······}\n\n······if·(--actions·===·0)·{\n········if·(stream.fd·!==·undefined)·{\n··········fs.close(stream.fd,·er·=>·{\n············if·(er)·{\n··············this[ONERROR](er,·entry)\n············}·else·{\n··············this[UNPEND]()\n············}\n············fullyDone()\n··········})\n········}\n······}\n····}\n\n····stream.on('finish',·()·=>·{\n······//·if·futimes·fails,·try·utimes\n······//·if·utimes·fails,·fail·with·the·original·error\n······//·same·for·fchown/chown\n······const·abs·=·String(entry.absolute)\n······const·fd·=·stream.fd\n\n······if·(typeof·fd·===·'number'·&&·entry.mtime·&&·!this.noMtime)·{\n········actions++\n········const·atime·=·entry.atime·||·new·Date()\n········const·mtime·=·entry.mtime\n········fs.futimes(fd,·atime,·mtime,·er·=>\n··········er·?\n············fs.utimes(abs,·atime,·mtime,·er2·=>·done(er2·&&·er))\n··········:·done(),\n········)\n······}\n\n······if·(typeof·fd·===·'number'·&&·this[DOCHOWN](entry))·{\n········actions++\n········const·uid·=·this[UID](entry)\n········const·gid·=·this[GID](entry)\n········if·(typeof·uid·===·'number'·&&·typeof·gid·===·'number')·{\n··········fs.fchown(fd,·uid,·gid,·er·=>\n············er·?\n··············fs.chown(abs,·uid,·gid,·er2·=>·done(er2·&&·er))\n············:·done(),\n··········)\n········}\n······}\n\n······done()\n····})\n\n····const·tx·=·this.transform·?·this.transform(entry)·||·entry·:·entry\n····if·(tx·!==·entry)·{\n······tx.on('error',·(er:·Error)·=>·{\n········this[ONERROR](er,·entry)\n········fullyDone()\n······})\n······entry.pipe(tx)\n····}\n····tx.pipe(stream)\n··}\n\n··[DIRECTORY](entry:·ReadEntry,·fullyDone:·()·=>·void)·{\n····const·mode·=\n······typeof·entry.mode·===·'number'·?\n········entry.mode·&·0o7777\n······:·this.dmode\n····this[MKDIR](String(entry.absolute),·mode,·er·=>·{\n······if·(er)·{\n········this[ONERROR](er,·entry)\n········fullyDone()\n········return\n······}\n\n······let·actions·=·1\n······const·done·=·()·=>·{\n········if·(--actions·===·0)·{\n··········fullyDone()\n··········this[UNPEND]()\n··········entry.resume()\n········}\n······}\n\n······if·(entry.mtime·&&·!this.noMtime)·{\n········actions++\n········fs.utimes(\n··········String(entry.absolute),\n··········entry.atime·||·new·Date(),\n··········entry.mtime,\n··········done,\n········)\n······}\n\n······if·(this[DOCHOWN](entry))·{\n········actions++\n········fs.chown(\n··········String(entry.absolute),\n··········Number(this[UID](entry)),\n··········Number(this[GID](entry)),\n··········done,\n········)\n······}\n\n······done()\n····})\n··}\n\n··[UNSUPPORTED](entry:·ReadEntry)·{\n····entry.unsupported·=·true\n····this.warn(\n······'TAR_ENTRY_UNSUPPORTED',\n······`unsupported·entry·type:·${entry.type}`,\n······{·entry·},\n····)\n····entry.resume()\n··}\n\n··[SYMLINK](entry:·ReadEntry,·done:·()·=>·void)·{\n····this[LINK](entry,·String(entry.linkpath),·'symlink',·done)\n··}\n\n··[HARDLINK](entry:·ReadEntry,·done:·()·=>·void)·{\n····const·linkpath·=·normalizeWindowsPath(\n······path.resolve(this.cwd,·String(entry.linkpath)),\n····)\n····this[LINK](entry,·linkpath,·'link',·done)\n··}\n\n··[PEND]()·{\n····this[PENDING]++\n··}\n\n··[UNPEND]()·{\n····this[PENDING]--\n····this[MAYBECLOSE]()\n··}\n\n··[SKIP](entry:·ReadEntry)·{\n····this[UNPEND]()\n····entry.resume()\n··}\n\n··//·Check·if·we·can·reuse·an·existing·filesystem·entry·safely·and\n··//·overwrite·it,·rather·than·unlinking·and·recreating\n··//·Windows·doesn't·report·a·useful·nlink,·so·we·just·never·reuse·entries\n··[ISREUSABLE](entry:·ReadEntry,·st:·Stats)·{\n····return·(\n······entry.type·===·'File'·&&\n······!this.unlink·&&\n······st.isFile()·&&\n······st.nlink·<=·1·&&\n······!isWindows\n····)\n··}\n\n··//·check·if·a·thing·is·there,·and·if·so,·try·to·clobber·it\n··[CHECKFS](entry:·ReadEntry)·{\n····this[PEND]()\n····const·paths·=·[entry.path]\n····if·(entry.linkpath)·{\n······paths.push(entry.linkpath)\n····}\n····this.reservations.reserve(paths,·done·=>\n······this[CHECKFS2](entry,·done),\n····)\n··}\n\n··[CHECKFS2](entry:·ReadEntry,·fullyDone:·(er?:·Error)·=>·void)·{\n····const·done·=·(er?:·Error)·=>·{\n······fullyDone(er)\n····}\n\n····const·checkCwd·=·()·=>·{\n······this[MKDIR](this.cwd,·this.dmode,·er·=>·{\n········if·(er)·{\n··········this[ONERROR](er,·entry)\n··········done()\n··········return\n········}\n········this[CHECKED_CWD]·=·true\n········start()\n······})\n····}\n\n····const·start·=·()·=>·{\n······if·(entry.absolute·!==·this.cwd)·{\n········const·parent·=·normalizeWindowsPath(\n··········path.dirname(String(entry.absolute)),\n········)\n········if·(parent·!==·this.cwd)·{\n··········return·this[MKDIR](parent,·this.dmode,·er·=>·{\n············if·(er)·{\n··············this[ONERROR](er,·entry)\n··············done()\n··············return\n············}\n············afterMakeParent()\n··········})\n········}\n······}\n······afterMakeParent()\n····}\n\n····const·afterMakeParent·=·()·=>·{\n······fs.lstat(String(entry.absolute),·(lstatEr,·st)·=>·{\n········if·(\n··········st·&&\n··········(this.keep·||\n············/*·c8·ignore·next·*/\n············(this.newer·&&·st.mtime·>·(entry.mtime·??·st.mtime)))\n········)·{\n··········this[SKIP](entry)\n··········done()\n··········return\n········}\n········if·(lstatEr·||·this[ISREUSABLE](entry,·st))·{\n··········return·this[MAKEFS](null,·entry,·done)\n········}\n\n········if·(st.isDirectory())·{\n··········if·(entry.type·===·'Directory')·{\n············const·needChmod·=\n··············this.chmod·&&\n··············entry.mode·&&\n··············(st.mode·&·0o7777)·!==·entry.mode\n············const·afterChmod·=·(er?:·Error·|·null·|·undefined)·=>\n··············this[MAKEFS](er·??·null,·entry,·done)\n············if·(!needChmod)·{\n··············return·afterChmod()\n············}\n············return·fs.chmod(\n··············String(entry.absolute),\n··············Number(entry.mode),\n··············afterChmod,\n············)\n··········}\n··········//·Not·a·dir·entry,·have·to·remove·it.\n··········//·NB:·the·only·way·to·end·up·with·an·entry·that·is·the·cwd\n··········//·itself,·in·such·a·way·that·==·does·not·detect,·is·a\n··········//·tricky·windows·absolute·path·with·UNC·or·8.3·parts·(and\n··········//·preservePaths:true,·or·else·it·will·have·been·stripped).\n··········//·In·that·case,·the·user·has·opted·out·of·path·protections\n··········//·explicitly,·so·if·they·blow·away·the·cwd,·c'est·la·vie.\n··········if·(entry.absolute·!==·this.cwd)·{\n············return·fs.rmdir(\n··············String(entry.absolute),\n··············(er?:·null·|·Error)·=>\n················this[MAKEFS](er·??·null,·entry,·done),\n············)\n··········}\n········}\n\n········//·not·a·dir,·and·not·reusable\n········//·don't·remove·if·the·cwd,·we·want·that·error\n········if·(entry.absolute·===·this.cwd)·{\n··········return·this[MAKEFS](null,·entry,·done)\n········}\n\n········unlinkFile(String(entry.absolute),·er·=>\n··········this[MAKEFS](er·??·null,·entry,·done),\n········)\n······})\n····}\n\n····if·(this[CHECKED_CWD])·{\n······start()\n····}·else·{\n······checkCwd()\n····}\n··}\n\n··[MAKEFS](\n····er:·null·|·undefined·|·Error,\n····entry:·ReadEntry,\n····done:·()·=>·void,\n··)·{\n····if·(er)·{\n······this[ONERROR](er,·entry)\n······done()\n······return\n····}\n\n····switch·(entry.type)·{\n······case·'File':\n······case·'OldFile':\n······case·'ContiguousFile':\n········return·this[FILE](entry,·done)\n\n······case·'Link':\n········return·this[HARDLINK](entry,·done)\n\n······case·'SymbolicLink':\n········return·this[SYMLINK](entry,·done)\n\n······case·'Directory':\n······case·'GNUDumpDir':\n········return·this[DIRECTORY](entry,·done)\n····}\n··}\n\n··[LINK](\n····entry:·ReadEntry,\n····linkpath:·string,\n····link:·'link'·|·'symlink',\n····done:·()·=>·void,\n··)·{\n····//·XXX:·get·the·type·('symlink'·or·'junction')·for·windows\n····fs[link](linkpath,·String(entry.absolute),·er·=>·{\n······if·(er)·{\n········this[ONERROR](er,·entry)\n······}·else·{\n········this[UNPEND]()\n········entry.resume()\n······}\n······done()\n····})\n··}\n}\n\nconst·callSync·=·(fn:·()·=>·any)·=>·{\n··try·{\n····return·[null,·fn()]\n··}·catch·(er)·{\n····return·[er,·null]\n··}\n}\n\nexport·class·UnpackSync·extends·Unpack·{\n··sync:·true·=·true;\n\n··[MAKEFS](er:·null·|·Error·|·undefined,·entry:·ReadEntry)·{\n····return·super[MAKEFS](er,·entry,·()·=>·{})\n··}\n\n··[CHECKFS](entry:·ReadEntry)·{\n····if·(!this[CHECKED_CWD])·{\n······const·er·=·this[MKDIR](this.cwd,·this.dmode)\n······if·(er)·{\n········return·this[ONERROR](er·as·Error,·entry)\n······}\n······this[CHECKED_CWD]·=·true\n····}\n\n····//·don't·bother·to·make·the·parent·if·the·current·entry·is·the·cwd,\n····//·we've·already·checked·it.\n····if·(entry.absolute·!==·this.cwd)·{\n······const·parent·=·normalizeWindowsPath(\n········path.dirname(String(entry.absolute)),\n······)\n······if·(parent·!==·this.cwd)·{\n········const·mkParent·=·this[MKDIR](parent,·this.dmode)\n········if·(mkParent)·{\n··········return·this[ONERROR](mkParent·as·Error,·entry)\n········}\n······}\n····}\n\n····const·[lstatEr,·st]·=·callSync(()·=>\n······fs.lstatSync(String(entry.absolute)),\n····)\n····if·(\n······st·&&\n······(this.keep·||\n········/*·c8·ignore·next·*/\n········(this.newer·&&·st.mtime·>·(entry.mtime·??·st.mtime)))\n····)·{\n······return·this[SKIP](entry)\n····}\n\n····if·(lstatEr·||·this[ISREUSABLE](entry,·st))·{\n······return·this[MAKEFS](null,·entry)\n····}\n\n····if·(st.isDirectory())·{\n······if·(entry.type·===·'Directory')·{\n········const·needChmod·=\n··········this.chmod·&&\n··········entry.mode·&&\n··········(st.mode·&·0o7777)·!==·entry.mode\n········const·[er]·=\n··········needChmod·?\n············callSync(()·=>·{\n··············fs.chmodSync(String(entry.absolute),·Number(entry.mode))\n············})\n··········:·[]\n········return·this[MAKEFS](er,·entry)\n······}\n······//·not·a·dir·entry,·have·to·remove·it\n······const·[er]·=·callSync(()·=>\n········fs.rmdirSync(String(entry.absolute)),\n······)\n······this[MAKEFS](er,·entry)\n····}\n\n····//·not·a·dir,·and·not·reusable.\n····//·don't·remove·if·it's·the·cwd,·since·we·want·that·error.\n····const·[er]·=\n······entry.absolute·===·this.cwd·?\n········[]\n······:·callSync(()·=>·unlinkFileSync(String(entry.absolute)))\n····this[MAKEFS](er,·entry)\n··}\n\n··[FILE](entry:·ReadEntry,·done:·()·=>·void)·{\n····const·mode·=\n······typeof·entry.mode·===·'number'·?\n········entry.mode·&·0o7777\n······:·this.fmode\n\n····const·oner·=·(er?:·null·|·Error·|·undefined)·=>·{\n······let·closeError\n······try·{\n········fs.closeSync(fd)\n······}·catch·(e)·{\n········closeError·=·e\n······}\n······if·(er·||·closeError)·{\n········this[ONERROR]((er·as·Error)·||·closeError,·entry)\n······}\n······done()\n····}\n\n····let·fd:·number\n····try·{\n······fd·=·fs.openSync(\n········String(entry.absolute),\n········getWriteFlag(entry.size),\n········mode,\n······)\n······/*·c8·ignore·start·-·This·is·only·a·problem·if·the·file·was·successfully\n·······*·statted,·BUT·failed·to·open.·Testing·this·is·annoying,·and·we\n·······*·already·have·ample·testint·for·other·uses·of·oner()·methods.\n·······*/\n····}·catch·(er)·{\n······return·oner(er·as·Error)\n····}\n····/*·c8·ignore·stop·*/\n····const·tx·=·this.transform·?·this.transform(entry)·||·entry·:·entry\n····if·(tx·!==·entry)·{\n······tx.on('error',·(er:·Error)·=>·this[ONERROR](er,·entry))\n······entry.pipe(tx)\n····}\n\n····tx.on('data',·(chunk:·Buffer)·=>·{\n······try·{\n········fs.writeSync(fd,·chunk,·0,·chunk.length)\n······}·catch·(er)·{\n········oner(er·as·Error)\n······}\n····})\n\n····tx.on('end',·()·=>·{\n······let·er·=·null\n······//·try·both,·falling·futimes·back·to·utimes\n······//·if·either·fails,·handle·the·first·error\n······if·(entry.mtime·&&·!this.noMtime)·{\n········const·atime·=·entry.atime·||·new·Date()\n········const·mtime·=·entry.mtime\n········try·{\n··········fs.futimesSync(fd,·atime,·mtime)\n········}·catch·(futimeser)·{\n··········try·{\n············fs.utimesSync(String(entry.absolute),·atime,·mtime)\n··········}·catch·(utimeser)·{\n············er·=·futimeser\n··········}\n········}\n······}\n\n······if·(this[DOCHOWN](entry))·{\n········const·uid·=·this[UID](entry)\n········const·gid·=·this[GID](entry)\n\n········try·{\n··········fs.fchownSync(fd,·Number(uid),·Number(gid))\n········}·catch·(fchowner)·{\n··········try·{\n············fs.chownSync(\n··············String(entry.absolute),\n··············Number(uid),\n··············Number(gid),\n············)\n··········}·catch·(chowner)·{\n············er·=·er·||·fchowner\n··········}\n········}\n······}\n\n······oner(er·as·Error)\n····})\n··}\n\n··[DIRECTORY](entry:·ReadEntry,·done:·()·=>·void)·{\n····const·mode·=\n······typeof·entry.mode·===·'number'·?\n········entry.mode·&·0o7777\n······:·this.dmode\n····const·er·=·this[MKDIR](String(entry.absolute),·mode)\n····if·(er)·{\n······this[ONERROR](er·as·Error,·entry)\n······done()\n······return\n····}\n····if·(entry.mtime·&&·!this.noMtime)·{\n······try·{\n········fs.utimesSync(\n··········String(entry.absolute),\n··········entry.atime·||·new·Date(),\n··········entry.mtime,\n········)\n········/*·c8·ignore·next·*/\n······}·catch·(er)·{}\n····}\n····if·(this[DOCHOWN](entry))·{\n······try·{\n········fs.chownSync(\n··········String(entry.absolute),\n··········Number(this[UID](entry)),\n··········Number(this[GID](entry)),\n········)\n······}·catch·(er)·{}\n····}\n····done()\n····entry.resume()\n··}\n\n··[MKDIR](dir:·string,·mode:·number)·{\n····try·{\n······return·mkdirSync(normalizeWindowsPath(dir),·{\n········uid:·this.uid,\n········gid:·this.gid,\n········processUid:·this.processUid,\n········processGid:·this.processGid,\n········umask:·this.processUmask,\n········preserve:·this.preservePaths,\n········unlink:·this.unlink,\n········cwd:·this.cwd,\n········mode:·mode,\n······})\n····}·catch·(er)·{\n······return·er\n····}\n··}\n\n··[LINK](\n····entry:·ReadEntry,\n····linkpath:·string,\n····link:·'link'·|·'symlink',\n····done:·()·=>·void,\n··)·{\n····const·ls:·`${typeof·link}Sync`·=·`${link}Sync`\n····try·{\n······fs[ls](linkpath,·String(entry.absolute))\n······done()\n······entry.resume()\n····}·catch·(er)·{\n······return·this[ONERROR](er·as·Error,·entry)\n····}\n··}\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 1, 9 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | ///·<reference·types="node"·/> | ||
| 3 | import·{·type·Minipass·}·from·'minipass'; | 1 | import·{·type·Minipass·}·from·'minipass'; |
| 4 | /**·has·a·warn·method·*/ | 2 | /**·has·a·warn·method·*/ |
| 5 | export·type·Warner·=·{ | 3 | export·type·Warner·=·{ |
| 6 | ····warn(code:·string,·message:·string·|·Error,·data:·any):·void; | 4 | ····warn(code:·string,·message:·string·|·Error,·data:·any):·void; |
| 7 | ····file?:·string; | 5 | ····file?:·string; |
| 8 | ····cwd?:·string; | 6 | ····cwd?:·string; |
| 9 | ····strict?:·boolean; | 7 | ····strict?:·boolean; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"warn-method.d.ts", | 2 | ····"file":·"warn-method.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC,wBAAwB;AACxB,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAA;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,[·...·truncated·by·diffoscope;·len:·752,·SHA:·fb541b5d72b592e19ccb520b184e7e66e5777e151f67dafb65f3cc2cf46b081b·...·],CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/warn-method.ts" | 7 | ········"../../src/warn-method.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"winchars.d.ts", | 2 | ····"file":·"winchars.d.ts", |
| 3 | ····"mappings":·"AAYA,eAAO,MAAM,MAAM, | 3 | ····"mappings":·"AAYA,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,WACwB,CAAA;AACxD,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,WACwB,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/winchars.ts" | 7 | ········"../../src/winchars.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 11 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·/> | ||
| 2 | ///·<reference·types="node"·/> | ||
| 3 | ///·<reference·types="node"·/> | ||
| 4 | ///·<reference·types="node"·/> | ||
| 5 | import·{·type·Stats·}·from·'fs'; | 1 | import·{·type·Stats·}·from·'fs'; |
| 6 | import·{·Minipass·}·from·'minipass'; | 2 | import·{·Minipass·}·from·'minipass'; |
| 7 | import·{·Header·}·from·'./header.js'; | 3 | import·{·Header·}·from·'./header.js'; |
| 8 | import·{·TarOptions,·TarOptionsWithAliases·}·from·'./options.js'; | 4 | import·{·TarOptions,·TarOptionsWithAliases·}·from·'./options.js'; |
| 9 | import·{·ReadEntry·}·from·'./read-entry.js'; | 5 | import·{·ReadEntry·}·from·'./read-entry.js'; |
| 10 | import·{·EntryTypeName·}·from·'./types.js'; | 6 | import·{·EntryTypeName·}·from·'./types.js'; |
| 11 | import·{·WarnData,·Warner,·WarnEvent·}·from·'./warn-method.js'; | 7 | import·{·WarnData,·Warner,·WarnEvent·}·from·'./warn-method.js'; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"write-entry.d.ts", | 2 | ····"file":·"write-entry.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAAA,OAAW,EAAE,KAAK,KAAK,EAAE,MAAM,IAAI,CAAA;AACnC,OA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CAAC,CAAC,IAAI,EAAE,MAAM;IAIrB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM;IAInB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO;IACxD,KAAK,CACH,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,EAChC,EAAE,CAAC,EAAE,MAAM,IAAI,GACd,OAAO;IA0BV,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;IAC1B,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;IAClD,GAAG,CACD,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,QAAQ,CAAC,EAAE,cAAc,EACzB,EAAE,CAAC,EAAE,MAAM,IAAI,GACd,IAAI;CA2BR", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/write-entry.ts" | 7 | ········"../../src/write-entry.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 41, 1525 lines modified | Offset 41, 1546 lines modified | ||
| 00000280:·3a20·7472·7565·2c20·7661·6c75·653a·2076··:·true,·value:·v | 00000280:·3a20·7472·7565·2c20·7661·6c75·653a·2076··:·true,·value:·v | ||
| 00000290:·207d·293b·0a7d·2920·3a20·6675·6e63·7469···});.})·:·functi | 00000290:·207d·293b·0a7d·2920·3a20·6675·6e63·7469···});.})·:·functi | ||
| 000002a0:·6f6e·286f·2c20·7629·207b·0a20·2020·206f··on(o,·v)·{.····o | 000002a0:·6f6e·286f·2c20·7629·207b·0a20·2020·206f··on(o,·v)·{.····o | ||
| 000002b0:·5b22·6465·6661·756c·7422·5d20·3d20·763b··["default"]·=·v; | 000002b0:·5b22·6465·6661·756c·7422·5d20·3d20·763b··["default"]·=·v; | ||
| 000002c0:·0a7d·293b·0a76·6172·205f·5f69·6d70·6f72··.});.var·__impor | 000002c0:·0a7d·293b·0a76·6172·205f·5f69·6d70·6f72··.});.var·__impor | ||
| 000002d0:·7453·7461·7220·3d20·2874·6869·7320·2626··tStar·=·(this·&& | 000002d0:·7453·7461·7220·3d20·2874·6869·7320·2626··tStar·=·(this·&& | Diff chunk too large, falling back to line-by-line diff (1539 lines added, 1518 lines removed) | |
| 000002e0:·2074·6869·732e·5f5f·696d·706f·7274·5374···this.__importSt | 000002e0:·2074·6869·732e·5f5f·696d·706f·7274·5374···this.__importSt | ||
| 000002f0:·6172·2920·7c7c·20 | 000002f0:·6172·2920·7c7c·2028·6675·6e63·7469·6f6e··ar)·||·(function | ||
| 00000300:·2 | 00000300:·2028·2920·7b0a·2020·2020·7661·7220·6f77···()·{.····var·ow | ||
| 00000310:·6 | 00000310:·6e4b·6579·7320·3d20·6675·6e63·7469·6f6e··nKeys·=·function | ||
| 00000320:· | 00000320:·286f·2920·7b0a·2020·2020·2020·2020·6f77··(o)·{.········ow | ||
| 00000330:·6 | 00000330:·6e4b·6579·7320·3d20·4f62·6a65·6374·2e67··nKeys·=·Object.g | ||
| 00000340:· | 00000340:·6574·4f77·6e50·726f·7065·7274·794e·616d··etOwnPropertyNam | ||
| 00000350:·6 | 00000350:·6573·207c·7c20·6675·6e63·7469·6f6e·2028··es·||·function·( | ||
| 00000360:· | 00000360:·6f29·207b·0a20·2020·2020·2020·2020·2020··o)·{.··········· | ||
| 00000370:· | 00000370:·2076·6172·2061·7220·3d20·5b5d·3b0a·2020···var·ar·=·[];.·· | ||
| 00000380:· | 00000380:·2020·2020·2020·2020·2020·666f·7220·2876············for·(v | ||
| 00000390:·6 | 00000390:·6172·206b·2069·6e20·6f29·2069·6620·284f··ar·k·in·o)·if·(O | ||
| 000003a0:·6 | 000003a0:·626a·6563·742e·7072·6f74·6f74·7970·652e··bject.prototype. | ||
| 000003b0:· | 000003b0:·6861·734f·776e·5072·6f70·6572·7479·2e63··hasOwnProperty.c | ||
| 000003c0:·6 | 000003c0:·616c·6c28·6f2c·206b·2929·2061·725b·6172··all(o,·k))·ar[ar | ||
| 000003d0:·2 | 000003d0:·2e6c·656e·6774·685d·203d·206b·3b0a·2020··.length]·=·k;.·· | ||
| 000003e0:· | 000003e0:·2020·2020·2020·2020·2020·7265·7475·726e············return | ||
| 000003f0:· | 000003f0:·2061·723b·0a20·2020·2020·2020·207d·3b0a···ar;.········};. | ||
| 00000400:· | 00000400:·2020·2020·2020·2020·7265·7475·726e·206f··········return·o | ||
| 00000410:· | 00000410:·776e·4b65·7973·286f·293b·0a20·2020·207d··wnKeys(o);.····} | ||
| 00000420:· | 00000420:·3b0a·2020·2020·7265·7475·726e·2066·756e··;.····return·fun | ||
| 00000430:· | 00000430:·6374·696f·6e20·286d·6f64·2920·7b0a·2020··ction·(mod)·{.·· | ||
| 00000440:· | 00000440:·2020·2020·2020·6966·2028·6d6f·6420·2626········if·(mod·&& | ||
| 00000450:· | 00000450:·206d·6f64·2e5f·5f65·734d·6f64·756c·6529···mod.__esModule) | ||
| 00000460:·7 | 00000460:·2072·6574·7572·6e20·6d6f·643b·0a20·2020···return·mod;.··· | ||
| 00000470:·2 | 00000470:·2020·2020·2076·6172·2072·6573·756c·7420·······var·result· | ||
| 00000480:· | 00000480:·3d20·7b7d·3b0a·2020·2020·2020·2020·6966··=·{};.········if | ||
| 00000490:· | 00000490:·2028·6d6f·6420·213d·206e·756c·6c29·2066···(mod·!=·null)·f | ||
| 000004a0:·6 | 000004a0:·6f72·2028·7661·7220·6b20·3d20·6f77·6e4b··or·(var·k·=·ownK | ||
| 000004b0:· | 000004b0:·6579·7328·6d6f·6429·2c20·6920·3d20·303b··eys(mod),·i·=·0; | ||
| 000004c0:· | 000004c0:·2069·203c·206b·2e6c·656e·6774·683b·2069···i·<·k.length;·i | ||
| 000004d0:· | 000004d0:·2b2b·2920·6966·2028·6b5b·695d·2021·3d3d··++)·if·(k[i]·!== | ||
| 000004e0:· | 000004e0:·2022·6465·6661·756c·7422·2920·5f5f·6372···"default")·__cr | ||
| 000004f0:· | 000004f0:·6561·7465·4269·6e64·696e·6728·7265·7375··eateBinding(resu | ||
| 00000500:· | 00000500:·6c74·2c20·6d6f·642c·206b·5b69·5d29·3b0a··lt,·mod,·k[i]);. | ||
| 00000510:· | 00000510:·2020·2020·2020·2020·5f5f·7365·744d·6f64··········__setMod | ||
| 00000520:· | 00000520:·756c·6544·6566·6175·6c74·2872·6573·756c··uleDefault(resul | ||
| 00000530:·7 | 00000530:·742c·206d·6f64·293b·0a20·2020·2020·2020··t,·mod);.······· | ||
| 00000540:·6 | 00000540:·2072·6574·7572·6e20·7265·7375·6c74·3b0a···return·result;. | ||
| 00000550:· | 00000550:·2020·2020·7d3b·0a7d·2928·293b·0a76·6172······};.})();.var | ||
| 00000560:· | 00000560:·205f·5f69·6d70·6f72·7444·6566·6175·6c74···__importDefault | ||
| 00000570:·2 | 00000570:·203d·2028·7468·6973·2026·2620·7468·6973···=·(this·&&·this | ||
| 00000580:· | 00000580:·2e5f·5f69·6d70·6f72·7444·6566·6175·6c74··.__importDefault | ||
| 00000590:· | 00000590:·2920·7c7c·2066·756e·6374·696f·6e20·286d··)·||·function·(m | ||
| 000005a0:· | 000005a0:·6f64·2920·7b0a·2020·2020·7265·7475·726e··od)·{.····return | ||
| 000005b0:· | 000005b0:·2028·6d6f·6420·2626·206d·6f64·2e5f·5f65···(mod·&&·mod.__e | ||
| 000005c0:· | 000005c0:·734d·6f64·756c·6529·203f·206d·6f64·203a··sModule)·?·mod·: | ||
| 000005d0:· | 000005d0:·207b·2022·6465·6661·756c·7422·3a20·6d6f···{·"default":·mo | ||
| 000005e0:· | 000005e0:·6420·7d3b·0a7d·3b0a·4f62·6a65·6374·2e64··d·};.};.Object.d | ||
| 000005f0:· | 000005f0:·6566·696e·6550·726f·7065·7274·7928·6578··efineProperty(ex | ||
| 00000600:· | 00000600:·706f·7274·732c·2022·5f5f·6573·4d6f·6475··ports,·"__esModu | ||
| 00000610:·2 | 00000610:·6c65·222c·207b·2076·616c·7565·3a20·7472··le",·{·value:·tr | ||
| 00000620:·7 | 00000620:·7565·207d·293b·0a65·7870·6f72·7473·2e57··ue·});.exports.W | ||
| 00000630:· | 00000630:·7269·7465·456e·7472·7954·6172·203d·2065··riteEntryTar·=·e | ||
| 00000640:· | 00000640:·7870·6f72·7473·2e57·7269·7465·456e·7472··xports.WriteEntr | ||
| 00000650:· | 00000650:·7953·796e·6320·3d20·6578·706f·7274·732e··ySync·=·exports. | ||
| 00000660:· | 00000660:·5772·6974·6545·6e74·7279·203d·2076·6f69··WriteEntry·=·voi | ||
| 00000670:·6 | 00000670:·6420·303b·0a63·6f6e·7374·2066·735f·3120··d·0;.const·fs_1· | ||
| 00000680:· | 00000680:·3d20·5f5f·696d·706f·7274·4465·6661·756c··=·__importDefaul | ||
| 00000690:·7 | 00000690:·7428·7265·7175·6972·6528·2266·7322·2929··t(require("fs")) | ||
| 000006a0:· | 000006a0:·3b0a·636f·6e73·7420·6d69·6e69·7061·7373··;.const·minipass | ||
| 000006b0:· | 000006b0:·5f31·203d·2072·6571·7569·7265·2822·6d69··_1·=·require("mi | ||
| 000006c0:· | 000006c0:·6e69·7061·7373·2229·3b0a·636f·6e73·7420··nipass");.const· | ||
| 000006d0:· | 000006d0:·7061·7468·5f31·203d·205f·5f69·6d70·6f72··path_1·=·__impor | ||
| 000006e0:· | 000006e0:·7444·6566·6175·6c74·2872·6571·7569·7265··tDefault(require | ||
| 000006f0:· | 000006f0:·2822·7061·7468·2229·293b·0a63·6f6e·7374··("path"));.const | ||
| 00000700:· | 00000700:·2068·6561·6465·725f·6a73·5f31·203d·2072···header_js_1·=·r | ||
| 00000710:· | 00000710:·6571·7569·7265·2822·2e2f·6865·6164·6572··equire("./header | ||
| 00000720:· | 00000720:·2e6a·7322·293b·0a63·6f6e·7374·206d·6f64··.js");.const·mod | ||
| 00000730:·6 | 00000730:·655f·6669·785f·6a73·5f31·203d·2072·6571··e_fix_js_1·=·req | ||
| 00000740:·7 | 00000740:·7569·7265·2822·2e2f·6d6f·6465·2d66·6978··uire("./mode-fix | ||
| 00000750:· | 00000750:·2e6a·7322·293b·0a63·6f6e·7374·206e·6f72··.js");.const·nor | ||
| 00000760:· | 00000760:·6d61·6c69·7a65·5f77·696e·646f·7773·5f70··malize_windows_p | ||
| 00000770:· | 00000770:·6174·685f·6a73·5f31·203d·2072·6571·7569··ath_js_1·=·requi | ||
| 00000780:·7 | 00000780:·7265·2822·2e2f·6e6f·726d·616c·697a·652d··re("./normalize- | ||
| 00000790:· | 00000790:·7769·6e64·6f77·732d·7061·7468·2e6a·7322··windows-path.js" | ||
| 000007a0:· | 000007a0:·293b·0a63·6f6e·7374·206f·7074·696f·6e73··);.const·options | ||
| 000007b0:· | 000007b0:·5f6a·735f·3120·3d20·7265·7175·6972·6528··_js_1·=·require( | ||
| 000007c0:· | 000007c0:·222e·2f6f·7074·696f·6e73·2e6a·7322·293b··"./options.js"); | ||
| 000007d0:· | 000007d0:·0a63·6f6e·7374·2070·6178·5f6a·735f·3120··.const·pax_js_1· | ||
| 000007e0:· | 000007e0:·3d20·7265·7175·6972·6528·222e·2f70·6178··=·require("./pax | ||
| 000007f0:· | 000007f0:·2e6a·7322·293b·0a63·6f6e·7374·2073·7472··.js");.const·str | ||
| 00000800:· | 00000800:·6970·5f61·6273·6f6c·7574·655f·7061·7468··ip_absolute_path | ||
| 00000810:·6a73 | 00000810:·5f6a·735f·3120·3d20·7265·7175·6972·6528··_js_1·=·require( | ||
| 00000820:· | 00000820:·222e·2f73·7472·6970·2d61·6273·6f6c·7574··"./strip-absolut | ||
| 00000830:· | 00000830:·652d·7061·7468·2e6a·7322·293b·0a63·6f6e··e-path.js");.con | ||
| 00000840:· | 00000840:·7374·2073·7472·6970·5f74·7261·696c·696e··st·strip_trailin | ||
| 00000850:·5f7 | 00000850:·675f·736c·6173·6865·735f·6a73·5f31·203d··g_slashes_js_1·= | ||
| 00000860:· | 00000860:·2072·6571·7569·7265·2822·2e2f·7374·7269···require("./stri | ||
| 00000870:· | 00000870:·702d·7472·6169·6c69·6e67·2d73·6c61·7368··p-trailing-slash | ||
| 00000880:·657 | 00000880:·6573·2e6a·7322·293b·0a63·6f6e·7374·2077··es.js");.const·w | ||
| 00000890:· | 00000890:·6172·6e5f·6d65·7468·6f64·5f6a·735f·3120··arn_method_js_1· | ||
| Max diff block lines reached; -1/211432 bytes (-0.00%) of diff not shown. | |||
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"write-entry.js", | 2 | ····"file":·"write-entry.js", |
| 3 | ····"mappings":·";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAmC;AACnC,uCAAmC;AACnC,gDAAuB;AACvB,2CAAoC;AACpC,+CAAuC;AACvC,2EAAkE;AAClE,6CAKqB;AACrB,qCAA8B;AAE9B,qEAA4D;AAC5D,2EAAkE;AAElE,qDAKyB;AACzB,wDAAyC;AAEzC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,MAAe,EAAE,EAAE;IACnD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,IAAA,gDAAoB,EAAC,IAAI,CAAC,CAAA;IACnC,CAAC;IACD,IAAI,GAAG,IAAA,gDAAoB,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;IAC1D,OAAO,IAAA,gDAAoB,EAAC,MAAM,CAAC,GAAG,GAAG,GAAG,IAAI,CAAA;AAClD,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAA;AAEpC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;AACjC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM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AAC,CAAC,CAAC,WAAW;QAClC,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,cAAc;YACxC,CAAC,CAAC,aAAa,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/write-entry.ts" | 7 | ········"../../src/write-entry.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"import·fs,·{·type·Stats·}·from·'fs'\nimport·{·Minipass·}·from·'minipass'\nimport·path·from·'path'\nimport·{·Header·}·from·'./header.js'\nimport·{·modeFix·}·from·'./mode-fix.js'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{\n··dealias,\n··LinkCacheKey,\n··TarOptions,\n··TarOptionsWithAliases,\n}·from·'./options.js'\nimport·{·Pax·}·from·'./pax.js'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{·stripAbsolutePath·}·from·'./strip-absolute-path.js'\nimport·{·stripTrailingSlashes·}·from·'./strip-trailing-slashes.js'\nimport·{·EntryTypeName·}·from·'./types.js'\nimport·{\n··WarnData,\n··Warner,\n··WarnEvent,\n··warnMethod,\n}·from·'./warn-method.js'\nimport·*·as·winchars·from·'./winchars.js'\n\nconst·prefixPath·=·(path:·string,·prefix?:·string)·=>·{\n··if·(!prefix)·{\n····return·normalizeWindowsPath(path)\n··}\n··path·=·normalizeWindowsPath(path).replace(/^\\.(\\/|$)/,·'')\n··return·stripTrailingSlashes(prefix)·+·'/'·+·path\n}\n\nconst·maxReadSize·=·16·*·1024·*·1024\n\nconst·PROCESS·=·Symbol('process')\nconst·FILE·=·Symbol('file')\nconst·DIRECTORY·=·Symbol('directory')\nconst·SYMLINK·=·Symbol('symlink')\nconst·HARDLINK·=·Symbol('hardlink')\nconst·HEADER·=·Symbol('header')\nconst·READ·=·Symbol('read')\nconst·LSTAT·=·Symbol('lstat')\nconst·ONLSTAT·=·Symbol('onlstat')\nconst·ONREAD·=·Symbol('onread')\nconst·ONREADLINK·=·Symbol('onreadlink')\nconst·OPENFILE·=·Symbol('openfile')\nconst·ONOPENFILE·=·Symbol('onopenfile')\nconst·CLOSE·=·Symbol('close')\nconst·MODE·=·Symbol('mode')\nconst·AWAITDRAIN·=·Symbol('awaitDrain')\nconst·ONDRAIN·=·Symbol('ondrain')\nconst·PREFIX·=·Symbol('prefix')\n\nexport·class·WriteEntry\n··extends·Minipass<Buffer,·Minipass.ContiguousData,·WarnEvent>\n··implements·Warner\n{\n··path:·string\n··portable:·boolean\n··myuid:·number·=·(process.getuid·&&·process.getuid())·||·0\n··//·until·node·has·builtin·pwnam·functions,·this'll·have·to·do\n··myuser:·string·=·process.env.USER·||·''\n··maxReadSize:·number\n··linkCache:·Exclude<TarOptions['linkCache'],·undefined>\n··statCache:·Exclude<TarOptions['statCache'],·undefined>\n··preservePaths:·boolean\n··cwd:·string\n··strict:·boolean\n··mtime?:·Date\n··noPax:·boolean\n··noMtime:·boolean\n··prefix?:·string\n··fd?:·number\n\n··blockLen:·number·=·0\n··blockRemain:·number·=·0\n··buf?:·Buffer\n··pos:·number·=·0\n··remain:·number·=·0\n··length:·number·=·0\n··offset:·number·=·0\n\n··win32:·boolean\n··absolute:·string\n\n··header?:·Header\n··type?:·EntryTypeName·|·'Unsupported'\n··linkpath?:·string\n··stat?:·Stats\n··onWriteEntry?:·(entry:·WriteEntry)·=>·any\n\n··#hadError:·boolean·=·false\n\n··constructor(p:·string,·opt_:·TarOptionsWithAliases·=·{})·{\n····const·opt·=·dealias(opt_)\n····super()\n····this.path·=·normalizeWindowsPath(p)\n····//·suppress·atime,·ctime,·uid,·gid,·uname,·gname\n····this.portable·=·!!opt.portable\n····this.maxReadSize·=·opt.maxReadSize·||·maxReadSize\n····this.linkCache·=·opt.linkCache·||·new·Map()\n····this.statCache·=·opt.statCache·||·new·Map()\n····this.preservePaths·=·!!opt.preservePaths\n····this.cwd·=·normalizeWindowsPath(opt.cwd·||·process.cwd())\n····this.strict·=·!!opt.strict\n····this.noPax·=·!!opt.noPax\n····this.noMtime·=·!!opt.noMtime\n····this.mtime·=·opt.mtime\n····this.prefix·=\n······opt.prefix·?·normalizeWindowsPath(opt.prefix)·:·undefined\n····this.onWriteEntry·=·opt.onWriteEntry\n\n····if·(typeof·opt.onwarn·===·'function')·{\n······this.on('warn',·opt.onwarn)\n····}\n\n····let·pathWarn:·string·|·boolean·=·false\n····if·(!this.preservePaths)·{\n······const·[root,·stripped]·=·stripAbsolutePath(this.path)\n······if·(root·&&·typeof·stripped·===·'string')·{\n········this.path·=·stripped\n········pathWarn·=·root\n······}\n····}\n\n····this.win32·=·!!opt.win32·||·process.platform·===·'win32'\n····if·(this.win32)·{\n······//·force·the·\\·to·/·normalization,·since·we·might·not·*actually*\n······//·be·on·windows,·but·want·\\·to·be·considered·a·path·separator.\n······this.path·=·winchars.decode(this.path.replace(/\\\\/g,·'/'))\n······p·=·p.replace(/\\\\/g,·'/')\n····}\n\n····this.absolute·=·normalizeWindowsPath(\n······opt.absolute·||·path.resolve(this.cwd,·p),\n····)\n\n····if·(this.path·===·'')·{\n······this.path·=·'./'\n····}\n\n····if·(pathWarn)·{\n······this.warn(\n········'TAR_ENTRY_INFO',\n········`stripping·${pathWarn}·from·absolute·path`,\n········{\n··········entry:·this,\n··········path:·pathWarn·+·this.path,\n········},\n······)\n····}\n\n····const·cs·=·this.statCache.get(this.absolute)\n····if·(cs)·{\n······this[ONLSTAT](cs)\n····}·else·{\n······this[LSTAT]()\n····}\n··}\n\n··warn(code:·string,·message:·string·|·Error,·data:·WarnData·=·{})·{\n····return·warnMethod(this,·code,·message,·data)\n··}\n\n··emit(ev:·keyof·WarnEvent,·...data:·any[])·{\n····if·(ev·===·'error')·{\n······this.#hadError·=·true\n····}\n····return·super.emit(ev,·...data)\n··}\n\n··[LSTAT]()·{\n····fs.lstat(this.absolute,·(er,·stat)·=>·{\n······if·(er)·{\n········return·this.emit('error',·er)\n······}\n······this[ONLSTAT](stat)\n····})\n··}\n\n··[ONLSTAT](stat:·Stats)·{\n····this.statCache.set(this.absolute,·stat)\n····this.stat·=·stat\n····if·(!stat.isFile())·{\n······stat.size·=·0\n····}\n····this.type·=·getType(stat)\n····this.emit('stat',·stat)\n····this[PROCESS]()\n··}\n\n··[PROCESS]()·{\n····switch·(this.type)·{\n······case·'File':\n········return·this[FILE]()\n······case·'Directory':\n········return·this[DIRECTORY]()\n······case·'SymbolicLink':\n········return·this[SYMLINK]()\n······//·unsupported·types·are·ignored.\n······default:\n········return·this.end()\n····}\n··}\n\n··[MODE](mode:·number)·{\n····return·modeFix(mode,·this.type·===·'Directory',·this.portable)\n··}\n\n··[PREFIX](path:·string)·{\n····return·prefixPath(path,·this.prefix)\n··}\n\n··[HEADER]()·{\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('cannot·write·header·before·stat')\n····}\n····/*·c8·ignore·stop·*/\n\n····if·(this.type·===·'Directory'·&&·this.portable)·{\n······this.noMtime·=·true\n····}\n\n····this.onWriteEntry?.(this)\n····this.header·=·new·Header({\n······path:·this[PREFIX](this.path),\n······//·only·apply·the·prefix·to·hard·links.\n······linkpath:\n········this.type·===·'Link'·&&·this.linkpath·!==·undefined·?\n··········this[PREFIX](this.linkpath)\n········:·this.linkpath,\n······//·only·the·permissions·and·setuid/setgid/sticky·bitflags\n······//·not·the·higher-order·bits·that·specify·file·type\n······mode:·this[MODE](this.stat.mode),\n······uid:·this.portable·?·undefined·:·this.stat.uid,\n······gid:·this.portable·?·undefined·:·this.stat.gid,\n······size:·this.stat.size,\n······mtime:·this.noMtime·?·undefined·:·this.mtime·||·this.stat.mtime,\n······/*·c8·ignore·next·*/\n······type:·this.type·===·'Unsupported'·?·undefined·:·this.type,\n······uname:\n········this.portable·?·undefined\n········:·this.stat.uid·===·this.myuid·?·this.myuser\n········:·'',\n······atime:·this.portable·?·undefined·:·this.stat.atime,\n······ctime:·this.portable·?·undefined·:·this.stat.ctime,\n····})\n\n····if·(this.header.encode()·&&·!this.noPax)·{\n······super.write(\n········new·Pax({\n··········atime:·this.portable·?·undefined·:·this.header.atime,\n··········ctime:·this.portable·?·undefined·:·this.header.ctime,\n··········gid:·this.portable·?·undefined·:·this.header.gid,\n··········mtime:\n············this.noMtime·?·undefined·:·(\n··············this.mtime·||·this.header.mtime\n············),\n··········path:·this[PREFIX](this.path),\n··········linkpath:\n············this.type·===·'Link'·&&·this.linkpath·!==·undefined·?\n··············this[PREFIX](this.linkpath)\n············:·this.linkpath,\n··········size:·this.header.size,\n··········uid:·this.portable·?·undefined·:·this.header.uid,\n··········uname:·this.portable·?·undefined·:·this.header.uname,\n··········dev:·this.portable·?·undefined·:·this.stat.dev,\n··········ino:·this.portable·?·undefined·:·this.stat.ino,\n··········nlink:·this.portable·?·undefined·:·this.stat.nlink,\n········}).encode(),\n······)\n····}\n····const·block·=·this.header?.block\n····/*·c8·ignore·start·*/\n····if·(!block)·{\n······throw·new·Error('failed·to·encode·header')\n····}\n····/*·c8·ignore·stop·*/\n····super.write(block)\n··}\n\n··[DIRECTORY]()·{\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('cannot·create·directory·entry·without·stat')\n····}\n····/*·c8·ignore·stop·*/\n····if·(this.path.slice(-1)·!==·'/')·{\n······this.path·+=·'/'\n····}\n····this.stat.size·=·0\n····this[HEADER]()\n····this.end()\n··}\n\n··[SYMLINK]()·{\n····fs.readlink(this.absolute,·(er,·linkpath)·=>·{\n······if·(er)·{\n········return·this.emit('error',·er)\n······}\n······this[ONREADLINK](linkpath)\n····})\n··}\n\n··[ONREADLINK](linkpath:·string)·{\n····this.linkpath·=·normalizeWindowsPath(linkpath)\n····this[HEADER]()\n····this.end()\n··}\n\n··[HARDLINK](linkpath:·string)·{\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('cannot·create·link·entry·without·stat')\n····}\n····/*·c8·ignore·stop·*/\n····this.type·=·'Link'\n····this.linkpath·=·normalizeWindowsPath(\n······path.relative(this.cwd,·linkpath),\n····)\n····this.stat.size·=·0\n····this[HEADER]()\n····this.end()\n··}\n\n··[FILE]()·{\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('cannot·create·file·entry·without·stat')\n····}\n····/*·c8·ignore·stop·*/\n····if·(this.stat.nlink·>·1)·{\n······const·linkKey·=\n········`${this.stat.dev}:${this.stat.ino}`·as·LinkCacheKey\n······const·linkpath·=·this.linkCache.get(linkKey)\n······if·(linkpath?.indexOf(this.cwd)·===·0)·{\n········return·this[HARDLINK](linkpath)\n······}\n······this.linkCache.set(linkKey,·this.absolute)\n····}\n\n····this[HEADER]()\n····if·(this.stat.size·===·0)·{\n······return·this.end()\n····}\n\n····this[OPENFILE]()\n··}\n\n··[OPENFILE]()·{\n····fs.open(this.absolute,·'r',·(er,·fd)·=>·{\n······if·(er)·{\n········return·this.emit('error',·er)\n······}\n······this[ONOPENFILE](fd)\n····})\n··}\n\n··[ONOPENFILE](fd:·number)·{\n····this.fd·=·fd\n····if·(this.#hadError)·{\n······return·this[CLOSE]()\n····}\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('should·stat·before·calling·onopenfile')\n····}\n····/*·c8·ignore·start·*/\n\n····this.blockLen·=·512·*·Math.ceil(this.stat.size·/·512)\n····this.blockRemain·=·this.blockLen\n····const·bufLen·=·Math.min(this.blockLen,·this.maxReadSize)\n····this.buf·=·Buffer.allocUnsafe(bufLen)\n····this.offset·=·0\n····this.pos·=·0\n····this.remain·=·this.stat.size\n····this.length·=·this.buf.length\n····this[READ]()\n··}\n\n··[READ]()·{\n····const·{·fd,·buf,·offset,·length,·pos·}·=·this\n····if·(fd·===·undefined·||·buf·===·undefined)·{\n······throw·new·Error('cannot·read·file·without·first·opening')\n····}\n····fs.read(fd,·buf,·offset,·length,·pos,·(er,·bytesRead)·=>·{\n······if·(er)·{\n········//·ignoring·the·error·from·close(2)·is·a·bad·practice,·but·at\n········//·this·point·we·already·have·an·error,·don't·need·another·one\n········return·this[CLOSE](()·=>·this.emit('error',·er))\n······}\n······this[ONREAD](bytesRead)\n····})\n··}\n\n··/*·c8·ignore·start·*/\n··[CLOSE](\n····cb:·(er?:·null·|·Error·|·NodeJS.ErrnoException)·=>·any·=·()·=>·{},\n··)·{\n····/*·c8·ignore·stop·*/\n····if·(this.fd·!==·undefined)·fs.close(this.fd,·cb)\n··}\n\n··[ONREAD](bytesRead:·number)·{\n····if·(bytesRead·<=·0·&&·this.remain·>·0)·{\n······const·er·=·Object.assign(\n········new·Error('encountered·unexpected·EOF'),\n········{\n··········path:·this.absolute,\n··········syscall:·'read',\n··········code:·'EOF',\n········},\n······)\n······return·this[CLOSE](()·=>·this.emit('error',·er))\n····}\n\n····if·(bytesRead·>·this.remain)·{\n······const·er·=·Object.assign(\n········new·Error('did·not·encounter·expected·EOF'),\n········{\n··········path:·this.absolute,\n··········syscall:·'read',\n··········code:·'EOF',\n········},\n······)\n······return·this[CLOSE](()·=>·this.emit('error',·er))\n····}\n\n····/*·c8·ignore·start·*/\n····if·(!this.buf)·{\n······throw·new·Error('should·have·created·buffer·prior·to·reading')\n····}\n····/*·c8·ignore·stop·*/\n\n····//·null·out·the·rest·of·the·buffer,·if·we·could·fit·the·block·padding\n····//·at·the·end·of·this·loop,·we've·incremented·bytesRead·and·this.remain\n····//·to·be·incremented·up·to·the·blockRemain·level,·as·if·we·had·expected\n····//·to·get·a·null-padded·file,·and·read·it·until·the·end.··then·we·will\n····//·decrement·both·remain·and·blockRemain·by·bytesRead,·and·know·that·we\n····//·reached·the·expected·EOF,·without·any·null·buffer·to·append.\n····if·(bytesRead·===·this.remain)·{\n······for·(\n········let·i·=·bytesRead;\n········i·<·this.length·&&·bytesRead·<·this.blockRemain;\n········i++\n······)·{\n········this.buf[i·+·this.offset]·=·0\n········bytesRead++\n········this.remain++\n······}\n····}\n\n····const·chunk·=\n······this.offset·===·0·&&·bytesRead·===·this.buf.length·?\n········this.buf\n······:·this.buf.subarray(this.offset,·this.offset·+·bytesRead)\n\n····const·flushed·=·this.write(chunk)\n····if·(!flushed)·{\n······this[AWAITDRAIN](()·=>·this[ONDRAIN]())\n····}·else·{\n······this[ONDRAIN]()\n····}\n··}\n\n··[AWAITDRAIN](cb:·()·=>·any)·{\n····this.once('drain',·cb)\n··}\n\n··write(buffer:·Buffer·|·string,·cb?:·()·=>·void):·boolean\n··write(\n····str:·Buffer·|·string,\n····encoding?:·BufferEncoding·|·null,\n····cb?:·()·=>·void,\n··):·boolean\n··write(\n····chunk:·Buffer·|·string,\n····encoding?:·BufferEncoding·|·(()·=>·any)·|·null,\n····cb?:·()·=>·any,\n··):·boolean·{\n····/*·c8·ignore·start·-·just·junk·to·comply·with·NodeJS.WritableStream·*/\n····if·(typeof·encoding·===·'function')·{\n······cb·=·encoding\n······encoding·=·undefined\n····}\n····if·(typeof·chunk·===·'string')·{\n······chunk·=·Buffer.from(\n········chunk,\n········typeof·encoding·===·'string'·?·encoding·:·'utf8',\n······)\n····}\n····/*·c8·ignore·stop·*/\n\n····if·(this.blockRemain·<·chunk.length)·{\n······const·er·=·Object.assign(\n········new·Error('writing·more·data·than·expected'),\n········{\n··········path:·this.absolute,\n········},\n······)\n······return·this.emit('error',·er)\n····}\n····this.remain·-=·chunk.length\n····this.blockRemain·-=·chunk.length\n····this.pos·+=·chunk.length\n····this.offset·+=·chunk.length\n····return·super.write(chunk,·null,·cb)\n··}\n\n··[ONDRAIN]()·{\n····if·(!this.remain)·{\n······if·(this.blockRemain)·{\n········super.write(Buffer.alloc(this.blockRemain))\n······}\n······return·this[CLOSE](er·=>\n········er·?·this.emit('error',·er)·:·this.end(),\n······)\n····}\n\n····/*·c8·ignore·start·*/\n····if·(!this.buf)·{\n······throw·new·Error('buffer·lost·somehow·in·ONDRAIN')\n····}\n····/*·c8·ignore·stop·*/\n\n····if·(this.offset·>=·this.length)·{\n······//·if·we·only·have·a·smaller·bit·left·to·read,·alloc·a·smaller·buffer\n······//·otherwise,·keep·it·the·same·length·it·was·before.\n······this.buf·=·Buffer.allocUnsafe(\n········Math.min(this.blockRemain,·this.buf.length),\n······)\n······this.offset·=·0\n····}\n····this.length·=·this.buf.length·-·this.offset\n····this[READ]()\n··}\n}\n\nexport·class·WriteEntrySync·extends·WriteEntry·implements·Warner·{\n··sync:·true·=·true;\n\n··[LSTAT]()·{\n····this[ONLSTAT](fs.lstatSync(this.absolute))\n··}\n\n··[SYMLINK]()·{\n····this[ONREADLINK](fs.readlinkSync(this.absolute))\n··}\n\n··[OPENFILE]()·{\n····this[ONOPENFILE](fs.openSync(this.absolute,·'r'))\n··}\n\n··[READ]()·{\n····let·threw·=·true\n····try·{\n······const·{·fd,·buf,·offset,·length,·pos·}·=·this\n······/*·c8·ignore·start·*/\n······if·(fd·===·undefined·||·buf·===·undefined)·{\n········throw·new·Error('fd·and·buf·must·be·set·in·READ·method')\n······}\n······/*·c8·ignore·stop·*/\n······const·bytesRead·=·fs.readSync(fd,·buf,·offset,·length,·pos)\n······this[ONREAD](bytesRead)\n······threw·=·false\n····}·finally·{\n······//·ignoring·the·error·from·close(2)·is·a·bad·practice,·but·at\n······//·this·point·we·already·have·an·error,·don't·need·another·one\n······if·(threw)·{\n········try·{\n··········this[CLOSE](()·=>·{})\n········}·catch·(er)·{}\n······}\n····}\n··}\n\n··[AWAITDRAIN](cb:·()·=>·any)·{\n····cb()\n··}\n\n··/*·c8·ignore·start·*/\n··[CLOSE](\n····cb:·(er?:·null·|·Error·|·NodeJS.ErrnoException)·=>·any·=·()·=>·{},\n··)·{\n····/*·c8·ignore·stop·*/\n····if·(this.fd·!==·undefined)·fs.closeSync(this.fd)\n····cb()\n··}\n}\n\nexport·class·WriteEntryTar\n··extends·Minipass<Buffer,·Buffer·|·string,·WarnEvent>\n··implements·Warner\n{\n··blockLen:·number·=·0\n··blockRemain:·number·=·0\n··buf:·number·=·0\n··pos:·number·=·0\n··remain:·number·=·0\n··length:·number·=·0\n··preservePaths:·boolean\n··portable:·boolean\n··strict:·boolean\n··noPax:·boolean\n··noMtime:·boolean\n··readEntry:·ReadEntry\n··type:·EntryTypeName\n··prefix?:·string\n··path:·string\n··mode?:·number\n··uid?:·number\n··gid?:·number\n··uname?:·string\n··gname?:·string\n··header?:·Header\n··mtime?:·Date\n··atime?:·Date\n··ctime?:·Date\n··linkpath?:·string\n··size:·number\n··onWriteEntry?:·(entry:·WriteEntry)·=>·any\n\n··warn(code:·string,·message:·string·|·Error,·data:·WarnData·=·{})·{\n····return·warnMethod(this,·code,·message,·data)\n··}\n\n··constructor(\n····readEntry:·ReadEntry,\n····opt_:·TarOptionsWithAliases·=·{},\n··)·{\n····const·opt·=·dealias(opt_)\n····super()\n····this.preservePaths·=·!!opt.preservePaths\n····this.portable·=·!!opt.portable\n····this.strict·=·!!opt.strict\n····this.noPax·=·!!opt.noPax\n····this.noMtime·=·!!opt.noMtime\n····this.onWriteEntry·=·opt.onWriteEntry\n\n····this.readEntry·=·readEntry\n····const·{·type·}·=·readEntry\n····/*·c8·ignore·start·*/\n····if·(type·===·'Unsupported')·{\n······throw·new·Error('writing·entry·that·should·be·ignored')\n····}\n····/*·c8·ignore·stop·*/\n····this.type·=·type\n····if·(this.type·===·'Directory'·&&·this.portable)·{\n······this.noMtime·=·true\n····}\n\n····this.prefix·=·opt.prefix\n\n····this.path·=·normalizeWindowsPath(readEntry.path)\n····this.mode·=\n······readEntry.mode·!==·undefined·?\n········this[MODE](readEntry.mode)\n······:·undefined\n····this.uid·=·this.portable·?·undefined·:·readEntry.uid\n····this.gid·=·this.portable·?·undefined·:·readEntry.gid\n····this.uname·=·this.portable·?·undefined·:·readEntry.uname\n····this.gname·=·this.portable·?·undefined·:·readEntry.gname\n····this.size·=·readEntry.size\n····this.mtime·=\n······this.noMtime·?·undefined·:·opt.mtime·||·readEntry.mtime\n····this.atime·=·this.portable·?·undefined·:·readEntry.atime\n····this.ctime·=·this.portable·?·undefined·:·readEntry.ctime\n····this.linkpath·=\n······readEntry.linkpath·!==·undefined·?\n········normalizeWindowsPath(readEntry.linkpath)\n······:·undefined\n\n····if·(typeof·opt.onwarn·===·'function')·{\n······this.on('warn',·opt.onwarn)\n····}\n\n····let·pathWarn:·false·|·string·=·false\n····if·(!this.preservePaths)·{\n······const·[root,·stripped]·=·stripAbsolutePath(this.path)\n······if·(root·&&·typeof·stripped·===·'string')·{\n········this.path·=·stripped\n········pathWarn·=·root\n······}\n····}\n\n····this.remain·=·readEntry.size\n····this.blockRemain·=·readEntry.startBlockSize\n\n····this.onWriteEntry?.(this·as·unknown·as·WriteEntry)\n····this.header·=·new·Header({\n······path:·this[PREFIX](this.path),\n······linkpath:\n········this.type·===·'Link'·&&·this.linkpath·!==·undefined·?\n··········this[PREFIX](this.linkpath)\n········:·this.linkpath,\n······//·only·the·permissions·and·setuid/setgid/sticky·bitflags\n······//·not·the·higher-order·bits·that·specify·file·type\n······mode:·this.mode,\n······uid:·this.portable·?·undefined·:·this.uid,\n······gid:·this.portable·?·undefined·:·this.gid,\n······size:·this.size,\n······mtime:·this.noMtime·?·undefined·:·this.mtime,\n······type:·this.type,\n······uname:·this.portable·?·undefined·:·this.uname,\n······atime:·this.portable·?·undefined·:·this.atime,\n······ctime:·this.portable·?·undefined·:·this.ctime,\n····})\n\n····if·(pathWarn)·{\n······this.warn(\n········'TAR_ENTRY_INFO',\n········`stripping·${pathWarn}·from·absolute·path`,\n········{\n··········entry:·this,\n··········path:·pathWarn·+·this.path,\n········},\n······)\n····}\n\n····if·(this.header.encode()·&&·!this.noPax)·{\n······super.write(\n········new·Pax({\n··········atime:·this.portable·?·undefined·:·this.atime,\n··········ctime:·this.portable·?·undefined·:·this.ctime,\n··········gid:·this.portable·?·undefined·:·this.gid,\n··········mtime:·this.noMtime·?·undefined·:·this.mtime,\n··········path:·this[PREFIX](this.path),\n··········linkpath:\n············this.type·===·'Link'·&&·this.linkpath·!==·undefined·?\n··············this[PREFIX](this.linkpath)\n············:·this.linkpath,\n··········size:·this.size,\n··········uid:·this.portable·?·undefined·:·this.uid,\n··········uname:·this.portable·?·undefined·:·this.uname,\n··········dev:·this.portable·?·undefined·:·this.readEntry.dev,\n··········ino:·this.portable·?·undefined·:·this.readEntry.ino,\n··········nlink:·this.portable·?·undefined·:·this.readEntry.nlink,\n········}).encode(),\n······)\n····}\n\n····const·b·=·this.header?.block\n····/*·c8·ignore·start·*/\n····if·(!b)·throw·new·Error('failed·to·encode·header')\n····/*·c8·ignore·stop·*/\n····super.write(b)\n····readEntry.pipe(this)\n··}\n\n··[PREFIX](path:·string)·{\n····return·prefixPath(path,·this.prefix)\n··}\n\n··[MODE](mode:·number)·{\n····return·modeFix(mode,·this.type·===·'Directory',·this.portable)\n··}\n\n··write(buffer:·Buffer·|·string,·cb?:·()·=>·void):·boolean\n··write(\n····str:·Buffer·|·string,\n····encoding?:·BufferEncoding·|·null,\n····cb?:·()·=>·void,\n··):·boolean\n··write(\n····chunk:·Buffer·|·string,\n····encoding?:·BufferEncoding·|·(()·=>·any)·|·null,\n····cb?:·()·=>·any,\n··):·boolean·{\n····/*·c8·ignore·start·-·just·junk·to·comply·with·NodeJS.WritableStream·*/\n····if·(typeof·encoding·===·'function')·{\n······cb·=·encoding\n······encoding·=·undefined\n····}\n····if·(typeof·chunk·===·'string')·{\n······chunk·=·Buffer.from(\n········chunk,\n········typeof·encoding·===·'string'·?·encoding·:·'utf8',\n······)\n····}\n····/*·c8·ignore·stop·*/\n····const·writeLen·=·chunk.length\n····if·(writeLen·>·this.blockRemain)·{\n······throw·new·Error('writing·more·to·entry·than·is·appropriate')\n····}\n····this.blockRemain·-=·writeLen\n····return·super.write(chunk,·cb)\n··}\n\n··end(cb?:·()·=>·void):·this\n··end(chunk:·Buffer·|·string,·cb?:·()·=>·void):·this\n··end(\n····chunk:·Buffer·|·string,\n····encoding?:·BufferEncoding,\n····cb?:·()·=>·void,\n··):·this\n··end(\n····chunk?:·Buffer·|·string·|·(()·=>·void),\n····encoding?:·BufferEncoding·|·(()·=>·void),\n····cb?:·()·=>·void,\n··):·this·{\n····if·(this.blockRemain)·{\n······super.write(Buffer.alloc(this.blockRemain))\n····}\n····/*·c8·ignore·start·-·just·junk·to·comply·with·NodeJS.WritableStream·*/\n····if·(typeof·chunk·===·'function')·{\n······cb·=·chunk\n······encoding·=·undefined\n······chunk·=·undefined\n····}\n····if·(typeof·encoding·===·'function')·{\n······cb·=·encoding\n······encoding·=·undefined\n····}\n····if·(typeof·chunk·===·'string')·{\n······chunk·=·Buffer.from(chunk,·encoding·??·'utf8')\n····}\n····if·(cb)·this.once('finish',·cb)\n····chunk·?·super.end(chunk,·cb)·:·super.end(cb)\n····/*·c8·ignore·stop·*/\n····return·this\n··}\n}\n\nconst·getType·=·(stat:·Stats):·EntryTypeName·|·'Unsupported'·=>\n··stat.isFile()·?·'File'\n··:·stat.isDirectory()·?·'Directory'\n··:·stat.isSymbolicLink()·?·'SymbolicLink'\n··:·'Unsupported'\n" | 10 | ········"import·fs,·{·type·Stats·}·from·'fs'\nimport·{·Minipass·}·from·'minipass'\nimport·path·from·'path'\nimport·{·Header·}·from·'./header.js'\nimport·{·modeFix·}·from·'./mode-fix.js'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{\n··dealias,\n··LinkCacheKey,\n··TarOptions,\n··TarOptionsWithAliases,\n}·from·'./options.js'\nimport·{·Pax·}·from·'./pax.js'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{·stripAbsolutePath·}·from·'./strip-absolute-path.js'\nimport·{·stripTrailingSlashes·}·from·'./strip-trailing-slashes.js'\nimport·{·EntryTypeName·}·from·'./types.js'\nimport·{\n··WarnData,\n··Warner,\n··WarnEvent,\n··warnMethod,\n}·from·'./warn-method.js'\nimport·*·as·winchars·from·'./winchars.js'\n\nconst·prefixPath·=·(path:·string,·prefix?:·string)·=>·{\n··if·(!prefix)·{\n····return·normalizeWindowsPath(path)\n··}\n··path·=·normalizeWindowsPath(path).replace(/^\\.(\\/|$)/,·'')\n··return·stripTrailingSlashes(prefix)·+·'/'·+·path\n}\n\nconst·maxReadSize·=·16·*·1024·*·1024\n\nconst·PROCESS·=·Symbol('process')\nconst·FILE·=·Symbol('file')\nconst·DIRECTORY·=·Symbol('directory')\nconst·SYMLINK·=·Symbol('symlink')\nconst·HARDLINK·=·Symbol('hardlink')\nconst·HEADER·=·Symbol('header')\nconst·READ·=·Symbol('read')\nconst·LSTAT·=·Symbol('lstat')\nconst·ONLSTAT·=·Symbol('onlstat')\nconst·ONREAD·=·Symbol('onread')\nconst·ONREADLINK·=·Symbol('onreadlink')\nconst·OPENFILE·=·Symbol('openfile')\nconst·ONOPENFILE·=·Symbol('onopenfile')\nconst·CLOSE·=·Symbol('close')\nconst·MODE·=·Symbol('mode')\nconst·AWAITDRAIN·=·Symbol('awaitDrain')\nconst·ONDRAIN·=·Symbol('ondrain')\nconst·PREFIX·=·Symbol('prefix')\n\nexport·class·WriteEntry\n··extends·Minipass<Buffer,·Minipass.ContiguousData,·WarnEvent>\n··implements·Warner\n{\n··path:·string\n··portable:·boolean\n··myuid:·number·=·(process.getuid·&&·process.getuid())·||·0\n··//·until·node·has·builtin·pwnam·functions,·this'll·have·to·do\n··myuser:·string·=·process.env.USER·||·''\n··maxReadSize:·number\n··linkCache:·Exclude<TarOptions['linkCache'],·undefined>\n··statCache:·Exclude<TarOptions['statCache'],·undefined>\n··preservePaths:·boolean\n··cwd:·string\n··strict:·boolean\n··mtime?:·Date\n··noPax:·boolean\n··noMtime:·boolean\n··prefix?:·string\n··fd?:·number\n\n··blockLen:·number·=·0\n··blockRemain:·number·=·0\n··buf?:·Buffer\n··pos:·number·=·0\n··remain:·number·=·0\n··length:·number·=·0\n··offset:·number·=·0\n\n··win32:·boolean\n··absolute:·string\n\n··header?:·Header\n··type?:·EntryTypeName·|·'Unsupported'\n··linkpath?:·string\n··stat?:·Stats\n··onWriteEntry?:·(entry:·WriteEntry)·=>·any\n\n··#hadError:·boolean·=·false\n\n··constructor(p:·string,·opt_:·TarOptionsWithAliases·=·{})·{\n····const·opt·=·dealias(opt_)\n····super()\n····this.path·=·normalizeWindowsPath(p)\n····//·suppress·atime,·ctime,·uid,·gid,·uname,·gname\n····this.portable·=·!!opt.portable\n····this.maxReadSize·=·opt.maxReadSize·||·maxReadSize\n····this.linkCache·=·opt.linkCache·||·new·Map()\n····this.statCache·=·opt.statCache·||·new·Map()\n····this.preservePaths·=·!!opt.preservePaths\n····this.cwd·=·normalizeWindowsPath(opt.cwd·||·process.cwd())\n····this.strict·=·!!opt.strict\n····this.noPax·=·!!opt.noPax\n····this.noMtime·=·!!opt.noMtime\n····this.mtime·=·opt.mtime\n····this.prefix·=\n······opt.prefix·?·normalizeWindowsPath(opt.prefix)·:·undefined\n····this.onWriteEntry·=·opt.onWriteEntry\n\n····if·(typeof·opt.onwarn·===·'function')·{\n······this.on('warn',·opt.onwarn)\n····}\n\n····let·pathWarn:·string·|·boolean·=·false\n····if·(!this.preservePaths)·{\n······const·[root,·stripped]·=·stripAbsolutePath(this.path)\n······if·(root·&&·typeof·stripped·===·'string')·{\n········this.path·=·stripped\n········pathWarn·=·root\n······}\n····}\n\n····this.win32·=·!!opt.win32·||·process.platform·===·'win32'\n····if·(this.win32)·{\n······//·force·the·\\·to·/·normalization,·since·we·might·not·*actually*\n······//·be·on·windows,·but·want·\\·to·be·considered·a·path·separator.\n······this.path·=·winchars.decode(this.path.replace(/\\\\/g,·'/'))\n······p·=·p.replace(/\\\\/g,·'/')\n····}\n\n····this.absolute·=·normalizeWindowsPath(\n······opt.absolute·||·path.resolve(this.cwd,·p),\n····)\n\n····if·(this.path·===·'')·{\n······this.path·=·'./'\n····}\n\n····if·(pathWarn)·{\n······this.warn(\n········'TAR_ENTRY_INFO',\n········`stripping·${pathWarn}·from·absolute·path`,\n········{\n··········entry:·this,\n··········path:·pathWarn·+·this.path,\n········},\n······)\n····}\n\n····const·cs·=·this.statCache.get(this.absolute)\n····if·(cs)·{\n······this[ONLSTAT](cs)\n····}·else·{\n······this[LSTAT]()\n····}\n··}\n\n··warn(code:·string,·message:·string·|·Error,·data:·WarnData·=·{})·{\n····return·warnMethod(this,·code,·message,·data)\n··}\n\n··emit(ev:·keyof·WarnEvent,·...data:·any[])·{\n····if·(ev·===·'error')·{\n······this.#hadError·=·true\n····}\n····return·super.emit(ev,·...data)\n··}\n\n··[LSTAT]()·{\n····fs.lstat(this.absolute,·(er,·stat)·=>·{\n······if·(er)·{\n········return·this.emit('error',·er)\n······}\n······this[ONLSTAT](stat)\n····})\n··}\n\n··[ONLSTAT](stat:·Stats)·{\n····this.statCache.set(this.absolute,·stat)\n····this.stat·=·stat\n····if·(!stat.isFile())·{\n······stat.size·=·0\n····}\n····this.type·=·getType(stat)\n····this.emit('stat',·stat)\n····this[PROCESS]()\n··}\n\n··[PROCESS]()·{\n····switch·(this.type)·{\n······case·'File':\n········return·this[FILE]()\n······case·'Directory':\n········return·this[DIRECTORY]()\n······case·'SymbolicLink':\n········return·this[SYMLINK]()\n······//·unsupported·types·are·ignored.\n······default:\n········return·this.end()\n····}\n··}\n\n··[MODE](mode:·number)·{\n····return·modeFix(mode,·this.type·===·'Directory',·this.portable)\n··}\n\n··[PREFIX](path:·string)·{\n····return·prefixPath(path,·this.prefix)\n··}\n\n··[HEADER]()·{\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('cannot·write·header·before·stat')\n····}\n····/*·c8·ignore·stop·*/\n\n····if·(this.type·===·'Directory'·&&·this.portable)·{\n······this.noMtime·=·true\n····}\n\n····this.onWriteEntry?.(this)\n····this.header·=·new·Header({\n······path:·this[PREFIX](this.path),\n······//·only·apply·the·prefix·to·hard·links.\n······linkpath:\n········this.type·===·'Link'·&&·this.linkpath·!==·undefined·?\n··········this[PREFIX](this.linkpath)\n········:·this.linkpath,\n······//·only·the·permissions·and·setuid/setgid/sticky·bitflags\n······//·not·the·higher-order·bits·that·specify·file·type\n······mode:·this[MODE](this.stat.mode),\n······uid:·this.portable·?·undefined·:·this.stat.uid,\n······gid:·this.portable·?·undefined·:·this.stat.gid,\n······size:·this.stat.size,\n······mtime:·this.noMtime·?·undefined·:·this.mtime·||·this.stat.mtime,\n······/*·c8·ignore·next·*/\n······type:·this.type·===·'Unsupported'·?·undefined·:·this.type,\n······uname:\n········this.portable·?·undefined\n········:·this.stat.uid·===·this.myuid·?·this.myuser\n········:·'',\n······atime:·this.portable·?·undefined·:·this.stat.atime,\n······ctime:·this.portable·?·undefined·:·this.stat.ctime,\n····})\n\n····if·(this.header.encode()·&&·!this.noPax)·{\n······super.write(\n········new·Pax({\n··········atime:·this.portable·?·undefined·:·this.header.atime,\n··········ctime:·this.portable·?·undefined·:·this.header.ctime,\n··········gid:·this.portable·?·undefined·:·this.header.gid,\n··········mtime:\n············this.noMtime·?·undefined·:·(\n··············this.mtime·||·this.header.mtime\n············),\n··········path:·this[PREFIX](this.path),\n··········linkpath:\n············this.type·===·'Link'·&&·this.linkpath·!==·undefined·?\n··············this[PREFIX](this.linkpath)\n············:·this.linkpath,\n··········size:·this.header.size,\n··········uid:·this.portable·?·undefined·:·this.header.uid,\n··········uname:·this.portable·?·undefined·:·this.header.uname,\n··········dev:·this.portable·?·undefined·:·this.stat.dev,\n··········ino:·this.portable·?·undefined·:·this.stat.ino,\n··········nlink:·this.portable·?·undefined·:·this.stat.nlink,\n········}).encode(),\n······)\n····}\n····const·block·=·this.header?.block\n····/*·c8·ignore·start·*/\n····if·(!block)·{\n······throw·new·Error('failed·to·encode·header')\n····}\n····/*·c8·ignore·stop·*/\n····super.write(block)\n··}\n\n··[DIRECTORY]()·{\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('cannot·create·directory·entry·without·stat')\n····}\n····/*·c8·ignore·stop·*/\n····if·(this.path.slice(-1)·!==·'/')·{\n······this.path·+=·'/'\n····}\n····this.stat.size·=·0\n····this[HEADER]()\n····this.end()\n··}\n\n··[SYMLINK]()·{\n····fs.readlink(this.absolute,·(er,·linkpath)·=>·{\n······if·(er)·{\n········return·this.emit('error',·er)\n······}\n······this[ONREADLINK](linkpath)\n····})\n··}\n\n··[ONREADLINK](linkpath:·string)·{\n····this.linkpath·=·normalizeWindowsPath(linkpath)\n····this[HEADER]()\n····this.end()\n··}\n\n··[HARDLINK](linkpath:·string)·{\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('cannot·create·link·entry·without·stat')\n····}\n····/*·c8·ignore·stop·*/\n····this.type·=·'Link'\n····this.linkpath·=·normalizeWindowsPath(\n······path.relative(this.cwd,·linkpath),\n····)\n····this.stat.size·=·0\n····this[HEADER]()\n····this.end()\n··}\n\n··[FILE]()·{\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('cannot·create·file·entry·without·stat')\n····}\n····/*·c8·ignore·stop·*/\n····if·(this.stat.nlink·>·1)·{\n······const·linkKey·=\n········`${this.stat.dev}:${this.stat.ino}`·as·LinkCacheKey\n······const·linkpath·=·this.linkCache.get(linkKey)\n······if·(linkpath?.indexOf(this.cwd)·===·0)·{\n········return·this[HARDLINK](linkpath)\n······}\n······this.linkCache.set(linkKey,·this.absolute)\n····}\n\n····this[HEADER]()\n····if·(this.stat.size·===·0)·{\n······return·this.end()\n····}\n\n····this[OPENFILE]()\n··}\n\n··[OPENFILE]()·{\n····fs.open(this.absolute,·'r',·(er,·fd)·=>·{\n······if·(er)·{\n········return·this.emit('error',·er)\n······}\n······this[ONOPENFILE](fd)\n····})\n··}\n\n··[ONOPENFILE](fd:·number)·{\n····this.fd·=·fd\n····if·(this.#hadError)·{\n······return·this[CLOSE]()\n····}\n····/*·c8·ignore·start·*/\n····if·(!this.stat)·{\n······throw·new·Error('should·stat·before·calling·onopenfile')\n····}\n····/*·c8·ignore·start·*/\n\n····this.blockLen·=·512·*·Math.ceil(this.stat.size·/·512)\n····this.blockRemain·=·this.blockLen\n····const·bufLen·=·Math.min(this.blockLen,·this.maxReadSize)\n····this.buf·=·Buffer.allocUnsafe(bufLen)\n····this.offset·=·0\n····this.pos·=·0\n····this.remain·=·this.stat.size\n····this.length·=·this.buf.length\n····this[READ]()\n··}\n\n··[READ]()·{\n····const·{·fd,·buf,·offset,·length,·pos·}·=·this\n····if·(fd·===·undefined·||·buf·===·undefined)·{\n······throw·new·Error('cannot·read·file·without·first·opening')\n····}\n····fs.read(fd,·buf,·offset,·length,·pos,·(er,·bytesRead)·=>·{\n······if·(er)·{\n········//·ignoring·the·error·from·close(2)·is·a·bad·practice,·but·at\n········//·this·point·we·already·have·an·error,·don't·need·another·one\n········return·this[CLOSE](()·=>·this.emit('error',·er))\n······}\n······this[ONREAD](bytesRead)\n····})\n··}\n\n··/*·c8·ignore·start·*/\n··[CLOSE](\n····cb:·(er?:·null·|·Error·|·NodeJS.ErrnoException)·=>·any·=·()·=>·{},\n··)·{\n····/*·c8·ignore·stop·*/\n····if·(this.fd·!==·undefined)·fs.close(this.fd,·cb)\n··}\n\n··[ONREAD](bytesRead:·number)·{\n····if·(bytesRead·<=·0·&&·this.remain·>·0)·{\n······const·er·=·Object.assign(\n········new·Error('encountered·unexpected·EOF'),\n········{\n··········path:·this.absolute,\n··········syscall:·'read',\n··········code:·'EOF',\n········},\n······)\n······return·this[CLOSE](()·=>·this.emit('error',·er))\n····}\n\n····if·(bytesRead·>·this.remain)·{\n······const·er·=·Object.assign(\n········new·Error('did·not·encounter·expected·EOF'),\n········{\n··········path:·this.absolute,\n··········syscall:·'read',\n··········code:·'EOF',\n········},\n······)\n······return·this[CLOSE](()·=>·this.emit('error',·er))\n····}\n\n····/*·c8·ignore·start·*/\n····if·(!this.buf)·{\n······throw·new·Error('should·have·created·buffer·prior·to·reading')\n····}\n····/*·c8·ignore·stop·*/\n\n····//·null·out·the·rest·of·the·buffer,·if·we·could·fit·the·block·padding\n····//·at·the·end·of·this·loop,·we've·incremented·bytesRead·and·this.remain\n····//·to·be·incremented·up·to·the·blockRemain·level,·as·if·we·had·expected\n····//·to·get·a·null-padded·file,·and·read·it·until·the·end.··then·we·will\n····//·decrement·both·remain·and·blockRemain·by·bytesRead,·and·know·that·we\n····//·reached·the·expected·EOF,·without·any·null·buffer·to·append.\n····if·(bytesRead·===·this.remain)·{\n······for·(\n········let·i·=·bytesRead;\n········i·<·this.length·&&·bytesRead·<·this.blockRemain;\n········i++\n······)·{\n········this.buf[i·+·this.offset]·=·0\n········bytesRead++\n········this.remain++\n······}\n····}\n\n····const·chunk·=\n······this.offset·===·0·&&·bytesRead·===·this.buf.length·?\n········this.buf\n······:·this.buf.subarray(this.offset,·this.offset·+·bytesRead)\n\n····const·flushed·=·this.write(chunk)\n····if·(!flushed)·{\n······this[AWAITDRAIN](()·=>·this[ONDRAIN]())\n····}·else·{\n······this[ONDRAIN]()\n····}\n··}\n\n··[AWAITDRAIN](cb:·()·=>·any)·{\n····this.once('drain',·cb)\n··}\n\n··write(buffer:·Buffer·|·string,·cb?:·()·=>·void):·boolean\n··write(\n····str:·Buffer·|·string,\n····encoding?:·BufferEncoding·|·null,\n····cb?:·()·=>·void,\n··):·boolean\n··write(\n····chunk:·Buffer·|·string,\n····encoding?:·BufferEncoding·|·(()·=>·any)·|·null,\n····cb?:·()·=>·any,\n··):·boolean·{\n····/*·c8·ignore·start·-·just·junk·to·comply·with·NodeJS.WritableStream·*/\n····if·(typeof·encoding·===·'function')·{\n······cb·=·encoding\n······encoding·=·undefined\n····}\n····if·(typeof·chunk·===·'string')·{\n······chunk·=·Buffer.from(\n········chunk,\n········typeof·encoding·===·'string'·?·encoding·:·'utf8',\n······)\n····}\n····/*·c8·ignore·stop·*/\n\n····if·(this.blockRemain·<·chunk.length)·{\n······const·er·=·Object.assign(\n········new·Error('writing·more·data·than·expected'),\n········{\n··········path:·this.absolute,\n········},\n······)\n······return·this.emit('error',·er)\n····}\n····this.remain·-=·chunk.length\n····this.blockRemain·-=·chunk.length\n····this.pos·+=·chunk.length\n····this.offset·+=·chunk.length\n····return·super.write(chunk,·null,·cb)\n··}\n\n··[ONDRAIN]()·{\n····if·(!this.remain)·{\n······if·(this.blockRemain)·{\n········super.write(Buffer.alloc(this.blockRemain))\n······}\n······return·this[CLOSE](er·=>\n········er·?·this.emit('error',·er)·:·this.end(),\n······)\n····}\n\n····/*·c8·ignore·start·*/\n····if·(!this.buf)·{\n······throw·new·Error('buffer·lost·somehow·in·ONDRAIN')\n····}\n····/*·c8·ignore·stop·*/\n\n····if·(this.offset·>=·this.length)·{\n······//·if·we·only·have·a·smaller·bit·left·to·read,·alloc·a·smaller·buffer\n······//·otherwise,·keep·it·the·same·length·it·was·before.\n······this.buf·=·Buffer.allocUnsafe(\n········Math.min(this.blockRemain,·this.buf.length),\n······)\n······this.offset·=·0\n····}\n····this.length·=·this.buf.length·-·this.offset\n····this[READ]()\n··}\n}\n\nexport·class·WriteEntrySync·extends·WriteEntry·implements·Warner·{\n··sync:·true·=·true;\n\n··[LSTAT]()·{\n····this[ONLSTAT](fs.lstatSync(this.absolute))\n··}\n\n··[SYMLINK]()·{\n····this[ONREADLINK](fs.readlinkSync(this.absolute))\n··}\n\n··[OPENFILE]()·{\n····this[ONOPENFILE](fs.openSync(this.absolute,·'r'))\n··}\n\n··[READ]()·{\n····let·threw·=·true\n····try·{\n······const·{·fd,·buf,·offset,·length,·pos·}·=·this\n······/*·c8·ignore·start·*/\n······if·(fd·===·undefined·||·buf·===·undefined)·{\n········throw·new·Error('fd·and·buf·must·be·set·in·READ·method')\n······}\n······/*·c8·ignore·stop·*/\n······const·bytesRead·=·fs.readSync(fd,·buf,·offset,·length,·pos)\n······this[ONREAD](bytesRead)\n······threw·=·false\n····}·finally·{\n······//·ignoring·the·error·from·close(2)·is·a·bad·practice,·but·at\n······//·this·point·we·already·have·an·error,·don't·need·another·one\n······if·(threw)·{\n········try·{\n··········this[CLOSE](()·=>·{})\n········}·catch·(er)·{}\n······}\n····}\n··}\n\n··[AWAITDRAIN](cb:·()·=>·any)·{\n····cb()\n··}\n\n··/*·c8·ignore·start·*/\n··[CLOSE](\n····cb:·(er?:·null·|·Error·|·NodeJS.ErrnoException)·=>·any·=·()·=>·{},\n··)·{\n····/*·c8·ignore·stop·*/\n····if·(this.fd·!==·undefined)·fs.closeSync(this.fd)\n····cb()\n··}\n}\n\nexport·class·WriteEntryTar\n··extends·Minipass<Buffer,·Buffer·|·string,·WarnEvent>\n··implements·Warner\n{\n··blockLen:·number·=·0\n··blockRemain:·number·=·0\n··buf:·number·=·0\n··pos:·number·=·0\n··remain:·number·=·0\n··length:·number·=·0\n··preservePaths:·boolean\n··portable:·boolean\n··strict:·boolean\n··noPax:·boolean\n··noMtime:·boolean\n··readEntry:·ReadEntry\n··type:·EntryTypeName\n··prefix?:·string\n··path:·string\n··mode?:·number\n··uid?:·number\n··gid?:·number\n··uname?:·string\n··gname?:·string\n··header?:·Header\n··mtime?:·Date\n··atime?:·Date\n··ctime?:·Date\n··linkpath?:·string\n··size:·number\n··onWriteEntry?:·(entry:·WriteEntry)·=>·any\n\n··warn(code:·string,·message:·string·|·Error,·data:·WarnData·=·{})·{\n····return·warnMethod(this,·code,·message,·data)\n··}\n\n··constructor(\n····readEntry:·ReadEntry,\n····opt_:·TarOptionsWithAliases·=·{},\n··)·{\n····const·opt·=·dealias(opt_)\n····super()\n····this.preservePaths·=·!!opt.preservePaths\n····this.portable·=·!!opt.portable\n····this.strict·=·!!opt.strict\n····this.noPax·=·!!opt.noPax\n····this.noMtime·=·!!opt.noMtime\n····this.onWriteEntry·=·opt.onWriteEntry\n\n····this.readEntry·=·readEntry\n····const·{·type·}·=·readEntry\n····/*·c8·ignore·start·*/\n····if·(type·===·'Unsupported')·{\n······throw·new·Error('writing·entry·that·should·be·ignored')\n····}\n····/*·c8·ignore·stop·*/\n····this.type·=·type\n····if·(this.type·===·'Directory'·&&·this.portable)·{\n······this.noMtime·=·true\n····}\n\n····this.prefix·=·opt.prefix\n\n····this.path·=·normalizeWindowsPath(readEntry.path)\n····this.mode·=\n······readEntry.mode·!==·undefined·?\n········this[MODE](readEntry.mode)\n······:·undefined\n····this.uid·=·this.portable·?·undefined·:·readEntry.uid\n····this.gid·=·this.portable·?·undefined·:·readEntry.gid\n····this.uname·=·this.portable·?·undefined·:·readEntry.uname\n····this.gname·=·this.portable·?·undefined·:·readEntry.gname\n····this.size·=·readEntry.size\n····this.mtime·=\n······this.noMtime·?·undefined·:·opt.mtime·||·readEntry.mtime\n····this.atime·=·this.portable·?·undefined·:·readEntry.atime\n····this.ctime·=·this.portable·?·undefined·:·readEntry.ctime\n····this.linkpath·=\n······readEntry.linkpath·!==·undefined·?\n········normalizeWindowsPath(readEntry.linkpath)\n······:·undefined\n\n····if·(typeof·opt.onwarn·===·'function')·{\n······this.on('warn',·opt.onwarn)\n····}\n\n····let·pathWarn:·false·|·string·=·false\n····if·(!this.preservePaths)·{\n······const·[root,·stripped]·=·stripAbsolutePath(this.path)\n······if·(root·&&·typeof·stripped·===·'string')·{\n········this.path·=·stripped\n········pathWarn·=·root\n······}\n····}\n\n····this.remain·=·readEntry.size\n····this.blockRemain·=·readEntry.startBlockSize\n\n····this.onWriteEntry?.(this·as·unknown·as·WriteEntry)\n····this.header·=·new·Header({\n······path:·this[PREFIX](this.path),\n······linkpath:\n········this.type·===·'Link'·&&·this.linkpath·!==·undefined·?\n··········this[PREFIX](this.linkpath)\n········:·this.linkpath,\n······//·only·the·permissions·and·setuid/setgid/sticky·bitflags\n······//·not·the·higher-order·bits·that·specify·file·type\n······mode:·this.mode,\n······uid:·this.portable·?·undefined·:·this.uid,\n······gid:·this.portable·?·undefined·:·this.gid,\n······size:·this.size,\n······mtime:·this.noMtime·?·undefined·:·this.mtime,\n······type:·this.type,\n······uname:·this.portable·?·undefined·:·this.uname,\n······atime:·this.portable·?·undefined·:·this.atime,\n······ctime:·this.portable·?·undefined·:·this.ctime,\n····})\n\n····if·(pathWarn)·{\n······this.warn(\n········'TAR_ENTRY_INFO',\n········`stripping·${pathWarn}·from·absolute·path`,\n········{\n··········entry:·this,\n··········path:·pathWarn·+·this.path,\n········},\n······)\n····}\n\n····if·(this.header.encode()·&&·!this.noPax)·{\n······super.write(\n········new·Pax({\n··········atime:·this.portable·?·undefined·:·this.atime,\n··········ctime:·this.portable·?·undefined·:·this.ctime,\n··········gid:·this.portable·?·undefined·:·this.gid,\n··········mtime:·this.noMtime·?·undefined·:·this.mtime,\n··········path:·this[PREFIX](this.path),\n··········linkpath:\n············this.type·===·'Link'·&&·this.linkpath·!==·undefined·?\n··············this[PREFIX](this.linkpath)\n············:·this.linkpath,\n··········size:·this.size,\n··········uid:·this.portable·?·undefined·:·this.uid,\n··········uname:·this.portable·?·undefined·:·this.uname,\n··········dev:·this.portable·?·undefined·:·this.readEntry.dev,\n··········ino:·this.portable·?·undefined·:·this.readEntry.ino,\n··········nlink:·this.portable·?·undefined·:·this.readEntry.nlink,\n········}).encode(),\n······)\n····}\n\n····const·b·=·this.header?.block\n····/*·c8·ignore·start·*/\n····if·(!b)·throw·new·Error('failed·to·encode·header')\n····/*·c8·ignore·stop·*/\n····super.write(b)\n····readEntry.pipe(this)\n··}\n\n··[PREFIX](path:·string)·{\n····return·prefixPath(path,·this.prefix)\n··}\n\n··[MODE](mode:·number)·{\n····return·modeFix(mode,·this.type·===·'Directory',·this.portable)\n··}\n\n··write(buffer:·Buffer·|·string,·cb?:·()·=>·void):·boolean\n··write(\n····str:·Buffer·|·string,\n····encoding?:·BufferEncoding·|·null,\n····cb?:·()·=>·void,\n··):·boolean\n··write(\n····chunk:·Buffer·|·string,\n····encoding?:·BufferEncoding·|·(()·=>·any)·|·null,\n····cb?:·()·=>·any,\n··):·boolean·{\n····/*·c8·ignore·start·-·just·junk·to·comply·with·NodeJS.WritableStream·*/\n····if·(typeof·encoding·===·'function')·{\n······cb·=·encoding\n······encoding·=·undefined\n····}\n····if·(typeof·chunk·===·'string')·{\n······chunk·=·Buffer.from(\n········chunk,\n········typeof·encoding·===·'string'·?·encoding·:·'utf8',\n······)\n····}\n····/*·c8·ignore·stop·*/\n····const·writeLen·=·chunk.length\n····if·(writeLen·>·this.blockRemain)·{\n······throw·new·Error('writing·more·to·entry·than·is·appropriate')\n····}\n····this.blockRemain·-=·writeLen\n····return·super.write(chunk,·cb)\n··}\n\n··end(cb?:·()·=>·void):·this\n··end(chunk:·Buffer·|·string,·cb?:·()·=>·void):·this\n··end(\n····chunk:·Buffer·|·string,\n····encoding?:·BufferEncoding,\n····cb?:·()·=>·void,\n··):·this\n··end(\n····chunk?:·Buffer·|·string·|·(()·=>·void),\n····encoding?:·BufferEncoding·|·(()·=>·void),\n····cb?:·()·=>·void,\n··):·this·{\n····if·(this.blockRemain)·{\n······super.write(Buffer.alloc(this.blockRemain))\n····}\n····/*·c8·ignore·start·-·just·junk·to·comply·with·NodeJS.WritableStream·*/\n····if·(typeof·chunk·===·'function')·{\n······cb·=·chunk\n······encoding·=·undefined\n······chunk·=·undefined\n····}\n····if·(typeof·encoding·===·'function')·{\n······cb·=·encoding\n······encoding·=·undefined\n····}\n····if·(typeof·chunk·===·'string')·{\n······chunk·=·Buffer.from(chunk,·encoding·??·'utf8')\n····}\n····if·(cb)·this.once('finish',·cb)\n····chunk·?·super.end(chunk,·cb)·:·super.end(cb)\n····/*·c8·ignore·stop·*/\n····return·this\n··}\n}\n\nconst·getType·=·(stat:·Stats):·EntryTypeName·|·'Unsupported'·=>\n··stat.isFile()·?·'File'\n··:·stat.isDirectory()·?·'Directory'\n··:·stat.isSymbolicLink()·?·'SymbolicLink'\n··:·'Unsupported'\n" |
| Offset 1, 9 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 3 | import·type·{·EntryTypeCode,·EntryTypeName·}·from·'./types.js'; | 1 | import·type·{·EntryTypeCode,·EntryTypeName·}·from·'./types.js'; |
| 4 | export·type·HeaderData·=·{ | 2 | export·type·HeaderData·=·{ |
| 5 | ····path?:·string; | 3 | ····path?:·string; |
| 6 | ····mode?:·number; | 4 | ····mode?:·number; |
| 7 | ····uid?:·number; | 5 | ····uid?:·number; |
| 8 | ····gid?:·number; | 6 | ····gid?:·number; |
| 9 | ····size?:·number; | 7 | ····size?:·number; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"header.d.ts", | 2 | ····"file":·"header.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG9D,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,aAAa,GAAG,aAAa,CAAA;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IAIZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,qBAAa,MAAO,YAAW,UAAU;;IACvC,UAAU,EAAE,OAAO,CAAQ;IAC3B,OAAO,EAAE,OAAO,CAAQ;IACxB,SAAS,EAAE,OAAO,CAAQ;IAE1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAI;IAClB,MAAM,EAAE,MAAM,CAAI;IAClB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IAEZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;gBAGd,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,EAC1B,GAAG,GAAE,MAAU,EACf,EAAE,CAAC,EAAE,UAAU,EACf,GAAG,CAAC,EAAE,UAAU;IASlB,MAAM,CACJ,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,EAAE,CAAC,EAAE,UAAU,EACf,GAAG,CAAC,EAAE,UAAU;IA+GlB,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,MAAU;IAwEpC,IAAI,IAAI,IAAI,aAAa,CAKxB;IAED,IAAI,OAAO,IAAI,aAAa,GAAG,aAAa,CAE3C;IAED,IAAI,IAAI,CAAC,IAAI,EAAE,aAAa,GAAG,aAAa,GAAG,aAAa,EAS3D;CACF", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/header.ts" | 7 | ········"../../src/header.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 5 lines modified | Offset 1, 3 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 3 | export·declare·const·encode:·(num:·number,·buf:·Buffer)·=>·Buffer; | 1 | export·declare·const·encode:·(num:·number,·buf:·Buffer)·=>·Buffer<ArrayBufferLike>; |
| 4 | export·declare·const·parse:·(buf:·Buffer)·=>·number; | 2 | export·declare·const·parse:·(buf:·Buffer)·=>·number; |
| 5 | //#·sourceMappingURL=large-numbers.d.ts.map | 3 | //#·sourceMappingURL=large-numbers.d.ts.map |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"large-numbers.d.ts", | 2 | ····"file":·"large-numbers.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAGA,eAAO,MAAM,MAAM,GAAI,KAAK,MAAM,EAAE,KAAK,MAAM,4BAa9C,CAAA;AA6BD,eAAO,MAAM,KAAK,GAAI,KAAK,MAAM,WAmBhC,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/large-numbers.ts" | 7 | ········"../../src/large-numbers.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"list.d.ts", | 2 | ····"file":·"list.d.ts", |
| 3 | ····"mappings":·"AAKA,OAAO,EACL,UAAU,EAGX,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAgBnC,eAAO,MAAM,WAAW, | 3 | ····"mappings":·"AAKA,OAAO,EACL,UAAU,EAGX,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAgBnC,eAAO,MAAM,WAAW,GAAI,KAAK,UAAU,EAAE,OAAO,MAAM,EAAE,SA4B3D,CAAA;AA+DD,eAAO,MAAM,IAAI;UAG4B,IAAI;EAMhD,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/list.ts" | 7 | ········"../../src/list.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"make-command.d.ts", | 2 | ····"file":·"make-command.d.ts", |
| 3 | ····"mappings":·"AAAA,OAAO,EAML,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,cAAc,CAAA;AAErB,MAAM,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,KAAK,KAAK,GAAG,CAAA;AAEpC,MAAM,MAAM,UAAU,CACpB,UAAU,EACV,SAAS,SAAS;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,IAC9B;IAEF,IAAI,UAAU,CAAA;IACd,CAAC,GAAG,EAAE,gCAAgC,GAAG,UAAU,CAAA;IACnD,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,UAAU,CAAA;IAC/B,CACE,GAAG,EAAE,gCAAgC,EACrC,OAAO,EAAE,MAAM,EAAE,GAChB,UAAU,CAAA;CACd,GAAG;IAEF,CAAC,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O,EAAE,MAAM,EAAE,KAAK,IAAI,EAC9D,WAAW,CACT,GAAG,EAAE,mBAAmB,EACxB,OAAO,EAAE,MAAM,EAAE,EACjB,EAAE,CAAC,EAAE,EAAE,KACJ,OAAO,CAAC,IAAI,CAAC,EAClB,YAAY,CACV,GAAG,[·...·truncated·by·diffoscope;·len:·201,·SHA:·0e87109007853a288e4d78dfd4e43cd12e44221ac089f8b90316a4b96934560d·...·],UAAU,EAAE,SAAS,CAmElC,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/make-command.ts" | 7 | ········"../../src/make-command.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 8 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | import·{·CwdError·}·from·'./cwd-error.js'; | 1 | import·{·CwdError·}·from·'./cwd-error.js'; |
| 3 | import·{·SymlinkError·}·from·'./symlink-error.js'; | 2 | import·{·SymlinkError·}·from·'./symlink-error.js'; |
| 4 | export·type·MkdirOptions·=·{ | 3 | export·type·MkdirOptions·=·{ |
| 5 | ····uid?:·number; | 4 | ····uid?:·number; |
| 6 | ····gid?:·number; | 5 | ····gid?:·number; |
| 7 | ····processUid?:·number; | 6 | ····processUid?:·number; |
| 8 | ····processGid?:·number; | 7 | ····processGid?:·number; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"mkdir.d.ts", | 2 | ····"file":·"mkdir.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MA[·...·truncated·by·diffoscope;·len:·394,·SHA:·54113880c057c8a6eb436154c9764e2fafaa5a9018d102c5a94aad6ed8b46d02·...·],YAAY,wBAqEvD,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/mkdir.ts" | 7 | ········"../../src/mkdir.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"mode-fix.d.ts", | 2 | ····"file":·"mode-fix.d.ts", |
| 3 | ····"mappings":·"AAAA,eAAO,MAAM,OAAO, | 3 | ····"mappings":·"AAAA,eAAO,MAAM,OAAO,GAClB,MAAM,MAAM,EACZ,OAAO,OAAO,EACd,UAAU,OAAO,WA0BlB,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/mode-fix.ts" | 7 | ········"../../src/mode-fix.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"normalize-unicode.d.ts", | 2 | ····"file":·"normalize-unicode.d.ts", |
| 3 | ····"mappings":·"AASA,eAAO,MAAM,gBAAgB, | 3 | ····"mappings":·"AASA,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,KAAG,MAyB5C,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/normalize-unicode.ts" | 7 | ········"../../src/normalize-unicode.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 18, 38 lines modified | Offset 18, 47 lines modified | ||
| 00000110:·5255·2063·6163·6865·0a63·6f6e·7374·204d··RU·cache.const·M | 00000110:·5255·2063·6163·6865·0a63·6f6e·7374·204d··RU·cache.const·M | ||
| 00000120:·4158·203d·2031·3030·3030·3b0a·636f·6e73··AX·=·10000;.cons | 00000120:·4158·203d·2031·3030·3030·3b0a·636f·6e73··AX·=·10000;.cons | ||
| 00000130:·7420·6361·6368·6520·3d20·6e65·7720·5365··t·cache·=·new·Se | 00000130:·7420·6361·6368·6520·3d20·6e65·7720·5365··t·cache·=·new·Se | ||
| 00000140:·7428·293b·0a65·7870·6f72·7420·636f·6e73··t();.export·cons | 00000140:·7428·293b·0a65·7870·6f72·7420·636f·6e73··t();.export·cons | ||
| 00000150:·7420·6e6f·726d·616c·697a·6555·6e69·636f··t·normalizeUnico | 00000150:·7420·6e6f·726d·616c·697a·6555·6e69·636f··t·normalizeUnico | ||
| 00000160:·6465·203d·2028·7329·203d·3e20·7b0a·2020··de·=·(s)·=>·{.·· | 00000160:·6465·203d·2028·7329·203d·3e20·7b0a·2020··de·=·(s)·=>·{.·· | ||
| 00000170:·2020·6966·2028·2163·6163·6865·2e68·6173····if·(!cache.has | 00000170:·2020·6966·2028·2163·6163·6865·2e68·6173····if·(!cache.has | ||
| 00000180:·2873·2929·207b·0a20·2020·2020·2020·20 | 00000180:·2873·2929·207b·0a20·2020·2020·2020·202f··(s))·{.········/ | ||
| 00000190:·2f20·7368·616b·6520·6f75·7420·6964·656e··/·shake·out·iden | |||
| 000001a0:·7469·6361·6c20·6163·6365·6e74·7320·616e··tical·accents·an | |||
| 000001b0:·6420·6c69·6761·7475·7265·730a·2020·2020··d·ligatures.···· | |||
| 000001c0:·2020·2020·6e6f·726d·616c·697a·6543·6163······normalizeCac | |||
| 000001d0:·6865·5b73·5d20·3d20·730a·2020·2020·2020··he[s]·=·s.······ | |||
| 000001e0:·2020·2020·2020·2e6e·6f72·6d61·6c69·7a65········.normalize | |||
| 000001f0:·2827·4e46·4427·290a·2020·2020·2020·2020··('NFD').········ | |||
| 00000200:·2020·2020·2e74·6f4c·6f63·616c·654c·6f77······.toLocaleLow | |||
| 00000210:·6572·4361·7365·2827·656e·2729·0a20·2020··erCase('en').··· | |||
| 00000220:·2020·2020·2020·2020·202e·746f·4c6f·6361···········.toLoca | |||
| 00000230:·6c65·5570·7065·7243·6173·6528·2765·6e27··leUpperCase('en' | |||
| 00000240:·293b·0a20·2020·207d·0a20·2020·2065·6c73··);.····}.····els | |||
| 00000250:·6520·7b0a·2020·2020·2020·2020·6361·6368··e·{.········cach | |||
| 00000260:·652e·6465·6c65·7465·2873·293b·0a20·2020··e.delete(s);.··· | |||
| 00000270:·207d·0a20·2020·2063·6163·6865·2e61·6464···}.····cache.add | |||
| 00000280:·2873·293b·0a20·2020·2063·6f6e·7374·2072··(s);.····const·r | |||
| 00000290:·6574·203d·206e·6f72·6d61·6c69·7a65·4361··et·=·normalizeCa | |||
| 000002a0:·6368·655b·735d·3b0a·2020·2020·6c65·7420··che[s];.····let· | |||
| 000002b0:·6920·3d20·6361·6368·652e·7369·7a65·202d··i·=·cache.size·- | |||
| 000002c0:·204d·4158·3b0a·2020·2020·2f2f·206f·6e6c···MAX;.····//·onl | |||
| 000002d0:·7920·7072·756e·6520·7768·656e·2077·6527··y·prune·when·we' | |||
| 000002e0:·7265·2031·3025·206f·7665·7220·7468·6520··re·10%·over·the· | |||
| 000002f0:·6d61·780a·2020·2020·6966·2028·6920·3e20··max.····if·(i·>· | |||
| 00000300:·4d41·5820·2f20·3130·2920·7b0a·2020·2020··MAX·/·10)·{.···· | |||
| 00000310:·2020·2020·666f·7220·2863·6f6e·7374·2073······for·(const·s | |||
| 00000320:·206f·6620·6361·6368·6529·207b·0a20·2020···of·cache)·{.··· | |||
| 00000330:·2020·2020·2020·2020·2063·6163·6865·2e64···········cache.d | |||
| 00000340:·656c·6574·6528·7329·3b0a·2020·2020·2020··elete(s);.······ | |||
| 00000350:·2020·2020·2020·6465·6c65·7465·206e·6f72········delete·nor | |||
| 00000 | 00000360:·6d61·6c69·7a65·4361·6368·655b·735d·3b0a··malizeCache[s];. | ||
| 000001a0:·203d·2073·2e6e·6f72·6d61·6c69·7a65·2827···=·s.normalize(' | |||
| 000001b0:·4e46·4427·293b·0a20·2020·207d·0a20·2020··NFD');.····}.··· | |||
| 000001c0:·2065·6c73·6520·7b0a·2020·2020·2020·2020···else·{.········ | |||
| 000001d0:·6361·6368·652e·6465·6c65·7465·2873·293b··cache.delete(s); | |||
| 000001e0:·0a20·2020·207d·0a20·2020·2063·6163·6865··.····}.····cache | |||
| 000001f0:·2e61·6464·2873·293b·0a20·2020·2063·6f6e··.add(s);.····con | |||
| 00000200:·7374·2072·6574·203d·206e·6f72·6d61·6c69··st·ret·=·normali | |||
| 00000210:·7a65·4361·6368·655b·735d·3b0a·2020·2020··zeCache[s];.···· | |||
| 00000220:·6c65·7420·6920·3d20·6361·6368·652e·7369··let·i·=·cache.si | |||
| 00000230:·7a65·202d·204d·4158·3b0a·2020·2020·2f2f··ze·-·MAX;.····// | |||
| 00000240:·206f·6e6c·7920·7072·756e·6520·7768·656e···only·prune·when | |||
| 00000250:·2077·6527·7265·2031·3025·206f·7665·7220···we're·10%·over· | |||
| 00000260:·7468·6520·6d61·780a·2020·2020·6966·2028··the·max.····if·( | |||
| 00000270:·6920·3e20·4d41·5820·2f20·3130·2920·7b0a··i·>·MAX·/·10)·{. | |||
| 00000280:·2020·2020·2020·2020·666f·7220·2863·6f6e··········for·(con | |||
| 00000290:·7374·2073·206f·6620·6361·6368·6529·207b··st·s·of·cache)·{ | |||
| 000002a0:·0a20·2020·2020·2020·2020·2020·2063·6163··.············cac | |||
| 000002b0:·6865·2e64·656c·6574·6528·7329·3b0a·2020··he.delete(s);.·· | |||
| 000002c0:·2020·2020·2020·2020·2020·6465·6c65·7465············delete | |||
| 000002d0:·206e·6f72·6d61·6c69·7a65·4361·6368·655b···normalizeCache[ | |||
| 000002e0:·735d·3b0a·2020·2020·2020·2020·2020·2020··s];.············ | |||
| 000002f0:·6966·2028·2d2d·6920·3c3d·2030·290a·2020··if·(--i·<=·0).·· | |||
| 000003 | 00000370:·2020·2020·2020·2020·2020·2020·6966·2028··············if·( | ||
| 00000380:·2d2d·6920·3c3d·2030·290a·2020·2020·2020··--i·<=·0).······ | |||
| 00000390:·2020·2020·2020·2020·2020·6272·6561·6b3b············break; | |||
| 000003 | 000003a0:·0a20·2020·2020·2020·207d·0a20·2020·207d··.········}.····} | ||
| 000003 | 000003b0:·0a20·2020·2072·6574·7572·6e20·7265·743b··.····return·ret; | ||
| 000003 | 000003c0:·0a7d·3b0a·2f2f·2320·736f·7572·6365·4d61··.};.//#·sourceMa | ||
| 000003 | 000003d0:·7070·696e·6755·524c·3d6e·6f72·6d61·6c69··ppingURL=normali | ||
| 000003 | 000003e0:·7a65·2d75·6e69·636f·6465·2e6a·732e·6d61··ze-unicode.js.ma | ||
| 000003 | 000003f0:·70·······································p |
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"normalize-unicode.js", | 2 | ····"file":·"normalize-unicode.js", |
| 3 | ····"mappings":·"AAAA,oCAAoC;AACpC,+CAA+C;AAC/C,6CAA6C;AAC7C,4CAA4C;AAC5C,MAAM,cAAc,GAA2B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAElE,4DAA4D;AAC5D,MAAM,GAAG,GAAG,KAAK,CAAA;AACjB,MAAM,KAAK,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MAAK;QACrB,CAAC;IACH,CAAC;IAED,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/normalize-unicode.ts" | 7 | ········"../../src/normalize-unicode.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·warning:·extremely·hot·code·path.\n//·This·has·been·meticulously·optimized·for·use\n//·within·npm·install·on·large·package·trees.\n//·Do·not·edit·without·careful·benchmarking.\nconst·normalizeCache:·Record<string,·string>·=·Object.create(null)\n\n//·Limit·the·size·of·this.·Very·low-sophistication·LRU·cache\nconst·MAX·=·10000\nconst·cache·=·new·Set<string>()\nexport·const·normalizeUnicode·=·(s:·string):·string·=>·{\n··if·(!cache.has(s))·{\n····normalizeCache[s]·=·s.normalize('NFD')\n··}·else·{\n····cache.delete(s)\n··}\n··cache.add(s)\n\n··const·ret·=·normalizeCache[s]·as·string\n\n··let·i·=·cache.size·-·MAX\n··//·only·prune·when·we're·10%·over·the·max\n··if·(i·>·MAX·/·10)·{\n····for·(const·s·of·cache)·{\n······cache.delete(s)\n······delete·normalizeCache[s]\n······if·(--i·<=·0)·break\n····}\n··}\n\n··return·ret\n}\n" | 10 | ········"//·warning:·extremely·hot·code·path.\n//·This·has·been·meticulously·optimized·for·use\n//·within·npm·install·on·large·package·trees.\n//·Do·not·edit·without·careful·benchmarking.\nconst·normalizeCache:·Record<string,·string>·=·Object.create(null)\n\n//·Limit·the·size·of·this.·Very·low-sophistication·LRU·cache\nconst·MAX·=·10000\nconst·cache·=·new·Set<string>()\nexport·const·normalizeUnicode·=·(s:·string):·string·=>·{\n··if·(!cache.has(s))·{\n····//·shake·out·identical·accents·and·ligatures\n····normalizeCache[s]·=·s\n······.normalize('NFD')\n······.toLocaleLowerCase('en')\n······.toLocaleUpperCase('en')\n··}·else·{\n····cache.delete(s)\n··}\n··cache.add(s)\n\n··const·ret·=·normalizeCache[s]·as·string\n\n··let·i·=·cache.size·-·MAX\n··//·only·prune·when·we're·10%·over·the·max\n··if·(i·>·MAX·/·10)·{\n····for·(const·s·of·cache)·{\n······cache.delete(s)\n······delete·normalizeCache[s]\n······if·(--i·<=·0)·break\n····}\n··}\n\n··return·ret\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 1, 8 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | import·{·type·GzipOptions,·type·ZlibOptions·}·from·'minizlib'; | 1 | import·{·type·GzipOptions,·type·ZlibOptions·}·from·'minizlib'; |
| 3 | import·{·type·Stats·}·from·'node:fs'; | 2 | import·{·type·Stats·}·from·'node:fs'; |
| 4 | import·{·type·ReadEntry·}·from·'./read-entry.js'; | 3 | import·{·type·ReadEntry·}·from·'./read-entry.js'; |
| 5 | import·{·type·WarnData·}·from·'./warn-method.js'; | 4 | import·{·type·WarnData·}·from·'./warn-method.js'; |
| 6 | import·{·WriteEntry·}·from·'./write-entry.js'; | 5 | import·{·WriteEntry·}·from·'./write-entry.js'; |
| 7 | /** | 6 | /** |
| 8 | ·*·The·options·that·can·be·provided·to·tar·commands. | 7 | ·*·The·options·that·can·be·provided·to·tar·commands. |
| Offset 581, 41 lines modified | Offset 580, 17 lines modified | ||
| 581 | export·type·TarOptionsWithAliasesAsyncFile·=·TarOptionsWithAliasesAsync·&·TarOptionsWithAliasesFile; | 580 | export·type·TarOptionsWithAliasesAsyncFile·=·TarOptionsWithAliasesAsync·&·TarOptionsWithAliasesFile; |
| 582 | export·type·TarOptionsWithAliasesNoFile·=·TarOptionsWithAliases·&·{ | 581 | export·type·TarOptionsWithAliasesNoFile·=·TarOptionsWithAliases·&·{ |
| 583 | ····f?:·undefined; | 582 | ····f?:·undefined; |
| 584 | ····file?:·undefined; | 583 | ····file?:·undefined; |
| 585 | }; | 584 | }; |
| 586 | export·type·TarOptionsWithAliasesSyncNoFile·=·TarOptionsWithAliasesSync·&·TarOptionsWithAliasesNoFile; | 585 | export·type·TarOptionsWithAliasesSyncNoFile·=·TarOptionsWithAliasesSync·&·TarOptionsWithAliasesNoFile; |
| 587 | export·type·TarOptionsWithAliasesAsyncNoFile·=·TarOptionsWithAliasesAsync·&·TarOptionsWithAliasesNoFile; | 586 | export·type·TarOptionsWithAliasesAsyncNoFile·=·TarOptionsWithAliasesAsync·&·TarOptionsWithAliasesNoFile; |
| 588 | export·declare·const·isSyncFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 587 | export·declare·const·isSyncFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsSyncFile; |
| 589 | ····sync:·true; | ||
| 590 | }·&·{ | ||
| 591 | ····file:·string; | ||
| 592 | }; | ||
| 593 | export·declare·const·isAsyncFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 588 | export·declare·const·isAsyncFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsAsyncFile; |
| 594 | ····sync?:·false·|·undefined; | ||
| 595 | }·&·{ | ||
| 596 | ····file:·string; | ||
| 597 | }; | ||
| 598 | export·declare·const·isSyncNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 589 | export·declare·const·isSyncNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsSyncNoFile; |
| 599 | ····sync:·true; | ||
| 600 | }·&·{ | ||
| 601 | ····file?:·undefined; | ||
| 602 | }; | ||
| 603 | export·declare·const·isAsyncNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 590 | export·declare·const·isAsyncNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsAsyncNoFile; |
| 604 | ····sync?:·false·|·undefined; | ||
| 605 | }·&·{ | ||
| 606 | ····file?:·undefined; | ||
| 607 | }; | ||
| 608 | export·declare·const·isSync:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 591 | export·declare·const·isSync:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsSync; |
| 609 | ····sync:·true; | ||
| 610 | }; | ||
| 611 | export·declare·const·isAsync:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 592 | export·declare·const·isAsync:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsAsync; |
| 612 | ····sync?:·false·|·undefined; | ||
| 613 | }; | ||
| 614 | export·declare·const·isFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 593 | export·declare·const·isFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsFile; |
| 615 | ····file:·string; | ||
| 616 | }; | ||
| 617 | export·declare·const·isNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptions | 594 | export·declare·const·isNoFile:·<O·extends·TarOptions>(o:·O)·=>·o·is·O·&·TarOptionsNoFile; |
| 618 | ····file?:·undefined; | ||
| 619 | }; | ||
| 620 | export·declare·const·dealias:·(opt?:·TarOptionsWithAliases)·=>·TarOptions; | 595 | export·declare·const·dealias:·(opt?:·TarOptionsWithAliases)·=>·TarOptions; |
| 621 | //#·sourceMappingURL=options.d.ts.map | 596 | //#·sourceMappingURL=options.d.ts.map |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"options.d.ts", | 2 | ····"file":·"options.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AA2B7C;;;;;[·...·truncated·by·diffoscope;·len:·5808,·SHA:·7db887ad6c49573b2941ab3780af9831e567cba726d4ee87f84d1fc37e73ca96·...·]B,UAiBF,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/options.ts" | 7 | ········"../../src/options.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 3 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 4 | import·{·type·Stats·}·from·'fs'; | 1 | import·{·type·Stats·}·from·'fs'; |
| 5 | import·{·WriteEntry,·WriteEntrySync,·WriteEntryTar·}·from·'./write-entry.js'; | 2 | import·{·WriteEntry,·WriteEntrySync,·WriteEntryTar·}·from·'./write-entry.js'; |
| 6 | export·declare·class·PackJob·{ | 3 | export·declare·class·PackJob·{ |
| 7 | ····path:·string; | 4 | ····path:·string; |
| 8 | ····absolute:·string; | 5 | ····absolute:·string; |
| 9 | ····entry?:·WriteEntry·|·WriteEntryTar; | 6 | ····entry?:·WriteEntry·|·WriteEntryTar; |
| 10 | ····stat?:·Stats; | 7 | ····stat?:·Stats; |
| Offset 37, 14 lines modified | Offset 34, 15 lines modified | ||
| 37 | declare·const·ENTRY:·unique·symbol; | 34 | declare·const·ENTRY:·unique·symbol; |
| 38 | declare·const·ENTRYOPT:·unique·symbol; | 35 | declare·const·ENTRYOPT:·unique·symbol; |
| 39 | declare·const·WRITEENTRYCLASS:·unique·symbol; | 36 | declare·const·WRITEENTRYCLASS:·unique·symbol; |
| 40 | declare·const·WRITE:·unique·symbol; | 37 | declare·const·WRITE:·unique·symbol; |
| 41 | declare·const·ONDRAIN:·unique·symbol; | 38 | declare·const·ONDRAIN:·unique·symbol; |
| 42 | import·{·TarOptions·}·from·'./options.js'; | 39 | import·{·TarOptions·}·from·'./options.js'; |
| 43 | export·declare·class·Pack·extends·Minipass<Buffer,·ReadEntry·|·string,·WarnEvent<Buffer>>·implements·Warner·{ | 40 | export·declare·class·Pack·extends·Minipass<Buffer,·ReadEntry·|·string,·WarnEvent<Buffer>>·implements·Warner·{ |
| 41 | ····sync:·boolean; | ||
| 44 | ····opt:·TarOptions; | 42 | ····opt:·TarOptions; |
| 45 | ····cwd:·string; | 43 | ····cwd:·string; |
| 46 | ····maxReadSize?:·number; | 44 | ····maxReadSize?:·number; |
| 47 | ····preservePaths:·boolean; | 45 | ····preservePaths:·boolean; |
| 48 | ····strict:·boolean; | 46 | ····strict:·boolean; |
| 49 | ····noPax:·boolean; | 47 | ····noPax:·boolean; |
| 50 | ····prefix:·string; | 48 | ····prefix:·string; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"pack.d.ts", | 2 | ····"file":·"pack.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AASA,OAAW,EAAE,KAAK,KAAK,EAAE,MAAM,IAAI,CAAA;AACnC,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACd,MAAM,kBAAkB,CAAA;AAEzB,qBAAa,OAAO;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,UAAU,GAAG,aAAa,CAAA;IAClC,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,OAA[·...·truncated·by·diffoscope;·len:·2755,·SHA:·88c02d2395acaa80ca0f84d379819b69321543ae33c4975d23173c9c5369e156·...·]lC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO;IAatB,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE;IAM3C,CAAC,OAAO,CAAC;IA+BT,IAAI,CAAC,OAAO,CAAC,wBAEZ;IAED,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,OAAO;IAMvB,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE,OAAO;IAyDzB,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,GAAG,UAAU;IAmBpC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,OAAO;IAepB,CAAC,OAAO,CAAC;IAOT,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,OAAO;IAgCnB,KAAK;IAML,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,KAAK,EACvB,IAAI,GAAE,QAAa,GAClB,IAAI;CAGR;AAED,qBAAa,QAAS,SAAQ,IAAI;IAChC,IAAI,EAAE,IAAI,CAAO;gBACL,GAAG,EAAE,UAAU;IAM3B,KAAK;IACL,MAAM;IAEN,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,OAAO;IAKnB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO;IAKtB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,OAAO;CA0BpB", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/pack.ts" | 7 | ········"../../src/pack.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 109, 760 lines modified | Offset 109, 793 lines modified | ||
| 000006c0:·6827·3b0a·696d·706f·7274·207b·206e·6f72··h';.import·{·nor | 000006c0:·6827·3b0a·696d·706f·7274·207b·206e·6f72··h';.import·{·nor | ||
| 000006d0:·6d61·6c69·7a65·5769·6e64·6f77·7350·6174··malizeWindowsPat | 000006d0:·6d61·6c69·7a65·5769·6e64·6f77·7350·6174··malizeWindowsPat | ||
| 000006e0:·6820·7d20·6672·6f6d·2027·2e2f·6e6f·726d··h·}·from·'./norm | 000006e0:·6820·7d20·6672·6f6d·2027·2e2f·6e6f·726d··h·}·from·'./norm | ||
| 000006f0:·616c·697a·652d·7769·6e64·6f77·732d·7061··alize-windows-pa | 000006f0:·616c·697a·652d·7769·6e64·6f77·732d·7061··alize-windows-pa | ||
| 00000700:·7468·2e6a·7327·3b0a·6578·706f·7274·2063··th.js';.export·c | 00000700:·7468·2e6a·7327·3b0a·6578·706f·7274·2063··th.js';.export·c | ||
| 00000710:·6c61·7373·2050·6163·6b20·6578·7465·6e64··lass·Pack·extend | 00000710:·6c61·7373·2050·6163·6b20·6578·7465·6e64··lass·Pack·extend | Diff chunk too large, falling back to line-by-line diff (786 lines added, 753 lines removed) | |
| 00000720:·7320·4d69·6e69·7061·7373·207b·0a20·2020··s·Minipass·{.··· | 00000720:·7320·4d69·6e69·7061·7373·207b·0a20·2020··s·Minipass·{.··· | ||
| 00000730:·20 | 00000730:·2073·796e·6320·3d20·6661·6c73·653b·0a20···sync·=·false;.· | ||
| 00000740:·2020·206 | 00000740:·2020·206f·7074·3b0a·2020·2020·6377·643b·····opt;.····cwd; | ||
| 00000750:· | 00000750:·0a20·2020·206d·6178·5265·6164·5369·7a65··.····maxReadSize | ||
| 00000760:· | 00000760:·3b0a·2020·2020·7072·6573·6572·7665·5061··;.····preservePa | ||
| 00000770:· | 00000770:·7468·733b·0a20·2020·2073·7472·6963·743b··ths;.····strict; | ||
| 00000780:·6 | 00000780:·0a20·2020·206e·6f50·6178·3b0a·2020·2020··.····noPax;.···· | ||
| 00000790:· | 00000790:·7072·6566·6978·3b0a·2020·2020·6c69·6e6b··prefix;.····link | ||
| 000007a0:·6 | 000007a0:·4361·6368·653b·0a20·2020·2073·7461·7443··Cache;.····statC | ||
| 000007b0:· | 000007b0:·6163·6865·3b0a·2020·2020·6669·6c65·3b0a··ache;.····file;. | ||
| 000007c0:· | 000007c0:·2020·2020·706f·7274·6162·6c65·3b0a·2020······portable;.·· | ||
| 000007d0:· | 000007d0:·2020·7a69·703b·0a20·2020·2072·6561·6464····zip;.····readd | ||
| 000007e0:· | 000007e0:·6972·4361·6368·653b·0a20·2020·206e·6f44··irCache;.····noD | ||
| 000007f0:·6 | 000007f0:·6972·5265·6375·7273·653b·0a20·2020·2066··irRecurse;.····f | ||
| 00000800:· | 00000800:·6f6c·6c6f·773b·0a20·2020·206e·6f4d·7469··ollow;.····noMti | ||
| 00000810:· | 00000810:·6d65·3b0a·2020·2020·6d74·696d·653b·0a20··me;.····mtime;.· | ||
| 00000820:· | 00000820:·2020·2066·696c·7465·723b·0a20·2020·206a·····filter;.····j | ||
| 00000830:· | 00000830:·6f62·733b·0a20·2020·205b·5752·4954·4545··obs;.····[WRITEE | ||
| 00000840:· | 00000840:·4e54·5259·434c·4153·535d·3b0a·2020·2020··NTRYCLASS];.···· | ||
| 00000850:· | 00000850:·6f6e·5772·6974·6545·6e74·7279·3b0a·2020··onWriteEntry;.·· | ||
| 00000860:· | 00000860:·2020·2f2f·204e·6f74·653a·2077·6520·6163····//·Note:·we·ac | ||
| 00000870:· | 00000870:·7475·616c·6c79·2044·4f20·6e65·6564·2061··tually·DO·need·a | ||
| 00000880:·206 | 00000880:·206c·696e·6b65·6420·6c69·7374·2068·6572···linked·list·her | ||
| 00000890:· | 00000890:·652c·2062·6563·6175·7365·2077·650a·2020··e,·because·we.·· | ||
| 000008a0:· | 000008a0:·2020·2f2f·2073·6869·6674·2829·2074·6f20····//·shift()·to· | ||
| 000008b0:· | 000008b0:·7570·6461·7465·2074·6865·2068·6561·6420··update·the·head· | ||
| 000008c0:· | 000008c0:·6f66·2074·6865·206c·6973·7420·7768·6572··of·the·list·wher | ||
| 000008d0:·6 | 000008d0:·6520·7765·2073·7461·7274·2c20·6275·7420··e·we·start,·but· | ||
| 000008e0:· | 000008e0:·7374·696c·6c0a·2020·2020·2f2f·2077·6869··still.····//·whi | ||
| 000008f0:·6 | 000008f0:·6c65·2074·6861·7420·6861·7070·656e·732c··le·that·happens, | ||
| 00000900:·20 | 00000900:·206e·6565·6420·746f·206b·6e6f·7720·7768···need·to·know·wh | ||
| 00000910:·6 | 00000910:·6174·2074·6865·206e·6578·7420·6974·656d··at·the·next·item | ||
| 00000920:·2 | 00000920:·2069·6e20·7468·6520·7175·6575·650a·2020···in·the·queue.·· | ||
| 00000930:· | 00000930:·2020·2f2f·2077·696c·6c20·6265·2e20·5369····//·will·be.·Si | ||
| 00000940:· | 00000940:·6e63·6520·7765·2064·6f20·6d75·6c74·6970··nce·we·do·multip | ||
| 00000950:·6c | 00000950:·6c65·206a·6f62·7320·696e·2070·6172·616c··le·jobs·in·paral | ||
| 00000960:·6 | 00000960:·6c65·6c2c·2069·7427·7320·6e6f·7420·6173··lel,·it's·not·as | ||
| 00000970:· | 00000970:·2073·696d·706c·650a·2020·2020·2f2f·2061···simple.····//·a | ||
| 00000980:· | 00000980:·7320·6a75·7374·2061·6e20·4172·7261·792e··s·just·an·Array. | ||
| 00000990:·7 | 00000990:·7368·6966·7428·292c·2073·696e·6365·2074··shift(),·since·t | ||
| 000009a0:· | 000009a0:·6861·7420·776f·756c·6420·6c6f·7365·2074··hat·would·lose·t | ||
| 000009b0:· | 000009b0:·6865·2069·6e66·6f72·6d61·7469·6f6e·2061··he·information·a | ||
| 000009c0:·7 | 000009c0:·626f·7574·0a20·2020·202f·2f20·7468·6520··bout.····//·the· | ||
| 000009d0:·7 | 000009d0:·6e65·7874·206a·6f62·2069·6e20·7468·6520··next·job·in·the· | ||
| 000009e0:· | 000009e0:·6c69·7374·2e20·5765·2063·6f75·6c64·2061··list.·We·could·a | ||
| 000009f0:·6 | 000009f0:·6464·2061·202e·6e65·7874·2066·6965·6c64··dd·a·.next·field | ||
| 00000a00:·20 | 00000a00:·206f·6e20·7468·6520·5061·636b·4a6f·620a···on·the·PackJob. | ||
| 00000a10:· | 00000a10:·2020·2020·2f2f·2063·6c61·7373·2c20·6275······//·class,·bu | ||
| 00000a20:· | 00000a20:·7420·7468·656e·2077·6527·6420·6861·7665··t·then·we'd·have | ||
| 00000a30:· | 00000a30:·2074·6f20·6265·2074·7261·636b·696e·6720···to·be·tracking· | ||
| 00000a40:· | 00000a40:·7468·6520·7461·696c·206f·6620·7468·6520··the·tail·of·the· | ||
| 00000a50:· | 00000a50:·7175·6575·6520·7468·650a·2020·2020·2f2f··queue·the.····// | ||
| 00000a60:· | 00000a60:·2077·686f·6c65·2074·696d·652c·2061·6e64···whole·time,·and | ||
| 00000a70:·20 | 00000a70:·2059·616c·6c69·7374·206a·7573·7420·646f···Yallist·just·do | ||
| 00000a80:· | 00000a80:·6573·2074·6861·7420·666f·7220·7573·2061··es·that·for·us·a | ||
| 00000a90:· | 00000a90:·6e79·7761·792e·0a20·2020·205b·5155·4555··nyway..····[QUEU | ||
| 00000aa0:·3b0a·2020·2020·5b | 00000aa0:·455d·3b0a·2020·2020·5b4a·4f42·535d·203d··E];.····[JOBS]·= | ||
| 00000ab0:· | 00000ab0:·2030·3b0a·2020·2020·5b50·524f·4345·5353···0;.····[PROCESS | ||
| 00000ac0:· | 00000ac0:·494e·475d·203d·2066·616c·7365·3b0a·2020··ING]·=·false;.·· | ||
| 00000ad0:· | 00000ad0:·2020·5b45·4e44·4544·5d20·3d20·6661·6c73····[ENDED]·=·fals | ||
| 00000ae0:· | 00000ae0:·653b·0a20·2020·2063·6f6e·7374·7275·6374··e;.····construct | ||
| 00000af0:· | 00000af0:·6f72·286f·7074·203d·207b·7d29·207b·0a20··or(opt·=·{})·{.· | ||
| 00000b00:· | 00000b00:·2020·2020·2020·202f·2f40·7473·2d69·676e·········//@ts-ign | ||
| 00000b10:· | 00000b10:·6f72·650a·2020·2020·2020·2020·7375·7065··ore.········supe | ||
| 00000b20:· | 00000b20:·7228·293b·0a20·2020·2020·2020·2074·6869··r();.········thi | ||
| 00000b30:· | 00000b30:·732e·6f70·7420·3d20·6f70·743b·0a20·2020··s.opt·=·opt;.··· | ||
| 00000b40:· | 00000b40:·2020·2020·2074·6869·732e·6669·6c65·203d·······this.file·= | ||
| 00000b50:·20 | 00000b50:·206f·7074·2e66·696c·6520·7c7c·2027·273b···opt.file·||·''; | ||
| 00000b60:· | 00000b60:·0a20·2020·2020·2020·2074·6869·732e·6377··.········this.cw | ||
| 00000b70:·63 | 00000b70:·6420·3d20·6f70·742e·6377·6420·7c7c·2070··d·=·opt.cwd·||·p | ||
| 00000b80:· | 00000b80:·726f·6365·7373·2e63·7764·2829·3b0a·2020··rocess.cwd();.·· | ||
| 00000b90:· | 00000b90:·2020·2020·2020·7468·6973·2e6d·6178·5265········this.maxRe | ||
| 00000ba0:·6164·5369·7a65· | 00000ba0:·6164·5369·7a65·203d·206f·7074·2e6d·6178··adSize·=·opt.max | ||
| 00000bb0:· | 00000bb0:·5265·6164·5369·7a65·3b0a·2020·2020·2020··ReadSize;.······ | ||
| 00000bc0:· | 00000bc0:·2020·7468·6973·2e70·7265·7365·7276·6550····this.preserveP | ||
| 00000bd0:· | 00000bd0:·6174·6873·203d·2021·216f·7074·2e70·7265··aths·=·!!opt.pre | ||
| 00000be0:· | 00000be0:·7365·7276·6550·6174·6873·3b0a·2020·2020··servePaths;.···· | ||
| 00000bf0:·2 | 00000bf0:·2020·2020·7468·6973·2e73·7472·6963·7420······this.strict· | ||
| 00000c00:· | 00000c00:·3d20·2121·6f70·742e·7374·7269·6374·3b0a··=·!!opt.strict;. | ||
| 00000c10:·20 | 00000c10:·2020·2020·2020·2020·7468·6973·2e6e·6f50··········this.noP | ||
| 00000c20:· | 00000c20:·6178·203d·2021·216f·7074·2e6e·6f50·6178··ax·=·!!opt.noPax | ||
| 00000c30:· | 00000c30:·3b0a·2020·2020·2020·2020·7468·6973·2e70··;.········this.p | ||
| 00000c40:· | 00000c40:·7265·6669·7820·3d20·6e6f·726d·616c·697a··refix·=·normaliz | ||
| 00000c50:· | 00000c50:·6557·696e·646f·7773·5061·7468·286f·7074··eWindowsPath(opt | ||
| 00000c60:·2 | 00000c60:·2e70·7265·6669·7820·7c7c·2027·2729·3b0a··.prefix·||·'');. | ||
| 00000c70:· | 00000c70:·2020·2020·2020·2020·7468·6973·2e6c·696e··········this.lin | ||
| 00000c80:·6163·6865·20 | 00000c80:·6b43·6163·6865·203d·206f·7074·2e6c·696e··kCache·=·opt.lin | ||
| 00000c90:· | 00000c90:·6b43·6163·6865·207c·7c20·6e65·7720·4d61··kCache·||·new·Ma | ||
| 00000ca0:·7 | 00000ca0:·7028·293b·0a20·2020·2020·2020·2074·6869··p();.········thi | ||
| 00000cb0:·7374·6174·4361·6368·6520· | 00000cb0:·732e·7374·6174·4361·6368·6520·3d20·6f70··s.statCache·=·op | ||
| 00000cc0:· | 00000cc0:·742e·7374·6174·4361·6368·6520·7c7c·206e··t.statCache·||·n | ||
| 00000cd0:· | 00000cd0:·6577·204d·6170·2829·3b0a·2020·2020·2020··ew·Map();.······ | ||
| Max diff block lines reached; -1/106684 bytes (-0.00%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"pack.js", | 2 | ····"file":·"pack.js", |
| 3 | ····"mappings":·"AAAA,gCAAgC;AAChC,qEAAqE;AACrE,+BAA+B;AAC/B,yDAAyD;AACzD,8CAA8C;AAC9C,+DAA+D;AAC/D,oCAAoC;AACpC,uEAAuE;AAEvE,OAAO,EAAkB,MAAM,IAAI,CAAA;AACnC,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,GACd,MAAM,kBAAkB,CAAA;AAEzB,MAAM,OAAO,OAAO;IAClB,IAAI,CAAQ;IACZ,QAAQ,CAAQ;IAChB,KAAK,CAA6B;IAClC,IAAI,CAAQ;IACZ,OAAO,CAAW;IAClB,OAAO,GAAY,KAAK,CAAA;IACxB,MAAM,GAAY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AI,CAAA;gBAClB,MAAM,IAAI,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;gBACrD,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAA;YAChC,CAAC,CAAC,CAAA;QACJ,CAAC;QAED,qBAAqB;QACrB,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;QAC1D,oBAAoB;QAEpB,IAAI,GAAG,EAAE,CAAC;YACR,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE;gBACxB,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YAClB,CAAC,CAAC,CAAA;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE;gBACxB,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAA;YACrB,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/pack.ts" | 7 | ········"../../src/pack.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·A·readable·tar·stream·creator\n//·Technically,·this·is·a·transform·stream·that·you·write·paths·into,\n//·and·tar·format·comes·out·of.\n//·The·`add()`·method·is·like·`write()`·but·returns·this,\n//·and·end()·return·`this`·as·well,·so·you·can\n//·do·`new·Pack(opt).add('files').add('dir').end().pipe(output)\n//·You·could·also·do·something·like:\n//·streamOfPaths().pipe(new·Pack()).pipe(new·fs.WriteStream('out.tar'))\n\nimport·fs,·{·type·Stats·}·from·'fs'\nimport·{\n··WriteEntry,\n··WriteEntrySync,\n··WriteEntryTar,\n}·from·'./write-entry.js'\n\nexport·class·PackJob·{\n··path:·string\n··absolute:·string\n··entry?:·WriteEntry·|·WriteEntryTar\n··stat?:·Stats\n··readdir?:·string[]\n··pending:·boolean·=·false\n··ignore:·boolean·=·false\n··piped:·boolean·=·false\n··constructor(path:·string,·absolute:·string)·{\n····this.path·=·path·||·'./'\n····this.absolute·=·absolute\n··}\n}\n\nimport·{·Minipass·}·from·'minipass'\nimport·*·as·zlib·from·'minizlib'\nimport·{·Yallist·}·from·'yallist'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{\n··WarnEvent,\n··warnMethod,\n··type·WarnData,\n··type·Warner,\n}·from·'./warn-method.js'\n\nconst·EOF·=·Buffer.alloc(1024)\nconst·ONSTAT·=·Symbol('onStat')\nconst·ENDED·=·Symbol('ended')\nconst·QUEUE·=·Symbol('queue')\nconst·CURRENT·=·Symbol('current')\nconst·PROCESS·=·Symbol('process')\nconst·PROCESSING·=·Symbol('processing')\nconst·PROCESSJOB·=·Symbol('processJob')\nconst·JOBS·=·Symbol('jobs')\nconst·JOBDONE·=·Symbol('jobDone')\nconst·ADDFSENTRY·=·Symbol('addFSEntry')\nconst·ADDTARENTRY·=·Symbol('addTarEntry')\nconst·STAT·=·Symbol('stat')\nconst·READDIR·=·Symbol('readdir')\nconst·ONREADDIR·=·Symbol('onreaddir')\nconst·PIPE·=·Symbol('pipe')\nconst·ENTRY·=·Symbol('entry')\nconst·ENTRYOPT·=·Symbol('entryOpt')\nconst·WRITEENTRYCLASS·=·Symbol('writeEntryClass')\nconst·WRITE·=·Symbol('write')\nconst·ONDRAIN·=·Symbol('ondrain')\n\nimport·path·from·'path'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{·TarOptions·}·from·'./options.js'\n\nexport·class·Pack\n··extends·Minipass<Buffer,·ReadEntry·|·string,·WarnEvent<Buffer>>\n··implements·Warner\n{\n··opt:·TarOptions\n··cwd:·string\n··maxReadSize?:·number\n··preservePaths:·boolean\n··strict:·boolean\n··noPax:·boolean\n··prefix:·string\n··linkCache:·Exclude<TarOptions['linkCache'],·undefined>\n··statCache:·Exclude<TarOptions['s | 10 | ········"//·A·readable·tar·stream·creator\n//·Technically,·this·is·a·transform·stream·that·you·write·paths·into,\n//·and·tar·format·comes·out·of.\n//·The·`add()`·method·is·like·`write()`·but·returns·this,\n//·and·end()·return·`this`·as·well,·so·you·can\n//·do·`new·Pack(opt).add('files').add('dir').end().pipe(output)\n//·You·could·also·do·something·like:\n//·streamOfPaths().pipe(new·Pack()).pipe(new·fs.WriteStream('out.tar'))\n\nimport·fs,·{·type·Stats·}·from·'fs'\nimport·{\n··WriteEntry,\n··WriteEntrySync,\n··WriteEntryTar,\n}·from·'./write-entry.js'\n\nexport·class·PackJob·{\n··path:·string\n··absolute:·string\n··entry?:·WriteEntry·|·WriteEntryTar\n··stat?:·Stats\n··readdir?:·string[]\n··pending:·boolean·=·false\n··ignore:·boolean·=·false\n··piped:·boolean·=·false\n··constructor(path:·string,·absolute:·string)·{\n····this.path·=·path·||·'./'\n····this.absolute·=·absolute\n··}\n}\n\nimport·{·Minipass·}·from·'minipass'\nimport·*·as·zlib·from·'minizlib'\nimport·{·Yallist·}·from·'yallist'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{\n··WarnEvent,\n··warnMethod,\n··type·WarnData,\n··type·Warner,\n}·from·'./warn-method.js'\n\nconst·EOF·=·Buffer.alloc(1024)\nconst·ONSTAT·=·Symbol('onStat')\nconst·ENDED·=·Symbol('ended')\nconst·QUEUE·=·Symbol('queue')\nconst·CURRENT·=·Symbol('current')\nconst·PROCESS·=·Symbol('process')\nconst·PROCESSING·=·Symbol('processing')\nconst·PROCESSJOB·=·Symbol('processJob')\nconst·JOBS·=·Symbol('jobs')\nconst·JOBDONE·=·Symbol('jobDone')\nconst·ADDFSENTRY·=·Symbol('addFSEntry')\nconst·ADDTARENTRY·=·Symbol('addTarEntry')\nconst·STAT·=·Symbol('stat')\nconst·READDIR·=·Symbol('readdir')\nconst·ONREADDIR·=·Symbol('onreaddir')\nconst·PIPE·=·Symbol('pipe')\nconst·ENTRY·=·Symbol('entry')\nconst·ENTRYOPT·=·Symbol('entryOpt')\nconst·WRITEENTRYCLASS·=·Symbol('writeEntryClass')\nconst·WRITE·=·Symbol('write')\nconst·ONDRAIN·=·Symbol('ondrain')\n\nimport·path·from·'path'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{·TarOptions·}·from·'./options.js'\n\nexport·class·Pack\n··extends·Minipass<Buffer,·ReadEntry·|·string,·WarnEvent<Buffer>>\n··implements·Warner\n{\n··sync:·boolean·=·false\n··opt:·TarOptions\n··cwd:·string\n··maxReadSize?:·number\n··preservePaths:·boolean\n··strict:·boolean\n··noPax:·boolean\n··prefix:·string\n··linkCache:·Exclude<TarOptions['linkCache'],·undefined>\n··statCache:·Exclude<TarOptions['sta[·...·truncated·by·diffoscope;·len:·6333,·SHA:·afa835b83c96b9d9359bacfde36c2393550009304e4b9bd623fe1d3f7d6f38f1·...·]\n····}\n\n····this[PROCESS]()\n··}\n\n··[READDIR](job:·PackJob)·{\n····job.pending·=·true\n····this[JOBS]·+=·1\n····fs.readdir(job.absolute,·(er,·entries)·=>·{\n······job.pending·=·false\n······this[JOBS]·-=·1\n······if·(er)·{\n········return·this.emit('error',·er)\n······}\n······this[ONREADDIR](job,·entries)\n····})\n··}\n\n··[ONREADDIR](job:·PackJob,·entries:·string[])·{\n····this.readdirCache.set(job.absolute,·entries)\n····job.readdir·=·entries\n····this[PROCESS]()\n··}\n\n··[PROCESS]()·{\n····if·(this[PROCESSING])·{\n······return\n····}\n\n····this[PROCESSING]·=·true\n····for·(\n······let·w·=·this[QUEUE].head;\n······!!w·&&·this[JOBS]·<·this.jobs;\n······w·=·w.next\n····)·{\n······this[PROCESSJOB](w.value)\n······if·(w.value.ignore)·{\n········const·p·=·w.next\n········this[QUEUE].removeNode(w)\n········w.next·=·p\n······}\n····}\n\n····this[PROCESSING]·=·false\n\n····if·(this[ENDED]·&&·!this[QUEUE].length·&&·this[JOBS]·===·0)·{\n······if·(this.zip)·{\n········this.zip.end(EOF)\n······}·else·{\n········super.write(EOF·as·unknown·as·string)\n········super.end()\n······}\n····}\n··}\n\n··get·[CURRENT]()·{\n····return·this[QUEUE]·&&·this[QUEUE].head·&&·this[QUEUE].head.value\n··}\n\n··[JOBDONE](_job:·PackJob)·{\n····this[QUEUE].shift()\n····this[JOBS]·-=·1\n····this[PROCESS]()\n··}\n\n··[PROCESSJOB](job:·PackJob)·{\n····if·(job.pending)·{\n······return\n····}\n\n····if·(job.entry)·{\n······if·(job·===·this[CURRENT]·&&·!job.piped)·{\n········this[PIPE](job)\n······}\n······return\n····}\n\n····if·(!job.stat)·{\n······const·sc·=·this.statCache.get(job.absolute)\n······if·(sc)·{\n········this[ONSTAT](job,·sc)\n······}·else·{\n········this[STAT](job)\n······}\n····}\n····if·(!job.stat)·{\n······return\n····}\n\n····//·filtered·out!\n····if·(job.ignore)·{\n······return\n····}\n\n····if·(\n······!this.noDirRecurse·&&\n······job.stat.isDirectory()·&&\n······!job.readdir\n····)·{\n······const·rc·=·this.readdirCache.get(job.absolute)\n······if·(rc)·{\n········this[ONREADDIR](job,·rc)\n······}·else·{\n········this[READDIR](job)\n······}\n······if·(!job.readdir)·{\n········return\n······}\n····}\n\n····//·we·know·it·doesn't·have·an·entry,·because·that·got·checked·above\n····job.entry·=·this[ENTRY](job)\n····if·(!job.entry)·{\n······job.ignore·=·true\n······return\n····}\n\n····if·(job·===·this[CURRENT]·&&·!job.piped)·{\n······this[PIPE](job)\n····}\n··}\n\n··[ENTRYOPT](job:·PackJob):·TarOptions·{\n····return·{\n······onwarn:·(code,·msg,·data)·=>·this.warn(code,·msg,·data),\n······noPax:·this.noPax,\n······cwd:·this.cwd,\n······absolute:·job.absolute,\n······preservePaths:·this.preservePaths,\n······maxReadSize:·this.maxReadSize,\n······strict:·this.strict,\n······portable:·this.portable,\n······linkCache:·this.linkCache,\n······statCache:·this.statCache,\n······noMtime:·this.noMtime,\n······mtime:·this.mtime,\n······prefix:·this.prefix,\n······onWriteEntry:·this.onWriteEntry,\n····}\n··}\n\n··[ENTRY](job:·PackJob)·{\n····this[JOBS]·+=·1\n····try·{\n······const·e·=·new·this[WRITEENTRYCLASS](\n········job.path,\n········this[ENTRYOPT](job),\n······)\n······return·e\n········.on('end',·()·=>·this[JOBDONE](job))\n········.on('error',·er·=>·this.emit('error',·er))\n····}·catch·(er)·{\n······this.emit('error',·er)\n····}\n··}\n\n··[ONDRAIN]()·{\n····if·(this[CURRENT]·&&·this[CURRENT].entry)·{\n······this[CURRENT].entry.resume()\n····}\n··}\n\n··//·like·.pipe()·but·using·super,·because·our·write()·is·special\n··[PIPE](job:·PackJob)·{\n····job.piped·=·true\n\n····if·(job.readdir)·{\n······job.readdir.forEach(entry·=>·{\n········const·p·=·job.path\n········const·base·=·p·===·'./'·?·''·:·p.replace(/\\/*$/,·'/')\n········this[ADDFSENTRY](base·+·entry)\n······})\n····}\n\n····const·source·=·job.entry\n····const·zip·=·this.zip\n····/*·c8·ignore·start·*/\n····if·(!source)·throw·new·Error('cannot·pipe·without·source')\n····/*·c8·ignore·stop·*/\n\n····if·(zip)·{\n······source.on('data',·chunk·=>·{\n········if·(!zip.write(chunk))·{\n··········source.pause()\n········}\n······})\n····}·else·{\n······source.on('data',·chunk·=>·{\n········if·(!super.write(chunk·as·unknown·as·string))·{\n··········source.pause()\n········}\n······})\n····}\n··}\n\n··pause()·{\n····if·(this.zip)·{\n······this.zip.pause()\n····}\n····return·super.pause()\n··}\n··warn(\n····code:·string,\n····message:·string·|·Error,\n····data:·WarnData·=·{},\n··):·void·{\n····warnMethod(this,·code,·message,·data)\n··}\n}\n\nexport·class·PackSync·extends·Pack·{\n··sync:·true·=·true\n··constructor(opt:·TarOptions)·{\n····super(opt)\n····this[WRITEENTRYCLASS]·=·WriteEntrySync\n··}\n\n··//·pause/resume·are·no-ops·in·sync·streams.\n··pause()·{}\n··resume()·{}\n\n··[STAT](job:·PackJob)·{\n····const·stat·=·this.follow·?·'statSync'·:·'lstatSync'\n····this[ONSTAT](job,·fs[stat](job.absolute))\n··}\n\n··[READDIR](job:·PackJob)·{\n····this[ONREADDIR](job,·fs.readdirSync(job.absolute))\n··}\n\n··//·gotta·get·it·all·in·this·tick\n··[PIPE](job:·PackJob)·{\n····const·source·=·job.entry\n····const·zip·=·this.zip\n\n····if·(job.readdir)·{\n······job.readdir.forEach(entry·=>·{\n········const·p·=·job.path\n········const·base·=·p·===·'./'·?·''·:·p.replace(/\\/*$/,·'/')\n········this[ADDFSENTRY](base·+·entry)\n······})\n····}\n\n····/*·c8·ignore·start·*/\n····if·(!source)·throw·new·Error('Cannot·pipe·without·source')\n····/*·c8·ignore·stop·*/\n\n····if·(zip)·{\n······source.on('data',·chunk·=>·{\n········zip.write(chunk)\n······})\n····}·else·{\n······source.on('data',·chunk·=>·{\n········super[WRITE](chunk)\n······})\n····}\n··}\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 1, 10 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 3 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 4 | import·{·EventEmitter·as·EE·}·from·'events'; | 1 | import·{·EventEmitter·as·EE·}·from·'events'; |
| 5 | import·{·BrotliDecompress,·Unzip,·ZstdDecompress·}·from·'minizlib'; | 2 | import·{·BrotliDecompress,·Unzip,·ZstdDecompress·}·from·'minizlib'; |
| 6 | import·{·TarOptions·}·from·'./options.js'; | 3 | import·{·TarOptions·}·from·'./options.js'; |
| 7 | import·{·Pax·}·from·'./pax.js'; | 4 | import·{·Pax·}·from·'./pax.js'; |
| 8 | import·{·ReadEntry·}·from·'./read-entry.js'; | 5 | import·{·ReadEntry·}·from·'./read-entry.js'; |
| 9 | import·{·type·WarnData,·type·Warner·}·from·'./warn-method.js'; | 6 | import·{·type·WarnData,·type·Warner·}·from·'./warn-method.js'; |
| 10 | declare·const·STATE:·unique·symbol; | 7 | declare·const·STATE:·unique·symbol; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"parse.d.ts", | 2 | ····"file":·"parse.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAoBA,OAAO,EAAE,YAAY,IAAI,EAAE,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAElE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,MAAM,EACZ,MAAM,kBAAkB,CAAA;AAOzB,QAAA,MAAM,KAAK,eAAkB,CAAA;AAC7B,QAAA,MAAM,UAAU,eAAuB,CAAA;AACvC,QAAA,MAAM,SAAS,eAAsB,CAAA;AACrC,QAAA,MAAM,SAAS,eAAsB,CAAA;AACrC,QAAA,MAAM,YAAY,eAAyB,CAAA;AAC3C,QAAA,MAAM,EAAE,eAA2B,CAAA;AACnC,QAAA,MAAM,GAAG,eAAiC,CAAA;AAC1C,QAAA,MAAM,IAAI,eAAiB,CAAA;AAC3B,QAAA,MAAM,QAAQ,eAAqB,CAAA;AACnC,QAAA,MAAM,MAAM,eAAmB,CAAA;AAC/B,QAAA,MAAM,KAAK,eAAkB,CAAA;AAC7B,QAAA,MAAM,KAAK,eAAkB,CAAA;AAC7B,QAAA,MAAM,UAAU,eAAuB,CAAA;AACvC,QAAA,MAAM,IAAI,eAAiB,CAAA;AAC3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Y7C,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,GAAG;IAQnD,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,SAAS;IAkC3B,KAAK,CAAC,KAAK,EAAE,KAAK;IAOlB,KAAK,CACH,MAAM,EAAE,UAAU,GAAG,MAAM,EAC3B,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,GAChC,OAAO;IACV,KAAK,CACH,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,cAAc,EACzB,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,GAChC,OAAO;IAyIV,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,MAAM;IAOxB,CAAC,QAAQ,CAAC;IA0BV,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM;IAkC7B,CAAC,eAAe,CAAC,CAAC,KAAK,EAAE,MAAM;IA6C/B,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;IAC1B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;IACjD,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;CAmCnE", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/parse.ts" | 7 | ········"../../src/parse.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"path-reservations.d.ts", | 2 | ····"file":·"path-reservations.d.ts", |
| 3 | ····"mappings":·"AAgBA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,IAAI,CAAA;AAmBjD,qBAAa,gBAAgB;;IAY3B,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,OAAO;IA | 3 | ····"mappings":·"AAgBA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,IAAI,CAAA;AAmBjD,qBAAa,gBAAgB;;IAY3B,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,OAAO;IA8DpC,KAAK,CAAC,EAAE,EAAE,OAAO;CA8ElB", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/path-reservations.ts" | 7 | ········"../../src/path-reservations.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 96, 247 lines modified | Offset 96, 246 lines modified | ||
| 000005f0:·5061·7468·2c20·6265·6361·7573·6520·7765··Path,·because·we | 000005f0:·5061·7468·2c20·6265·6361·7573·6520·7765··Path,·because·we | ||
| 00000600:·2073·6b69·7020·7468·6973·2065·6e74·6972···skip·this·entir | 00000600:·2073·6b69·7020·7468·6973·2065·6e74·6972···skip·this·entir | ||
| 00000610:·656c·7920·666f·7220·7769·6e64·6f77·730a··ely·for·windows. | 00000610:·656c·7920·666f·7220·7769·6e64·6f77·730a··ely·for·windows. | ||
| 00000620:·2020·2020·2020·2020·2020·2020·2020·2020·················· | 00000620:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 00000630:·2020·2020·7265·7475·726e·2073·7472·6970······return·strip | 00000630:·2020·2020·7265·7475·726e·2073·7472·6970······return·strip | ||
| 00000640:·5472·6169·6c69·6e67·536c·6173·6865·7328··TrailingSlashes( | 00000640:·5472·6169·6c69·6e67·536c·6173·6865·7328··TrailingSlashes( | ||
| 00000650:·6a6f·696e·286e·6f72·6d61·6c69·7a65·556e··join(normalizeUn | 00000650:·6a6f·696e·286e·6f72·6d61·6c69·7a65·556e··join(normalizeUn | ||
| 00000660:·6963·6f64·6528·7029·2929·3b0a·2020·2020··icode(p)));.···· | |||
| 00000660:·6963·6f64·6528·7029·2929·2e74·6f4c·6f77··icode(p))).toLow | |||
| 00000670:·6572·4361·7365·2829·3b0a·2020·2020·2020··erCase();.······ | |||
| 000006 | 00000670:·2020·2020·2020·2020·2020·2020·7d29·3b0a··············});. | ||
| 000006 | 00000680:·2020·2020·2020·2020·636f·6e73·7420·6469··········const·di | ||
| 000006 | 00000690:·7273·203d·206e·6577·2053·6574·2870·6174··rs·=·new·Set(pat | ||
| 000006 | 000006a0:·6873·2e6d·6170·2870·6174·6820·3d3e·2067··hs.map(path·=>·g | ||
| 000006 | 000006b0:·6574·4469·7273·2870·6174·6829·292e·7265··etDirs(path)).re | ||
| 000006 | 000006c0:·6475·6365·2828·612c·2062·2920·3d3e·2061··duce((a,·b)·=>·a | ||
| 000006 | 000006d0:·2e63·6f6e·6361·7428·6229·2929·3b0a·2020··.concat(b)));.·· | ||
| 000006 | 000006e0:·2020·2020·2020·7468·6973·2e23·7265·7365········this.#rese | ||
| 00000 | 000006f0:·7276·6174·696f·6e73·2e73·6574·2866·6e2c··rvations.set(fn, | ||
| 000007 | 00000700:·207b·2064·6972·732c·2070·6174·6873·207d···{·dirs,·paths·} | ||
| 000007 | 00000710:·293b·0a20·2020·2020·2020·2066·6f72·2028··);.········for·( | ||
| 000007 | 00000720:·636f·6e73·7420·7020·6f66·2070·6174·6873··const·p·of·paths | ||
| 00000740:·7b0a·2020·2020·2020·2020·2020·2020·636f··{.············co | |||
| 00000750:·6e73·7420·7120·3d20·7468·6973·2e23·7175··nst·q·=·this.#qu | |||
| 00000760:·6575·6573·2e67·6574·2870·293b·0a20·2020··eues.get(p);.··· | |||
| 00000770:·2020·2020·2020·2020·2069·6620·2821·7129···········if·(!q) | |||
| 000007 | 00000730:·2920·7b0a·2020·2020·2020·2020·2020·2020··)·{.············ | ||
| 00000740:·636f·6e73·7420·7120·3d20·7468·6973·2e23··const·q·=·this.# | |||
| 00000750:·7175·6575·6573·2e67·6574·2870·293b·0a20··queues.get(p);.· | |||
| 00000790:·2020·2074·6869·732e·2371·7565·7565·732e·····this.#queues. | |||
| 000007a0:·7365·7428·702c·205b·666e·5d29·3b0a·2020··set(p,·[fn]);.·· | |||
| 000007b0:·2020·2020·2020·2020·2020·7d0a·2020·2020············}.···· | |||
| 000007c0:·2020·2020·2020·2020·656c·7365·207b·0a20··········else·{.· | |||
| 000007 | 00000760:·2020·2020·2020·2020·2020·2069·6620·2821·············if·(! | ||
| 000007e0:·2e70·7573·6828·666e·293b·0a20·2020·2020··.push(fn);.····· | |||
| 000007f0:·2020·2020·2020·207d·0a20·2020·2020·2020·········}.······· | |||
| 00000800:·207d·0a20·2020·2020·2020·2066·6f72·2028···}.········for·( | |||
| 00000810:·636f·6e73·7420·6469·7220·6f66·2064·6972··const·dir·of·dir | |||
| 00000 | 00000770:·7129·207b·0a20·2020·2020·2020·2020·2020··q)·{.··········· | ||
| 00000780:·2020·2020·2074·6869·732e·2371·7565·7565·······this.#queue | |||
| 00000790:·732e·7365·7428·702c·205b·666e·5d29·3b0a··s.set(p,·[fn]);. | |||
| 00000830:·2063·6f6e·7374·2071·203d·2074·6869·732e···const·q·=·this. | |||
| 00000840:·2371·7565·7565·732e·6765·7428·6469·7229··#queues.get(dir) | |||
| 00000850:·3b0a·2020·2020·2020·2020·2020·2020·6966··;.············if | |||
| 00000860:·2028·2171·2920·7b0a·2020·2020·2020·2020···(!q)·{.········ | |||
| 00000870:·2020·2020·2020·2020·7468·6973·2e23·7175··········this.#qu | |||
| 00000880:·6575·6573·2e73·6574·2864·6972·2c20·5b6e··eues.set(dir,·[n | |||
| 00000890:·6577·2053·6574·285b·666e·5d29·5d29·3b0a··ew·Set([fn])]);. | |||
| 00000 | 000007a0:·2020·2020·2020·2020·2020·2020·7d0a·2020··············}.·· | ||
| 00000 | 000007b0:·2020·2020·2020·2020·2020·656c·7365·207b············else·{ | ||
| 00000 | 000007c0:·0a20·2020·2020·2020·2020·2020·2020·2020··.··············· | ||
| 000007d0:·2071·2e70·7573·6828·666e·293b·0a20·2020···q.push(fn);.··· | |||
| 000008d0:·2063·6f6e·7374·206c·203d·2071·5b71·2e6c···const·l·=·q[q.l | |||
| 000008e0:·656e·6774·6820·2d20·315d·3b0a·2020·2020··ength·-·1];.···· | |||
| 00000 | 000007e0:·2020·2020·2020·2020·207d·0a20·2020·2020···········}.····· | ||
| 00000 | 000007f0:·2020·207d·0a20·2020·2020·2020·2066·6f72·····}.········for | ||
| 00000800:·2028·636f·6e73·7420·6469·7220·6f66·2064···(const·dir·of·d | |||
| 00000 | 00000810:·6972·7329·207b·0a20·2020·2020·2020·2020··irs)·{.········· | ||
| 00000 | 00000820:·2020·2063·6f6e·7374·2071·203d·2074·6869·····const·q·=·thi | ||
| 00000830:·732e·2371·7565·7565·732e·6765·7428·6469··s.#queues.get(di | |||
| 00000 | 00000840:·7229·3b0a·2020·2020·2020·2020·2020·2020··r);.············ | ||
| 00000850:·6966·2028·2171·2920·7b0a·2020·2020·2020··if·(!q)·{.······ | |||
| 00000860:·2020·2020·2020·2020·2020·7468·6973·2e23············this.# | |||
| 00000870:·7175·6575·6573·2e73·6574·2864·6972·2c20··queues.set(dir,· | |||
| 00000880:·5b6e·6577·2053·6574·285b·666e·5d29·5d29··[new·Set([fn])]) | |||
| 00000890:·3b0a·2020·2020·2020·2020·2020·2020·7d0a··;.············}. | |||
| 000008a0:·2020·2020·2020·2020·2020·2020·656c·7365··············else | |||
| 000008b0:·207b·0a20·2020·2020·2020·2020·2020·2020···{.············· | |||
| 000008c0:·2020·2063·6f6e·7374·206c·203d·2071·5b71·····const·l·=·q[q | |||
| 000008d0:·2e6c·656e·6774·6820·2d20·315d·3b0a·2020··.length·-·1];.·· | |||
| 000008e0:·2020·2020·2020·2020·2020·2020·2020·6966················if | |||
| 000008f0:·2028·6c20·696e·7374·616e·6365·6f66·2053···(l·instanceof·S | |||
| 00000900:·6574·2920·7b0a·2020·2020·2020·2020·2020··et)·{.·········· | |||
| 00000910:·2020·2020·2020·2020·2020·6c2e·6164·6428············l.add( | |||
| 00000920:·666e·293b·0a20·2020·2020·2020·2020·2020··fn);.··········· | |||
| 000009 | 00000930:·2020·2020·207d·0a20·2020·2020·2020·2020·······}.········· | ||
| 000009 | 00000940:·2020·2020·2020·2065·6c73·6520·7b0a·2020·········else·{.·· | ||
| 000009 | 00000950:·2020·2020·2020·2020·2020·2020·2020·2020·················· | ||
| 000009 | 00000960:·2020·712e·7075·7368·286e·6577·2053·6574····q.push(new·Set | ||
| 000009 | 00000970:·285b·666e·5d29·293b·0a20·2020·2020·2020··([fn]));.······· | ||
| 00000980:·2020·2020·2020·2020·207d·0a20·2020·2020···········}.····· | |||
| 00000990:·2020·2020·2020·207d·0a20·2020·2020·2020·········}.······· | 00000990:·2020·2020·2020·207d·0a20·2020·2020·2020·········}.······· | ||
| 000009a0:·2020·2020·207d·0a20·2020·2020·2020·207d·······}.········} | |||
| 000009 | 000009a0:·207d·0a20·2020·2020·2020·2072·6574·7572···}.········retur | ||
| 000009 | 000009b0:·6e20·7468·6973·2e23·7275·6e28·666e·293b··n·this.#run(fn); | ||
| 000009 | 000009c0:·0a20·2020·207d·0a20·2020·202f·2f20·7265··.····}.····//·re | ||
| 000009 | 000009d0:·7475·726e·2074·6865·2071·7565·7565·7320··turn·the·queues· | ||
| 000009 | 000009e0:·666f·7220·6561·6368·2070·6174·6820·7468··for·each·path·th | ||
| 00000 | 000009f0:·6520·6675·6e63·7469·6f6e·2063·6172·6573··e·function·cares | ||
| 00000a | 00000a00:·2061·626f·7574·0a20·2020·202f·2f20·666e···about.····//·fn | ||
| 00000a20 | 00000a10:·203d·3e20·7b70·6174·6873·2c20·6469·7273···=>·{paths,·dirs | ||
| 00000a | 00000a20:·7d0a·2020·2020·2367·6574·5175·6575·6573··}.····#getQueues | ||
| 00000a | 00000a30:·2866·6e29·207b·0a20·2020·2020·2020·2063··(fn)·{.········c | ||
| 00000a | 00000a40:·6f6e·7374·2072·6573·203d·2074·6869·732e··onst·res·=·this. | ||
| 00000a | 00000a50:·2372·6573·6572·7661·7469·6f6e·732e·6765··#reservations.ge | ||
| 00000a | 00000a60:·7428·666e·293b·0a20·2020·2020·2020·202f··t(fn);.········/ | ||
| 00000a | 00000a70:·2a20·6338·2069·676e·6f72·6520·7374·6172··*·c8·ignore·star | ||
| 00000a | 00000a80:·7420·2a2f·0a20·2020·2020·2020·2069·6620··t·*/.········if· | ||
| 00000a | 00000a90:·2821·7265·7329·207b·0a20·2020·2020·2020··(!res)·{.······· | ||
| Max diff block lines reached; 1981/33398 bytes (5.93%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"path-reservations.js", | 2 | ····"file":·"path-reservations.js", |
| 3 | ····"mappings":·"AAAA,sCAAsC;AACtC,iCAAiC;AACjC,qDAAqD;AACrD,mDAAmD;AACnD,EAAE;AACF,yDAAyD;AACzD,qDAAqD;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,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AC,GAAG,CAAC,CAAC,CAAC,CAAA;gBACb,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;YACf,CAAC;QACH,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QACxB,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAA;QACjC,OAAO,IAAI,CAAA;IACb,CAAC;CACF", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/path-reservations.ts" | 7 | ········"../../src/path-reservations.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·A·path·exclusive·reservation·system\n//·reserve([list,·of,·paths],·fn)\n//·When·the·fn·is·first·in·line·for·all·its·paths,·it\n//·is·called·with·a·cb·that·clears·the·reservation.\n//\n//·Used·by·async·unpack·to·avoid·clobbering·paths·in·use,\n//·while·still·allowing·maximal·safe·parallelization.\n\nimport·{·join·}·from·'node:path'\nimport·{·normalizeUnicode·}·from·'./normalize-unicode.js'\nimport·{·stripTrailingSlashes·}·from·'./strip-trailing-slashes.js'\n\nconst·platform·=\n··process.env.TESTING_TAR_FAKE_PLATFORM·||·process.platform\nconst·isWindows·=·platform·===·'win32'\n\nexport·type·Reservation·=·{\n··paths:·string[]\n··dirs:·Set<string>\n}\n\nexport·type·Handler·=·(clear:·()·=>·void)·=>·void\n\n//·return·a·set·of·parent·dirs·for·a·given·path\n//·'/a/b/c/d'·->·['/',·'/a',·'/a/b',·'/a/b/c',·'/a/b/c/d']\nconst·getDirs·=·(path:·string)·=>·{\n··const·dirs·=·path\n····.split('/')\n····.slice(0,·-1)\n····.reduce((set:·string[],·path)·=>·{\n······const·s·=·set[set.length·-·1]\n······if·(s·!==·undefined)·{\n········path·=·join(s,·path)\n······}\n······set.push(path·||·'/')\n······return·set\n····},·[])\n··return·dirs\n}\n\nexport·class·PathReservations·{\n··//·path·=>·[function·or·Set]\n··//·A·Set·object·means·a·directory·reservation\n··//·A·fn·is·a·direct·reservation·on·that·path\n··#queues·=·new·Map<string,·(Handler·|·Set<Handler>)[]>()\n\n··//·fn·=>·{paths:[path,...],·dirs:[path,·...]}\n··#reservations·=·new·Map<Handler,·Reservation>()\n\n··//·functions·currently·running\n··#running·=·new·Set<Handler>()\n\n··reserve(paths:·string[],·fn:·Handler)·{\n····paths·=\n······isWindows·?\n········['win32·parallelization·disabled']\n······:·paths.map(p·=>·{\n··········//·don't·need·normPath,·because·we·skip·this·entirely·for·windows\n··········return·stripTrailingSlashes( | 10 | ········"//·A·path·exclusive·reservation·system\n//·reserve([list,·of,·paths],·fn)\n//·When·the·fn·is·first·in·line·for·all·its·paths,·it\n//·is·called·with·a·cb·that·clears·the·reservation.\n//\n//·Used·by·async·unpack·to·avoid·clobbering·paths·in·use,\n//·while·still·allowing·maximal·safe·parallelization.\n\nimport·{·join·}·from·'node:path'\nimport·{·normalizeUnicode·}·from·'./normalize-unicode.js'\nimport·{·stripTrailingSlashes·}·from·'./strip-trailing-slashes.js'\n\nconst·platform·=\n··process.env.TESTING_TAR_FAKE_PLATFORM·||·process.platform\nconst·isWindows·=·platform·===·'win32'\n\nexport·type·Reservation·=·{\n··paths:·string[]\n··dirs:·Set<string>\n}\n\nexport·type·Handler·=·(clear:·()·=>·void)·=>·void\n\n//·return·a·set·of·parent·dirs·for·a·given·path\n//·'/a/b/c/d'·->·['/',·'/a',·'/a/b',·'/a/b/c',·'/a/b/c/d']\nconst·getDirs·=·(path:·string)·=>·{\n··const·dirs·=·path\n····.split('/')\n····.slice(0,·-1)\n····.reduce((set:·string[],·path)·=>·{\n······const·s·=·set[set.length·-·1]\n······if·(s·!==·undefined)·{\n········path·=·join(s,·path)\n······}\n······set.push(path·||·'/')\n······return·set\n····},·[])\n··return·dirs\n}\n\nexport·class·PathReservations·{\n··//·path·=>·[function·or·Set]\n··//·A·Set·object·means·a·directory·reservation\n··//·A·fn·is·a·direct·reservation·on·that·path\n··#queues·=·new·Map<string,·(Handler·|·Set<Handler>)[]>()\n\n··//·fn·=>·{paths:[path,...],·dirs:[path,·...]}\n··#reservations·=·new·Map<Handler,·Reservation>()\n\n··//·functions·currently·running\n··#running·=·new·Set<Handler>()\n\n··reserve(paths:·string[],·fn:·Handler)·{\n····paths·=\n······isWindows·?\n········['win32·parallelization·disabled']\n······:·paths.map(p·=>·{\n··········//·don't·need·normPath,·because·we·skip·this·entirely·for·windows\n··········return·stripTrailingSlashes(join(normalizeUnicode(p)))\n········})\n\n····const·dirs·=·new·Set<string>(\n······paths.map(path·=>·getDirs(path)).reduce((a,·b)·=>·a.concat(b)),\n····)\n····this.#reservations.set(fn,·{·dirs,·paths·})\n····for·(const·p·of·paths)·{\n······const·q·=·this.#queues.get(p)\n······if·(!q)·{\n········this.#queues.set(p,·[fn])\n······}·else·{\n········q.push(fn)\n······}\n····}\n····for·(const·dir·of·dirs)·{\n······const·q·=·this.#queues.get(dir)\n······if·(!q)·{\n········this.#queues.set(dir,·[new·Set([fn])])\n······}·else·{\n········const·l·=·q[q.length·-·1]\n········if·(l·instanceof·Set)·{\n··········l.add(fn)\n········}·else·{\n··········q.push(new·Set([fn]))\n········}\n······}\n····}\n····return·this.#run(fn)\n··}\n\n··//·return·the·queues·for·each·path·the·function·cares·about\n··//·fn·=>·{paths,·dirs}\n··#getQueues(fn:·Handler):·{\n····paths:·Handler[][]\n····dirs:·(Handler·|·Set<Handler>)[][]\n··}·{\n····const·res·=·this.#reservations.get(fn)\n····/*·c8·ignore·start·*/\n····if·(!res)·{\n······throw·new·Error('function·does·not·have·any·path·reservations')\n····}\n····/*·c8·ignore·stop·*/\n····return·{\n······paths:·res.paths.map((path:·string)·=>\n········this.#queues.get(path),\n······)·as·Handler[][],\n······dirs:·[...res.dirs].map(path·=>·this.#queues.get(path))·as·(\n········|·Handler\n········|·Set<Handler>\n······)[][],\n····}\n··}\n\n··//·check·if·fn·is·first·in·line·for·all·its·paths,·and·is\n··//·included·in·the·first·set·for·all·its·dir·queues\n··check(fn:·Handler)·{\n····const·{·paths,·dirs·}·=·this.#getQueues(fn)\n····return·(\n······paths.every(q·=>·q·&&·q[0]·===·fn)·&&\n······dirs.every(q·=>·q·&&·q[0]·instanceof·Set·&&·q[0].has(fn))\n····)\n··}\n\n··//·run·the·function·if·it's·first·in·line·and·not·already·running\n··#run(fn:·Handler)·{\n····if·(this.#running.has(fn)·||·!this.check(fn))·{\n······return·false\n····}\n····this.#running.add(fn)\n····fn(()·=>·this.#clear(fn))\n····return·true\n··}\n\n··#clear(fn:·Handler)·{\n····if·(!this.#running.has(fn))·{\n······return·false\n····}\n····const·res·=·this.#reservations.get(fn)\n····/*·c8·ignore·start·*/\n····if·(!res)·{\n······throw·new·Error('invalid·reservation')\n····}\n····/*·c8·ignore·stop·*/\n····const·{·paths,·dirs·}·=·res\n\n····const·next·=·new·Set<Handler>()\n····for·(const·path·of·paths)·{\n······const·q·=·this.#queues.get(path)\n······/*·c8·ignore·start·*/\n······if·(!q·||·q?.[0]·!==·fn)·{\n········continue\n······}\n······/*·c8·ignore·stop·*/\n······const·q0·=·q[1]\n······if·(!q0)·{\n········this.#queues.delete(path)\n········continue\n······}\n······q.shift()\n······if·(typeof·q0·===·'function')·{\n········next.add(q0)\n······}·else·{\n········for·(const·f·of·q0)·{\n··········next.add(f)\n········}\n······}\n····}\n\n····for·(const·dir·of·dirs)·{\n······const·q·=·this.#queues.get(dir)\n······const·q0·=·q?.[0]\n······/*·c8·ignore·next·-·type·safety·only·*/\n······if·(!q·||·!(q0·instanceof·Set))·continue\n······if·(q0.size·===·1·&&·q.length·===·1)·{\n········this.#queues.delete(dir)\n········continue\n······}·else·if·(q0.size·===·1)·{\n········q.shift()\n········//·next·one·must·be·a·function,\n········//·or·else·the·Set·would've·been·reused\n········const·n·=·q[0]\n········if·(typeof·n·===·'function')·{\n··········next.add(n)\n········}\n······}·else·{\n········q0.delete(fn)\n······}\n····}\n\n····this.#running.delete(fn)\n····next.forEach(fn·=>·this.#run(fn))\n····return·true\n··}\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 1, 9 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 3 | import·{·HeaderData·}·from·'./header.js'; | 1 | import·{·HeaderData·}·from·'./header.js'; |
| 4 | export·declare·class·Pax·implements·HeaderData·{ | 2 | export·declare·class·Pax·implements·HeaderData·{ |
| 5 | ····atime?:·Date; | 3 | ····atime?:·Date; |
| 6 | ····mtime?:·Date; | 4 | ····mtime?:·Date; |
| 7 | ····ctime?:·Date; | 5 | ····ctime?:·Date; |
| 8 | ····charset?:·string; | 6 | ····charset?:·string; |
| 9 | ····comment?:·string; | 7 | ····comment?:·string; |
| Offset 16, 13 lines modified | Offset 14, 13 lines modified | ||
| 16 | ····ino?:·number; | 14 | ····ino?:·number; |
| 17 | ····nlink?:·number; | 15 | ····nlink?:·number; |
| 18 | ····path?:·string; | 16 | ····path?:·string; |
| 19 | ····size?:·number; | 17 | ····size?:·number; |
| 20 | ····mode?:·number; | 18 | ····mode?:·number; |
| 21 | ····global:·boolean; | 19 | ····global:·boolean; |
| 22 | ····constructor(obj:·HeaderData,·global?:·boolean); | 20 | ····constructor(obj:·HeaderData,·global?:·boolean); |
| 23 | ····encode():·Buffer; | 21 | ····encode():·Buffer<ArrayBuffer>; |
| 24 | ····encodeBody():·string; | 22 | ····encodeBody():·string; |
| 25 | ····encodeField(field:·keyof·Pax):·string; | 23 | ····encodeField(field:·keyof·Pax):·string; |
| 26 | ····static·parse(str:·string,·ex?:·HeaderData,·g?:·boolean):·Pax; | 24 | ····static·parse(str:·string,·ex?:·HeaderData,·g?:·boolean):·Pax; |
| 27 | } | 25 | } |
| 28 | //#·sourceMappingURL=pax.d.ts.map | 26 | //#·sourceMappingURL=pax.d.ts.map |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"pax.d.ts", | 2 | ····"file":·"pax.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AACA,OAAO,EAAU,UAAU,EAAE,MAAM,aAAa,CAAA;AAEhD,qBAAa,GAAI,YAAW,UAAU;IACpC,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IAEZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,MAAM,EAAE,OAAO,CAAA;gBAEH,GAAG,EAAE,UAAU,EAAE,MAAM,GAAE,OAAe;IAmBpD,MAAM;IAiDN,UAAU;IAoBV,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,MAAM;IA2BrC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,GAAE,OAAe;CAG9D", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/pax.ts" | 7 | ········"../../src/pax.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 9 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 3 | import·{·Minipass·}·from·'minipass'; | 1 | import·{·Minipass·}·from·'minipass'; |
| 4 | import·{·Header·}·from·'./header.js'; | 2 | import·{·Header·}·from·'./header.js'; |
| 5 | import·{·Pax·}·from·'./pax.js'; | 3 | import·{·Pax·}·from·'./pax.js'; |
| 6 | import·{·EntryTypeName·}·from·'./types.js'; | 4 | import·{·EntryTypeName·}·from·'./types.js'; |
| 7 | export·declare·class·ReadEntry·extends·Minipass<Buffer,·Buffer>·{ | 5 | export·declare·class·ReadEntry·extends·Minipass<Buffer,·Buffer>·{ |
| 8 | ····#private; | 6 | ····#private; |
| 9 | ····extended?:·Pax; | 7 | ····extended?:·Pax; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"read-entry.d.ts", | 2 | ····"file":·"read-entry.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1C,qBAAa,SAAU,SAAQ,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;;IACrD,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,cAAc,CAAC,EAAE,GAAG,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,aAAa,CAAA;IACnB,IAAI,EAAE,OAAO,CAAQ;IACrB,MAAM,EAAE,OAAO,CAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAI;IAChB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAQ;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,OAAO,CAAQ;gBAEhB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG;IA+E/C,KAAK,CAAC,IAAI,EAAE,MAAM;CAyCnB", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/read-entry.ts" | 7 | ········"../../src/read-entry.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"strip-absolute-path.d.ts", | 2 | ····"file":·"strip-absolute-path.d.ts", |
| 3 | ····"mappings":·"AAUA,eAAO,MAAM,iBAAiB, | 3 | ····"mappings":·"AAUA,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,aAgB7C,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/strip-absolute-path.ts" | 7 | ········"../../src/strip-absolute-path.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"strip-trailing-slashes.d.ts", | 2 | ····"file":·"strip-trailing-slashes.d.ts", |
| 3 | ····"mappings":·"AAIA,eAAO,MAAM,oBAAoB, | 3 | ····"mappings":·"AAIA,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,WAQ/C,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/strip-trailing-slashes.ts" | 7 | ········"../../src/strip-trailing-slashes.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"types.d.ts", | 2 | ····"file":·"types.d.ts", |
| 3 | ····"mappings":·"AAAA,eAAO,MAAM,MAAM, | 3 | ····"mappings":·"AAAA,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,KAAG,CAAC,IAAI,aACV,CAAA;AAE9B,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,KAAG,CAAC,IAAI,aACV,CAAA;AAE9B,MAAM,MAAM,aAAa,GACrB,GAAG,GACH,EAAE,GACF,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;AAEP,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,SAAS,GACT,MAAM,GACN,cAAc,GACd,iBAAiB,GACjB,aAAa,GACb,WAAW,GACX,MAAM,GACN,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,GAChB,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,yBAAyB,GACzB,qBAAqB,GACrB,kBAAkB,GAClB,gBAAgB,GAChB,YAAY,GACZ,kBAAkB,GAClB,mBAAmB,GACnB,aAAa,CAAA;AAGjB,eAAO,MAAM,IAAI,mCAsCf,CAAA;AAGF,eAAO,MAAM,IAAI,mCAEhB,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/types.ts" | 7 | ········"../../src/types.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 8 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | import·{·type·Stats·}·from·'node:fs'; | 1 | import·{·type·Stats·}·from·'node:fs'; |
| 3 | import·{·MkdirError·}·from·'./mkdir.js'; | 2 | import·{·MkdirError·}·from·'./mkdir.js'; |
| 4 | import·{·Parser·}·from·'./parse.js'; | 3 | import·{·Parser·}·from·'./parse.js'; |
| 5 | import·{·TarOptions·}·from·'./options.js'; | 4 | import·{·TarOptions·}·from·'./options.js'; |
| 6 | import·{·PathReservations·}·from·'./path-reservations.js'; | 5 | import·{·PathReservations·}·from·'./path-reservations.js'; |
| 7 | import·{·ReadEntry·}·from·'./read-entry.js'; | 6 | import·{·ReadEntry·}·from·'./read-entry.js'; |
| 8 | import·{·WarnData·}·from·'./warn-method.js'; | 7 | import·{·WarnData·}·from·'./warn-method.js'; |
| Offset 14, 14 lines modified | Offset 13, 15 lines modified | ||
| 14 | declare·const·FILE:·unique·symbol; | 13 | declare·const·FILE:·unique·symbol; |
| 15 | declare·const·DIRECTORY:·unique·symbol; | 14 | declare·const·DIRECTORY:·unique·symbol; |
| 16 | declare·const·LINK:·unique·symbol; | 15 | declare·const·LINK:·unique·symbol; |
| 17 | declare·const·SYMLINK:·unique·symbol; | 16 | declare·const·SYMLINK:·unique·symbol; |
| 18 | declare·const·HARDLINK:·unique·symbol; | 17 | declare·const·HARDLINK:·unique·symbol; |
| 19 | declare·const·UNSUPPORTED:·unique·symbol; | 18 | declare·const·UNSUPPORTED:·unique·symbol; |
| 20 | declare·const·CHECKPATH:·unique·symbol; | 19 | declare·const·CHECKPATH:·unique·symbol; |
| 20 | declare·const·STRIPABSOLUTEPATH:·unique·symbol; | ||
| 21 | declare·const·MKDIR:·unique·symbol; | 21 | declare·const·MKDIR:·unique·symbol; |
| 22 | declare·const·ONERROR:·unique·symbol; | 22 | declare·const·ONERROR:·unique·symbol; |
| 23 | declare·const·PENDING:·unique·symbol; | 23 | declare·const·PENDING:·unique·symbol; |
| 24 | declare·const·PEND:·unique·symbol; | 24 | declare·const·PEND:·unique·symbol; |
| 25 | declare·const·UNPEND:·unique·symbol; | 25 | declare·const·UNPEND:·unique·symbol; |
| 26 | declare·const·ENDED:·unique·symbol; | 26 | declare·const·ENDED:·unique·symbol; |
| 27 | declare·const·MAYBECLOSE:·unique·symbol; | 27 | declare·const·MAYBECLOSE:·unique·symbol; |
| Offset 58, 14 lines modified | Offset 58, 15 lines modified | ||
| 58 | ····umask:·number; | 58 | ····umask:·number; |
| 59 | ····dmode:·number; | 59 | ····dmode:·number; |
| 60 | ····fmode:·number; | 60 | ····fmode:·number; |
| 61 | ····chmod:·boolean; | 61 | ····chmod:·boolean; |
| 62 | ····constructor(opt?:·TarOptions); | 62 | ····constructor(opt?:·TarOptions); |
| 63 | ····warn(code:·string,·msg:·string·|·Error,·data?:·WarnData):·void; | 63 | ····warn(code:·string,·msg:·string·|·Error,·data?:·WarnData):·void; |
| 64 | ····[MAYBECLOSE]():·void; | 64 | ····[MAYBECLOSE]():·void; |
| 65 | ····[STRIPABSOLUTEPATH](entry:·ReadEntry,·field:·'path'·|·'linkpath'):·boolean; | ||
| 65 | ····[CHECKPATH](entry:·ReadEntry):·boolean; | 66 | ····[CHECKPATH](entry:·ReadEntry):·boolean; |
| 66 | ····[ONENTRY](entry:·ReadEntry):·void; | 67 | ····[ONENTRY](entry:·ReadEntry):·void; |
| 67 | ····[ONERROR](er:·Error,·entry:·ReadEntry):·void; | 68 | ····[ONERROR](er:·Error,·entry:·ReadEntry):·void; |
| 68 | ····[MKDIR](dir:·string,·mode:·number,·cb:·(er?:·null·|·MkdirError,·made?:·string)·=>·void):·void; | 69 | ····[MKDIR](dir:·string,·mode:·number,·cb:·(er?:·null·|·MkdirError,·made?:·string)·=>·void):·void; |
| 69 | ····[DOCHOWN](entry:·ReadEntry):·boolean; | 70 | ····[DOCHOWN](entry:·ReadEntry):·boolean; |
| 70 | ····[UID](entry:·ReadEntry):·number·|·undefined; | 71 | ····[UID](entry:·ReadEntry):·number·|·undefined; |
| 71 | ····[GID](entry:·ReadEntry):·number·|·undefined; | 72 | ····[GID](entry:·ReadEntry):·number·|·undefined; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"unpack.d.ts", | 2 | ····"file":·"unpack.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AASA,OAAW,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,EAAS,U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;IAQvB,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK;IAWxC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,SAAS;IAW1B,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,KAAK,IAAI;IAwG5D,CAAC,MAAM,CAAC,CACN,EAAE,EAAE,IAAI,GAAG,SAAS,GAAG,KAAK,EAC5B,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,MAAM,IAAI;IA0BlB,CAAC,IAAI,CAAC,CACJ,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,MAAM,IAAI;CAanB;AAUD,qBAAa,UAAW,SAAQ,MAAM;IACpC,IAAI,EAAE,IAAI,CAAQ;IAElB,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,IAAI,GAAG,KAAK,GAAG,SAAS,EAAE,KAAK,EAAE,SAAS;IAIvD,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,SAAS;IAqE1B,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI;IAyFzC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI;IAkC9C,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAkBjC,CAAC,IAAI,CAAC,CACJ,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,MAAM,IAAI;CAWnB", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/unpack.ts" | 7 | ········"../../src/unpack.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 77, 1813 lines modified | Offset 77, 1917 lines modified | ||
| 000004c0:·4841·5244·4c49·4e4b·203d·2053·796d·626f··HARDLINK·=·Symbo | 000004c0:·4841·5244·4c49·4e4b·203d·2053·796d·626f··HARDLINK·=·Symbo | ||
| 000004d0:·6c28·2768·6172·646c·696e·6b27·293b·0a63··l('hardlink');.c | 000004d0:·6c28·2768·6172·646c·696e·6b27·293b·0a63··l('hardlink');.c | ||
| 000004e0:·6f6e·7374·2055·4e53·5550·504f·5254·4544··onst·UNSUPPORTED | 000004e0:·6f6e·7374·2055·4e53·5550·504f·5254·4544··onst·UNSUPPORTED | ||
| 000004f0:·203d·2053·796d·626f·6c28·2775·6e73·7570···=·Symbol('unsup | 000004f0:·203d·2053·796d·626f·6c28·2775·6e73·7570···=·Symbol('unsup | ||
| 00000500:·706f·7274·6564·2729·3b0a·636f·6e73·7420··ported');.const· | 00000500:·706f·7274·6564·2729·3b0a·636f·6e73·7420··ported');.const· | ||
| 00000510:·4348·4543·4b50·4154·4820·3d20·5379·6d62··CHECKPATH·=·Symb | 00000510:·4348·4543·4b50·4154·4820·3d20·5379·6d62··CHECKPATH·=·Symb | Diff chunk too large, falling back to line-by-line diff (912 lines added, 912 lines removed) | |
| 00000520:·6f6c·2827·6368·6563·6b50·6174·6827·293b··ol('checkPath'); | 00000520:·6f6c·2827·6368·6563·6b50·6174·6827·293b··ol('checkPath'); | ||
| 00000530:·0a63·6f6e·7374·20 | 00000530:·0a63·6f6e·7374·2053·5452·4950·4142·534f··.const·STRIPABSO | ||
| 00000540:· | 00000540:·4c55·5445·5041·5448·203d·2053·796d·626f··LUTEPATH·=·Symbo | ||
| 00000550:·6 | 00000550:·6c28·2773·7472·6970·4162·736f·6c75·7465··l('stripAbsolute | ||
| 00000560:·5 | 00000560:·5061·7468·2729·3b0a·636f·6e73·7420·4d4b··Path');.const·MK | ||
| 00000570:· | 00000570:·4449·5220·3d20·5379·6d62·6f6c·2827·6d6b··DIR·=·Symbol('mk | ||
| 00000580:· | 00000580:·6469·7227·293b·0a63·6f6e·7374·204f·4e45··dir');.const·ONE | ||
| 00000590:· | 00000590:·5252·4f52·203d·2053·796d·626f·6c28·276f··RROR·=·Symbol('o | ||
| 000005a0:· | 000005a0:·6e45·7272·6f72·2729·3b0a·636f·6e73·7420··nError');.const· | ||
| 000005b0:· | 000005b0:·5045·4e44·494e·4720·3d20·5379·6d62·6f6c··PENDING·=·Symbol | ||
| 000005c0:· | 000005c0:·2827·7065·6e64·696e·6727·293b·0a63·6f6e··('pending');.con | ||
| 000005d0:· | 000005d0:·7374·2050·454e·4420·3d20·5379·6d62·6f6c··st·PEND·=·Symbol | ||
| 000005e0:· | 000005e0:·2827·7065·6e64·2729·3b0a·636f·6e73·7420··('pend');.const· | ||
| 000005f0:· | 000005f0:·554e·5045·4e44·203d·2053·796d·626f·6c28··UNPEND·=·Symbol( | ||
| 00000600:· | 00000600:·2775·6e70·656e·6427·293b·0a63·6f6e·7374··'unpend');.const | ||
| 00000610:· | 00000610:·2045·4e44·4544·203d·2053·796d·626f·6c28···ENDED·=·Symbol( | ||
| 00000620:· | 00000620:·2765·6e64·6564·2729·3b0a·636f·6e73·7420··'ended');.const· | ||
| 00000630:· | 00000630:·4d41·5942·4543·4c4f·5345·203d·2053·796d··MAYBECLOSE·=·Sym | ||
| 00000640:· | 00000640:·626f·6c28·276d·6179·6265·436c·6f73·6527··bol('maybeClose' | ||
| 00000650:·2 | 00000650:·293b·0a63·6f6e·7374·2053·4b49·5020·3d20··);.const·SKIP·=· | ||
| 00000660:· | 00000660:·5379·6d62·6f6c·2827·736b·6970·2729·3b0a··Symbol('skip');. | ||
| 00000670:· | 00000670:·636f·6e73·7420·444f·4348·4f57·4e20·3d20··const·DOCHOWN·=· | ||
| 00000680:· | 00000680:·5379·6d62·6f6c·2827·646f·4368·6f77·6e27··Symbol('doChown' | ||
| 00000690:·3b0a | 00000690:·293b·0a63·6f6e·7374·2055·4944·203d·2053··);.const·UID·=·S | ||
| 000006a0:· | 000006a0:·796d·626f·6c28·2775·6964·2729·3b0a·636f··ymbol('uid');.co | ||
| 000006b0:·6 | 000006b0:·6e73·7420·4749·4420·3d20·5379·6d62·6f6c··nst·GID·=·Symbol | ||
| 000006c0:· | 000006c0:·2827·6769·6427·293b·0a63·6f6e·7374·2043··('gid');.const·C | ||
| 000006d0:· | 000006d0:·4845·434b·4544·5f43·5744·203d·2053·796d··HECKED_CWD·=·Sym | ||
| 000006e0:· | 000006e0:·626f·6c28·2763·6865·636b·6564·4377·6427··bol('checkedCwd' | ||
| 000006f0:· | 000006f0:·293b·0a63·6f6e·7374·2070·6c61·7466·6f72··);.const·platfor | ||
| 00000700:·6 | 00000700:·6d20·3d20·7072·6f63·6573·732e·656e·762e··m·=·process.env. | ||
| 00000710:·5 | 00000710:·5445·5354·494e·475f·5441·525f·4641·4b45··TESTING_TAR_FAKE | ||
| 00000720:· | 00000720:·5f50·4c41·5446·4f52·4d20·7c7c·2070·726f··_PLATFORM·||·pro | ||
| 00000730:·636 | 00000730:·6365·7373·2e70·6c61·7466·6f72·6d3b·0a63··cess.platform;.c | ||
| 00000740:· | 00000740:·6f6e·7374·2069·7357·696e·646f·7773·203d··onst·isWindows·= | ||
| 00000750:·2 | 00000750:·2070·6c61·7466·6f72·6d20·3d3d·3d20·2777···platform·===·'w | ||
| 00000760:·6 | 00000760:·696e·3332·273b·0a63·6f6e·7374·2044·4546··in32';.const·DEF | ||
| 00000770:· | 00000770:·4155·4c54·5f4d·4158·5f44·4550·5448·203d··AULT_MAX_DEPTH·= | ||
| 00000780:·20 | 00000780:·2031·3032·343b·0a2f·2f20·556e·6c69·6e6b···1024;.//·Unlink | ||
| 00000790:· | 00000790:·7320·6f6e·2057·696e·646f·7773·2061·7265··s·on·Windows·are | ||
| 000007a0:· | 000007a0:·206e·6f74·2061·746f·6d69·632e·0a2f·2f0a···not·atomic..//. | ||
| 000007b0:· | 000007b0:·2f2f·2054·6869·7320·6d65·616e·7320·7468··//·This·means·th | ||
| 000007c0:·6 | 000007c0:·6174·2069·6620·796f·7520·6861·7665·2061··at·if·you·have·a | ||
| 000007d0:·696 | 000007d0:·2066·696c·6520·656e·7472·792c·2066·6f6c···file·entry,·fol | ||
| 000007e0:·6 | 000007e0:·6c6f·7765·6420·6279·2061·6e6f·7468·6572··lowed·by·another | ||
| 000007f0:· | 000007f0:·0a2f·2f20·6669·6c65·2065·6e74·7279·2077··.//·file·entry·w | ||
| 00000800:· | 00000800:·6974·6820·616e·2069·6465·6e74·6963·616c··ith·an·identical | ||
| 00000810:· | 00000810:·206e·616d·652c·2061·6e64·2079·6f75·2063···name,·and·you·c | ||
| 00000820:·6 | 00000820:·616e·6e6f·7420·7265·2d75·7365·2074·6865··annot·re-use·the | ||
| 00000830:· | 00000830:·2066·696c·650a·2f2f·2028·6265·6361·7573···file.//·(becaus | ||
| 00000840:· | 00000840:·6520·6974·2773·2061·2068·6172·646c·696e··e·it's·a·hardlin | ||
| 00000850:·6 | 00000850:·6b2c·206f·7220·6265·6361·7573·6520·756e··k,·or·because·un | ||
| 00000860:· | 00000860:·6c69·6e6b·3a74·7275·6520·6973·2073·6574··link:true·is·set | ||
| 00000870:· | 00000870:·2c20·6f72·2069·7427·730a·2f2f·2057·696e··,·or·it's.//·Win | ||
| 00000880:·6 | 00000880:·646f·7773·2c20·7768·6963·6820·646f·6573··dows,·which·does | ||
| 00000890:·206 | 00000890:·206e·6f74·2068·6176·6520·7573·6566·756c···not·have·useful | ||
| 000008a0:·20 | 000008a0:·206e·6c69·6e6b·2076·616c·7565·7329·2c20···nlink·values),· | ||
| 000008b0:·7468·6520·6 | 000008b0:·7468·656e·2074·6865·2075·6e6c·696e·6b0a··then·the·unlink. | ||
| 000008c0:·2 | 000008c0:·2f2f·2077·696c·6c20·6265·2063·6f6d·6d69··//·will·be·commi | ||
| 000008d0:· | 000008d0:·7474·6564·2074·6f20·7468·6520·6469·736b··tted·to·the·disk | ||
| 000008e0:· | 000008e0:·2041·4654·4552·2074·6865·206e·6577·2066···AFTER·the·new·f | ||
| 000008f0:·6 | 000008f0:·696c·6520·6861·7320·6265·656e·2077·7269··ile·has·been·wri | ||
| 00000900:· | 00000900:·7474·656e·0a2f·2f20·6f76·6572·2074·6865··tten.//·over·the | ||
| 00000910:· | 00000910:·206f·6c64·206f·6e65·2c20·6465·6c65·7469···old·one,·deleti | ||
| 00000920:· | 00000920:·6e67·2074·6865·206e·6577·2066·696c·652e··ng·the·new·file. | ||
| 00000930:· | 00000930:·0a2f·2f0a·2f2f·2054·6f20·776f·726b·2061··.//.//·To·work·a | ||
| 00000940:·7 | 00000940:·726f·756e·6420·7468·6973·2c20·6f6e·2057··round·this,·on·W | ||
| 00000950:·6 | 00000950:·696e·646f·7773·2073·7973·7465·6d73·2c20··indows·systems,· | ||
| 00000960:· | 00000960:·7765·2072·656e·616d·6520·7468·6520·6669··we·rename·the·fi | ||
| 00000970:·6 | 00000970:·6c65·2061·6e64·2074·6865·6e0a·2f2f·2064··le·and·then.//·d | ||
| 00000980:·6 | 00000980:·656c·6574·6520·7468·6520·7265·6e61·6d65··elete·the·rename | ||
| 00000990:· | 00000990:·6420·6669·6c65·2e20·2049·7427·7320·6120··d·file.··It's·a· | ||
| 000009a0:·7 | 000009a0:·736c·6f70·7079·206b·6c75·6467·652c·2062··sloppy·kludge,·b | ||
| 000009b0:· | 000009b0:·7574·2066·7261·6e6b·6c79·2c20·4920·646f··ut·frankly,·I·do | ||
| 000009c0:·206e·6f | 000009c0:·206e·6f74·0a2f·2f20·6b6e·6f77·206f·6620···not.//·know·of· | ||
| 000009d0:·6 | 000009d0:·6120·6265·7474·6572·2077·6179·2074·6f20··a·better·way·to· | ||
| 000009e0:· | 000009e0:·646f·2074·6869·732c·2067·6976·656e·2077··do·this,·given·w | ||
| 000009f0:· | 000009f0:·696e·646f·7773·2720·6e6f·6e2d·6174·6f6d··indows'·non-atom | ||
| 00000a00:· | 00000a00:·6963·2075·6e6c·696e·6b0a·2f2f·2073·656d··ic·unlink.//·sem | ||
| 00000a10:·6 | 00000a10:·616e·7469·6373·2e0a·2f2f·0a2f·2f20·5365··antics..//.//·Se | ||
| 00000a20:·6 | 00000a20:·653a·2068·7474·7073·3a2f·2f67·6974·6875··e:·https://githu | ||
| 00000a30:· | 00000a30:·622e·636f·6d2f·6e70·6d2f·6e6f·6465·2d74··b.com/npm/node-t | ||
| 00000a40:· | 00000a40:·6172·2f69·7373·7565·732f·3138·330a·2f2a··ar/issues/183./* | ||
| 00000a50:·20 | 00000a50:·2063·3820·6967·6e6f·7265·2073·7461·7274···c8·ignore·start | ||
| 00000a60:· | 00000a60:·202a·2f0a·636f·6e73·7420·756e·6c69·6e6b···*/.const·unlink | ||
| 00000a70:· | 00000a70:·4669·6c65·203d·2028·7061·7468·2c20·6362··File·=·(path,·cb | ||
| 00000a80:· | 00000a80:·2920·3d3e·207b·0a20·2020·2069·6620·2821··)·=>·{.····if·(! | ||
| 00000a90:· | 00000a90:·6973·5769·6e64·6f77·7329·207b·0a20·2020··isWindows)·{.··· | ||
| 00000aa0:·20 | 00000aa0:·2020·2020·2072·6574·7572·6e20·6673·2e75·······return·fs.u | ||
| 00000ab0:· | 00000ab0:·6e6c·696e·6b28·7061·7468·2c20·6362·293b··nlink(path,·cb); | ||
| 00000ac0:· | 00000ac0:·0a20·2020·207d·0a20·2020·2063·6f6e·7374··.····}.····const | ||
| 00000ad0:· | 00000ad0:·206e·616d·6520·3d20·7061·7468·202b·2027···name·=·path·+·' | ||
| Max diff block lines reached; 130326/256758 bytes (50.76%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"unpack.js", | 2 | ····"file":·"unpack.js", |
| 3 | ····"mappings":·"AAAA,0EAA0E;AAC1E,wEAAwE;AACxE,yEAAyE;AACzE,wEA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| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/unpack.ts" | 7 | ········"../../src/unpack.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"sourcesContent":·[ | 9 | ····"sourcesContent":·[ |
| 10 | ········"//·the·PEND/UNPEND·stuff·tracks·whether·we're·ready·to·emit·end/close·yet.\n//·but·the·path·reservations·are·required·to·avoid·race·conditions·where\n//·parallelized·unpack·ops·may·mess·with·one·another,·due·to·dependencies\n//·(like·a·Link·depending·on·its·target)·or·destructive·operations·(like\n//·clobbering·an·fs·object·to·create·one·of·a·different·type.)\n\nimport·*·as·fsm·from·'@isaacs/fs-minipass'\nimport·assert·from·'node:assert'\nimport·{·randomBytes·}·from·'node:crypto'\nimport·fs,·{·type·Stats·}·from·'node:fs'\nimport·path·from·'node:path'\nimport·{·getWriteFlag·}·from·'./get-write-flag.js'\nimport·{·mkdir,·MkdirError,·mkdirSync·}·from·'./mkdir.js'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{·Parser·}·from·'./parse.js'\nimport·{·stripAbsolutePath·}·from·'./strip-absolute-path.js'\nimport·*·as·wc·from·'./winchars.js'\n\nimport·{·TarOptions·}·from·'./options.js'\nimport·{·PathReservations·}·from·'./path-reservations.js'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{·WarnData·}·from·'./warn-method.js'\n\nconst·ONENTRY·=·Symbol('onEntry')\nconst·CHECKFS·=·Symbol('checkFs')\nconst·CHECKFS2·=·Symbol('checkFs2')\nconst·ISREUSABLE·=·Symbol('isReusable')\nconst·MAKEFS·=·Symbol('makeFs')\nconst·FILE·=·Symbol('file')\nconst·DIRECTORY·=·Symbol('directory')\nconst·LINK·=·Symbol('link')\nconst·SYMLINK·=·Symbol('symlink')\nconst·HARDLINK·=·Symbol('hardlink')\nconst·UNSUPPORTED·=·Symbol('unsupported')\nconst·CHECKPATH·=·Symbol('checkPath')\nconst·MKDIR·=·Symbol('mkdir')\nconst·ONERROR·=·Symbol('onError')\nconst·PENDING·=·Symbol('pending')\nconst·PEND·=·Symbol('pend')\nconst·UNPEND·=·Symbol('unpend')\nconst·ENDED·=·Symbol('ended')\nconst·MAYBECL | 10 | ········"//·the·PEND/UNPEND·stuff·tracks·whether·we're·ready·to·emit·end/close·yet.\n//·but·the·path·reservations·are·required·to·avoid·race·conditions·where\n//·parallelized·unpack·ops·may·mess·with·one·another,·due·to·dependencies\n//·(like·a·Link·depending·on·its·target)·or·destructive·operations·(like\n//·clobbering·an·fs·object·to·create·one·of·a·different·type.)\n\nimport·*·as·fsm·from·'@isaacs/fs-minipass'\nimport·assert·from·'node:assert'\nimport·{·randomBytes·}·from·'node:crypto'\nimport·fs,·{·type·Stats·}·from·'node:fs'\nimport·path·from·'node:path'\nimport·{·getWriteFlag·}·from·'./get-write-flag.js'\nimport·{·mkdir,·MkdirError,·mkdirSync·}·from·'./mkdir.js'\nimport·{·normalizeWindowsPath·}·from·'./normalize-windows-path.js'\nimport·{·Parser·}·from·'./parse.js'\nimport·{·stripAbsolutePath·}·from·'./strip-absolute-path.js'\nimport·*·as·wc·from·'./winchars.js'\n\nimport·{·TarOptions·}·from·'./options.js'\nimport·{·PathReservations·}·from·'./path-reservations.js'\nimport·{·ReadEntry·}·from·'./read-entry.js'\nimport·{·WarnData·}·from·'./warn-method.js'\n\nconst·ONENTRY·=·Symbol('onEntry')\nconst·CHECKFS·=·Symbol('checkFs')\nconst·CHECKFS2·=·Symbol('checkFs2')\nconst·ISREUSABLE·=·Symbol('isReusable')\nconst·MAKEFS·=·Symbol('makeFs')\nconst·FILE·=·Symbol('file')\nconst·DIRECTORY·=·Symbol('directory')\nconst·LINK·=·Symbol('link')\nconst·SYMLINK·=·Symbol('symlink')\nconst·HARDLINK·=·Symbol('hardlink')\nconst·UNSUPPORTED·=·Symbol('unsupported')\nconst·CHECKPATH·=·Symbol('checkPath')\nconst·STRIPABSOLUTEPATH·=·Symbol('stripAbsolutePath')\nconst·MKDIR·=·Symbol('mkdir')\nconst·ONERROR·=·Symbol('onError')\nconst·PENDING·=·Symbol('pending')\nconst·PEND·=·Symbol('pend')\nconst·UNPEND·=·Symbol('unpend')\nconst·ENDED·=·Symbol('ended')\nconst·MAYBECL[·...·truncated·by·diffoscope;·len:·9541,·SHA:·05ec957389f7d9e64f880e376d7d3e71ca2cb72840cc3bdd1150229175b18492·...·]\n····}\n\n····if·(path.isAbsolute(entry.path))·{\n······entry.absolute·=·normalizeWindowsPath(path.resolve(entry.path))\n····}·else·{\n······entry.absolute·=·normalizeWindowsPath(\n········path.resolve(this.cwd,·entry.path),\n······)\n····}\n\n····//·if·we·somehow·ended·up·with·a·path·that·escapes·the·cwd,·and·we·are\n····//·not·in·preservePaths·mode,·then·something·is·fishy!··This·should·have\n····//·been·prevented·above,·so·ignore·this·for·coverage.\n····/*·c8·ignore·start·-·defense·in·depth·*/\n····if·(\n······!this.preservePaths·&&\n······typeof·entry.absolute·===·'string'·&&\n······entry.absolute.indexOf(this.cwd·+·'/')·!==·0·&&\n······entry.absolute·!==·this.cwd\n····)·{\n······this.warn('TAR_ENTRY_ERROR',·'path·escaped·extraction·target',·{\n········entry,\n········path:·normalizeWindowsPath(entry.path),\n········resolvedPath:·entry.absolute,\n········cwd:·this.cwd,\n······})\n······return·false\n····}\n····/*·c8·ignore·stop·*/\n\n····//·an·archive·can·set·properties·on·the·extraction·directory,·but·it\n····//·may·not·replace·the·cwd·with·a·different·kind·of·thing·entirely.\n····if·(\n······entry.absolute·===·this.cwd·&&\n······entry.type·!==·'Directory'·&&\n······entry.type·!==·'GNUDumpDir'\n····)·{\n······return·false\n····}\n\n····//·only·encode·:·chars·that·aren't·drive·letter·indicators\n····if·(this.win32)·{\n······const·{·root:·aRoot·}·=·path.win32.parse(String(entry.absolute))\n······entry.absolute·=\n········aRoot·+·wc.encode(String(entry.absolute).slice(aRoot.length))\n······const·{·root:·pRoot·}·=·path.win32.parse(entry.path)\n······entry.path·=·pRoot·+·wc.encode(entry.path.slice(pRoot.length))\n····}\n\n····return·true\n··}\n\n··[ONENTRY](entry:·ReadEntry)·{\n····if·(!this[CHECKPATH](entry))·{\n······return·entry.resume()\n····}\n\n····assert.equal(typeof·entry.absolute,·'string')\n\n····switch·(entry.type)·{\n······case·'Directory':\n······case·'GNUDumpDir':\n········if·(entry.mode)·{\n··········entry.mode·=·entry.mode·|·0o700\n········}\n\n······//·eslint-disable-next-line·no-fallthrough\n······case·'File':\n······case·'OldFile':\n······case·'ContiguousFile':\n······case·'Link':\n······case·'SymbolicLink':\n········return·this[CHECKFS](entry)\n\n······case·'CharacterDevice':\n······case·'BlockDevice':\n······case·'FIFO':\n······default:\n········return·this[UNSUPPORTED](entry)\n····}\n··}\n\n··[ONERROR](er:·Error,·entry:·ReadEntry)·{\n····//·Cwd·has·to·exist,·or·else·nothing·works.·That's·serious.\n····//·Other·errors·are·warnings,·which·raise·the·error·in·strict\n····//·mode,·but·otherwise·continue·on.\n····if·(er.name·===·'CwdError')·{\n······this.emit('error',·er)\n····}·else·{\n······this.warn('TAR_ENTRY_ERROR',·er,·{·entry·})\n······this[UNPEND]()\n······entry.resume()\n····}\n··}\n\n··[MKDIR](\n····dir:·string,\n····mode:·number,\n····cb:·(er?:·null·|·MkdirError,·made?:·string)·=>·void,\n··)·{\n····mkdir(\n······normalizeWindowsPath(dir),\n······{\n········uid:·this.uid,\n········gid:·this.gid,\n········processUid:·this.processUid,\n········processGid:·this.processGid,\n········umask:·this.processUmask,\n········preserve:·this.preservePaths,\n········unlink:·this.unlink,\n········cwd:·this.cwd,\n········mode:·mode,\n······},\n······cb,\n····)\n··}\n\n··[DOCHOWN](entry:·ReadEntry)·{\n····//·in·preserve·owner·mode,·chown·if·the·entry·doesn't·match·process\n····//·in·set·owner·mode,·chown·if·setting·doesn't·match·process\n····return·(\n······this.forceChown·||\n······(this.preserveOwner·&&\n········((typeof·entry.uid·===·'number'·&&\n··········entry.uid·!==·this.processUid)·||\n··········(typeof·entry.gid·===·'number'·&&\n············entry.gid·!==·this.processGid)))·||\n······(typeof·this.uid·===·'number'·&&\n········this.uid·!==·this.processUid)·||\n······(typeof·this.gid·===·'number'·&&·this.gid·!==·this.processGid)\n····)\n··}\n\n··[UID](entry:·ReadEntry)·{\n····return·uint32(this.uid,·entry.uid,·this.processUid)\n··}\n\n··[GID](entry:·ReadEntry)·{\n····return·uint32(this.gid,·entry.gid,·this.processGid)\n··}\n\n··[FILE](entry:·ReadEntry,·fullyDone:·()·=>·void)·{\n····const·mode·=\n······typeof·entry.mode·===·'number'·?\n········entry.mode·&·0o7777\n······:·this.fmode\n····const·stream·=·new·fsm.WriteStream(String(entry.absolute),·{\n······//·slight·lie,·but·it·can·be·numeric·flags\n······flags:·getWriteFlag(entry.size)·as·string,\n······mode:·mode,\n······autoClose:·false,\n····})\n····stream.on('error',·(er:·Error)·=>·{\n······if·(stream.fd)·{\n········fs.close(stream.fd,·()·=>·{})\n······}\n\n······//·flush·all·the·data·out·so·that·we·aren't·left·hanging\n······//·if·the·error·wasn't·actually·fatal.··otherwise·the·parse\n······//·is·blocked,·and·we·never·proceed.\n······stream.write·=·()·=>·true\n······this[ONERROR](er,·entry)\n······fullyDone()\n····})\n\n····let·actions·=·1\n····const·done·=·(er?:·null·|·Error)·=>·{\n······if·(er)·{\n········/*·c8·ignore·start·-·we·should·always·have·a·fd·by·now·*/\n········if·(stream.fd)·{\n··········fs.close(stream.fd,·()·=>·{})\n········}\n········/*·c8·ignore·stop·*/\n\n········this[ONERROR](er,·entry)\n········fullyDone()\n········return\n······}\n\n······if·(--actions·===·0)·{\n········if·(stream.fd·!==·undefined)·{\n··········fs.close(stream.fd,·er·=>·{\n············if·(er)·{\n··············this[ONERROR](er,·entry)\n············}·else·{\n··············this[UNPEND]()\n············}\n············fullyDone()\n··········})\n········}\n······}\n····}\n\n····stream.on('finish',·()·=>·{\n······//·if·futimes·fails,·try·utimes\n······//·if·utimes·fails,·fail·with·the·original·error\n······//·same·for·fchown/chown\n······const·abs·=·String(entry.absolute)\n······const·fd·=·stream.fd\n\n······if·(typeof·fd·===·'number'·&&·entry.mtime·&&·!this.noMtime)·{\n········actions++\n········const·atime·=·entry.atime·||·new·Date()\n········const·mtime·=·entry.mtime\n········fs.futimes(fd,·atime,·mtime,·er·=>\n··········er·?\n············fs.utimes(abs,·atime,·mtime,·er2·=>·done(er2·&&·er))\n··········:·done(),\n········)\n······}\n\n······if·(typeof·fd·===·'number'·&&·this[DOCHOWN](entry))·{\n········actions++\n········const·uid·=·this[UID](entry)\n········const·gid·=·this[GID](entry)\n········if·(typeof·uid·===·'number'·&&·typeof·gid·===·'number')·{\n··········fs.fchown(fd,·uid,·gid,·er·=>\n············er·?\n··············fs.chown(abs,·uid,·gid,·er2·=>·done(er2·&&·er))\n············:·done(),\n··········)\n········}\n······}\n\n······done()\n····})\n\n····const·tx·=·this.transform·?·this.transform(entry)·||·entry·:·entry\n····if·(tx·!==·entry)·{\n······tx.on('error',·(er:·Error)·=>·{\n········this[ONERROR](er,·entry)\n········fullyDone()\n······})\n······entry.pipe(tx)\n····}\n····tx.pipe(stream)\n··}\n\n··[DIRECTORY](entry:·ReadEntry,·fullyDone:·()·=>·void)·{\n····const·mode·=\n······typeof·entry.mode·===·'number'·?\n········entry.mode·&·0o7777\n······:·this.dmode\n····this[MKDIR](String(entry.absolute),·mode,·er·=>·{\n······if·(er)·{\n········this[ONERROR](er,·entry)\n········fullyDone()\n········return\n······}\n\n······let·actions·=·1\n······const·done·=·()·=>·{\n········if·(--actions·===·0)·{\n··········fullyDone()\n··········this[UNPEND]()\n··········entry.resume()\n········}\n······}\n\n······if·(entry.mtime·&&·!this.noMtime)·{\n········actions++\n········fs.utimes(\n··········String(entry.absolute),\n··········entry.atime·||·new·Date(),\n··········entry.mtime,\n··········done,\n········)\n······}\n\n······if·(this[DOCHOWN](entry))·{\n········actions++\n········fs.chown(\n··········String(entry.absolute),\n··········Number(this[UID](entry)),\n··········Number(this[GID](entry)),\n··········done,\n········)\n······}\n\n······done()\n····})\n··}\n\n··[UNSUPPORTED](entry:·ReadEntry)·{\n····entry.unsupported·=·true\n····this.warn(\n······'TAR_ENTRY_UNSUPPORTED',\n······`unsupported·entry·type:·${entry.type}`,\n······{·entry·},\n····)\n····entry.resume()\n··}\n\n··[SYMLINK](entry:·ReadEntry,·done:·()·=>·void)·{\n····this[LINK](entry,·String(entry.linkpath),·'symlink',·done)\n··}\n\n··[HARDLINK](entry:·ReadEntry,·done:·()·=>·void)·{\n····const·linkpath·=·normalizeWindowsPath(\n······path.resolve(this.cwd,·String(entry.linkpath)),\n····)\n····this[LINK](entry,·linkpath,·'link',·done)\n··}\n\n··[PEND]()·{\n····this[PENDING]++\n··}\n\n··[UNPEND]()·{\n····this[PENDING]--\n····this[MAYBECLOSE]()\n··}\n\n··[SKIP](entry:·ReadEntry)·{\n····this[UNPEND]()\n····entry.resume()\n··}\n\n··//·Check·if·we·can·reuse·an·existing·filesystem·entry·safely·and\n··//·overwrite·it,·rather·than·unlinking·and·recreating\n··//·Windows·doesn't·report·a·useful·nlink,·so·we·just·never·reuse·entries\n··[ISREUSABLE](entry:·ReadEntry,·st:·Stats)·{\n····return·(\n······entry.type·===·'File'·&&\n······!this.unlink·&&\n······st.isFile()·&&\n······st.nlink·<=·1·&&\n······!isWindows\n····)\n··}\n\n··//·check·if·a·thing·is·there,·and·if·so,·try·to·clobber·it\n··[CHECKFS](entry:·ReadEntry)·{\n····this[PEND]()\n····const·paths·=·[entry.path]\n····if·(entry.linkpath)·{\n······paths.push(entry.linkpath)\n····}\n····this.reservations.reserve(paths,·done·=>\n······this[CHECKFS2](entry,·done),\n····)\n··}\n\n··[CHECKFS2](entry:·ReadEntry,·fullyDone:·(er?:·Error)·=>·void)·{\n····const·done·=·(er?:·Error)·=>·{\n······fullyDone(er)\n····}\n\n····const·checkCwd·=·()·=>·{\n······this[MKDIR](this.cwd,·this.dmode,·er·=>·{\n········if·(er)·{\n··········this[ONERROR](er,·entry)\n··········done()\n··········return\n········}\n········this[CHECKED_CWD]·=·true\n········start()\n······})\n····}\n\n····const·start·=·()·=>·{\n······if·(entry.absolute·!==·this.cwd)·{\n········const·parent·=·normalizeWindowsPath(\n··········path.dirname(String(entry.absolute)),\n········)\n········if·(parent·!==·this.cwd)·{\n··········return·this[MKDIR](parent,·this.dmode,·er·=>·{\n············if·(er)·{\n··············this[ONERROR](er,·entry)\n··············done()\n··············return\n············}\n············afterMakeParent()\n··········})\n········}\n······}\n······afterMakeParent()\n····}\n\n····const·afterMakeParent·=·()·=>·{\n······fs.lstat(String(entry.absolute),·(lstatEr,·st)·=>·{\n········if·(\n··········st·&&\n··········(this.keep·||\n············/*·c8·ignore·next·*/\n············(this.newer·&&·st.mtime·>·(entry.mtime·??·st.mtime)))\n········)·{\n··········this[SKIP](entry)\n··········done()\n··········return\n········}\n········if·(lstatEr·||·this[ISREUSABLE](entry,·st))·{\n··········return·this[MAKEFS](null,·entry,·done)\n········}\n\n········if·(st.isDirectory())·{\n··········if·(entry.type·===·'Directory')·{\n············const·needChmod·=\n··············this.chmod·&&\n··············entry.mode·&&\n··············(st.mode·&·0o7777)·!==·entry.mode\n············const·afterChmod·=·(er?:·Error·|·null·|·undefined)·=>\n··············this[MAKEFS](er·??·null,·entry,·done)\n············if·(!needChmod)·{\n··············return·afterChmod()\n············}\n············return·fs.chmod(\n··············String(entry.absolute),\n··············Number(entry.mode),\n··············afterChmod,\n············)\n··········}\n··········//·Not·a·dir·entry,·have·to·remove·it.\n··········//·NB:·the·only·way·to·end·up·with·an·entry·that·is·the·cwd\n··········//·itself,·in·such·a·way·that·==·does·not·detect,·is·a\n··········//·tricky·windows·absolute·path·with·UNC·or·8.3·parts·(and\n··········//·preservePaths:true,·or·else·it·will·have·been·stripped).\n··········//·In·that·case,·the·user·has·opted·out·of·path·protections\n··········//·explicitly,·so·if·they·blow·away·the·cwd,·c'est·la·vie.\n··········if·(entry.absolute·!==·this.cwd)·{\n············return·fs.rmdir(\n··············String(entry.absolute),\n··············(er?:·null·|·Error)·=>\n················this[MAKEFS](er·??·null,·entry,·done),\n············)\n··········}\n········}\n\n········//·not·a·dir,·and·not·reusable\n········//·don't·remove·if·the·cwd,·we·want·that·error\n········if·(entry.absolute·===·this.cwd)·{\n··········return·this[MAKEFS](null,·entry,·done)\n········}\n\n········unlinkFile(String(entry.absolute),·er·=>\n··········this[MAKEFS](er·??·null,·entry,·done),\n········)\n······})\n····}\n\n····if·(this[CHECKED_CWD])·{\n······start()\n····}·else·{\n······checkCwd()\n····}\n··}\n\n··[MAKEFS](\n····er:·null·|·undefined·|·Error,\n····entry:·ReadEntry,\n····done:·()·=>·void,\n··)·{\n····if·(er)·{\n······this[ONERROR](er,·entry)\n······done()\n······return\n····}\n\n····switch·(entry.type)·{\n······case·'File':\n······case·'OldFile':\n······case·'ContiguousFile':\n········return·this[FILE](entry,·done)\n\n······case·'Link':\n········return·this[HARDLINK](entry,·done)\n\n······case·'SymbolicLink':\n········return·this[SYMLINK](entry,·done)\n\n······case·'Directory':\n······case·'GNUDumpDir':\n········return·this[DIRECTORY](entry,·done)\n····}\n··}\n\n··[LINK](\n····entry:·ReadEntry,\n····linkpath:·string,\n····link:·'link'·|·'symlink',\n····done:·()·=>·void,\n··)·{\n····//·XXX:·get·the·type·('symlink'·or·'junction')·for·windows\n····fs[link](linkpath,·String(entry.absolute),·er·=>·{\n······if·(er)·{\n········this[ONERROR](er,·entry)\n······}·else·{\n········this[UNPEND]()\n········entry.resume()\n······}\n······done()\n····})\n··}\n}\n\nconst·callSync·=·(fn:·()·=>·any)·=>·{\n··try·{\n····return·[null,·fn()]\n··}·catch·(er)·{\n····return·[er,·null]\n··}\n}\n\nexport·class·UnpackSync·extends·Unpack·{\n··sync:·true·=·true;\n\n··[MAKEFS](er:·null·|·Error·|·undefined,·entry:·ReadEntry)·{\n····return·super[MAKEFS](er,·entry,·()·=>·{})\n··}\n\n··[CHECKFS](entry:·ReadEntry)·{\n····if·(!this[CHECKED_CWD])·{\n······const·er·=·this[MKDIR](this.cwd,·this.dmode)\n······if·(er)·{\n········return·this[ONERROR](er·as·Error,·entry)\n······}\n······this[CHECKED_CWD]·=·true\n····}\n\n····//·don't·bother·to·make·the·parent·if·the·current·entry·is·the·cwd,\n····//·we've·already·checked·it.\n····if·(entry.absolute·!==·this.cwd)·{\n······const·parent·=·normalizeWindowsPath(\n········path.dirname(String(entry.absolute)),\n······)\n······if·(parent·!==·this.cwd)·{\n········const·mkParent·=·this[MKDIR](parent,·this.dmode)\n········if·(mkParent)·{\n··········return·this[ONERROR](mkParent·as·Error,·entry)\n········}\n······}\n····}\n\n····const·[lstatEr,·st]·=·callSync(()·=>\n······fs.lstatSync(String(entry.absolute)),\n····)\n····if·(\n······st·&&\n······(this.keep·||\n········/*·c8·ignore·next·*/\n········(this.newer·&&·st.mtime·>·(entry.mtime·??·st.mtime)))\n····)·{\n······return·this[SKIP](entry)\n····}\n\n····if·(lstatEr·||·this[ISREUSABLE](entry,·st))·{\n······return·this[MAKEFS](null,·entry)\n····}\n\n····if·(st.isDirectory())·{\n······if·(entry.type·===·'Directory')·{\n········const·needChmod·=\n··········this.chmod·&&\n··········entry.mode·&&\n··········(st.mode·&·0o7777)·!==·entry.mode\n········const·[er]·=\n··········needChmod·?\n············callSync(()·=>·{\n··············fs.chmodSync(String(entry.absolute),·Number(entry.mode))\n············})\n··········:·[]\n········return·this[MAKEFS](er,·entry)\n······}\n······//·not·a·dir·entry,·have·to·remove·it\n······const·[er]·=·callSync(()·=>\n········fs.rmdirSync(String(entry.absolute)),\n······)\n······this[MAKEFS](er,·entry)\n····}\n\n····//·not·a·dir,·and·not·reusable.\n····//·don't·remove·if·it's·the·cwd,·since·we·want·that·error.\n····const·[er]·=\n······entry.absolute·===·this.cwd·?\n········[]\n······:·callSync(()·=>·unlinkFileSync(String(entry.absolute)))\n····this[MAKEFS](er,·entry)\n··}\n\n··[FILE](entry:·ReadEntry,·done:·()·=>·void)·{\n····const·mode·=\n······typeof·entry.mode·===·'number'·?\n········entry.mode·&·0o7777\n······:·this.fmode\n\n····const·oner·=·(er?:·null·|·Error·|·undefined)·=>·{\n······let·closeError\n······try·{\n········fs.closeSync(fd)\n······}·catch·(e)·{\n········closeError·=·e\n······}\n······if·(er·||·closeError)·{\n········this[ONERROR]((er·as·Error)·||·closeError,·entry)\n······}\n······done()\n····}\n\n····let·fd:·number\n····try·{\n······fd·=·fs.openSync(\n········String(entry.absolute),\n········getWriteFlag(entry.size),\n········mode,\n······)\n······/*·c8·ignore·start·-·This·is·only·a·problem·if·the·file·was·successfully\n·······*·statted,·BUT·failed·to·open.·Testing·this·is·annoying,·and·we\n·······*·already·have·ample·testint·for·other·uses·of·oner()·methods.\n·······*/\n····}·catch·(er)·{\n······return·oner(er·as·Error)\n····}\n····/*·c8·ignore·stop·*/\n····const·tx·=·this.transform·?·this.transform(entry)·||·entry·:·entry\n····if·(tx·!==·entry)·{\n······tx.on('error',·(er:·Error)·=>·this[ONERROR](er,·entry))\n······entry.pipe(tx)\n····}\n\n····tx.on('data',·(chunk:·Buffer)·=>·{\n······try·{\n········fs.writeSync(fd,·chunk,·0,·chunk.length)\n······}·catch·(er)·{\n········oner(er·as·Error)\n······}\n····})\n\n····tx.on('end',·()·=>·{\n······let·er·=·null\n······//·try·both,·falling·futimes·back·to·utimes\n······//·if·either·fails,·handle·the·first·error\n······if·(entry.mtime·&&·!this.noMtime)·{\n········const·atime·=·entry.atime·||·new·Date()\n········const·mtime·=·entry.mtime\n········try·{\n··········fs.futimesSync(fd,·atime,·mtime)\n········}·catch·(futimeser)·{\n··········try·{\n············fs.utimesSync(String(entry.absolute),·atime,·mtime)\n··········}·catch·(utimeser)·{\n············er·=·futimeser\n··········}\n········}\n······}\n\n······if·(this[DOCHOWN](entry))·{\n········const·uid·=·this[UID](entry)\n········const·gid·=·this[GID](entry)\n\n········try·{\n··········fs.fchownSync(fd,·Number(uid),·Number(gid))\n········}·catch·(fchowner)·{\n··········try·{\n············fs.chownSync(\n··············String(entry.absolute),\n··············Number(uid),\n··············Number(gid),\n············)\n··········}·catch·(chowner)·{\n············er·=·er·||·fchowner\n··········}\n········}\n······}\n\n······oner(er·as·Error)\n····})\n··}\n\n··[DIRECTORY](entry:·ReadEntry,·done:·()·=>·void)·{\n····const·mode·=\n······typeof·entry.mode·===·'number'·?\n········entry.mode·&·0o7777\n······:·this.dmode\n····const·er·=·this[MKDIR](String(entry.absolute),·mode)\n····if·(er)·{\n······this[ONERROR](er·as·Error,·entry)\n······done()\n······return\n····}\n····if·(entry.mtime·&&·!this.noMtime)·{\n······try·{\n········fs.utimesSync(\n··········String(entry.absolute),\n··········entry.atime·||·new·Date(),\n··········entry.mtime,\n········)\n········/*·c8·ignore·next·*/\n······}·catch·(er)·{}\n····}\n····if·(this[DOCHOWN](entry))·{\n······try·{\n········fs.chownSync(\n··········String(entry.absolute),\n··········Number(this[UID](entry)),\n··········Number(this[GID](entry)),\n········)\n······}·catch·(er)·{}\n····}\n····done()\n····entry.resume()\n··}\n\n··[MKDIR](dir:·string,·mode:·number)·{\n····try·{\n······return·mkdirSync(normalizeWindowsPath(dir),·{\n········uid:·this.uid,\n········gid:·this.gid,\n········processUid:·this.processUid,\n········processGid:·this.processGid,\n········umask:·this.processUmask,\n········preserve:·this.preservePaths,\n········unlink:·this.unlink,\n········cwd:·this.cwd,\n········mode:·mode,\n······})\n····}·catch·(er)·{\n······return·er\n····}\n··}\n\n··[LINK](\n····entry:·ReadEntry,\n····linkpath:·string,\n····link:·'link'·|·'symlink',\n····done:·()·=>·void,\n··)·{\n····const·ls:·`${typeof·link}Sync`·=·`${link}Sync`\n····try·{\n······fs[ls](linkpath,·String(entry.absolute))\n······done()\n······entry.resume()\n····}·catch·(er)·{\n······return·this[ONERROR](er·as·Error,·entry)\n····}\n··}\n}\n" |
| 11 | ····], | 11 | ····], |
| 12 | ····"version":·3 | 12 | ····"version":·3 |
| 13 | } | 13 | } |
| Offset 1, 9 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 3 | import·{·type·Minipass·}·from·'minipass'; | 1 | import·{·type·Minipass·}·from·'minipass'; |
| 4 | /**·has·a·warn·method·*/ | 2 | /**·has·a·warn·method·*/ |
| 5 | export·type·Warner·=·{ | 3 | export·type·Warner·=·{ |
| 6 | ····warn(code:·string,·message:·string·|·Error,·data:·any):·void; | 4 | ····warn(code:·string,·message:·string·|·Error,·data:·any):·void; |
| 7 | ····file?:·string; | 5 | ····file?:·string; |
| 8 | ····cwd?:·string; | 6 | ····cwd?:·string; |
| 9 | ····strict?:·boolean; | 7 | ····strict?:·boolean; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"warn-method.d.ts", | 2 | ····"file":·"warn-method.d.ts", |
| 3 | ····"mappings":·" | 3 | ····"mappings":·"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC,wBAAwB;AACxB,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAA;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,[·...·truncated·by·diffoscope;·len:·752,·SHA:·fb541b5d72b592e19ccb520b184e7e66e5777e151f67dafb65f3cc2cf46b081b·...·],CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/warn-method.ts" | 7 | ········"../../src/warn-method.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"winchars.d.ts", | 2 | ····"file":·"winchars.d.ts", |
| 3 | ····"mappings":·"AAYA,eAAO,MAAM,MAAM, | 3 | ····"mappings":·"AAYA,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,WACwB,CAAA;AACxD,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,WACwB,CAAA", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/winchars.ts" | 7 | ········"../../src/winchars.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 1, 11 lines modified | Offset 1, 7 lines modified | ||
| 1 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 2 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 3 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 4 | ///·<reference·types="node"·resolution-mode="require"/> | ||
| 5 | import·{·type·Stats·}·from·'fs'; | 1 | import·{·type·Stats·}·from·'fs'; |
| 6 | import·{·Minipass·}·from·'minipass'; | 2 | import·{·Minipass·}·from·'minipass'; |
| 7 | import·{·Header·}·from·'./header.js'; | 3 | import·{·Header·}·from·'./header.js'; |
| 8 | import·{·TarOptions,·TarOptionsWithAliases·}·from·'./options.js'; | 4 | import·{·TarOptions,·TarOptionsWithAliases·}·from·'./options.js'; |
| 9 | import·{·ReadEntry·}·from·'./read-entry.js'; | 5 | import·{·ReadEntry·}·from·'./read-entry.js'; |
| 10 | import·{·EntryTypeName·}·from·'./types.js'; | 6 | import·{·EntryTypeName·}·from·'./types.js'; |
| 11 | import·{·WarnData,·Warner,·WarnEvent·}·from·'./warn-method.js'; | 7 | import·{·WarnData,·Warner,·WarnEvent·}·from·'./warn-method.js'; |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | { | 1 | { |
| 2 | ····"file":·"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AM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,EAAE,IAAI,GAAE,QAAa;gBAK7D,SAAS,EAAE,SAAS,EACpB,IAAI,GAAE,qBAA0B;IAyHlC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,MAAM;IAIrB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM;IAInB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO;IACxD,KAAK,CACH,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,EAChC,EAAE,CAAC,EAAE,MAAM,IAAI,GACd,OAAO;IA0BV,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;IAC1B,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;IAClD,GAAG,CACD,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,QAAQ,CAAC,EAAE,cAAc,EACzB,EAAE,CAAC,EAAE,MAAM,IAAI,GACd,IAAI;CA2BR", |
| 4 | ····"names":·[], | 4 | ····"names":·[], |
| 5 | ····"sourceRoot":·"", | 5 | ····"sourceRoot":·"", |
| 6 | ····"sources":·[ | 6 | ····"sources":·[ |
| 7 | ········"../../src/write-entry.ts" | 7 | ········"../../src/write-entry.ts" |
| 8 | ····], | 8 | ····], |
| 9 | ····"version":·3 | 9 | ····"version":·3 |
| 10 | } | 10 | } |
| Offset 5, 279 lines modified | Offset 5, 229 lines modified | ||
| 5 | ········"chownr":·"^3.0.0", | 5 | ········"chownr":·"^3.0.0", |
| 6 | ········"minipass":·"^7.1.2", | 6 | ········"minipass":·"^7.1.2", |
| 7 | ········"minizlib":·"^3.1.0", | 7 | ········"minizlib":·"^3.1.0", |
| 8 | ········"yallist":·"^5.0.0" | 8 | ········"yallist":·"^5.0.0" |
| 9 | ····}, | 9 | ····}, |
| 10 | ····"description":·"tar·for·node", | 10 | ····"description":·"tar·for·node", |
| 11 | ····"devDependencies":·{ | 11 | ····"devDependencies":·{ |
| 12 | ········"@types/node":·"^2 | 12 | ········"@types/node":·"^25.0.9", |
| 13 | ········"chmodr":·"^ | 13 | ········"chmodr":·"^2.0.2", |
| 14 | ········"end-of-stream":·"^1.4.3", | 14 | ········"end-of-stream":·"^1.4.3", |
| 15 | ········"events-to-array":·"^2.0.3", | 15 | ········"events-to-array":·"^2.0.3", |
| 16 | ········"mutate-fs":·"^2.1.1", | 16 | ········"mutate-fs":·"^2.1.1", |
| 17 | ········"nock":·"^13.5.4", | 17 | ········"nock":·"^13.5.4", |
| 18 | ········"prettier":·"^3. | 18 | ········"prettier":·"^3.8.0", |
| 19 | ········"rimraf":·"^ | 19 | ········"rimraf":·"^6.1.2", |
| 20 | ········"tap":·"^ | 20 | ········"tap":·"^21.5.0", |
| 21 | ········"tshy":·"^ | 21 | ········"tshy":·"^3.1.0", |
| 22 | ········"typedoc":·"^0.2 | 22 | ········"typedoc":·"^0.28.16" |
| 23 | ····}, | 23 | ····}, |
| 24 | ····"engines":·{ | 24 | ····"engines":·{ |
| 25 | ········"node":·">=18" | 25 | ········"node":·">=18" |
| 26 | ····}, | 26 | ····}, |
| 27 | ····"exports":·{ | 27 | ····"exports":·{ |
| 28 | ········".":·{ | 28 | ········".":·{ |
| 29 | ············"import":·{ | 29 | ············"import":·{ |
| 30 | ················"default":·"./dist/esm/index.js", | 30 | ················"default":·"./dist/esm/index.js", |
| 31 | ················"source":·"./src/index.ts", | ||
| 32 | ················"types":·"./dist/esm/index.d.ts" | 31 | ················"types":·"./dist/esm/index.d.ts" |
| 33 | ············}, | 32 | ············}, |
| 34 | ············"require":·{ | 33 | ············"require":·{ |
| 35 | ················"default":·"./dist/commonjs/index.js", | 34 | ················"default":·"./dist/commonjs/index.js", |
| 36 | ················"source":·"./src/index.ts", | ||
| 37 | ················"types":·"./dist/commonjs/index.d.ts" | 35 | ················"types":·"./dist/commonjs/index.d.ts" |
| 38 | ············} | 36 | ············} |
| 39 | ········}, | 37 | ········}, |
| 40 | ········"./c":·{ | 38 | ········"./c":·{ |
| 41 | ············"import":·{ | 39 | ············"import":·{ |
| 42 | ················"default":·"./dist/esm/create.js", | 40 | ················"default":·"./dist/esm/create.js", |
| 43 | ················"source":·"./src/create.ts", | ||
| 44 | ················"types":·"./dist/esm/create.d.ts" | 41 | ················"types":·"./dist/esm/create.d.ts" |
| 45 | ············}, | 42 | ············}, |
| 46 | ············"require":·{ | 43 | ············"require":·{ |
| 47 | ················"default":·"./dist/commonjs/create.js", | 44 | ················"default":·"./dist/commonjs/create.js", |
| 48 | ················"source":·"./src/create.ts", | ||
| 49 | ················"types":·"./dist/commonjs/create.d.ts" | 45 | ················"types":·"./dist/commonjs/create.d.ts" |
| 50 | ············} | 46 | ············} |
| 51 | ········}, | 47 | ········}, |
| 52 | ········"./create":·{ | 48 | ········"./create":·{ |
| 53 | ············"import":·{ | 49 | ············"import":·{ |
| 54 | ················"default":·"./dist/esm/create.js", | 50 | ················"default":·"./dist/esm/create.js", |
| 55 | ················"source":·"./src/create.ts", | ||
| 56 | ················"types":·"./dist/esm/create.d.ts" | 51 | ················"types":·"./dist/esm/create.d.ts" |
| 57 | ············}, | 52 | ············}, |
| 58 | ············"require":·{ | 53 | ············"require":·{ |
| 59 | ················"default":·"./dist/commonjs/create.js", | 54 | ················"default":·"./dist/commonjs/create.js", |
| 60 | ················"source":·"./src/create.ts", | ||
| 61 | ················"types":·"./dist/commonjs/create.d.ts" | 55 | ················"types":·"./dist/commonjs/create.d.ts" |
| 62 | ············} | 56 | ············} |
| 63 | ········}, | 57 | ········}, |
| 64 | ········"./extract":·{ | 58 | ········"./extract":·{ |
| 65 | ············"import":·{ | 59 | ············"import":·{ |
| 66 | ················"default":·"./dist/esm/extract.js", | 60 | ················"default":·"./dist/esm/extract.js", |
| 67 | ················"source":·"./src/extract.ts", | ||
| 68 | ················"types":·"./dist/esm/extract.d.ts" | 61 | ················"types":·"./dist/esm/extract.d.ts" |
| 69 | ············}, | 62 | ············}, |
| 70 | ············"require":·{ | 63 | ············"require":·{ |
| 71 | ················"default":·"./dist/commonjs/extract.js", | 64 | ················"default":·"./dist/commonjs/extract.js", |
| 72 | ················"source":·"./src/extract.ts", | ||
| 73 | ················"types":·"./dist/commonjs/extract.d.ts" | 65 | ················"types":·"./dist/commonjs/extract.d.ts" |
| 74 | ············} | 66 | ············} |
| 75 | ········}, | 67 | ········}, |
| 76 | ········"./header":·{ | 68 | ········"./header":·{ |
| 77 | ············"import":·{ | 69 | ············"import":·{ |
| 78 | ················"default":·"./dist/esm/header.js", | 70 | ················"default":·"./dist/esm/header.js", |
| 79 | ················"source":·"./src/header.ts", | ||
| 80 | ················"types":·"./dist/esm/header.d.ts" | 71 | ················"types":·"./dist/esm/header.d.ts" |
| 81 | ············}, | 72 | ············}, |
| 82 | ············"require":·{ | 73 | ············"require":·{ |
| 83 | ················"default":·"./dist/commonjs/header.js", | 74 | ················"default":·"./dist/commonjs/header.js", |
| 84 | ················"source":·"./src/header.ts", | ||
| 85 | ················"types":·"./dist/commonjs/header.d.ts" | 75 | ················"types":·"./dist/commonjs/header.d.ts" |
| 86 | ············} | 76 | ············} |
| 87 | ········}, | 77 | ········}, |
| 88 | ········"./list":·{ | 78 | ········"./list":·{ |
| 89 | ············"import":·{ | 79 | ············"import":·{ |
| 90 | ················"default":·"./dist/esm/list.js", | 80 | ················"default":·"./dist/esm/list.js", |
| 91 | ················"source":·"./src/list.ts", | ||
| 92 | ················"types":·"./dist/esm/list.d.ts" | 81 | ················"types":·"./dist/esm/list.d.ts" |
| 93 | ············}, | 82 | ············}, |
| 94 | ············"require":·{ | 83 | ············"require":·{ |
| 95 | ················"default":·"./dist/commonjs/list.js", | 84 | ················"default":·"./dist/commonjs/list.js", |
| 96 | ················"source":·"./src/list.ts", | ||
| 97 | ················"types":·"./dist/commonjs/list.d.ts" | 85 | ················"types":·"./dist/commonjs/list.d.ts" |
| 98 | ············} | 86 | ············} |
| 99 | ········}, | 87 | ········}, |
| 100 | ········"./pack":·{ | 88 | ········"./pack":·{ |
| 101 | ············"import":·{ | 89 | ············"import":·{ |
| 102 | ················"default":·"./dist/esm/pack.js", | 90 | ················"default":·"./dist/esm/pack.js", |
| 103 | ················"source":·"./src/pack.ts", | ||
| Max diff block lines reached; 7031/10586 bytes (66.42%) of diff not shown. | |||
| Offset 1, 174 lines modified | Offset 1, 174 lines modified | ||
| 00000000:·2775·7365·2073·7472·6963·7427·0a63·6f6e··'use·strict'.con | 00000000:·2775·7365·2073·7472·6963·7427·0a63·6f6e··'use·strict'.con | ||
| 00000010:·7374·207b·2062·7569·6c74·696e·4d6f·6475··st·{·builtinModu | |||
| 000000 | 00000010:·7374·2062·7569·6c74·696e·7320·3d20·7265··st·builtins·=·re | ||
| 000000 | 00000020:·7175·6972·6528·272e·2f62·7569·6c74·696e··quire('./builtin | ||
| 00000030:·2d6d·6f64·756c·6573·2e6a·736f·6e27·290a··-modules.json'). | |||
| 00000040:· | 00000040:·0a76·6172·2073·636f·7065·6450·6163·6b61··.var·scopedPacka | ||
| 00000050:·6 | 00000050:·6765·5061·7474·6572·6e20·3d20·6e65·7720··gePattern·=·new· | ||
| 00000060:· | 00000060:·5265·6745·7870·2827·5e28·3f3a·4028·5b5e··RegExp('^(?:@([^ | ||
| 00000070:· | 00000070:·2f5d·2b3f·295b·2f5d·293f·285b·5e2f·5d2b··/]+?)[/])?([^/]+ | ||
| 00000080:· | 00000080:·3f29·2427·290a·7661·7220·6578·636c·7573··?)$').var·exclus | ||
| 00000090:·6 | 00000090:·696f·6e4c·6973·7420·3d20·5b0a·2020·276e··ionList·=·[.··'n | ||
| 000000a0:· | 000000a0:·6f64·655f·6d6f·6475·6c65·7327·2c0a·2020··ode_modules',.·· | ||
| 000000b0:·2 | 000000b0:·2766·6176·6963·6f6e·2e69·636f·272c·0a5d··'favicon.ico',.] | ||
| 000000c0:· | 000000c0:·0a0a·6675·6e63·7469·6f6e·2076·616c·6964··..function·valid | ||
| 000000d0:·61 | 000000d0:·6174·6520·286e·616d·6529·207b·0a20·2076··ate·(name)·{.··v | ||
| 000000e0:· | 000000e0:·6172·2077·6172·6e69·6e67·7320·3d20·5b5d··ar·warnings·=·[] | ||
| 000000f0:· | 000000f0:·0a20·2076·6172·2065·7272·6f72·7320·3d20··.··var·errors·=· | ||
| 00000100:· | 00000100:·5b5d·0a0a·2020·6966·2028·6e61·6d65·203d··[]..··if·(name·= | ||
| 00000110:· | 00000110:·3d3d·206e·756c·6c29·207b·0a20·2020·2065··==·null)·{.····e | ||
| 00000120:·2020·2065·7272·6f72·732e·7075·7368·2827·····errors.push(' | |||
| 00000130:·6e61·6d65·2063·616e·6e6f·7420·6265·206e··name·cannot·be·n | |||
| 00000140:·756c·6c27·290a·2020·2020·7265·7475·726e··ull').····return | |||
| 00000150:·2064·6f6e·6528·7761·726e·696e·6773·2c20···done(warnings,· | |||
| 00000160:·6572·726f·7273·290a·2020·7d0a·0a20·2069··errors).··}..··i | |||
| 00000170:·6620·286e·616d·6520·3d3d·3d20·756e·6465··f·(name·===·unde | |||
| 00000180:·6669·6e65·6429·207b·0a20·2020·2065·7272··fined)·{.····err | |||
| 000001 | 00000120:·7272·6f72·732e·7075·7368·2827·6e61·6d65··rrors.push('name | ||
| 00000130:·2063·616e·6e6f·7420·6265·206e·756c·6c27···cannot·be·null' | |||
| 00000140:·290a·2020·2020·7265·7475·726e·2064·6f6e··).····return·don | |||
| 00000150:·6528·7761·726e·696e·6773·2c20·6572·726f··e(warnings,·erro | |||
| 00000160:·7273·290a·2020·7d0a·0a20·2069·6620·286e··rs).··}..··if·(n | |||
| 00000170:·616d·6520·3d3d·3d20·756e·6465·6669·6e65··ame·===·undefine | |||
| 00000180:·6429·207b·0a20·2020·2065·7272·6f72·732e··d)·{.····errors. | |||
| 00000190:·7075·7368·2827·6e61·6d65·2063·616e·6e6f··push('name·canno | |||
| 000001a0:· | 000001a0:·7420·6265·2075·6e64·6566·696e·6564·2729··t·be·undefined') | ||
| 000001b0:·0a20·2020·2072·6574·7572·6e20·646f·6e65··.····return·done | |||
| 000001c0:·2877·6172·6e69·6e67·732c·2065·7272·6f72··(warnings,·error | |||
| 000001d0:·7329·0a20·207d·0a0a·2020·6966·2028·7479··s).··}..··if·(ty | |||
| 000001e0:·7065·6f66·206e·616d·6520·213d·3d20·2773··peof·name·!==·'s | |||
| 000001f0:·7472·696e·6727·2920·7b0a·2020·2020·6572··tring')·{.····er | |||
| 00000200:·726f·7273·2e70·7573·6828·276e·616d·6520··rors.push('name· | |||
| 00000210:·6d75·7374·2062·6520·6120·7374·7269·6e67··must·be·a·string | |||
| 00000 | 00000220:·2729·0a20·2020·2072·6574·7572·6e20·646f··').····return·do | ||
| 00000 | 00000230:·6e65·2877·6172·6e69·6e67·732c·2065·7272··ne(warnings,·err | ||
| 00000 | 00000240:·6f72·7329·0a20·207d·0a0a·2020·6966·2028··ors).··}..··if·( | ||
| 000001e0:·2028·7479·7065·6f66·206e·616d·6520·213d···(typeof·name·!= | |||
| 000001f0:·3d20·2773·7472·696e·6727·2920·7b0a·2020··=·'string')·{.·· | |||
| 00000200:·2020·6572·726f·7273·2e70·7573·6828·276e····errors.push('n | |||
| 00000210:·616d·6520·6d75·7374·2062·6520·6120·7374··ame·must·be·a·st | |||
| 00000220:·7269·6e67·2729·0a20·2020·2072·6574·7572··ring').····retur | |||
| 00000230:·6e20·646f·6e65·2877·6172·6e69·6e67·732c··n·done(warnings, | |||
| 00000240:·2065·7272·6f72·7329·0a20·207d·0a0a·2020···errors).··}..·· | |||
| 00000250:· | 00000250:·216e·616d·652e·6c65·6e67·7468·2920·7b0a··!name.length)·{. | ||
| 00000260:·2920·7b0a·2020·2020·6572·726f·7273·2e70··)·{.····errors.p | |||
| 00000270:·7573·6828·276e·616d·6520·6c65·6e67·7468··ush('name·length | |||
| 00000280:·206d·7573·7420·6265·2067·7265·6174·6572···must·be·greater | |||
| 00000290:·2074·6861·6e20·7a65·726f·2729·0a20·207d···than·zero').··} | |||
| 000002a0:·0a0a·2020·6966·2028·6e61·6d65·2e73·7461··..··if·(name.sta | |||
| 000002b0:·7274·7357·6974·6828·272e·2729·2920·7b0a··rtsWith('.'))·{. | |||
| 000002 | 00000260:·2020·2020·6572·726f·7273·2e70·7573·6828······errors.push( | ||
| 00000270:·276e·616d·6520·6c65·6e67·7468·206d·7573··'name·length·mus | |||
| 00000280:·7420·6265·2067·7265·6174·6572·2074·6861··t·be·greater·tha | |||
| 00000290:·6e20·7a65·726f·2729·0a20·207d·0a0a·2020··n·zero').··}..·· | |||
| 000002a0:·6966·2028·6e61·6d65·2e73·7461·7274·7357··if·(name.startsW | |||
| 000002b0:·6974·6828·272e·2729·2920·7b0a·2020·2020··ith('.'))·{.···· | |||
| 000002c0:·6572·726f·7273·2e70·7573·6828·276e·616d··errors.push('nam | |||
| 000002d0:· | 000002d0:·6520·6361·6e6e·6f74·2073·7461·7274·2077··e·cannot·start·w | ||
| 000002e0:· | 000002e0:·6974·6820·6120·7065·7269·6f64·2729·0a20··ith·a·period').· | ||
| 000002f0:·2729·0a20·207d·0a0a·2020·6966·2028·6e61··').··}..··if·(na | |||
| 00000300:·6d65·2e73·7461·7274·7357·6974·6828·272d··me.startsWith('- | |||
| 00000310:·2729·2920·7b0a·2020·2020·6572·726f·7273··'))·{.····errors | |||
| 00000320:·2e70·7573·6828·276e·616d·6520·6361·6e6e··.push('name·cann | |||
| 00000330:·6f74·2073·7461·7274·2077·6974·6820·6120··ot·start·with·a· | |||
| 00000340:·6879·7068·656e·2729·0a20·207d·0a0a·2020··hyphen').··}..·· | |||
| 00000350:·6966·2028·6e61·6d65·2e6d·6174·6368·282f··if·(name.match(/ | |||
| 00000360:·5e5f·2f29·2920·7b0a·2020·2020·6572·726f··^_/))·{.····erro | |||
| 00000370:·7273·2e70·7573·6828·276e·616d·6520·6361··rs.push('name·ca | |||
| 00000380:·6e6e·6f74·2073·7461·7274·2077·6974·6820··nnot·start·with· | |||
| 00000390:·616e·2075·6e64·6572·7363·6f72·6527·290a··an·underscore'). | |||
| 000003a0:·2020·7d0a·0a20·2069·6620·286e·616d·652e····}..··if·(name. | |||
| 000003b0:·7472·696d·2829·2021·3d3d·206e·616d·6529··trim()·!==·name) | |||
| 000003c0:·207b·0a20·2020·2065·7272·6f72·732e·7075···{.····errors.pu | |||
| 000003d0:·7368·2827·6e61·6d65·2063·616e·6e6f·7420··sh('name·cannot· | |||
| 000003e0:·636f·6e74·6169·6e20·6c65·6164·696e·6720··contain·leading· | |||
| 000003f0:·6f72·2074·7261·696c·696e·6720·7370·6163··or·trailing·spac | |||
| 00000400:·6573·2729·0a20·207d·0a0a·2020·2f2f·204e··es').··}..··//·N | |||
| 00000410:·6f20·6675·6e6e·7920·6275·7369·6e65·7373··o·funny·business | |||
| 00000420:·0a20·2065·7863·6c75·7369·6f6e·4c69·7374··.··exclusionList | |||
| 00000430:·2e66·6f72·4561·6368·2866·756e·6374·696f··.forEach(functio | |||
| 00000440:·6e20·2865·7863·6c75·6465·644e·616d·6529··n·(excludedName) | |||
| 00000450:·207b·0a20·2020·2069·6620·286e·616d·652e···{.····if·(name. | |||
| 00000460:·746f·4c6f·7765·7243·6173·6528·2920·3d3d··toLowerCase()·== | |||
| 00000470:·3d20·6578·636c·7564·6564·4e61·6d65·2920··=·excludedName)· | |||
| 00000480:·7b0a·2020·2020·2020·6572·726f·7273·2e70··{.······errors.p | |||
| 00000490:·7573·6828·6578·636c·7564·6564·4e61·6d65··ush(excludedName | |||
| 000004a0:·202b·2027·2069·7320·6e6f·7420·6120·7661···+·'·is·not·a·va | |||
| 000004b0:·6c69·6420·7061·636b·6167·6520·6e61·6d65··lid·package·name | |||
| 000004c0:·2729·0a20·2020·207d·0a20·207d·290a·0a20··').····}.··})..· | |||
| 000004d0:·202f·2f20·4765·6e65·7261·7465·2077·6172···//·Generate·war | |||
| Max diff block lines reached; -1/23955 bytes (-0.00%) of diff not shown. | |||
| Offset 29, 14 lines modified | Offset 29, 15 lines modified | ||
| 29 | ····"main":·"lib/", | 29 | ····"main":·"lib/", |
| 30 | ····"name":·"validate-npm-package-name", | 30 | ····"name":·"validate-npm-package-name", |
| 31 | ····"repository":·{ | 31 | ····"repository":·{ |
| 32 | ········"type":·"git", | 32 | ········"type":·"git", |
| 33 | ········"url":·"git+https://github.com/npm/validate-npm-package-name.git" | 33 | ········"url":·"git+https://github.com/npm/validate-npm-package-name.git" |
| 34 | ····}, | 34 | ····}, |
| 35 | ····"scripts":·{ | 35 | ····"scripts":·{ |
| 36 | ········"builtin-fixture":·"node·-e·\"console.log(JSON.stringify(require('node:module').builtinModules))\"·>·./lib/builtin-modules.json", | ||
| 36 | ········"cov:test":·"TAP_FLAGS='--cov'·npm·run·test:code", | 37 | ········"cov:test":·"TAP_FLAGS='--cov'·npm·run·test:code", |
| 37 | ········"eslint":·"eslint·\"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", | 38 | ········"eslint":·"eslint·\"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", |
| 38 | ········"lint":·"npm·run·eslint", | 39 | ········"lint":·"npm·run·eslint", |
| 39 | ········"lintfix":·"npm·run·eslint·--·--fix", | 40 | ········"lintfix":·"npm·run·eslint·--·--fix", |
| 40 | ········"postlint":·"template-oss-check", | 41 | ········"postlint":·"template-oss-check", |
| 41 | ········"posttest":·"npm·run·lint", | 42 | ········"posttest":·"npm·run·lint", |
| 42 | ········"snap":·"node·--test·--test-update-snapshots·'./test/**/*.js'", | 43 | ········"snap":·"node·--test·--test-update-snapshots·'./test/**/*.js'", |
| Offset 50, 9 lines modified | Offset 51, 9 lines modified | ||
| 50 | ····"templateOSS":·{ | 51 | ····"templateOSS":·{ |
| 51 | ········"//@npmcli/template-oss":·"This·file·is·partially·managed·by·@npmcli/template-oss.·Edits·may·be·overwritten.", | 52 | ········"//@npmcli/template-oss":·"This·file·is·partially·managed·by·@npmcli/template-oss.·Edits·may·be·overwritten.", |
| 52 | ········"latestCiVersion":·24, | 53 | ········"latestCiVersion":·24, |
| 53 | ········"publish":·true, | 54 | ········"publish":·true, |
| 54 | ········"testRunner":·"node:test", | 55 | ········"testRunner":·"node:test", |
| 55 | ········"version":·"4.28.1" | 56 | ········"version":·"4.28.1" |
| 56 | ····}, | 57 | ····}, |
| 57 | ····"version":·"7.0. | 58 | ····"version":·"7.0.2" |
| 58 | } | 59 | } |
| Offset 1, 14 lines modified | Offset 1, 22 lines modified | ||
| 1 | #·Changelog | 1 | #·Changelog |
| 2 | All·notable·changes·to·this·project·will·be·documented·in·this·file. | 2 | All·notable·changes·to·this·project·will·be·documented·in·this·file. |
| 3 | The·format·is·based·on·[Keep·a·Changelog](https://keepachangelog.com/en/1.0.0/) | 3 | The·format·is·based·on·[Keep·a·Changelog](https://keepachangelog.com/en/1.0.0/) |
| 4 | and·this·project·adheres·to·[Semantic·Versioning](https://semver.org/spec/v2.0.0.html). | 4 | and·this·project·adheres·to·[Semantic·Versioning](https://semver.org/spec/v2.0.0.html). |
| 5 | ##·[v1.1.20](https://github.com/inspect-js/which-typed-array/compare/v1.1.19...v1.1.20)·-·2026-01-14 | ||
| 6 | ###·Commits | ||
| 7 | -·[types]·add·Float16Array·to·TypedArray·[`b04301f`](https://github.com/inspect-js/which-typed-array/commit/b04301f737aaa500ac2ee9a0578d6e3a52a65b94) | ||
| 8 | -·[Dev·Deps]·update·`@arethetypeswrong/cli`,·`@ljharb/eslint-config`,·`eslint`,·`make-generator-function`,·`npmignore`·[`215b3a1`](https://github.com/inspect-js/which-typed-array/commit/215b3a1a39300a3a305d9f9b6885d00d44387ef6) | ||
| 9 | -·[readme]·replace·runkit·CI·badge·with·shields.io·check-runs·badge·[`32def83`](https://github.com/inspect-js/which-typed-array/commit/32def83f46fdfe0d324ed32de2146554855ed140) | ||
| 5 | ##·[v1.1.19](https://github.com/inspect-js/which-typed-array/compare/v1.1.18...v1.1.19)·-·2025-03-08 | 10 | ##·[v1.1.19](https://github.com/inspect-js/which-typed-array/compare/v1.1.18...v1.1.19)·-·2025-03-08 |
| 6 | ###·Commits | 11 | ###·Commits |
| 7 | -·[Refactor]·use·`get-proto`,·improve·types·[`e05d535`](https://github.com/inspect-js/which-typed-array/commit/e05d535fe4e4c4e674937718fe1cae90abff3606) | 12 | -·[Refactor]·use·`get-proto`,·improve·types·[`e05d535`](https://github.com/inspect-js/which-typed-array/commit/e05d535fe4e4c4e674937718fe1cae90abff3606) |
| 8 | -·[Dev·Deps]·update·`@arethetypeswrong/cli`,·`@ljharb/tsconfig`,·`@types/tape`·[`0dade9c`](https://github.com/inspect-js/which-typed-array/commit/0dade9c4c334f37ed14083a35724eea56a496991) | 13 | -·[Dev·Deps]·update·`@arethetypeswrong/cli`,·`@ljharb/tsconfig`,·`@types/tape`·[`0dade9c`](https://github.com/inspect-js/which-typed-array/commit/0dade9c4c334f37ed14083a35724eea56a496991) |
| 9 | -·[Deps]·update·`call-bound`,·`for-each`·[`490791a`](https://github.com/inspect-js/which-typed-array/commit/490791af49605390f9805660492976f86c64feb1) | 14 | -·[Deps]·update·`call-bound`,·`for-each`·[`490791a`](https://github.com/inspect-js/which-typed-array/commit/490791af49605390f9805660492976f86c64feb1) |
| Offset 62, 9 lines modified | Offset 62, 9 lines modified | ||
| 62 | [npm-badge-png]:·https://nodei.co/npm/which-typed-array.png?downloads=true&stars=true | 62 | [npm-badge-png]:·https://nodei.co/npm/which-typed-array.png?downloads=true&stars=true |
| 63 | [license-image]:·https://img.shields.io/npm/l/which-typed-array.svg | 63 | [license-image]:·https://img.shields.io/npm/l/which-typed-array.svg |
| 64 | [license-url]:·LICENSE | 64 | [license-url]:·LICENSE |
| 65 | [downloads-image]:·https://img.shields.io/npm/dm/which-typed-array.svg | 65 | [downloads-image]:·https://img.shields.io/npm/dm/which-typed-array.svg |
| 66 | [downloads-url]:·https://npm-stat.com/charts.html?package=which-typed-array | 66 | [downloads-url]:·https://npm-stat.com/charts.html?package=which-typed-array |
| 67 | [codecov-image]:·https://codecov.io/gh/inspect-js/which-typed-array/branch/main/graphs/badge.svg | 67 | [codecov-image]:·https://codecov.io/gh/inspect-js/which-typed-array/branch/main/graphs/badge.svg |
| 68 | [codecov-url]:·https://app.codecov.io/gh/inspect-js/which-typed-array/ | 68 | [codecov-url]:·https://app.codecov.io/gh/inspect-js/which-typed-array/ |
| 69 | [actions-image]:·https://img.shields.io/ | 69 | [actions-image]:·https://img.shields.io/github/check-runs/inspect-js/which-typed-array/main |
| 70 | [actions-url]:·https://github.com/inspect-js/which-typed-array/actions | 70 | [actions-url]:·https://github.com/inspect-js/which-typed-array/actions |
| Offset 9, 14 lines modified | Offset 9, 15 lines modified | ||
| 9 | declare·function·whichTypedArray(value:·Uint8ClampedArray):·'Uint8ClampedArray'; | 9 | declare·function·whichTypedArray(value:·Uint8ClampedArray):·'Uint8ClampedArray'; |
| 10 | declare·function·whichTypedArray(value:·Int16Array):·'Int16Array'; | 10 | declare·function·whichTypedArray(value:·Int16Array):·'Int16Array'; |
| 11 | declare·function·whichTypedArray(value:·Uint16Array):·'Uint16Array'; | 11 | declare·function·whichTypedArray(value:·Uint16Array):·'Uint16Array'; |
| 12 | declare·function·whichTypedArray(value:·Int32Array):·'Int32Array'; | 12 | declare·function·whichTypedArray(value:·Int32Array):·'Int32Array'; |
| 13 | declare·function·whichTypedArray(value:·Uint32Array):·'Uint32Array'; | 13 | declare·function·whichTypedArray(value:·Uint32Array):·'Uint32Array'; |
| 14 | declare·function·whichTypedArray(value:·Float32Array):·'Float32Array'; | 14 | declare·function·whichTypedArray(value:·Float32Array):·'Float32Array'; |
| 15 | declare·function·whichTypedArray(value:·Float64Array):·'Float64Array'; | 15 | declare·function·whichTypedArray(value:·Float64Array):·'Float64Array'; |
| 16 | declare·function·whichTypedArray(value:·Float16Array):·'Float16Array'; | ||
| 16 | declare·function·whichTypedArray(value:·BigInt64Array):·'BigInt64Array'; | 17 | declare·function·whichTypedArray(value:·BigInt64Array):·'BigInt64Array'; |
| 17 | declare·function·whichTypedArray(value:·BigUint64Array):·'BigUint64Array'; | 18 | declare·function·whichTypedArray(value:·BigUint64Array):·'BigUint64Array'; |
| 18 | declare·function·whichTypedArray(value:·whichTypedArray.TypedArray):·whichTypedArray.TypedArrayName; | 19 | declare·function·whichTypedArray(value:·whichTypedArray.TypedArray):·whichTypedArray.TypedArrayName; |
| 19 | declare·function·whichTypedArray(value:·unknown):·false·|·null; | 20 | declare·function·whichTypedArray(value:·unknown):·false·|·null; |
| 20 | declare·namespace·whichTypedArray·{ | 21 | declare·namespace·whichTypedArray·{ |
| 21 | ··export·type·TypedArrayName·= | 22 | ··export·type·TypedArrayName·= |
| Offset 25, 38 lines modified | Offset 26, 41 lines modified | ||
| 25 | ····|·'Uint8ClampedArray' | 26 | ····|·'Uint8ClampedArray' |
| 26 | ····|·'Int16Array' | 27 | ····|·'Int16Array' |
| 27 | ····|·'Uint16Array' | 28 | ····|·'Uint16Array' |
| 28 | ····|·'Int32Array' | 29 | ····|·'Int32Array' |
| 29 | ····|·'Uint32Array' | 30 | ····|·'Uint32Array' |
| 30 | ····|·'Float32Array' | 31 | ····|·'Float32Array' |
| 31 | ····|·'Float64Array' | 32 | ····|·'Float64Array' |
| 33 | ····|·'Float16Array' | ||
| 32 | ····|·'BigInt64Array' | 34 | ····|·'BigInt64Array' |
| 33 | ····|·'BigUint64Array'; | 35 | ····|·'BigUint64Array'; |
| 34 | ··export·type·TypedArray·= | 36 | ··export·type·TypedArray·= |
| 35 | ··» |·Int8Array | 37 | ··» |·Int8Array |
| 36 | 38 | ····|·Uint8Array | |
| 37 | 39 | ····|·Uint8ClampedArray | |
| 38 | 40 | ····|·Int16Array | |
| 39 | 41 | ····|·Uint16Array | |
| 40 | 42 | ····|·Int32Array | |
| 41 | 43 | ····|·Uint32Array | |
| 42 | 44 | ····|·Float32Array | |
| 43 | 45 | ····|·Float64Array | |
| 46 | ····|·Float16Array | ||
| 44 | 47 | ····|·BigInt64Array | |
| 45 | 48 | ····|·BigUint64Array; | |
| 46 | ··export·type·TypedArrayConstructor·= | 49 | ··export·type·TypedArrayConstructor·= |
| 47 | ····|·Int8ArrayConstructor | 50 | ····|·Int8ArrayConstructor |
| 48 | ····|·Uint8ArrayConstructor | 51 | ····|·Uint8ArrayConstructor |
| 49 | ····|·Uint8ClampedArrayConstructor | 52 | ····|·Uint8ClampedArrayConstructor |
| 50 | ····|·Int16ArrayConstructor | 53 | ····|·Int16ArrayConstructor |
| 51 | ····|·Uint16ArrayConstructor | 54 | ····|·Uint16ArrayConstructor |
| 52 | ····|·Int32ArrayConstructor | 55 | ····|·Int32ArrayConstructor |
| 53 | ····|·Uint32ArrayConstructor | 56 | ····|·Uint32ArrayConstructor |
| 54 | ····|·Float32ArrayConstructor | 57 | ····|·Float32ArrayConstructor |
| 55 | ····|·Float64ArrayConstructor | 58 | ····|·Float64ArrayConstructor |
| 59 | ····|·Float16ArrayConstructor | ||
| 56 | ····|·BigInt64ArrayConstructor | 60 | ····|·BigInt64ArrayConstructor |
| 57 | ····|·BigUint64ArrayConstructor; | 61 | ····|·BigUint64ArrayConstructor; |
| 58 | } | 62 | } |
| 59 | export·=·whichTypedArray; | 63 | export·=·whichTypedArray; |
| Offset 83, 146 lines modified | Offset 83, 154 lines modified | ||
| 00000520:·7473·2d65·7870·6563·742d·6572·726f·7220··ts-expect-error· | 00000520:·7473·2d65·7870·6563·742d·6572·726f·7220··ts-expect-error· | ||
| 00000530:·5453·2077·6f6e·2774·206e·6172·726f·7720··TS·won't·narrow· | 00000530:·5453·2077·6f6e·2774·206e·6172·726f·7720··TS·won't·narrow· | ||
| 00000540:·696e·7369·6465·2061·2063·6c6f·7375·7265··inside·a·closure | 00000540:·696e·7369·6465·2061·2063·6c6f·7375·7265··inside·a·closure | ||
| 00000550:·0a09·0909·0964·6573·6372·6970·746f·7220··.....descriptor· | 00000550:·0a09·0909·0964·6573·6372·6970·746f·7220··.....descriptor· | ||
| 00000560:·3d20·674f·5044·2873·7570·6572·5072·6f74··=·gOPD(superProt | 00000560:·3d20·674f·5044·2873·7570·6572·5072·6f74··=·gOPD(superProt | ||
| 00000570:·6f2c·2053·796d·626f·6c2e·746f·5374·7269··o,·Symbol.toStri | 00000570:·6f2c·2053·796d·626f·6c2e·746f·5374·7269··o,·Symbol.toStri | ||
| 00000580:·6e67·5461·6729·3b0a·0909·097d·0a09·0909··ngTag);....}.... | 00000580:·6e67·5461·6729·3b0a·0909·097d·0a09·0909··ngTag);....}.... | ||
| 00000590:·2f2f·2040·7473·2d65·7870·6563·742d·6572··//·@ts-expect-er | |||
| 000005a0:·726f·7220·544f·444f·3a20·6669·780a·0909··ror·TODO:·fix... | |||
| 000005b0:·0963·6163·6865·5b27·2427·202b·2074·7970··.cache['$'·+·typ | |||
| 000005c0:·6564·4172·7261·795d·203d·2063·616c·6c42··edArray]·=·callB | |||
| 000005 | 00000590:·6966·2028·6465·7363·7269·7074·6f72·2026··if·(descriptor·& | ||
| 000005a0:·2620·6465·7363·7269·7074·6f72·2e67·6574··&·descriptor.get | |||
| 000005b0:·2920·7b0a·0909·0909·7661·7220·626f·756e··)·{.....var·boun | |||
| 000005c0:·6420·3d20·6361·6c6c·4269·6e64·2864·6573··d·=·callBind(des | |||
| 000005d0:·6372·6970·746f·722e·6765·7429·3b0a·0909··criptor.get);... | |||
| 000005e0:·0909·6361·6368·655b·0a09·0909·0909·2f2a··..cache[....../* | |||
| 000005f0:·2a20·4074·7970·6520·7b60·2424·7b69·6d70··*·@type·{`$${imp | |||
| 00000600:·6f72·7428·272e·2729·2e54·7970·6564·4172··ort('.').TypedAr | |||
| 00000610:·7261·794e·616d·657d·607d·202a·2f20·2827··rayName}`}·*/·(' | |||
| 00000620:·2427·202b·2074·7970·6564·4172·7261·7929··$'·+·typedArray) | |||
| 00000630:·0a09·0909·095d·203d·2062·6f75·6e64·3b0a··.....]·=·bound;. | |||
| 00000 | 00000640:·0909·097d·0a09·097d·0a09·7d29·3b0a·7d20··...}...}..});.}· | ||
| 00000 | 00000650:·656c·7365·207b·0a09·666f·7245·6163·6828··else·{..forEach( | ||
| 000006 | 00000660:·7479·7065·6441·7272·6179·732c·2066·756e··typedArrays,·fun | ||
| 000006 | 00000670:·6374·696f·6e20·2874·7970·6564·4172·7261··ction·(typedArra | ||
| 000006 | 00000680:·7929·207b·0a09·0976·6172·2061·7272·203d··y)·{...var·arr·= | ||
| 000006 | 00000690:·206e·6577·2067·5b74·7970·6564·4172·7261···new·g[typedArra | ||
| 000006 | 000006a0:·795d·2829·3b0a·0909·7661·7220·666e·203d··y]();...var·fn·= | ||
| 000006 | 000006b0:·2061·7272·2e73·6c69·6365·207c·7c20·6172···arr.slice·||·ar | ||
| 000006 | 000006c0:·722e·7365·743b·0a09·0969·6620·2866·6e29··r.set;...if·(fn) | ||
| 000006 | 000006d0:·207b·0a09·0909·7661·7220·626f·756e·6420···{....var·bound· | ||
| 000006e0:·3d20·2f2a·2a20·4074·7970·6520·7b69·6d70··=·/**·@type·{imp | |||
| 000006f0:·6f72·7428·272e·2f74·7970·6573·2729·2e42··ort('./types').B | |||
| 00000700:·6f75·6e64·536c·6963·6520·7c20·696d·706f··oundSlice·|·impo | |||
| 00000710:·7274·2827·2e2f·7479·7065·7327·292e·426f··rt('./types').Bo | |||
| 00000720:·756e·6453·6574·7d20·2a2f·2028·0a09·0909··undSet}·*/·(.... | |||
| 00000730:·092f·2f20·4074·732d·6578·7065·6374·2d65··.//·@ts-expect-e | |||
| 00000740:·7272·6f72·2054·4f44·4f20·4649·584d·450a··rror·TODO·FIXME. | |||
| 00000750:·0909·0909·6361·6c6c·4269·6e64·2866·6e29··....callBind(fn) | |||
| 00000760:·0a09·0909·293b·0a09·0909·6361·6368·655b··....);....cache[ | |||
| 00000770:·0a09·0909·092f·2a2a·2040·7479·7065·207b··...../**·@type·{ | |||
| 00000780:·6024·247b·696d·706f·7274·2827·2e27·292e··`$${import('.'). | |||
| 00000790:·5479·7065·6441·7272·6179·4e61·6d65·7d60··TypedArrayName}` | |||
| 000007a0:·7d20·2a2f·2028·2724·2720·2b20·7479·7065··}·*/·('$'·+·type | |||
| 000007b0:·6441·7272·6179·290a·0909·095d·203d·2062··dArray)....]·=·b | |||
| 000007c0:·6f75·6e64·3b0a·0909·7d0a·097d·293b·0a7d··ound;...}..});.} | |||
| 000007d0:·0a0a·2f2a·2a20·4074·7970·6520·7b28·7661··../**·@type·{(va | |||
| 000007e0:·6c75·653a·206f·626a·6563·7429·203d·3e20··lue:·object)·=>· | |||
| 000007f0:·6661·6c73·6520·7c20·696d·706f·7274·2827··false·|·import(' | |||
| 00000800:·2e27·292e·5479·7065·6441·7272·6179·4e61··.').TypedArrayNa | |||
| 00000810:·6d65·7d20·2a2f·0a76·6172·2074·7279·5479··me}·*/.var·tryTy | |||
| 00000820:·7065·6441·7272·6179·7320·3d20·6675·6e63··pedArrays·=·func | |||
| 00000830:·7469·6f6e·2074·7279·416c·6c54·7970·6564··tion·tryAllTyped | |||
| 00000840:·4172·7261·7973·2876·616c·7565·2920·7b0a··Arrays(value)·{. | |||
| 00000 | 00000850:·092f·2a2a·2040·7479·7065·207b·5265·7475··./**·@type·{Retu | ||
| 00000690:·696d·706f·7274·2827·2e27·292e·5479·7065··import('.').Type | |||
| 000006a0:·6441·7272·6179·4e61·6d65·7d60·7d20·2a2f··dArrayName}`}·*/ | |||
| 000006b0:·2028·2724·2720·2b20·7479·7065·6441·7272···('$'·+·typedArr | |||
| 00000 | 00000860:·726e·5479·7065·3c74·7970·656f·6620·7472··rnType<typeof·tr | ||
| 00000870:·7941·6c6c·5479·7065·6441·7272·6179·733e··yAllTypedArrays> | |||
| 00000880:·7d20·2a2f·2076·6172·2066·6f75·6e64·203d··}·*/·var·found·= | |||
| 00000890:·2066·616c·7365·3b0a·0966·6f72·4561·6368···false;..forEach | |||
| 000008a0:·280a·0909·2f2a·2a20·4074·7970·6520·7b52··(.../**·@type·{R | |||
| 000008b0:·6563·6f72·643c·605c·2424·7b69·6d70·6f72··ecord<`\$${impor | |||
| 000008c0:·7428·272e·2729·2e54·7970·6564·4172·7261··t('.').TypedArra | |||
| 000008d0:·794e·616d·657d·602c·2047·6574·7465·723e··yName}`,·Getter> | |||
| 000008e0:·7d20·2a2f·2028·6361·6368·6529·2c0a·0909··}·*/·(cache),... | |||
| 000008f0:·2f2a·2a20·4074·7970·6520·7b28·6765·7474··/**·@type·{(gett | |||
| 00000900:·6572·3a20·4765·7474·6572·2c20·6e61·6d65··er:·Getter,·name | |||
| 00000910:·3a20·605c·2424·7b69·6d70·6f72·7428·272e··:·`\$${import('. | |||
| 00000920:·2729·2e54·7970·6564·4172·7261·794e·616d··').TypedArrayNam | |||
| 00000930:·657d·6029·203d·3e20·766f·6964·7d20·2a2f··e}`)·=>·void}·*/ | |||
| 00000940:·0a09·0966·756e·6374·696f·6e20·2867·6574··...function·(get | |||
| 00000950:·7465·722c·2074·7970·6564·4172·7261·7929··ter,·typedArray) | |||
| 00000960:·207b·0a09·0909·6966·2028·2166·6f75·6e64···{....if·(!found | |||
| 00000970:·2920·7b0a·0909·0909·7472·7920·7b0a·0909··)·{.....try·{... | |||
| 00000980:·0909·092f·2f20·4074·732d·6578·7065·6374··...//·@ts-expect | |||
| 00000990:·2d65·7272·6f72·2061·2074·6872·6f77·2069··-error·a·throw·i | |||
| 000009a0:·7320·6669·6e65·2068·6572·650a·0909·0909··s·fine·here..... | |||
| 000009b0:·0969·6620·2827·2427·202b·2067·6574·7465··.if·('$'·+·gette | |||
| 000009c0:·7228·7661·6c75·6529·203d·3d3d·2074·7970··r(value)·===·typ | |||
| 000009d0:·6564·4172·7261·7929·207b·0a09·0909·0909··edArray)·{...... | |||
| 000009e0:·0966·6f75·6e64·203d·202f·2a2a·2040·7479··.found·=·/**·@ty | |||
| 00000 | 000009f0:·7065·207b·696d·706f·7274·2827·2e27·292e··pe·{import('.'). | ||
| 00000a00:·5479·7065·6441·7272·6179·4e61·6d65·7d20··TypedArrayName}· | |||
| 00000a10:·2a2f·2028·2473·6c69·6365·2874·7970·6564··*/·($slice(typed | |||
| 00000a20:·4172·7261·792c·2031·2929·3b0a·0909·0909··Array,·1));..... | |||
| 00000a30:·097d·0a09·0909·097d·2063·6174·6368·2028··.}.....}·catch·( | |||
| 00000a40:·6529·207b·202f·2a2a·2f20·7d0a·0909·097d··e)·{·/**/·}....} | |||
| 00000a50:·0a09·097d·0a09·293b·0a09·7265·7475·726e··...}..);..return | |||
| 00000a60:·2066·6f75·6e64·3b0a·7d3b·0a0a·2f2a·2a20···found;.};../**· | |||
| 000006e0:·7479·7065·7327·292e·426f·756e·6453·6c69··types').BoundSli | |||
| 000006f0:·6365·207c·2069·6d70·6f72·7428·272e·2f74··ce·|·import('./t | |||
| 00000700:·7970·6573·2729·2e42·6f75·6e64·5365·747d··ypes').BoundSet} | |||
| 00000710:·202a·2f20·280a·0909·0909·2f2f·2040·7473···*/·(.....//·@ts | |||
| 00000720:·2d65·7870·6563·742d·6572·726f·7220·544f··-expect-error·TO | |||
| 00000730:·444f·2046·4958·4d45·0a09·0909·0963·616c··DO·FIXME.....cal | |||
| 00000740:·6c42·696e·6428·666e·290a·0909·0929·3b0a··lBind(fn)....);. | |||
| Max diff block lines reached; 4680/20158 bytes (23.22%) of diff not shown. | |||
| Offset 26, 32 lines modified | Offset 26, 32 lines modified | ||
| 26 | ········"for-each":·"^0.3.5", | 26 | ········"for-each":·"^0.3.5", |
| 27 | ········"get-proto":·"^1.0.1", | 27 | ········"get-proto":·"^1.0.1", |
| 28 | ········"gopd":·"^1.2.0", | 28 | ········"gopd":·"^1.2.0", |
| 29 | ········"has-tostringtag":·"^1.0.2" | 29 | ········"has-tostringtag":·"^1.0.2" |
| 30 | ····}, | 30 | ····}, |
| 31 | ····"description":·"Which·kind·of·Typed·Array·is·this·JavaScript·value?·Works·cross-realm,·without·`instanceof`,·and·despite·Symbol.toStringTag.", | 31 | ····"description":·"Which·kind·of·Typed·Array·is·this·JavaScript·value?·Works·cross-realm,·without·`instanceof`,·and·despite·Symbol.toStringTag.", |
| 32 | ····"devDependencies":·{ | 32 | ····"devDependencies":·{ |
| 33 | ········"@arethetypeswrong/cli":·"^0.1 | 33 | ········"@arethetypeswrong/cli":·"^0.18.2", |
| 34 | ········"@ljharb/eslint-config":·"^2 | 34 | ········"@ljharb/eslint-config":·"^22.1.3", |
| 35 | ········"@ljharb/tsconfig":·"^0.3.2", | 35 | ········"@ljharb/tsconfig":·"^0.3.2", |
| 36 | ········"@types/call-bind":·"^1.0.5", | 36 | ········"@types/call-bind":·"^1.0.5", |
| 37 | ········"@types/for-each":·"^0.3.3", | 37 | ········"@types/for-each":·"^0.3.3", |
| 38 | ········"@types/gopd":·"^1.0.3", | 38 | ········"@types/gopd":·"^1.0.3", |
| 39 | ········"@types/is-callable":·"^1.1.2", | 39 | ········"@types/is-callable":·"^1.1.2", |
| 40 | ········"@types/make-arrow-function":·"^1.2.2", | 40 | ········"@types/make-arrow-function":·"^1.2.2", |
| 41 | ········"@types/make-generator-function":·"^2.0.3", | 41 | ········"@types/make-generator-function":·"^2.0.3", |
| 42 | ········"@types/tape":·"^5.8.1", | 42 | ········"@types/tape":·"^5.8.1", |
| 43 | ········"auto-changelog":·"^2.5.0", | 43 | ········"auto-changelog":·"^2.5.0", |
| 44 | ········"encoding":·"^0.1.13", | 44 | ········"encoding":·"^0.1.13", |
| 45 | ········"eslint":·" | 45 | ········"eslint":·"^8.57.1", |
| 46 | ········"in-publish":·"^2.0.1", | 46 | ········"in-publish":·"^2.0.1", |
| 47 | ········"is-callable":·"^1.2.7", | 47 | ········"is-callable":·"^1.2.7", |
| 48 | ········"make-arrow-function":·"^1.2.0", | 48 | ········"make-arrow-function":·"^1.2.0", |
| 49 | ········"make-generator-function":·"^2. | 49 | ········"make-generator-function":·"^2.1.0", |
| 50 | ········"npmignore":·"^0.3. | 50 | ········"npmignore":·"^0.3.5", |
| 51 | ········"nyc":·"^10.3.2", | 51 | ········"nyc":·"^10.3.2", |
| 52 | ········"safe-publish-latest":·"^2.0.0", | 52 | ········"safe-publish-latest":·"^2.0.0", |
| 53 | ········"tape":·"^5.9.0", | 53 | ········"tape":·"^5.9.0", |
| 54 | ········"typescript":·"next" | 54 | ········"typescript":·"next" |
| 55 | ····}, | 55 | ····}, |
| 56 | ····"engines":·{ | 56 | ····"engines":·{ |
| 57 | ········"node":·">=·0.4" | 57 | ········"node":·">=·0.4" |
| Offset 122, 9 lines modified | Offset 122, 9 lines modified | ||
| 122 | ············"ipad/6.0..latest", | 122 | ············"ipad/6.0..latest", |
| 123 | ············"iphone/6.0..latest", | 123 | ············"iphone/6.0..latest", |
| 124 | ············"android-browser/4.2" | 124 | ············"android-browser/4.2" |
| 125 | ········], | 125 | ········], |
| 126 | ········"files":·"test/index.js" | 126 | ········"files":·"test/index.js" |
| 127 | ····}, | 127 | ····}, |
| 128 | ····"types":·"./index.d.ts", | 128 | ····"types":·"./index.d.ts", |
| 129 | ····"version":·"1.1. | 129 | ····"version":·"1.1.20" |
| 130 | } | 130 | } |
| Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
| 1 | -rw-r--r--···0········0········0······467·2025-12-23·18:04:35.000000·info/about.json | 1 | -rw-r--r--···0········0········0······467·2025-12-23·18:04:35.000000·info/about.json |
| 2 | -rw-r--r--···0········0········0······118·2025-12-23·18:04:35.000000·info/hash_input.json | 2 | -rw-r--r--···0········0········0······118·2025-12-23·18:04:35.000000·info/hash_input.json |
| 3 | -rw-r--r--···0········0········0······223·2025-12-23·18:04:35.000000·info/index.json | 3 | -rw-r--r--···0········0········0······223·2025-12-23·18:04:35.000000·info/index.json |
| 4 | -rw-r--r--···0········0········0·····1071·2025-12-23·18:04:35.000000·info/licenses/LICENSE | 4 | -rw-r--r--···0········0········0·····1071·2025-12-23·18:04:35.000000·info/licenses/LICENSE |
| 5 | -rw-r--r--···0········0········0···40 | 5 | -rw-r--r--···0········0········0···404687·2025-12-23·18:04:35.000000·info/licenses/third-party-licenses.txt |
| 6 | -rw-r--r--···0········0········0··1 | 6 | -rw-r--r--···0········0········0··1600865·2025-12-23·18:04:35.000000·info/paths.json |
| 7 | -rwxr-xr-x···0········0········0······704·2025-12-23·18:04:35.000000·info/recipe/build.sh | 7 | -rwxr-xr-x···0········0········0······704·2025-12-23·18:04:35.000000·info/recipe/build.sh |
| 8 | -rw-r--r--···0········0········0·····1541·2025-12-23·18:04:35.000000·info/recipe/recipe-scripts-license.txt | 8 | -rw-r--r--···0········0········0·····1541·2025-12-23·18:04:35.000000·info/recipe/recipe-scripts-license.txt |
| 9 | -rw-r--r--···0········0········0······736·2025-12-23·18:04:35.000000·info/recipe/recipe.yaml | 9 | -rw-r--r--···0········0········0······736·2025-12-23·18:04:35.000000·info/recipe/recipe.yaml |
| 10 | -rw-r--r--···0········0········0····18575·2025-12-23·18:04:35.000000·info/recipe/rendered_recipe.yaml | 10 | -rw-r--r--···0········0········0····18575·2025-12-23·18:04:35.000000·info/recipe/rendered_recipe.yaml |
| 11 | -rw-r--r--···0········0········0······100·2025-12-23·18:04:35.000000·info/recipe/variant_config.yaml | 11 | -rw-r--r--···0········0········0······100·2025-12-23·18:04:35.000000·info/recipe/variant_config.yaml |
| 12 | -rw-r--r--···0········0········0·······41·2025-12-23·18:04:35.000000·info/tests/tests.yaml | 12 | -rw-r--r--···0········0········0·······41·2025-12-23·18:04:35.000000·info/tests/tests.yaml |
| Offset 25, 15 lines modified | Offset 25, 15 lines modified | ||
| 25 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER | 25 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER |
| 26 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, | 26 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, |
| 27 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE | 27 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE |
| 28 | SOFTWARE. | 28 | SOFTWARE. |
| 29 | --- | 29 | --- |
| 30 | The·following·software·may·be·included·in·this·product:·@isaacs/brace-expansion·(5.0. | 30 | The·following·software·may·be·included·in·this·product:·@isaacs/brace-expansion·(5.0.1) |
| 31 | This·software·contains·the·following·license·and·notice·below: | 31 | This·software·contains·the·following·license·and·notice·below: |
| 32 | MIT·License | 32 | MIT·License |
| 33 | Copyright·Julian·Gruber·<[email protected]> | 33 | Copyright·Julian·Gruber·<[email protected]> |
| 34 | TypeScript·port·Copyright·Isaac·Z.·Schlueter·<[email protected]> | 34 | TypeScript·port·Copyright·Isaac·Z.·Schlueter·<[email protected]> |
| Offset 2554, 15 lines modified | Offset 2554, 15 lines modified | ||
| 2554 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER | 2554 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER |
| 2555 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, | 2555 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, |
| 2556 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE | 2556 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE |
| 2557 | SOFTWARE. | 2557 | SOFTWARE. |
| 2558 | --- | 2558 | --- |
| 2559 | The·following·software·may·be·included·in·this·product:·minipass-fetch·(5.0. | 2559 | The·following·software·may·be·included·in·this·product:·minipass-fetch·(5.0.1) |
| 2560 | This·software·contains·the·following·license·and·notice·below: | 2560 | This·software·contains·the·following·license·and·notice·below: |
| 2561 | The·MIT·License·(MIT) | 2561 | The·MIT·License·(MIT) |
| 2562 | Copyright·(c)·Isaac·Z.·Schlueter·and·Contributors | 2562 | Copyright·(c)·Isaac·Z.·Schlueter·and·Contributors |
| 2563 | Copyright·(c)·2016·David·Frank | 2563 | Copyright·(c)·2016·David·Frank |
| Offset 2704, 15 lines modified | Offset 2704, 15 lines modified | ||
| 2704 | IN·NO·EVENT·SHALL·THE·AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY | 2704 | IN·NO·EVENT·SHALL·THE·AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY |
| 2705 | CLAIM,·DAMAGES·OR·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT, | 2705 | CLAIM,·DAMAGES·OR·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT, |
| 2706 | TORT·OR·OTHERWISE,·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE | 2706 | TORT·OR·OTHERWISE,·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE |
| 2707 | SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE·SOFTWARE. | 2707 | SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE·SOFTWARE. |
| 2708 | --- | 2708 | --- |
| 2709 | The·following·software·may·be·included·in·this·product:·node-gyp·(12. | 2709 | The·following·software·may·be·included·in·this·product:·node-gyp·(12.2.0) |
| 2710 | This·software·contains·the·following·license·and·notice·below: | 2710 | This·software·contains·the·following·license·and·notice·below: |
| 2711 | (The·MIT·License) | 2711 | (The·MIT·License) |
| 2712 | Copyright·(c)·2012·Nathan·Rajlich·<[email protected]> | 2712 | Copyright·(c)·2012·Nathan·Rajlich·<[email protected]> |
| 2713 | Permission·is·hereby·granted,·free·of·charge,·to·any·person | 2713 | Permission·is·hereby·granted,·free·of·charge,·to·any·person |
| Offset 2857, 15 lines modified | Offset 2857, 15 lines modified | ||
| 2857 | The·above·copyright·notice·and·this·permission·notice·shall·be·included·in·all·copies·or·substantial·portions·of·the·Software. | 2857 | The·above·copyright·notice·and·this·permission·notice·shall·be·included·in·all·copies·or·substantial·portions·of·the·Software. |
| 2858 | THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.·IN·NO·EVENT·SHALL·THE·AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE·SOFTWARE. | 2858 | THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.·IN·NO·EVENT·SHALL·THE·AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE·SOFTWARE. |
| 2859 | --- | 2859 | --- |
| 2860 | The·following·software·may·be·included·in·this·product:·pargs·(1.2. | 2860 | The·following·software·may·be·included·in·this·product:·pargs·(1.2.2) |
| 2861 | This·software·contains·the·following·license·and·notice·below: | 2861 | This·software·contains·the·following·license·and·notice·below: |
| 2862 | MIT·License | 2862 | MIT·License |
| 2863 | Copyright·(c)·Jordan·Harband | 2863 | Copyright·(c)·Jordan·Harband |
| 2864 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy·of·this·software·and· | 2864 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy·of·this·software·and· |
| Offset 3982, 15 lines modified | Offset 3982, 15 lines modified | ||
| 3982 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER | 3982 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER |
| 3983 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, | 3983 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, |
| 3984 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE | 3984 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE |
| 3985 | SOFTWARE. | 3985 | SOFTWARE. |
| 3986 | --- | 3986 | --- |
| 3987 | The·following·software·may·be·included·in·this·product:·which-typed-array·(1.1. | 3987 | The·following·software·may·be·included·in·this·product:·which-typed-array·(1.1.20) |
| 3988 | This·software·contains·the·following·license·and·notice·below: | 3988 | This·software·contains·the·following·license·and·notice·below: |
| 3989 | The·MIT·License·(MIT) | 3989 | The·MIT·License·(MIT) |
| 3990 | Copyright·(c)·2015·Jordan·Harband | 3990 | Copyright·(c)·2015·Jordan·Harband |
| 3991 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy | 3991 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy |
| Offset 4067, 15 lines modified | Offset 4067, 15 lines modified | ||
| 4067 | Permission·to·use,·copy,·modify,·and/or·distribute·this·software·for·any·purpose·with·or·without·fee·is·hereby·granted,·provided·that·the·above·copyright·notice·and·this·permission·notice·appear·in·all·copies. | 4067 | Permission·to·use,·copy,·modify,·and/or·distribute·this·software·for·any·purpose·with·or·without·fee·is·hereby·granted,·provided·that·the·above·copyright·notice·and·this·permission·notice·appear·in·all·copies. |
| 4068 | THE·SOFTWARE·IS·PROVIDED·"AS·IS"·AND·ISC·DISCLAIMS·ALL·WARRANTIES·WITH·REGARD·TO·THIS·SOFTWARE·INCLUDING·ALL·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS.·IN·NO·EVENT·SHALL·ISC·BE·LIABLE·FOR·ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES·WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF·OR·IN·CONNECTION·WITH·THE·USE·OR·PERFORMANCE·OF·THIS·SOFTWARE. | 4068 | THE·SOFTWARE·IS·PROVIDED·"AS·IS"·AND·ISC·DISCLAIMS·ALL·WARRANTIES·WITH·REGARD·TO·THIS·SOFTWARE·INCLUDING·ALL·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS.·IN·NO·EVENT·SHALL·ISC·BE·LIABLE·FOR·ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES·WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF·OR·IN·CONNECTION·WITH·THE·USE·OR·PERFORMANCE·OF·THIS·SOFTWARE. |
| 4069 | --- | 4069 | --- |
| 4070 | The·following·software·may·be·included·in·this·product:·@npmcli/arborist·(9.1. | 4070 | The·following·software·may·be·included·in·this·product:·@npmcli/arborist·(9.1.10) |
| 4071 | This·software·contains·the·following·license·and·notice·below: | 4071 | This·software·contains·the·following·license·and·notice·below: |
| 4072 | <!--·This·file·is·automatically·added·by·@npmcli/template-oss.·Do·not·edit.·--> | 4072 | <!--·This·file·is·automatically·added·by·@npmcli/template-oss.·Do·not·edit.·--> |
| 4073 | ISC·License | 4073 | ISC·License |
| 4074 | Copyright·npm,·Inc. | 4074 | Copyright·npm,·Inc. |
| Offset 4477, 35 lines modified | Offset 4477, 14 lines modified | ||
| 4477 | ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES | 4477 | ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES |
| 4478 | WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN | 4478 | WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN |
| 4479 | ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF·OR | 4479 | ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF·OR |
| Max diff block lines reached; 7318/12228 bytes (59.85%) of diff not shown. | |||
| Offset 29, 16 lines modified | Offset 29, 16 lines modified | ||
| 29 | ············"path_type":·"hardlink", | 29 | ············"path_type":·"hardlink", |
| 30 | ············"sha256":·"40fbfa35568ca5fe9ed3ad0af99fa8e59252b676227b816a7e0f9ea9ccee3663", | 30 | ············"sha256":·"40fbfa35568ca5fe9ed3ad0af99fa8e59252b676227b816a7e0f9ea9ccee3663", |
| 31 | ············"size_in_bytes":·162 | 31 | ············"size_in_bytes":·162 |
| 32 | ········}, | 32 | ········}, |
| 33 | ········{ | 33 | ········{ |
| 34 | ············"_path":·"lib/node_modules/ls-engines/.source_info.json", | 34 | ············"_path":·"lib/node_modules/ls-engines/.source_info.json", |
| 35 | ············"path_type":·"hardlink", | 35 | ············"path_type":·"hardlink", |
| 36 | ············"sha256":·" | 36 | ············"sha256":·"ab2adbc7ab27457428e55a8c2fc5abdadb6b1fee416a52eaca4b158b69261364", |
| 37 | ············"size_in_bytes":· | 37 | ············"size_in_bytes":·298 |
| 38 | ········}, | 38 | ········}, |
| 39 | ········{ | 39 | ········{ |
| 40 | ············"_path":·"lib/node_modules/ls-engines/CHANGELOG.md", | 40 | ············"_path":·"lib/node_modules/ls-engines/CHANGELOG.md", |
| 41 | ············"path_type":·"hardlink", | 41 | ············"path_type":·"hardlink", |
| 42 | ············"sha256":·"3b39efa06a1683288dfbef1e093e0d1e7322f27a4eede33b53ae83c9ec50e19f", | 42 | ············"sha256":·"3b39efa06a1683288dfbef1e093e0d1e7322f27a4eede33b53ae83c9ec50e19f", |
| 43 | ············"size_in_bytes":·36842 | 43 | ············"size_in_bytes":·36842 |
| 44 | ········}, | 44 | ········}, |
| Offset 61, 16 lines modified | Offset 61, 16 lines modified | ||
| 61 | ············"size_in_bytes":·10533 | 61 | ············"size_in_bytes":·10533 |
| 62 | ········}, | 62 | ········}, |
| 63 | ········{ | 63 | ········{ |
| 64 | ············"_path":·"lib/node_modules/ls-engines/build_env.sh", | 64 | ············"_path":·"lib/node_modules/ls-engines/build_env.sh", |
| 65 | ············"file_mode":·"text", | 65 | ············"file_mode":·"text", |
| 66 | ············"path_type":·"hardlink", | 66 | ············"path_type":·"hardlink", |
| 67 | ············"prefix_placeholder":·"/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla", | 67 | ············"prefix_placeholder":·"/home/conda/feedstock_root/build_artifacts/bld/rattler-build_ls-engines_1766513075/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla", |
| 68 | ············"sha256":·" | 68 | ············"sha256":·"52187831619ecca2a91798abcf9be394dc856df98fe0812f73d64effad35dd4c", |
| 69 | ············"size_in_bytes":·3 | 69 | ············"size_in_bytes":·3609 |
| 70 | ········}, | 70 | ········}, |
| 71 | ········{ | 71 | ········{ |
| 72 | ············"_path":·"lib/node_modules/ls-engines/checkCurrent.js", | 72 | ············"_path":·"lib/node_modules/ls-engines/checkCurrent.js", |
| 73 | ············"path_type":·"hardlink", | 73 | ············"path_type":·"hardlink", |
| 74 | ············"sha256":·"9090aec432d46d0642b9906460c7b12557ff08a481caf8721fb5c1c95120e141", | 74 | ············"sha256":·"9090aec432d46d0642b9906460c7b12557ff08a481caf8721fb5c1c95120e141", |
| 75 | ············"size_in_bytes":·1217 | 75 | ············"size_in_bytes":·1217 |
| 76 | ········}, | 76 | ········}, |
| Offset 229, 82 lines modified | Offset 229, 82 lines modified | ||
| 229 | ············"path_type":·"hardlink", | 229 | ············"path_type":·"hardlink", |
| 230 | ············"sha256":·"9c63a23124d68cd30cd316a94a1a0bca34f032786df6df69fc4b5f136bac8d2e", | 230 | ············"sha256":·"9c63a23124d68cd30cd316a94a1a0bca34f032786df6df69fc4b5f136bac8d2e", |
| 231 | ············"size_in_bytes":·1144 | 231 | ············"size_in_bytes":·1144 |
| 232 | ········}, | 232 | ········}, |
| 233 | ········{ | 233 | ········{ |
| 234 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/README.md", | 234 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/README.md", |
| 235 | ············"path_type":·"hardlink", | 235 | ············"path_type":·"hardlink", |
| 236 | ············"sha256":·" | 236 | ············"sha256":·"e0991c98062e8681a5487d48e9a9e0fceac6fc4a106c6125592d3a9d4752a87d", |
| 237 | ············"size_in_bytes":·2 | 237 | ············"size_in_bytes":·2525 |
| 238 | ········}, | 238 | ········}, |
| 239 | ········{ | 239 | ········{ |
| 240 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts", | 240 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts", |
| 241 | ············"path_type":·"hardlink", | 241 | ············"path_type":·"hardlink", |
| 242 | ············"sha256":·" | 242 | ············"sha256":·"0dfcde9f9993859e16152a1f8fd313051bc549076a665d2db4329d32f2ed8cde", |
| 243 | ············"size_in_bytes":· | 243 | ············"size_in_bytes":·227 |
| 244 | ········}, | 244 | ········}, |
| 245 | ········{ | 245 | ········{ |
| 246 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts.map", | 246 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts.map", |
| 247 | ············"path_type":·"hardlink", | 247 | ············"path_type":·"hardlink", |
| 248 | ············"sha256":·" | 248 | ············"sha256":·"c40f0175247b3ea550f146f2a1f3e8a4a5303bf9469b4d824cd4d68c8c568e93", |
| 249 | ············"size_in_bytes":· | 249 | ············"size_in_bytes":·273 |
| 250 | ········}, | 250 | ········}, |
| 251 | ········{ | 251 | ········{ |
| 252 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js", | 252 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js", |
| 253 | ············"path_type":·"hardlink", | 253 | ············"path_type":·"hardlink", |
| 254 | ············"sha256":·"64 | 254 | ············"sha256":·"8b356484f652589d861667f49863cd4469402b35cb2feec86526013494937524", |
| 255 | ············"size_in_bytes":·6 | 255 | ············"size_in_bytes":·6850 |
| 256 | ········}, | 256 | ········}, |
| 257 | ········{ | 257 | ········{ |
| 258 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js.map", | 258 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js.map", |
| 259 | ············"path_type":·"hardlink", | 259 | ············"path_type":·"hardlink", |
| 260 | ············"sha256":·" | 260 | ············"sha256":·"1e4210ad0ed241e1804b69c6aad5d16c056b45c2abe63074ba12522ee0c0330e", |
| 261 | ············"size_in_bytes":·13 | 261 | ············"size_in_bytes":·13788 |
| 262 | ········}, | 262 | ········}, |
| 263 | ········{ | 263 | ········{ |
| 264 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/package.json", | 264 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/commonjs/package.json", |
| 265 | ············"path_type":·"hardlink", | 265 | ············"path_type":·"hardlink", |
| 266 | ············"sha256":·"8005a3491db7d92f36ac66369861589f9c47123d3a7c71e643fc2c06168cd45a", | 266 | ············"sha256":·"8005a3491db7d92f36ac66369861589f9c47123d3a7c71e643fc2c06168cd45a", |
| 267 | ············"size_in_bytes":·25 | 267 | ············"size_in_bytes":·25 |
| 268 | ········}, | 268 | ········}, |
| 269 | ········{ | 269 | ········{ |
| 270 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts", | 270 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts", |
| 271 | ············"path_type":·"hardlink", | 271 | ············"path_type":·"hardlink", |
| 272 | ············"sha256":·" | 272 | ············"sha256":·"0dfcde9f9993859e16152a1f8fd313051bc549076a665d2db4329d32f2ed8cde", |
| 273 | ············"size_in_bytes":· | 273 | ············"size_in_bytes":·227 |
| 274 | ········}, | 274 | ········}, |
| 275 | ········{ | 275 | ········{ |
| 276 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts.map", | 276 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts.map", |
| 277 | ············"path_type":·"hardlink", | 277 | ············"path_type":·"hardlink", |
| 278 | ············"sha256":·" | 278 | ············"sha256":·"c40f0175247b3ea550f146f2a1f3e8a4a5303bf9469b4d824cd4d68c8c568e93", |
| 279 | ············"size_in_bytes":· | 279 | ············"size_in_bytes":·273 |
| 280 | ········}, | 280 | ········}, |
| 281 | ········{ | 281 | ········{ |
| 282 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.js", | 282 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.js", |
| 283 | ············"path_type":·"hardlink", | 283 | ············"path_type":·"hardlink", |
| 284 | ············"sha256":·" | 284 | ············"sha256":·"ae269351e3b36ea4dd47f7d000ec2b5a63069ff1333a177e0bd9c43df2e1a1b3", |
| 285 | ············"size_in_bytes":·6 | 285 | ············"size_in_bytes":·6667 |
| 286 | ········}, | 286 | ········}, |
| 287 | ········{ | 287 | ········{ |
| 288 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.js.map", | 288 | ············"_path":·"lib/node_modules/ls-engines/node_modules/@isaacs/brace-expansion/dist/esm/index.js.map", |
| 289 | ············"path_type":·"hardlink", | 289 | ············"path_type":·"hardlink", |
| 290 | ············"sha256":·" | 290 | ············"sha256":·"51b9a2ded72eb2bf0dbb57ba7e8edafeb7311e6ef71110b8a2226b252d932ecc", |
| 291 | ············"size_in_bytes":·13 | 291 | ············"size_in_bytes":·13803 |
| 292 | ········}, | 292 | ········}, |
| 293 | ········{ | 293 | ········{ |
| Max diff block lines reached; 111562/117866 bytes (94.65%) of diff not shown. | |||