| Offset 1, 5 lines modified | Offset 1, 5 lines modified | ||
| 1 | Zip·file·size:·17 | 1 | Zip·file·size:·1726469·bytes,·number·of·entries:·3 |
| 2 | -rw-r--r--··4.5·unx·······30·bx·stor·26-Apr-06·11:19·metadata.json | 2 | -rw-r--r--··4.5·unx·······30·bx·stor·26-Apr-06·11:19·metadata.json |
| 3 | -rw-r--r--··4.5·unx··1 | 3 | -rw-r--r--··4.5·unx··1593421·bx·stor·26-Apr-06·11:19·pkg-quasar-cli-4.0.0-hfa286de_0.tar.zst |
| 4 | -rw-r--r--··4.5·unx···1324 | 4 | -rw-r--r--··4.5·unx···132464·bx·stor·26-Apr-06·11:19·info-quasar-cli-4.0.0-hfa286de_0.tar.zst |
| 5 | 3·files,·17 | 5 | 3·files,·1725915·bytes·uncompressed,·1725915·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·········5C865A67·'Mon·Apr··6·11:19:14·2026' | 24 | 000067·Last·Mod·Time·········5C865A67·'Mon·Apr··6·11:19:14·2026' |
| 25 | 00006B·CRC··················· | 25 | 00006B·CRC···················49EA8AEB |
| 26 | 00006F·Compressed·Length·····FFFFFFFF | 26 | 00006F·Compressed·Length·····FFFFFFFF |
| 27 | 000073·Uncompressed·Length···FFFFFFFF | 27 | 000073·Uncompressed·Length···FFFFFFFF |
| 28 | 000077·Filename·Length·······0027 | 28 | 000077·Filename·Length·······0027 |
| 29 | 000079·Extra·Length··········0014 | 29 | 000079·Extra·Length··········0014 |
| 30 | 00007B·Filename··············'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | 30 | 00007B·Filename··············'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 31 | ·····························' | 31 | ·····························' |
| 32 | 0000A2·Extra·ID·#0001········0001·'ZIP64' | 32 | 0000A2·Extra·ID·#0001········0001·'ZIP64' |
| 33 | 0000A4···Length··············0010 | 33 | 0000A4···Length··············0010 |
| 34 | 0000A6···Uncompressed·Size···000000000018 | 34 | 0000A6···Uncompressed·Size···000000000018504D |
| 35 | 0000AE···Compressed·Size·····000000000018 | 35 | 0000AE···Compressed·Size·····000000000018504D |
| 36 | 0000B6·PAYLOAD | 36 | 0000B6·PAYLOAD |
| 37 | 18 | 37 | 185103·LOCAL·HEADER·#3·······04034B50 |
| 38 | 18 | 38 | 185107·Extract·Zip·Spec······2D·'4.5' |
| 39 | 18 | 39 | 185108·Extract·OS············00·'MS-DOS' |
| 40 | 18 | 40 | 185109·General·Purpose·Flag··0000 |
| 41 | 18 | 41 | 18510B·Compression·Method····0000·'Stored' |
| 42 | 18 | 42 | 18510D·Last·Mod·Time·········5C865A67·'Mon·Apr··6·11:19:14·2026' |
| 43 | 18 | 43 | 185111·CRC···················A4D2F2E1 |
| 44 | 18 | 44 | 185115·Compressed·Length·····FFFFFFFF |
| 45 | 18 | 45 | 185119·Uncompressed·Length···FFFFFFFF |
| 46 | 18 | 46 | 18511D·Filename·Length·······0028 |
| 47 | 18 | 47 | 18511F·Extra·Length··········0014 |
| 48 | 18 | 48 | 185121·Filename··············'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 49 | ·····························X' | 49 | ·····························X' |
| 50 | 18 | 50 | 185149·Extra·ID·#0001········0001·'ZIP64' |
| 51 | 18 | 51 | 18514B···Length··············0010 |
| 52 | 18 | 52 | 18514D···Uncompressed·Size···0000000000020570 |
| 53 | 18 | 53 | 185155···Compressed·Size·····0000000000020570 |
| 54 | 18 | 54 | 18515D·PAYLOAD |
| 55 | 1A | 55 | 1A56CD·CENTRAL·HEADER·#1·····02014B50 |
| 56 | 1A | 56 | 1A56D1·Created·Zip·Spec······2D·'4.5' |
| 57 | 1A | 57 | 1A56D2·Created·OS············03·'Unix' |
| 58 | 1A | 58 | 1A56D3·Extract·Zip·Spec······2D·'4.5' |
| 59 | 1A | 59 | 1A56D4·Extract·OS············00·'MS-DOS' |
| 60 | 1A | 60 | 1A56D5·General·Purpose·Flag··0000 |
| 61 | 1A | 61 | 1A56D7·Compression·Method····0000·'Stored' |
| 62 | 1A | 62 | 1A56D9·Last·Mod·Time·········5C865A67·'Mon·Apr··6·11:19:14·2026' |
| 63 | 1A | 63 | 1A56DD·CRC···················2E6500CB |
| 64 | 1A | 64 | 1A56E1·Compressed·Length·····FFFFFFFF |
| 65 | 1A | 65 | 1A56E5·Uncompressed·Length···FFFFFFFF |
| 66 | 1A | 66 | 1A56E9·Filename·Length·······000D |
| 67 | 1A | 67 | 1A56EB·Extra·Length··········0014 |
| 68 | 1A | 68 | 1A56ED·Comment·Length········0000 |
| 69 | 1A | 69 | 1A56EF·Disk·Start············0000 |
| 70 | 1A | 70 | 1A56F1·Int·File·Attributes···0000 |
| 71 | ·······[Bit·0]···············0·'Binary·Data' | 71 | ·······[Bit·0]···············0·'Binary·Data' |
| 72 | 1A | 72 | 1A56F3·Ext·File·Attributes···81A40000 |
| 73 | 1A | 73 | 1A56F7·Local·Header·Offset···00000000 |
| 74 | 1A | 74 | 1A56FB·Filename··············'XXXXXXXXXXXXX' |
| 75 | 1A | 75 | 1A5708·Extra·ID·#0001········0001·'ZIP64' |
| 76 | 1A | 76 | 1A570A···Length··············0010 |
| 77 | 1A | 77 | 1A570C···Uncompressed·Size···000000000000001E |
| 78 | 1A | 78 | 1A5714···Compressed·Size·····000000000000001E |
| 79 | 1A | 79 | 1A571C·CENTRAL·HEADER·#2·····02014B50 |
| 80 | 1A | 80 | 1A5720·Created·Zip·Spec······2D·'4.5' |
| 81 | 1A | 81 | 1A5721·Created·OS············03·'Unix' |
| 82 | 1A | 82 | 1A5722·Extract·Zip·Spec······2D·'4.5' |
| 83 | 1A | 83 | 1A5723·Extract·OS············00·'MS-DOS' |
| 84 | 1A | 84 | 1A5724·General·Purpose·Flag··0000 |
| 85 | 1A | 85 | 1A5726·Compression·Method····0000·'Stored' |
| 86 | 1A | 86 | 1A5728·Last·Mod·Time·········5C865A67·'Mon·Apr··6·11:19:14·2026' |
| 87 | 1A | 87 | 1A572C·CRC···················49EA8AEB |
| 88 | 1A | 88 | 1A5730·Compressed·Length·····FFFFFFFF |
| 89 | 1A | 89 | 1A5734·Uncompressed·Length···FFFFFFFF |
| 90 | 1A | 90 | 1A5738·Filename·Length·······0027 |
| 91 | 1A | 91 | 1A573A·Extra·Length··········0014 |
| 92 | 1A | 92 | 1A573C·Comment·Length········0000 |
| 93 | 1A | 93 | 1A573E·Disk·Start············0000 |
| 94 | 1A | 94 | 1A5740·Int·File·Attributes···0000 |
| 95 | ·······[Bit·0]···············0·'Binary·Data' | 95 | ·······[Bit·0]···············0·'Binary·Data' |
| 96 | 1A | 96 | 1A5742·Ext·File·Attributes···81A40000 |
| 97 | 1A | 97 | 1A5746·Local·Header·Offset···0000005D |
| 98 | 1A | 98 | 1A574A·Filename··············'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 99 | ·····························' | 99 | ·····························' |
| 100 | 1A | 100 | 1A5771·Extra·ID·#0001········0001·'ZIP64' |
| 101 | 1A | 101 | 1A5773···Length··············0010 |
| 102 | 1A | 102 | 1A5775···Uncompressed·Size···000000000018504D |
| 103 | 1A | 103 | 1A577D···Compressed·Size·····000000000018504D |
| 104 | 1A | 104 | 1A5785·CENTRAL·HEADER·#3·····02014B50 |
| 105 | 1A | 105 | 1A5789·Created·Zip·Spec······2D·'4.5' |
| 106 | 1A | 106 | 1A578A·Created·OS············03·'Unix' |
| 107 | 1A | 107 | 1A578B·Extract·Zip·Spec······2D·'4.5' |
| 108 | 1A | 108 | 1A578C·Extract·OS············00·'MS-DOS' |
| 109 | 1A | 109 | 1A578D·General·Purpose·Flag··0000 |
| 110 | 1A | 110 | 1A578F·Compression·Method····0000·'Stored' |
| 111 | 1A | 111 | 1A5791·Last·Mod·Time·········5C865A67·'Mon·Apr··6·11:19:14·2026' |
| 112 | 1A | 112 | 1A5795·CRC···················A4D2F2E1 |
| Max diff block lines reached; 1269/8858 bytes (14.33%) of diff not shown. | |||
| Offset 44, 16 lines modified | Offset 44, 16 lines modified | ||
| 44 | -rw-r--r--···0········0········0·····5453·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/request.mjs | 44 | -rw-r--r--···0········0········0·····5453·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/request.mjs |
| 45 | -rw-r--r--···0········0········0······905·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/response.d.mts | 45 | -rw-r--r--···0········0········0······905·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/response.d.mts |
| 46 | -rw-r--r--···0········0········0······905·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/response.d.ts | 46 | -rw-r--r--···0········0········0······905·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/response.d.ts |
| 47 | -rw-r--r--···0········0········0·····3209·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/response.js | 47 | -rw-r--r--···0········0········0·····3209·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/response.js |
| 48 | -rw-r--r--···0········0········0·····2126·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/response.mjs | 48 | -rw-r--r--···0········0········0·····2126·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/response.mjs |
| 49 | -rw-r--r--···0········0········0······698·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.d.mts | 49 | -rw-r--r--···0········0········0······698·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.d.mts |
| 50 | -rw-r--r--···0········0········0······698·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.d.ts | 50 | -rw-r--r--···0········0········0······698·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.d.ts |
| 51 | -rw-r--r--···0········0········0·····63 | 51 | -rw-r--r--···0········0········0·····6388·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.js |
| 52 | -rw-r--r--···0········0········0·····51 | 52 | -rw-r--r--···0········0········0·····5171·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.mjs |
| 53 | -rw-r--r--···0········0········0······367·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.d.mts | 53 | -rw-r--r--···0········0········0······367·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.d.mts |
| 54 | -rw-r--r--···0········0········0······366·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.d.ts | 54 | -rw-r--r--···0········0········0······366·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.d.ts |
| 55 | -rw-r--r--···0········0········0····20361·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.js | 55 | -rw-r--r--···0········0········0····20361·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.js |
| 56 | -rw-r--r--···0········0········0····18569·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.mjs | 56 | -rw-r--r--···0········0········0····18569·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.mjs |
| 57 | -rw-r--r--···0········0········0·····1785·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/types.d.mts | 57 | -rw-r--r--···0········0········0·····1785·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/types.d.mts |
| 58 | -rw-r--r--···0········0········0·····1785·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/types.d.ts | 58 | -rw-r--r--···0········0········0·····1785·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/types.d.ts |
| 59 | -rw-r--r--···0········0········0······758·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/types.js | 59 | -rw-r--r--···0········0········0······758·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/types.js |
| Offset 62, 16 lines modified | Offset 62, 16 lines modified | ||
| 62 | -rw-r--r--···0········0········0·······82·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response/constants.d.ts | 62 | -rw-r--r--···0········0········0·······82·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response/constants.d.ts |
| 63 | -rw-r--r--···0········0········0·····1138·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response/constants.js | 63 | -rw-r--r--···0········0········0·····1138·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response/constants.js |
| 64 | -rw-r--r--···0········0········0······108·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response/constants.mjs | 64 | -rw-r--r--···0········0········0······108·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response/constants.mjs |
| 65 | -rw-r--r--···0········0········0·······82·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response.d.mts | 65 | -rw-r--r--···0········0········0·······82·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response.d.mts |
| 66 | -rw-r--r--···0········0········0·······82·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response.d.ts | 66 | -rw-r--r--···0········0········0·······82·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response.d.ts |
| 67 | -rw-r--r--···0········0········0·····1301·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response.js | 67 | -rw-r--r--···0········0········0·····1301·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response.js |
| 68 | -rw-r--r--···0········0········0······234·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response.mjs | 68 | -rw-r--r--···0········0········0······234·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils/response.mjs |
| 69 | -rw-r--r--···0········0········0······8 | 69 | -rw-r--r--···0········0········0······829·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.d.mts |
| 70 | -rw-r--r--···0········0········0······8 | 70 | -rw-r--r--···0········0········0······829·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.d.ts |
| 71 | -rw-r--r--···0········0········0·····3122·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.js | 71 | -rw-r--r--···0········0········0·····3122·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.js |
| 72 | -rw-r--r--···0········0········0·····1892·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.mjs | 72 | -rw-r--r--···0········0········0·····1892·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.mjs |
| 73 | -rw-r--r--···0········0········0······301·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/vercel.d.mts | 73 | -rw-r--r--···0········0········0······301·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/vercel.d.mts |
| 74 | -rw-r--r--···0········0········0······301·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/vercel.d.ts | 74 | -rw-r--r--···0········0········0······301·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/vercel.d.ts |
| 75 | -rw-r--r--···0········0········0····19572·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/vercel.js | 75 | -rw-r--r--···0········0········0····19572·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/vercel.js |
| 76 | -rw-r--r--···0········0········0····17806·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/vercel.mjs | 76 | -rw-r--r--···0········0········0····17806·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/vercel.mjs |
| 77 | -rw-r--r--···0········0········0·····2633·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/package.json | 77 | -rw-r--r--···0········0········0·····2633·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@hono/node-server/package.json |
| Offset 773, 83 lines modified | Offset 773, 83 lines modified | ||
| 773 | -rw-r--r--···0········0········0·····2542·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@quasar/ssl-certificate/src/index.js | 773 | -rw-r--r--···0········0········0·····2542·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@quasar/ssl-certificate/src/index.js |
| 774 | -rw-r--r--···0········0········0·····1141·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/http-proxy/LICENSE | 774 | -rw-r--r--···0········0········0·····1141·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/http-proxy/LICENSE |
| 775 | -rw-r--r--···0········0········0······731·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/http-proxy/README.md | 775 | -rw-r--r--···0········0········0······731·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/http-proxy/README.md |
| 776 | -rw-r--r--···0········0········0····11137·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/http-proxy/index.d.ts | 776 | -rw-r--r--···0········0········0····11137·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/http-proxy/index.d.ts |
| 777 | -rw-r--r--···0········0········0·····1476·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/http-proxy/package.json | 777 | -rw-r--r--···0········0········0·····1476·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/http-proxy/package.json |
| 778 | -rw-r--r--···0········0········0·····1141·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/LICENSE | 778 | -rw-r--r--···0········0········0·····1141·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/LICENSE |
| 779 | -rw-r--r--···0········0········0·····1582·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/README.md | 779 | -rw-r--r--···0········0········0·····1582·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/README.md |
| 780 | -rw-r--r--···0········0········0····· | 780 | -rw-r--r--···0········0········0·····1464·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/assert/strict.d.ts |
| 781 | -rw-r--r--···0········0········0···· | 781 | -rw-r--r--···0········0········0····39914·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/assert.d.ts |
| 782 | -rw-r--r--···0········0········0····2 | 782 | -rw-r--r--···0········0········0····24988·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/async_hooks.d.ts |
| 783 | -rw-r--r--···0········0········0····226 | 783 | -rw-r--r--···0········0········0····22604·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/buffer.buffer.d.ts |
| 784 | -rw-r--r--···0········0········0····8 | 784 | -rw-r--r--···0········0········0····80592·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/buffer.d.ts |
| 785 | -rw-r--r--···0········0········0····6 | 785 | -rw-r--r--···0········0········0····60054·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/child_process.d.ts |
| 786 | -rw-r--r--···0········0········0···· | 786 | -rw-r--r--···0········0········0····19527·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/cluster.d.ts |
| 787 | -rw-r--r--···0········0········0·····1303·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/compatibility/iterators.d.ts | 787 | -rw-r--r--···0········0········0·····1303·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/compatibility/iterators.d.ts |
| 788 | -rw-r--r--···0········0········0····· | 788 | -rw-r--r--···0········0········0·····4250·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/console.d.ts |
| 789 | -rw-r--r--···0········0········0······ | 789 | -rw-r--r--···0········0········0······491·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/constants.d.ts |
| 790 | -rw-r--r--···0········0········0···17 | 790 | -rw-r--r--···0········0········0···171545·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/crypto.d.ts |
| 791 | -rw-r--r--···0········0········0····2 | 791 | -rw-r--r--···0········0········0····24921·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/dgram.d.ts |
| 792 | -rw-r--r--···0········0········0····2 | 792 | -rw-r--r--···0········0········0····23968·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/diagnostics_channel.d.ts |
| 793 | -rw-r--r--···0········0········0····2 | 793 | -rw-r--r--···0········0········0····20810·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/dns/promises.d.ts |
| 794 | -rw-r--r--···0········0········0····3 | 794 | -rw-r--r--···0········0········0····34346·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/dns.d.ts |
| 795 | -rw-r--r--···0········0········0····· | 795 | -rw-r--r--···0········0········0·····6597·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/domain.d.ts |
| 796 | -rw-r--r--···0········0········0····4 | 796 | -rw-r--r--···0········0········0····47350·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/events.d.ts |
| 797 | -rw-r--r--···0········0········0····5 | 797 | -rw-r--r--···0········0········0····56792·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/fs/promises.d.ts |
| 798 | -rw-r--r--···0········0········0···197 | 798 | -rw-r--r--···0········0········0···197019·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/fs.d.ts |
| 799 | -rw-r--r--···0········0········0·····5132·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/globals.d.ts | 799 | -rw-r--r--···0········0········0·····5132·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/globals.d.ts |
| 800 | -rw-r--r--···0········0········0·····4864·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/globals.typedarray.d.ts | 800 | -rw-r--r--···0········0········0·····4864·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/globals.typedarray.d.ts |
| 801 | -rw-r--r--···0········0········0····9 | 801 | -rw-r--r--···0········0········0····95789·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/http.d.ts |
| 802 | -rw-r--r--···0········0········0···118 | 802 | -rw-r--r--···0········0········0···118137·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/http2.d.ts |
| 803 | -rw-r--r--···0········0········0····16 | 803 | -rw-r--r--···0········0········0····16812·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/https.d.ts |
| 804 | -rw-r--r--···0········0········0·····5031·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/index.d.ts | 804 | -rw-r--r--···0········0········0·····5031·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/index.d.ts |
| 805 | -rw-r--r--···0········0········0·····1 | 805 | -rw-r--r--···0········0········0·····1471·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/inspector/promises.d.ts |
| 806 | -rw-r--r--···0········0········0····12 | 806 | -rw-r--r--···0········0········0····12198·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/inspector.d.ts |
| 807 | -rw-r--r--···0········0········0···228065·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/inspector.generated.d.ts | 807 | -rw-r--r--···0········0········0···228065·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/inspector.generated.d.ts |
| 808 | -rw-r--r--···0········0········0····344 | 808 | -rw-r--r--···0········0········0····34430·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/module.d.ts |
| 809 | -rw-r--r--···0········0········0····4 | 809 | -rw-r--r--···0········0········0····43748·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/net.d.ts |
| 810 | -rw-r--r--···0········0········0····19 | 810 | -rw-r--r--···0········0········0····19193·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/os.d.ts |
| 811 | -rw-r--r--···0········0········0·····4509·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/package.json | 811 | -rw-r--r--···0········0········0·····4509·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/package.json |
| 812 | -rw-r--r--···0········0········0······194·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/path/posix.d.ts | 812 | -rw-r--r--···0········0········0······194·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/path/posix.d.ts |
| 813 | -rw-r--r--···0········0········0······194·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/path/win32.d.ts | 813 | -rw-r--r--···0········0········0······194·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/path/win32.d.ts |
| 814 | -rw-r--r--···0········0········0·····7 | 814 | -rw-r--r--···0········0········0·····7639·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/path.d.ts |
| 815 | -rw-r--r--···0········0········0····2 | 815 | -rw-r--r--···0········0········0····23452·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/perf_hooks.d.ts |
| 816 | -rw-r--r--···0········0········0···109502·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/process.d.ts | 816 | -rw-r--r--···0········0········0···109502·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/process.d.ts |
| 817 | -rw-r--r--···0········0········0····· | 817 | -rw-r--r--···0········0········0·····3780·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/punycode.d.ts |
| 818 | -rw-r--r--···0········0········0····· | 818 | -rw-r--r--···0········0········0·····6642·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/querystring.d.ts |
| 819 | -rw-r--r--···0········0········0····29 | 819 | -rw-r--r--···0········0········0····29569·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/quic.d.ts |
| 820 | -rw-r--r--···0········0········0·····64 | 820 | -rw-r--r--···0········0········0·····6418·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/readline/promises.d.ts |
| 821 | -rw-r--r--···0········0········0····2 | 821 | -rw-r--r--···0········0········0····21134·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/readline.d.ts |
| 822 | -rw-r--r--···0········0········0····18 | 822 | -rw-r--r--···0········0········0····18136·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/repl.d.ts |
| 823 | -rw-r--r--···0········0········0····· | 823 | -rw-r--r--···0········0········0·····2045·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/sea.d.ts |
| 824 | -rw-r--r--···0········0········0····5 | 824 | -rw-r--r--···0········0········0····50054·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/sqlite.d.ts |
| 825 | -rw-r--r--···0········0········0····· | 825 | -rw-r--r--···0········0········0·····4272·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/stream/consumers.d.ts |
| 826 | -rw-r--r--···0········0········0·····7347·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/stream/promises.d.ts | 826 | -rw-r--r--···0········0········0·····7347·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/stream/promises.d.ts |
| 827 | -rw-r--r--···0········0········0····11988·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/stream/web.d.ts | 827 | -rw-r--r--···0········0········0····11988·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/stream/web.d.ts |
| 828 | -rw-r--r--···0········0········0····8 | 828 | -rw-r--r--···0········0········0····88892·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/stream.d.ts |
| 829 | -rw-r--r--···0········0········0····· | 829 | -rw-r--r--···0········0········0·····1318·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/string_decoder.d.ts |
| 830 | -rw-r--r--···0········0········0····· | 830 | -rw-r--r--···0········0········0·····2707·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/test/reporters.d.ts |
| 831 | -rw-r--r--···0········0········0···10 | 831 | -rw-r--r--···0········0········0···102109·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/test.d.ts |
| 832 | -rw-r--r--···0········0········0·····3 | 832 | -rw-r--r--···0········0········0·····3383·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/timers/promises.d.ts |
| 833 | -rw-r--r--···0········0········0·····7 | 833 | -rw-r--r--···0········0········0·····7351·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/timers.d.ts |
| 834 | -rw-r--r--···0········0········0····58 | 834 | -rw-r--r--···0········0········0····58012·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/tls.d.ts |
| 835 | -rw-r--r--···0········0········0····· | 835 | -rw-r--r--···0········0········0·····3842·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/trace_events.d.ts |
| 836 | -rw-r--r--···0········0········0····218 | 836 | -rw-r--r--···0········0········0····21855·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/ts5.6/buffer.buffer.d.ts |
| 837 | -rw-r--r--···0········0········0·····3811·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts | 837 | -rw-r--r--···0········0········0·····3811·2026-04-06·11:19:14.000000·lib/node_modules/@quasar/cli/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts |
| Max diff block lines reached; 35924/56973 bytes (63.05%) of diff not shown. | |||
| Offset 221, 179 lines modified | Offset 221, 180 lines modified | ||
| 00000dc0:·6669·6c65·6e61·6d65·203d·206f·7074·696f··filename·=·optio | 00000dc0:·6669·6c65·6e61·6d65·203d·206f·7074·696f··filename·=·optio | ||
| 00000dd0:·6e50·6174·683b·0a20·2020·207d·2065·6c73··nPath;.····}·els | 00000dd0:·6e50·6174·683b·0a20·2020·207d·2065·6c73··nPath;.····}·els | ||
| 00000de0:·6520·7b0a·2020·2020·2020·7472·7920·7b0a··e·{.······try·{. | 00000de0:·6520·7b0a·2020·2020·2020·7472·7920·7b0a··e·{.······try·{. | ||
| 00000df0:·2020·2020·2020·2020·6669·6c65·6e61·6d65··········filename | 00000df0:·2020·2020·2020·2020·6669·6c65·6e61·6d65··········filename | ||
| 00000e00:·203d·2074·7279·4465·636f·6465·5552·4928···=·tryDecodeURI( | 00000e00:·203d·2074·7279·4465·636f·6465·5552·4928···=·tryDecodeURI( | ||
| 00000e10:·632e·7265·712e·7061·7468·293b·0a20·2020··c.req.path);.··· | 00000e10:·632e·7265·712e·7061·7468·293b·0a20·2020··c.req.path);.··· | ||
| 00000e20:·2020·2020·2069·6620·282f·283f·3a5e·7c5b·······if·(/(?:^|[ | 00000e20:·2020·2020·2069·6620·282f·283f·3a5e·7c5b·······if·(/(?:^|[ | ||
| 00000e30:·5c2f·5c5c·5d29·5c2e·5c2e·283f·3a24·7c5b··\/\\])\.\.(?:$|[ | |||
| 00000e | 00000e30:·5c2f·5c5c·5d29·5c2e·7b31·2c32·7d28·3f3a··\/\\])\.{1,2}(?: | ||
| 00000e40:·247c·5b5c·2f5c·5c5d·297c·5b5c·2f5c·5c5d··$|[\/\\])|[\/\\] | |||
| 00000e50:·7b32·2c7d·2f2e·7465·7374·2866·696c·656e··{2,}/.test(filen | |||
| 00000e | 00000e60:·616d·6529·2920·7b0a·2020·2020·2020·2020··ame))·{.········ | ||
| 00000e | 00000e70:·2020·7468·726f·7720·6e65·7720·4572·726f····throw·new·Erro | ||
| 00000e | 00000e80:·7228·293b·0a20·2020·2020·2020·207d·0a20··r();.········}.· | ||
| 00000e | 00000e90:·2020·2020·207d·2063·6174·6368·207b·0a20·······}·catch·{.· | ||
| 00000e | 00000ea0:·2020·2020·2020·2061·7761·6974·206f·7074·········await·opt | ||
| 00000e | 00000eb0:·696f·6e73·2e6f·6e4e·6f74·466f·756e·643f··ions.onNotFound? | ||
| 00000e | 00000ec0:·2e28·632e·7265·712e·7061·7468·2c20·6329··.(c.req.path,·c) | ||
| 00000e | 00000ed0:·3b0a·2020·2020·2020·2020·7265·7475·726e··;.········return | ||
| 00000e | 00000ee0:·206e·6578·7428·293b·0a20·2020·2020·207d···next();.······} | ||
| 00000e | 00000ef0:·0a20·2020·207d·0a20·2020·206c·6574·2070··.····}.····let·p | ||
| 00000 | 00000f00:·6174·6820·3d20·2830·2c20·696d·706f·7274··ath·=·(0,·import | ||
| 00000f | 00000f10:·5f6e·6f64·655f·7061·7468·2e6a·6f69·6e29··_node_path.join) | ||
| 00000f | 00000f20:·280a·2020·2020·2020·726f·6f74·2c0a·2020··(.······root,.·· | ||
| 00000f | 00000f30:·2020·2020·216f·7074·696f·6e50·6174·6820······!optionPath· | ||
| 00000f | 00000f40:·2626·206f·7074·696f·6e73·2e72·6577·7269··&&·options.rewri | ||
| 00000f | 00000f50:·7465·5265·7175·6573·7450·6174·6820·3f20··teRequestPath·?· | ||
| 00000f | 00000f60:·6f70·7469·6f6e·732e·7265·7772·6974·6552··options.rewriteR | ||
| 00000f | 00000f70:·6571·7565·7374·5061·7468·2866·696c·656e··equestPath(filen | ||
| 00000f | 00000f80:·616d·652c·2063·2920·3a20·6669·6c65·6e61··ame,·c)·:·filena | ||
| 00000f | 00000f90:·6d65·0a20·2020·2029·3b0a·2020·2020·6c65··me.····);.····le | ||
| 00000f | 00000fa0:·7420·7374·6174·7320·3d20·6765·7453·7461··t·stats·=·getSta | ||
| 00000f | 00000fb0:·7473·2870·6174·6829·3b0a·2020·2020·6966··ts(path);.····if | ||
| 00000f | 00000fc0:·2028·7374·6174·7320·2626·2073·7461·7473···(stats·&&·stats | ||
| 00000f | 00000fd0:·2e69·7344·6972·6563·746f·7279·2829·2920··.isDirectory())· | ||
| 00000f | 00000fe0:·7b0a·2020·2020·2020·636f·6e73·7420·696e··{.······const·in | ||
| 00000f | 00000ff0:·6465·7846·696c·6520·3d20·6f70·7469·6f6e··dexFile·=·option | ||
| 0000 | 00001000:·732e·696e·6465·7820·3f3f·2022·696e·6465··s.index·??·"inde | ||
| 000010 | 00001010:·782e·6874·6d6c·223b·0a20·2020·2020·2070··x.html";.······p | ||
| 000010 | 00001020:·6174·6820·3d20·2830·2c20·696d·706f·7274··ath·=·(0,·import | ||
| 000010 | 00001030:·5f6e·6f64·655f·7061·7468·2e6a·6f69·6e29··_node_path.join) | ||
| 000010 | 00001040:·2870·6174·682c·2069·6e64·6578·4669·6c65··(path,·indexFile | ||
| 000010 | 00001050:·293b·0a20·2020·2020·2073·7461·7473·203d··);.······stats·= | ||
| 000010 | 00001060:·2067·6574·5374·6174·7328·7061·7468·293b···getStats(path); | ||
| 000010 | 00001070:·0a20·2020·207d·0a20·2020·2069·6620·2821··.····}.····if·(! | ||
| 000010 | 00001080:·7374·6174·7329·207b·0a20·2020·2020·2061··stats)·{.······a | ||
| 000010 | 00001090:·7761·6974·206f·7074·696f·6e73·2e6f·6e4e··wait·options.onN | ||
| 000010 | 000010a0:·6f74·466f·756e·643f·2e28·7061·7468·2c20··otFound?.(path,· | ||
| 000010 | 000010b0:·6329·3b0a·2020·2020·2020·7265·7475·726e··c);.······return | ||
| 000010 | 000010c0:·206e·6578·7428·293b·0a20·2020·207d·0a20···next();.····}.· | ||
| 000010 | 000010d0:·2020·2063·6f6e·7374·206d·696d·6554·7970·····const·mimeTyp | ||
| 000010 | 000010e0:·6520·3d20·2830·2c20·696d·706f·7274·5f6d··e·=·(0,·import_m | ||
| 000010 | 000010f0:·696d·652e·6765·744d·696d·6554·7970·6529··ime.getMimeType) | ||
| 00001 | 00001100:·2870·6174·6829·3b0a·2020·2020·632e·6865··(path);.····c.he | ||
| 000011 | 00001110:·6164·6572·2822·436f·6e74·656e·742d·5479··ader("Content-Ty | ||
| 000011 | 00001120:·7065·222c·206d·696d·6554·7970·6520·7c7c··pe",·mimeType·|| | ||
| 000011 | 00001130:·2022·6170·706c·6963·6174·696f·6e2f·6f63···"application/oc | ||
| 000011 | 00001140:·7465·742d·7374·7265·616d·2229·3b0a·2020··tet-stream");.·· | ||
| 000011 | 00001150:·2020·6966·2028·6f70·7469·6f6e·732e·7072····if·(options.pr | ||
| 000011 | 00001160:·6563·6f6d·7072·6573·7365·6420·2626·2028··ecompressed·&&·( | ||
| 000011 | 00001170:·216d·696d·6554·7970·6520·7c7c·2043·4f4d··!mimeType·||·COM | ||
| 000011 | 00001180:·5052·4553·5349·424c·455f·434f·4e54·454e··PRESSIBLE_CONTEN | ||
| 000011 | 00001190:·545f·5459·5045·5f52·4547·4558·2e74·6573··T_TYPE_REGEX.tes | ||
| 000011 | 000011a0:·7428·6d69·6d65·5479·7065·2929·2920·7b0a··t(mimeType)))·{. | ||
| 000011 | 000011b0:·2020·2020·2020·636f·6e73·7420·6163·6365········const·acce | ||
| 000011 | 000011c0:·7074·456e·636f·6469·6e67·5365·7420·3d20··ptEncodingSet·=· | ||
| 000011 | 000011d0:·6e65·7720·5365·7428·0a20·2020·2020·2020··new·Set(.······· | ||
| 000011 | 000011e0:·2063·2e72·6571·2e68·6561·6465·7228·2241···c.req.header("A | ||
| 000011 | 000011f0:·6363·6570·742d·456e·636f·6469·6e67·2229··ccept-Encoding") | ||
| 00001 | 00001200:·3f2e·7370·6c69·7428·222c·2229·2e6d·6170··?.split(",").map | ||
| 000012 | 00001210:·2828·656e·636f·6469·6e67·2920·3d3e·2065··((encoding)·=>·e | ||
| 000012 | 00001220:·6e63·6f64·696e·672e·7472·696d·2829·290a··ncoding.trim()). | ||
| 000012 | 00001230:·2020·2020·2020·293b·0a20·2020·2020·2066········);.······f | ||
| 000012 | 00001240:·6f72·2028·636f·6e73·7420·656e·636f·6469··or·(const·encodi | ||
| 000012 | 00001250:·6e67·206f·6620·454e·434f·4449·4e47·535f··ng·of·ENCODINGS_ | ||
| 000012 | 00001260:·4f52·4445·5245·445f·4b45·5953·2920·7b0a··ORDERED_KEYS)·{. | ||
| 000012 | 00001270:·2020·2020·2020·2020·6966·2028·2161·6363··········if·(!acc | ||
| 000012 | 00001280:·6570·7445·6e63·6f64·696e·6753·6574·2e68··eptEncodingSet.h | ||
| 000012 | 00001290:·6173·2865·6e63·6f64·696e·6729·2920·7b0a··as(encoding))·{. | ||
| 000012 | 000012a0:·2020·2020·2020·2020·2020·636f·6e74·696e············contin | ||
| 000012 | 000012b0:·7565·3b0a·2020·2020·2020·2020·7d0a·2020··ue;.········}.·· | ||
| 000012 | 000012c0:·2020·2020·2020·636f·6e73·7420·7072·6563········const·prec | ||
| 000012d0:·6f6d·7072·6573·7365·6453·7461·7473·203d··ompressedStats·= | |||
| 000012e0:·2067·6574·5374·6174·7328·7061·7468·202b···getStats(path·+ | |||
| 000012f0:·2045·4e43·4f44·494e·4753·5b65·6e63·6f64···ENCODINGS[encod | |||
| 00001300:·696e·675d·293b·0a20·2020·2020·2020·2069··ing]);.········i | |||
| 00001310:·6620·2870·7265·636f·6d70·7265·7373·6564··f·(precompressed | |||
| 00001320:·5374·6174·7329·207b·0a20·2020·2020·2020··Stats)·{.······· | |||
| 00001330:·2020·2063·2e68·6561·6465·7228·2243·6f6e·····c.header("Con | |||
| 00001340:·7465·6e74·2d45·6e63·6f64·696e·6722·2c20··tent-Encoding",· | |||
| 00001350:·656e·636f·6469·6e67·293b·0a20·2020·2020··encoding);.····· | |||
| 00001360:·2020·2020·2063·2e68·6561·6465·7228·2256·······c.header("V | |||
| 00001370:·6172·7922·2c20·2241·6363·6570·742d·456e··ary",·"Accept-En | |||
| 00001380:·636f·6469·6e67·222c·207b·2061·7070·656e··coding",·{·appen | |||
| 00001390:·643a·2074·7275·6520·7d29·3b0a·2020·2020··d:·true·});.···· | |||
| 000013a0:·2020·2020·2020·7374·6174·7320·3d20·7072········stats·=·pr | |||
| 00001 | 000013b0:·6563·6f6d·7072·6573·7365·6453·7461·7473··ecompressedStats | ||
| 000012d0:·203d·2067·6574·5374·6174·7328·7061·7468···=·getStats(path | |||
| 000012e0:·202b·2045·4e43·4f44·494e·4753·5b65·6e63···+·ENCODINGS[enc | |||
| Max diff block lines reached; -1/24290 bytes (-0.00%) of diff not shown. | |||
| Offset 72, 15 lines modified | Offset 72, 15 lines modified | ||
| 72 | ····} | 72 | ····} |
| 73 | ····let·filename; | 73 | ····let·filename; |
| 74 | ····if·(optionPath)·{ | 74 | ····if·(optionPath)·{ |
| 75 | ······filename·=·optionPath; | 75 | ······filename·=·optionPath; |
| 76 | ····}·else·{ | 76 | ····}·else·{ |
| 77 | ······try·{ | 77 | ······try·{ |
| 78 | ········filename·=·tryDecodeURI(c.req.path); | 78 | ········filename·=·tryDecodeURI(c.req.path); |
| 79 | ········if·(/(?:^|[\/\\])\. | 79 | ········if·(/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}/.test(filename))·{ |
| 80 | ··········throw·new·Error(); | 80 | ··········throw·new·Error(); |
| 81 | ········} | 81 | ········} |
| 82 | ······}·catch·{ | 82 | ······}·catch·{ |
| 83 | ········await·options.onNotFound?.(c.req.path,·c); | 83 | ········await·options.onNotFound?.(c.req.path,·c); |
| 84 | ········return·next(); | 84 | ········return·next(); |
| 85 | ······} | 85 | ······} |
| 86 | ····} | 86 | ····} |
| Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
| 1 | import·{·OutgoingHttpHeaders·}·from·'node:http'; | 1 | import·{·OutgoingHttpHeaders·}·from·'node:http'; |
| 2 | import·{·Writable·}·from·'node:stream'; | 2 | import·{·Writable·}·from·'node:stream'; |
| 3 | declare·function·readWithoutBlocking(readPromise:·Promise<ReadableStreamReadResult<Uint8Array>>):·Promise<ReadableStreamReadResult<Uint8Array>·|·undefined>; | 3 | declare·function·readWithoutBlocking(readPromise:·Promise<ReadableStreamReadResult<Uint8Array>>):·Promise<ReadableStreamReadResult<Uint8Array>·|·undefined>; |
| 4 | declare·function·writeFromReadableStreamDefaultReader(reader:·ReadableStreamDefaultReader<Uint8Array>,·writable:·Writable,·currentReadPromise?:·Promise<ReadableStreamReadResult<Uint8Array>>·|·undefined):·Promise< | 4 | declare·function·writeFromReadableStreamDefaultReader(reader:·ReadableStreamDefaultReader<Uint8Array>,·writable:·Writable,·currentReadPromise?:·Promise<ReadableStreamReadResult<Uint8Array>>·|·undefined):·Promise<void>; |
| 5 | declare·function·writeFromReadableStream(stream:·ReadableStream<Uint8Array>,·writable:·Writable):·Promise< | 5 | declare·function·writeFromReadableStream(stream:·ReadableStream<Uint8Array>,·writable:·Writable):·Promise<void>·|·undefined; |
| 6 | declare·const·buildOutgoingHttpHeaders:·(headers:·Headers·|·HeadersInit·|·null·|·undefined)·=>·OutgoingHttpHeaders; | 6 | declare·const·buildOutgoingHttpHeaders:·(headers:·Headers·|·HeadersInit·|·null·|·undefined)·=>·OutgoingHttpHeaders; |
| 7 | export·{·buildOutgoingHttpHeaders,·readWithoutBlocking,·writeFromReadableStream,·writeFromReadableStreamDefaultReader·}; | 7 | export·{·buildOutgoingHttpHeaders,·readWithoutBlocking,·writeFromReadableStream,·writeFromReadableStreamDefaultReader·}; |
| Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
| 1 | import·{·OutgoingHttpHeaders·}·from·'node:http'; | 1 | import·{·OutgoingHttpHeaders·}·from·'node:http'; |
| 2 | import·{·Writable·}·from·'node:stream'; | 2 | import·{·Writable·}·from·'node:stream'; |
| 3 | declare·function·readWithoutBlocking(readPromise:·Promise<ReadableStreamReadResult<Uint8Array>>):·Promise<ReadableStreamReadResult<Uint8Array>·|·undefined>; | 3 | declare·function·readWithoutBlocking(readPromise:·Promise<ReadableStreamReadResult<Uint8Array>>):·Promise<ReadableStreamReadResult<Uint8Array>·|·undefined>; |
| 4 | declare·function·writeFromReadableStreamDefaultReader(reader:·ReadableStreamDefaultReader<Uint8Array>,·writable:·Writable,·currentReadPromise?:·Promise<ReadableStreamReadResult<Uint8Array>>·|·undefined):·Promise< | 4 | declare·function·writeFromReadableStreamDefaultReader(reader:·ReadableStreamDefaultReader<Uint8Array>,·writable:·Writable,·currentReadPromise?:·Promise<ReadableStreamReadResult<Uint8Array>>·|·undefined):·Promise<void>; |
| 5 | declare·function·writeFromReadableStream(stream:·ReadableStream<Uint8Array>,·writable:·Writable):·Promise< | 5 | declare·function·writeFromReadableStream(stream:·ReadableStream<Uint8Array>,·writable:·Writable):·Promise<void>·|·undefined; |
| 6 | declare·const·buildOutgoingHttpHeaders:·(headers:·Headers·|·HeadersInit·|·null·|·undefined)·=>·OutgoingHttpHeaders; | 6 | declare·const·buildOutgoingHttpHeaders:·(headers:·Headers·|·HeadersInit·|·null·|·undefined)·=>·OutgoingHttpHeaders; |
| 7 | export·{·buildOutgoingHttpHeaders,·readWithoutBlocking,·writeFromReadableStream,·writeFromReadableStreamDefaultReader·}; | 7 | export·{·buildOutgoingHttpHeaders,·readWithoutBlocking,·writeFromReadableStream,·writeFromReadableStreamDefaultReader·}; |
| Offset 95, 9 lines modified | Offset 95, 9 lines modified | ||
| 95 | ················"./dist/utils/*.d.ts" | 95 | ················"./dist/utils/*.d.ts" |
| 96 | ············], | 96 | ············], |
| 97 | ············"vercel":·[ | 97 | ············"vercel":·[ |
| 98 | ················"./dist/vercel.d.ts" | 98 | ················"./dist/vercel.d.ts" |
| 99 | ············] | 99 | ············] |
| 100 | ········} | 100 | ········} |
| 101 | ····}, | 101 | ····}, |
| 102 | ····"version":·"1.19.1 | 102 | ····"version":·"1.19.13" |
| 103 | } | 103 | } |
| Offset 4, 12 lines modified | Offset 4, 12 lines modified | ||
| 4 | #·Summary\xd | 4 | #·Summary\xd |
| 5 | This·package·contains·type·definitions·for·node·(https://nodejs.org/).\xd | 5 | This·package·contains·type·definitions·for·node·(https://nodejs.org/).\xd |
| 6 | \xd | 6 | \xd |
| 7 | #·Details\xd | 7 | #·Details\xd |
| 8 | Files·were·exported·from·https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.\xd | 8 | Files·were·exported·from·https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.\xd |
| 9 | \xd | 9 | \xd |
| 10 | ###·Additional·Details\xd | 10 | ###·Additional·Details\xd |
| 11 | ·*·Last·updated:·Fri,· | 11 | ·*·Last·updated:·Fri,·10·Apr·2026·03:39:58·GMT\xd |
| 12 | ·*·Dependencies:·[undici-types](https://npmjs.com/package/undici-types)\xd | 12 | ·*·Dependencies:·[undici-types](https://npmjs.com/package/undici-types)\xd |
| 13 | \xd | 13 | \xd |
| 14 | #·Credits\xd | 14 | #·Credits\xd |
| 15 | These·definitions·were·written·by·[Microsoft·TypeScript](https://github.com/Microsoft),·[Alberto·Schiabel](https://github.com/jkomyno),·[Andrew·Makarov](https://github.com/r3nya),·[Benjamin·Toueg](https://github.com/btoueg),·[David·Junger](https://github.com/touffy),·[Mohsen·Azimi](https://github.com/mohsen1),·[Nikita·Galkin](https://github.com/galkin),·[Sebastian·Silbermann](https://github.com/eps1lon),·[Wilco·Bakker](https://github.com/WilcoBakker),·[Marcin·Kopacz](https://github.com/chyzwar),·[Trivikram·Kamat](https://github.com/trivikr),·[Junxiao·Shi](https://github.com/yoursunny),·[Ilia·Baryshnikov](https://github.com/qwelias),·[ExE·Boss](https://github.com/ExE-Boss),·[Piotr·Błażejewicz](https://github.com/peterblazejewicz),·[Anna·Henningsen](https://github.com/addaleax),·[Victor·Perin](https://github.com/victorperin),·[NodeJS·Contributors](https://github.com/NodeJS),·[Linus·Unnebäck](https://github.com/LinusU),·[wafuwafu13](https://github.com/wafuwafu13),·[Matteo·Collina](https://github.com/mcollina),·[Dmitry·Semigradsky](https://github.com/Semigradsky),·[René](https://github.com/Renegade334),·and·[Yagiz·Nizipli](https://github.com/anonrig).\xd | 15 | These·definitions·were·written·by·[Microsoft·TypeScript](https://github.com/Microsoft),·[Alberto·Schiabel](https://github.com/jkomyno),·[Andrew·Makarov](https://github.com/r3nya),·[Benjamin·Toueg](https://github.com/btoueg),·[David·Junger](https://github.com/touffy),·[Mohsen·Azimi](https://github.com/mohsen1),·[Nikita·Galkin](https://github.com/galkin),·[Sebastian·Silbermann](https://github.com/eps1lon),·[Wilco·Bakker](https://github.com/WilcoBakker),·[Marcin·Kopacz](https://github.com/chyzwar),·[Trivikram·Kamat](https://github.com/trivikr),·[Junxiao·Shi](https://github.com/yoursunny),·[Ilia·Baryshnikov](https://github.com/qwelias),·[ExE·Boss](https://github.com/ExE-Boss),·[Piotr·Błażejewicz](https://github.com/peterblazejewicz),·[Anna·Henningsen](https://github.com/addaleax),·[Victor·Perin](https://github.com/victorperin),·[NodeJS·Contributors](https://github.com/NodeJS),·[Linus·Unnebäck](https://github.com/LinusU),·[wafuwafu13](https://github.com/wafuwafu13),·[Matteo·Collina](https://github.com/mcollina),·[Dmitry·Semigradsky](https://github.com/Semigradsky),·[René](https://github.com/Renegade334),·and·[Yagiz·Nizipli](https://github.com/anonrig).\xd |
| Offset 1, 53 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·In·strict·assertion·mode,·non-strict·methods·behave·like·their·corresponding | ||
| 3 | ·*·strict·methods.·For·example,·`assert.deepEqual()`·will·behave·like | ||
| 4 | ·*·`assert.deepStrictEqual()`. | ||
| 5 | ·* | ||
| 6 | ·*·In·strict·assertion·mode,·error·messages·for·objects·display·a·diff.·In·legacy | ||
| 7 | ·*·assertion·mode,·error·messages·for·objects·display·the·objects,·often·truncated. | ||
| 8 | ·* | ||
| 9 | ·*·To·use·strict·assertion·mode: | ||
| 10 | ·* | ||
| 11 | ·*·```js | ||
| 12 | ·*·import·{·strict·as·assert·}·from·'node:assert'; | ||
| 13 | ·*·``` | ||
| 14 | ·* | ||
| 15 | ·*·```js | ||
| 16 | ·*·import·assert·from·'node:assert/strict'; | ||
| 17 | ·*·``` | ||
| 18 | ·* | ||
| 19 | ·*·Example·error·diff: | ||
| 20 | ·* | ||
| 21 | ·*·```js | ||
| 22 | ·*·import·{·strict·as·assert·}·from·'node:assert'; | ||
| 23 | ·* | ||
| 24 | ·*·assert.deepEqual([[[1,·2,·3]],·4,·5],·[[[1,·2,·'3']],·4,·5]); | ||
| 25 | ·*·//·AssertionError:·Expected·inputs·to·be·strictly·deep-equal: | ||
| 26 | ·*·//·+·actual·-·expected·...·Lines·skipped | ||
| 27 | ·*·// | ||
| 28 | ·*·//···[ | ||
| 29 | ·*·//·····[ | ||
| 30 | ·*·//·... | ||
| 31 | ·*·//·······2, | ||
| 32 | ·*·//·+·····3 | ||
| 33 | ·*·//·-·····'3' | ||
| 34 | ·*·//·····], | ||
| 35 | ·*·//·... | ||
| 36 | ·*·//·····5 | ||
| 37 | ·*·//···] | ||
| 38 | ·*·``` | ||
| 39 | ·* | ||
| 40 | ·*·To·deactivate·the·colors,·use·the·`NO_COLOR`·or·`NODE_DISABLE_COLORS` | ||
| 41 | ·*·environment·variables.·This·will·also·deactivate·the·colors·in·the·REPL.·For | ||
| 42 | ·*·more·on·color·support·in·terminal·environments,·read·the·tty | ||
| 43 | ·*·[`getColorDepth()`](https://nodejs.org/docs/latest-v25.x/api/tty.html#writestreamgetcolordepthenv)·documentation. | ||
| 44 | ·*·@since·v15.0.0 | ||
| 45 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/assert/strict.js) | ||
| 46 | ·*/ | ||
| 47 | declare·module·"node:assert/strict"·{ | 1 | declare·module·"node:assert/strict"·{ |
| 48 | ····import·{ | 2 | ····import·{ |
| 49 | ········Assert, | 3 | ········Assert, |
| 50 | ········AssertionError, | 4 | ········AssertionError, |
| 51 | ········AssertionErrorOptions, | 5 | ········AssertionErrorOptions, |
| 52 | ········AssertOptions, | 6 | ········AssertOptions, |
| 53 | ········AssertPredicate, | 7 | ········AssertPredicate, |
| Offset 1, 12 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:assert`·module·provides·a·set·of·assertion·functions·for·verifying | ||
| 3 | ·*·invariants. | ||
| 4 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/assert.js) | ||
| 5 | ·*/ | ||
| 6 | declare·module·"node:assert"·{ | 1 | declare·module·"node:assert"·{ |
| 7 | ····import·strict·=·require("node:assert/strict"); | 2 | ····import·strict·=·require("node:assert/strict"); |
| 8 | ····/** | 3 | ····/** |
| 9 | ·····*·An·alias·of·{@link·assert.ok}. | 4 | ·····*·An·alias·of·{@link·assert.ok}. |
| 10 | ·····*·@since·v0.5.9 | 5 | ·····*·@since·v0.5.9 |
| 11 | ·····*·@param·value·The·input·that·is·checked·for·being·truthy. | 6 | ·····*·@param·value·The·input·that·is·checked·for·being·truthy. |
| 12 | ·····*/ | 7 | ·····*/ |
| Offset 1, 23 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·We·strongly·discourage·the·use·of·the·`async_hooks`·API. | ||
| 3 | ·*·Other·APIs·that·can·cover·most·of·its·use·cases·include: | ||
| 4 | ·* | ||
| 5 | ·*·*·[`AsyncLocalStorage`](https://nodejs.org/docs/latest-v25.x/api/async_context.html#class-asynclocalstorage)·tracks·async·context | ||
| 6 | ·*·*·[`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v25.x/api/process.html#processgetactiveresourcesinfo)·tracks·active·resources | ||
| 7 | ·* | ||
| 8 | ·*·The·`node:async_hooks`·module·provides·an·API·to·track·asynchronous·resources. | ||
| 9 | ·*·It·can·be·accessed·using: | ||
| 10 | ·* | ||
| 11 | ·*·```js | ||
| 12 | ·*·import·async_hooks·from·'node:async_hooks'; | ||
| 13 | ·*·``` | ||
| 14 | ·*·@experimental | ||
| 15 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/async_hooks.js) | ||
| 16 | ·*/ | ||
| 17 | declare·module·"node:async_hooks"·{ | 1 | declare·module·"node:async_hooks"·{ |
| 18 | ····/** | 2 | ····/** |
| 19 | ·····*·```js | 3 | ·····*·```js |
| 20 | ·····*·import·{·executionAsyncId·}·from·'node:async_hooks'; | 4 | ·····*·import·{·executionAsyncId·}·from·'node:async_hooks'; |
| 21 | ·····*·import·fs·from·'node:fs'; | 5 | ·····*·import·fs·from·'node:fs'; |
| 22 | ·····* | 6 | ·····* |
| 23 | ·····*·console.log(executionAsyncId());··//·1·-·bootstrap | 7 | ·····*·console.log(executionAsyncId());··//·1·-·bootstrap |
| Offset 119, 45 lines modified | Offset 103, 39 lines modified | ||
| 119 | ·····*·Promise·contexts·may·not·get·valid·`triggerAsyncId`s·by·default.·See | 103 | ·····*·Promise·contexts·may·not·get·valid·`triggerAsyncId`s·by·default.·See |
| 120 | ·····*·the·section·on·[promise·execution·tracking](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promise-execution-tracking). | 104 | ·····*·the·section·on·[promise·execution·tracking](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promise-execution-tracking). |
| 121 | ·····*·@return·The·ID·of·the·resource·responsible·for·calling·the·callback·that·is·currently·being·executed. | 105 | ·····*·@return·The·ID·of·the·resource·responsible·for·calling·the·callback·that·is·currently·being·executed. |
| 122 | ·····*/ | 106 | ·····*/ |
| 123 | ····function·triggerAsyncId():·number; | 107 | ····function·triggerAsyncId():·number; |
| 124 | ····interface·HookCallbacks·{ | 108 | ····interface·HookCallbacks·{ |
| 125 | ········/** | 109 | ········/** |
| 110 | ·········*·The·[`init`·callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#initasyncid-type-triggerasyncid-resource). | ||
| 126 | ·········*·Called·when·a·class·is·constructed·that·has·the·possibility·to·emit·an·asynchronous·event. | ||
| 127 | ·········*·@param·asyncId·A·unique·ID·for·the·async·resource | ||
| 128 | ·········*·@param·type·The·type·of·the·async·resource | ||
| 129 | ·········*·@param·triggerAsyncId·The·unique·ID·of·the·async·resource·in·whose·execution·context·this·async·resource·was·created | ||
| 130 | ·········*·@param·resource·Reference·to·the·resource·representing·the·async·operation,·needs·to·be·released·during·destroy | ||
| 131 | ·········*/ | 111 | ·········*/ |
| 132 | ········init?(asyncId:·number,·type:·string,·triggerAsyncId:·number,·resource:·object):·void; | 112 | ········init?(asyncId:·number,·type:·string,·triggerAsyncId:·number,·resource:·object):·void; |
| 133 | ········/** | 113 | ········/** |
| 114 | ·········*·The·[`before`·callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#beforeasyncid). | ||
| 134 | ·········*·When·an·asynchronous·operation·is·initiated·or·completes·a·callback·is·called·to·notify·the·user. | ||
| 135 | ·········*·The·before·callback·is·called·just·before·said·callback·is·executed. | ||
| 136 | ·········*·@param·asyncId·the·unique·identifier·assigned·to·the·resource·about·to·execute·the·callback. | ||
| 137 | ·········*/ | 115 | ·········*/ |
| 138 | ········before?(asyncId:·number):·void; | 116 | ········before?(asyncId:·number):·void; |
| 139 | ········/** | 117 | ········/** |
| 118 | ·········*·The·[`after`·callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#afterasyncid). | ||
| 140 | ·········*·Called·immediately·after·the·callback·specified·in·`before`·is·completed. | ||
| 141 | ·········* | ||
| 142 | ·········*·If·an·uncaught·exception·occurs·during·execution·of·the·callback,·then·`after`·will·run·after·the·`'uncaughtException'`·event·is·emitted·or·a·`domain`'s·handler·runs. | ||
| 143 | ·········*·@param·asyncId·the·unique·identifier·assigned·to·the·resource·which·has·executed·the·callback. | ||
| 144 | ·········*/ | 119 | ·········*/ |
| 145 | ········after?(asyncId:·number):·void; | 120 | ········after?(asyncId:·number):·void; |
| 146 | ········/** | 121 | ········/** |
| 122 | ·········*·The·[`promiseResolve`·callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promiseresolveasyncid). | ||
| 147 | ·········*·Called·when·a·promise·has·resolve()·called.·This·may·not·be·in·the·same·execution·id | ||
| 148 | ·········*·as·the·promise·itself. | ||
| 149 | ·········*·@param·asyncId·the·unique·id·for·the·promise·that·was·resolve()d. | ||
| 150 | ·········*/ | 123 | ·········*/ |
| 151 | ········promiseResolve?(asyncId:·number):·void; | 124 | ········promiseResolve?(asyncId:·number):·void; |
| 152 | ········/** | 125 | ········/** |
| 126 | ·········*·The·[`destroy`·callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#destroyasyncid). | ||
| 153 | ·········*·Called·after·the·resource·corresponding·to·asyncId·is·destroyed | ||
| 154 | ·········*·@param·asyncId·a·unique·ID·for·the·async·resource | ||
| 155 | ·········*/ | 127 | ·········*/ |
| 156 | ········destroy?(asyncId:·number):·void; | 128 | ········destroy?(asyncId:·number):·void; |
| 129 | ········/** | ||
| 130 | ·········*·Whether·the·hook·should·track·`Promise`s.·Cannot·be·`false`·if | ||
| 131 | ·········*·`promiseResolve`·is·set. | ||
| 132 | ·········*·@default·true | ||
| 133 | ·········*/ | ||
| 134 | ········trackPromises?:·boolean·|·undefined; | ||
| 157 | ····} | 135 | ····} |
| 158 | ····interface·AsyncHook·{ | 136 | ····interface·AsyncHook·{ |
| 159 | ········/** | 137 | ········/** |
| 160 | ·········*·Enable·the·callbacks·for·a·given·AsyncHook·instance.·If·no·callbacks·are·provided·enabling·is·a·noop. | 138 | ·········*·Enable·the·callbacks·for·a·given·AsyncHook·instance.·If·no·callbacks·are·provided·enabling·is·a·noop. |
| 161 | ·········*/ | 139 | ·········*/ |
| 162 | ········enable():·this; | 140 | ········enable():·this; |
| 163 | ········/** | 141 | ········/** |
| Offset 170, 15 lines modified | Offset 148, 16 lines modified | ||
| 170 | ·····*·operation. | 148 | ·····*·operation. |
| 171 | ·····* | 149 | ·····* |
| 172 | ·····*·The·callbacks·`init()`/`before()`/`after()`/`destroy()`·are·called·for·the | 150 | ·····*·The·callbacks·`init()`/`before()`/`after()`/`destroy()`·are·called·for·the |
| 173 | ·····*·respective·asynchronous·event·during·a·resource's·lifetime. | 151 | ·····*·respective·asynchronous·event·during·a·resource's·lifetime. |
| 174 | ·····* | 152 | ·····* |
| 175 | ·····*·All·callbacks·are·optional.·For·example,·if·only·resource·cleanup·needs·to | 153 | ·····*·All·callbacks·are·optional.·For·example,·if·only·resource·cleanup·needs·to |
| 176 | ·····*·be·tracked,·then·only·the·`destroy`·callback·needs·to·be·passed.·The | 154 | ·····*·be·tracked,·then·only·the·`destroy`·callback·needs·to·be·passed.·The |
| 177 | ·····*·specifics·of·all·functions·that·can·be·passed·to·`callbacks`·is·in·the | 155 | ·····*·specifics·of·all·functions·that·can·be·passed·to·`callbacks`·is·in·the |
| 156 | ·····*·[Hook·Callbacks](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#hook-callbacks)·section. | ||
| 178 | ·····* | 157 | ·····* |
| 179 | ·····*·```js | 158 | ·····*·```js |
| 180 | ·····*·import·{·createHook·}·from·'node:async_hooks'; | 159 | ·····*·import·{·createHook·}·from·'node:async_hooks'; |
| 181 | ·····* | 160 | ·····* |
| 182 | ·····*·const·asyncHook·=·createHook({ | 161 | ·····*·const·asyncHook·=·createHook({ |
| 183 | ·····*···init(asyncId,·type,·triggerAsyncId,·resource)·{·}, | 162 | ·····*···init(asyncId,·type,·triggerAsyncId,·resource)·{·}, |
| 184 | ·····*···destroy(asyncId)·{·}, | 163 | ·····*···destroy(asyncId)·{·}, |
| Offset 198, 20 lines modified | Offset 177, 21 lines modified | ||
| 198 | ·····*···after(asyncId)·{·} | 177 | ·····*···after(asyncId)·{·} |
| Max diff block lines reached; 1204/6427 bytes (18.73%) of diff not shown. | |||
| Offset 170, 15 lines modified | Offset 170, 15 lines modified | ||
| 170 | ·············*·Returns·a·new·`Buffer`·which·is·the·result·of·concatenating·all·the·`Buffer`·instances·in·the·`list`·together. | 170 | ·············*·Returns·a·new·`Buffer`·which·is·the·result·of·concatenating·all·the·`Buffer`·instances·in·the·`list`·together. |
| 171 | ·············* | 171 | ·············* |
| 172 | ·············*·If·the·list·has·no·items,·or·if·the·`totalLength`·is·0,·then·a·new·zero-length·`Buffer`·is·returned. | 172 | ·············*·If·the·list·has·no·items,·or·if·the·`totalLength`·is·0,·then·a·new·zero-length·`Buffer`·is·returned. |
| 173 | ·············* | 173 | ·············* |
| 174 | ·············*·If·`totalLength`·is·not·provided,·it·is·calculated·from·the·`Buffer`·instances | 174 | ·············*·If·`totalLength`·is·not·provided,·it·is·calculated·from·the·`Buffer`·instances |
| 175 | ·············*·in·`list`·by·adding·their·lengths. | 175 | ·············*·in·`list`·by·adding·their·lengths. |
| 176 | ·············* | 176 | ·············* |
| 177 | ·············*·If·`totalLength`·is·provided,·it· | 177 | ·············*·If·`totalLength`·is·provided,·it·must·be·an·unsigned·integer.·If·the |
| 178 | ·············*·combined·length·of·the·`Buffer`s·in·`list`·exceeds·`totalLength`,·the·result·is | 178 | ·············*·combined·length·of·the·`Buffer`s·in·`list`·exceeds·`totalLength`,·the·result·is |
| 179 | ·············*·truncated·to·`totalLength`.·If·the·combined·length·of·the·`Buffer`s·in·`list`·is | 179 | ·············*·truncated·to·`totalLength`.·If·the·combined·length·of·the·`Buffer`s·in·`list`·is |
| 180 | ·············*·less·than·`totalLength`,·the·remaining·space·is·filled·with·zeros. | 180 | ·············*·less·than·`totalLength`,·the·remaining·space·is·filled·with·zeros. |
| 181 | ·············* | 181 | ·············* |
| 182 | ·············*·```js | 182 | ·············*·```js |
| 183 | ·············*·import·{·Buffer·}·from·'node:buffer'; | 183 | ·············*·import·{·Buffer·}·from·'node:buffer'; |
| 184 | ·············* | 184 | ·············* |
| Offset 1, 52 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·`Buffer`·objects·are·used·to·represent·a·fixed-length·sequence·of·bytes.·Many | ||
| 3 | ·*·Node.js·APIs·support·`Buffer`s. | ||
| 4 | ·* | ||
| 5 | ·*·The·`Buffer`·class·is·a·subclass·of·JavaScript's·[`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)·class·and | ||
| 6 | ·*·extends·it·with·methods·that·cover·additional·use·cases.·Node.js·APIs·accept | ||
| 7 | ·*·plain·[`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)·s·wherever·`Buffer`s·are·supported·as·well. | ||
| 8 | ·* | ||
| 9 | ·*·While·the·`Buffer`·class·is·available·within·the·global·scope,·it·is·still | ||
| 10 | ·*·recommended·to·explicitly·reference·it·via·an·import·or·require·statement. | ||
| 11 | ·* | ||
| 12 | ·*·```js | ||
| 13 | ·*·import·{·Buffer·}·from·'node:buffer'; | ||
| 14 | ·* | ||
| 15 | ·*·//·Creates·a·zero-filled·Buffer·of·length·10. | ||
| 16 | ·*·const·buf1·=·Buffer.alloc(10); | ||
| 17 | ·* | ||
| 18 | ·*·//·Creates·a·Buffer·of·length·10, | ||
| 19 | ·*·//·filled·with·bytes·which·all·have·the·value·`1`. | ||
| 20 | ·*·const·buf2·=·Buffer.alloc(10,·1); | ||
| 21 | ·* | ||
| 22 | ·*·//·Creates·an·uninitialized·buffer·of·length·10. | ||
| 23 | ·*·//·This·is·faster·than·calling·Buffer.alloc()·but·the·returned | ||
| 24 | ·*·//·Buffer·instance·might·contain·old·data·that·needs·to·be | ||
| 25 | ·*·//·overwritten·using·fill(),·write(),·or·other·functions·that·fill·the·Buffer's | ||
| 26 | ·*·//·contents. | ||
| 27 | ·*·const·buf3·=·Buffer.allocUnsafe(10); | ||
| 28 | ·* | ||
| 29 | ·*·//·Creates·a·Buffer·containing·the·bytes·[1,·2,·3]. | ||
| 30 | ·*·const·buf4·=·Buffer.from([1,·2,·3]); | ||
| 31 | ·* | ||
| 32 | ·*·//·Creates·a·Buffer·containing·the·bytes·[1,·1,·1,·1]·–·the·entries | ||
| 33 | ·*·//·are·all·truncated·using·`(value·&·255)`·to·fit·into·the·range·0–255. | ||
| 34 | ·*·const·buf5·=·Buffer.from([257,·257.5,·-255,·'1']); | ||
| 35 | ·* | ||
| 36 | ·*·//·Creates·a·Buffer·containing·the·UTF-8-encoded·bytes·for·the·string·'tést': | ||
| 37 | ·*·//·[0x74,·0xc3,·0xa9,·0x73,·0x74]·(in·hexadecimal·notation) | ||
| 38 | ·*·//·[116,·195,·169,·115,·116]·(in·decimal·notation) | ||
| 39 | ·*·const·buf6·=·Buffer.from('tést'); | ||
| 40 | ·* | ||
| 41 | ·*·//·Creates·a·Buffer·containing·the·Latin-1·bytes·[0x74,·0xe9,·0x73,·0x74]. | ||
| 42 | ·*·const·buf7·=·Buffer.from('tést',·'latin1'); | ||
| 43 | ·*·``` | ||
| 44 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/buffer.js) | ||
| 45 | ·*/ | ||
| 46 | declare·module·"node:buffer"·{ | 1 | declare·module·"node:buffer"·{ |
| 47 | ····import·{·ReadableStream·}·from·"node:stream/web"; | 2 | ····import·{·ReadableStream·}·from·"node:stream/web"; |
| 48 | ····/** | 3 | ····/** |
| 49 | ·····*·This·function·returns·`true`·if·`input`·contains·only·valid·UTF-8-encoded·data, | 4 | ·····*·This·function·returns·`true`·if·`input`·contains·only·valid·UTF-8-encoded·data, |
| 50 | ·····*·including·the·case·in·which·`input`·is·empty. | 5 | ·····*·including·the·case·in·which·`input`·is·empty. |
| 51 | ·····* | 6 | ·····* |
| 52 | ·····*·Throws·if·the·`input`·is·a·detached·array·buffer. | 7 | ·····*·Throws·if·the·`input`·is·a·detached·array·buffer. |
| Offset 1, 74 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:child_process`·module·provides·the·ability·to·spawn·subprocesses·in | ||
| 3 | ·*·a·manner·that·is·similar,·but·not·identical,·to·[`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html).·This·capability | ||
| 4 | ·*·is·primarily·provided·by·the·{@link·spawn}·function: | ||
| 5 | ·* | ||
| 6 | ·*·```js | ||
| 7 | ·*·import·{·spawn·}·from·'node:child_process'; | ||
| 8 | ·*·import·{·once·}·from·'node:events'; | ||
| 9 | ·*·const·ls·=·spawn('ls',·['-lh',·'/usr']); | ||
| 10 | ·* | ||
| 11 | ·*·ls.stdout.on('data',·(data)·=>·{ | ||
| 12 | ·*···console.log(`stdout:·${data}`); | ||
| 13 | ·*·}); | ||
| 14 | ·* | ||
| 15 | ·*·ls.stderr.on('data',·(data)·=>·{ | ||
| 16 | ·*···console.error(`stderr:·${data}`); | ||
| 17 | ·*·}); | ||
| 18 | ·* | ||
| 19 | ·*·const·[code]·=·await·once(ls,·'close'); | ||
| 20 | ·*·console.log(`child·process·exited·with·code·${code}`); | ||
| 21 | ·*·``` | ||
| 22 | ·* | ||
| 23 | ·*·By·default,·pipes·for·`stdin`,·`stdout`,·and·`stderr`·are·established·between | ||
| 24 | ·*·the·parent·Node.js·process·and·the·spawned·subprocess.·These·pipes·have | ||
| 25 | ·*·limited·(and·platform-specific)·capacity.·If·the·subprocess·writes·to | ||
| 26 | ·*·stdout·in·excess·of·that·limit·without·the·output·being·captured,·the | ||
| 27 | ·*·subprocess·blocks,·waiting·for·the·pipe·buffer·to·accept·more·data.·This·is | ||
| 28 | ·*·identical·to·the·behavior·of·pipes·in·the·shell.·Use·the·`{·stdio:·'ignore'·}`·option·if·the·output·will·not·be·consumed. | ||
| 29 | ·* | ||
| 30 | ·*·The·command·lookup·is·performed·using·the·`options.env.PATH`·environment | ||
| 31 | ·*·variable·if·`env`·is·in·the·`options`·object.·Otherwise,·`process.env.PATH`·is | ||
| 32 | ·*·used.·If·`options.env`·is·set·without·`PATH`,·lookup·on·Unix·is·performed | ||
| 33 | ·*·on·a·default·search·path·search·of·`/usr/bin:/bin`·(see·your·operating·system's | ||
| 34 | ·*·manual·for·execvpe/execvp),·on·Windows·the·current·processes·environment | ||
| 35 | ·*·variable·`PATH`·is·used. | ||
| 36 | ·* | ||
| 37 | ·*·On·Windows,·environment·variables·are·case-insensitive.·Node.js | ||
| 38 | ·*·lexicographically·sorts·the·`env`·keys·and·uses·the·first·one·that | ||
| 39 | ·*·case-insensitively·matches.·Only·first·(in·lexicographic·order)·entry·will·be | ||
| 40 | ·*·passed·to·the·subprocess.·This·might·lead·to·issues·on·Windows·when·passing | ||
| 41 | ·*·objects·to·the·`env`·option·that·have·multiple·variants·of·the·same·key,·such·as·`PATH`·and·`Path`. | ||
| 42 | ·* | ||
| 43 | ·*·The·{@link·spawn}·method·spawns·the·child·process·asynchronously, | ||
| 44 | ·*·without·blocking·the·Node.js·event·loop.·The·{@link·spawnSync}·function·provides·equivalent·functionality·in·a·synchronous·manner·that·blocks | ||
| 45 | ·*·the·event·loop·until·the·spawned·process·either·exits·or·is·terminated. | ||
| 46 | ·* | ||
| 47 | ·*·For·convenience,·the·`node:child_process`·module·provides·a·handful·of | ||
| 48 | ·*·synchronous·and·asynchronous·alternatives·to·{@link·spawn}·and·{@link·spawnSync}.·Each·of·these·alternatives·are·implemented·on | ||
| 49 | ·*·top·of·{@link·spawn}·or·{@link·spawnSync}. | ||
| 50 | ·* | ||
| 51 | ·*·*·{@link·exec}:·spawns·a·shell·and·runs·a·command·within·that | ||
| 52 | ·*·shell,·passing·the·`stdout`·and·`stderr`·to·a·callback·function·when | ||
| 53 | ·*·complete. | ||
| 54 | ·*·*·{@link·execFile}:·similar·to·{@link·exec}·except | ||
| 55 | ·*·that·it·spawns·the·command·directly·without·first·spawning·a·shell·by | ||
| 56 | ·*·default. | ||
| 57 | ·*·*·{@link·fork}:·spawns·a·new·Node.js·process·and·invokes·a | ||
| 58 | ·*·specified·module·with·an·IPC·communication·channel·established·that·allows | ||
| 59 | ·*·sending·messages·between·parent·and·child. | ||
| 60 | ·*·*·{@link·execSync}:·a·synchronous·version·of·{@link·exec}·that·will·block·the·Node.js·event·loop. | ||
| 61 | ·*·*·{@link·execFileSync}:·a·synchronous·version·of·{@link·execFile}·that·will·block·the·Node.js·event·loop. | ||
| 62 | ·* | ||
| 63 | ·*·For·certain·use·cases,·such·as·automating·shell·scripts,·the·`synchronous·counterparts`·may·be·more·convenient.·In·many·cases,·however, | ||
| 64 | ·*·the·synchronous·methods·can·have·significant·impact·on·performance·due·to | ||
| 65 | ·*·stalling·the·event·loop·while·spawned·processes·complete. | ||
| 66 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/child_process.js) | ||
| 67 | ·*/ | ||
| 68 | declare·module·"node:child_process"·{ | 1 | declare·module·"node:child_process"·{ |
| 69 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 70 | ····import·*·as·dgram·from·"node:dgram"; | 3 | ····import·*·as·dgram·from·"node:dgram"; |
| 71 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; | 4 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; |
| 72 | ····import·*·as·net·from·"node:net"; | 5 | ····import·*·as·net·from·"node:net"; |
| 73 | ····import·{·Readable,·Stream,·Writable·}·from·"node:stream"; | 6 | ····import·{·Readable,·Stream,·Writable·}·from·"node:stream"; |
| 74 | ····import·{·URL·}·from·"node:url"; | 7 | ····import·{·URL·}·from·"node:url"; |
| Offset 1, 61 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·Clusters·of·Node.js·processes·can·be·used·to·run·multiple·instances·of·Node.js | ||
| 3 | ·*·that·can·distribute·workloads·among·their·application·threads.·When·process·isolation | ||
| 4 | ·*·is·not·needed,·use·the·[`worker_threads`](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html) | ||
| 5 | ·*·module·instead,·which·allows·running·multiple·application·threads·within·a·single·Node.js·instance. | ||
| 6 | ·* | ||
| 7 | ·*·The·cluster·module·allows·easy·creation·of·child·processes·that·all·share | ||
| 8 | ·*·server·ports. | ||
| 9 | ·* | ||
| 10 | ·*·```js | ||
| 11 | ·*·import·cluster·from·'node:cluster'; | ||
| 12 | ·*·import·http·from·'node:http'; | ||
| 13 | ·*·import·{·availableParallelism·}·from·'node:os'; | ||
| 14 | ·*·import·process·from·'node:process'; | ||
| 15 | ·* | ||
| 16 | ·*·const·numCPUs·=·availableParallelism(); | ||
| 17 | ·* | ||
| 18 | ·*·if·(cluster.isPrimary)·{ | ||
| 19 | ·*···console.log(`Primary·${process.pid}·is·running`); | ||
| 20 | ·* | ||
| 21 | ·*···//·Fork·workers. | ||
| 22 | ·*···for·(let·i·=·0;·i·<·numCPUs;·i++)·{ | ||
| 23 | ·*·····cluster.fork(); | ||
| 24 | ·*···} | ||
| 25 | ·* | ||
| 26 | ·*···cluster.on('exit',·(worker,·code,·signal)·=>·{ | ||
| 27 | ·*·····console.log(`worker·${worker.process.pid}·died`); | ||
| 28 | ·*···}); | ||
| 29 | ·*·}·else·{ | ||
| 30 | ·*···//·Workers·can·share·any·TCP·connection | ||
| 31 | ·*···//·In·this·case·it·is·an·HTTP·server | ||
| 32 | ·*···http.createServer((req,·res)·=>·{ | ||
| 33 | ·*·····res.writeHead(200); | ||
| 34 | ·*·····res.end('hello·world\n'); | ||
| 35 | ·*···}).listen(8000); | ||
| 36 | ·* | ||
| 37 | ·*···console.log(`Worker·${process.pid}·started`); | ||
| 38 | ·*·} | ||
| 39 | ·*·``` | ||
| 40 | ·* | ||
| 41 | ·*·Running·Node.js·will·now·share·port·8000·between·the·workers: | ||
| 42 | ·* | ||
| 43 | ·*·```console | ||
| 44 | ·*·$·node·server.js | ||
| 45 | ·*·Primary·3596·is·running | ||
| 46 | ·*·Worker·4324·started | ||
| 47 | ·*·Worker·4520·started | ||
| 48 | ·*·Worker·6056·started | ||
| 49 | ·*·Worker·5644·started | ||
| 50 | ·*·``` | ||
| 51 | ·* | ||
| 52 | ·*·On·Windows,·it·is·not·yet·possible·to·set·up·a·named·pipe·server·in·a·worker. | ||
| 53 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/cluster.js) | ||
| 54 | ·*/ | ||
| 55 | declare·module·"node:cluster"·{ | 1 | declare·module·"node:cluster"·{ |
| 56 | ····import·*·as·child_process·from·"node:child_process"; | 2 | ····import·*·as·child_process·from·"node:child_process"; |
| 57 | ····import·{·EventEmitter,·InternalEventEmitter·}·from·"node:events"; | 3 | ····import·{·EventEmitter,·InternalEventEmitter·}·from·"node:events"; |
| 58 | ····class·Worker·implements·EventEmitter·{ | 4 | ····class·Worker·implements·EventEmitter·{ |
| 59 | ········constructor(options?:·cluster.WorkerOptions); | 5 | ········constructor(options?:·cluster.WorkerOptions); |
| 60 | ········/** | 6 | ········/** |
| 61 | ·········*·Each·new·worker·is·given·its·own·unique·id,·this·id·is·stored·in·the·`id`. | 7 | ·········*·Each·new·worker·is·given·its·own·unique·id,·this·id·is·stored·in·the·`id`. |
| Offset 1, 65 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:console`·module·provides·a·simple·debugging·console·that·is·similar·to | ||
| 3 | ·*·the·JavaScript·console·mechanism·provided·by·web·browsers. | ||
| 4 | ·* | ||
| 5 | ·*·The·module·exports·two·specific·components: | ||
| 6 | ·* | ||
| 7 | ·*·*·A·`Console`·class·with·methods·such·as·`console.log()`,·`console.error()`,·and·`console.warn()`·that·can·be·used·to·write·to·any·Node.js·stream. | ||
| 8 | ·*·*·A·global·`console`·instance·configured·to·write·to·[`process.stdout`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstdout)·and | ||
| 9 | ·*·[`process.stderr`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstderr).·The·global·`console`·can·be·used·without·importing·the·`node:console`·module. | ||
| 10 | ·* | ||
| 11 | ·*·_**Warning**_:·The·global·console·object's·methods·are·neither·consistently | ||
| 12 | ·*·synchronous·like·the·browser·APIs·they·resemble,·nor·are·they·consistently | ||
| 13 | ·*·asynchronous·like·all·other·Node.js·streams.·See·the·[`note·on·process·I/O`](https://nodejs.org/docs/latest-v25.x/api/process.html#a-note-on-process-io)·for | ||
| 14 | ·*·more·information. | ||
| 15 | ·* | ||
| 16 | ·*·Example·using·the·global·`console`: | ||
| 17 | ·* | ||
| 18 | ·*·```js | ||
| 19 | ·*·console.log('hello·world'); | ||
| 20 | ·*·//·Prints:·hello·world,·to·stdout | ||
| 21 | ·*·console.log('hello·%s',·'world'); | ||
| 22 | ·*·//·Prints:·hello·world,·to·stdout | ||
| 23 | ·*·console.error(new·Error('Whoops,·something·bad·happened')); | ||
| 24 | ·*·//·Prints·error·message·and·stack·trace·to·stderr: | ||
| 25 | ·*·//···Error:·Whoops,·something·bad·happened | ||
| 26 | ·*·//·····at·[eval]:5:15 | ||
| 27 | ·*·//·····at·Script.runInThisContext·(node:vm:132:18) | ||
| 28 | ·*·//·····at·Object.runInThisContext·(node:vm:309:38) | ||
| 29 | ·*·//·····at·node:internal/process/execution:77:19 | ||
| 30 | ·*·//·····at·[eval]-wrapper:6:22 | ||
| 31 | ·*·//·····at·evalScript·(node:internal/process/execution:76:60) | ||
| 32 | ·*·//·····at·node:internal/main/eval_string:23:3 | ||
| 33 | ·* | ||
| 34 | ·*·const·name·=·'Will·Robinson'; | ||
| 35 | ·*·console.warn(`Danger·${name}!·Danger!`); | ||
| 36 | ·*·//·Prints:·Danger·Will·Robinson!·Danger!,·to·stderr | ||
| 37 | ·*·``` | ||
| 38 | ·* | ||
| 39 | ·*·Example·using·the·`Console`·class: | ||
| 40 | ·* | ||
| 41 | ·*·```js | ||
| 42 | ·*·const·out·=·getStreamSomehow(); | ||
| 43 | ·*·const·err·=·getStreamSomehow(); | ||
| 44 | ·*·const·myConsole·=·new·console.Console(out,·err); | ||
| 45 | ·* | ||
| 46 | ·*·myConsole.log('hello·world'); | ||
| 47 | ·*·//·Prints:·hello·world,·to·out | ||
| 48 | ·*·myConsole.log('hello·%s',·'world'); | ||
| 49 | ·*·//·Prints:·hello·world,·to·out | ||
| 50 | ·*·myConsole.error(new·Error('Whoops,·something·bad·happened')); | ||
| 51 | ·*·//·Prints:·[Error:·Whoops,·something·bad·happened],·to·err | ||
| 52 | ·* | ||
| 53 | ·*·const·name·=·'Will·Robinson'; | ||
| 54 | ·*·myConsole.warn(`Danger·${name}!·Danger!`); | ||
| 55 | ·*·//·Prints:·Danger·Will·Robinson!·Danger!,·to·err | ||
| 56 | ·*·``` | ||
| 57 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/console.js) | ||
| 58 | ·*/ | ||
| 59 | declare·module·"node:console"·{ | 1 | declare·module·"node:console"·{ |
| 60 | ····import·{·InspectOptions·}·from·"node:util"; | 2 | ····import·{·InspectOptions·}·from·"node:util"; |
| 61 | ····namespace·console·{ | 3 | ····namespace·console·{ |
| 62 | ········interface·ConsoleOptions·{ | 4 | ········interface·ConsoleOptions·{ |
| 63 | ············stdout:·NodeJS.WritableStream; | 5 | ············stdout:·NodeJS.WritableStream; |
| 64 | ············stderr?:·NodeJS.WritableStream·|·undefined; | 6 | ············stderr?:·NodeJS.WritableStream·|·undefined; |
| 65 | ············/** | 7 | ············/** |
| Offset 1, 13 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·@deprecated·The·`node:constants`·module·is·deprecated.·When·requiring·access·to·constants | ||
| 3 | ·*·relevant·to·specific·Node.js·builtin·modules,·developers·should·instead·refer | ||
| 4 | ·*·to·the·`constants`·property·exposed·by·the·relevant·module.·For·instance, | ||
| 5 | ·*·`require('node:fs').constants`·and·`require('node:os').constants`. | ||
| 6 | ·*/ | ||
| 7 | declare·module·"node:constants"·{ | 1 | declare·module·"node:constants"·{ |
| 8 | ····const·constants: | 2 | ····const·constants: |
| 9 | ········&·typeof·import("node:os").constants.dlopen | 3 | ········&·typeof·import("node:os").constants.dlopen |
| 10 | ········&·typeof·import("node:os").constants.errno | 4 | ········&·typeof·import("node:os").constants.errno |
| 11 | ········&·typeof·import("node:os").constants.priority | 5 | ········&·typeof·import("node:os").constants.priority |
| 12 | ········&·typeof·import("node:os").constants.signals | 6 | ········&·typeof·import("node:os").constants.signals |
| 13 | ········&·typeof·import("node:fs").constants | 7 | ········&·typeof·import("node:fs").constants |
| Offset 1, 25 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:crypto`·module·provides·cryptographic·functionality·that·includes·a | ||
| 3 | ·*·set·of·wrappers·for·OpenSSL's·hash,·HMAC,·cipher,·decipher,·sign,·and·verify | ||
| 4 | ·*·functions. | ||
| 5 | ·* | ||
| 6 | ·*·```js | ||
| 7 | ·*·const·{·createHmac·}·=·await·import('node:crypto'); | ||
| 8 | ·* | ||
| 9 | ·*·const·secret·=·'abcdefg'; | ||
| 10 | ·*·const·hash·=·createHmac('sha256',·secret) | ||
| 11 | ·*················.update('I·love·cupcakes') | ||
| 12 | ·*················.digest('hex'); | ||
| 13 | ·*·console.log(hash); | ||
| 14 | ·*·//·Prints: | ||
| 15 | ·*·//···c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e | ||
| 16 | ·*·``` | ||
| 17 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/crypto.js) | ||
| 18 | ·*/ | ||
| 19 | declare·module·"node:crypto"·{ | 1 | declare·module·"node:crypto"·{ |
| 20 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 21 | ····import·*·as·stream·from·"node:stream"; | 3 | ····import·*·as·stream·from·"node:stream"; |
| 22 | ····import·{·PeerCertificate·}·from·"node:tls"; | 4 | ····import·{·PeerCertificate·}·from·"node:tls"; |
| 23 | ····/** | 5 | ····/** |
| 24 | ·····*·SPKAC·is·a·Certificate·Signing·Request·mechanism·originally·implemented·by | 6 | ·····*·SPKAC·is·a·Certificate·Signing·Request·mechanism·originally·implemented·by |
| 25 | ·····*·Netscape·and·was·specified·formally·as·part·of·HTML5's·`keygen`·element. | 7 | ·····*·Netscape·and·was·specified·formally·as·part·of·HTML5's·`keygen`·element. |
| Offset 1, 34 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:dgram`·module·provides·an·implementation·of·UDP·datagram·sockets. | ||
| 3 | ·* | ||
| 4 | ·*·```js | ||
| 5 | ·*·import·dgram·from·'node:dgram'; | ||
| 6 | ·* | ||
| 7 | ·*·const·server·=·dgram.createSocket('udp4'); | ||
| 8 | ·* | ||
| 9 | ·*·server.on('error',·(err)·=>·{ | ||
| 10 | ·*···console.error(`server·error:\n${err.stack}`); | ||
| 11 | ·*···server.close(); | ||
| 12 | ·*·}); | ||
| 13 | ·* | ||
| 14 | ·*·server.on('message',·(msg,·rinfo)·=>·{ | ||
| 15 | ·*···console.log(`server·got:·${msg}·from·${rinfo.address}:${rinfo.port}`); | ||
| 16 | ·*·}); | ||
| 17 | ·* | ||
| 18 | ·*·server.on('listening',·()·=>·{ | ||
| 19 | ·*···const·address·=·server.address(); | ||
| 20 | ·*···console.log(`server·listening·${address.address}:${address.port}`); | ||
| 21 | ·*·}); | ||
| 22 | ·* | ||
| 23 | ·*·server.bind(41234); | ||
| 24 | ·*·//·Prints:·server·listening·0.0.0.0:41234 | ||
| 25 | ·*·``` | ||
| 26 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/dgram.js) | ||
| 27 | ·*/ | ||
| 28 | declare·module·"node:dgram"·{ | 1 | declare·module·"node:dgram"·{ |
| 29 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 30 | ····import·*·as·dns·from·"node:dns"; | 3 | ····import·*·as·dns·from·"node:dns"; |
| 31 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; | 4 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; |
| 32 | ····import·{·AddressInfo,·BlockList·}·from·"node:net"; | 5 | ····import·{·AddressInfo,·BlockList·}·from·"node:net"; |
| 33 | ····interface·RemoteInfo·{ | 6 | ····interface·RemoteInfo·{ |
| 34 | ········address:·string; | 7 | ········address:·string; |
| Offset 1, 31 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:diagnostics_channel`·module·provides·an·API·to·create·named·channels | ||
| 3 | ·*·to·report·arbitrary·message·data·for·diagnostics·purposes. | ||
| 4 | ·* | ||
| 5 | ·*·It·can·be·accessed·using: | ||
| 6 | ·* | ||
| 7 | ·*·```js | ||
| 8 | ·*·import·diagnostics_channel·from·'node:diagnostics_channel'; | ||
| 9 | ·*·``` | ||
| 10 | ·* | ||
| 11 | ·*·It·is·intended·that·a·module·writer·wanting·to·report·diagnostics·messages | ||
| 12 | ·*·will·create·one·or·many·top-level·channels·to·report·messages·through. | ||
| 13 | ·*·Channels·may·also·be·acquired·at·runtime·but·it·is·not·encouraged | ||
| 14 | ·*·due·to·the·additional·overhead·of·doing·so.·Channels·may·be·exported·for | ||
| 15 | ·*·convenience,·but·as·long·as·the·name·is·known·it·can·be·acquired·anywhere. | ||
| 16 | ·* | ||
| 17 | ·*·If·you·intend·for·your·module·to·produce·diagnostics·data·for·others·to | ||
| 18 | ·*·consume·it·is·recommended·that·you·include·documentation·of·what·named | ||
| 19 | ·*·channels·are·used·along·with·the·shape·of·the·message·data.·Channel·names | ||
| 20 | ·*·should·generally·include·the·module·name·to·avoid·collisions·with·data·from | ||
| 21 | ·*·other·modules. | ||
| 22 | ·*·@since·v15.1.0,·v14.17.0 | ||
| 23 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/diagnostics_channel.js) | ||
| 24 | ·*/ | ||
| 25 | declare·module·"node:diagnostics_channel"·{ | 1 | declare·module·"node:diagnostics_channel"·{ |
| 26 | ····import·{·AsyncLocalStorage·}·from·"node:async_hooks"; | 2 | ····import·{·AsyncLocalStorage·}·from·"node:async_hooks"; |
| 27 | ····/** | 3 | ····/** |
| 28 | ·····*·Check·if·there·are·active·subscribers·to·the·named·channel.·This·is·helpful·if | 4 | ·····*·Check·if·there·are·active·subscribers·to·the·named·channel.·This·is·helpful·if |
| 29 | ·····*·the·message·you·want·to·send·might·be·expensive·to·prepare. | 5 | ·····*·the·message·you·want·to·send·might·be·expensive·to·prepare. |
| 30 | ·····* | 6 | ·····* |
| 31 | ·····*·This·API·is·optional·but·helpful·when·trying·to·publish·messages·from·very | 7 | ·····*·This·API·is·optional·but·helpful·when·trying·to·publish·messages·from·very |
| Offset 1, 13 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`dns.promises`·API·provides·an·alternative·set·of·asynchronous·DNS·methods | ||
| 3 | ·*·that·return·`Promise`·objects·rather·than·using·callbacks.·The·API·is·accessible | ||
| 4 | ·*·via·`import·{·promises·as·dnsPromises·}·from·'node:dns'`·or·`import·dnsPromises·from·'node:dns/promises'`. | ||
| 5 | ·*·@since·v10.6.0 | ||
| 6 | ·*/ | ||
| 7 | declare·module·"node:dns/promises"·{ | 1 | declare·module·"node:dns/promises"·{ |
| 8 | ····import·{ | 2 | ····import·{ |
| 9 | ········AnyRecord, | 3 | ········AnyRecord, |
| 10 | ········CaaRecord, | 4 | ········CaaRecord, |
| 11 | ········LookupAddress, | 5 | ········LookupAddress, |
| 12 | ········LookupAllOptions, | 6 | ········LookupAllOptions, |
| 13 | ········LookupOneOptions, | 7 | ········LookupOneOptions, |
| Offset 1, 53 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:dns`·module·enables·name·resolution.·For·example,·use·it·to·look·up·IP | ||
| 3 | ·*·addresses·of·host·names. | ||
| 4 | ·* | ||
| 5 | ·*·Although·named·for·the·[Domain·Name·System·(DNS)](https://en.wikipedia.org/wiki/Domain_Name_System),·it·does·not·always·use·the | ||
| 6 | ·*·DNS·protocol·for·lookups.·{@link·lookup}·uses·the·operating·system | ||
| 7 | ·*·facilities·to·perform·name·resolution.·It·may·not·need·to·perform·any·network | ||
| 8 | ·*·communication.·To·perform·name·resolution·the·way·other·applications·on·the·same | ||
| 9 | ·*·system·do,·use·{@link·lookup}. | ||
| 10 | ·* | ||
| 11 | ·*·```js | ||
| 12 | ·*·import·dns·from·'node:dns'; | ||
| 13 | ·* | ||
| 14 | ·*·dns.lookup('example.org',·(err,·address,·family)·=>·{ | ||
| 15 | ·*···console.log('address:·%j·family:·IPv%s',·address,·family); | ||
| 16 | ·*·}); | ||
| 17 | ·*·//·address:·"93.184.216.34"·family:·IPv4 | ||
| 18 | ·*·``` | ||
| 19 | ·* | ||
| 20 | ·*·All·other·functions·in·the·`node:dns`·module·connect·to·an·actual·DNS·server·to | ||
| 21 | ·*·perform·name·resolution.·They·will·always·use·the·network·to·perform·DNS | ||
| 22 | ·*·queries.·These·functions·do·not·use·the·same·set·of·configuration·files·used·by·{@link·lookup}·(e.g.·`/etc/hosts`).·Use·these·functions·to·always·perform | ||
| 23 | ·*·DNS·queries,·bypassing·other·name-resolution·facilities. | ||
| 24 | ·* | ||
| 25 | ·*·```js | ||
| 26 | ·*·import·dns·from·'node:dns'; | ||
| 27 | ·* | ||
| 28 | ·*·dns.resolve4('archive.org',·(err,·addresses)·=>·{ | ||
| 29 | ·*···if·(err)·throw·err; | ||
| 30 | ·* | ||
| 31 | ·*···console.log(`addresses:·${JSON.stringify(addresses)}`); | ||
| 32 | ·* | ||
| 33 | ·*···addresses.forEach((a)·=>·{ | ||
| 34 | ·*·····dns.reverse(a,·(err,·hostnames)·=>·{ | ||
| 35 | ·*·······if·(err)·{ | ||
| 36 | ·*·········throw·err; | ||
| 37 | ·*·······} | ||
| 38 | ·*·······console.log(`reverse·for·${a}:·${JSON.stringify(hostnames)}`); | ||
| 39 | ·*·····}); | ||
| 40 | ·*···}); | ||
| 41 | ·*·}); | ||
| 42 | ·*·``` | ||
| 43 | ·* | ||
| 44 | ·*·See·the·[Implementation·considerations·section](https://nodejs.org/docs/latest-v25.x/api/dns.html#implementation-considerations)·for·more·information. | ||
| 45 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/dns.js) | ||
| 46 | ·*/ | ||
| 47 | declare·module·"node:dns"·{ | 1 | declare·module·"node:dns"·{ |
| 48 | ····//·Supported·getaddrinfo·flags. | 2 | ····//·Supported·getaddrinfo·flags. |
| 49 | ····/** | 3 | ····/** |
| 50 | ·····*·Limits·returned·address·types·to·the·types·of·non-loopback·addresses·configured·on·the·system.·For·example,·IPv4·addresses·are | 4 | ·····*·Limits·returned·address·types·to·the·types·of·non-loopback·addresses·configured·on·the·system.·For·example,·IPv4·addresses·are |
| 51 | ·····*·only·returned·if·the·current·system·has·at·least·one·IPv4·address·configured. | 5 | ·····*·only·returned·if·the·current·system·has·at·least·one·IPv4·address·configured. |
| 52 | ·····*/ | 6 | ·····*/ |
| 53 | ····const·ADDRCONFIG:·number; | 7 | ····const·ADDRCONFIG:·number; |
| Offset 1, 23 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·**This·module·is·pending·deprecation.**·Once·a·replacement·API·has·been | ||
| 3 | ·*·finalized,·this·module·will·be·fully·deprecated.·Most·developers·should | ||
| 4 | ·*·**not**·have·cause·to·use·this·module.·Users·who·absolutely·must·have | ||
| 5 | ·*·the·functionality·that·domains·provide·may·rely·on·it·for·the·time·being | ||
| 6 | ·*·but·should·expect·to·have·to·migrate·to·a·different·solution | ||
| 7 | ·*·in·the·future. | ||
| 8 | ·* | ||
| 9 | ·*·Domains·provide·a·way·to·handle·multiple·different·IO·operations·as·a | ||
| 10 | ·*·single·group.·If·any·of·the·event·emitters·or·callbacks·registered·to·a | ||
| 11 | ·*·domain·emit·an·`'error'`·event,·or·throw·an·error,·then·the·domain·object | ||
| 12 | ·*·will·be·notified,·rather·than·losing·the·context·of·the·error·in·the·`process.on('uncaughtException')`·handler,·or·causing·the·program·to | ||
| 13 | ·*·exit·immediately·with·an·error·code. | ||
| 14 | ·*·@deprecated·Since·v1.4.2·-·Deprecated | ||
| 15 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/domain.js) | ||
| 16 | ·*/ | ||
| 17 | declare·module·"node:domain"·{ | 1 | declare·module·"node:domain"·{ |
| 18 | ····import·{·EventEmitter·}·from·"node:events"; | 2 | ····import·{·EventEmitter·}·from·"node:events"; |
| 19 | ····/** | 3 | ····/** |
| 20 | ·····*·The·`Domain`·class·encapsulates·the·functionality·of·routing·errors·and | 4 | ·····*·The·`Domain`·class·encapsulates·the·functionality·of·routing·errors·and |
| 21 | ·····*·uncaught·exceptions·to·the·active·`Domain`·object. | 5 | ·····*·uncaught·exceptions·to·the·active·`Domain`·object. |
| 22 | ·····* | 6 | ·····* |
| 23 | ·····*·To·handle·the·errors·that·it·catches,·listen·to·its·`'error'`·event. | 7 | ·····*·To·handle·the·errors·that·it·catches,·listen·to·its·`'error'`·event. |
| Offset 1, 43 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·Much·of·the·Node.js·core·API·is·built·around·an·idiomatic·asynchronous | ||
| 3 | ·*·event-driven·architecture·in·which·certain·kinds·of·objects·(called·"emitters") | ||
| 4 | ·*·emit·named·events·that·cause·`Function`·objects·("listeners")·to·be·called. | ||
| 5 | ·* | ||
| 6 | ·*·For·instance:·a·`net.Server`·object·emits·an·event·each·time·a·peer | ||
| 7 | ·*·connects·to·it;·a·`fs.ReadStream`·emits·an·event·when·the·file·is·opened; | ||
| 8 | ·*·a·`stream`·emits·an·event·whenever·data·is·available·to·be·read. | ||
| 9 | ·* | ||
| 10 | ·*·All·objects·that·emit·events·are·instances·of·the·`EventEmitter`·class.·These | ||
| 11 | ·*·objects·expose·an·`eventEmitter.on()`·function·that·allows·one·or·more | ||
| 12 | ·*·functions·to·be·attached·to·named·events·emitted·by·the·object.·Typically, | ||
| 13 | ·*·event·names·are·camel-cased·strings·but·any·valid·JavaScript·property·key | ||
| 14 | ·*·can·be·used. | ||
| 15 | ·* | ||
| 16 | ·*·When·the·`EventEmitter`·object·emits·an·event,·all·of·the·functions·attached | ||
| 17 | ·*·to·that·specific·event·are·called·_synchronously_.·Any·values·returned·by·the | ||
| 18 | ·*·called·listeners·are·_ignored_·and·discarded. | ||
| 19 | ·* | ||
| 20 | ·*·The·following·example·shows·a·simple·`EventEmitter`·instance·with·a·single | ||
| 21 | ·*·listener.·The·`eventEmitter.on()`·method·is·used·to·register·listeners,·while | ||
| 22 | ·*·the·`eventEmitter.emit()`·method·is·used·to·trigger·the·event. | ||
| 23 | ·* | ||
| 24 | ·*·```js | ||
| 25 | ·*·import·{·EventEmitter·}·from·'node:events'; | ||
| 26 | ·* | ||
| 27 | ·*·class·MyEmitter·extends·EventEmitter·{} | ||
| 28 | ·* | ||
| 29 | ·*·const·myEmitter·=·new·MyEmitter(); | ||
| 30 | ·*·myEmitter.on('event',·()·=>·{ | ||
| 31 | ·*···console.log('an·event·occurred!'); | ||
| 32 | ·*·}); | ||
| 33 | ·*·myEmitter.emit('event'); | ||
| 34 | ·*·``` | ||
| 35 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/events.js) | ||
| 36 | ·*/ | ||
| 37 | declare·module·"node:events"·{ | 1 | declare·module·"node:events"·{ |
| 38 | ····import·{·AsyncResource,·AsyncResourceOptions·}·from·"node:async_hooks"; | 2 | ····import·{·AsyncResource,·AsyncResourceOptions·}·from·"node:async_hooks"; |
| 39 | ····//·#region·Event·map·helpers | 3 | ····//·#region·Event·map·helpers |
| 40 | ····type·EventMap<T>·=·Record<keyof·T,·any[]>; | 4 | ····type·EventMap<T>·=·Record<keyof·T,·any[]>; |
| 41 | ····type·IfEventMap<Events·extends·EventMap<Events>,·True,·False>·=·{}·extends·Events·?·False·:·True; | 5 | ····type·IfEventMap<Events·extends·EventMap<Events>,·True,·False>·=·{}·extends·Events·?·False·:·True; |
| 42 | ····type·Args<Events·extends·EventMap<Events>,·EventName·extends·string·|·symbol>·=·IfEventMap< | 6 | ····type·Args<Events·extends·EventMap<Events>,·EventName·extends·string·|·symbol>·=·IfEventMap< |
| 43 | ········Events, | 7 | ········Events, |
| Offset 1, 17 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`fs/promises`·API·provides·asynchronous·file·system·methods·that·return | ||
| 3 | ·*·promises. | ||
| 4 | ·* | ||
| 5 | ·*·The·promise·APIs·use·the·underlying·Node.js·threadpool·to·perform·file | ||
| 6 | ·*·system·operations·off·the·event·loop·thread.·These·operations·are·not | ||
| 7 | ·*·synchronized·or·threadsafe.·Care·must·be·taken·when·performing·multiple | ||
| 8 | ·*·concurrent·modifications·on·the·same·file·or·data·corruption·may·occur. | ||
| 9 | ·*·@since·v10.0.0 | ||
| 10 | ·*/ | ||
| 11 | declare·module·"node:fs/promises"·{ | 1 | declare·module·"node:fs/promises"·{ |
| 12 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 13 | ····import·{·Abortable·}·from·"node:events"; | 3 | ····import·{·Abortable·}·from·"node:events"; |
| 14 | ····import·{·Interface·as·ReadlineInterface·}·from·"node:readline"; | 4 | ····import·{·Interface·as·ReadlineInterface·}·from·"node:readline"; |
| 15 | ····import·{ | 5 | ····import·{ |
| 16 | ········BigIntStats, | 6 | ········BigIntStats, |
| 17 | ········BigIntStatsFs, | 7 | ········BigIntStatsFs, |
| Offset 1, 27 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:fs`·module·enables·interacting·with·the·file·system·in·a | ||
| 3 | ·*·way·modeled·on·standard·POSIX·functions. | ||
| 4 | ·* | ||
| 5 | ·*·To·use·the·promise-based·APIs: | ||
| 6 | ·* | ||
| 7 | ·*·```js | ||
| 8 | ·*·import·*·as·fs·from·'node:fs/promises'; | ||
| 9 | ·*·``` | ||
| 10 | ·* | ||
| 11 | ·*·To·use·the·callback·and·sync·APIs: | ||
| 12 | ·* | ||
| 13 | ·*·```js | ||
| 14 | ·*·import·*·as·fs·from·'node:fs'; | ||
| 15 | ·*·``` | ||
| 16 | ·* | ||
| 17 | ·*·All·file·system·operations·have·synchronous,·callback,·and·promise-based | ||
| 18 | ·*·forms,·and·are·accessible·using·both·CommonJS·syntax·and·ES6·Modules·(ESM). | ||
| 19 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/fs.js) | ||
| 20 | ·*/ | ||
| 21 | declare·module·"node:fs"·{ | 1 | declare·module·"node:fs"·{ |
| 22 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 23 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; | 3 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; |
| 24 | ····import·{·FileHandle·}·from·"node:fs/promises"; | 4 | ····import·{·FileHandle·}·from·"node:fs/promises"; |
| 25 | ····import·*·as·stream·from·"node:stream"; | 5 | ····import·*·as·stream·from·"node:stream"; |
| 26 | ····import·{·URL·}·from·"node:url"; | 6 | ····import·{·URL·}·from·"node:url"; |
| 27 | ····/** | 7 | ····/** |
| Offset 1, 6085 lines modified | Offset 1, 5987 lines modified | ||
| 00000000:·2f2a·2a0a·202a·2054·6f20·7573·6520·7468··/**.·*·To·use·th | |||
| 00000010:·6520·4854·5450·2073·6572·7665·7220·616e··e·HTTP·server·an | |||
| 00000020:·6420·636c·6965·6e74·206f·6e65·206d·7573··d·client·one·mus | |||
| 00000030:·7420·696d·706f·7274·2074·6865·2060·6e6f··t·import·the·`no | |||
| 00000040:·6465·3a68·7474·7060·206d·6f64·756c·652e··de:http`·module. | |||
| 00000050:·0a20·2a0a·202a·2054·6865·2048·5454·5020··.·*.·*·The·HTTP· | |||
| 00000060:·696e·7465·7266·6163·6573·2069·6e20·4e6f··interfaces·in·No | |||
| 00000070:·6465·2e6a·7320·6172·6520·6465·7369·676e··de.js·are·design | |||
| 00000080:·6564·2074·6f20·7375·7070·6f72·7420·6d61··ed·to·support·ma | |||
| 00000090:·6e79·2066·6561·7475·7265·730a·202a·206f··ny·features.·*·o | |||
| 000000a0:·6620·7468·6520·7072·6f74·6f63·6f6c·2077··f·the·protocol·w | |||
| 000000b0:·6869·6368·2068·6176·6520·6265·656e·2074··hich·have·been·t | |||
| 000000c0:·7261·6469·7469·6f6e·616c·6c79·2064·6966··raditionally·dif | |||
| 000000d0:·6669·6375·6c74·2074·6f20·7573·652e·0a20··ficult·to·use..· | |||
| 000000e0:·2a20·496e·2070·6172·7469·6375·6c61·722c··*·In·particular, | |||
| 000000f0:·206c·6172·6765·2c20·706f·7373·6962·6c79···large,·possibly | |||
| 00000100:·2063·6875·6e6b·2d65·6e63·6f64·6564·2c20···chunk-encoded,· | |||
| 00000110:·6d65·7373·6167·6573·2e20·5468·6520·696e··messages.·The·in | |||
| 00000120:·7465·7266·6163·6520·6973·0a20·2a20·6361··terface·is.·*·ca | |||
| 00000130:·7265·6675·6c20·746f·206e·6576·6572·2062··reful·to·never·b | |||
| 00000140:·7566·6665·7220·656e·7469·7265·2072·6571··uffer·entire·req | |||
| 00000150:·7565·7374·7320·6f72·2072·6573·706f·6e73··uests·or·respons | |||
| 00000160:·6573·2c20·736f·2074·6865·0a20·2a20·7573··es,·so·the.·*·us | |||
| 00000170:·6572·2069·7320·6162·6c65·2074·6f20·7374··er·is·able·to·st | |||
| 00000180:·7265·616d·2064·6174·612e·0a20·2a0a·202a··ream·data..·*.·* | |||
| 00000190:·2048·5454·5020·6d65·7373·6167·6520·6865···HTTP·message·he | |||
| 000001a0:·6164·6572·7320·6172·6520·7265·7072·6573··aders·are·repres | |||
| 000001b0:·656e·7465·6420·6279·2061·6e20·6f62·6a65··ented·by·an·obje | |||
| 000001c0:·6374·206c·696b·6520·7468·6973·3a0a·202a··ct·like·this:.·* | |||
| 000001d0:·0a20·2a20·6060·606a·736f·6e0a·202a·207b··.·*·```json.·*·{ | |||
| 000001e0:·2022·636f·6e74·656e·742d·6c65·6e67·7468···"content-length | |||
| 000001f0:·223a·2022·3132·3322·2c0a·202a·2020·2022··":·"123",.·*···" | |||
| 00000200:·636f·6e74·656e·742d·7479·7065·223a·2022··content-type":·" | |||
| 00000210:·7465·7874·2f70·6c61·696e·222c·0a20·2a20··text/plain",.·*· | |||
| 00000220:·2020·2263·6f6e·6e65·6374·696f·6e22·3a20····"connection":· | |||
| 00000230:·226b·6565·702d·616c·6976·6522·2c0a·202a··"keep-alive",.·* | |||
| 00000240:·2020·2022·686f·7374·223a·2022·6578·616d·····"host":·"exam | |||
| 00000250:·706c·652e·636f·6d22·2c0a·202a·2020·2022··ple.com",.·*···" | |||
| 00000260:·6163·6365·7074·223a·2022·2a22·207d·0a20··accept":·"*"·}.· | |||
| 00000270:·2a20·6060·600a·202a·0a20·2a20·4b65·7973··*·```.·*.·*·Keys | |||
| 00000280:·2061·7265·206c·6f77·6572·6361·7365·642e···are·lowercased. | |||
| 00000290:·2056·616c·7565·7320·6172·6520·6e6f·7420···Values·are·not· | |||
| 000002a0:·6d6f·6469·6669·6564·2e0a·202a·0a20·2a20··modified..·*.·*· | |||
| 000002b0:·496e·206f·7264·6572·2074·6f20·7375·7070··In·order·to·supp | |||
| 000002c0:·6f72·7420·7468·6520·6675·6c6c·2073·7065··ort·the·full·spe | |||
| 000002d0:·6374·7275·6d20·6f66·2070·6f73·7369·626c··ctrum·of·possibl | |||
| 000002e0:·6520·4854·5450·2061·7070·6c69·6361·7469··e·HTTP·applicati | |||
| 000002f0:·6f6e·732c·2074·6865·204e·6f64·652e·6a73··ons,·the·Node.js | |||
| 00000300:·0a20·2a20·4854·5450·2041·5049·2069·7320··.·*·HTTP·API·is· | |||
| 00000310:·7665·7279·206c·6f77·2d6c·6576·656c·2e20··very·low-level.· | |||
| 00000320:·4974·2064·6561·6c73·2077·6974·6820·7374··It·deals·with·st | |||
| 00000330:·7265·616d·2068·616e·646c·696e·6720·616e··ream·handling·an | |||
| 00000340:·6420·6d65·7373·6167·650a·202a·2070·6172··d·message.·*·par | |||
| 00000350:·7369·6e67·206f·6e6c·792e·2049·7420·7061··sing·only.·It·pa | |||
| 00000360:·7273·6573·2061·206d·6573·7361·6765·2069··rses·a·message·i | |||
| 00000370:·6e74·6f20·6865·6164·6572·7320·616e·6420··nto·headers·and· | |||
| 00000380:·626f·6479·2062·7574·2069·7420·646f·6573··body·but·it·does | |||
| 00000390:·206e·6f74·0a20·2a20·7061·7273·6520·7468···not.·*·parse·th | |||
| 000003a0:·6520·6163·7475·616c·2068·6561·6465·7273··e·actual·headers | |||
| 000003b0:·206f·7220·7468·6520·626f·6479·2e0a·202a···or·the·body..·* | |||
| 000003c0:·0a20·2a20·5365·6520·606d·6573·7361·6765··.·*·See·`message | |||
| 000003d0:·2e68·6561·6465·7273·6020·666f·7220·6465··.headers`·for·de | |||
| 000003e0:·7461·696c·7320·6f6e·2068·6f77·2064·7570··tails·on·how·dup | |||
| 000003f0:·6c69·6361·7465·2068·6561·6465·7273·2061··licate·headers·a | |||
| 00000400:·7265·2068·616e·646c·6564·2e0a·202a·0a20··re·handled..·*.· | |||
| 00000410:·2a20·5468·6520·7261·7720·6865·6164·6572··*·The·raw·header | |||
| 00000420:·7320·6173·2074·6865·7920·7765·7265·2072··s·as·they·were·r | |||
| 00000430:·6563·6569·7665·6420·6172·6520·7265·7461··eceived·are·reta | |||
| 00000440:·696e·6564·2069·6e20·7468·6520·6072·6177··ined·in·the·`raw | |||
| 00000450:·4865·6164·6572·7360·2070·726f·7065·7274··Headers`·propert | |||
| 00000460:·792c·2077·6869·6368·2069·7320·616e·2061··y,·which·is·an·a | |||
| 00000470:·7272·6179·206f·6620·605b·6b65·792c·2076··rray·of·`[key,·v | |||
| 00000480:·616c·7565·2c20·6b65·7932·2c20·7661·6c75··alue,·key2,·valu | |||
| 00000490:·6532·2c20·2e2e·2e5d·602e·2046·6f72·0a20··e2,·...]`.·For.· | |||
| 000004a0:·2a20·6578·616d·706c·652c·2074·6865·2070··*·example,·the·p | |||
| 000004b0:·7265·7669·6f75·7320·6d65·7373·6167·6520··revious·message· | |||
| 000004c0:·6865·6164·6572·206f·626a·6563·7420·6d69··header·object·mi | |||
| 000004d0:·6768·7420·6861·7665·2061·2060·7261·7748··ght·have·a·`rawH | |||
| 000004e0:·6561·6465·7273·6020·6c69·7374·206c·696b··eaders`·list·lik | |||
| 000004f0:·6520·7468·6520·666f·6c6c·6f77·696e·673a··e·the·following: | |||
| 00000500:·0a20·2a0a·202a·2060·6060·6a73·0a20·2a20··.·*.·*·```js.·*· | |||
| 00000510:·5b20·2743·6f6e·5465·6e74·2d4c·656e·6774··[·'ConTent-Lengt | |||
| 00000520:·6827·2c20·2731·3233·3435·3627·2c0a·202a··h',·'123456',.·* | |||
| 00000530:·2020·2027·636f·6e74·656e·742d·4c45·4e47·····'content-LENG | |||
| 00000540:·5448·272c·2027·3132·3327·2c0a·202a·2020··TH',·'123',.·*·· | |||
| 00000550:·2027·636f·6e74·656e·742d·7479·7065·272c···'content-type', | |||
| 00000560:·2027·7465·7874·2f70·6c61·696e·272c·0a20···'text/plain',.· | |||
| 00000570:·2a20·2020·2743·4f4e·4e45·4354·494f·4e27··*···'CONNECTION' | |||
| 00000580:·2c20·276b·6565·702d·616c·6976·6527·2c0a··,·'keep-alive',. | |||
| 00000590:·202a·2020·2027·486f·7374·272c·2027·6578···*···'Host',·'ex | |||
| 000005a0:·616d·706c·652e·636f·6d27·2c0a·202a·2020··ample.com',.·*·· | |||
| 000005b0:·2027·6163·6365·7054·272c·2027·2a27·205d···'accepT',·'*'·] | |||
| 000005c0:·0a20·2a20·6060·600a·202a·2040·7365·6520··.·*·```.·*·@see· | |||
| 000005d0:·5b73·6f75·7263·655d·2868·7474·7073·3a2f··[source](https:/ | |||
| 000005e0:·2f67·6974·6875·622e·636f·6d2f·6e6f·6465··/github.com/node | |||
| 000005f0:·6a73·2f6e·6f64·652f·626c·6f62·2f76·3235··js/node/blob/v25 | |||
| 00000600:·2e78·2f6c·6962·2f68·7474·702e·6a73·290a··.x/lib/http.js). | |||
| 00000 | 00000000:·6465·636c·6172·6520·6d6f·6475·6c65·2022··declare·module·" | ||
| 00000 | 00000010:·6e6f·6465·3a68·7474·7022·207b·0a20·2020··node:http"·{.··· | ||
| Max diff block lines reached; 804039/832696 bytes (96.56%) of diff not shown. | |||
| Offset 1, 17 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:http2`·module·provides·an·implementation·of·the·[HTTP/2](https://tools.ietf.org/html/rfc7540)·protocol. | ||
| 3 | ·*·It·can·be·accessed·using: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·http2·from·'node:http2'; | ||
| 7 | ·*·``` | ||
| 8 | ·*·@since·v8.4.0 | ||
| 9 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/http2.js) | ||
| 10 | ·*/ | ||
| 11 | declare·module·"node:http2"·{ | 1 | declare·module·"node:http2"·{ |
| 12 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 13 | ····import·{·InternalEventEmitter·}·from·"node:events"; | 3 | ····import·{·InternalEventEmitter·}·from·"node:events"; |
| 14 | ····import·*·as·fs·from·"node:fs"; | 4 | ····import·*·as·fs·from·"node:fs"; |
| 15 | ····import·*·as·net·from·"node:net"; | 5 | ····import·*·as·net·from·"node:net"; |
| 16 | ····import·*·as·stream·from·"node:stream"; | 6 | ····import·*·as·stream·from·"node:stream"; |
| 17 | ····import·*·as·tls·from·"node:tls"; | 7 | ····import·*·as·tls·from·"node:tls"; |
| Offset 1, 12 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·HTTPS·is·the·HTTP·protocol·over·TLS/SSL.·In·Node.js·this·is·implemented·as·a | ||
| 3 | ·*·separate·module. | ||
| 4 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/https.js) | ||
| 5 | ·*/ | ||
| 6 | declare·module·"node:https"·{ | 1 | declare·module·"node:https"·{ |
| 7 | ····import·*·as·http·from·"node:http"; | 2 | ····import·*·as·http·from·"node:http"; |
| 8 | ····import·{·Duplex·}·from·"node:stream"; | 3 | ····import·{·Duplex·}·from·"node:stream"; |
| 9 | ····import·*·as·tls·from·"node:tls"; | 4 | ····import·*·as·tls·from·"node:tls"; |
| 10 | ····import·{·URL·}·from·"node:url"; | 5 | ····import·{·URL·}·from·"node:url"; |
| 11 | ····interface·ServerOptions< | 6 | ····interface·ServerOptions< |
| 12 | ········Request·extends·typeof·http.IncomingMessage·=·typeof·http.IncomingMessage, | 7 | ········Request·extends·typeof·http.IncomingMessage·=·typeof·http.IncomingMessage, |
| Offset 1, 13 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:inspector/promises`·module·provides·an·API·for·interacting·with·the·V8 | ||
| 3 | ·*·inspector. | ||
| 4 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/inspector/promises.js) | ||
| 5 | ·*·@since·v19.0.0 | ||
| 6 | ·*/ | ||
| 7 | declare·module·"node:inspector/promises"·{ | 1 | declare·module·"node:inspector/promises"·{ |
| 8 | ····import·{·EventEmitter·}·from·"node:events"; | 2 | ····import·{·EventEmitter·}·from·"node:events"; |
| 9 | ····export·{·close,·console,·NetworkResources,·open,·url,·waitForDebugger·}·from·"node:inspector"; | 3 | ····export·{·close,·console,·NetworkResources,·open,·url,·waitForDebugger·}·from·"node:inspector"; |
| 10 | ····/** | 4 | ····/** |
| 11 | ·····*·The·`inspector.Session`·is·used·for·dispatching·messages·to·the·V8·inspector | 5 | ·····*·The·`inspector.Session`·is·used·for·dispatching·messages·to·the·V8·inspector |
| 12 | ·····*·back-end·and·receiving·message·responses·and·notifications. | 6 | ·····*·back-end·and·receiving·message·responses·and·notifications. |
| 13 | ·····*·@since·v19.0.0 | 7 | ·····*·@since·v19.0.0 |
| Offset 1, 12 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:inspector`·module·provides·an·API·for·interacting·with·the·V8 | ||
| 3 | ·*·inspector. | ||
| 4 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/inspector.js) | ||
| 5 | ·*/ | ||
| 6 | declare·module·"node:inspector"·{ | 1 | declare·module·"node:inspector"·{ |
| 7 | ····import·{·EventEmitter·}·from·"node:events"; | 2 | ····import·{·EventEmitter·}·from·"node:events"; |
| 8 | ····/** | 3 | ····/** |
| 9 | ·····*·The·`inspector.Session`·is·used·for·dispatching·messages·to·the·V8·inspector | 4 | ·····*·The·`inspector.Session`·is·used·for·dispatching·messages·to·the·V8·inspector |
| 10 | ·····*·back-end·and·receiving·message·responses·and·notifications. | 5 | ·····*·back-end·and·receiving·message·responses·and·notifications. |
| 11 | ·····*/ | 6 | ·····*/ |
| 12 | ····class·Session·extends·EventEmitter·{ | 7 | ····class·Session·extends·EventEmitter·{ |
| Offset 1, 10 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·@since·v0.3.7 | ||
| 3 | ·*/ | ||
| 4 | declare·module·"node:module"·{ | 1 | declare·module·"node:module"·{ |
| 5 | ····import·{·URL·}·from·"node:url"; | 2 | ····import·{·URL·}·from·"node:url"; |
| 6 | ····class·Module·{ | 3 | ····class·Module·{ |
| 7 | ········constructor(id:·string,·parent?:·Module); | 4 | ········constructor(id:·string,·parent?:·Module); |
| 8 | ····} | 5 | ····} |
| 9 | ····interface·Module·extends·NodeJS.Module·{} | 6 | ····interface·Module·extends·NodeJS.Module·{} |
| 10 | ····namespace·Module·{ | 7 | ····namespace·Module·{ |
| Offset 1, 21 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·>·Stability:·2·-·Stable | ||
| 3 | ·* | ||
| 4 | ·*·The·`node:net`·module·provides·an·asynchronous·network·API·for·creating·stream-based | ||
| 5 | ·*·TCP·or·`IPC`·servers·({@link·createServer})·and·clients | ||
| 6 | ·*·({@link·createConnection}). | ||
| 7 | ·* | ||
| 8 | ·*·It·can·be·accessed·using: | ||
| 9 | ·* | ||
| 10 | ·*·```js | ||
| 11 | ·*·import·net·from·'node:net'; | ||
| 12 | ·*·``` | ||
| 13 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/net.js) | ||
| 14 | ·*/ | ||
| 15 | declare·module·"node:net"·{ | 1 | declare·module·"node:net"·{ |
| 16 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 17 | ····import·*·as·dns·from·"node:dns"; | 3 | ····import·*·as·dns·from·"node:dns"; |
| 18 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; | 4 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; |
| 19 | ····import·*·as·stream·from·"node:stream"; | 5 | ····import·*·as·stream·from·"node:stream"; |
| 20 | ····type·LookupFunction·=·( | 6 | ····type·LookupFunction·=·( |
| 21 | ········hostname:·string, | 7 | ········hostname:·string, |
| Offset 34, 14 lines modified | Offset 20, 15 lines modified | ||
| 34 | ········readable?:·boolean·|·undefined; | 20 | ········readable?:·boolean·|·undefined; |
| 35 | ········writable?:·boolean·|·undefined; | 21 | ········writable?:·boolean·|·undefined; |
| 36 | ········signal?:·AbortSignal·|·undefined; | 22 | ········signal?:·AbortSignal·|·undefined; |
| 37 | ········noDelay?:·boolean·|·undefined; | 23 | ········noDelay?:·boolean·|·undefined; |
| 38 | ········keepAlive?:·boolean·|·undefined; | 24 | ········keepAlive?:·boolean·|·undefined; |
| 39 | ········keepAliveInitialDelay?:·number·|·undefined; | 25 | ········keepAliveInitialDelay?:·number·|·undefined; |
| 40 | ········blockList?:·BlockList·|·undefined; | 26 | ········blockList?:·BlockList·|·undefined; |
| 27 | ········typeOfService?:·number·|·undefined; | ||
| 41 | ····} | 28 | ····} |
| 42 | ····interface·OnReadOpts·{ | 29 | ····interface·OnReadOpts·{ |
| 43 | ········buffer:·Uint8Array·|·(()·=>·Uint8Array); | 30 | ········buffer:·Uint8Array·|·(()·=>·Uint8Array); |
| 44 | ········/** | 31 | ········/** |
| 45 | ·········*·This·function·is·called·for·every·chunk·of·incoming·data. | 32 | ·········*·This·function·is·called·for·every·chunk·of·incoming·data. |
| 46 | ·········*·Two·arguments·are·passed·to·it:·the·number·of·bytes·written·to·`buffer`·and·a·reference·to·`buffer`. | 33 | ·········*·Two·arguments·are·passed·to·it:·the·number·of·bytes·written·to·`buffer`·and·a·reference·to·`buffer`. |
| 47 | ·········*·Return·`false`·from·this·function·to·implicitly·`pause()`·the·socket. | 34 | ·········*·Return·`false`·from·this·function·to·implicitly·`pause()`·the·socket. |
| Offset 228, 14 lines modified | Offset 215, 45 lines modified | ||
| 228 | ·········*·@since·v0.1.92 | 215 | ·········*·@since·v0.1.92 |
| 229 | ·········*·@param·[enable=false] | 216 | ·········*·@param·[enable=false] |
| 230 | ·········*·@param·[initialDelay=0] | 217 | ·········*·@param·[initialDelay=0] |
| 231 | ·········*·@return·The·socket·itself. | 218 | ·········*·@return·The·socket·itself. |
| 232 | ·········*/ | 219 | ·········*/ |
| 233 | ········setKeepAlive(enable?:·boolean,·initialDelay?:·number):·this; | 220 | ········setKeepAlive(enable?:·boolean,·initialDelay?:·number):·this; |
| 234 | ········/** | 221 | ········/** |
| 222 | ·········*·Returns·the·current·Type·of·Service·(TOS)·field·for·IPv4·packets·or·Traffic | ||
| 223 | ·········*·Class·for·IPv6·packets·for·this·socket. | ||
| 224 | ·········* | ||
| 225 | ·········*·`setTypeOfService()`·may·be·called·before·the·socket·is·connected;·the·value | ||
| 226 | ·········*·will·be·cached·and·applied·when·the·socket·establishes·a·connection. | ||
| 227 | ·········*·`getTypeOfService()`·will·return·the·currently·set·value·even·before·connection. | ||
| 228 | ·········* | ||
| 229 | ·········*·On·some·platforms·(e.g.,·Linux),·certain·TOS/ECN·bits·may·be·masked·or·ignored, | ||
| 230 | ·········*·and·behavior·can·differ·between·IPv4·and·IPv6·or·dual-stack·sockets.·Callers | ||
| 231 | ·········*·should·verify·platform-specific·semantics. | ||
| 232 | ·········*·@since·v25.6.0 | ||
| 233 | ·········*·@returns·The·current·TOS·value. | ||
| 234 | ·········*/ | ||
| 235 | ········getTypeOfService():·number; | ||
| 236 | ········/** | ||
| 237 | ·········*·Sets·the·Type·of·Service·(TOS)·field·for·IPv4·packets·or·Traffic·Class·for·IPv6 | ||
| 238 | ·········*·Packets·sent·from·this·socket.·This·can·be·used·to·prioritize·network·traffic. | ||
| 239 | ·········* | ||
| 240 | ·········*·`setTypeOfService()`·may·be·called·before·the·socket·is·connected;·the·value | ||
| 241 | ·········*·will·be·cached·and·applied·when·the·socket·establishes·a·connection. | ||
| 242 | ·········*·`getTypeOfService()`·will·return·the·currently·set·value·even·before·connection. | ||
| 243 | ·········* | ||
| 244 | ·········*·On·some·platforms·(e.g.,·Linux),·certain·TOS/ECN·bits·may·be·masked·or·ignored, | ||
| 245 | ·········*·and·behavior·can·differ·between·IPv4·and·IPv6·or·dual-stack·sockets.·Callers | ||
| 246 | ·········*·should·verify·platform-specific·semantics. | ||
| 247 | ·········*·@since·v25.6.0 | ||
| 248 | ·········*·@param·tos·The·TOS·value·to·set·(0-255). | ||
| 249 | ·········*·@returns·The·socket·itself. | ||
| 250 | ·········*/ | ||
| 251 | ········setTypeOfService(tos:·number):·this; | ||
| 252 | ········/** | ||
| 235 | ·········*·Returns·the·bound·`address`,·the·address·`family`·name·and·`port`·of·the | 253 | ·········*·Returns·the·bound·`address`,·the·address·`family`·name·and·`port`·of·the |
| 236 | ·········*·socket·as·reported·by·the·operating·system:`{·port:·12346,·family:·'IPv4',·address:·'127.0.0.1'·}` | 254 | ·········*·socket·as·reported·by·the·operating·system:`{·port:·12346,·family:·'IPv4',·address:·'127.0.0.1'·}` |
| 237 | ·········*·@since·v0.1.90 | 255 | ·········*·@since·v0.1.90 |
| 238 | ·········*/ | 256 | ·········*/ |
| 239 | ········address():·AddressInfo·|·{}; | 257 | ········address():·AddressInfo·|·{}; |
| 240 | ········/** | 258 | ········/** |
| 241 | ·········*·Calling·`unref()`·on·a·socket·will·allow·the·program·to·exit·if·this·is·the·only | 259 | ·········*·Calling·`unref()`·on·a·socket·will·allow·the·program·to·exit·if·this·is·the·only |
| Offset 1, 16 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:os`·module·provides·operating·system-related·utility·methods·and | ||
| 3 | ·*·properties.·It·can·be·accessed·using: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·os·from·'node:os'; | ||
| 7 | ·*·``` | ||
| 8 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/os.js) | ||
| 9 | ·*/ | ||
| 10 | declare·module·"node:os"·{ | 1 | declare·module·"node:os"·{ |
| 11 | ····import·{·NonSharedBuffer·}·from·"buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"buffer"; |
| 12 | ····interface·CpuInfo·{ | 3 | ····interface·CpuInfo·{ |
| 13 | ········model:·string; | 4 | ········model:·string; |
| 14 | ········speed:·number; | 5 | ········speed:·number; |
| 15 | ········times:·{ | 6 | ········times:·{ |
| 16 | ············/**·The·number·of·milliseconds·the·CPU·has·spent·in·user·mode.·*/ | 7 | ············/**·The·number·of·milliseconds·the·CPU·has·spent·in·user·mode.·*/ |
| Offset 118, 15 lines modified | Offset 118, 15 lines modified | ||
| 118 | ········{ | 118 | ········{ |
| 119 | ············"githubUsername":·"anonrig", | 119 | ············"githubUsername":·"anonrig", |
| 120 | ············"name":·"Yagiz·Nizipli", | 120 | ············"name":·"Yagiz·Nizipli", |
| 121 | ············"url":·"https://github.com/anonrig" | 121 | ············"url":·"https://github.com/anonrig" |
| 122 | ········} | 122 | ········} |
| 123 | ····], | 123 | ····], |
| 124 | ····"dependencies":·{ | 124 | ····"dependencies":·{ |
| 125 | ········"undici-types":·"~7.1 | 125 | ········"undici-types":·"~7.19.0" |
| 126 | ····}, | 126 | ····}, |
| 127 | ····"description":·"TypeScript·definitions·for·node", | 127 | ····"description":·"TypeScript·definitions·for·node", |
| 128 | ····"homepage":·"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | 128 | ····"homepage":·"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", |
| 129 | ····"license":·"MIT", | 129 | ····"license":·"MIT", |
| 130 | ····"main":·"", | 130 | ····"main":·"", |
| 131 | ····"name":·"@types/node", | 131 | ····"name":·"@types/node", |
| 132 | ····"peerDependencies":·{}, | 132 | ····"peerDependencies":·{}, |
| Offset 134, 22 lines modified | Offset 134, 22 lines modified | ||
| 134 | ········"directory":·"types/node", | 134 | ········"directory":·"types/node", |
| 135 | ········"type":·"git", | 135 | ········"type":·"git", |
| 136 | ········"url":·"https://github.com/DefinitelyTyped/DefinitelyTyped.git" | 136 | ········"url":·"https://github.com/DefinitelyTyped/DefinitelyTyped.git" |
| 137 | ····}, | 137 | ····}, |
| 138 | ····"scripts":·{}, | 138 | ····"scripts":·{}, |
| 139 | ····"typeScriptVersion":·"5.3", | 139 | ····"typeScriptVersion":·"5.3", |
| 140 | ····"types":·"index.d.ts", | 140 | ····"types":·"index.d.ts", |
| 141 | ····"typesPublisherContentHash":·" | 141 | ····"typesPublisherContentHash":·"753bd9272f1c86686cc2d1bb435a7f033157f700201f64f0319742347e1ca060", |
| 142 | ····"typesVersions":·{ | 142 | ····"typesVersions":·{ |
| 143 | ········"<=5.6":·{ | 143 | ········"<=5.6":·{ |
| 144 | ············"*":·[ | 144 | ············"*":·[ |
| 145 | ················"ts5.6/*" | 145 | ················"ts5.6/*" |
| 146 | ············] | 146 | ············] |
| 147 | ········}, | 147 | ········}, |
| 148 | ········"<=5.7":·{ | 148 | ········"<=5.7":·{ |
| 149 | ············"*":·[ | 149 | ············"*":·[ |
| 150 | ················"ts5.7/*" | 150 | ················"ts5.7/*" |
| 151 | ············] | 151 | ············] |
| 152 | ········} | 152 | ········} |
| 153 | ····}, | 153 | ····}, |
| 154 | ····"version":·"25. | 154 | ····"version":·"25.6.0" |
| 155 | } | 155 | } |
| Offset 1, 16 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:path`·module·provides·utilities·for·working·with·file·and·directory | ||
| 3 | ·*·paths.·It·can·be·accessed·using: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·path·from·'node:path'; | ||
| 7 | ·*·``` | ||
| 8 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/path.js) | ||
| 9 | ·*/ | ||
| 10 | declare·module·"node:path"·{ | 1 | declare·module·"node:path"·{ |
| 11 | ····namespace·path·{ | 2 | ····namespace·path·{ |
| 12 | ········/** | 3 | ········/** |
| 13 | ·········*·A·parsed·path·object·generated·by·path.parse()·or·consumed·by·path.format(). | 4 | ·········*·A·parsed·path·object·generated·by·path.parse()·or·consumed·by·path.format(). |
| 14 | ·········*/ | 5 | ·········*/ |
| 15 | ········interface·ParsedPath·{ | 6 | ········interface·ParsedPath·{ |
| 16 | ············/** | 7 | ············/** |
| Offset 1, 38 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·This·module·provides·an·implementation·of·a·subset·of·the·W3C·[Web·Performance·APIs](https://w3c.github.io/perf-timing-primer/)·as·well·as·additional·APIs·for | ||
| 3 | ·*·Node.js-specific·performance·measurements. | ||
| 4 | ·* | ||
| 5 | ·*·Node.js·supports·the·following·[Web·Performance·APIs](https://w3c.github.io/perf-timing-primer/): | ||
| 6 | ·* | ||
| 7 | ·*·*·[High·Resolution·Time](https://www.w3.org/TR/hr-time-2) | ||
| 8 | ·*·*·[Performance·Timeline](https://w3c.github.io/performance-timeline/) | ||
| 9 | ·*·*·[User·Timing](https://www.w3.org/TR/user-timing/) | ||
| 10 | ·*·*·[Resource·Timing](https://www.w3.org/TR/resource-timing-2/) | ||
| 11 | ·* | ||
| 12 | ·*·```js | ||
| 13 | ·*·import·{·PerformanceObserver,·performance·}·from·'node:perf_hooks'; | ||
| 14 | ·* | ||
| 15 | ·*·const·obs·=·new·PerformanceObserver((items)·=>·{ | ||
| 16 | ·*···console.log(items.getEntries()[0].duration); | ||
| 17 | ·*···performance.clearMarks(); | ||
| 18 | ·*·}); | ||
| 19 | ·*·obs.observe({·type:·'measure'·}); | ||
| 20 | ·*·performance.measure('Start·to·Now'); | ||
| 21 | ·* | ||
| 22 | ·*·performance.mark('A'); | ||
| 23 | ·*·doSomeLongRunningProcess(()·=>·{ | ||
| 24 | ·*···performance.measure('A·to·Now',·'A'); | ||
| 25 | ·* | ||
| 26 | ·*···performance.mark('B'); | ||
| 27 | ·*···performance.measure('A·to·B',·'A',·'B'); | ||
| 28 | ·*·}); | ||
| 29 | ·*·``` | ||
| 30 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/perf_hooks.js) | ||
| 31 | ·*/ | ||
| 32 | declare·module·"node:perf_hooks"·{ | 1 | declare·module·"node:perf_hooks"·{ |
| 33 | ····import·{·InternalEventTargetEventProperties·}·from·"node:events"; | 2 | ····import·{·InternalEventTargetEventProperties·}·from·"node:events"; |
| 34 | ····//·#region·web·types | 3 | ····//·#region·web·types |
| 35 | ····type·EntryType·= | 4 | ····type·EntryType·= |
| 36 | ········|·"dns"·//·Node.js·only | 5 | ········|·"dns"·//·Node.js·only |
| 37 | ········|·"function"·//·Node.js·only | 6 | ········|·"function"·//·Node.js·only |
| 38 | ········|·"gc"·//·Node.js·only | 7 | ········|·"gc"·//·Node.js·only |
| Offset 1, 35 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·**The·version·of·the·punycode·module·bundled·in·Node.js·is·being·deprecated.·**In·a·future·major·version·of·Node.js·this·module·will·be·removed.·Users | ||
| 3 | ·*·currently·depending·on·the·`punycode`·module·should·switch·to·using·the | ||
| 4 | ·*·userland-provided·[Punycode.js](https://github.com/bestiejs/punycode.js)·module·instead.·For·punycode-based·URL | ||
| 5 | ·*·encoding,·see·`url.domainToASCII`·or,·more·generally,·the·`WHATWG·URL·API`. | ||
| 6 | ·* | ||
| 7 | ·*·The·`punycode`·module·is·a·bundled·version·of·the·[Punycode.js](https://github.com/bestiejs/punycode.js)·module.·It | ||
| 8 | ·*·can·be·accessed·using: | ||
| 9 | ·* | ||
| 10 | ·*·```js | ||
| 11 | ·*·import·punycode·from·'node:punycode'; | ||
| 12 | ·*·``` | ||
| 13 | ·* | ||
| 14 | ·*·[Punycode](https://tools.ietf.org/html/rfc3492)·is·a·character·encoding·scheme·defined·by·RFC·3492·that·is | ||
| 15 | ·*·primarily·intended·for·use·in·Internationalized·Domain·Names.·Because·host | ||
| 16 | ·*·names·in·URLs·are·limited·to·ASCII·characters·only,·Domain·Names·that·contain | ||
| 17 | ·*·non-ASCII·characters·must·be·converted·into·ASCII·using·the·Punycode·scheme. | ||
| 18 | ·*·For·instance,·the·Japanese·character·that·translates·into·the·English·word,·`'example'`·is·`'例'`.·The·Internationalized·Domain·Name,·`'例.com'`·(equivalent | ||
| 19 | ·*·to·`'example.com'`)·is·represented·by·Punycode·as·the·ASCII·string·`'xn--fsq.com'`. | ||
| 20 | ·* | ||
| 21 | ·*·The·`punycode`·module·provides·a·simple·implementation·of·the·Punycode·standard. | ||
| 22 | ·* | ||
| 23 | ·*·The·`punycode`·module·is·a·third-party·dependency·used·by·Node.js·and | ||
| 24 | ·*·made·available·to·developers·as·a·convenience.·Fixes·or·other·modifications·to | ||
| 25 | ·*·the·module·must·be·directed·to·the·[Punycode.js](https://github.com/bestiejs/punycode.js)·project. | ||
| 26 | ·*·@deprecated | ||
| 27 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/punycode.js) | ||
| 28 | ·*/ | ||
| 29 | declare·module·"node:punycode"·{ | 1 | declare·module·"node:punycode"·{ |
| 30 | ····/** | 2 | ····/** |
| 31 | ·····*·The·`punycode.decode()`·method·converts·a·[Punycode](https://tools.ietf.org/html/rfc3492)·string·of·ASCII-only | 3 | ·····*·The·`punycode.decode()`·method·converts·a·[Punycode](https://tools.ietf.org/html/rfc3492)·string·of·ASCII-only |
| 32 | ·····*·characters·to·the·equivalent·string·of·Unicode·codepoints. | 4 | ·····*·characters·to·the·equivalent·string·of·Unicode·codepoints. |
| 33 | ·····* | 5 | ·····* |
| 34 | ·····*·```js | 6 | ·····*·```js |
| 35 | ·····*·punycode.decode('maana-pta');·//·'mañana' | 7 | ·····*·punycode.decode('maana-pta');·//·'mañana' |
| Offset 1, 20 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:querystring`·module·provides·utilities·for·parsing·and·formatting·URL | ||
| 3 | ·*·query·strings.·It·can·be·accessed·using: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·querystring·from·'node:querystring'; | ||
| 7 | ·*·``` | ||
| 8 | ·* | ||
| 9 | ·*·`querystring`·is·more·performant·than·`URLSearchParams`·but·is·not·a | ||
| 10 | ·*·standardized·API.·Use·`URLSearchParams`·when·performance·is·not·critical·or | ||
| 11 | ·*·when·compatibility·with·browser·code·is·desirable. | ||
| 12 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/querystring.js) | ||
| 13 | ·*/ | ||
| 14 | declare·module·"node:querystring"·{ | 1 | declare·module·"node:querystring"·{ |
| 15 | ····interface·StringifyOptions·{ | 2 | ····interface·StringifyOptions·{ |
| 16 | ········/** | 3 | ········/** |
| 17 | ·········*·The·function·to·use·when·converting·URL-unsafe·characters·to·percent-encoding·in·the·query·string. | 4 | ·········*·The·function·to·use·when·converting·URL-unsafe·characters·to·percent-encoding·in·the·query·string. |
| 18 | ·········*·@default·`querystring.escape()` | 5 | ·········*·@default·`querystring.escape()` |
| 19 | ·········*/ | 6 | ·········*/ |
| 20 | ········encodeURIComponent?:·((str:·string)·=>·string)·|·undefined; | 7 | ········encodeURIComponent?:·((str:·string)·=>·string)·|·undefined; |
| Offset 1, 20 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·'node:quic'·module·provides·an·implementation·of·the·QUIC·protocol. | ||
| 3 | ·*·To·access·it,·start·Node.js·with·the·`--experimental-quic`·option·and: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·quic·from·'node:quic'; | ||
| 7 | ·*·``` | ||
| 8 | ·* | ||
| 9 | ·*·The·module·is·only·available·under·the·`node:`·scheme. | ||
| 10 | ·*·@since·v23.8.0 | ||
| 11 | ·*·@experimental | ||
| 12 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/quic.js) | ||
| 13 | ·*/ | ||
| 14 | declare·module·"node:quic"·{ | 1 | declare·module·"node:quic"·{ |
| 15 | ····import·{·KeyObject,·webcrypto·}·from·"node:crypto"; | 2 | ····import·{·KeyObject,·webcrypto·}·from·"node:crypto"; |
| 16 | ····import·{·SocketAddress·}·from·"node:net"; | 3 | ····import·{·SocketAddress·}·from·"node:net"; |
| 17 | ····import·{·ReadableStream·}·from·"node:stream/web"; | 4 | ····import·{·ReadableStream·}·from·"node:stream/web"; |
| 18 | ····/** | 5 | ····/** |
| 19 | ·····*·@since·v23.8.0 | 6 | ·····*·@since·v23.8.0 |
| 20 | ·····*/ | 7 | ·····*/ |
| Offset 1, 10 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·@since·v17.0.0 | ||
| 3 | ·*/ | ||
| 4 | declare·module·"node:readline/promises"·{ | 1 | declare·module·"node:readline/promises"·{ |
| 5 | ····import·{·Abortable·}·from·"node:events"; | 2 | ····import·{·Abortable·}·from·"node:events"; |
| 6 | ····import·{ | 3 | ····import·{ |
| 7 | ········CompleterResult, | 4 | ········CompleterResult, |
| 8 | ········Direction, | 5 | ········Direction, |
| 9 | ········Interface·as·_Interface, | 6 | ········Interface·as·_Interface, |
| 10 | ········ReadLineOptions·as·_ReadLineOptions, | 7 | ········ReadLineOptions·as·_ReadLineOptions, |
| Offset 1, 42 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:readline`·module·provides·an·interface·for·reading·data·from·a·[Readable](https://nodejs.org/docs/latest-v25.x/api/stream.html#readable-streams)·stream | ||
| 3 | ·*·(such·as·[`process.stdin`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstdin))·one·line·at·a·time. | ||
| 4 | ·* | ||
| 5 | ·*·To·use·the·promise-based·APIs: | ||
| 6 | ·* | ||
| 7 | ·*·```js | ||
| 8 | ·*·import·*·as·readline·from·'node:readline/promises'; | ||
| 9 | ·*·``` | ||
| 10 | ·* | ||
| 11 | ·*·To·use·the·callback·and·sync·APIs: | ||
| 12 | ·* | ||
| 13 | ·*·```js | ||
| 14 | ·*·import·*·as·readline·from·'node:readline'; | ||
| 15 | ·*·``` | ||
| 16 | ·* | ||
| 17 | ·*·The·following·simple·example·illustrates·the·basic·use·of·the·`node:readline`·module. | ||
| 18 | ·* | ||
| 19 | ·*·```js | ||
| 20 | ·*·import·*·as·readline·from·'node:readline/promises'; | ||
| 21 | ·*·import·{·stdin·as·input,·stdout·as·output·}·from·'node:process'; | ||
| 22 | ·* | ||
| 23 | ·*·const·rl·=·readline.createInterface({·input,·output·}); | ||
| 24 | ·* | ||
| 25 | ·*·const·answer·=·await·rl.question('What·do·you·think·of·Node.js?·'); | ||
| 26 | ·* | ||
| 27 | ·*·console.log(`Thank·you·for·your·valuable·feedback:·${answer}`); | ||
| 28 | ·* | ||
| 29 | ·*·rl.close(); | ||
| 30 | ·*·``` | ||
| 31 | ·* | ||
| 32 | ·*·Once·this·code·is·invoked,·the·Node.js·application·will·not·terminate·until·the·`readline.Interface`·is·closed·because·the·interface·waits·for·data·to·be | ||
| 33 | ·*·received·on·the·`input`·stream. | ||
| 34 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/readline.js) | ||
| 35 | ·*/ | ||
| 36 | declare·module·"node:readline"·{ | 1 | declare·module·"node:readline"·{ |
| 37 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; | 2 | ····import·{·Abortable,·EventEmitter,·InternalEventEmitter·}·from·"node:events"; |
| 38 | ····interface·Key·{ | 3 | ····interface·Key·{ |
| 39 | ········sequence?:·string·|·undefined; | 4 | ········sequence?:·string·|·undefined; |
| 40 | ········name?:·string·|·undefined; | 5 | ········name?:·string·|·undefined; |
| 41 | ········ctrl?:·boolean·|·undefined; | 6 | ········ctrl?:·boolean·|·undefined; |
| 42 | ········meta?:·boolean·|·undefined; | 7 | ········meta?:·boolean·|·undefined; |
| Offset 1, 17 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:repl`·module·provides·a·Read-Eval-Print-Loop·(REPL)·implementation | ||
| 3 | ·*·that·is·available·both·as·a·standalone·program·or·includible·in·other | ||
| 4 | ·*·applications.·It·can·be·accessed·using: | ||
| 5 | ·* | ||
| 6 | ·*·```js | ||
| 7 | ·*·import·repl·from·'node:repl'; | ||
| 8 | ·*·``` | ||
| 9 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/repl.js) | ||
| 10 | ·*/ | ||
| 11 | declare·module·"node:repl"·{ | 1 | declare·module·"node:repl"·{ |
| 12 | ····import·{·AsyncCompleter,·Completer,·Interface,·InterfaceEventMap·}·from·"node:readline"; | 2 | ····import·{·AsyncCompleter,·Completer,·Interface,·InterfaceEventMap·}·from·"node:readline"; |
| 13 | ····import·{·InspectOptions·}·from·"node:util"; | 3 | ····import·{·InspectOptions·}·from·"node:util"; |
| 14 | ····import·{·Context·}·from·"node:vm"; | 4 | ····import·{·Context·}·from·"node:vm"; |
| 15 | ····interface·ReplOptions·{ | 5 | ····interface·ReplOptions·{ |
| 16 | ········/** | 6 | ········/** |
| 17 | ·········*·The·input·prompt·to·display. | 7 | ·········*·The·input·prompt·to·display. |
| Offset 1, 122 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·This·feature·allows·the·distribution·of·a·Node.js·application·conveniently·to·a | ||
| 3 | ·*·system·that·does·not·have·Node.js·installed. | ||
| 4 | ·* | ||
| 5 | ·*·Node.js·supports·the·creation·of·[single·executable·applications](https://github.com/nodejs/single-executable)·by·allowing | ||
| 6 | ·*·the·injection·of·a·blob·prepared·by·Node.js,·which·can·contain·a·bundled·script, | ||
| 7 | ·*·into·the·`node`·binary.·During·start·up,·the·program·checks·if·anything·has·been | ||
| 8 | ·*·injected.·If·the·blob·is·found,·it·executes·the·script·in·the·blob.·Otherwise | ||
| 9 | ·*·Node.js·operates·as·it·normally·does. | ||
| 10 | ·* | ||
| 11 | ·*·The·single·executable·application·feature·currently·only·supports·running·a | ||
| 12 | ·*·single·embedded·script·using·the·`CommonJS`·module·system. | ||
| 13 | ·* | ||
| 14 | ·*·Users·can·create·a·single·executable·application·from·their·bundled·script | ||
| 15 | ·*·with·the·`node`·binary·itself·and·any·tool·which·can·inject·resources·into·the | ||
| 16 | ·*·binary. | ||
| 17 | ·* | ||
| 18 | ·*·Here·are·the·steps·for·creating·a·single·executable·application·using·one·such | ||
| 19 | ·*·tool,·[postject](https://github.com/nodejs/postject): | ||
| 20 | ·* | ||
| 21 | ·*·1.·Create·a·JavaScript·file: | ||
| 22 | ·*·```bash | ||
| 23 | ·*·echo·'console.log(`Hello,·${process.argv[2]}!`);'·>·hello.js | ||
| 24 | ·*·``` | ||
| 25 | ·*·2.·Create·a·configuration·file·building·a·blob·that·can·be·injected·into·the | ||
| 26 | ·*·single·executable·application·(see·`Generating·single·executable·preparation·blobs`·for·details): | ||
| 27 | ·*·```bash | ||
| 28 | ·*·echo·'{·"main":·"hello.js",·"output":·"sea-prep.blob"·}'·>·sea-config.json | ||
| 29 | ·*·``` | ||
| 30 | ·*·3.·Generate·the·blob·to·be·injected: | ||
| 31 | ·*·```bash | ||
| 32 | ·*·node·--experimental-sea-config·sea-config.json | ||
| 33 | ·*·``` | ||
| 34 | ·*·4.·Create·a·copy·of·the·`node`·executable·and·name·it·according·to·your·needs: | ||
| 35 | ·*····*·On·systems·other·than·Windows: | ||
| 36 | ·*·```bash | ||
| 37 | ·*·cp·$(command·-v·node)·hello | ||
| 38 | ·*·``` | ||
| 39 | ·*····*·On·Windows: | ||
| 40 | ·*·```text | ||
| 41 | ·*·node·-e·"require('fs').copyFileSync(process.execPath,·'hello.exe')" | ||
| 42 | ·*·``` | ||
| 43 | ·*·The·`.exe`·extension·is·necessary. | ||
| 44 | ·*·5.·Remove·the·signature·of·the·binary·(macOS·and·Windows·only): | ||
| 45 | ·*····*·On·macOS: | ||
| 46 | ·*·```bash | ||
| 47 | ·*·codesign·--remove-signature·hello | ||
| 48 | ·*·``` | ||
| 49 | ·*····*·On·Windows·(optional): | ||
| 50 | ·*·[signtool](https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool)·can·be·used·from·the·installed·[Windows·SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/). | ||
| 51 | ·*·If·this·step·is | ||
| 52 | ·*·skipped,·ignore·any·signature-related·warning·from·postject. | ||
| 53 | ·*·```powershell | ||
| 54 | ·*·signtool·remove·/s·hello.exe | ||
| 55 | ·*·``` | ||
| 56 | ·*·6.·Inject·the·blob·into·the·copied·binary·by·running·`postject`·with | ||
| 57 | ·*·the·following·options: | ||
| 58 | ·*····*·`hello`·/·`hello.exe`·\-·The·name·of·the·copy·of·the·`node`·executable | ||
| 59 | ·*····created·in·step·4. | ||
| 60 | ·*····*·`NODE_SEA_BLOB`·\-·The·name·of·the·resource·/·note·/·section·in·the·binary | ||
| 61 | ·*····where·the·contents·of·the·blob·will·be·stored. | ||
| 62 | ·*····*·`sea-prep.blob`·\-·The·name·of·the·blob·created·in·step·1. | ||
| 63 | ·*····*·`--sentinel-fuse·NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2`·\-·The·[fuse](https://www.electronjs.org/docs/latest/tutorial/fuses)·used·by·the·Node.js·project·to·detect·if·a·file·has·been | ||
| 64 | ·*·injected. | ||
| 65 | ·*····*·`--macho-segment-name·NODE_SEA`·(only·needed·on·macOS)·-·The·name·of·the | ||
| 66 | ·*····segment·in·the·binary·where·the·contents·of·the·blob·will·be | ||
| 67 | ·*····stored. | ||
| 68 | ·*·To·summarize,·here·is·the·required·command·for·each·platform: | ||
| 69 | ·*····*·On·Linux: | ||
| 70 | ·*····```bash | ||
| 71 | ·*····npx·postject·hello·NODE_SEA_BLOB·sea-prep.blob·\ | ||
| 72 | ·*········--sentinel-fuse·NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 | ||
| 73 | ·*····``` | ||
| 74 | ·*····*·On·Windows·-·PowerShell: | ||
| 75 | ·*····```powershell | ||
| 76 | ·*····npx·postject·hello.exe·NODE_SEA_BLOB·sea-prep.blob·` | ||
| 77 | ·*········--sentinel-fuse·NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 | ||
| 78 | ·*····``` | ||
| 79 | ·*····*·On·Windows·-·Command·Prompt: | ||
| 80 | ·*····```text | ||
| 81 | ·*····npx·postject·hello.exe·NODE_SEA_BLOB·sea-prep.blob·^ | ||
| 82 | ·*········--sentinel-fuse·NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 | ||
| 83 | ·*····``` | ||
| 84 | ·*····*·On·macOS: | ||
| 85 | ·*····```bash | ||
| 86 | ·*····npx·postject·hello·NODE_SEA_BLOB·sea-prep.blob·\ | ||
| 87 | ·*········--sentinel-fuse·NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2·\ | ||
| 88 | ·*········--macho-segment-name·NODE_SEA | ||
| 89 | ·*····``` | ||
| 90 | ·*·7.·Sign·the·binary·(macOS·and·Windows·only): | ||
| 91 | ·*····*·On·macOS: | ||
| 92 | ·*·```bash | ||
| 93 | ·*·codesign·--sign·-·hello | ||
| 94 | ·*·``` | ||
| 95 | ·*····*·On·Windows·(optional): | ||
| 96 | ·*·A·certificate·needs·to·be·present·for·this·to·work.·However,·the·unsigned | ||
| 97 | ·*·binary·would·still·be·runnable. | ||
| 98 | ·*·```powershell | ||
| 99 | ·*·signtool·sign·/fd·SHA256·hello.exe | ||
| Max diff block lines reached; 190/4945 bytes (3.84%) of diff not shown. | |||
| Offset 1, 51 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:sqlite`·module·facilitates·working·with·SQLite·databases. | ||
| 3 | ·*·To·access·it: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·sqlite·from·'node:sqlite'; | ||
| 7 | ·*·``` | ||
| 8 | ·* | ||
| 9 | ·*·This·module·is·only·available·under·the·`node:`·scheme.·The·following·will·not | ||
| 10 | ·*·work: | ||
| 11 | ·* | ||
| 12 | ·*·```js | ||
| 13 | ·*·import·sqlite·from·'sqlite'; | ||
| 14 | ·*·``` | ||
| 15 | ·* | ||
| 16 | ·*·The·following·example·shows·the·basic·usage·of·the·`node:sqlite`·module·to·open | ||
| 17 | ·*·an·in-memory·database,·write·data·to·the·database,·and·then·read·the·data·back. | ||
| 18 | ·* | ||
| 19 | ·*·```js | ||
| 20 | ·*·import·{·DatabaseSync·}·from·'node:sqlite'; | ||
| 21 | ·*·const·database·=·new·DatabaseSync(':memory:'); | ||
| 22 | ·* | ||
| 23 | ·*·//·Execute·SQL·statements·from·strings. | ||
| 24 | ·*·database.exec(` | ||
| 25 | ·*···CREATE·TABLE·data( | ||
| 26 | ·*·····key·INTEGER·PRIMARY·KEY, | ||
| 27 | ·*·····value·TEXT | ||
| 28 | ·*···)·STRICT | ||
| 29 | ·*·`); | ||
| 30 | ·*·//·Create·a·prepared·statement·to·insert·data·into·the·database. | ||
| 31 | ·*·const·insert·=·database.prepare('INSERT·INTO·data·(key,·value)·VALUES·(?,·?)'); | ||
| 32 | ·*·//·Execute·the·prepared·statement·with·bound·values. | ||
| 33 | ·*·insert.run(1,·'hello'); | ||
| 34 | ·*·insert.run(2,·'world'); | ||
| 35 | ·*·//·Create·a·prepared·statement·to·read·data·from·the·database. | ||
| 36 | ·*·const·query·=·database.prepare('SELECT·*·FROM·data·ORDER·BY·key'); | ||
| 37 | ·*·//·Execute·the·prepared·statement·and·log·the·result·set. | ||
| 38 | ·*·console.log(query.all()); | ||
| 39 | ·*·//·Prints:·[·{·key:·1,·value:·'hello'·},·{·key:·2,·value:·'world'·}·] | ||
| 40 | ·*·``` | ||
| 41 | ·*·@since·v22.5.0 | ||
| 42 | ·*·@experimental | ||
| 43 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/sqlite.js) | ||
| 44 | ·*/ | ||
| 45 | declare·module·"node:sqlite"·{ | 1 | declare·module·"node:sqlite"·{ |
| 46 | ····import·{·PathLike·}·from·"node:fs"; | 2 | ····import·{·PathLike·}·from·"node:fs"; |
| 47 | ····type·SQLInputValue·=·null·|·number·|·bigint·|·string·|·NodeJS.ArrayBufferView; | 3 | ····type·SQLInputValue·=·null·|·number·|·bigint·|·string·|·NodeJS.ArrayBufferView; |
| 48 | ····type·SQLOutputValue·=·null·|·number·|·bigint·|·string·|·NodeJS.NonSharedUint8Array; | 4 | ····type·SQLOutputValue·=·null·|·number·|·bigint·|·string·|·NodeJS.NonSharedUint8Array; |
| 49 | ····interface·DatabaseSyncOptions·{ | 5 | ····interface·DatabaseSyncOptions·{ |
| 50 | ········/** | 6 | ········/** |
| 51 | ·········*·If·`true`,·the·database·is·opened·by·the·constructor.·When | 7 | ·········*·If·`true`,·the·database·is·opened·by·the·constructor.·When |
| Offset 1, 37 lines modified | Offset 1, 113 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·utility·consumer·functions·provide·common·options·for·consuming | ||
| 3 | ·*·streams. | ||
| 4 | ·*·@since·v16.7.0 | ||
| 5 | ·*/ | ||
| 6 | declare·module·"node:stream/consumers"·{ | 1 | declare·module·"node:stream/consumers"·{ |
| 7 | ····import·{·Blob,·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·Blob,·NonSharedBuffer·}·from·"node:buffer"; |
| 8 | ····import·{·ReadableStream·}·from·"node:stream/web"; | 3 | ····import·{·ReadableStream·}·from·"node:stream/web"; |
| 9 | ····/** | 4 | ····/** |
| 5 | ·····*·```js | ||
| 6 | ·····*·import·{·arrayBuffer·}·from·'node:stream/consumers'; | ||
| 7 | ·····*·import·{·Readable·}·from·'node:stream'; | ||
| 8 | ·····*·import·{·TextEncoder·}·from·'node:util'; | ||
| 9 | ·····* | ||
| 10 | ·····*·const·encoder·=·new·TextEncoder(); | ||
| 11 | ·····*·const·dataArray·=·encoder.encode('hello·world·from·consumers!'); | ||
| 12 | ·····* | ||
| 13 | ·····*·const·readable·=·Readable.from(dataArray); | ||
| 14 | ·····*·const·data·=·await·arrayBuffer(readable); | ||
| 15 | ·····*·console.log(`from·readable:·${data.byteLength}`); | ||
| 16 | ·····*·//·Prints:·from·readable:·76 | ||
| 17 | ·····*·``` | ||
| 10 | ·····*·@since·v16.7.0 | 18 | ·····*·@since·v16.7.0 |
| 11 | ·····*·@returns·Fulfills·with·an·`ArrayBuffer`·containing·the·full·contents·of·the·stream. | 19 | ·····*·@returns·Fulfills·with·an·`ArrayBuffer`·containing·the·full·contents·of·the·stream. |
| 12 | ·····*/ | 20 | ·····*/ |
| 13 | ····function·arrayBuffer(stream:·ReadableStream·|·NodeJS.ReadableStream·|·AsyncIterable<any>):·Promise<ArrayBuffer>; | 21 | ····function·arrayBuffer(stream:·ReadableStream·|·NodeJS.ReadableStream·|·AsyncIterable<any>):·Promise<ArrayBuffer>; |
| 14 | ····/** | 22 | ····/** |
| 23 | ·····*·```js | ||
| 24 | ·····*·import·{·blob·}·from·'node:stream/consumers'; | ||
| 25 | ·····* | ||
| 26 | ·····*·const·dataBlob·=·new·Blob(['hello·world·from·consumers!']); | ||
| 27 | ·····* | ||
| 28 | ·····*·const·readable·=·dataBlob.stream(); | ||
| 29 | ·····*·const·data·=·await·blob(readable); | ||
| 30 | ·····*·console.log(`from·readable:·${data.size}`); | ||
| 31 | ·····*·//·Prints:·from·readable:·27 | ||
| 32 | ·····*·``` | ||
| 15 | ·····*·@since·v16.7.0 | 33 | ·····*·@since·v16.7.0 |
| 16 | ·····*·@returns·Fulfills·with·a·`Blob`·containing·the·full·contents·of·the·stream. | 34 | ·····*·@returns·Fulfills·with·a·`Blob`·containing·the·full·contents·of·the·stream. |
| 17 | ·····*/ | 35 | ·····*/ |
| 18 | ····function·blob(stream:·ReadableStream·|·NodeJS.ReadableStream·|·AsyncIterable<any>):·Promise<Blob>; | 36 | ····function·blob(stream:·ReadableStream·|·NodeJS.ReadableStream·|·AsyncIterable<any>):·Promise<Blob>; |
| 19 | ····/** | 37 | ····/** |
| 38 | ·····*·```js | ||
| 39 | ·····*·import·{·buffer·}·from·'node:stream/consumers'; | ||
| 40 | ·····*·import·{·Readable·}·from·'node:stream'; | ||
| 41 | ·····*·import·{·Buffer·}·from·'node:buffer'; | ||
| 42 | ·····* | ||
| 43 | ·····*·const·dataBuffer·=·Buffer.from('hello·world·from·consumers!'); | ||
| 44 | ·····* | ||
| 45 | ·····*·const·readable·=·Readable.from(dataBuffer); | ||
| 46 | ·····*·const·data·=·await·buffer(readable); | ||
| 47 | ·····*·console.log(`from·readable:·${data.length}`); | ||
| 48 | ·····*·//·Prints:·from·readable:·27 | ||
| 49 | ·····*·``` | ||
| 20 | ·····*·@since·v16.7.0 | 50 | ·····*·@since·v16.7.0 |
| 21 | ·····*·@returns·Fulfills·with·a·`Buffer`·containing·the·full·contents·of·the·stream. | 51 | ·····*·@returns·Fulfills·with·a·`Buffer`·containing·the·full·contents·of·the·stream. |
| 22 | ·····*/ | 52 | ·····*/ |
| 23 | ····function·buffer(stream:·ReadableStream·|·NodeJS.ReadableStream·|·AsyncIterable<any>):·Promise<NonSharedBuffer>; | 53 | ····function·buffer(stream:·ReadableStream·|·NodeJS.ReadableStream·|·AsyncIterable<any>):·Promise<NonSharedBuffer>; |
| 24 | ····/** | 54 | ····/** |
| 55 | ·····*·```js | ||
| 56 | ·····*·import·{·bytes·}·from·'node:stream/consumers'; | ||
| 57 | ·····*·import·{·Readable·}·from·'node:stream'; | ||
| 58 | ·····*·import·{·Buffer·}·from·'node:buffer'; | ||
| 59 | ·····* | ||
| 60 | ·····*·const·dataBuffer·=·Buffer.from('hello·world·from·consumers!'); | ||
| 61 | ·····* | ||
| 62 | ·····*·const·readable·=·Readable.from(dataBuffer); | ||
| 63 | ·····*·const·data·=·await·bytes(readable); | ||
| 64 | ·····*·console.log(`from·readable:·${data.length}`); | ||
| 65 | ·····*·//·Prints:·from·readable:·27 | ||
| 66 | ·····*·``` | ||
| 67 | ·····*·@since·v25.6.0 | ||
| 68 | ·····*·@returns·Fulfills·with·a·`Uint8Array`·containing·the·full·contents·of·the·stream. | ||
| 69 | ·····*/ | ||
| 70 | ····function·bytes( | ||
| 71 | ········stream:·ReadableStream·|·NodeJS.ReadableStream·|·AsyncIterable<any>, | ||
| 72 | ····):·Promise<NodeJS.NonSharedUint8Array>; | ||
| 73 | ····/** | ||
| 74 | ·····*·```js | ||
| 75 | ·····*·import·{·json·}·from·'node:stream/consumers'; | ||
| 76 | ·····*·import·{·Readable·}·from·'node:stream'; | ||
| 77 | ·····* | ||
| 78 | ·····*·const·items·=·Array.from( | ||
| 79 | ·····*···{ | ||
| 80 | ·····*·····length:·100, | ||
| 81 | ·····*···}, | ||
| 82 | ·····*···()·=>·({ | ||
| 83 | ·····*·····message:·'hello·world·from·consumers!', | ||
| 84 | ·····*···}), | ||
| 85 | ·····*·); | ||
| 86 | ·····* | ||
| 87 | ·····*·const·readable·=·Readable.from(JSON.stringify(items)); | ||
| 88 | ·····*·const·data·=·await·json(readable); | ||
| 89 | ·····*·console.log(`from·readable:·${data.length}`); | ||
| 90 | ·····*·//·Prints:·from·readable:·100 | ||
| 91 | ·····*·``` | ||
| 25 | ·····*·@since·v16.7.0 | 92 | ·····*·@since·v16.7.0 |
| 26 | ·····*·@returns·Fulfills·with·the·contents·of·the·stream·parsed·as·a | 93 | ·····*·@returns·Fulfills·with·the·contents·of·the·stream·parsed·as·a |
| 27 | ·····*·UTF-8·encoded·string·that·is·then·passed·through·`JSON.parse()`. | 94 | ·····*·UTF-8·encoded·string·that·is·then·passed·through·`JSON.parse()`. |
| Max diff block lines reached; 771/4516 bytes (17.07%) of diff not shown. | |||
| Offset 1, 26 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·A·stream·is·an·abstract·interface·for·working·with·streaming·data·in·Node.js. | ||
| 3 | ·*·The·`node:stream`·module·provides·an·API·for·implementing·the·stream·interface. | ||
| 4 | ·* | ||
| 5 | ·*·There·are·many·stream·objects·provided·by·Node.js.·For·instance,·a·[request·to·an·HTTP·server](https://nodejs.org/docs/latest-v25.x/api/http.html#class-httpincomingmessage) | ||
| 6 | ·*·and·[`process.stdout`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstdout)·are·both·stream·instances. | ||
| 7 | ·* | ||
| 8 | ·*·Streams·can·be·readable,·writable,·or·both.·All·streams·are·instances·of·[`EventEmitter`](https://nodejs.org/docs/latest-v25.x/api/events.html#class-eventemitter). | ||
| 9 | ·* | ||
| 10 | ·*·To·access·the·`node:stream`·module: | ||
| 11 | ·* | ||
| 12 | ·*·```js | ||
| 13 | ·*·import·stream·from·'node:stream'; | ||
| 14 | ·*·``` | ||
| 15 | ·* | ||
| 16 | ·*·The·`node:stream`·module·is·useful·for·creating·new·types·of·stream·instances. | ||
| 17 | ·*·It·is·usually·not·necessary·to·use·the·`node:stream`·module·to·consume·streams. | ||
| 18 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/stream.js) | ||
| 19 | ·*/ | ||
| 20 | declare·module·"node:stream"·{ | 1 | declare·module·"node:stream"·{ |
| 21 | ····import·{·Blob·}·from·"node:buffer"; | 2 | ····import·{·Blob·}·from·"node:buffer"; |
| 22 | ····import·{·Abortable,·EventEmitter·}·from·"node:events"; | 3 | ····import·{·Abortable,·EventEmitter·}·from·"node:events"; |
| 23 | ····import·*·as·promises·from·"node:stream/promises"; | 4 | ····import·*·as·promises·from·"node:stream/promises"; |
| 24 | ····import·*·as·web·from·"node:stream/web"; | 5 | ····import·*·as·web·from·"node:stream/web"; |
| 25 | ····class·Stream·extends·EventEmitter·{ | 6 | ····class·Stream·extends·EventEmitter·{ |
| 26 | ········/** | 7 | ········/** |
| Offset 1, 47 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:string_decoder`·module·provides·an·API·for·decoding·`Buffer`·objects | ||
| 3 | ·*·into·strings·in·a·manner·that·preserves·encoded·multi-byte·UTF-8·and·UTF-16 | ||
| 4 | ·*·characters.·It·can·be·accessed·using: | ||
| 5 | ·* | ||
| 6 | ·*·```js | ||
| 7 | ·*·import·{·StringDecoder·}·from·'node:string_decoder'; | ||
| 8 | ·*·``` | ||
| 9 | ·* | ||
| 10 | ·*·The·following·example·shows·the·basic·use·of·the·`StringDecoder`·class. | ||
| 11 | ·* | ||
| 12 | ·*·```js | ||
| 13 | ·*·import·{·StringDecoder·}·from·'node:string_decoder'; | ||
| 14 | ·*·const·decoder·=·new·StringDecoder('utf8'); | ||
| 15 | ·* | ||
| 16 | ·*·const·cent·=·Buffer.from([0xC2,·0xA2]); | ||
| 17 | ·*·console.log(decoder.write(cent));·//·Prints:·¢ | ||
| 18 | ·* | ||
| 19 | ·*·const·euro·=·Buffer.from([0xE2,·0x82,·0xAC]); | ||
| 20 | ·*·console.log(decoder.write(euro));·//·Prints:·€ | ||
| 21 | ·*·``` | ||
| 22 | ·* | ||
| 23 | ·*·When·a·`Buffer`·instance·is·written·to·the·`StringDecoder`·instance,·an | ||
| 24 | ·*·internal·buffer·is·used·to·ensure·that·the·decoded·string·does·not·contain | ||
| 25 | ·*·any·incomplete·multibyte·characters.·These·are·held·in·the·buffer·until·the | ||
| 26 | ·*·next·call·to·`stringDecoder.write()`·or·until·`stringDecoder.end()`·is·called. | ||
| 27 | ·* | ||
| 28 | ·*·In·the·following·example,·the·three·UTF-8·encoded·bytes·of·the·European·Euro | ||
| 29 | ·*·symbol·(`€`)·are·written·over·three·separate·operations: | ||
| 30 | ·* | ||
| 31 | ·*·```js | ||
| 32 | ·*·import·{·StringDecoder·}·from·'node:string_decoder'; | ||
| 33 | ·*·const·decoder·=·new·StringDecoder('utf8'); | ||
| 34 | ·* | ||
| 35 | ·*·decoder.write(Buffer.from([0xE2])); | ||
| 36 | ·*·decoder.write(Buffer.from([0x82])); | ||
| 37 | ·*·console.log(decoder.end(Buffer.from([0xAC])));·//·Prints:·€ | ||
| 38 | ·*·``` | ||
| 39 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/string_decoder.js) | ||
| 40 | ·*/ | ||
| 41 | declare·module·"node:string_decoder"·{ | 1 | declare·module·"node:string_decoder"·{ |
| 42 | ····class·StringDecoder·{ | 2 | ····class·StringDecoder·{ |
| 43 | ········constructor(encoding?:·BufferEncoding); | 3 | ········constructor(encoding?:·BufferEncoding); |
| 44 | ········/** | 4 | ········/** |
| 45 | ·········*·Returns·a·decoded·string,·ensuring·that·any·incomplete·multibyte·characters·at | 5 | ·········*·Returns·a·decoded·string,·ensuring·that·any·incomplete·multibyte·characters·at |
| 46 | ·········*·the·end·of·the·`Buffer`,·or·`TypedArray`,·or·`DataView`·are·omitted·from·the | 6 | ·········*·the·end·of·the·`Buffer`,·or·`TypedArray`,·or·`DataView`·are·omitted·from·the |
| 47 | ·········*·returned·string·and·stored·in·an·internal·buffer·for·the·next·call·to·`stringDecoder.write()`·or·`stringDecoder.end()`. | 7 | ·········*·returned·string·and·stored·in·an·internal·buffer·for·the·next·call·to·`stringDecoder.write()`·or·`stringDecoder.end()`. |
| Offset 1, 1 lines modified | Offset 1, 1 lines modified | ||
| 1 | u | 1 | us-ascii |
| Offset 1, 45 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:test`·module·supports·passing·`--test-reporter` | ||
| 3 | ·*·flags·for·the·test·runner·to·use·a·specific·reporter. | ||
| 4 | ·* | ||
| 5 | ·*·The·following·built-reporters·are·supported: | ||
| 6 | ·* | ||
| 7 | ·*·*·`spec` | ||
| 8 | ·*···The·`spec`·reporter·outputs·the·test·results·in·a·human-readable·format.·This | ||
| 9 | ·*···is·the·default·reporter. | ||
| 10 | ·* | ||
| 11 | ·*·*·`tap` | ||
| 12 | ·*···The·`tap`·reporter·outputs·the·test·results·in·the·[TAP](https://testanything.org/)·format. | ||
| 13 | ·* | ||
| 14 | ·*·*·`dot` | ||
| 15 | ·*···The·`dot`·reporter·outputs·the·test·results·in·a·compact·format, | ||
| 16 | ·*···where·each·passing·test·is·represented·by·a·`.`, | ||
| 17 | ·*···and·each·failing·test·is·represented·by·a·`X`. | ||
| 18 | ·* | ||
| 19 | ·*·*·`junit` | ||
| 20 | ·*···The·junit·reporter·outputs·test·results·in·a·jUnit·XML·format | ||
| 21 | ·* | ||
| 22 | ·*·*·`lcov` | ||
| 23 | ·*···The·`lcov`·reporter·outputs·test·coverage·when·used·with·the | ||
| 24 | ·*···`--experimental-test-coverage`·flag. | ||
| 25 | ·* | ||
| 26 | ·*·The·exact·output·of·these·reporters·is·subject·to·change·between·versions·of | ||
| 27 | ·*·Node.js,·and·should·not·be·relied·on·programmatically.·If·programmatic·access | ||
| 28 | ·*·to·the·test·runner's·output·is·required,·use·the·events·emitted·by·the | ||
| 29 | ·*·`TestsStream`. | ||
| 30 | ·* | ||
| 31 | ·*·The·reporters·are·available·via·the·`node:test/reporters`·module: | ||
| 32 | ·* | ||
| 33 | ·*·```js | ||
| 34 | ·*·import·{·tap,·spec,·dot,·junit,·lcov·}·from·'node:test/reporters'; | ||
| 35 | ·*·``` | ||
| 36 | ·*·@since·v19.9.0,·v18.17.0 | ||
| 37 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/test/reporters.js) | ||
| 38 | ·*/ | ||
| 39 | declare·module·"node:test/reporters"·{ | 1 | declare·module·"node:test/reporters"·{ |
| 40 | ····import·{·Transform,·TransformOptions·}·from·"node:stream"; | 2 | ····import·{·Transform,·TransformOptions·}·from·"node:stream"; |
| 41 | ····import·{·EventData·}·from·"node:test"; | 3 | ····import·{·EventData·}·from·"node:test"; |
| 42 | ····type·TestEvent·= | 4 | ····type·TestEvent·= |
| 43 | ········|·{·type:·"test:coverage";·data:·EventData.TestCoverage·} | 5 | ········|·{·type:·"test:coverage";·data:·EventData.TestCoverage·} |
| 44 | ········|·{·type:·"test:complete";·data:·EventData.TestComplete·} | 6 | ········|·{·type:·"test:complete";·data:·EventData.TestComplete·} |
| 45 | ········|·{·type:·"test:dequeue";·data:·EventData.TestDequeue·} | 7 | ········|·{·type:·"test:dequeue";·data:·EventData.TestDequeue·} |
| Offset 1, 87 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:test`·module·facilitates·the·creation·of·JavaScript·tests. | ||
| 3 | ·*·To·access·it: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·test·from·'node:test'; | ||
| 7 | ·*·``` | ||
| 8 | ·* | ||
| 9 | ·*·This·module·is·only·available·under·the·`node:`·scheme.·The·following·will·not | ||
| 10 | ·*·work: | ||
| 11 | ·* | ||
| 12 | ·*·```js | ||
| 13 | ·*·import·test·from·'node:test'; | ||
| 14 | ·*·``` | ||
| 15 | ·* | ||
| 16 | ·*·Tests·created·via·the·`test`·module·consist·of·a·single·function·that·is | ||
| 17 | ·*·processed·in·one·of·three·ways: | ||
| 18 | ·* | ||
| 19 | ·*·1.·A·synchronous·function·that·is·considered·failing·if·it·throws·an·exception, | ||
| 20 | ·*·and·is·considered·passing·otherwise. | ||
| 21 | ·*·2.·A·function·that·returns·a·`Promise`·that·is·considered·failing·if·the·`Promise`·rejects,·and·is·considered·passing·if·the·`Promise`·fulfills. | ||
| 22 | ·*·3.·A·function·that·receives·a·callback·function.·If·the·callback·receives·any | ||
| 23 | ·*·truthy·value·as·its·first·argument,·the·test·is·considered·failing.·If·a | ||
| 24 | ·*·falsy·value·is·passed·as·the·first·argument·to·the·callback,·the·test·is | ||
| 25 | ·*·considered·passing.·If·the·test·function·receives·a·callback·function·and | ||
| 26 | ·*·also·returns·a·`Promise`,·the·test·will·fail. | ||
| 27 | ·* | ||
| 28 | ·*·The·following·example·illustrates·how·tests·are·written·using·the·`test`·module. | ||
| 29 | ·* | ||
| 30 | ·*·```js | ||
| 31 | ·*·test('synchronous·passing·test',·(t)·=>·{ | ||
| 32 | ·*···//·This·test·passes·because·it·does·not·throw·an·exception. | ||
| 33 | ·*···assert.strictEqual(1,·1); | ||
| 34 | ·*·}); | ||
| 35 | ·* | ||
| 36 | ·*·test('synchronous·failing·test',·(t)·=>·{ | ||
| 37 | ·*···//·This·test·fails·because·it·throws·an·exception. | ||
| 38 | ·*···assert.strictEqual(1,·2); | ||
| 39 | ·*·}); | ||
| 40 | ·* | ||
| 41 | ·*·test('asynchronous·passing·test',·async·(t)·=>·{ | ||
| 42 | ·*···//·This·test·passes·because·the·Promise·returned·by·the·async | ||
| 43 | ·*···//·function·is·settled·and·not·rejected. | ||
| 44 | ·*···assert.strictEqual(1,·1); | ||
| 45 | ·*·}); | ||
| 46 | ·* | ||
| 47 | ·*·test('asynchronous·failing·test',·async·(t)·=>·{ | ||
| 48 | ·*···//·This·test·fails·because·the·Promise·returned·by·the·async | ||
| 49 | ·*···//·function·is·rejected. | ||
| 50 | ·*···assert.strictEqual(1,·2); | ||
| 51 | ·*·}); | ||
| 52 | ·* | ||
| 53 | ·*·test('failing·test·using·Promises',·(t)·=>·{ | ||
| 54 | ·*···//·Promises·can·be·used·directly·as·well. | ||
| 55 | ·*···return·new·Promise((resolve,·reject)·=>·{ | ||
| 56 | ·*·····setImmediate(()·=>·{ | ||
| 57 | ·*·······reject(new·Error('this·will·cause·the·test·to·fail')); | ||
| 58 | ·*·····}); | ||
| 59 | ·*···}); | ||
| 60 | ·*·}); | ||
| 61 | ·* | ||
| 62 | ·*·test('callback·passing·test',·(t,·done)·=>·{ | ||
| 63 | ·*···//·done()·is·the·callback·function.·When·the·setImmediate()·runs,·it·invokes | ||
| 64 | ·*···//·done()·with·no·arguments. | ||
| 65 | ·*···setImmediate(done); | ||
| 66 | ·*·}); | ||
| 67 | ·* | ||
| 68 | ·*·test('callback·failing·test',·(t,·done)·=>·{ | ||
| 69 | ·*···//·When·the·setImmediate()·runs,·done()·is·invoked·with·an·Error·object·and | ||
| 70 | ·*···//·the·test·fails. | ||
| 71 | ·*···setImmediate(()·=>·{ | ||
| 72 | ·*·····done(new·Error('callback·failure')); | ||
| 73 | ·*···}); | ||
| 74 | ·*·}); | ||
| 75 | ·*·``` | ||
| 76 | ·* | ||
| 77 | ·*·If·any·tests·fail,·the·process·exit·code·is·set·to·`1`. | ||
| 78 | ·*·@since·v18.0.0,·v16.17.0 | ||
| 79 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/test.js) | ||
| 80 | ·*/ | ||
| 81 | declare·module·"node:test"·{ | 1 | declare·module·"node:test"·{ |
| 82 | ····import·{·AssertMethodNames·}·from·"node:assert"; | 2 | ····import·{·AssertMethodNames·}·from·"node:assert"; |
| 83 | ····import·{·Readable,·ReadableEventMap·}·from·"node:stream"; | 3 | ····import·{·Readable,·ReadableEventMap·}·from·"node:stream"; |
| 84 | ····import·{·TestEvent·}·from·"node:test/reporters"; | 4 | ····import·{·TestEvent·}·from·"node:test/reporters"; |
| 85 | ····import·{·URL·}·from·"node:url"; | 5 | ····import·{·URL·}·from·"node:url"; |
| 86 | ····import·TestFn·=·test.TestFn; | 6 | ····import·TestFn·=·test.TestFn; |
| 87 | ····import·TestOptions·=·test.TestOptions; | 7 | ····import·TestOptions·=·test.TestOptions; |
| Offset 405, 14 lines modified | Offset 325, 21 lines modified | ||
| 405 | ············/** | 325 | ············/** |
| 406 | ·············*·Require·a·minimum·percent·of·covered·functions.·If·code | 326 | ·············*·Require·a·minimum·percent·of·covered·functions.·If·code |
| 407 | ·············*·coverage·does·not·reach·the·threshold·specified,·the·process·will·exit·with·code·`1`. | 327 | ·············*·coverage·does·not·reach·the·threshold·specified,·the·process·will·exit·with·code·`1`. |
| 408 | ·············*·@since·v22.10.0 | 328 | ·············*·@since·v22.10.0 |
| 409 | ·············*·@default·0 | 329 | ·············*·@default·0 |
| 410 | ·············*/ | 330 | ·············*/ |
| 411 | ············functionCoverage?:·number·|·undefined; | 331 | ············functionCoverage?:·number·|·undefined; |
| 332 | ············/** | ||
| 333 | ·············*·Specify·environment·variables·to·be·passed·along·to·the·test·process. | ||
| 334 | ·············*·This·options·is·not·compatible·with·`isolation='none'`.·These·variables·will·override | ||
| 335 | ·············*·those·from·the·main·process,·and·are·not·merged·with·`process.env`. | ||
| Max diff block lines reached; 356/4208 bytes (8.46%) of diff not shown. | |||
| Offset 1, 22 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`timers/promises`·API·provides·an·alternative·set·of·timer·functions | ||
| 3 | ·*·that·return·`Promise`·objects.·The·API·is·accessible·via | ||
| 4 | ·*·`require('node:timers/promises')`. | ||
| 5 | ·* | ||
| 6 | ·*·```js | ||
| 7 | ·*·import·{ | ||
| 8 | ·*···setTimeout, | ||
| 9 | ·*···setImmediate, | ||
| 10 | ·*···setInterval, | ||
| 11 | ·*·}·from·'node:timers/promises'; | ||
| 12 | ·*·``` | ||
| 13 | ·*·@since·v15.0.0 | ||
| 14 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/timers/promises.js) | ||
| 15 | ·*/ | ||
| 16 | declare·module·"node:timers/promises"·{ | 1 | declare·module·"node:timers/promises"·{ |
| 17 | ····import·{·TimerOptions·}·from·"node:timers"; | 2 | ····import·{·TimerOptions·}·from·"node:timers"; |
| 18 | ····/** | 3 | ····/** |
| 19 | ·····*·```js | 4 | ·····*·```js |
| 20 | ·····*·import·{ | 5 | ·····*·import·{ |
| 21 | ·····*···setTimeout, | 6 | ·····*···setTimeout, |
| 22 | ·····*·}·from·'node:timers/promises'; | 7 | ·····*·}·from·'node:timers/promises'; |
| Offset 1, 17 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`timer`·module·exposes·a·global·API·for·scheduling·functions·to | ||
| 3 | ·*·be·called·at·some·future·period·of·time.·Because·the·timer·functions·are | ||
| 4 | ·*·globals,·there·is·no·need·to·import·`node:timers`·to·use·the·API. | ||
| 5 | ·* | ||
| 6 | ·*·The·timer·functions·within·Node.js·implement·a·similar·API·as·the·timers·API | ||
| 7 | ·*·provided·by·Web·Browsers·but·use·a·different·internal·implementation·that·is | ||
| 8 | ·*·built·around·the·Node.js·[Event·Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout). | ||
| 9 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/timers.js) | ||
| 10 | ·*/ | ||
| 11 | declare·module·"node:timers"·{ | 1 | declare·module·"node:timers"·{ |
| 12 | ····import·{·Abortable·}·from·"node:events"; | 2 | ····import·{·Abortable·}·from·"node:events"; |
| 13 | ····import·*·as·promises·from·"node:timers/promises"; | 3 | ····import·*·as·promises·from·"node:timers/promises"; |
| 14 | ····export·interface·TimerOptions·extends·Abortable·{ | 4 | ····export·interface·TimerOptions·extends·Abortable·{ |
| 15 | ········/** | 5 | ········/** |
| 16 | ·········*·Set·to·`false`·to·indicate·that·the·scheduled·`Timeout` | 6 | ·········*·Set·to·`false`·to·indicate·that·the·scheduled·`Timeout` |
| 17 | ·········*·should·not·require·the·Node.js·event·loop·to·remain·active. | 7 | ·········*·should·not·require·the·Node.js·event·loop·to·remain·active. |
| Offset 1, 17 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:tls`·module·provides·an·implementation·of·the·Transport·Layer·Security | ||
| 3 | ·*·(TLS)·and·Secure·Socket·Layer·(SSL)·protocols·that·is·built·on·top·of·OpenSSL. | ||
| 4 | ·*·The·module·can·be·accessed·using: | ||
| 5 | ·* | ||
| 6 | ·*·```js | ||
| 7 | ·*·import·tls·from·'node:tls'; | ||
| 8 | ·*·``` | ||
| 9 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/tls.js) | ||
| 10 | ·*/ | ||
| 11 | declare·module·"node:tls"·{ | 1 | declare·module·"node:tls"·{ |
| 12 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 13 | ····import·{·X509Certificate·}·from·"node:crypto"; | 3 | ····import·{·X509Certificate·}·from·"node:crypto"; |
| 14 | ····import·*·as·net·from·"node:net"; | 4 | ····import·*·as·net·from·"node:net"; |
| 15 | ····import·*·as·stream·from·"stream"; | 5 | ····import·*·as·stream·from·"stream"; |
| 16 | ····const·CLIENT_RENEG_LIMIT:·number; | 6 | ····const·CLIENT_RENEG_LIMIT:·number; |
| 17 | ····const·CLIENT_RENEG_WINDOW:·number; | 7 | ····const·CLIENT_RENEG_WINDOW:·number; |
| Offset 196, 20 lines modified | Offset 186, 14 lines modified | ||
| 196 | ·········*·An·optional·net.Server·instance. | 186 | ·········*·An·optional·net.Server·instance. |
| 197 | ·········*/ | 187 | ·········*/ |
| 198 | ········server?:·net.Server·|·undefined; | 188 | ········server?:·net.Server·|·undefined; |
| 199 | ········/** | 189 | ········/** |
| 200 | ·········*·An·optional·Buffer·instance·containing·a·TLS·session. | 190 | ·········*·An·optional·Buffer·instance·containing·a·TLS·session. |
| 201 | ·········*/ | 191 | ·········*/ |
| 202 | ········session?:·Buffer·|·undefined; | 192 | ········session?:·Buffer·|·undefined; |
| 203 | ········/** | ||
| 204 | ·········*·If·true,·specifies·that·the·OCSP·status·request·extension·will·be | ||
| 205 | ·········*·added·to·the·client·hello·and·an·'OCSPResponse'·event·will·be | ||
| 206 | ·········*·emitted·on·the·socket·before·establishing·a·secure·communication | ||
| 207 | ·········*/ | ||
| 208 | ········requestOCSP?:·boolean·|·undefined; | ||
| 209 | ····} | 193 | ····} |
| 210 | ····interface·TLSSocketEventMap·extends·net.SocketEventMap·{ | 194 | ····interface·TLSSocketEventMap·extends·net.SocketEventMap·{ |
| 211 | ········"keylog":·[line:·NonSharedBuffer]; | 195 | ········"keylog":·[line:·NonSharedBuffer]; |
| 212 | ········"OCSPResponse":·[response:·NonSharedBuffer]; | 196 | ········"OCSPResponse":·[response:·NonSharedBuffer]; |
| 213 | ········"secure":·[]; | 197 | ········"secure":·[]; |
| 214 | ········"secureConnect":·[]; | 198 | ········"secureConnect":·[]; |
| 215 | ········"session":·[session:·NonSharedBuffer]; | 199 | ········"session":·[session:·NonSharedBuffer]; |
| Offset 573, 14 lines modified | Offset 557, 20 lines modified | ||
| 573 | ········/** | 557 | ········/** |
| 574 | ·········*·If·true·the·server·will·reject·any·connection·which·is·not | 558 | ·········*·If·true·the·server·will·reject·any·connection·which·is·not |
| 575 | ·········*·authorized·with·the·list·of·supplied·CAs.·This·option·only·has·an | 559 | ·········*·authorized·with·the·list·of·supplied·CAs.·This·option·only·has·an |
| 576 | ·········*·effect·if·requestCert·is·true. | 560 | ·········*·effect·if·requestCert·is·true. |
| 577 | ·········*·@default·true | 561 | ·········*·@default·true |
| 578 | ·········*/ | 562 | ·········*/ |
| 579 | ········rejectUnauthorized?:·boolean·|·undefined; | 563 | ········rejectUnauthorized?:·boolean·|·undefined; |
| 564 | ········/** | ||
| 565 | ·········*·If·true,·specifies·that·the·OCSP·status·request·extension·will·be | ||
| 566 | ·········*·added·to·the·client·hello·and·an·'OCSPResponse'·event·will·be | ||
| 567 | ·········*·emitted·on·the·socket·before·establishing·a·secure·communication. | ||
| 568 | ·········*/ | ||
| 569 | ········requestOCSP?:·boolean·|·undefined; | ||
| 580 | ····} | 570 | ····} |
| 581 | ····interface·TlsOptions·extends·SecureContextOptions,·CommonConnectionOptions,·net.ServerOpts·{ | 571 | ····interface·TlsOptions·extends·SecureContextOptions,·CommonConnectionOptions,·net.ServerOpts·{ |
| 582 | ········/** | 572 | ········/** |
| 583 | ·········*·Abort·the·connection·if·the·SSL/TLS·handshake·does·not·finish·in·the | 573 | ·········*·Abort·the·connection·if·the·SSL/TLS·handshake·does·not·finish·in·the |
| 584 | ·········*·specified·number·of·milliseconds.·A·'tlsClientError'·is·emitted·on | 574 | ·········*·specified·number·of·milliseconds.·A·'tlsClientError'·is·emitted·on |
| 585 | ·········*·the·tls.Server·object·whenever·a·handshake·times·out.·Default: | 575 | ·········*·the·tls.Server·object·whenever·a·handshake·times·out.·Default: |
| 586 | ·········*·120000·(120·seconds). | 576 | ·········*·120000·(120·seconds). |
| Offset 1, 101 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:trace_events`·module·provides·a·mechanism·to·centralize·tracing·information | ||
| 3 | ·*·generated·by·V8,·Node.js·core,·and·userspace·code. | ||
| 4 | ·* | ||
| 5 | ·*·Tracing·can·be·enabled·with·the·`--trace-event-categories`·command-line·flag | ||
| 6 | ·*·or·by·using·the·`trace_events`·module.·The·`--trace-event-categories`·flag | ||
| 7 | ·*·accepts·a·list·of·comma-separated·category·names. | ||
| 8 | ·* | ||
| 9 | ·*·The·available·categories·are: | ||
| 10 | ·* | ||
| 11 | ·*·*·`node`:·An·empty·placeholder. | ||
| 12 | ·*·*·`node.async_hooks`:·Enables·capture·of·detailed·[`async_hooks`](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html)·trace·data. | ||
| 13 | ·*·The·[`async_hooks`](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html)·events·have·a·unique·`asyncId`·and·a·special·`triggerId`·`triggerAsyncId`·property. | ||
| 14 | ·*·*·`node.bootstrap`:·Enables·capture·of·Node.js·bootstrap·milestones. | ||
| 15 | ·*·*·`node.console`:·Enables·capture·of·`console.time()`·and·`console.count()`·output. | ||
| 16 | ·*·*·`node.threadpoolwork.sync`:·Enables·capture·of·trace·data·for·threadpool·synchronous·operations,·such·as·`blob`,·`zlib`,·`crypto`·and·`node_api`. | ||
| 17 | ·*·*·`node.threadpoolwork.async`:·Enables·capture·of·trace·data·for·threadpool·asynchronous·operations,·such·as·`blob`,·`zlib`,·`crypto`·and·`node_api`. | ||
| 18 | ·*·*·`node.dns.native`:·Enables·capture·of·trace·data·for·DNS·queries. | ||
| 19 | ·*·*·`node.net.native`:·Enables·capture·of·trace·data·for·network. | ||
| 20 | ·*·*·`node.environment`:·Enables·capture·of·Node.js·Environment·milestones. | ||
| 21 | ·*·*·`node.fs.sync`:·Enables·capture·of·trace·data·for·file·system·sync·methods. | ||
| 22 | ·*·*·`node.fs_dir.sync`:·Enables·capture·of·trace·data·for·file·system·sync·directory·methods. | ||
| 23 | ·*·*·`node.fs.async`:·Enables·capture·of·trace·data·for·file·system·async·methods. | ||
| 24 | ·*·*·`node.fs_dir.async`:·Enables·capture·of·trace·data·for·file·system·async·directory·methods. | ||
| 25 | ·*·*·`node.perf`:·Enables·capture·of·[Performance·API](https://nodejs.org/docs/latest-v25.x/api/perf_hooks.html)·measurements. | ||
| 26 | ·*····*·`node.perf.usertiming`:·Enables·capture·of·only·Performance·API·User·Timing | ||
| 27 | ·*····measures·and·marks. | ||
| 28 | ·*····*·`node.perf.timerify`:·Enables·capture·of·only·Performance·API·timerify | ||
| 29 | ·*····measurements. | ||
| 30 | ·*·*·`node.promises.rejections`:·Enables·capture·of·trace·data·tracking·the·number | ||
| 31 | ·*·of·unhandled·Promise·rejections·and·handled-after-rejections. | ||
| 32 | ·*·*·`node.vm.script`:·Enables·capture·of·trace·data·for·the·`node:vm`·module's·`runInNewContext()`,·`runInContext()`,·and·`runInThisContext()`·methods. | ||
| 33 | ·*·*·`v8`:·The·[V8](https://nodejs.org/docs/latest-v25.x/api/v8.html)·events·are·GC,·compiling,·and·execution·related. | ||
| 34 | ·*·*·`node.http`:·Enables·capture·of·trace·data·for·http·request·/·response. | ||
| 35 | ·* | ||
| 36 | ·*·By·default·the·`node`,·`node.async_hooks`,·and·`v8`·categories·are·enabled. | ||
| 37 | ·* | ||
| 38 | ·*·```bash | ||
| 39 | ·*·node·--trace-event-categories·v8,node,node.async_hooks·server.js | ||
| 40 | ·*·``` | ||
| 41 | ·* | ||
| 42 | ·*·Prior·versions·of·Node.js·required·the·use·of·the·`--trace-events-enabled`·flag·to·enable·trace·events.·This·requirement·has·been·removed.·However,·the·`--trace-events-enabled`·flag·_may_·still·be | ||
| 43 | ·*·used·and·will·enable·the·`node`,·`node.async_hooks`,·and·`v8`·trace·event·categories·by·default. | ||
| 44 | ·* | ||
| 45 | ·*·```bash | ||
| 46 | ·*·node·--trace-events-enabled | ||
| 47 | ·* | ||
| 48 | ·*·#·is·equivalent·to | ||
| 49 | ·* | ||
| 50 | ·*·node·--trace-event-categories·v8,node,node.async_hooks | ||
| 51 | ·*·``` | ||
| 52 | ·* | ||
| 53 | ·*·Alternatively,·trace·events·may·be·enabled·using·the·`node:trace_events`·module: | ||
| 54 | ·* | ||
| 55 | ·*·```js | ||
| 56 | ·*·import·trace_events·from·'node:trace_events'; | ||
| 57 | ·*·const·tracing·=·trace_events.createTracing({·categories:·['node.perf']·}); | ||
| 58 | ·*·tracing.enable();··//·Enable·trace·event·capture·for·the·'node.perf'·category | ||
| 59 | ·* | ||
| 60 | ·*·//·do·work | ||
| 61 | ·* | ||
| 62 | ·*·tracing.disable();··//·Disable·trace·event·capture·for·the·'node.perf'·category | ||
| 63 | ·*·``` | ||
| 64 | ·* | ||
| 65 | ·*·Running·Node.js·with·tracing·enabled·will·produce·log·files·that·can·be·opened | ||
| 66 | ·*·in·the·[`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool)·tab·of·Chrome. | ||
| 67 | ·* | ||
| 68 | ·*·The·logging·file·is·by·default·called·`node_trace.${rotation}.log`,·where·`${rotation}`·is·an·incrementing·log-rotation·id.·The·filepath·pattern·can | ||
| 69 | ·*·be·specified·with·`--trace-event-file-pattern`·that·accepts·a·template | ||
| 70 | ·*·string·that·supports·`${rotation}`·and·`${pid}`: | ||
| 71 | ·* | ||
| 72 | ·*·```bash | ||
| 73 | ·*·node·--trace-event-categories·v8·--trace-event-file-pattern·'${pid}-${rotation}.log'·server.js | ||
| 74 | ·*·``` | ||
| 75 | ·* | ||
| 76 | ·*·To·guarantee·that·the·log·file·is·properly·generated·after·signal·events·like·`SIGINT`,·`SIGTERM`,·or·`SIGBREAK`,·make·sure·to·have·the·appropriate·handlers | ||
| 77 | ·*·in·your·code,·such·as: | ||
| 78 | ·* | ||
| 79 | ·*·```js | ||
| 80 | ·*·process.on('SIGINT',·function·onSigint()·{ | ||
| 81 | ·*···console.info('Received·SIGINT.'); | ||
| 82 | ·*···process.exit(130);··//·Or·applicable·exit·code·depending·on·OS·and·signal | ||
| 83 | ·*·}); | ||
| 84 | ·*·``` | ||
| 85 | ·* | ||
| 86 | ·*·The·tracing·system·uses·the·same·time·source | ||
| 87 | ·*·as·the·one·used·by·`process.hrtime()`. | ||
| 88 | ·*·However·the·trace-event·timestamps·are·expressed·in·microseconds, | ||
| 89 | ·*·unlike·`process.hrtime()`·which·returns·nanoseconds. | ||
| 90 | ·* | ||
| 91 | ·*·The·features·from·this·module·are·not·available·in·[`Worker`](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html#class-worker)·threads. | ||
| 92 | ·*·@experimental | ||
| 93 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/trace_events.js) | ||
| 94 | ·*/ | ||
| 95 | declare·module·"node:trace_events"·{ | 1 | declare·module·"node:trace_events"·{ |
| 96 | ····/** | 2 | ····/** |
| 97 | ·····*·The·`Tracing`·object·is·used·to·enable·or·disable·tracing·for·sets·of | 3 | ·····*·The·`Tracing`·object·is·used·to·enable·or·disable·tracing·for·sets·of |
| 98 | ·····*·categories.·Instances·are·created·using·the | 4 | ·····*·categories.·Instances·are·created·using·the |
| 99 | ·····*·`trace_events.createTracing()`·method. | 5 | ·····*·`trace_events.createTracing()`·method. |
| Max diff block lines reached; 68/5501 bytes (1.24%) of diff not shown. | |||
| Offset 168, 15 lines modified | Offset 168, 15 lines modified | ||
| 168 | ·············*·Returns·a·new·`Buffer`·which·is·the·result·of·concatenating·all·the·`Buffer`·instances·in·the·`list`·together. | 168 | ·············*·Returns·a·new·`Buffer`·which·is·the·result·of·concatenating·all·the·`Buffer`·instances·in·the·`list`·together. |
| 169 | ·············* | 169 | ·············* |
| 170 | ·············*·If·the·list·has·no·items,·or·if·the·`totalLength`·is·0,·then·a·new·zero-length·`Buffer`·is·returned. | 170 | ·············*·If·the·list·has·no·items,·or·if·the·`totalLength`·is·0,·then·a·new·zero-length·`Buffer`·is·returned. |
| 171 | ·············* | 171 | ·············* |
| 172 | ·············*·If·`totalLength`·is·not·provided,·it·is·calculated·from·the·`Buffer`·instances | 172 | ·············*·If·`totalLength`·is·not·provided,·it·is·calculated·from·the·`Buffer`·instances |
| 173 | ·············*·in·`list`·by·adding·their·lengths. | 173 | ·············*·in·`list`·by·adding·their·lengths. |
| 174 | ·············* | 174 | ·············* |
| 175 | ·············*·If·`totalLength`·is·provided,·it· | 175 | ·············*·If·`totalLength`·is·provided,·it·must·be·an·unsigned·integer.·If·the |
| 176 | ·············*·combined·length·of·the·`Buffer`s·in·`list`·exceeds·`totalLength`,·the·result·is | 176 | ·············*·combined·length·of·the·`Buffer`s·in·`list`·exceeds·`totalLength`,·the·result·is |
| 177 | ·············*·truncated·to·`totalLength`. | 177 | ·············*·truncated·to·`totalLength`. |
| 178 | ·············* | 178 | ·············* |
| 179 | ·············*·```js | 179 | ·············*·```js |
| 180 | ·············*·import·{·Buffer·}·from·'node:buffer'; | 180 | ·············*·import·{·Buffer·}·from·'node:buffer'; |
| 181 | ·············* | 181 | ·············* |
| 182 | ·············*·//·Create·a·single·`Buffer`·from·a·list·of·three·`Buffer`·instances. | 182 | ·············*·//·Create·a·single·`Buffer`·from·a·list·of·three·`Buffer`·instances. |
| Offset 1, 32 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:tty`·module·provides·the·`tty.ReadStream`·and·`tty.WriteStream`·classes.·In·most·cases,·it·will·not·be·necessary·or·possible·to·use·this·module | ||
| 3 | ·*·directly.·However,·it·can·be·accessed·using: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·tty·from·'node:tty'; | ||
| 7 | ·*·``` | ||
| 8 | ·* | ||
| 9 | ·*·When·Node.js·detects·that·it·is·being·run·with·a·text·terminal·("TTY") | ||
| 10 | ·*·attached,·`process.stdin`·will,·by·default,·be·initialized·as·an·instance·of·`tty.ReadStream`·and·both·`process.stdout`·and·`process.stderr`·will,·by | ||
| 11 | ·*·default,·be·instances·of·`tty.WriteStream`.·The·preferred·method·of·determining | ||
| 12 | ·*·whether·Node.js·is·being·run·within·a·TTY·context·is·to·check·that·the·value·of | ||
| 13 | ·*·the·`process.stdout.isTTY`·property·is·`true`: | ||
| 14 | ·* | ||
| 15 | ·*·```console | ||
| 16 | ·*·$·node·-p·-e·"Boolean(process.stdout.isTTY)" | ||
| 17 | ·*·true | ||
| 18 | ·*·$·node·-p·-e·"Boolean(process.stdout.isTTY)"·|·cat | ||
| 19 | ·*·false | ||
| 20 | ·*·``` | ||
| 21 | ·* | ||
| 22 | ·*·In·most·cases,·there·should·be·little·to·no·reason·for·an·application·to | ||
| 23 | ·*·manually·create·instances·of·the·`tty.ReadStream`·and·`tty.WriteStream`·classes. | ||
| 24 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/tty.js) | ||
| 25 | ·*/ | ||
| 26 | declare·module·"node:tty"·{ | 1 | declare·module·"node:tty"·{ |
| 27 | ····import·*·as·net·from·"node:net"; | 2 | ····import·*·as·net·from·"node:net"; |
| 28 | ····/** | 3 | ····/** |
| 29 | ·····*·The·`tty.isatty()`·method·returns·`true`·if·the·given·`fd`·is·associated·with | 4 | ·····*·The·`tty.isatty()`·method·returns·`true`·if·the·given·`fd`·is·associated·with |
| 30 | ·····*·a·TTY·and·`false`·if·it·is·not,·including·whenever·`fd`·is·not·a·non-negative | 5 | ·····*·a·TTY·and·`false`·if·it·is·not,·including·whenever·`fd`·is·not·a·non-negative |
| 31 | ·····*·integer. | 6 | ·····*·integer. |
| 32 | ·····*·@since·v0.5.8 | 7 | ·····*·@since·v0.5.8 |
| Offset 1, 16 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:url`·module·provides·utilities·for·URL·resolution·and·parsing.·It·can | ||
| 3 | ·*·be·accessed·using: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·url·from·'node:url'; | ||
| 7 | ·*·``` | ||
| 8 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/url.js) | ||
| 9 | ·*/ | ||
| 10 | declare·module·"node:url"·{ | 1 | declare·module·"node:url"·{ |
| 11 | ····import·{·Blob,·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·Blob,·NonSharedBuffer·}·from·"node:buffer"; |
| 12 | ····import·{·ClientRequestArgs·}·from·"node:http"; | 3 | ····import·{·ClientRequestArgs·}·from·"node:http"; |
| 13 | ····import·{·ParsedUrlQuery,·ParsedUrlQueryInput·}·from·"node:querystring"; | 4 | ····import·{·ParsedUrlQuery,·ParsedUrlQueryInput·}·from·"node:querystring"; |
| 14 | ····//·Input·to·`url.format` | 5 | ····//·Input·to·`url.format` |
| 15 | ····interface·UrlObject·{ | 6 | ····interface·UrlObject·{ |
| 16 | ········auth?:·string·|·null·|·undefined; | 7 | ········auth?:·string·|·null·|·undefined; |
| Offset 1, 17 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:util`·module·supports·the·needs·of·Node.js·internal·APIs.·Many·of·the | ||
| 3 | ·*·utilities·are·useful·for·application·and·module·developers·as·well.·To·access | ||
| 4 | ·*·it: | ||
| 5 | ·* | ||
| 6 | ·*·```js | ||
| 7 | ·*·import·util·from·'node:util'; | ||
| 8 | ·*·``` | ||
| 9 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/util.js) | ||
| 10 | ·*/ | ||
| 11 | declare·module·"node:util"·{ | 1 | declare·module·"node:util"·{ |
| 12 | ····export·*·as·types·from·"node:util/types"; | 2 | ····export·*·as·types·from·"node:util/types"; |
| 13 | ····export·type·InspectStyle·= | 3 | ····export·type·InspectStyle·= |
| 14 | ········|·"special" | 4 | ········|·"special" |
| 15 | ········|·"number" | 5 | ········|·"number" |
| 16 | ········|·"bigint" | 6 | ········|·"bigint" |
| 17 | ········|·"boolean" | 7 | ········|·"boolean" |
| Offset 1, 15 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:v8`·module·exposes·APIs·that·are·specific·to·the·version·of·[V8](https://developers.google.com/v8/)·built·into·the·Node.js·binary.·It·can·be·accessed·using: | ||
| 3 | ·* | ||
| 4 | ·*·```js | ||
| 5 | ·*·import·v8·from·'node:v8'; | ||
| 6 | ·*·``` | ||
| 7 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/v8.js) | ||
| 8 | ·*/ | ||
| 9 | declare·module·"node:v8"·{ | 1 | declare·module·"node:v8"·{ |
| 10 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 11 | ····import·{·Readable·}·from·"node:stream"; | 3 | ····import·{·Readable·}·from·"node:stream"; |
| 12 | ····interface·HeapSpaceInfo·{ | 4 | ····interface·HeapSpaceInfo·{ |
| 13 | ········space_name:·string; | 5 | ········space_name:·string; |
| 14 | ········space_size:·number; | 6 | ········space_size:·number; |
| 15 | ········space_used_size:·number; | 7 | ········space_used_size:·number; |
| Offset 1, 45 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:vm`·module·enables·compiling·and·running·code·within·V8·Virtual | ||
| 3 | ·*·Machine·contexts. | ||
| 4 | ·* | ||
| 5 | ·*·**The·`node:vm`·module·is·not·a·security** | ||
| 6 | ·*·**mechanism.·Do·not·use·it·to·run·untrusted·code.** | ||
| 7 | ·* | ||
| 8 | ·*·JavaScript·code·can·be·compiled·and·run·immediately·or | ||
| 9 | ·*·compiled,·saved,·and·run·later. | ||
| 10 | ·* | ||
| 11 | ·*·A·common·use·case·is·to·run·the·code·in·a·different·V8·Context.·This·means | ||
| 12 | ·*·invoked·code·has·a·different·global·object·than·the·invoking·code. | ||
| 13 | ·* | ||
| 14 | ·*·One·can·provide·the·context·by·`contextifying`·an | ||
| 15 | ·*·object.·The·invoked·code·treats·any·property·in·the·context·like·a | ||
| 16 | ·*·global·variable.·Any·changes·to·global·variables·caused·by·the·invoked | ||
| 17 | ·*·code·are·reflected·in·the·context·object. | ||
| 18 | ·* | ||
| 19 | ·*·```js | ||
| 20 | ·*·import·vm·from·'node:vm'; | ||
| 21 | ·* | ||
| 22 | ·*·const·x·=·1; | ||
| 23 | ·* | ||
| 24 | ·*·const·context·=·{·x:·2·}; | ||
| 25 | ·*·vm.createContext(context);·//·Contextify·the·object. | ||
| 26 | ·* | ||
| 27 | ·*·const·code·=·'x·+=·40;·var·y·=·17;'; | ||
| 28 | ·*·//·`x`·and·`y`·are·global·variables·in·the·context. | ||
| 29 | ·*·//·Initially,·x·has·the·value·2·because·that·is·the·value·of·context.x. | ||
| 30 | ·*·vm.runInContext(code,·context); | ||
| 31 | ·* | ||
| 32 | ·*·console.log(context.x);·//·42 | ||
| 33 | ·*·console.log(context.y);·//·17 | ||
| 34 | ·* | ||
| 35 | ·*·console.log(x);·//·1;·y·is·not·defined. | ||
| 36 | ·*·``` | ||
| 37 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/vm.js) | ||
| 38 | ·*/ | ||
| 39 | declare·module·"node:vm"·{ | 1 | declare·module·"node:vm"·{ |
| 40 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 41 | ····import·{·ImportAttributes,·ImportPhase·}·from·"node:module"; | 3 | ····import·{·ImportAttributes,·ImportPhase·}·from·"node:module"; |
| 42 | ····interface·Context·extends·NodeJS.Dict<any>·{} | 4 | ····interface·Context·extends·NodeJS.Dict<any>·{} |
| 43 | ····interface·BaseOptions·{ | 5 | ····interface·BaseOptions·{ |
| 44 | ········/** | 6 | ········/** |
| 45 | ·········*·Specifies·the·filename·used·in·stack·traces·produced·by·this·script. | 7 | ·········*·Specifies·the·filename·used·in·stack·traces·produced·by·this·script. |
| Offset 1, 78 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·**The·`node:wasi`·module·does·not·currently·provide·the** | ||
| 3 | ·*·**comprehensive·file·system·security·properties·provided·by·some·WASI·runtimes.** | ||
| 4 | ·*·**Full·support·for·secure·file·system·sandboxing·may·or·may·not·be·implemented·in** | ||
| 5 | ·*·**future.·In·the·mean·time,·do·not·rely·on·it·to·run·untrusted·code.** | ||
| 6 | ·* | ||
| 7 | ·*·The·WASI·API·provides·an·implementation·of·the·[WebAssembly·System·Interface](https://wasi.dev/)·specification.·WASI·gives·WebAssembly·applications·access·to·the·underlying | ||
| 8 | ·*·operating·system·via·a·collection·of·POSIX-like·functions. | ||
| 9 | ·* | ||
| 10 | ·*·```js | ||
| 11 | ·*·import·{·readFile·}·from·'node:fs/promises'; | ||
| 12 | ·*·import·{·WASI·}·from·'node:wasi'; | ||
| 13 | ·*·import·{·argv,·env·}·from·'node:process'; | ||
| 14 | ·* | ||
| 15 | ·*·const·wasi·=·new·WASI({ | ||
| 16 | ·*···version:·'preview1', | ||
| 17 | ·*···args:·argv, | ||
| 18 | ·*···env, | ||
| 19 | ·*···preopens:·{ | ||
| 20 | ·*·····'/local':·'/some/real/path/that/wasm/can/access', | ||
| 21 | ·*···}, | ||
| 22 | ·*·}); | ||
| 23 | ·* | ||
| 24 | ·*·const·wasm·=·await·WebAssembly.compile( | ||
| 25 | ·*···await·readFile(new·URL('./demo.wasm',·import.meta.url)), | ||
| 26 | ·*·); | ||
| 27 | ·*·const·instance·=·await·WebAssembly.instantiate(wasm,·wasi.getImportObject()); | ||
| 28 | ·* | ||
| 29 | ·*·wasi.start(instance); | ||
| 30 | ·*·``` | ||
| 31 | ·* | ||
| 32 | ·*·To·run·the·above·example,·create·a·new·WebAssembly·text·format·file·named·`demo.wat`: | ||
| 33 | ·* | ||
| 34 | ·*·```text | ||
| 35 | ·*·(module | ||
| 36 | ·*·····;;·Import·the·required·fd_write·WASI·function·which·will·write·the·given·io·vectors·to·stdout | ||
| 37 | ·*·····;;·The·function·signature·for·fd_write·is: | ||
| 38 | ·*·····;;·(File·Descriptor,·*iovs,·iovs_len,·nwritten)·->·Returns·number·of·bytes·written | ||
| 39 | ·*·····(import·"wasi_snapshot_preview1"·"fd_write"·(func·$fd_write·(param·i32·i32·i32·i32)·(result·i32))) | ||
| 40 | ·* | ||
| 41 | ·*·····(memory·1) | ||
| 42 | ·*·····(export·"memory"·(memory·0)) | ||
| 43 | ·* | ||
| 44 | ·*·····;;·Write·'hello·world\n'·to·memory·at·an·offset·of·8·bytes | ||
| 45 | ·*·····;;·Note·the·trailing·newline·which·is·required·for·the·text·to·appear | ||
| 46 | ·*·····(data·(i32.const·8)·"hello·world\n") | ||
| 47 | ·* | ||
| 48 | ·*·····(func·$main·(export·"_start") | ||
| 49 | ·*·········;;·Creating·a·new·io·vector·within·linear·memory | ||
| 50 | ·*·········(i32.store·(i32.const·0)·(i32.const·8))··;;·iov.iov_base·-·This·is·a·pointer·to·the·start·of·the·'hello·world\n'·string | ||
| 51 | ·*·········(i32.store·(i32.const·4)·(i32.const·12))··;;·iov.iov_len·-·The·length·of·the·'hello·world\n'·string | ||
| 52 | ·* | ||
| 53 | ·*·········(call·$fd_write | ||
| 54 | ·*·············(i32.const·1)·;;·file_descriptor·-·1·for·stdout | ||
| 55 | ·*·············(i32.const·0)·;;·*iovs·-·The·pointer·to·the·iov·array,·which·is·stored·at·memory·location·0 | ||
| 56 | ·*·············(i32.const·1)·;;·iovs_len·-·We're·printing·1·string·stored·in·an·iov·-·so·one. | ||
| 57 | ·*·············(i32.const·20)·;;·nwritten·-·A·place·in·memory·to·store·the·number·of·bytes·written | ||
| 58 | ·*·········) | ||
| 59 | ·*·········drop·;;·Discard·the·number·of·bytes·written·from·the·top·of·the·stack | ||
| 60 | ·*·····) | ||
| 61 | ·*·) | ||
| 62 | ·*·``` | ||
| 63 | ·* | ||
| 64 | ·*·Use·[wabt](https://github.com/WebAssembly/wabt)·to·compile·`.wat`·to·`.wasm` | ||
| 65 | ·* | ||
| 66 | ·*·```bash | ||
| 67 | ·*·wat2wasm·demo.wat | ||
| 68 | ·*·``` | ||
| 69 | ·*·@experimental | ||
| 70 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/wasi.js) | ||
| 71 | ·*/ | ||
| 72 | declare·module·"node:wasi"·{ | 1 | declare·module·"node:wasi"·{ |
| 73 | ····interface·WASIOptions·{ | 2 | ····interface·WASIOptions·{ |
| 74 | ········/** | 3 | ········/** |
| 75 | ·········*·An·array·of·strings·that·the·WebAssembly·application·will | 4 | ·········*·An·array·of·strings·that·the·WebAssembly·application·will |
| 76 | ·········*·see·as·command·line·arguments.·The·first·argument·is·the·virtual·path·to·the | 5 | ·········*·see·as·command·line·arguments.·The·first·argument·is·the·virtual·path·to·the |
| 77 | ·········*·WASI·command·itself. | 6 | ·········*·WASI·command·itself. |
| 78 | ·········*·@default·[] | 7 | ·········*·@default·[] |
| Offset 1, 63 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:worker_threads`·module·enables·the·use·of·threads·that·execute | ||
| 3 | ·*·JavaScript·in·parallel.·To·access·it: | ||
| 4 | ·* | ||
| 5 | ·*·```js | ||
| 6 | ·*·import·worker·from·'node:worker_threads'; | ||
| 7 | ·*·``` | ||
| 8 | ·* | ||
| 9 | ·*·Workers·(threads)·are·useful·for·performing·CPU-intensive·JavaScript·operations. | ||
| 10 | ·*·They·do·not·help·much·with·I/O-intensive·work.·The·Node.js·built-in | ||
| 11 | ·*·asynchronous·I/O·operations·are·more·efficient·than·Workers·can·be. | ||
| 12 | ·* | ||
| 13 | ·*·Unlike·`child_process`·or·`cluster`,·`worker_threads`·can·share·memory.·They·do | ||
| 14 | ·*·so·by·transferring·`ArrayBuffer`·instances·or·sharing·`SharedArrayBuffer`·instances. | ||
| 15 | ·* | ||
| 16 | ·*·```js | ||
| 17 | ·*·import·{ | ||
| 18 | ·*···Worker, | ||
| 19 | ·*···isMainThread, | ||
| 20 | ·*···parentPort, | ||
| 21 | ·*···workerData, | ||
| 22 | ·*·}·from·'node:worker_threads'; | ||
| 23 | ·* | ||
| 24 | ·*·if·(!isMainThread)·{ | ||
| 25 | ·*···const·{·parse·}·=·await·import('some-js-parsing-library'); | ||
| 26 | ·*···const·script·=·workerData; | ||
| 27 | ·*···parentPort.postMessage(parse(script)); | ||
| 28 | ·*·} | ||
| 29 | ·* | ||
| 30 | ·*·export·default·function·parseJSAsync(script)·{ | ||
| 31 | ·*···return·new·Promise((resolve,·reject)·=>·{ | ||
| 32 | ·*·····const·worker·=·new·Worker(new·URL(import.meta.url),·{ | ||
| 33 | ·*·······workerData:·script, | ||
| 34 | ·*·····}); | ||
| 35 | ·*·····worker.on('message',·resolve); | ||
| 36 | ·*·····worker.once('error',·reject); | ||
| 37 | ·*·····worker.once('exit',·(code)·=>·{ | ||
| 38 | ·*·······if·(code·!==·0) | ||
| 39 | ·*·········reject(new·Error(`Worker·stopped·with·exit·code·${code}`)); | ||
| 40 | ·*·····}); | ||
| 41 | ·*···}); | ||
| 42 | ·*·}; | ||
| 43 | ·*·``` | ||
| 44 | ·* | ||
| 45 | ·*·The·above·example·spawns·a·Worker·thread·for·each·`parseJSAsync()`·call.·In | ||
| 46 | ·*·practice,·use·a·pool·of·Workers·for·these·kinds·of·tasks.·Otherwise,·the | ||
| 47 | ·*·overhead·of·creating·Workers·would·likely·exceed·their·benefit. | ||
| 48 | ·* | ||
| 49 | ·*·When·implementing·a·worker·pool,·use·the·`AsyncResource`·API·to·inform | ||
| 50 | ·*·diagnostic·tools·(e.g.·to·provide·asynchronous·stack·traces)·about·the | ||
| 51 | ·*·correlation·between·tasks·and·their·outcomes.·See·`"Using·AsyncResource·for·a·Worker·thread·pool"`·in·the·`async_hooks`·documentation·for·an·example·implementation. | ||
| 52 | ·* | ||
| 53 | ·*·Worker·threads·inherit·non-process-specific·options·by·default.·Refer·to·`Worker·constructor·options`·to·know·how·to·customize·worker·thread·options, | ||
| 54 | ·*·specifically·`argv`·and·`execArgv`·options. | ||
| 55 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/worker_threads.js) | ||
| 56 | ·*/ | ||
| 57 | declare·module·"node:worker_threads"·{ | 1 | declare·module·"node:worker_threads"·{ |
| 58 | ····import·{ | 2 | ····import·{ |
| 59 | ········EventEmitter, | 3 | ········EventEmitter, |
| 60 | ········InternalEventEmitter, | 4 | ········InternalEventEmitter, |
| 61 | ········InternalEventTargetEventProperties, | 5 | ········InternalEventTargetEventProperties, |
| 62 | ········NodeEventTarget, | 6 | ········NodeEventTarget, |
| 63 | ····}·from·"node:events"; | 7 | ····}·from·"node:events"; |
| Offset 392, 37 lines modified | Offset 336, 47 lines modified | ||
| 392 | ·········*·@since·v24.2.0 | 336 | ·········*·@since·v24.2.0 |
| 393 | ·········*/ | 337 | ·········*/ |
| 394 | ········[Symbol.asyncDispose]():·Promise<void>; | 338 | ········[Symbol.asyncDispose]():·Promise<void>; |
| 395 | ····} | 339 | ····} |
| 396 | ····interface·Worker·extends·InternalEventEmitter<WorkerEventMap>·{} | 340 | ····interface·Worker·extends·InternalEventEmitter<WorkerEventMap>·{} |
| 397 | ····/** | 341 | ····/** |
| 398 | ·····*·Mark·an·object·as·not·transferable.·If·`object`·occurs·in·the·transfer·list·of | 342 | ·····*·Mark·an·object·as·not·transferable.·If·`object`·occurs·in·the·transfer·list·of |
| 399 | ·····*·a·`port.postMessage()`·call,·it·is·i | 343 | ·····*·a·[`port.postMessage()`](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html#portpostmessagevalue-transferlist)·call,·an·error·is·thrown.·This·is·a·no-op·if |
| 344 | ·····*·`object`·is·a·primitive·value. | ||
| 400 | ·····* | 345 | ·····* |
| 401 | ·····*·In·particular,·this·makes·sense·for·objects·that·can·be·cloned,·rather·than | 346 | ·····*·In·particular,·this·makes·sense·for·objects·that·can·be·cloned,·rather·than |
| 402 | ·····*·transferred,·and·which·are·used·by·other·objects·on·the·sending·side. | 347 | ·····*·transferred,·and·which·are·used·by·other·objects·on·the·sending·side. |
| 403 | ·····*·For·example,·Node.js·marks·the·`ArrayBuffer`s·it·uses·for·its | 348 | ·····*·For·example,·Node.js·marks·the·`ArrayBuffer`s·it·uses·for·its |
| 349 | ·····*·[`Buffer`·pool](https://nodejs.org/docs/latest-v25.x/api/buffer.html#static-method-bufferallocunsafesize)·with·this. | ||
| 350 | ·····*·`ArrayBuffer.prototype.transfer()`·is·disallowed·on·such·array·buffer | ||
| 351 | ·····*·instances. | ||
| 404 | ·····* | 352 | ·····* |
| 405 | ·····*·This·operation·cannot·be·undone. | 353 | ·····*·This·operation·cannot·be·undone. |
| 406 | ·····* | 354 | ·····* |
| 407 | ·····*·```js | 355 | ·····*·```js |
| 408 | ·····*·import·{·MessageChannel,·markAsUntransferable·}·from·'node:worker_threads'; | 356 | ·····*·import·{·MessageChannel,·markAsUntransferable·}·from·'node:worker_threads'; |
| 409 | ·····* | 357 | ·····* |
| 410 | ·····*·const·pooledBuffer·=·new·ArrayBuffer(8); | 358 | ·····*·const·pooledBuffer·=·new·ArrayBuffer(8); |
| 411 | ·····*·const·typedArray1·=·new·Uint8Array(pooledBuffer); | 359 | ·····*·const·typedArray1·=·new·Uint8Array(pooledBuffer); |
| 412 | ·····*·const·typedArray2·=·new·Float64Array(pooledBuffer); | 360 | ·····*·const·typedArray2·=·new·Float64Array(pooledBuffer); |
| 413 | ·····* | 361 | ·····* |
| 414 | ·····*·markAsUntransferable(pooledBuffer); | 362 | ·····*·markAsUntransferable(pooledBuffer); |
| 415 | ·····* | 363 | ·····* |
| 416 | ·····*·const·{·port1·}·=·new·MessageChannel(); | 364 | ·····*·const·{·port1·}·=·new·MessageChannel(); |
| 365 | ·····*·try·{ | ||
| 366 | ·····*···//·This·will·throw·an·error,·because·pooledBuffer·is·not·transferable. | ||
| 417 | ·····*·port1.postMessage(typedArray1,·[·typedArray1.buffer·]); | 367 | ·····*···port1.postMessage(typedArray1,·[·typedArray1.buffer·]); |
| 368 | ·····*·}·catch·(error)·{ | ||
| 369 | ·····*···//·error.name·===·'DataCloneError' | ||
| 370 | ·····*·} | ||
| Max diff block lines reached; 636/4933 bytes (12.89%) of diff not shown. | |||
| Offset 1, 100 lines modified | Offset 1, 7 lines modified | ||
| 1 | /** | ||
| 2 | ·*·The·`node:zlib`·module·provides·compression·functionality·implemented·using | ||
| 3 | ·*·Gzip,·Deflate/Inflate,·and·Brotli. | ||
| 4 | ·* | ||
| 5 | ·*·To·access·it: | ||
| 6 | ·* | ||
| 7 | ·*·```js | ||
| 8 | ·*·import·zlib·from·'node:zlib'; | ||
| 9 | ·*·``` | ||
| 10 | ·* | ||
| 11 | ·*·Compression·and·decompression·are·built·around·the·Node.js | ||
| 12 | ·*·[Streams·API](https://nodejs.org/docs/latest-v25.x/api/stream.html). | ||
| 13 | ·* | ||
| 14 | ·*·Compressing·or·decompressing·a·stream·(such·as·a·file)·can·be·accomplished·by | ||
| 15 | ·*·piping·the·source·stream·through·a·`zlib`·`Transform`·stream·into·a·destination | ||
| 16 | ·*·stream: | ||
| 17 | ·* | ||
| 18 | ·*·```js | ||
| 19 | ·*·import·{·createGzip·}·from·'node:zlib'; | ||
| 20 | ·*·import·{·pipeline·}·from·'node:stream'; | ||
| 21 | ·*·import·{ | ||
| 22 | ·*···createReadStream, | ||
| 23 | ·*···createWriteStream, | ||
| 24 | ·*·}·from·'node:fs'; | ||
| 25 | ·* | ||
| 26 | ·*·const·gzip·=·createGzip(); | ||
| 27 | ·*·const·source·=·createReadStream('input.txt'); | ||
| 28 | ·*·const·destination·=·createWriteStream('input.txt.gz'); | ||
| 29 | ·* | ||
| 30 | ·*·pipeline(source,·gzip,·destination,·(err)·=>·{ | ||
| 31 | ·*···if·(err)·{ | ||
| 32 | ·*·····console.error('An·error·occurred:',·err); | ||
| 33 | ·*·····process.exitCode·=·1; | ||
| 34 | ·*···} | ||
| 35 | ·*·}); | ||
| 36 | ·* | ||
| 37 | ·*·//·Or,·Promisified | ||
| 38 | ·* | ||
| 39 | ·*·import·{·promisify·}·from·'node:util'; | ||
| 40 | ·*·const·pipe·=·promisify(pipeline); | ||
| 41 | ·* | ||
| 42 | ·*·async·function·do_gzip(input,·output)·{ | ||
| 43 | ·*···const·gzip·=·createGzip(); | ||
| 44 | ·*···const·source·=·createReadStream(input); | ||
| 45 | ·*···const·destination·=·createWriteStream(output); | ||
| 46 | ·*···await·pipe(source,·gzip,·destination); | ||
| 47 | ·*·} | ||
| 48 | ·* | ||
| 49 | ·*·do_gzip('input.txt',·'input.txt.gz') | ||
| 50 | ·*···.catch((err)·=>·{ | ||
| 51 | ·*·····console.error('An·error·occurred:',·err); | ||
| 52 | ·*·····process.exitCode·=·1; | ||
| 53 | ·*···}); | ||
| 54 | ·*·``` | ||
| 55 | ·* | ||
| 56 | ·*·It·is·also·possible·to·compress·or·decompress·data·in·a·single·step: | ||
| 57 | ·* | ||
| 58 | ·*·```js | ||
| 59 | ·*·import·{·deflate,·unzip·}·from·'node:zlib'; | ||
| 60 | ·* | ||
| 61 | ·*·const·input·=·'.................................'; | ||
| 62 | ·*·deflate(input,·(err,·buffer)·=>·{ | ||
| 63 | ·*···if·(err)·{ | ||
| 64 | ·*·····console.error('An·error·occurred:',·err); | ||
| 65 | ·*·····process.exitCode·=·1; | ||
| 66 | ·*···} | ||
| 67 | ·*···console.log(buffer.toString('base64')); | ||
| 68 | ·*·}); | ||
| 69 | ·* | ||
| 70 | ·*·const·buffer·=·Buffer.from('eJzT0yMAAGTvBe8=',·'base64'); | ||
| 71 | ·*·unzip(buffer,·(err,·buffer)·=>·{ | ||
| 72 | ·*···if·(err)·{ | ||
| 73 | ·*·····console.error('An·error·occurred:',·err); | ||
| 74 | ·*·····process.exitCode·=·1; | ||
| 75 | ·*···} | ||
| 76 | ·*···console.log(buffer.toString()); | ||
| 77 | ·*·}); | ||
| 78 | ·* | ||
| 79 | ·*·//·Or,·Promisified | ||
| 80 | ·* | ||
| 81 | ·*·import·{·promisify·}·from·'node:util'; | ||
| 82 | ·*·const·do_unzip·=·promisify(unzip); | ||
| 83 | ·* | ||
| 84 | ·*·do_unzip(buffer) | ||
| 85 | ·*···.then((buf)·=>·console.log(buf.toString())) | ||
| 86 | ·*···.catch((err)·=>·{ | ||
| 87 | ·*·····console.error('An·error·occurred:',·err); | ||
| 88 | ·*·····process.exitCode·=·1; | ||
| 89 | ·*···}); | ||
| 90 | ·*·``` | ||
| 91 | ·*·@since·v0.5.8 | ||
| 92 | ·*·@see·[source](https://github.com/nodejs/node/blob/v25.x/lib/zlib.js) | ||
| 93 | ·*/ | ||
| 94 | declare·module·"node:zlib"·{ | 1 | declare·module·"node:zlib"·{ |
| 95 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; | 2 | ····import·{·NonSharedBuffer·}·from·"node:buffer"; |
| 96 | ····import·*·as·stream·from·"node:stream"; | 3 | ····import·*·as·stream·from·"node:stream"; |
| 97 | ····interface·ZlibOptions·{ | 4 | ····interface·ZlibOptions·{ |
| 98 | ········/** | 5 | ········/** |
| 99 | ·········*·@default·constants.Z_NO_FLUSH | 6 | ·········*·@default·constants.Z_NO_FLUSH |
| Max diff block lines reached; 0/2828 bytes (0.00%) of diff not shown. | |||
| Offset 107, 588 lines modified | Offset 107, 596 lines modified | ||
| 000006a0:·6550·6174·6820·3d20·2872·6f75·7465·5061··ePath·=·(routePa | 000006a0:·6550·6174·6820·3d20·2872·6f75·7465·5061··ePath·=·(routePa | ||
| 000006b0:·7468·2c20·6f75·7444·6972·2c20·6d69·6d65··th,·outDir,·mime | 000006b0:·7468·2c20·6f75·7444·6972·2c20·6d69·6d65··th,·outDir,·mime | ||
| 000006c0:·5479·7065·2c20·6578·7465·6e73·696f·6e4d··Type,·extensionM | 000006c0:·5479·7065·2c20·6578·7465·6e73·696f·6e4d··Type,·extensionM | ||
| 000006d0:·6170·2920·3d3e·207b·0a20·2063·6f6e·7374··ap)·=>·{.··const | 000006d0:·6170·2920·3d3e·207b·0a20·2063·6f6e·7374··ap)·=>·{.··const | ||
| 000006e0:·2065·7874·656e·7369·6f6e·203d·2064·6574···extension·=·det | 000006e0:·2065·7874·656e·7369·6f6e·203d·2064·6574···extension·=·det | ||
| 000006f0:·6572·6d69·6e65·4578·7465·6e73·696f·6e28··ermineExtension( | 000006f0:·6572·6d69·6e65·4578·7465·6e73·696f·6e28··ermineExtension( | Diff chunk too large, falling back to line-by-line diff (589 lines added, 581 lines removed) | |
| 00000700:·6d69·6d65·5479·7065·2c20·6578·7465·6e73··mimeType,·extens | 00000700:·6d69·6d65·5479·7065·2c20·6578·7465·6e73··mimeType,·extens | ||
| 00000710:·696f·6e4d·6170·293b·0a20·206 | 00000710:·696f·6e4d·6170·293b·0a20·206c·6574·2066··ionMap);.··let·f | ||
| 00000720:·6 | 00000720:·696c·6550·6174·683b·0a20·2069·6620·2872··ilePath;.··if·(r | ||
| 00000730:·6 | 00000730:·6f75·7465·5061·7468·2e65·6e64·7357·6974··outePath.endsWit | ||
| 00000740:·6 | 00000740:·6828·602e·247b·6578·7465·6e73·696f·6e7d··h(`.${extension} | ||
| 00000750:· | 00000750:·6029·2920·7b0a·2020·2020·6669·6c65·5061··`))·{.····filePa | ||
| 00000760:·7 | 00000760:·7468·203d·2028·302c·2069·6d70·6f72·745f··th·=·(0,·import_ | ||
| 00000770:·7 | 00000770:·7574·696c·7332·2e6a·6f69·6e50·6174·6873··utils2.joinPaths | ||
| 00000780:· | 00000780:·2928·6f75·7444·6972·2c20·726f·7574·6550··)(outDir,·routeP | ||
| 00000790:·6 | 00000790:·6174·6829·3b0a·2020·7d20·656c·7365·2069··ath);.··}·else·i | ||
| 000007a0:· | 000007a0:·6620·2872·6f75·7465·5061·7468·203d·3d3d··f·(routePath·=== | ||
| 000007b0:· | 000007b0:·2022·2f22·2920·7b0a·2020·2020·6669·6c65···"/")·{.····file | ||
| 000007c0:· | 000007c0:·5061·7468·203d·2028·302c·2069·6d70·6f72··Path·=·(0,·impor | ||
| 000007d0:· | 000007d0:·745f·7574·696c·7332·2e6a·6f69·6e50·6174··t_utils2.joinPat | ||
| 000007e0:·6 | 000007e0:·6873·2928·6f75·7444·6972·2c20·6069·6e64··hs)(outDir,·`ind | ||
| 000007f0:·2 | 000007f0:·6578·2e24·7b65·7874·656e·7369·6f6e·7d60··ex.${extension}` | ||
| 00000800:· | 00000800:·293b·0a20·207d·2065·6c73·6520·6966·2028··);.··}·else·if·( | ||
| 00000810:· | 00000810:·726f·7574·6550·6174·682e·656e·6473·5769··routePath.endsWi | ||
| 00000820:·7 | 00000820:·7468·2822·2f22·2929·207b·0a20·2020·2066··th("/"))·{.····f | ||
| 00000830:· | 00000830:·696c·6550·6174·6820·3d20·2830·2c20·696d··ilePath·=·(0,·im | ||
| 00000840:·7 | 00000840:·706f·7274·5f75·7469·6c73·322e·6a6f·696e··port_utils2.join | ||
| 00000850:· | 00000850:·5061·7468·7329·286f·7574·4469·722c·2072··Paths)(outDir,·r | ||
| 00000860:· | 00000860:·6f75·7465·5061·7468·2c20·6069·6e64·6578··outePath,·`index | ||
| 00000870:· | 00000870:·2e24·7b65·7874·656e·7369·6f6e·7d60·293b··.${extension}`); | ||
| 00000880:· | 00000880:·0a20·207d·2065·6c73·6520·7b0a·2020·2020··.··}·else·{.···· | ||
| 00000890:· | 00000890:·6669·6c65·5061·7468·203d·2028·302c·2069··filePath·=·(0,·i | ||
| 000008a0:· | 000008a0:·6d70·6f72·745f·7574·696c·7332·2e6a·6f69··mport_utils2.joi | ||
| 000008b0:· | 000008b0:·6e50·6174·6873·2928·6f75·7444·6972·2c20··nPaths)(outDir,· | ||
| 000008c0:· | 000008c0:·6024·7b72·6f75·7465·5061·7468·7d2e·247b··`${routePath}.${ | ||
| 000008d0:· | 000008d0:·6578·7465·6e73·696f·6e7d·6029·3b0a·2020··extension}`);.·· | ||
| 000008e0:· | 000008e0:·7d0a·2020·2830·2c20·696d·706f·7274·5f75··}.··(0,·import_u | ||
| 000008f0:·746 | 000008f0:·7469·6c73·322e·656e·7375·7265·5769·7468··tils2.ensureWith | ||
| 00000900:·6 | 00000900:·696e·4f75·7444·6972·2928·6f75·7444·6972··inOutDir)(outDir | ||
| 00000910:·2 | 00000910:·2c20·6669·6c65·5061·7468·293b·0a20·2072··,·filePath);.··r | ||
| 00000920:· | 00000920:·6574·7572·6e20·6669·6c65·5061·7468·3b0a··eturn·filePath;. | ||
| 00000930:· | 00000930:·7d3b·0a63·6f6e·7374·2070·6172·7365·5265··};.const·parseRe | ||
| 00000940:· | 00000940:·7370·6f6e·7365·436f·6e74·656e·7420·3d20··sponseContent·=· | ||
| 00000950:·7 | 00000950:·6173·796e·6320·2872·6573·706f·6e73·6529··async·(response) | ||
| 00000960:· | 00000960:·203d·3e20·7b0a·2020·636f·6e73·7420·636f···=>·{.··const·co | ||
| 00000970:· | 00000970:·6e74·656e·7454·7970·6520·3d20·7265·7370··ntentType·=·resp | ||
| 00000980:·6 | 00000980:·6f6e·7365·2e68·6561·6465·7273·2e67·6574··onse.headers.get | ||
| 00000990:· | 00000990:·2822·436f·6e74·656e·742d·5479·7065·2229··("Content-Type") | ||
| 000009a0:· | 000009a0:·3b0a·2020·7472·7920·7b0a·2020·2020·6966··;.··try·{.····if | ||
| 000009b0:·20 | 000009b0:·2028·636f·6e74·656e·7454·7970·653f·2e69···(contentType?.i | ||
| 000009c0:·6 | 000009c0:·6e63·6c75·6465·7328·2274·6578·7422·2920··ncludes("text")· | ||
| 000009d0:· | 000009d0:·7c7c·2063·6f6e·7465·6e74·5479·7065·3f2e··||·contentType?. | ||
| 000009e0:·6 | 000009e0:·696e·636c·7564·6573·2822·6a73·6f6e·2229··includes("json") | ||
| 000009f0:· | 000009f0:·2920·7b0a·2020·2020·2020·7265·7475·726e··)·{.······return | ||
| 00000a00:·20 | 00000a00:·2061·7761·6974·2072·6573·706f·6e73·652e···await·response. | ||
| 00000a10:·7 | 00000a10:·7465·7874·2829·3b0a·2020·2020·7d20·656c··text();.····}·el | ||
| 00000a20:· | 00000a20:·7365·207b·0a20·2020·2020·2072·6574·7572··se·{.······retur | ||
| 00000a30:·6 | 00000a30:·6e20·6177·6169·7420·7265·7370·6f6e·7365··n·await·response | ||
| 00000a40:·2e6 | 00000a40:·2e61·7272·6179·4275·6666·6572·2829·3b0a··.arrayBuffer();. | ||
| 00000a50:· | 00000a50:·2020·2020·7d0a·2020·7d20·6361·7463·6820······}.··}·catch· | ||
| 00000a60:·2 | 00000a60:·2865·7272·6f72·2920·7b0a·2020·2020·7468··(error)·{.····th | ||
| 00000a70:· | 00000a70:·726f·7720·6e65·7720·4572·726f·7228·0a20··row·new·Error(.· | ||
| 00000a80:· | 00000a80:·2020·2020·2060·4572·726f·7220·7072·6f63·······`Error·proc | ||
| 00000a90:· | 00000a90:·6573·7369·6e67·2072·6573·706f·6e73·653a··essing·response: | ||
| 00000aa0:·202 | 00000aa0:·2024·7b65·7272·6f72·2069·6e73·7461·6e63···${error·instanc | ||
| 00000ab0:·6 | 00000ab0:·656f·6620·4572·726f·7220·3f20·6572·726f··eof·Error·?·erro | ||
| 00000ac0:·6 | 00000ac0:·722e·6d65·7373·6167·6520·3a20·2255·6e6b··r.message·:·"Unk | ||
| 00000ad0:· | 00000ad0:·6e6f·776e·2065·7272·6f72·227d·600a·2020··nown·error"}`.·· | ||
| 00000ae0:· | 00000ae0:·2020·293b·0a20·207d·0a7d·3b0a·636f·6e73····);.··}.};.cons | ||
| 00000af0:·0 | 00000af0:·7420·6465·6661·756c·7445·7874·656e·7369··t·defaultExtensi | ||
| 00000b00:· | 00000b00:·6f6e·4d61·7020·3d20·7b0a·2020·2274·6578··onMap·=·{.··"tex | ||
| 00000b10:· | 00000b10:·742f·6874·6d6c·223a·2022·6874·6d6c·222c··t/html":·"html", | ||
| 00000b20:· | 00000b20:·0a20·2022·7465·7874·2f78·6d6c·223a·2022··.··"text/xml":·" | ||
| 00000b30:· | 00000b30:·786d·6c22·2c0a·2020·2261·7070·6c69·6361··xml",.··"applica | ||
| 00000b40:· | 00000b40:·7469·6f6e·2f78·6d6c·223a·2022·786d·6c22··tion/xml":·"xml" | ||
| 00000b50:· | 00000b50:·2c0a·2020·2261·7070·6c69·6361·7469·6f6e··,.··"application | ||
| 00000b60:· | 00000b60:·2f79·616d·6c22·3a20·2279·616d·6c22·0a7d··/yaml":·"yaml".} | ||
| 00000b70:· | 00000b70:·3b0a·636f·6e73·7420·6465·7465·726d·696e··;.const·determin | ||
| 00000b80:·6578 | 00000b80:·6545·7874·656e·7369·6f6e·203d·2028·6d69··eExtension·=·(mi | ||
| 00000b90:· | 00000b90:·6d65·5479·7065·2c20·7573·6572·4578·7465··meType,·userExte | ||
| 00000ba0:·7369 | 00000ba0:·6e73·696f·6e4d·6170·2920·3d3e·207b·0a20··nsionMap)·=>·{.· | ||
| 00000bb0:· | 00000bb0:·2063·6f6e·7374·2065·7874·656e·7369·6f6e···const·extension | ||
| 00000bc0:· | 00000bc0:·4d61·7020·3d20·7573·6572·4578·7465·6e73··Map·=·userExtens | ||
| 00000bd0:·6 | 00000bd0:·696f·6e4d·6170·207c·7c20·6465·6661·756c··ionMap·||·defaul | ||
| 00000be0:· | 00000be0:·7445·7874·656e·7369·6f6e·4d61·703b·0a20··tExtensionMap;.· | ||
| 00000bf0:·2 | 00000bf0:·2069·6620·286d·696d·6554·7970·6520·696e···if·(mimeType·in | ||
| 00000c00:· | 00000c00:·2065·7874·656e·7369·6f6e·4d61·7029·207b···extensionMap)·{ | ||
| 00000c10:· | 00000c10:·0a20·2020·2072·6574·7572·6e20·6578·7465··.····return·exte | ||
| 00000c20:· | 00000c20:·6e73·696f·6e4d·6170·5b6d·696d·6554·7970··nsionMap[mimeTyp | ||
| 00000c30:· | 00000c30:·655d·3b0a·2020·7d0a·2020·7265·7475·726e··e];.··}.··return | ||
| 00000c40:·2 | 00000c40:·2028·302c·2069·6d70·6f72·745f·6d69·6d65···(0,·import_mime | ||
| 00000c50:· | 00000c50:·2e67·6574·4578·7465·6e73·696f·6e29·286d··.getExtension)(m | ||
| 00000c60:· | 00000c60:·696d·6554·7970·6529·207c·7c20·2268·746d··imeType)·||·"htm | ||
| 00000c70:· | 00000c70:·6c22·3b0a·7d3b·0a63·6f6e·7374·2063·6f6d··l";.};.const·com | ||
| 00000c80:·6 | 00000c80:·6269·6e65·4265·666f·7265·5265·7175·6573··bineBeforeReques | ||
| 00000c90:· | 00000c90:·7448·6f6f·6b73·203d·2028·686f·6f6b·7329··tHooks·=·(hooks) | ||
| 00000ca0:· | 00000ca0:·203d·3e20·7b0a·2020·6966·2028·2141·7272···=>·{.··if·(!Arr | ||
| 00000cb0:· | 00000cb0:·6179·2e69·7341·7272·6179·2868·6f6f·6b73··ay.isArray(hooks | ||
| Max diff block lines reached; -1/81224 bytes (-0.00%) of diff not shown. | |||
| Offset 47, 135 lines modified | Offset 47, 162 lines modified | ||
| 000002e0:·6566·5072·6f70·287b·7d2c·2022·5f5f·6573··efProp({},·"__es | 000002e0:·6566·5072·6f70·287b·7d2c·2022·5f5f·6573··efProp({},·"__es | ||
| 000002f0:·4d6f·6475·6c65·222c·207b·2076·616c·7565··Module",·{·value | 000002f0:·4d6f·6475·6c65·222c·207b·2076·616c·7565··Module",·{·value | ||
| 00000300:·3a20·7472·7565·207d·292c·206d·6f64·293b··:·true·}),·mod); | 00000300:·3a20·7472·7565·207d·292c·206d·6f64·293b··:·true·}),·mod); | ||
| 00000310:·0a76·6172·2075·7469·6c73·5f65·7870·6f72··.var·utils_expor | 00000310:·0a76·6172·2075·7469·6c73·5f65·7870·6f72··.var·utils_expor | ||
| 00000320:·7473·203d·207b·7d3b·0a5f·5f65·7870·6f72··ts·=·{};.__expor | 00000320:·7473·203d·207b·7d3b·0a5f·5f65·7870·6f72··ts·=·{};.__expor | ||
| 00000330:·7428·7574·696c·735f·6578·706f·7274·732c··t(utils_exports, | 00000330:·7428·7574·696c·735f·6578·706f·7274·732c··t(utils_exports, | ||
| 00000340:·207b·0a20·2064·6972·6e61·6d65·3a20·2829···{.··dirname:·() | 00000340:·207b·0a20·2064·6972·6e61·6d65·3a20·2829···{.··dirname:·() | ||
| 00000350:·203d·3e20·6469·726e·616d·652c·0a20·206 | 00000350:·203d·3e20·6469·726e·616d·652c·0a20·2065···=>·dirname,.··e | ||
| 00000360:·6e73·7572·6557·6974·6869·6e4f·7574·4469··nsureWithinOutDi | |||
| 00000370:·723a·2028·2920·3d3e·2065·6e73·7572·6557··r:·()·=>·ensureW | |||
| 00000380:·6974·6869·6e4f·7574·4469·722c·0a20·2066··ithinOutDir,.··f | |||
| 000003 | 00000390:·696c·7465·7253·7461·7469·6347·656e·6572··ilterStaticGener | ||
| 000003 | 000003a0:·6174·6552·6f75·7465·733a·2028·2920·3d3e··ateRoutes:·()·=> | ||
| 000003 | 000003b0:·2066·696c·7465·7253·7461·7469·6347·656e···filterStaticGen | ||
| 000003 | 000003c0:·6572·6174·6552·6f75·7465·732c·0a20·2069··erateRoutes,.··i | ||
| 000003 | 000003d0:·7344·796e·616d·6963·526f·7574·653a·2028··sDynamicRoute:·( | ||
| 000003 | 000003e0:·2920·3d3e·2069·7344·796e·616d·6963·526f··)·=>·isDynamicRo | ||
| 000003 | 000003f0:·7574·652c·0a20·206a·6f69·6e50·6174·6873··ute,.··joinPaths | ||
| 00000 | 00000400:·3a20·2829·203d·3e20·6a6f·696e·5061·7468··:·()·=>·joinPath | ||
| 00000 | 00000410:·730a·7d29·3b0a·6d6f·6475·6c65·2e65·7870··s.});.module.exp | ||
| 00000 | 00000420:·6f72·7473·203d·205f·5f74·6f43·6f6d·6d6f··orts·=·__toCommo | ||
| 000004 | 00000430:·6e4a·5328·7574·696c·735f·6578·706f·7274··nJS(utils_export | ||
| 000004 | 00000440:·7329·3b0a·7661·7220·696d·706f·7274·5f72··s);.var·import_r | ||
| 000004 | 00000450:·6f75·7465·7220·3d20·7265·7175·6972·6528··outer·=·require( | ||
| 000004 | 00000460:·222e·2e2f·2e2e·2f72·6f75·7465·7222·293b··"../../router"); | ||
| 000004 | 00000470:·0a76·6172·2069·6d70·6f72·745f·6861·6e64··.var·import_hand | ||
| 000004 | 00000480:·6c65·7220·3d20·7265·7175·6972·6528·222e··ler·=·require(". | ||
| 000004 | 00000490:·2e2f·2e2e·2f75·7469·6c73·2f68·616e·646c··./../utils/handl | ||
| 000004 | 000004a0:·6572·2229·3b0a·636f·6e73·7420·6469·726e··er");.const·dirn | ||
| 000004 | 000004b0:·616d·6520·3d20·2870·6174·6829·203d·3e20··ame·=·(path)·=>· | ||
| 000004 | 000004c0:·7b0a·2020·636f·6e73·7420·7365·7061·7261··{.··const·separa | ||
| 000004 | 000004d0:·7465·6450·6174·6820·3d20·7061·7468·2e73··tedPath·=·path.s | ||
| 000004 | 000004e0:·706c·6974·282f·5b5c·2f5c·5c5d·2f29·3b0a··plit(/[\/\\]/);. | ||
| 000004 | 000004f0:·2020·7265·7475·726e·2073·6570·6172·6174····return·separat | ||
| 00000 | 00000500:·6564·5061·7468·2e73·6c69·6365·2830·2c20··edPath.slice(0,· | ||
| 00000 | 00000510:·2d31·292e·6a6f·696e·2822·2f22·293b·0a7d··-1).join("/");.} | ||
| 00000 | 00000520:·3b0a·636f·6e73·7420·6e6f·726d·616c·697a··;.const·normaliz | ||
| 000005 | 00000530:·6550·6174·6820·3d20·2870·6174·6829·203d··ePath·=·(path)·= | ||
| 000005 | 00000540:·3e20·7b0a·2020·7265·7475·726e·2070·6174··>·{.··return·pat | ||
| 000005 | 00000550:·682e·7265·706c·6163·6528·2f28·5c5c·292f··h.replace(/(\\)/ | ||
| 000005 | 00000560:·672c·2022·2f22·292e·7265·706c·6163·6528··g,·"/").replace( | ||
| 000005 | 00000570:·2f5c·2f24·2f67·2c20·2222·293b·0a7d·3b0a··/\/$/g,·"");.};. | ||
| 000005 | 00000580:·636f·6e73·7420·6861·6e64·6c65·5061·7265··const·handlePare | ||
| 000005 | 00000590:·6e74·203d·2028·7265·7375·6c74·5061·7468··nt·=·(resultPath | ||
| 000005 | 000005a0:·732c·2062·6566·6f72·6550·6172·656e·7446··s,·beforeParentF | ||
| 000005 | 000005b0:·6c61·6729·203d·3e20·7b0a·2020·6966·2028··lag)·=>·{.··if·( | ||
| 000005 | 000005c0:·7265·7375·6c74·5061·7468·732e·6c65·6e67··resultPaths.leng | ||
| 000005 | 000005d0:·7468·203d·3d3d·2030·207c·7c20·6265·666f··th·===·0·||·befo | ||
| 000005 | 000005e0:·7265·5061·7265·6e74·466c·6167·2920·7b0a··reParentFlag)·{. | ||
| 000005 | 000005f0:·2020·2020·7265·7375·6c74·5061·7468·732e······resultPaths. | ||
| 00000 | 00000600:·7075·7368·2822·2e2e·2229·3b0a·2020·7d20··push("..");.··}· | ||
| 00000 | 00000610:·656c·7365·207b·0a20·2020·2072·6573·756c··else·{.····resul | ||
| 00000 | 00000620:·7450·6174·6873·2e70·6f70·2829·3b0a·2020··tPaths.pop();.·· | ||
| 000006 | 00000630:·7d0a·7d3b·0a63·6f6e·7374·2068·616e·646c··}.};.const·handl | ||
| 000006 | 00000640:·654e·6f6e·446f·7420·3d20·2870·6174·682c··eNonDot·=·(path, | ||
| 000006 | 00000650:·2072·6573·756c·7450·6174·6873·2920·3d3e···resultPaths)·=> | ||
| 000006 | 00000660:·207b·0a20·2070·6174·6820·3d20·7061·7468···{.··path·=·path | ||
| 000006 | 00000670:·2e72·6570·6c61·6365·282f·5e5c·2e28·3f21··.replace(/^\.(?! | ||
| 000006 | 00000680:·2e29·2f2c·2022·2229·3b0a·2020·6966·2028··.)/,·"");.··if·( | ||
| 000006 | 00000690:·7061·7468·2021·3d3d·2022·2229·207b·0a20··path·!==·"")·{.· | ||
| 000006 | 000006a0:·2020·2072·6573·756c·7450·6174·6873·2e70·····resultPaths.p | ||
| 000006 | 000006b0:·7573·6828·7061·7468·293b·0a20·207d·0a7d··ush(path);.··}.} | ||
| 000006 | 000006c0:·3b0a·636f·6e73·7420·6861·6e64·6c65·5365··;.const·handleSe | ||
| 000006 | 000006d0:·676d·656e·7473·203d·2028·7061·7468·732c··gments·=·(paths, | ||
| 000006 | 000006e0:·2072·6573·756c·7450·6174·6873·2920·3d3e···resultPaths)·=> | ||
| 000006 | 000006f0:·207b·0a20·206c·6574·2062·6566·6f72·6550···{.··let·beforeP | ||
| 00000 | 00000700:·6172·656e·7446·6c61·6720·3d20·6661·6c73··arentFlag·=·fals | ||
| 00000 | 00000710:·653b·0a20·2066·6f72·2028·636f·6e73·7420··e;.··for·(const· | ||
| 00000 | 00000720:·7061·7468·206f·6620·7061·7468·7329·207b··path·of·paths)·{ | ||
| 000007 | 00000730:·0a20·2020·2069·6620·2870·6174·6820·3d3d··.····if·(path·== | ||
| 000007 | 00000740:·3d20·222e·2e22·2920·7b0a·2020·2020·2020··=·"..")·{.······ | ||
| 000007 | 00000750:·6861·6e64·6c65·5061·7265·6e74·2872·6573··handleParent(res | ||
| 000007 | 00000760:·756c·7450·6174·6873·2c20·6265·666f·7265··ultPaths,·before | ||
| 000007 | 00000770:·5061·7265·6e74·466c·6167·293b·0a20·2020··ParentFlag);.··· | ||
| 000007 | 00000780:·2020·2062·6566·6f72·6550·6172·656e·7446·····beforeParentF | ||
| 000007 | 00000790:·6c61·6720·3d20·7472·7565·3b0a·2020·2020··lag·=·true;.···· | ||
| 000007 | 000007a0:·7d20·656c·7365·207b·0a20·2020·2020·2068··}·else·{.······h | ||
| 000007 | 000007b0:·616e·646c·654e·6f6e·446f·7428·7061·7468··andleNonDot(path | ||
| 000007 | 000007c0:·2c20·7265·7375·6c74·5061·7468·7329·3b0a··,·resultPaths);. | ||
| 000007 | 000007d0:·2020·2020·2020·6265·666f·7265·5061·7265········beforePare | ||
| 000007 | 000007e0:·6e74·466c·6167·203d·2066·616c·7365·3b0a··ntFlag·=·false;. | ||
| 000007 | 000007f0:·2020·2020·7d0a·2020·7d0a·7d3b·0a63·6f6e······}.··}.};.con | ||
| 00000 | 00000800:·7374·206a·6f69·6e50·6174·6873·203d·2028··st·joinPaths·=·( | ||
| 00000 | 00000810:·2e2e·2e70·6174·6873·2920·3d3e·207b·0a20··...paths)·=>·{.· | ||
| 00000 | 00000820:·2070·6174·6873·203d·2070·6174·6873·2e6d···paths·=·paths.m | ||
| 000008 | 00000830:·6170·286e·6f72·6d61·6c69·7a65·5061·7468··ap(normalizePath | ||
| 000008 | 00000840:·293b·0a20·2063·6f6e·7374·2072·6573·756c··);.··const·resul | ||
| 000008 | 00000850:·7450·6174·6873·203d·205b·5d3b·0a20·2068··tPaths·=·[];.··h | ||
| 000008 | 00000860:·616e·646c·6553·6567·6d65·6e74·7328·7061··andleSegments(pa | ||
| 000008 | 00000870:·7468·732e·6a6f·696e·2822·2f22·292e·7370··ths.join("/").sp | ||
| 000008 | 00000880:·6c69·7428·222f·2229·2c20·7265·7375·6c74··lit("/"),·result | ||
| 000008 | 00000890:·5061·7468·7329·3b0a·2020·7265·7475·726e··Paths);.··return | ||
| 000008 | 000008a0:·2028·7061·7468·735b·305d·5b30·5d20·3d3d···(paths[0][0]·== | ||
| 000008 | 000008b0:·3d20·222f·2220·3f20·222f·2220·3a20·2222··=·"/"·?·"/"·:·"" | ||
| 000008 | 000008c0:·2920·2b20·7265·7375·6c74·5061·7468·732e··)·+·resultPaths. | ||
| 000008 | 000008d0:·6a6f·696e·2822·2f22·293b·0a7d·3b0a·636f··join("/");.};.co | ||
| 000008 | 000008e0:·6e73·7420·6669·6c74·6572·5374·6174·6963··nst·filterStatic | ||
| 000008 | 000008f0:·4765·6e65·7261·7465·526f·7574·6573·203d··GenerateRoutes·= | ||
| 00000 | 00000900:·2028·686f·6e6f·2920·3d3e·207b·0a20·2072···(hono)·=>·{.··r | ||
| Max diff block lines reached; -1/20010 bytes (-0.00%) of diff not shown. | |||
| Offset 101, 179 lines modified | Offset 101, 229 lines modified | ||
| 00000640:·6541·6464·7229·2861·6464·7253·7472·293b··eAddr)(addrStr); | 00000640:·6541·6464·7229·2861·6464·7253·7472·293b··eAddr)(addrStr); | ||
| 00000650:·0a20·2020·2020·2020·2069·6620·2874·7970··.········if·(typ | 00000650:·0a20·2020·2020·2020·2069·6620·2874·7970··.········if·(typ | ||
| 00000660:·6532·203d·3d3d·2076·6f69·6420·3029·207b··e2·===·void·0)·{ | 00000660:·6532·203d·3d3d·2076·6f69·6420·3029·207b··e2·===·void·0)·{ | ||
| 00000670:·0a20·2020·2020·2020·2020·2074·6872·6f77··.··········throw | 00000670:·0a20·2020·2020·2020·2020·2074·6872·6f77··.··········throw | ||
| 00000680:·206e·6577·2054·7970·6545·7272·6f72·2860···new·TypeError(` | 00000680:·206e·6577·2054·7970·6545·7272·6f72·2860···new·TypeError(` | ||
| 00000690:·496e·7661·6c69·6420·7275·6c65·3a20·247b··Invalid·rule:·${ | 00000690:·496e·7661·6c69·6420·7275·6c65·3a20·247b··Invalid·rule:·${ | ||
| 000006a0:·7275·6c65·7d60·293b·0a20·2020·2020·2020··rule}`);.······· | 000006a0:·7275·6c65·7d60·293b·0a20·2020·2020·2020··rule}`);.······· | ||
| 000006b0:·207d·0a20·2020·2020·2020·206 | 000006b0:·207d·0a20·2020·2020·2020·206c·6574·2069···}.········let·i | ||
| 000006c0:· | 000006c0:·7349·5076·3420·3d20·7479·7065·3220·3d3d··sIPv4·=·type2·== | ||
| 000006d0:·3d | 000006d0:·3d20·2249·5076·3422·3b0a·2020·2020·2020··=·"IPv4";.······ | ||
| 000006e0:·2020· | 000006e0:·2020·6c65·7420·7072·6566·6978·203d·2070····let·prefix·=·p | ||
| 000006f0:· | 000006f0:·6172·7365·496e·7428·7365·7061·7261·7465··arseInt(separate | ||
| 00000700:· | 00000700:·6452·756c·655b·315d·293b·0a20·2020·2020··dRule[1]);.····· | ||
| 00000710:·2020·20 | 00000710:·2020·2069·6620·2869·7349·5076·3420·3f20·····if·(isIPv4·?· | ||
| 00000720:· | 00000720:·7072·6566·6978·203d·3d3d·2033·3220·3a20··prefix·===·32·:· | ||
| 00000730:· | 00000730:·7072·6566·6978·203d·3d3d·2031·3238·2920··prefix·===·128)· | ||
| 00000740:· | 00000740:·7b0a·2020·2020·2020·2020·2020·7275·6c65··{.··········rule | ||
| 00000750:· | 00000750:·203d·2061·6464·7253·7472·3b0a·2020·2020···=·addrStr;.···· | ||
| 00000760:·2020·2020· | 00000760:·2020·2020·7d20·656c·7365·207b·0a20·2020······}·else·{.··· | ||
| 00000770:·0a20·2020·2020·2020·2020·2063·6f6e·7374··.··········const | |||
| 000007 | 00000770:·2020·2020·2020·206c·6574·2061·6464·7220·········let·addr· | ||
| 00000780:·3d20·2869·7349·5076·3420·3f20·696d·706f··=·(isIPv4·?·impo | |||
| 00000790:·7274·5f69·7061·6464·722e·636f·6e76·6572··rt_ipaddr.conver | |||
| 000007a0:·7449·5076·3454·6f42·696e·6172·7920·3a20··tIPv4ToBinary·:· | |||
| 000007 | 000007b0:·696d·706f·7274·5f69·7061·6464·722e·636f··import_ipaddr.co | ||
| 000007 | 000007c0:·6e76·6572·7449·5076·3654·6f42·696e·6172··nvertIPv6ToBinar | ||
| 000007d0:·7929·2861·6464·7253·7472·293b·0a20·2020··y)(addrStr);.··· | |||
| 000007e0:·2020·2020·2020·2069·6620·2874·7970·6532·········if·(type2 | |||
| 000007f0:·203d·3d3d·2022·4950·7636·2220·2626·2028···===·"IPv6"·&&·( | |||
| 000007b0:·6172·7920·3a20·696d·706f·7274·5f69·7061··ary·:·import_ipa | |||
| 000007c0:·6464·722e·636f·6e76·6572·7449·5076·3654··ddr.convertIPv6T | |||
| 000007d0:·6f42·696e·6172·7929·2861·6464·7253·7472··oBinary)(addrStr | |||
| 000007e0:·293b·0a20·2020·2020·2020·2020·2063·6f6e··);.··········con | |||
| 000007f0:·7374·206d·6173·6b20·3d20·2831·6e20·3c3c··st·mask·=·(1n·<< | |||
| 00000800:·2042·6967·496e·7428·7072·6566·6978·2929···BigInt(prefix)) | |||
| 00000810:·202d·2031·6e20·3c3c·2042·6967·496e·7428···-·1n·<<·BigInt( | |||
| 00000820:·2869·7349·5076·3420·3f20·3332·203a·2031··(isIPv4·?·32·:·1 | |||
| 00000830:·3238·2920·2d20·7072·6566·6978·293b·0a20··28)·-·prefix);.· | |||
| 00000840:·2020·2020·2020·2020·2063·6964·7252·756c···········cidrRul | |||
| 00000850:·6573·2e70·7573·6828·5b69·7349·5076·342c··es.push([isIPv4, | |||
| 00000860:·2061·6464·7220·2620·6d61·736b·2c20·6d61···addr·&·mask,·ma | |||
| 00000870:·736b·5d29·3b0a·2020·2020·2020·2020·2020··sk]);.·········· | |||
| 00000880:·636f·6e74·696e·7565·3b0a·2020·2020·2020··continue;.······ | |||
| 00000890:·2020·7d0a·2020·2020·2020·7d0a·2020·2020····}.······}.···· | |||
| 000008a0:·2020·636f·6e73·7420·7479·7065·203d·2028····const·type·=·( | |||
| 000008 | 00000800:·302c·2069·6d70·6f72·745f·6970·6164·6472··0,·import_ipaddr | ||
| 00000810:·2e69·7349·5076·344d·6170·7065·6449·5076··.isIPv4MappedIPv | |||
| 00000820:·3629·2861·6464·7229·2026·2620·7072·6566··6)(addr)·&&·pref | |||
| 00000830:·6978·203e·3d20·3936·2920·7b0a·2020·2020··ix·>=·96)·{.···· | |||
| 00000840:·2020·2020·2020·2020·6973·4950·7634·203d··········isIPv4·= | |||
| 000008c0:·2e64·6973·7469·6e63·7452·656d·6f74·6541··.distinctRemoteA | |||
| 000008d0:·6464·7229·2872·756c·6529·3b0a·2020·2020··ddr)(rule);.···· | |||
| 000008e0:·2020·6966·2028·7479·7065·203d·3d3d·2076····if·(type·===·v | |||
| 000008f0:·6f69·6420·3029·207b·0a20·2020·2020·2020··oid·0)·{.······· | |||
| 00000900:·2074·6872·6f77·206e·6577·2054·7970·6545···throw·new·TypeE | |||
| 00000910:·7272·6f72·2860·496e·7661·6c69·6420·7275··rror(`Invalid·ru | |||
| 00000920:·6c65·3a20·247b·7275·6c65·7d60·293b·0a20··le:·${rule}`);.· | |||
| 00000930:·2020·2020·207d·0a20·2020·2020·2073·7461·······}.······sta | |||
| 00000940:·7469·6352·756c·6573·2e61·6464·280a·2020··ticRules.add(.·· | |||
| 00000950:·2020·2020·2020·7479·7065·203d·3d3d·2022········type·===·" | |||
| 00000960:·4950·7634·2220·3f20·7275·6c65·203a·2028··IPv4"·?·rule·:·( | |||
| 00000970:·302c·2069·6d70·6f72·745f·6970·6164·6472··0,·import_ipaddr | |||
| 00000980:·2e63·6f6e·7665·7274·4950·7636·4269·6e61··.convertIPv6Bina | |||
| 00000990:·7279·546f·5374·7269·6e67·2928·2830·2c20··ryToString)((0,· | |||
| 000009a0:·696d·706f·7274·5f69·7061·6464·722e·636f··import_ipaddr.co | |||
| 000009b0:·6e76·6572·7449·5076·3654·6f42·696e·6172··nvertIPv6ToBinar | |||
| 000009c0:·7929·2872·756c·6529·290a·2020·2020·2020··y)(rule)).······ | |||
| 000009d0:·2020·2f2f·206e·6f72·6d61·6c69·7a65·2049····//·normalize·I | |||
| 000009e0:·5076·3620·6164·6472·6573·7320·2865·2e67··Pv6·address·(e.g | |||
| 000009f0:·2e20·3030·3030·3a30·3030·303a·3030·3030··.·0000:0000:0000 | |||
| 00000a00:·3a30·3030·303a·3030·3030·3a30·3030·303a··:0000:0000:0000: | |||
| 00000a10:·3030·3030·3a30·3030·3120·3d3e·203a·3a31··0000:0001·=>·::1 | |||
| 00000a20:·290a·2020·2020·2020·293b·0a20·2020·207d··).······);.····} | |||
| 00000a30:·0a20·207d·0a20·2072·6574·7572·6e20·2872··.··}.··return·(r | |||
| 00000a40:·656d·6f74·6529·203d·3e20·7b0a·2020·2020··emote)·=>·{.···· | |||
| 00000a50:·6966·2028·7374·6174·6963·5275·6c65·732e··if·(staticRules. | |||
| 00000a60:·6861·7328·7265·6d6f·7465·2e61·6464·7229··has(remote.addr) | |||
| 00000a70:·2920·7b0a·2020·2020·2020·7265·7475·726e··)·{.······return | |||
| 00000 | 00000850:·2074·7275·653b·0a20·2020·2020·2020·2020···true;.········· | ||
| 00000860:·2020·2061·6464·7220·3d20·2830·2c20·696d·····addr·=·(0,·im | |||
| 00000a90:·2066·6f72·2028·636f·6e73·7420·5b69·7349···for·(const·[isI | |||
| 00000aa0:·5076·342c·2061·6464·722c·206d·6173·6b5d··Pv4,·addr,·mask] | |||
| 00000ab0:·206f·6620·6369·6472·5275·6c65·7329·207b···of·cidrRules)·{ | |||
| 00000ac0:·0a20·2020·2020·2069·6620·2869·7349·5076··.······if·(isIPv | |||
| 00000ad0:·3420·213d·3d20·7265·6d6f·7465·2e69·7349··4·!==·remote.isI | |||
| 00000ae0:·5076·3429·207b·0a20·2020·2020·2020·2063··Pv4)·{.········c | |||
| 00000af0:·6f6e·7469·6e75·653b·0a20·2020·2020·207d··ontinue;.······} | |||
| 00000b00:·0a20·2020·2020·2063·6f6e·7374·2072·656d··.······const·rem | |||
| 00000b10:·6f74·6541·6464·7220·3d20·7265·6d6f·7465··oteAddr·=·remote | |||
| 00000b20:·2e62·696e·6172·7941·6464·7220·7c7c·3d20··.binaryAddr·||=· | |||
| 00000b30:·2869·7349·5076·3420·3f20·696d·706f·7274··(isIPv4·?·import | |||
| 00000b40:·5f69·7061·6464·722e·636f·6e76·6572·7449··_ipaddr.convertI | |||
| 00000b50:·5076·3454·6f42·696e·6172·7920·3a20·696d··Pv4ToBinary·:·im | |||
| 00000 | 00000870:·706f·7274·5f69·7061·6464·722e·636f·6e76··port_ipaddr.conv | ||
| 00000b70:·6572·7449·5076·3654·6f42·696e·6172·7929··ertIPv6ToBinary) | |||
| 00000b80:·2872·656d·6f74·652e·6164·6472·293b·0a20··(remote.addr);.· | |||
| 00000b90:·2020·2020·2069·6620·2828·7265·6d6f·7465·······if·((remote | |||
| 00000 | 00000880:·6572·7449·5076·344d·6170·7065·6449·5076··ertIPv4MappedIPv | ||
| 00000890:·3654·6f49·5076·3429·2861·6464·7229·3b0a··6ToIPv4)(addr);. | |||
| Max diff block lines reached; -1/27682 bytes (-0.00%) of diff not shown. | |||
| Offset 101, 121 lines modified | Offset 101, 122 lines modified | ||
| 00000640:·2020·207d·2065·6c73·6520·7b0a·2020·2020·····}·else·{.···· | 00000640:·2020·207d·2065·6c73·6520·7b0a·2020·2020·····}·else·{.···· | ||
| 00000650:·2020·7472·7920·7b0a·2020·2020·2020·2020····try·{.········ | 00000650:·2020·7472·7920·7b0a·2020·2020·2020·2020····try·{.········ | ||
| 00000660:·6669·6c65·6e61·6d65·203d·2028·302c·2069··filename·=·(0,·i | 00000660:·6669·6c65·6e61·6d65·203d·2028·302c·2069··filename·=·(0,·i | ||
| 00000670:·6d70·6f72·745f·7572·6c2e·7472·7944·6563··mport_url.tryDec | 00000670:·6d70·6f72·745f·7572·6c2e·7472·7944·6563··mport_url.tryDec | ||
| 00000680:·6f64·6555·5249·2928·632e·7265·712e·7061··odeURI)(c.req.pa | 00000680:·6f64·6555·5249·2928·632e·7265·712e·7061··odeURI)(c.req.pa | ||
| 00000690:·7468·293b·0a20·2020·2020·2020·2069·6620··th);.········if· | 00000690:·7468·293b·0a20·2020·2020·2020·2069·6620··th);.········if· | ||
| 000006a0:·282f·283f·3a5e·7c5b·5c2f·5c5c·5d29·5c2e··(/(?:^|[\/\\])\. | 000006a0:·282f·283f·3a5e·7c5b·5c2f·5c5c·5d29·5c2e··(/(?:^|[\/\\])\. | ||
| 000006b0:· | 000006b0:·7b31·2c32·7d28·3f3a·247c·5b5c·2f5c·5c5d··{1,2}(?:$|[\/\\] | ||
| 000006c0:·297c·5b5c·2f5c·5c5d·7b32·2c7d·2f2e·7465··)|[\/\\]{2,}/.te | |||
| 000006 | 000006d0:·7374·2866·696c·656e·616d·6529·2920·7b0a··st(filename))·{. | ||
| 000006 | 000006e0:·2020·2020·2020·2020·2020·7468·726f·7720············throw· | ||
| 000006 | 000006f0:·6e65·7720·4572·726f·7228·293b·0a20·2020··new·Error();.··· | ||
| 000006f0:·2020·2020·2020·207d·0a20·2020·2020·207d·········}.······} | |||
| 00000700:·2063·6174·6368·207b·0a20·2020·2020·2020···catch·{.······· | |||
| 00000710:·2061·7761·6974·206f·7074·696f·6e73·2e6f···await·options.o | |||
| 00000720:·6e4e·6f74·466f·756e·643f·2e28·632e·7265··nNotFound?.(c.re | |||
| 00000730:·712e·7061·7468·2c20·6329·3b0a·2020·2020··q.path,·c);.···· | |||
| 00000740:·2020·2020·7265·7475·726e·206e·6578·7428······return·next( | |||
| 00000750:·293b·0a20·2020·2020·207d·0a20·2020·207d··);.······}.····} | |||
| 00000760:·0a20·2020·206c·6574·2070·6174·6820·3d20··.····let·path·=· | |||
| 00000770:·6a6f·696e·280a·2020·2020·2020·726f·6f74··join(.······root | |||
| 00000780:·2c0a·2020·2020·2020·216f·7074·696f·6e50··,.······!optionP | |||
| 00000790:·6174·6820·2626·206f·7074·696f·6e73·2e72··ath·&&·options.r | |||
| 000007a0:·6577·7269·7465·5265·7175·6573·7450·6174··ewriteRequestPat | |||
| 000007b0:·6820·3f20·6f70·7469·6f6e·732e·7265·7772··h·?·options.rewr | |||
| 000007c0:·6974·6552·6571·7565·7374·5061·7468·2866··iteRequestPath(f | |||
| 000007d0:·696c·656e·616d·6529·203a·2066·696c·656e··ilename)·:·filen | |||
| 000007e0:·616d·650a·2020·2020·293b·0a20·2020·2069··ame.····);.····i | |||
| 000007f0:·6620·286f·7074·696f·6e73·2e69·7344·6972··f·(options.isDir | |||
| 00000800:·2026·2620·6177·6169·7420·6f70·7469·6f6e···&&·await·option | |||
| 00000810:·732e·6973·4469·7228·7061·7468·2929·207b··s.isDir(path))·{ | |||
| 00000820:·0a20·2020·2020·2070·6174·6820·3d20·6a6f··.······path·=·jo | |||
| 00000830:·696e·2870·6174·682c·2044·4546·4155·4c54··in(path,·DEFAULT | |||
| 00000840:·5f44·4f43·554d·454e·5429·3b0a·2020·2020··_DOCUMENT);.···· | |||
| 00000850:·7d0a·2020·2020·636f·6e73·7420·6765·7443··}.····const·getC | |||
| 00000860:·6f6e·7465·6e74·203d·206f·7074·696f·6e73··ontent·=·options | |||
| 00000870:·2e67·6574·436f·6e74·656e·743b·0a20·2020··.getContent;.··· | |||
| 00000880:·206c·6574·2063·6f6e·7465·6e74·203d·2061···let·content·=·a | |||
| 00000890:·7761·6974·2067·6574·436f·6e74·656e·7428··wait·getContent( | |||
| 000008a0:·7061·7468·2c20·6329·3b0a·2020·2020·6966··path,·c);.····if | |||
| 000008b0:·2028·636f·6e74·656e·7420·696e·7374·616e···(content·instan | |||
| 000008c0:·6365·6f66·2052·6573·706f·6e73·6529·207b··ceof·Response)·{ | |||
| 000008d0:·0a20·2020·2020·2072·6574·7572·6e20·632e··.······return·c. | |||
| 000008e0:·6e65·7752·6573·706f·6e73·6528·636f·6e74··newResponse(cont | |||
| 000008f0:·656e·742e·626f·6479·2c20·636f·6e74·656e··ent.body,·conten | |||
| 00000900:·7429·3b0a·2020·2020·7d0a·2020·2020·6966··t);.····}.····if | |||
| 00000910:·2028·636f·6e74·656e·7429·207b·0a20·2020···(content)·{.··· | |||
| 00000920:·2020·2063·6f6e·7374·206d·696d·6554·7970·····const·mimeTyp | |||
| 00000930:·6520·3d20·6f70·7469·6f6e·732e·6d69·6d65··e·=·options.mime | |||
| 00000940:·7320·2626·2028·302c·2069·6d70·6f72·745f··s·&&·(0,·import_ | |||
| 00000950:·6d69·6d65·2e67·6574·4d69·6d65·5479·7065··mime.getMimeType | |||
| 00000960:·2928·7061·7468·2c20·6f70·7469·6f6e·732e··)(path,·options. | |||
| 00000970:·6d69·6d65·7329·207c·7c20·2830·2c20·696d··mimes)·||·(0,·im | |||
| 00000980:·706f·7274·5f6d·696d·652e·6765·744d·696d··port_mime.getMim | |||
| 00000990:·6554·7970·6529·2870·6174·6829·3b0a·2020··eType)(path);.·· | |||
| 000009a0:·2020·2020·632e·6865·6164·6572·2822·436f······c.header("Co | |||
| 000009b0:·6e74·656e·742d·5479·7065·222c·206d·696d··ntent-Type",·mim | |||
| 000009c0:·6554·7970·6520·7c7c·2022·6170·706c·6963··eType·||·"applic | |||
| 000009d0:·6174·696f·6e2f·6f63·7465·742d·7374·7265··ation/octet-stre | |||
| 000009e0:·616d·2229·3b0a·2020·2020·2020·6966·2028··am");.······if·( | |||
| 000009f0:·6f70·7469·6f6e·732e·7072·6563·6f6d·7072··options.precompr | |||
| 00000a00:·6573·7365·6420·2626·2028·216d·696d·6554··essed·&&·(!mimeT | |||
| 00000a10:·7970·6520·7c7c·2069·6d70·6f72·745f·636f··ype·||·import_co | |||
| 00000a20:·6d70·7265·7373·2e43·4f4d·5052·4553·5349··mpress.COMPRESSI | |||
| 00000a30:·424c·455f·434f·4e54·454e·545f·5459·5045··BLE_CONTENT_TYPE | |||
| 00000a40:·5f52·4547·4558·2e74·6573·7428·6d69·6d65··_REGEX.test(mime | |||
| 00000a50:·5479·7065·2929·2920·7b0a·2020·2020·2020··Type)))·{.······ | |||
| 00000a60:·2020·636f·6e73·7420·6163·6365·7074·456e····const·acceptEn | |||
| 00000a70:·636f·6469·6e67·5365·7420·3d20·6e65·7720··codingSet·=·new· | |||
| 00000a80:·5365·7428·0a20·2020·2020·2020·2020·2063··Set(.··········c | |||
| 00000a90:·2e72·6571·2e68·6561·6465·7228·2241·6363··.req.header("Acc | |||
| 00000aa0:·6570·742d·456e·636f·6469·6e67·2229·3f2e··ept-Encoding")?. | |||
| 00000ab0:·7370·6c69·7428·222c·2229·2e6d·6170·2828··split(",").map(( | |||
| 00000ac0:·656e·636f·6469·6e67·2920·3d3e·2065·6e63··encoding)·=>·enc | |||
| 00000ad0:·6f64·696e·672e·7472·696d·2829·290a·2020··oding.trim()).·· | |||
| 00000ae0:·2020·2020·2020·293b·0a20·2020·2020·2020········);.······· | |||
| 00000af0:·2066·6f72·2028·636f·6e73·7420·656e·636f···for·(const·enco | |||
| 00000b00:·6469·6e67·206f·6620·454e·434f·4449·4e47··ding·of·ENCODING | |||
| 00000b10:·535f·4f52·4445·5245·445f·4b45·5953·2920··S_ORDERED_KEYS)· | |||
| 00000b20:·7b0a·2020·2020·2020·2020·2020·6966·2028··{.··········if·( | |||
| 00000b30:·2161·6363·6570·7445·6e63·6f64·696e·6753··!acceptEncodingS | |||
| 00000b40:·6574·2e68·6173·2865·6e63·6f64·696e·6729··et.has(encoding) | |||
| 00000b50:·2920·7b0a·2020·2020·2020·2020·2020·2020··)·{.············ | |||
| 00000b60:·636f·6e74·696e·7565·3b0a·2020·2020·2020··continue;.······ | |||
| 00000b70:·2020·2020·7d0a·2020·2020·2020·2020·2020······}.·········· | |||
| 00000b80:·636f·6e73·7420·636f·6d70·7265·7373·6564··const·compressed | |||
| 00000b90:·436f·6e74·656e·7420·3d20·6177·6169·7420··Content·=·await· | |||
| 00000ba0:·6765·7443·6f6e·7465·6e74·2870·6174·6820··getContent(path· | |||
| 00000bb0:·2b20·454e·434f·4449·4e47·535b·656e·636f··+·ENCODINGS[enco | |||
| 00000bc0:·6469·6e67·5d2c·2063·293b·0a20·2020·2020··ding],·c);.····· | |||
| 00000bd0:·2020·2020·2069·6620·2863·6f6d·7072·6573·······if·(compres | |||
| 00000be0:·7365·6443·6f6e·7465·6e74·2920·7b0a·2020··sedContent)·{.·· | |||
| 00000bf0:·2020·2020·2020·2020·2020·636f·6e74·656e············conten | |||
| 00000c00:·7420·3d20·636f·6d70·7265·7373·6564·436f··t·=·compressedCo | |||
| 00000c10:·6e74·656e·743b·0a20·2020·2020·2020·2020··ntent;.········· | |||
| 00000c20:·2020·2063·2e68·6561·6465·7228·2243·6f6e·····c.header("Con | |||
| 00000c30:·7465·6e74·2d45·6e63·6f64·696e·6722·2c20··tent-Encoding",· | |||
| 00000c40:·656e·636f·6469·6e67·293b·0a20·2020·2020··encoding);.····· | |||
| 00000c50:·2020·2020·2020·2063·2e68·6561·6465·7228·········c.header( | |||
| Max diff block lines reached; -1/16280 bytes (-0.01%) of diff not shown. | |||
| Offset 128, 264 lines modified | Offset 128, 299 lines modified | ||
| 000007f0:·2066·616c·7365·3b0a·2020·7d0a·7d3b·0a63···false;.··}.};.c | 000007f0:·2066·616c·7365·3b0a·2020·7d0a·7d3b·0a63···false;.··}.};.c | ||
| 00000800:·6f6e·7374·2076·616c·6964·436f·6f6b·6965··onst·validCookie | 00000800:·6f6e·7374·2076·616c·6964·436f·6f6b·6965··onst·validCookie | ||
| 00000810:·4e61·6d65·5265·6745·7820·3d20·2f5e·5b5c··NameRegEx·=·/^[\ | 00000810:·4e61·6d65·5265·6745·7820·3d20·2f5e·5b5c··NameRegEx·=·/^[\ | ||
| 00000820:·7721·2324·2526·272a·2e5e·607c·7e2b·2d5d··w!#$%&'*.^`|~+-] | 00000820:·7721·2324·2526·272a·2e5e·607c·7e2b·2d5d··w!#$%&'*.^`|~+-] | ||
| 00000830:·2b24·2f3b·0a63·6f6e·7374·2076·616c·6964··+$/;.const·valid | 00000830:·2b24·2f3b·0a63·6f6e·7374·2076·616c·6964··+$/;.const·valid | ||
| 00000840:·436f·6f6b·6965·5661·6c75·6552·6567·4578··CookieValueRegEx | 00000840:·436f·6f6b·6965·5661·6c75·6552·6567·4578··CookieValueRegEx | ||
| 00000850:·203d·202f·5e5b·2021·232d·3a3c·2d5b·5c5d···=·/^[·!#-:<-[\] | 00000850:·203d·202f·5e5b·2021·232d·3a3c·2d5b·5c5d···=·/^[·!#-:<-[\] | ||
| 00000860:·2d7e·5d2a·242f·3b0a·636f·6e73·7420·7 | 00000860:·2d7e·5d2a·242f·3b0a·636f·6e73·7420·7472··-~]*$/;.const·tr | ||
| 00000870:·7273·6520·3d20·2863·6f6f·6b69·652c·206e··rse·=·(cookie,·n | |||
| 00000880:·616d·6529·203d·3e20·7b0a·2020·6966·2028··ame)·=>·{.··if·( | |||
| 00000890:·6e61·6d65·2026·2620·636f·6f6b·6965·2e69··name·&&·cookie.i | |||
| 000008a0:·6e64·6578·4f66·286e·616d·6529·203d·3d3d··ndexOf(name)·=== | |||
| 000008b0:·202d·3129·207b·0a20·2020·2072·6574·7572···-1)·{.····retur | |||
| 000008c0:·6e20·7b7d·3b0a·2020·7d0a·2020·636f·6e73··n·{};.··}.··cons | |||
| 000008d0:·7420·7061·6972·7320·3d20·636f·6f6b·6965··t·pairs·=·cookie | |||
| 000008 | 00000870:·696d·436f·6f6b·6965·5768·6974·6573·7061··imCookieWhitespa | ||
| 00000880:·6365·203d·2028·7661·6c75·6529·203d·3e20··ce·=·(value)·=>· | |||
| 00000890:·7b0a·2020·6c65·7420·7374·6172·7420·3d20··{.··let·start·=· | |||
| 000008a0:·303b·0a20·206c·6574·2065·6e64·203d·2076··0;.··let·end·=·v | |||
| 000008b0:·616c·7565·2e6c·656e·6774·683b·0a20·2077··alue.length;.··w | |||
| 000008c0:·6869·6c65·2028·7374·6172·7420·3c20·656e··hile·(start·<·en | |||
| 000008d0:·6429·207b·0a20·2020·2063·6f6e·7374·2063··d)·{.····const·c | |||
| 000008e0:·6861·7243·6f64·6520·3d20·7661·6c75·652e··harCode·=·value. | |||
| 000008f0:·6368·6172·436f·6465·4174·2873·7461·7274··charCodeAt(start | |||
| 00000900:·293b·0a20·2020·2069·6620·2863·6861·7243··);.····if·(charC | |||
| 00000910:·6f64·6520·213d·3d20·3332·2026·2620·6368··ode·!==·32·&&·ch | |||
| 00000920:·6172·436f·6465·2021·3d3d·2039·2920·7b0a··arCode·!==·9)·{. | |||
| 00000930:·2020·2020·2020·6272·6561·6b3b·0a20·2020········break;.··· | |||
| 00000940:·207d·0a20·2020·2073·7461·7274·2b2b·3b0a···}.····start++;. | |||
| 00000950:·2020·7d0a·2020·7768·696c·6520·2865·6e64····}.··while·(end | |||
| 00000960:·203e·2073·7461·7274·2920·7b0a·2020·2020···>·start)·{.···· | |||
| 00000970:·636f·6e73·7420·6368·6172·436f·6465·203d··const·charCode·= | |||
| 00000980:·2076·616c·7565·2e63·6861·7243·6f64·6541···value.charCodeA | |||
| 00000990:·7428·656e·6420·2d20·3129·3b0a·2020·2020··t(end·-·1);.···· | |||
| 000009a0:·6966·2028·6368·6172·436f·6465·2021·3d3d··if·(charCode·!== | |||
| 000009b0:·2033·3220·2626·2063·6861·7243·6f64·6520···32·&&·charCode· | |||
| 000009c0:·213d·3d20·3929·207b·0a20·2020·2020·2062··!==·9)·{.······b | |||
| 000009d0:·7265·616b·3b0a·2020·2020·7d0a·2020·2020··reak;.····}.···· | |||
| 000009e0:·656e·642d·2d3b·0a20·207d·0a20·2072·6574··end--;.··}.··ret | |||
| 000009f0:·7572·6e20·7374·6172·7420·3d3d·3d20·3020··urn·start·===·0· | |||
| 00000a00:·2626·2065·6e64·203d·3d3d·2076·616c·7565··&&·end·===·value | |||
| 00000a10:·2e6c·656e·6774·6820·3f20·7661·6c75·6520··.length·?·value· | |||
| 00000a20:·3a20·7661·6c75·652e·736c·6963·6528·7374··:·value.slice(st | |||
| 00000a30:·6172·742c·2065·6e64·293b·0a7d·3b0a·636f··art,·end);.};.co | |||
| 00000a40:·6e73·7420·7061·7273·6520·3d20·2863·6f6f··nst·parse·=·(coo | |||
| 00000a50:·6b69·652c·206e·616d·6529·203d·3e20·7b0a··kie,·name)·=>·{. | |||
| 00000a60:·2020·6966·2028·6e61·6d65·2026·2620·636f····if·(name·&&·co | |||
| 00000a70:·6f6b·6965·2e69·6e64·6578·4f66·286e·616d··okie.indexOf(nam | |||
| 00000a80:·6529·203d·3d3d·202d·3129·207b·0a20·2020··e)·===·-1)·{.··· | |||
| 00000a90:·2072·6574·7572·6e20·7b7d·3b0a·2020·7d0a···return·{};.··}. | |||
| 00000 | 00000aa0:·2020·636f·6e73·7420·7061·6972·7320·3d20····const·pairs·=· | ||
| 00000900:·6564·436f·6f6b·6965·203d·207b·7d3b·0a20··edCookie·=·{};.· | |||
| 00000910:·2066·6f72·2028·6c65·7420·7061·6972·5374···for·(let·pairSt | |||
| 00000920:·7220·6f66·2070·6169·7273·2920·7b0a·2020··r·of·pairs)·{.·· | |||
| 00000930:·2020·7061·6972·5374·7220·3d20·7061·6972····pairStr·=·pair | |||
| 00000 | 00000ab0:·636f·6f6b·6965·2e73·706c·6974·2822·3b22··cookie.split(";" | ||
| 00000ac0:·293b·0a20·2063·6f6e·7374·2070·6172·7365··);.··const·parse | |||
| 00000ad0:·6443·6f6f·6b69·6520·3d20·7b7d·3b0a·2020··dCookie·=·{};.·· | |||
| 00000ae0:·666f·7220·2863·6f6e·7374·2070·6169·7253··for·(const·pairS | |||
| 00000af0:·7472·206f·6620·7061·6972·7329·207b·0a20··tr·of·pairs)·{.· | |||
| 00000b00:·2020·2063·6f6e·7374·2076·616c·7565·5374·····const·valueSt | |||
| 00000b10:·6172·7450·6f73·203d·2070·6169·7253·7472··artPos·=·pairStr | |||
| 00000b20:·2e69·6e64·6578·4f66·2822·3d22·293b·0a20··.indexOf("=");.· | |||
| 00000b30:·2020·2069·6620·2876·616c·7565·5374·6172·····if·(valueStar | |||
| 00000b40:·7450·6f73·203d·3d3d·202d·3129·207b·0a20··tPos·===·-1)·{.· | |||
| 00000b50:·2020·2020·2063·6f6e·7469·6e75·653b·0a20·······continue;.· | |||
| 00000b60:·2020·207d·0a20·2020·2063·6f6e·7374·2063·····}.····const·c | |||
| 00000b70:·6f6f·6b69·654e·616d·6520·3d20·7472·696d··ookieName·=·trim | |||
| 00000b80:·436f·6f6b·6965·5768·6974·6573·7061·6365··CookieWhitespace | |||
| 00000b90:·2870·6169·7253·7472·2e73·7562·7374·7269··(pairStr.substri | |||
| 00000 | 00000ba0:·6e67·2830·2c20·7661·6c75·6553·7461·7274··ng(0,·valueStart | ||
| 00000 | 00000bb0:·506f·7329·293b·0a20·2020·2069·6620·286e··Pos));.····if·(n | ||
| 00000bc0:·616d·6520·2626·206e·616d·6520·213d·3d20··ame·&&·name·!==· | |||
| 00000bd0:·636f·6f6b·6965·4e61·6d65·207c·7c20·2176··cookieName·||·!v | |||
| 00000be0:·616c·6964·436f·6f6b·6965·4e61·6d65·5265··alidCookieNameRe | |||
| 00000bf0:·6745·782e·7465·7374·2863·6f6f·6b69·654e··gEx.test(cookieN | |||
| 00000c00:·616d·6529·2920·7b0a·2020·2020·2020·636f··ame))·{.······co | |||
| 00000c10:·6e74·696e·7565·3b0a·2020·2020·7d0a·2020··ntinue;.····}.·· | |||
| 00000c20:·2020·6c65·7420·636f·6f6b·6965·5661·6c75····let·cookieValu | |||
| 00000c30:·6520·3d20·7472·696d·436f·6f6b·6965·5768··e·=·trimCookieWh | |||
| 00000c40:·6974·6573·7061·6365·2870·6169·7253·7472··itespace(pairStr | |||
| 00000c50:·2e73·7562·7374·7269·6e67·2876·616c·7565··.substring(value | |||
| 00000c60:·5374·6172·7450·6f73·202b·2031·2929·3b0a··StartPos·+·1));. | |||
| 00000c70:·2020·2020·6966·2028·636f·6f6b·6965·5661······if·(cookieVa | |||
| 00000c80:·6c75·652e·7374·6172·7473·5769·7468·2827··lue.startsWith(' | |||
| 00000c90:·2227·2920·2626·2063·6f6f·6b69·6556·616c··"')·&&·cookieVal | |||
| 00000ca0:·7565·2e65·6e64·7357·6974·6828·2722·2729··ue.endsWith('"') | |||
| 00000cb0:·2920·7b0a·2020·2020·2020·636f·6f6b·6965··)·{.······cookie | |||
| 00000cc0:·5661·6c75·6520·3d20·636f·6f6b·6965·5661··Value·=·cookieVa | |||
| 00000cd0:·6c75·652e·736c·6963·6528·312c·202d·3129··lue.slice(1,·-1) | |||
| 00000ce0:·3b0a·2020·2020·7d0a·2020·2020·6966·2028··;.····}.····if·( | |||
| 00000cf0:·7661·6c69·6443·6f6f·6b69·6556·616c·7565··validCookieValue | |||
| 00000d00:·5265·6745·782e·7465·7374·2863·6f6f·6b69··RegEx.test(cooki | |||
| 00000d10:·6556·616c·7565·2929·207b·0a20·2020·2020··eValue))·{.····· | |||
| 00000d20:·2070·6172·7365·6443·6f6f·6b69·655b·636f···parsedCookie[co | |||
| 00000d30:·6f6b·6965·4e61·6d65·5d20·3d20·636f·6f6b··okieName]·=·cook | |||
| 00000d40:·6965·5661·6c75·652e·696e·6465·784f·6628··ieValue.indexOf( | |||
| 00000d50:·2225·2229·2021·3d3d·202d·3120·3f20·2830··"%")·!==·-1·?·(0 | |||
| 00000d60:·2c20·696d·706f·7274·5f75·726c·2e74·7279··,·import_url.try | |||
| Max diff block lines reached; -1/38381 bytes (-0.00%) of diff not shown. | |||
| Offset 51, 203 lines modified | Offset 51, 224 lines modified | ||
| 00000320:·7274·7320·3d20·7b7d·3b0a·5f5f·6578·706f··rts·=·{};.__expo | 00000320:·7274·7320·3d20·7b7d·3b0a·5f5f·6578·706f··rts·=·{};.__expo | ||
| 00000330:·7274·2869·7061·6464·725f·6578·706f·7274··rt(ipaddr_export | 00000330:·7274·2869·7061·6464·725f·6578·706f·7274··rt(ipaddr_export | ||
| 00000340:·732c·207b·0a20·2063·6f6e·7665·7274·4950··s,·{.··convertIP | 00000340:·732c·207b·0a20·2063·6f6e·7665·7274·4950··s,·{.··convertIP | ||
| 00000350:·7634·4269·6e61·7279·546f·5374·7269·6e67··v4BinaryToString | 00000350:·7634·4269·6e61·7279·546f·5374·7269·6e67··v4BinaryToString | ||
| 00000360:·3a20·2829·203d·3e20·636f·6e76·6572·7449··:·()·=>·convertI | 00000360:·3a20·2829·203d·3e20·636f·6e76·6572·7449··:·()·=>·convertI | ||
| 00000370:·5076·3442·696e·6172·7954·6f53·7472·696e··Pv4BinaryToStrin | 00000370:·5076·3442·696e·6172·7954·6f53·7472·696e··Pv4BinaryToStrin | ||
| 00000380:·672c·0a20·2063·6f6e·7665·7274·4950·7634··g,.··convertIPv4 | 00000380:·672c·0a20·2063·6f6e·7665·7274·4950·7634··g,.··convertIPv4 | ||
| 00000390:·4d61·7070·6564·4950·7636·546f·4950·7634··MappedIPv6ToIPv4 | |||
| 00000390:·546f·4269·6e61·7279·3a20·2829·203d·3e20··ToBinary:·()·=>· | |||
| 000003a0:·636f·6e76·6572·7449·5076·3454·6f42·696e··convertIPv4ToBin | |||
| 000003b0:·6172·792c·0a20·2063·6f6e·7665·7274·4950··ary,.··convertIP | |||
| 000003c0:·7636·4269·6e61·7279·546f·5374·7269·6e67··v6BinaryToString | |||
| 000003 | 000003a0:·3a20·2829·203d·3e20·636f·6e76·6572·7449··:·()·=>·convertI | ||
| 000003b0:·5076·344d·6170·7065·6449·5076·3654·6f49··Pv4MappedIPv6ToI | |||
| 000003c0:·5076·342c·0a20·2063·6f6e·7665·7274·4950··Pv4,.··convertIP | |||
| 000003d0:·7634·546f·4269·6e61·7279·3a20·2829·203d··v4ToBinary:·()·= | |||
| 000003e0:·3e20·636f·6e76·6572·7449·5076·3454·6f42··>·convertIPv4ToB | |||
| 000003f0:·696e·6172·792c·0a20·2063·6f6e·7665·7274··inary,.··convert | |||
| 00000400:·4950·7636·4269·6e61·7279·546f·5374·7269··IPv6BinaryToStri | |||
| 00000410:·6e67·3a20·2829·203d·3e20·636f·6e76·6572··ng:·()·=>·conver | |||
| 00000 | 00000420:·7449·5076·3642·696e·6172·7954·6f53·7472··tIPv6BinaryToStr | ||
| 00000 | 00000430:·696e·672c·0a20·2063·6f6e·7665·7274·4950··ing,.··convertIP | ||
| 000004 | 00000440:·7636·546f·4269·6e61·7279·3a20·2829·203d··v6ToBinary:·()·= | ||
| 00000410:·636f·6e76·6572·7449·5076·3654·6f42·696e··convertIPv6ToBin | |||
| 00000420:·6172·792c·0a20·2064·6973·7469·6e63·7452··ary,.··distinctR | |||
| 00000430:·656d·6f74·6541·6464·723a·2028·2920·3d3e··emoteAddr:·()·=> | |||
| 00000440:·2064·6973·7469·6e63·7452·656d·6f74·6541···distinctRemoteA | |||
| 00000450:·6464·722c·0a20·2065·7870·616e·6449·5076··ddr,.··expandIPv | |||
| 00000460:·363a·2028·2920·3d3e·2065·7870·616e·6449··6:·()·=>·expandI | |||
| 00000470:·5076·360a·7d29·3b0a·6d6f·6475·6c65·2e65··Pv6.});.module.e | |||
| 00000480:·7870·6f72·7473·203d·205f·5f74·6f43·6f6d··xports·=·__toCom | |||
| 00000490:·6d6f·6e4a·5328·6970·6164·6472·5f65·7870··monJS(ipaddr_exp | |||
| 000004a0:·6f72·7473·293b·0a63·6f6e·7374·2065·7870··orts);.const·exp | |||
| 000004b0:·616e·6449·5076·3620·3d20·2869·7056·3629··andIPv6·=·(ipV6) | |||
| 000004c0:·203d·3e20·7b0a·2020·636f·6e73·7420·7365···=>·{.··const·se | |||
| 000004d0:·6374·696f·6e73·203d·2069·7056·362e·7370··ctions·=·ipV6.sp | |||
| 000004e0:·6c69·7428·223a·2229·3b0a·2020·6966·2028··lit(":");.··if·( | |||
| 000004f0:·4950·5634·5f52·4547·4558·2e74·6573·7428··IPV4_REGEX.test( | |||
| 00000500:·7365·6374·696f·6e73·2e61·7428·2d31·2929··sections.at(-1)) | |||
| 00000510:·2920·7b0a·2020·2020·7365·6374·696f·6e73··)·{.····sections | |||
| 00000520:·2e73·706c·6963·6528·0a20·2020·2020·202d··.splice(.······- | |||
| 00000530:·312c·0a20·2020·2020·2031·2c0a·2020·2020··1,.······1,.···· | |||
| 00000540:·2020·2e2e·2e63·6f6e·7665·7274·4950·7636····...convertIPv6 | |||
| 00000550:·4269·6e61·7279·546f·5374·7269·6e67·2863··BinaryToString(c | |||
| 00000560:·6f6e·7665·7274·4950·7634·546f·4269·6e61··onvertIPv4ToBina | |||
| 00000570:·7279·2873·6563·7469·6f6e·732e·6174·282d··ry(sections.at(- | |||
| 00000580:·3129·2929·2e73·7562·7374·7269·6e67·2832··1))).substring(2 | |||
| 00000590:·292e·7370·6c69·7428·223a·2229·0a20·2020··).split(":").··· | |||
| 000005a0:·2020·202f·2f20·3d3e·205b·2737·6630·3027·····//·=>·['7f00' | |||
| 000005b0:·2c20·2730·3030·3127·5d0a·2020·2020·293b··,·'0001'].····); | |||
| 000005c0:·0a20·207d·0a20·2066·6f72·2028·6c65·7420··.··}.··for·(let· | |||
| 000005d0:·6920·3d20·303b·2069·203c·2073·6563·7469··i·=·0;·i·<·secti | |||
| 000005e0:·6f6e·732e·6c65·6e67·7468·3b20·692b·2b29··ons.length;·i++) | |||
| 000005f0:·207b·0a20·2020·2063·6f6e·7374·206e·6f64···{.····const·nod | |||
| 00000600:·6520·3d20·7365·6374·696f·6e73·5b69·5d3b··e·=·sections[i]; | |||
| 00000610:·0a20·2020·2069·6620·286e·6f64·6520·213d··.····if·(node·!= | |||
| 00000620:·3d20·2222·2920·7b0a·2020·2020·2020·7365··=·"")·{.······se | |||
| 00000630:·6374·696f·6e73·5b69·5d20·3d20·6e6f·6465··ctions[i]·=·node | |||
| 00000640:·2e70·6164·5374·6172·7428·342c·2022·3022··.padStart(4,·"0" | |||
| 00000650:·293b·0a20·2020·207d·2065·6c73·6520·7b0a··);.····}·else·{. | |||
| 00000660:·2020·2020·2020·7365·6374·696f·6e73·5b69········sections[i | |||
| 00000670:·202b·2031·5d20·3d3d·3d20·2222·2026·2620···+·1]·===·""·&&· | |||
| 00000680:·7365·6374·696f·6e73·2e73·706c·6963·6528··sections.splice( | |||
| 00000690:·6920·2b20·312c·2031·293b·0a20·2020·2020··i·+·1,·1);.····· | |||
| 000006a0:·2073·6563·7469·6f6e·735b·695d·203d·206e···sections[i]·=·n | |||
| 000006b0:·6577·2041·7272·6179·2838·202d·2073·6563··ew·Array(8·-·sec | |||
| 000006c0:·7469·6f6e·732e·6c65·6e67·7468·202b·2031··tions.length·+·1 | |||
| 000006d0:·292e·6669·6c6c·2822·3030·3030·2229·2e6a··).fill("0000").j | |||
| 000006e0:·6f69·6e28·223a·2229·3b0a·2020·2020·7d0a··oin(":");.····}. | |||
| 000006f0:·2020·7d0a·2020·7265·7475·726e·2073·6563····}.··return·sec | |||
| 00000700:·7469·6f6e·732e·6a6f·696e·2822·3a22·293b··tions.join(":"); | |||
| 00000710:·0a7d·3b0a·636f·6e73·7420·4950·5634·5f4f··.};.const·IPV4_O | |||
| 00000720:·4354·4554·5f50·4152·5420·3d20·2228·3f3a··CTET_PART·=·"(?: | |||
| 00000730:·3235·5b30·2d35·5d7c·325b·302d·345d·5b30··25[0-5]|2[0-4][0 | |||
| 00000740:·2d39·5d7c·315b·302d·395d·7b32·7d7c·5b31··-9]|1[0-9]{2}|[1 | |||
| 00000750:·2d39·5d3f·5b30·2d39·5d29·223b·0a63·6f6e··-9]?[0-9])";.con | |||
| 00000760:·7374·2049·5056·345f·5245·4745·5820·3d20··st·IPV4_REGEX·=· | |||
| 00000770:·6e65·7720·5265·6745·7870·2860·5e28·3f3a··new·RegExp(`^(?: | |||
| 00000780:·247b·4950·5634·5f4f·4354·4554·5f50·4152··${IPV4_OCTET_PAR | |||
| 00000790:·547d·5c5c·2e29·7b33·7d24·7b49·5056·345f··T}\\.){3}${IPV4_ | |||
| 000007a0:·4f43·5445·545f·5041·5254·7d24·6029·3b0a··OCTET_PART}$`);. | |||
| 000007b0:·636f·6e73·7420·6469·7374·696e·6374·5265··const·distinctRe | |||
| 000007c0:·6d6f·7465·4164·6472·203d·2028·7265·6d6f··moteAddr·=·(remo | |||
| 000007d0:·7465·4164·6472·2920·3d3e·207b·0a20·2069··teAddr)·=>·{.··i | |||
| 000007e0:·6620·2849·5056·345f·5245·4745·582e·7465··f·(IPV4_REGEX.te | |||
| 000007f0:·7374·2872·656d·6f74·6541·6464·7229·2920··st(remoteAddr))· | |||
| 00000800:·7b0a·2020·2020·7265·7475·726e·2022·4950··{.····return·"IP | |||
| 00000810:·7634·223b·0a20·207d·0a20·2069·6620·2872··v4";.··}.··if·(r | |||
| 00000820:·656d·6f74·6541·6464·722e·696e·636c·7564··emoteAddr.includ | |||
| 00000830:·6573·2822·3a22·2929·207b·0a20·2020·2072··es(":"))·{.····r | |||
| 00000840:·6574·7572·6e20·2249·5076·3622·3b0a·2020··eturn·"IPv6";.·· | |||
| 00000850:·7d0a·7d3b·0a63·6f6e·7374·2063·6f6e·7665··}.};.const·conve | |||
| 00000860:·7274·4950·7634·546f·4269·6e61·7279·203d··rtIPv4ToBinary·= | |||
| 00000870:·2028·6970·7634·2920·3d3e·207b·0a20·2063···(ipv4)·=>·{.··c | |||
| 00000880:·6f6e·7374·2070·6172·7473·203d·2069·7076··onst·parts·=·ipv | |||
| 00000890:·342e·7370·6c69·7428·222e·2229·3b0a·2020··4.split(".");.·· | |||
| 000008a0:·6c65·7420·7265·7375·6c74·203d·2030·6e3b··let·result·=·0n; | |||
| 000008b0:·0a20·2066·6f72·2028·6c65·7420·6920·3d20··.··for·(let·i·=· | |||
| 000008c0:·303b·2069·203c·2034·3b20·692b·2b29·207b··0;·i·<·4;·i++)·{ | |||
| Max diff block lines reached; -1/28987 bytes (-0.00%) of diff not shown. | |||
| Offset 14, 585 lines modified | Offset 14, 594 lines modified | ||
| 000000d0:·5854·2c20·585f·484f·4e4f·5f44·4953·4142··XT,·X_HONO_DISAB | 000000d0:·5854·2c20·585f·484f·4e4f·5f44·4953·4142··XT,·X_HONO_DISAB | ||
| 000000e0:·4c45·5f53·5347·5f48·4541·4445·525f·4b45··LE_SSG_HEADER_KE | 000000e0:·4c45·5f53·5347·5f48·4541·4445·525f·4b45··LE_SSG_HEADER_KE | ||
| 000000f0:·5920·7d20·6672·6f6d·2022·2e2f·6d69·6464··Y·}·from·"./midd | 000000f0:·5920·7d20·6672·6f6d·2022·2e2f·6d69·6464··Y·}·from·"./midd | ||
| 00000100:·6c65·7761·7265·2e6a·7322·3b0a·696d·706f··leware.js";.impo | 00000100:·6c65·7761·7265·2e6a·7322·3b0a·696d·706f··leware.js";.impo | ||
| 00000110:·7274·207b·2064·6566·6175·6c74·506c·7567··rt·{·defaultPlug | 00000110:·7274·207b·2064·6566·6175·6c74·506c·7567··rt·{·defaultPlug | ||
| 00000120:·696e·207d·2066·726f·6d20·222e·2f70·6c75··in·}·from·"./plu | 00000120:·696e·207d·2066·726f·6d20·222e·2f70·6c75··in·}·from·"./plu | ||
| 00000130:·6769·6e73·2e6a·7322·3b0a·696d·706f·7274··gins.js";.import | 00000130:·6769·6e73·2e6a·7322·3b0a·696d·706f·7274··gins.js";.import | ||
| 00000140:·207b·2064·6972·6e61·6d65·2c | 00000140:·207b·0a20·2064·6972·6e61·6d65·2c0a·2020···{.··dirname,.·· | ||
| 00000150:·6572·5374·6174·6963·4765·6e65·7261·7465··erStaticGenerate | |||
| 000001 | 00000150:·656e·7375·7265·5769·7468·696e·4f75·7444··ensureWithinOutD | ||
| 00000160:·6972·2c0a·2020·6669·6c74·6572·5374·6174··ir,.··filterStat | |||
| 00000170:·6963·4765·6e65·7261·7465·526f·7574·6573··icGenerateRoutes | |||
| 00000180:·2c0a·2020·6973·4479·6e61·6d69·6352·6f75··,.··isDynamicRou | |||
| 000001 | 00000190:·7465·2c0a·2020·6a6f·696e·5061·7468·730a··te,.··joinPaths. | ||
| 000001 | 000001a0:·7d20·6672·6f6d·2022·2e2f·7574·696c·732e··}·from·"./utils. | ||
| 000001 | 000001b0:·6a73·223b·0a76·6172·2044·4546·4155·4c54··js";.var·DEFAULT | ||
| 000001 | 000001c0:·5f43·4f4e·4355·5252·454e·4359·203d·2032··_CONCURRENCY·=·2 | ||
| 000001 | 000001d0:·3b0a·7661·7220·4445·4641·554c·545f·434f··;.var·DEFAULT_CO | ||
| 000001 | 000001e0:·4e54·454e·545f·5459·5045·203d·2022·7465··NTENT_TYPE·=·"te | ||
| 000001 | 000001f0:·7874·2f70·6c61·696e·223b·0a76·6172·2044··xt/plain";.var·D | ||
| 00000 | 00000200:·4546·4155·4c54·5f4f·5554·5055·545f·4449··EFAULT_OUTPUT_DI | ||
| 00000 | 00000210:·5220·3d20·222e·2f73·7461·7469·6322·3b0a··R·=·"./static";. | ||
| 000002 | 00000220:·7661·7220·6765·6e65·7261·7465·4669·6c65··var·generateFile | ||
| 000002 | 00000230:·5061·7468·203d·2028·726f·7574·6550·6174··Path·=·(routePat | ||
| 000002 | 00000240:·682c·206f·7574·4469·722c·206d·696d·6554··h,·outDir,·mimeT | ||
| 000002 | 00000250:·7970·652c·2065·7874·656e·7369·6f6e·4d61··ype,·extensionMa | ||
| 000002 | 00000260:·7029·203d·3e20·7b0a·2020·636f·6e73·7420··p)·=>·{.··const· | ||
| 000002 | 00000270:·6578·7465·6e73·696f·6e20·3d20·6465·7465··extension·=·dete | ||
| 000002 | 00000280:·726d·696e·6545·7874·656e·7369·6f6e·286d··rmineExtension(m | ||
| 000002 | 00000290:·696d·6554·7970·652c·2065·7874·656e·7369··imeType,·extensi | ||
| 000002 | 000002a0:·6f6e·4d61·7029·3b0a·2020·6c65·7420·6669··onMap);.··let·fi | ||
| 000002b0:·6c65·5061·7468·3b0a·2020·6966·2028·726f··lePath;.··if·(ro | |||
| 000002 | 000002c0:·7574·6550·6174·682e·656e·6473·5769·7468··utePath.endsWith | ||
| 000002a0:·7468·2860·2e24·7b65·7874·656e·7369·6f6e··th(`.${extension | |||
| 000002b0:·7d60·2929·207b·0a20·2020·2072·6574·7572··}`))·{.····retur | |||
| 000002c0:·6e20·6a6f·696e·5061·7468·7328·6f75·7444··n·joinPaths(outD | |||
| 000002d0:·6972·2c20·726f·7574·6550·6174·6829·3b0a··ir,·routePath);. | |||
| 000002e0:·2020·7d0a·2020·6966·2028·726f·7574·6550····}.··if·(routeP | |||
| 000002f0:·6174·6820·3d3d·3d20·222f·2229·207b·0a20··ath·===·"/")·{.· | |||
| 00000300:·2020·2072·6574·7572·6e20·6a6f·696e·5061·····return·joinPa | |||
| 00000310:·7468·7328·6f75·7444·6972·2c20·6069·6e64··ths(outDir,·`ind | |||
| 00000 | 000002d0:·2860·2e24·7b65·7874·656e·7369·6f6e·7d60··(`.${extension}` | ||
| 00000330:·293b·0a20·207d·0a20·2069·6620·2872·6f75··);.··}.··if·(rou | |||
| 00000340:·7465·5061·7468·2e65·6e64·7357·6974·6828··tePath.endsWith( | |||
| 00000 | 000002e0:·2929·207b·0a20·2020·2066·696c·6550·6174··))·{.····filePat | ||
| 000002f0:·6820·3d20·6a6f·696e·5061·7468·7328·6f75··h·=·joinPaths(ou | |||
| 00000300:·7444·6972·2c20·726f·7574·6550·6174·6829··tDir,·routePath) | |||
| 00000310:·3b0a·2020·7d20·656c·7365·2069·6620·2872··;.··}·else·if·(r | |||
| 00000320:·6f75·7465·5061·7468·203d·3d3d·2022·2f22··outePath·===·"/" | |||
| 00000330:·2920·7b0a·2020·2020·6669·6c65·5061·7468··)·{.····filePath | |||
| 000003 | 00000340:·203d·206a·6f69·6e50·6174·6873·286f·7574···=·joinPaths(out | ||
| 00000350:·4469·722c·2060·696e·6465·782e·247b·6578··Dir,·`index.${ex | |||
| 00000360:·7465·6e73·696f·6e7d·6029·3b0a·2020·7d20··tension}`);.··}· | |||
| 00000370:·656c·7365·2069·6620·2872·6f75·7465·5061··else·if·(routePa | |||
| 00000380:·7468·2e65·6e64·7357·6974·6828·222f·2229··th.endsWith("/") | |||
| 00000390:·2920·7b0a·2020·2020·6669·6c65·5061·7468··)·{.····filePath | |||
| 000003a0:·203d·206a·6f69·6e50·6174·6873·286f·7574···=·joinPaths(out | |||
| 000003 | 000003b0:·4469·722c·2072·6f75·7465·5061·7468·2c20··Dir,·routePath,· | ||
| 000003 | 000003c0:·6069·6e64·6578·2e24·7b65·7874·656e·7369··`index.${extensi | ||
| 000003 | 000003d0:·6f6e·7d60·293b·0a20·207d·2065·6c73·6520··on}`);.··}·else· | ||
| 000003a0:·7572·6e20·6a6f·696e·5061·7468·7328·6f75··urn·joinPaths(ou | |||
| 000003b0:·7444·6972·2c20·6024·7b72·6f75·7465·5061··tDir,·`${routePa | |||
| 000003 | 000003e0:·7b0a·2020·2020·6669·6c65·5061·7468·203d··{.····filePath·= | ||
| 000003f0:·206a·6f69·6e50·6174·6873·286f·7574·4469···joinPaths(outDi | |||
| 00000400:·722c·2060·247b·726f·7574·6550·6174·687d··r,·`${routePath} | |||
| 00000410:·2e24·7b65·7874·656e·7369·6f6e·7d60·293b··.${extension}`); | |||
| 00000420:·0a20·207d·0a20·2065·6e73·7572·6557·6974··.··}.··ensureWit | |||
| 00000430:·6869·6e4f·7574·4469·7228·6f75·7444·6972··hinOutDir(outDir | |||
| 00000440:·2c20·6669·6c65·5061·7468·293b·0a20·2072··,·filePath);.··r | |||
| 00000450:·6574·7572·6e20·6669·6c65·5061·7468·3b0a··eturn·filePath;. | |||
| 00000 | 00000460:·7d3b·0a76·6172·2070·6172·7365·5265·7370··};.var·parseResp | ||
| 00000 | 00000470:·6f6e·7365·436f·6e74·656e·7420·3d20·6173··onseContent·=·as | ||
| 00000 | 00000480:·796e·6320·2872·6573·706f·6e73·6529·203d··ync·(response)·= | ||
| 000004 | 00000490:·3e20·7b0a·2020·636f·6e73·7420·636f·6e74··>·{.··const·cont | ||
| 000004 | 000004a0:·656e·7454·7970·6520·3d20·7265·7370·6f6e··entType·=·respon | ||
| 000004 | 000004b0:·7365·2e68·6561·6465·7273·2e67·6574·2822··se.headers.get(" | ||
| 000004 | 000004c0:·436f·6e74·656e·742d·5479·7065·2229·3b0a··Content-Type");. | ||
| 000004 | 000004d0:·2020·7472·7920·7b0a·2020·2020·6966·2028····try·{.····if·( | ||
| 000004 | 000004e0:·636f·6e74·656e·7454·7970·653f·2e69·6e63··contentType?.inc | ||
| 000004 | 000004f0:·6c75·6465·7328·2274·6578·7422·2920·7c7c··ludes("text")·|| | ||
| 00000 | 00000500:·2063·6f6e·7465·6e74·5479·7065·3f2e·696e···contentType?.in | ||
| 00000 | 00000510:·636c·7564·6573·2822·6a73·6f6e·2229·2920··cludes("json"))· | ||
| 00000 | 00000520:·7b0a·2020·2020·2020·7265·7475·726e·2061··{.······return·a | ||
| 00000 | 00000530:·7761·6974·2072·6573·706f·6e73·652e·7465··wait·response.te | ||
| 00000 | 00000540:·7874·2829·3b0a·2020·2020·7d20·656c·7365··xt();.····}·else | ||
| 00000 | 00000550:·207b·0a20·2020·2020·2072·6574·7572·6e20···{.······return· | ||
| 00000 | 00000560:·6177·6169·7420·7265·7370·6f6e·7365·2e61··await·response.a | ||
| 00000 | 00000570:·7272·6179·4275·6666·6572·2829·3b0a·2020··rrayBuffer();.·· | ||
| 00000 | 00000580:·2020·7d0a·2020·7d20·6361·7463·6820·2865····}.··}·catch·(e | ||
| 000005 | 00000590:·7272·6f72·2920·7b0a·2020·2020·7468·726f··rror)·{.····thro | ||
| 000005 | 000005a0:·7720·6e65·7720·4572·726f·7228·0a20·2020··w·new·Error(.··· | ||
| 000005 | 000005b0:·2020·2060·4572·726f·7220·7072·6f63·6573·····`Error·proces | ||
| 000005 | 000005c0:·7369·6e67·2072·6573·706f·6e73·653a·2024··sing·response:·$ | ||
| 000005 | 000005d0:·7b65·7272·6f72·2069·6e73·7461·6e63·656f··{error·instanceo | ||
| 000005 | 000005e0:·6620·4572·726f·7220·3f20·6572·726f·722e··f·Error·?·error. | ||
| 000005 | 000005f0:·6d65·7373·6167·6520·3a20·2255·6e6b·6e6f··message·:·"Unkno | ||
| 00000 | 00000600:·776e·2065·7272·6f72·227d·600a·2020·2020··wn·error"}`.···· | ||
| 00000 | 00000610:·293b·0a20·207d·0a7d·3b0a·7661·7220·6465··);.··}.};.var·de | ||
| 00000 | 00000620:·6661·756c·7445·7874·656e·7369·6f6e·4d61··faultExtensionMa | ||
| Max diff block lines reached; 40219/80675 bytes (49.85%) of diff not shown. | |||
| Offset 97, 13 lines modified | Offset 97, 38 lines modified | ||
| 00000600:·7344·796e·616d·6963·526f·7574·6520·3d20··sDynamicRoute·=· | 00000600:·7344·796e·616d·6963·526f·7574·6520·3d20··sDynamicRoute·=· | ||
| 00000610:·2870·6174·6829·203d·3e20·7b0a·2020·7265··(path)·=>·{.··re | 00000610:·2870·6174·6829·203d·3e20·7b0a·2020·7265··(path)·=>·{.··re | ||
| 00000620:·7475·726e·2070·6174·682e·7370·6c69·7428··turn·path.split( | 00000620:·7475·726e·2070·6174·682e·7370·6c69·7428··turn·path.split( | ||
| 00000630:·222f·2229·2e73·6f6d·6528·2873·6567·6d65··"/").some((segme | 00000630:·222f·2229·2e73·6f6d·6528·2873·6567·6d65··"/").some((segme | ||
| 00000640:·6e74·2920·3d3e·2073·6567·6d65·6e74·2e73··nt)·=>·segment.s | 00000640:·6e74·2920·3d3e·2073·6567·6d65·6e74·2e73··nt)·=>·segment.s | ||
| 00000650:·7461·7274·7357·6974·6828·223a·2229·207c··tartsWith(":")·| | 00000650:·7461·7274·7357·6974·6828·223a·2229·207c··tartsWith(":")·| | ||
| 00000660:·7c20·7365·676d·656e·742e·696e·636c·7564··|·segment.includ | 00000660:·7c20·7365·676d·656e·742e·696e·636c·7564··|·segment.includ | ||
| 00000670:·6573·2822·2a22·2929·3b0a·7d3b·0a | 00000670:·6573·2822·2a22·2929·3b0a·7d3b·0a76·6172··es("*"));.};.var | ||
| 00000680:·2065·6e73·7572·6557·6974·6869·6e4f·7574···ensureWithinOut | |||
| 00000690:·4469·7220·3d20·286f·7574·4469·722c·2066··Dir·=·(outDir,·f | |||
| 000006a0:·696c·6550·6174·6829·203d·3e20·7b0a·2020··ilePath)·=>·{.·· | |||
| 000006b0:·636f·6e73·7420·6e6f·726d·616c·697a·6564··const·normalized | |||
| 000006c0:·4f75·7444·6972·203d·206a·6f69·6e50·6174··OutDir·=·joinPat | |||
| 000006d0:·6873·2822·2f22·2c20·6f75·7444·6972·293b··hs("/",·outDir); | |||
| 000006e0:·0a20·2063·6f6e·7374·206e·6f72·6d61·6c69··.··const·normali | |||
| 000006f0:·7a65·6446·696c·6550·6174·6820·3d20·6a6f··zedFilePath·=·jo | |||
| 00000700:·696e·5061·7468·7328·222f·222c·2066·696c··inPaths("/",·fil | |||
| 00000710:·6550·6174·6829·3b0a·2020·6966·2028·6e6f··ePath);.··if·(no | |||
| 00000720:·726d·616c·697a·6564·4669·6c65·5061·7468··rmalizedFilePath | |||
| 00000730:·2021·3d3d·206e·6f72·6d61·6c69·7a65·644f···!==·normalizedO | |||
| 00000740:·7574·4469·7220·2626·2021·6e6f·726d·616c··utDir·&&·!normal | |||
| 00000750:·697a·6564·4669·6c65·5061·7468·2e73·7461··izedFilePath.sta | |||
| 00000760:·7274·7357·6974·6828·6024·7b6e·6f72·6d61··rtsWith(`${norma | |||
| 00000770:·6c69·7a65·644f·7574·4469·727d·2f60·2929··lizedOutDir}/`)) | |||
| 00000780:·207b·0a20·2020·2074·6872·6f77·206e·6577···{.····throw·new | |||
| 00000790:·2045·7272·6f72·2860·5061·7468·2074·7261···Error(`Path·tra | |||
| 000007a0:·7665·7273·616c·2064·6574·6563·7465·643a··versal·detected: | |||
| 000007b0:·2022·247b·6669·6c65·5061·7468·7d22·2069···"${filePath}"·i | |||
| 000007c0:·7320·6f75·7473·6964·6520·7468·6520·6f75··s·outside·the·ou | |||
| 000007d0:·7470·7574·2064·6972·6563·746f·7279·6029··tput·directory`) | |||
| 000007e0:·3b0a·2020·7d0a·7d3b·0a65·7870·6f72·7420··;.··}.};.export· | |||
| 00000 | 000007f0:·7b0a·2020·6469·726e·616d·652c·0a20·2065··{.··dirname,.··e | ||
| 00000800:·6e73·7572·6557·6974·6869·6e4f·7574·4469··nsureWithinOutDi | |||
| 00000 | 00000810:·722c·0a20·2066·696c·7465·7253·7461·7469··r,.··filterStati | ||
| 00000 | 00000820:·6347·656e·6572·6174·6552·6f75·7465·732c··cGenerateRoutes, | ||
| 00000 | 00000830:·0a20·2069·7344·796e·616d·6963·526f·7574··.··isDynamicRout | ||
| 00000 | 00000840:·652c·0a20·206a·6f69·6e50·6174·6873·0a7d··e,.··joinPaths.} | ||
| 00000850:·3b0a·····································;. |
| Offset 1, 211 lines modified | Offset 1, 259 lines modified | ||
| 00000000:·2f2f·2073·7263·2f6d·6964·646c·6577·6172··//·src/middlewar | 00000000:·2f2f·2073·7263·2f6d·6964·646c·6577·6172··//·src/middlewar | ||
| 00000010:·652f·6970·2d72·6573·7472·6963·7469·6f6e··e/ip-restriction | 00000010:·652f·6970·2d72·6573·7472·6963·7469·6f6e··e/ip-restriction | ||
| 00000020:·2f69·6e64·6578·2e74·730a·696d·706f·7274··/index.ts.import | 00000020:·2f69·6e64·6578·2e74·730a·696d·706f·7274··/index.ts.import | ||
| 00000030:·207b·2048·5454·5045·7863·6570·7469·6f6e···{·HTTPException | 00000030:·207b·2048·5454·5045·7863·6570·7469·6f6e···{·HTTPException | ||
| 00000040:·207d·2066·726f·6d20·222e·2e2f·2e2e·2f68···}·from·"../../h | 00000040:·207d·2066·726f·6d20·222e·2e2f·2e2e·2f68···}·from·"../../h | ||
| 00000050:·7474·702d·6578·6365·7074·696f·6e2e·6a73··ttp-exception.js | 00000050:·7474·702d·6578·6365·7074·696f·6e2e·6a73··ttp-exception.js | ||
| 00000060:·223b·0a69·6d70·6f72·7420·7b0a·2020·636f··";.import·{.··co | 00000060:·223b·0a69·6d70·6f72·7420·7b0a·2020·636f··";.import·{.··co | ||
| 00000070:·6e76·6572·7449·5076·3454·6f42·696e·6172··nvertIPv4ToBinar | |||
| 00000080:·792c·0a20·2063·6f6e·7665·7274·4950·7636··y,.··convertIPv6 | |||
| 000000 | 00000070:·6e76·6572·7449·5076·344d·6170·7065·6449··nvertIPv4MappedI | ||
| 00000080:·5076·3654·6f49·5076·342c·0a20·2063·6f6e··Pv6ToIPv4,.··con | |||
| 00000090:·7665·7274·4950·7634·546f·4269·6e61·7279··vertIPv4ToBinary | |||
| 000000a0:·2020·636f·6e76·6572·7449·5076·3 | 000000a0:·2c0a·2020·636f·6e76·6572·7449·5076·3642··,.··convertIPv6B | ||
| 000000b0:·696e·6172·792c·0a20·2064·6973·7469·6e63··inary,.··distinc | |||
| 000000c0:·7452·656d·6f74·6541·6464·720a·7d20·6672··tRemoteAddr.}·fr | |||
| 000000d0:·6f6d·2022·2e2e·2f2e·2e2f·7574·696c·732f··om·"../../utils/ | |||
| 000000e0:·6970·6164·6472·2e6a·7322·3b0a·7661·7220··ipaddr.js";.var· | |||
| 000000f0:·4953·5f43·4944·525f·4e4f·5441·5449·4f4e··IS_CIDR_NOTATION | |||
| 00000100:·5f52·4547·4558·203d·202f·5c2f·5b30·2d39··_REGEX·=·/\/[0-9 | |||
| 00000110:·5d7b·302c·337d·242f·3b0a·7661·7220·6275··]{0,3}$/;.var·bu | |||
| 00000120:·696c·644d·6174·6368·6572·203d·2028·7275··ildMatcher·=·(ru | |||
| 00000 | 000000b0:·696e·6172·7954·6f53·7472·696e·672c·0a20··inaryToString,.· | ||
| 000000c0:·2063·6f6e·7665·7274·4950·7636·546f·4269···convertIPv6ToBi | |||
| 000000d0:·6e61·7279·2c0a·2020·6469·7374·696e·6374··nary,.··distinct | |||
| 000000e0:·5265·6d6f·7465·4164·6472·2c0a·2020·6973··RemoteAddr,.··is | |||
| 000000f0:·4950·7634·4d61·7070·6564·4950·7636·0a7d··IPv4MappedIPv6.} | |||
| 00000100:·2066·726f·6d20·222e·2e2f·2e2e·2f75·7469···from·"../../uti | |||
| 00000110:·6c73·2f69·7061·6464·722e·6a73·223b·0a76··ls/ipaddr.js";.v | |||
| 00000120:·6172·2049·535f·4349·4452·5f4e·4f54·4154··ar·IS_CIDR_NOTAT | |||
| 00000130:·494f·4e5f·5245·4745·5820·3d20·2f5c·2f5b··ION_REGEX·=·/\/[ | |||
| 00000140:·302d·395d·7b30·2c33·7d24·2f3b·0a76·6172··0-9]{0,3}$/;.var | |||
| 00000150:·2062·7569·6c64·4d61·7463·6865·7220·3d20···buildMatcher·=· | |||
| 00000160:·2872·756c·6573·2920·3d3e·207b·0a20·2063··(rules)·=>·{.··c | |||
| 00000170:·6f6e·7374·2066·756e·6374·696f·6e52·756c··onst·functionRul | |||
| 00000180:·6573·203d·205b·5d3b·0a20·2063·6f6e·7374··es·=·[];.··const | |||
| 00000190:·2073·7461·7469·6352·756c·6573·203d·202f···staticRules·=·/ | |||
| 000001a0:·2a20·405f·5f50·5552·455f·5f20·2a2f·206e··*·@__PURE__·*/·n | |||
| 000001b0:·6577·2053·6574·2829·3b0a·2020·636f·6e73··ew·Set();.··cons | |||
| 000001c0:·7420·6369·6472·5275·6c65·7320·3d20·5b5d··t·cidrRules·=·[] | |||
| 000001d0:·3b0a·2020·666f·7220·286c·6574·2072·756c··;.··for·(let·rul | |||
| 000001e0:·6520·6f66·2072·756c·6573·2920·7b0a·2020··e·of·rules)·{.·· | |||
| 000001f0:·2020·6966·2028·7275·6c65·203d·3d3d·2022····if·(rule·===·" | |||
| 00000200:·2a22·2920·7b0a·2020·2020·2020·7265·7475··*")·{.······retu | |||
| 00000210:·726e·2028·2920·3d3e·2074·7275·653b·0a20··rn·()·=>·true;.· | |||
| 00000220:·2020·207d·2065·6c73·6520·6966·2028·7479·····}·else·if·(ty | |||
| 00000230:·7065·6f66·2072·756c·6520·3d3d·3d20·2266··peof·rule·===·"f | |||
| 00000240:·756e·6374·696f·6e22·2920·7b0a·2020·2020··unction")·{.···· | |||
| 00000 | 00000250:·2020·6675·6e63·7469·6f6e·5275·6c65·732e····functionRules. | ||
| 00000260:·7075·7368·2872·756c·6529·3b0a·2020·2020··push(rule);.···· | |||
| 00000270:·7d20·656c·7365·207b·0a20·2020·2020·2069··}·else·{.······i | |||
| 00000280:·6620·2849·535f·4349·4452·5f4e·4f54·4154··f·(IS_CIDR_NOTAT | |||
| 00000290:·494f·4e5f·5245·4745·582e·7465·7374·2872··ION_REGEX.test(r | |||
| 00000150:·3d20·5b5d·3b0a·2020·636f·6e73·7420·7374··=·[];.··const·st | |||
| 00000160:·6174·6963·5275·6c65·7320·3d20·2f2a·2040··aticRules·=·/*·@ | |||
| 00000170:·5f5f·5055·5245·5f5f·202a·2f20·6e65·7720··__PURE__·*/·new· | |||
| 00000180:·5365·7428·293b·0a20·2063·6f6e·7374·2063··Set();.··const·c | |||
| 00000190:·6964·7252·756c·6573·203d·205b·5d3b·0a20··idrRules·=·[];.· | |||
| 000001a0:·2066·6f72·2028·6c65·7420·7275·6c65·206f···for·(let·rule·o | |||
| 000001b0:·6620·7275·6c65·7329·207b·0a20·2020·2069··f·rules)·{.····i | |||
| 000001c0:·6620·2872·756c·6520·3d3d·3d20·222a·2229··f·(rule·===·"*") | |||
| 000001d0:·207b·0a20·2020·2020·2072·6574·7572·6e20···{.······return· | |||
| 000001e0:·2829·203d·3e20·7472·7565·3b0a·2020·2020··()·=>·true;.···· | |||
| 000001f0:·7d20·656c·7365·2069·6620·2874·7970·656f··}·else·if·(typeo | |||
| 00000200:·6620·7275·6c65·203d·3d3d·2022·6675·6e63··f·rule·===·"func | |||
| 00000210:·7469·6f6e·2229·207b·0a20·2020·2020·2066··tion")·{.······f | |||
| 00000220:·756e·6374·696f·6e52·756c·6573·2e70·7573··unctionRules.pus | |||
| 00000230:·6828·7275·6c65·293b·0a20·2020·207d·2065··h(rule);.····}·e | |||
| 000002 | 000002a0:·756c·6529·2920·7b0a·2020·2020·2020·2020··ule))·{.········ | ||
| 00000250:·4953·5f43·4944·525f·4e4f·5441·5449·4f4e··IS_CIDR_NOTATION | |||
| 000002 | 000002b0:·636f·6e73·7420·7365·7061·7261·7465·6452··const·separatedR | ||
| 000002c0:·756c·6520·3d20·7275·6c65·2e73·706c·6974··ule·=·rule.split | |||
| 000002 | 000002d0:·2822·2f22·293b·0a20·2020·2020·2020·2063··("/");.········c | ||
| 000002e0:·6f6e·7374·2061·6464·7253·7472·203d·2073··onst·addrStr·=·s | |||
| 000002 | 000002f0:·6570·6172·6174·6564·5275·6c65·5b30·5d3b··eparatedRule[0]; | ||
| 00000290:·203d·2072·756c·652e·7370·6c69·7428·222f···=·rule.split("/ | |||
| 000002a0:·2229·3b0a·2020·2020·2020·2020·636f·6e73··");.········cons | |||
| 000002b0:·7420·6164·6472·5374·7220·3d20·7365·7061··t·addrStr·=·sepa | |||
| 000002c0:·7261·7465·6452·756c·655b·305d·3b0a·2020··ratedRule[0];.·· | |||
| 000002d0:·2020·2020·2020·636f·6e73·7420·7479·7065········const·type | |||
| 000002e0:·3220·3d20·6469·7374·696e·6374·5265·6d6f··2·=·distinctRemo | |||
| 000002f0:·7465·4164·6472·2861·6464·7253·7472·293b··teAddr(addrStr); | |||
| 00000300:·0a20·2020·2020·2020·2069·6620·2874·7970··.········if·(typ | |||
| 00000310:·6532·203d·3d3d·2076·6f69·6420·3029·207b··e2·===·void·0)·{ | |||
| 00000320:·0a20·2020·2020·2020·2020·2074·6872·6f77··.··········throw | |||
| 00000330:·206e·6577·2054·7970·6545·7272·6f72·2860···new·TypeError(` | |||
| 00000340:·496e·7661·6c69·6420·7275·6c65·3a20·247b··Invalid·rule:·${ | |||
| 00000350:·7275·6c65·7d60·293b·0a20·2020·2020·2020··rule}`);.······· | |||
| 000003 | 00000300:·0a20·2020·2020·2020·2063·6f6e·7374·2074··.········const·t | ||
| 00000310:·7970·6532·203d·2064·6973·7469·6e63·7452··ype2·=·distinctR | |||
| 00000320:·656d·6f74·6541·6464·7228·6164·6472·5374··emoteAddr(addrSt | |||
| 00000330:·7229·3b0a·2020·2020·2020·2020·6966·2028··r);.········if·( | |||
| 00000340:·7479·7065·3220·3d3d·3d20·766f·6964·2030··type2·===·void·0 | |||
| 00000370:·2069·7349·5076·3420·3d20·7479·7065·3220···isIPv4·=·type2· | |||
| 00000380:·3d3d·3d20·2249·5076·3422·3b0a·2020·2020··===·"IPv4";.···· | |||
| 00000390:·2020·2020·636f·6e73·7420·7072·6566·6978······const·prefix | |||
| 000003a0:·203d·2070·6172·7365·496e·7428·7365·7061···=·parseInt(sepa | |||
| 000003b0:·7261·7465·6452·756c·655b·315d·293b·0a20··ratedRule[1]);.· | |||
| 000003c0:·2020·2020·2020·2069·6620·2869·7349·5076·········if·(isIPv | |||
| 000003d0:·3420·3f20·7072·6566·6978·203d·3d3d·2033··4·?·prefix·===·3 | |||
| Max diff block lines reached; -1/31954 bytes (-0.00%) of diff not shown. | |||
| Offset 44, 113 lines modified | Offset 44, 114 lines modified | ||
| 000002b0:·2066·696c·656e·616d·6520·3d20·6f70·7469···filename·=·opti | 000002b0:·2066·696c·656e·616d·6520·3d20·6f70·7469···filename·=·opti | ||
| 000002c0:·6f6e·732e·7061·7468·3b0a·2020·2020·7d20··ons.path;.····}· | 000002c0:·6f6e·732e·7061·7468·3b0a·2020·2020·7d20··ons.path;.····}· | ||
| 000002d0:·656c·7365·207b·0a20·2020·2020·2074·7279··else·{.······try | 000002d0:·656c·7365·207b·0a20·2020·2020·2074·7279··else·{.······try | ||
| 000002e0:·207b·0a20·2020·2020·2020·2066·696c·656e···{.········filen | 000002e0:·207b·0a20·2020·2020·2020·2066·696c·656e···{.········filen | ||
| 000002f0:·616d·6520·3d20·7472·7944·6563·6f64·6555··ame·=·tryDecodeU | 000002f0:·616d·6520·3d20·7472·7944·6563·6f64·6555··ame·=·tryDecodeU | ||
| 00000300:·5249·2863·2e72·6571·2e70·6174·6829·3b0a··RI(c.req.path);. | 00000300:·5249·2863·2e72·6571·2e70·6174·6829·3b0a··RI(c.req.path);. | ||
| 00000310:·2020·2020·2020·2020·6966·2028·2f28·3f3a··········if·(/(?: | 00000310:·2020·2020·2020·2020·6966·2028·2f28·3f3a··········if·(/(?: | ||
| 00000320:·5e7c·5b5c·2f5c·5c5d·295c·2e | 00000320:·5e7c·5b5c·2f5c·5c5d·295c·2e7b·312c·327d··^|[\/\\])\.{1,2} | ||
| 00000330:·2 | 00000330:·283f·3a24·7c5b·5c2f·5c5c·5d29·7c5b·5c2f··(?:$|[\/\\])|[\/ | ||
| 00000340:·5c5c·5d7b·322c·7d2f·2e74·6573·7428·6669··\\]{2,}/.test(fi | |||
| 000003 | 00000350:·6c65·6e61·6d65·2929·207b·0a20·2020·2020··lename))·{.····· | ||
| 000003 | 00000360:·2020·2020·2074·6872·6f77·206e·6577·2045·······throw·new·E | ||
| 000003 | 00000370:·7272·6f72·2829·3b0a·2020·2020·2020·2020··rror();.········ | ||
| 000003 | 00000380:·7d0a·2020·2020·2020·7d20·6361·7463·6820··}.······}·catch· | ||
| 000003 | 00000390:·7b0a·2020·2020·2020·2020·6177·6169·7420··{.········await· | ||
| 000003 | 000003a0:·6f70·7469·6f6e·732e·6f6e·4e6f·7446·6f75··options.onNotFou | ||
| 000003 | 000003b0:·6e64·3f2e·2863·2e72·6571·2e70·6174·682c··nd?.(c.req.path, | ||
| 000003 | 000003c0:·2063·293b·0a20·2020·2020·2020·2072·6574···c);.········ret | ||
| 000003 | 000003d0:·7572·6e20·6e65·7874·2829·3b0a·2020·2020··urn·next();.···· | ||
| 000003 | 000003e0:·2020·7d0a·2020·2020·7d0a·2020·2020·6c65····}.····}.····le | ||
| 000003 | 000003f0:·7420·7061·7468·203d·206a·6f69·6e28·0a20··t·path·=·join(.· | ||
| 00000 | 00000400:·2020·2020·2072·6f6f·742c·0a20·2020·2020·······root,.····· | ||
| 000004 | 00000410:·2021·6f70·7469·6f6e·5061·7468·2026·2620···!optionPath·&&· | ||
| 000004 | 00000420:·6f70·7469·6f6e·732e·7265·7772·6974·6552··options.rewriteR | ||
| 000004 | 00000430:·6571·7565·7374·5061·7468·203f·206f·7074··equestPath·?·opt | ||
| 000004 | 00000440:·696f·6e73·2e72·6577·7269·7465·5265·7175··ions.rewriteRequ | ||
| 000004 | 00000450:·6573·7450·6174·6828·6669·6c65·6e61·6d65··estPath(filename | ||
| 000004 | 00000460:·2920·3a20·6669·6c65·6e61·6d65·0a20·2020··)·:·filename.··· | ||
| 000004 | 00000470:·2029·3b0a·2020·2020·6966·2028·6f70·7469···);.····if·(opti | ||
| 000004 | 00000480:·6f6e·732e·6973·4469·7220·2626·2061·7761··ons.isDir·&&·awa | ||
| 000004 | 00000490:·6974·206f·7074·696f·6e73·2e69·7344·6972··it·options.isDir | ||
| 000004 | 000004a0:·2870·6174·6829·2920·7b0a·2020·2020·2020··(path))·{.······ | ||
| 000004 | 000004b0:·7061·7468·203d·206a·6f69·6e28·7061·7468··path·=·join(path | ||
| 000004 | 000004c0:·2c20·4445·4641·554c·545f·444f·4355·4d45··,·DEFAULT_DOCUME | ||
| 000004 | 000004d0:·4e54·293b·0a20·2020·207d·0a20·2020·2063··NT);.····}.····c | ||
| 000004 | 000004e0:·6f6e·7374·2067·6574·436f·6e74·656e·7420··onst·getContent· | ||
| 000004 | 000004f0:·3d20·6f70·7469·6f6e·732e·6765·7443·6f6e··=·options.getCon | ||
| 00000 | 00000500:·7465·6e74·3b0a·2020·2020·6c65·7420·636f··tent;.····let·co | ||
| 000005 | 00000510:·6e74·656e·7420·3d20·6177·6169·7420·6765··ntent·=·await·ge | ||
| 000005 | 00000520:·7443·6f6e·7465·6e74·2870·6174·682c·2063··tContent(path,·c | ||
| 000005 | 00000530:·293b·0a20·2020·2069·6620·2863·6f6e·7465··);.····if·(conte | ||
| 000005 | 00000540:·6e74·2069·6e73·7461·6e63·656f·6620·5265··nt·instanceof·Re | ||
| 000005 | 00000550:·7370·6f6e·7365·2920·7b0a·2020·2020·2020··sponse)·{.······ | ||
| 000005 | 00000560:·7265·7475·726e·2063·2e6e·6577·5265·7370··return·c.newResp | ||
| 000005 | 00000570:·6f6e·7365·2863·6f6e·7465·6e74·2e62·6f64··onse(content.bod | ||
| 000005 | 00000580:·792c·2063·6f6e·7465·6e74·293b·0a20·2020··y,·content);.··· | ||
| 000005 | 00000590:·207d·0a20·2020·2069·6620·2863·6f6e·7465···}.····if·(conte | ||
| 000005 | 000005a0:·6e74·2920·7b0a·2020·2020·2020·636f·6e73··nt)·{.······cons | ||
| 000005 | 000005b0:·7420·6d69·6d65·5479·7065·203d·206f·7074··t·mimeType·=·opt | ||
| 000005 | 000005c0:·696f·6e73·2e6d·696d·6573·2026·2620·6765··ions.mimes·&&·ge | ||
| 000005 | 000005d0:·744d·696d·6554·7970·6528·7061·7468·2c20··tMimeType(path,· | ||
| 000005 | 000005e0:·6f70·7469·6f6e·732e·6d69·6d65·7329·207c··options.mimes)·| | ||
| 000005 | 000005f0:·7c20·6765·744d·696d·6554·7970·6528·7061··|·getMimeType(pa | ||
| 00000 | 00000600:·7468·293b·0a20·2020·2020·2063·2e68·6561··th);.······c.hea | ||
| 000006 | 00000610:·6465·7228·2243·6f6e·7465·6e74·2d54·7970··der("Content-Typ | ||
| 000006 | 00000620:·6522·2c20·6d69·6d65·5479·7065·207c·7c20··e",·mimeType·||· | ||
| 000006 | 00000630:·2261·7070·6c69·6361·7469·6f6e·2f6f·6374··"application/oct | ||
| 000006 | 00000640:·6574·2d73·7472·6561·6d22·293b·0a20·2020··et-stream");.··· | ||
| 000006 | 00000650:·2020·2069·6620·286f·7074·696f·6e73·2e70·····if·(options.p | ||
| 000006 | 00000660:·7265·636f·6d70·7265·7373·6564·2026·2620··recompressed·&&· | ||
| 000006 | 00000670:·2821·6d69·6d65·5479·7065·207c·7c20·434f··(!mimeType·||·CO | ||
| 000006 | 00000680:·4d50·5245·5353·4942·4c45·5f43·4f4e·5445··MPRESSIBLE_CONTE | ||
| 000006 | 00000690:·4e54·5f54·5950·455f·5245·4745·582e·7465··NT_TYPE_REGEX.te | ||
| 000006 | 000006a0:·7374·286d·696d·6554·7970·6529·2929·207b··st(mimeType)))·{ | ||
| 000006a0:·207b·0a20·2020·2020·2020·2063·6f6e·7374···{.········const | |||
| 000006b0:·2061·6363·6570·7445·6e63·6f64·696e·6753···acceptEncodingS | |||
| 000006c0:·6574·203d·206e·6577·2053·6574·280a·2020··et·=·new·Set(.·· | |||
| 000006d0:·2020·2020·2020·2020·632e·7265·712e·6865··········c.req.he | |||
| 000006e0:·6164·6572·2822·4163·6365·7074·2d45·6e63··ader("Accept-Enc | |||
| 000006f0:·6f64·696e·6722·293f·2e73·706c·6974·2822··oding")?.split(" | |||
| 00000700:·2c22·292e·6d61·7028·2865·6e63·6f64·696e··,").map((encodin | |||
| 00000710:·6729·203d·3e20·656e·636f·6469·6e67·2e74··g)·=>·encoding.t | |||
| 00000720:·7269·6d28·2929·0a20·2020·2020·2020·2029··rim()).········) | |||
| 00000730:·3b0a·2020·2020·2020·2020·666f·7220·2863··;.········for·(c | |||
| 00000740:·6f6e·7374·2065·6e63·6f64·696e·6720·6f66··onst·encoding·of | |||
| 00000750:·2045·4e43·4f44·494e·4753·5f4f·5244·4552···ENCODINGS_ORDER | |||
| 00000760:·4544·5f4b·4559·5329·207b·0a20·2020·2020··ED_KEYS)·{.····· | |||
| 00000770:·2020·2020·2069·6620·2821·6163·6365·7074·······if·(!accept | |||
| 00000780:·456e·636f·6469·6e67·5365·742e·6861·7328··EncodingSet.has( | |||
| 00000790:·656e·636f·6469·6e67·2929·207b·0a20·2020··encoding))·{.··· | |||
| 000007a0:·2020·2020·2020·2020·2063·6f6e·7469·6e75···········continu | |||
| 000007b0:·653b·0a20·2020·2020·2020·2020·207d·0a20··e;.··········}.· | |||
| 00000 | 000006b0:·0a20·2020·2020·2020·2063·6f6e·7374·2061··.········const·a | ||
| 000007d0:·6f6d·7072·6573·7365·6443·6f6e·7465·6e74··ompressedContent | |||
| 000007e0:·203d·2061·7761·6974·2067·6574·436f·6e74···=·await·getCont | |||
| 000007f0:·656e·7428·7061·7468·202b·2045·4e43·4f44··ent(path·+·ENCOD | |||
| 00000800:·494e·4753·5b65·6e63·6f64·696e·675d·2c20··INGS[encoding],· | |||
| 00000810:·6329·3b0a·2020·2020·2020·2020·2020·6966··c);.··········if | |||
| 00000 | 000006c0:·6363·6570·7445·6e63·6f64·696e·6753·6574··cceptEncodingSet | ||
| 000006d0:·203d·206e·6577·2053·6574·280a·2020·2020···=·new·Set(.···· | |||
| 000006e0:·2020·2020·2020·632e·7265·712e·6865·6164········c.req.head | |||
| 000006f0:·6572·2822·4163·6365·7074·2d45·6e63·6f64··er("Accept-Encod | |||
| 00000700:·696e·6722·293f·2e73·706c·6974·2822·2c22··ing")?.split("," | |||
| 00000710:·292e·6d61·7028·2865·6e63·6f64·696e·6729··).map((encoding) | |||
| 00000720:·203d·3e20·656e·636f·6469·6e67·2e74·7269···=>·encoding.tri | |||
| 00000 | 00000730:·6d28·2929·0a20·2020·2020·2020·2029·3b0a··m()).········);. | ||
| 00000 | 00000740:·2020·2020·2020·2020·666f·7220·2863·6f6e··········for·(con | ||
| 00000750:·7374·2065·6e63·6f64·696e·6720·6f66·2045··st·encoding·of·E | |||
| 00000760:·4e43·4f44·494e·4753·5f4f·5244·4552·4544··NCODINGS_ORDERED | |||
| Max diff block lines reached; -1/15194 bytes (-0.01%) of diff not shown. | |||
| Offset 2330, 15 lines modified | Offset 2330, 15 lines modified | ||
| 2330 | ········}, | 2330 | ········}, |
| 2331 | ········{ | 2331 | ········{ |
| 2332 | ············"signature":·"45dd008396b925f1d22bd7c9adbacce9cf66a929ddd4ffb80dc936863bffe103", | 2332 | ············"signature":·"45dd008396b925f1d22bd7c9adbacce9cf66a929ddd4ffb80dc936863bffe103", |
| 2333 | ············"version":·"28317c8a40c83cc89a80f268bd4dad18cd423f4704b621dda272292a10f63e77" | 2333 | ············"version":·"28317c8a40c83cc89a80f268bd4dad18cd423f4704b621dda272292a10f63e77" |
| 2334 | ········}, | 2334 | ········}, |
| 2335 | ········{ | 2335 | ········{ |
| 2336 | ············"signature":·"8882849c153e1d6ff52738c38585043b7478138befb985537699f78d8280ebbd", | 2336 | ············"signature":·"8882849c153e1d6ff52738c38585043b7478138befb985537699f78d8280ebbd", |
| 2337 | ············"version":·" | 2337 | ············"version":·"c4de128c10e206722a2047255d1f84843783541d932f2b7cfa1c28e1fc058965" |
| 2338 | ········}, | 2338 | ········}, |
| 2339 | ········{ | 2339 | ········{ |
| 2340 | ············"signature":·"2c01a3ba2a23b8a3a85e12de6e1c7347dfb6554da9e30b49bbb125f6fd217462", | 2340 | ············"signature":·"2c01a3ba2a23b8a3a85e12de6e1c7347dfb6554da9e30b49bbb125f6fd217462", |
| 2341 | ············"version":·"ab04cf98207867251c231d515c980ed9e1c91306efdbb3f935f098eee111b741" | 2341 | ············"version":·"ab04cf98207867251c231d515c980ed9e1c91306efdbb3f935f098eee111b741" |
| 2342 | ········}, | 2342 | ········}, |
| 2343 | ········{ | 2343 | ········{ |
| 2344 | ············"signature":·"f5bfda545fc03ca1b3dae2cf4c44d06e74bc9865a6a038272ecc4de91dc78685", | 2344 | ············"signature":·"f5bfda545fc03ca1b3dae2cf4c44d06e74bc9865a6a038272ecc4de91dc78685", |
| Offset 2402, 31 lines modified | Offset 2402, 31 lines modified | ||
| 2402 | ········}, | 2402 | ········}, |
| 2403 | ········{ | 2403 | ········{ |
| 2404 | ············"signature":·"c50847d61a3b27eab9537d87d3f640e675fbc9c7360017b04c12550a8637792b", | 2404 | ············"signature":·"c50847d61a3b27eab9537d87d3f640e675fbc9c7360017b04c12550a8637792b", |
| 2405 | ············"version":·"0bff510a134272f57c0f09eb9dc842a99331240770065ea2f9bcc6000c095739" | 2405 | ············"version":·"0bff510a134272f57c0f09eb9dc842a99331240770065ea2f9bcc6000c095739" |
| 2406 | ········}, | 2406 | ········}, |
| 2407 | ········{ | 2407 | ········{ |
| 2408 | ············"signature":·"d4f659f416fbd83fcdb8a8b8b33407a35d4525779dad381524f7aed8b5c2b790", | 2408 | ············"signature":·"d4f659f416fbd83fcdb8a8b8b33407a35d4525779dad381524f7aed8b5c2b790", |
| 2409 | ············"version":·" | 2409 | ············"version":·"21840fa0820259c6ff6659e330d4c7a2ab7aa490a535be1dedc4d03ef68f7df2" |
| 2410 | ········}, | 2410 | ········}, |
| 2411 | ········{ | 2411 | ········{ |
| 2412 | ············"signature":·"594a42a1175cd18eb0dcb808f352f3a052d175253bac66a9de0fd79dbd74cff2", | 2412 | ············"signature":·"594a42a1175cd18eb0dcb808f352f3a052d175253bac66a9de0fd79dbd74cff2", |
| 2413 | ············"version":·"256d0d93c10a26caa5187eacb104f9a7ded38ca45a9d3943b56fdc7604546c39" | 2413 | ············"version":·"256d0d93c10a26caa5187eacb104f9a7ded38ca45a9d3943b56fdc7604546c39" |
| 2414 | ········}, | 2414 | ········}, |
| 2415 | ········{ | 2415 | ········{ |
| 2416 | ············"signature":·"e15035fc004fe1f0ff5fe34a68b0535f060ba6140e5a3e49afe9c1f1f415eab5", | 2416 | ············"signature":·"e15035fc004fe1f0ff5fe34a68b0535f060ba6140e5a3e49afe9c1f1f415eab5", |
| 2417 | ············"version":·"64ffff2eae843974a1673e881e9895241cf02259bb38cb0793d308423307e1ba" | 2417 | ············"version":·"64ffff2eae843974a1673e881e9895241cf02259bb38cb0793d308423307e1ba" |
| 2418 | ········}, | 2418 | ········}, |
| 2419 | ········{ | 2419 | ········{ |
| 2420 | ············"signature":·"7e8b0aa8e2332e87fbd65a36262b358591f91553dc2e8c7dfa8331700ec6ed3f", | 2420 | ············"signature":·"7e8b0aa8e2332e87fbd65a36262b358591f91553dc2e8c7dfa8331700ec6ed3f", |
| 2421 | ············"version":·"60cc7e271f3086c1d4264a74e571797d3547bd37d055779c7077f3a7380acfd1" | 2421 | ············"version":·"60cc7e271f3086c1d4264a74e571797d3547bd37d055779c7077f3a7380acfd1" |
| 2422 | ········}, | 2422 | ········}, |
| 2423 | ········{ | 2423 | ········{ |
| 2424 | ············"signature":·"dbf72b889d28a66c92439d9f241bf7923a1baaba0795b5805bccee811e634012", | ||
| 2425 | ············" | 2424 | ············"signature":·"7507e09a71f18aa83e42e59a09289cbbb38ddbc7262736ce57aa037e390d0c14", |
| 2425 | ············"version":·"3b52f3b0faf43a4f9d0ff777e24c2dfa2cf1acc2fdf0311badebcd7289db30d2" | ||
| 2426 | ········}, | 2426 | ········}, |
| 2427 | ········{ | 2427 | ········{ |
| 2428 | ············"signature":·"1ab842233b1d6a130764cfc22bd68179014b94dd7bd0209fc32c51213505594b", | 2428 | ············"signature":·"1ab842233b1d6a130764cfc22bd68179014b94dd7bd0209fc32c51213505594b", |
| 2429 | ············"version":·"b3633974a34ae99875b3b59abf6da94f69d5474d74551684953401f29842aa93" | 2429 | ············"version":·"b3633974a34ae99875b3b59abf6da94f69d5474d74551684953401f29842aa93" |
| 2430 | ········}, | 2430 | ········}, |
| 2431 | ········{ | 2431 | ········{ |
| 2432 | ············"signature":·"4202109303eee66d9c55a8f2b9ca8a2bfddc299417cebca8368f1c16caba78ab", | 2432 | ············"signature":·"4202109303eee66d9c55a8f2b9ca8a2bfddc299417cebca8368f1c16caba78ab", |
| Offset 2434, 15 lines modified | Offset 2434, 15 lines modified | ||
| 2434 | ········}, | 2434 | ········}, |
| 2435 | ········{ | 2435 | ········{ |
| 2436 | ············"signature":·"8d0fe88b489b915a9abda93a12c0d6c0fd11671c196331fec2e125a0a2b2bf65", | 2436 | ············"signature":·"8d0fe88b489b915a9abda93a12c0d6c0fd11671c196331fec2e125a0a2b2bf65", |
| 2437 | ············"version":·"94e7ae1a23de29527a95bbba4ce64c105426006634f3dc140a9d3f3aa49971dc" | 2437 | ············"version":·"94e7ae1a23de29527a95bbba4ce64c105426006634f3dc140a9d3f3aa49971dc" |
| 2438 | ········}, | 2438 | ········}, |
| 2439 | ········{ | 2439 | ········{ |
| 2440 | ············"signature":·"b48afdffc723bd64bb3310d22859589f3d5564b74a601e18c66ed96fa421e874", | 2440 | ············"signature":·"b48afdffc723bd64bb3310d22859589f3d5564b74a601e18c66ed96fa421e874", |
| 2441 | ············"version":·" | 2441 | ············"version":·"01a4e8308f0f774450d9184fc72d76c89674690687898afa90021dad927a73e3" |
| 2442 | ········}, | 2442 | ········}, |
| 2443 | ········{ | 2443 | ········{ |
| 2444 | ············"signature":·"97f04135ad2e85bdf5576e59b61d1ceb2e4f8a59e639aaae1ebefbc6398ea4be", | 2444 | ············"signature":·"97f04135ad2e85bdf5576e59b61d1ceb2e4f8a59e639aaae1ebefbc6398ea4be", |
| 2445 | ············"version":·"0e82708f6dca7e90b27f9409a4f4d45844f4a6dfcb18a5a3d7e8856599cee712" | 2445 | ············"version":·"0e82708f6dca7e90b27f9409a4f4d45844f4a6dfcb18a5a3d7e8856599cee712" |
| 2446 | ········}, | 2446 | ········}, |
| 2447 | ········{ | 2447 | ········{ |
| 2448 | ············"signature":·"0ae0baaa66d82018bcef5f4b9a9832a12517c0f36c6300ab650cccc89517503e", | 2448 | ············"signature":·"0ae0baaa66d82018bcef5f4b9a9832a12517c0f36c6300ab650cccc89517503e", |
| Offset 2809, 20 lines modified | Offset 2809, 20 lines modified | ||
| 2809 | ············"version":·"c0ea6839c46f1d06b120ec03b002ae9e2589217b8019200e2a23ac833192f35f" | 2809 | ············"version":·"c0ea6839c46f1d06b120ec03b002ae9e2589217b8019200e2a23ac833192f35f" |
| 2810 | ········}, | 2810 | ········}, |
| 2811 | ········{ | 2811 | ········{ |
| 2812 | ············"signature":·"302b45ef17c9c216d0d372b68da143e4ca7951f96c1d39ec74534bb293a8f1b0", | 2812 | ············"signature":·"302b45ef17c9c216d0d372b68da143e4ca7951f96c1d39ec74534bb293a8f1b0", |
| 2813 | ············"version":·"b3e94d58b7a065fb62eb3d10a9f3ab9cda9b0c16190588b675e85f33adcc3e3f" | 2813 | ············"version":·"b3e94d58b7a065fb62eb3d10a9f3ab9cda9b0c16190588b675e85f33adcc3e3f" |
| 2814 | ········}, | 2814 | ········}, |
| 2815 | ········{ | 2815 | ········{ |
| 2816 | ············"signature":·"3337ee264a1fd55b5f28e3f42a63382ef57866a6e3e523c2100535f61c995102", | ||
| 2817 | ············" | 2816 | ············"signature":·"f519a83bcee4e79518e203e2eb8c37d0dd828339bc360ec2c768cc5de29f2e49", |
| 2817 | ············"version":·"9a783f45fe7dbfbe79be2ac62eafcde133cd89057f0e0d4450bbc554c2a7f436" | ||
| 2818 | ········}, | 2818 | ········}, |
| 2819 | ········{ | 2819 | ········{ |
| 2820 | ············"signature":·"a72446c61b355560313b576e4d2a7c9af19910b702ae6f430991f08e5669d230", | 2820 | ············"signature":·"a72446c61b355560313b576e4d2a7c9af19910b702ae6f430991f08e5669d230", |
| 2821 | ············"version":·" | 2821 | ············"version":·"ff354c87010cd5b6f56394af616e3b8fdf465094976d2b5cc67b65cf28e87fd6" |
| 2822 | ········}, | 2822 | ········}, |
| 2823 | ········{ | 2823 | ········{ |
| 2824 | ············"signature":·"2a5ec94895f0655219f2910ebb35a0cf1a6d37c11888dd48bc19f858f6f1bc7e", | 2824 | ············"signature":·"2a5ec94895f0655219f2910ebb35a0cf1a6d37c11888dd48bc19f858f6f1bc7e", |
| 2825 | ············"version":·"d85e4f4e66b539959be072aea2378926e4d2d2b8fcb81ebe49c878aac64e0298" | 2825 | ············"version":·"d85e4f4e66b539959be072aea2378926e4d2d2b8fcb81ebe49c878aac64e0298" |
| 2826 | ········}, | 2826 | ········}, |
| 2827 | ········{ | 2827 | ········{ |
| 2828 | ············"signature":·"0574be0d8961ba68b2ee81fa2a822a56b9d2042618d3de6dafbeaf5bb6f8bbc2", | 2828 | ············"signature":·"0574be0d8961ba68b2ee81fa2a822a56b9d2042618d3de6dafbeaf5bb6f8bbc2", |
| Offset 8, 8 lines modified | Offset 8, 9 lines modified | ||
| 8 | export·declare·const·dirname:·(path:·string)·=>·string; | 8 | export·declare·const·dirname:·(path:·string)·=>·string; |
| 9 | export·declare·const·joinPaths:·(...paths:·string[])·=>·string; | 9 | export·declare·const·joinPaths:·(...paths:·string[])·=>·string; |
| 10 | interface·FilterStaticGenerateRouteData·{ | 10 | interface·FilterStaticGenerateRouteData·{ |
| 11 | ····path:·string; | 11 | ····path:·string; |
| 12 | } | 12 | } |
| 13 | export·declare·const·filterStaticGenerateRoutes:·<E·extends·Env>(hono:·Hono<E>)·=>·FilterStaticGenerateRouteData[]; | 13 | export·declare·const·filterStaticGenerateRoutes:·<E·extends·Env>(hono:·Hono<E>)·=>·FilterStaticGenerateRouteData[]; |
| 14 | export·declare·const·isDynamicRoute:·(path:·string)·=>·boolean; | 14 | export·declare·const·isDynamicRoute:·(path:·string)·=>·boolean; |
| 15 | export·declare·const·ensureWithinOutDir:·(outDir:·string,·filePath:·string)·=>·void; | ||
| 15 | export·{}; | 16 | export·{}; |
| Offset 29, 12 lines modified | Offset 29, 24 lines modified | ||
| 29 | /** | 29 | /** |
| 30 | ·*·Convert·a·binary·representation·of·an·IPv4·address·to·a·string. | 30 | ·*·Convert·a·binary·representation·of·an·IPv4·address·to·a·string. |
| 31 | ·*·@param·ipV4·binary·IPv4·Address | 31 | ·*·@param·ipV4·binary·IPv4·Address |
| 32 | ·*·@return·IPv4·Address·in·string | 32 | ·*·@return·IPv4·Address·in·string |
| 33 | ·*/ | 33 | ·*/ |
| 34 | export·declare·const·convertIPv4BinaryToString:·(ipV4:·bigint)·=>·string; | 34 | export·declare·const·convertIPv4BinaryToString:·(ipV4:·bigint)·=>·string; |
| 35 | /** | 35 | /** |
| 36 | ·*·Check·if·a·binary·IPv6·address·is·an·IPv4-mapped·IPv6·address·(::ffff:x.x.x.x) | ||
| 37 | ·*·@param·ipv6binary·binary·IPv6·Address | ||
| 38 | ·*·@return·true·if·the·address·is·an·IPv4-mapped·IPv6·address | ||
| 39 | ·*/ | ||
| 40 | export·declare·const·isIPv4MappedIPv6:·(ipv6binary:·bigint)·=>·boolean; | ||
| 41 | /** | ||
| 42 | ·*·Extract·the·IPv4·portion·from·an·IPv4-mapped·IPv6·address | ||
| 43 | ·*·@param·ipv6binary·binary·IPv4-mapped·IPv6·Address | ||
| 44 | ·*·@return·binary·IPv4·Address | ||
| 45 | ·*/ | ||
| 46 | export·declare·const·convertIPv4MappedIPv6ToIPv4:·(ipv6binary:·bigint)·=>·bigint; | ||
| 47 | /** | ||
| 36 | ·*·Convert·a·binary·representation·of·an·IPv6·address·to·a·string. | 48 | ·*·Convert·a·binary·representation·of·an·IPv6·address·to·a·string. |
| 37 | ·*·@param·ipV6·binary·IPv6·Address | 49 | ·*·@param·ipV6·binary·IPv6·Address |
| 38 | ·*·@return·normalized·IPv6·Address·in·string | 50 | ·*·@return·normalized·IPv6·Address·in·string |
| 39 | ·*/ | 51 | ·*/ |
| 40 | export·declare·const·convertIPv6BinaryToString:·(ipV6:·bigint)·=>·string; | 52 | export·declare·const·convertIPv6BinaryToString:·(ipV6:·bigint)·=>·string; |
| Offset 67, 257 lines modified | Offset 67, 291 lines modified | ||
| 00000420:·2066·616c·7365·3b0a·2020·7d0a·7d3b·0a76···false;.··}.};.v | 00000420:·2066·616c·7365·3b0a·2020·7d0a·7d3b·0a76···false;.··}.};.v | ||
| 00000430:·6172·2076·616c·6964·436f·6f6b·6965·4e61··ar·validCookieNa | 00000430:·6172·2076·616c·6964·436f·6f6b·6965·4e61··ar·validCookieNa | ||
| 00000440:·6d65·5265·6745·7820·3d20·2f5e·5b5c·7721··meRegEx·=·/^[\w! | 00000440:·6d65·5265·6745·7820·3d20·2f5e·5b5c·7721··meRegEx·=·/^[\w! | ||
| 00000450:·2324·2526·272a·2e5e·607c·7e2b·2d5d·2b24··#$%&'*.^`|~+-]+$ | 00000450:·2324·2526·272a·2e5e·607c·7e2b·2d5d·2b24··#$%&'*.^`|~+-]+$ | ||
| 00000460:·2f3b·0a76·6172·2076·616c·6964·436f·6f6b··/;.var·validCook | 00000460:·2f3b·0a76·6172·2076·616c·6964·436f·6f6b··/;.var·validCook | ||
| 00000470:·6965·5661·6c75·6552·6567·4578·203d·202f··ieValueRegEx·=·/ | 00000470:·6965·5661·6c75·6552·6567·4578·203d·202f··ieValueRegEx·=·/ | ||
| 00000480:·5e5b·2021·232d·3a3c·2d5b·5c5d·2d7e·5d2a··^[·!#-:<-[\]-~]* | 00000480:·5e5b·2021·232d·3a3c·2d5b·5c5d·2d7e·5d2a··^[·!#-:<-[\]-~]* | ||
| 00000490:·242f·3b0a·7661·7220·7061·7273·6520·3d20··$/;.var·parse·=· | |||
| 000004a0:·2863·6f6f·6b69·652c·206e·616d·6529·203d··(cookie,·name)·= | |||
| 000004b0:·3e20·7b0a·2020·6966·2028·6e61·6d65·2026··>·{.··if·(name·& | |||
| 000004c0:·2620·636f·6f6b·6965·2e69·6e64·6578·4f66··&·cookie.indexOf | |||
| 000004d0:·286e·616d·6529·203d·3d3d·202d·3129·207b··(name)·===·-1)·{ | |||
| 000004e0:·0a20·2020·2072·6574·7572·6e20·7b7d·3b0a··.····return·{};. | |||
| 000004f0:·2020·7d0a·2020·636f·6e73·7420·7061·6972····}.··const·pair | |||
| 00000500:·7320·3d20·636f·6f6b·6965·2e74·7269·6d28··s·=·cookie.trim( | |||
| 00000510:·292e·7370·6c69·7428·223b·2229·3b0a·2020··).split(";");.·· | |||
| 00000520:·636f·6e73·7420·7061·7273·6564·436f·6f6b··const·parsedCook | |||
| 00000530:·6965·203d·207b·7d3b·0a20·2066·6f72·2028··ie·=·{};.··for·( | |||
| 00000540:·6c65·7420·7061·6972·5374·7220·6f66·2070··let·pairStr·of·p | |||
| 00000550:·6169·7273·2920·7b0a·2020·2020·7061·6972··airs)·{.····pair | |||
| 00000 | 00000490:·242f·3b0a·7661·7220·7472·696d·436f·6f6b··$/;.var·trimCook | ||
| 000004a0:·6965·5768·6974·6573·7061·6365·203d·2028··ieWhitespace·=·( | |||
| 000004b0:·7661·6c75·6529·203d·3e20·7b0a·2020·6c65··value)·=>·{.··le | |||
| 000004c0:·7420·7374·6172·7420·3d20·303b·0a20·206c··t·start·=·0;.··l | |||
| 000004d0:·6574·2065·6e64·203d·2076·616c·7565·2e6c··et·end·=·value.l | |||
| 000004e0:·656e·6774·683b·0a20·2077·6869·6c65·2028··ength;.··while·( | |||
| 000004f0:·7374·6172·7420·3c20·656e·6429·207b·0a20··start·<·end)·{.· | |||
| 00000500:·2020·2063·6f6e·7374·2063·6861·7243·6f64·····const·charCod | |||
| 00000510:·6520·3d20·7661·6c75·652e·6368·6172·436f··e·=·value.charCo | |||
| 00000520:·6465·4174·2873·7461·7274·293b·0a20·2020··deAt(start);.··· | |||
| 00000530:·2069·6620·2863·6861·7243·6f64·6520·213d···if·(charCode·!= | |||
| 00000540:·3d20·3332·2026·2620·6368·6172·436f·6465··=·32·&&·charCode | |||
| 00000550:·2021·3d3d·2039·2920·7b0a·2020·2020·2020···!==·9)·{.······ | |||
| 00000560:·6272·6561·6b3b·0a20·2020·207d·0a20·2020··break;.····}.··· | |||
| 00000570:·2073·7461·7274·2b2b·3b0a·2020·7d0a·2020···start++;.··}.·· | |||
| 00000580:·7768·696c·6520·2865·6e64·203e·2073·7461··while·(end·>·sta | |||
| 000005 | 00000590:·7274·2920·7b0a·2020·2020·636f·6e73·7420··rt)·{.····const· | ||
| 00000580:·7661·6c75·6553·7461·7274·506f·7320·3d20··valueStartPos·=· | |||
| 000005 | 000005a0:·6368·6172·436f·6465·203d·2076·616c·7565··charCode·=·value | ||
| 000005b0:·2e63·6861·7243·6f64·6541·7428·656e·6420··.charCodeAt(end· | |||
| 000005 | 000005c0:·2d20·3129·3b0a·2020·2020·6966·2028·6368··-·1);.····if·(ch | ||
| 000005 | 000005d0:·6172·436f·6465·2021·3d3d·2033·3220·2626··arCode·!==·32·&& | ||
| 000005e0:·2063·6861·7243·6f64·6520·213d·3d20·3929···charCode·!==·9) | |||
| 000005f0:·207b·0a20·2020·2020·2062·7265·616b·3b0a···{.······break;. | |||
| 00000600:·2020·2020·7d0a·2020·2020·656e·642d·2d3b······}.····end--; | |||
| 00000610:·0a20·207d·0a20·2072·6574·7572·6e20·7374··.··}.··return·st | |||
| 00000620:·6172·7420·3d3d·3d20·3020·2626·2065·6e64··art·===·0·&&·end | |||
| 00000630:·203d·3d3d·2076·616c·7565·2e6c·656e·6774···===·value.lengt | |||
| 00000640:·6820·3f20·7661·6c75·6520·3a20·7661·6c75··h·?·value·:·valu | |||
| 00000650:·652e·736c·6963·6528·7374·6172·742c·2065··e.slice(start,·e | |||
| 00000660:·6e64·293b·0a7d·3b0a·7661·7220·7061·7273··nd);.};.var·pars | |||
| 00000670:·6520·3d20·2863·6f6f·6b69·652c·206e·616d··e·=·(cookie,·nam | |||
| 00000680:·6529·203d·3e20·7b0a·2020·6966·2028·6e61··e)·=>·{.··if·(na | |||
| 00000690:·6d65·2026·2620·636f·6f6b·6965·2e69·6e64··me·&&·cookie.ind | |||
| 000006a0:·6578·4f66·286e·616d·6529·203d·3d3d·202d··exOf(name)·===·- | |||
| 000006b0:·3129·207b·0a20·2020·2072·6574·7572·6e20··1)·{.····return· | |||
| 000006c0:·7b7d·3b0a·2020·7d0a·2020·636f·6e73·7420··{};.··}.··const· | |||
| 000006d0:·7061·6972·7320·3d20·636f·6f6b·6965·2e73··pairs·=·cookie.s | |||
| 000006e0:·706c·6974·2822·3b22·293b·0a20·2063·6f6e··plit(";");.··con | |||
| 000006f0:·7374·2070·6172·7365·6443·6f6f·6b69·6520··st·parsedCookie· | |||
| 00000700:·3d20·7b7d·3b0a·2020·666f·7220·2863·6f6e··=·{};.··for·(con | |||
| 00000710:·7374·2070·6169·7253·7472·206f·6620·7061··st·pairStr·of·pa | |||
| 00000720:·6972·7329·207b·0a20·2020·2063·6f6e·7374··irs)·{.····const | |||
| 00000730:·2076·616c·7565·5374·6172·7450·6f73·203d···valueStartPos·= | |||
| 00000740:·2070·6169·7253·7472·2e69·6e64·6578·4f66···pairStr.indexOf | |||
| 00000750:·2822·3d22·293b·0a20·2020·2069·6620·2876··("=");.····if·(v | |||
| 00000760:·616c·7565·5374·6172·7450·6f73·203d·3d3d··alueStartPos·=== | |||
| 00000 | 00000770:·202d·3129·207b·0a20·2020·2020·2063·6f6e···-1)·{.······con | ||
| 00000 | 00000780:·7469·6e75·653b·0a20·2020·207d·0a20·2020··tinue;.····}.··· | ||
| 000005e0:·636f·6e73·7420·636f·6f6b·6965·4e61·6d65··const·cookieName | |||
| 000005f0:·203d·2070·6169·7253·7472·2e73·7562·7374···=·pairStr.subst | |||
| 00000600:·7269·6e67·2830·2c20·7661·6c75·6553·7461··ring(0,·valueSta | |||
| 00000 | 00000790:·2063·6f6e·7374·2063·6f6f·6b69·654e·616d···const·cookieNam | ||
| 000007a0:·6520·3d20·7472·696d·436f·6f6b·6965·5768··e·=·trimCookieWh | |||
| 000007b0:·6974·6573·7061·6365·2870·6169·7253·7472··itespace(pairStr | |||
| 000007c0:·2e73·7562·7374·7269·6e67·2830·2c20·7661··.substring(0,·va | |||
| 000007d0:·6c75·6553·7461·7274·506f·7329·293b·0a20··lueStartPos));.· | |||
| 00000 | 000007e0:·2020·2069·6620·286e·616d·6520·2626·206e·····if·(name·&&·n | ||
| 00000 | 000007f0:·616d·6520·213d·3d20·636f·6f6b·6965·4e61··ame·!==·cookieNa | ||
| 00000 | 00000800:·6d65·207c·7c20·2176·616c·6964·436f·6f6b··me·||·!validCook | ||
| 00000 | 00000810:·6965·4e61·6d65·5265·6745·782e·7465·7374··ieNameRegEx.test | ||
| 00000 | 00000820:·2863·6f6f·6b69·654e·616d·6529·2920·7b0a··(cookieName))·{. | ||
| 00000 | 00000830:·2020·2020·2020·636f·6e74·696e·7565·3b0a········continue;. | ||
| 00000 | 00000840:·2020·2020·7d0a·2020·2020·6c65·7420·636f······}.····let·co | ||
| 00000 | 00000850:·6f6b·6965·5661·6c75·6520·3d20·7472·696d··okieValue·=·trim | ||
| 000006a0:·5374·722e·7375·6273·7472·696e·6728·7661··Str.substring(va | |||
| 000006b0:·6c75·6553·7461·7274·506f·7320·2b20·3129··lueStartPos·+·1) | |||
| 00000 | 00000860:·436f·6f6b·6965·5768·6974·6573·7061·6365··CookieWhitespace | ||
| 00000870:·2870·6169·7253·7472·2e73·7562·7374·7269··(pairStr.substri | |||
| 00000880:·6e67·2876·616c·7565·5374·6172·7450·6f73··ng(valueStartPos | |||
| 00000890:·202b·2031·2929·3b0a·2020·2020·6966·2028···+·1));.····if·( | |||
| 000008a0:·636f·6f6b·6965·5661·6c75·652e·7374·6172··cookieValue.star | |||
| 000008b0:·7473·5769·7468·2827·2227·2920·2626·2063··tsWith('"')·&&·c | |||
| 00000 | 000008c0:·6f6f·6b69·6556·616c·7565·2e65·6e64·7357··ookieValue.endsW | ||
| 00000 | 000008d0:·6974·6828·2722·2729·2920·7b0a·2020·2020··ith('"'))·{.···· | ||
| 000008e0:·2020·636f·6f6b·6965·5661·6c75·6520·3d20····cookieValue·=· | |||
| 00000 | 000008f0:·636f·6f6b·6965·5661·6c75·652e·736c·6963··cookieValue.slic | ||
| 00000900:·6528·312c·202d·3129·3b0a·2020·2020·7d0a··e(1,·-1);.····}. | |||
| 00000910:·2020·2020·6966·2028·7661·6c69·6443·6f6f······if·(validCoo | |||
| Max diff block lines reached; -1/37342 bytes (-0.00%) of diff not shown. | |||
| Offset 92, 83 lines modified | Offset 92, 97 lines modified | ||
| 000005b0:·2028·6c65·7420·6920·3d20·303b·2069·203c···(let·i·=·0;·i·< | 000005b0:·2028·6c65·7420·6920·3d20·303b·2069·203c···(let·i·=·0;·i·< | ||
| 000005c0:·2034·3b20·692b·2b29·207b·0a20·2020·2073···4;·i++)·{.····s | 000005c0:·2034·3b20·692b·2b29·207b·0a20·2020·2073···4;·i++)·{.····s | ||
| 000005d0:·6563·7469·6f6e·732e·7075·7368·2869·7056··ections.push(ipV | 000005d0:·6563·7469·6f6e·732e·7075·7368·2869·7056··ections.push(ipV | ||
| 000005e0:·3420·3e3e·2042·6967·496e·7428·3820·2a20··4·>>·BigInt(8·*· | 000005e0:·3420·3e3e·2042·6967·496e·7428·3820·2a20··4·>>·BigInt(8·*· | ||
| 000005f0:·2833·202d·2069·2929·2026·2030·7866·666e··(3·-·i))·&·0xffn | 000005f0:·2833·202d·2069·2929·2026·2030·7866·666e··(3·-·i))·&·0xffn | ||
| 00000600:·293b·0a20·207d·0a20·2072·6574·7572·6e20··);.··}.··return· | 00000600:·293b·0a20·207d·0a20·2072·6574·7572·6e20··);.··}.··return· | ||
| 00000610:·7365·6374·696f·6e73·2e6a·6f69·6e28·222e··sections.join(". | 00000610:·7365·6374·696f·6e73·2e6a·6f69·6e28·222e··sections.join(". | ||
| 00000620:·2229·3b0a·7d3b·0a76·6172·206 | 00000620:·2229·3b0a·7d3b·0a76·6172·2069·7349·5076··");.};.var·isIPv | ||
| 00000630:·344d·6170·7065·6449·5076·3620·3d20·2869··4MappedIPv6·=·(i | |||
| 00000640:·7076·3662·696e·6172·7929·203d·3e20·6970··pv6binary)·=>·ip | |||
| 00000650:·7636·6269·6e61·7279·203e·3e20·3332·6e20··v6binary·>>·32n· | |||
| 00000660:·3d3d·3d20·3078·6666·6666·6e3b·0a76·6172··===·0xffffn;.var | |||
| 00000670:·2063·6f6e·7665·7274·4950·7634·4d61·7070···convertIPv4Mapp | |||
| 00000680:·6564·4950·7636·546f·4950·7634·203d·2028··edIPv6ToIPv4·=·( | |||
| 00000690:·6970·7636·6269·6e61·7279·2920·3d3e·2069··ipv6binary)·=>·i | |||
| 000006a0:·7076·3662·696e·6172·7920·2620·3078·6666··pv6binary·&·0xff | |||
| 000006b0:·6666·6666·6666·6e3b·0a76·6172·2063·6f6e··ffffffn;.var·con | |||
| 000006 | 000006c0:·7665·7274·4950·7636·4269·6e61·7279·546f··vertIPv6BinaryTo | ||
| 000006 | 000006d0:·5374·7269·6e67·203d·2028·6970·5636·2920··String·=·(ipV6)· | ||
| 00000650:·207b·0a20·2069·6620·2869·7056·3620·3e3e···{.··if·(ipV6·>> | |||
| 00000660:·2033·326e·203d·3d3d·2030·7866·6666·666e···32n·===·0xffffn | |||
| 00000670:·2920·7b0a·2020·2020·7265·7475·726e·2060··)·{.····return·` | |||
| 00000680:·3a3a·6666·6666·3a24·7b63·6f6e·7665·7274··::ffff:${convert | |||
| 00000690:·4950·7634·4269·6e61·7279·546f·5374·7269··IPv4BinaryToStri | |||
| 000006 | 000006e0:·3d3e·207b·0a20·2069·6620·2869·7349·5076··=>·{.··if·(isIPv | ||
| 000006f0:·344d·6170·7065·6449·5076·3628·6970·5636··4MappedIPv6(ipV6 | |||
| 00000700:·2929·207b·0a20·2020·2072·6574·7572·6e20··))·{.····return· | |||
| 00000710:·603a·3a66·6666·663a·247b·636f·6e76·6572··`::ffff:${conver | |||
| 00000720:·7449·5076·3442·696e·6172·7954·6f53·7472··tIPv4BinaryToStr | |||
| 00000730:·696e·6728·636f·6e76·6572·7449·5076·344d··ing(convertIPv4M | |||
| 00000740:·6170·7065·6449·5076·3654·6f49·5076·3428··appedIPv6ToIPv4( | |||
| 00000 | 00000750:·6970·5636·2929·7d60·3b0a·2020·7d0a·2020··ipV6))}`;.··}.·· | ||
| 00000 | 00000760:·636f·6e73·7420·7365·6374·696f·6e73·203d··const·sections·= | ||
| 00000 | 00000770:·205b·5d3b·0a20·2066·6f72·2028·6c65·7420···[];.··for·(let· | ||
| 00000 | 00000780:·6920·3d20·303b·2069·203c·2038·3b20·692b··i·=·0;·i·<·8;·i+ | ||
| 00000 | 00000790:·2b29·207b·0a20·2020·2073·6563·7469·6f6e··+)·{.····section | ||
| 000007 | 000007a0:·732e·7075·7368·2828·6970·5636·203e·3e20··s.push((ipV6·>>· | ||
| 000007 | 000007b0:·4269·6749·6e74·2831·3620·2a20·2837·202d··BigInt(16·*·(7·- | ||
| 000007 | 000007c0:·2069·2929·2026·2030·7866·6666·666e·292e···i))·&·0xffffn). | ||
| 000007 | 000007d0:·746f·5374·7269·6e67·2831·3629·293b·0a20··toString(16));.· | ||
| 000007 | 000007e0:·207d·0a20·206c·6574·2063·7572·7265·6e74···}.··let·current | ||
| 000007 | 000007f0:·5a65·726f·5374·6172·7420·3d20·2d31·3b0a··ZeroStart·=·-1;. | ||
| 00000 | 00000800:·2020·6c65·7420·6d61·785a·6572·6f53·7461····let·maxZeroSta | ||
| 00000 | 00000810:·7274·203d·202d·313b·0a20·206c·6574·206d··rt·=·-1;.··let·m | ||
| 00000 | 00000820:·6178·5a65·726f·456e·6420·3d20·2d31·3b0a··axZeroEnd·=·-1;. | ||
| 00000 | 00000830:·2020·666f·7220·286c·6574·2069·203d·2030····for·(let·i·=·0 | ||
| 00000 | 00000840:·3b20·6920·3c20·383b·2069·2b2b·2920·7b0a··;·i·<·8;·i++)·{. | ||
| 00000 | 00000850:·2020·2020·6966·2028·7365·6374·696f·6e73······if·(sections | ||
| 00000 | 00000860:·5b69·5d20·3d3d·3d20·2230·2229·207b·0a20··[i]·===·"0")·{.· | ||
| 00000 | 00000870:·2020·2020·2069·6620·2863·7572·7265·6e74·······if·(current | ||
| 00000 | 00000880:·5a65·726f·5374·6172·7420·3d3d·3d20·2d31··ZeroStart·===·-1 | ||
| 00000 | 00000890:·2920·7b0a·2020·2020·2020·2020·6375·7272··)·{.········curr | ||
| 000008 | 000008a0:·656e·745a·6572·6f53·7461·7274·203d·2069··entZeroStart·=·i | ||
| 000008 | 000008b0:·3b0a·2020·2020·2020·7d0a·2020·2020·7d20··;.······}.····}· | ||
| 000008 | 000008c0:·656c·7365·207b·0a20·2020·2020·2069·6620··else·{.······if· | ||
| 000008 | 000008d0:·2863·7572·7265·6e74·5a65·726f·5374·6172··(currentZeroStar | ||
| 000008 | 000008e0:·7420·3e20·2d31·2920·7b0a·2020·2020·2020··t·>·-1)·{.······ | ||
| 000008 | 000008f0:·2020·6966·2028·6920·2d20·6375·7272·656e····if·(i·-·curren | ||
| 00000 | 00000900:·745a·6572·6f53·7461·7274·203e·206d·6178··tZeroStart·>·max | ||
| 00000 | 00000910:·5a65·726f·456e·6420·2d20·6d61·785a·6572··ZeroEnd·-·maxZer | ||
| 00000 | 00000920:·6f53·7461·7274·2920·7b0a·2020·2020·2020··oStart)·{.······ | ||
| 00000 | 00000930:·2020·2020·6d61·785a·6572·6f53·7461·7274······maxZeroStart | ||
| 00000 | 00000940:·203d·2063·7572·7265·6e74·5a65·726f·5374···=·currentZeroSt | ||
| 00000 | 00000950:·6172·743b·0a20·2020·2020·2020·2020·206d··art;.··········m | ||
| 00000 | 00000960:·6178·5a65·726f·456e·6420·3d20·693b·0a20··axZeroEnd·=·i;.· | ||
| 00000 | 00000970:·2020·2020·2020·207d·0a20·2020·2020·2020·········}.······· | ||
| 00000 | 00000980:·2063·7572·7265·6e74·5a65·726f·5374·6172···currentZeroStar | ||
| 00000 | 00000990:·7420·3d20·2d31·3b0a·2020·2020·2020·7d0a··t·=·-1;.······}. | ||
| 000009 | 000009a0:·2020·2020·7d0a·2020·7d0a·2020·6966·2028······}.··}.··if·( | ||
| 000009 | 000009b0:·6375·7272·656e·745a·6572·6f53·7461·7274··currentZeroStart | ||
| 000009 | 000009c0:·203e·202d·3129·207b·0a20·2020·2069·6620···>·-1)·{.····if· | ||
| 000009 | 000009d0:·2838·202d·2063·7572·7265·6e74·5a65·726f··(8·-·currentZero | ||
| 000009 | 000009e0:·5374·6172·7420·3e20·6d61·785a·6572·6f45··Start·>·maxZeroE | ||
| 000009 | 000009f0:·6e64·202d·206d·6178·5a65·726f·5374·6172··nd·-·maxZeroStar | ||
| 00000 | 00000a00:·7429·207b·0a20·2020·2020·206d·6178·5a65··t)·{.······maxZe | ||
| 00000 | 00000a10:·726f·5374·6172·7420·3d20·6375·7272·656e··roStart·=·curren | ||
| 00000 | 00000a20:·745a·6572·6f53·7461·7274·3b0a·2020·2020··tZeroStart;.···· | ||
| 00000 | 00000a30:·2020·6d61·785a·6572·6f45·6e64·203d·2038····maxZeroEnd·=·8 | ||
| 00000 | 00000a40:·3b0a·2020·2020·7d0a·2020·7d0a·2020·6966··;.····}.··}.··if | ||
| 00000 | 00000a50:·2028·6d61·785a·6572·6f53·7461·7274·2021···(maxZeroStart·! | ||
| 00000 | 00000a60:·3d3d·202d·3129·207b·0a20·2020·2073·6563··==·-1)·{.····sec | ||
| 00000 | 00000a70:·7469·6f6e·732e·7370·6c69·6365·286d·6178··tions.splice(max | ||
| 00000 | 00000a80:·5a65·726f·5374·6172·742c·206d·6178·5a65··ZeroStart,·maxZe | ||
| 00000 | 00000a90:·726f·456e·6420·2d20·6d61·785a·6572·6f53··roEnd·-·maxZeroS | ||
| 00000a | 00000aa0:·7461·7274·2c20·223a·2229·3b0a·2020·7d0a··tart,·":");.··}. | ||
| 00000a | 00000ab0:·2020·7265·7475·726e·2073·6563·7469·6f6e····return·section | ||
| 00000a | 00000ac0:·732e·6a6f·696e·2822·3a22·292e·7265·706c··s.join(":").repl | ||
| 00000a | 00000ad0:·6163·6528·2f3a·7b32·2c7d·2f67·2c20·223a··ace(/:{2,}/g,·": | ||
| 00000a | 00000ae0:·3a22·293b·0a7d·3b0a·6578·706f·7274·207b··:");.};.export·{ | ||
| 00000a | 00000af0:·0a20·2063·6f6e·7665·7274·4950·7634·4269··.··convertIPv4Bi | ||
| 00000 | 00000b00:·6e61·7279·546f·5374·7269·6e67·2c0a·2020··naryToString,.·· | ||
| 00000 | 00000b10:·636f·6e76·6572·7449·5076·344d·6170·7065··convertIPv4Mappe | ||
| 00000a80:·6172·792c·0a20·2063·6f6e·7665·7274·4950··ary,.··convertIP | |||
| 00000 | 00000b20:·6449·5076·3654·6f49·5076·342c·0a20·2063··dIPv6ToIPv4,.··c | ||
| 00000b30:·6f6e·7665·7274·4950·7634·546f·4269·6e61··onvertIPv4ToBina | |||
| 00000 | 00000b40:·7279·2c0a·2020·636f·6e76·6572·7449·5076··ry,.··convertIPv | ||
| 00000ab0:·6f42·696e·6172·792c·0a20·2064·6973·7469··oBinary,.··disti | |||
| 00000ac0:·6e63·7452·656d·6f74·6541·6464·722c·0a20··nctRemoteAddr,.· | |||
| 00000 | 00000b50:·3642·696e·6172·7954·6f53·7472·696e·672c··6BinaryToString, | ||
| Max diff block lines reached; -1/11942 bytes (-0.01%) of diff not shown. | |||
| Offset 684, 9 lines modified | Offset 684, 9 lines modified | ||
| 684 | ················"./dist/types/adapter/vercel" | 684 | ················"./dist/types/adapter/vercel" |
| 685 | ············], | 685 | ············], |
| 686 | ············"ws":·[ | 686 | ············"ws":·[ |
| 687 | ················"./dist/types/helper/websocket" | 687 | ················"./dist/types/helper/websocket" |
| 688 | ············] | 688 | ············] |
| 689 | ········} | 689 | ········} |
| 690 | ····}, | 690 | ····}, |
| 691 | ····"version":·"4.12.1 | 691 | ····"version":·"4.12.12" |
| 692 | } | 692 | } |
| Offset 35, 14 lines modified | Offset 35, 20 lines modified | ||
| 35 | ····/** | 35 | ····/** |
| 36 | ·····*·TODO·docs | 36 | ·····*·TODO·docs |
| 37 | ·····*·@default·'shared' | 37 | ·····*·@default·'shared' |
| 38 | ·····*/ | 38 | ·····*/ |
| 39 | ····type?:·'shared'·|·'private' | 39 | ····type?:·'shared'·|·'private' |
| 40 | ····/** | ||
| 41 | ·····*·Array·of·origins·to·cache.·Only·requests·to·these·origins·will·be·cached. | ||
| 42 | ·····*·Supports·strings·(case·insensitive)·and·RegExp·patterns. | ||
| 43 | ·····*·@default·undefined·(cache·all·origins) | ||
| 44 | ·····*/ | ||
| 45 | ····origins?:·(string·|·RegExp)[] | ||
| 40 | ··} | 46 | ··} |
| 41 | ··export·interface·CacheControlDirectives·{ | 47 | ··export·interface·CacheControlDirectives·{ |
| 42 | ····'max-stale'?:·number; | 48 | ····'max-stale'?:·number; |
| 43 | ····'min-fresh'?:·number; | 49 | ····'min-fresh'?:·number; |
| 44 | ····'max-age'?:·number; | 50 | ····'max-age'?:·number; |
| 45 | ····'s-maxage'?:·number; | 51 | ····'s-maxage'?:·number; |
| Offset 88, 14 lines modified | Offset 88, 24 lines modified | ||
| 88 | ·····*/ | 88 | ·····*/ |
| 89 | ····allowH2?:·boolean; | 89 | ····allowH2?:·boolean; |
| 90 | ····/** | 90 | ····/** |
| 91 | ·····*·@description·Dictates·the·maximum·number·of·concurrent·streams·for·a·single·H2·session.·It·can·be·overridden·by·a·SETTINGS·remote·frame. | 91 | ·····*·@description·Dictates·the·maximum·number·of·concurrent·streams·for·a·single·H2·session.·It·can·be·overridden·by·a·SETTINGS·remote·frame. |
| 92 | ·····*·@default·100 | 92 | ·····*·@default·100 |
| 93 | ·····*/ | 93 | ·····*/ |
| 94 | ····maxConcurrentStreams?:·number; | 94 | ····maxConcurrentStreams?:·number; |
| 95 | ····/** | ||
| 96 | ·····*·@description·Sets·the·HTTP/2·stream-level·flow-control·window·size·(SETTINGS_INITIAL_WINDOW_SIZE). | ||
| 97 | ·····*·@default·262144 | ||
| 98 | ·····*/ | ||
| 99 | ····initialWindowSize?:·number; | ||
| 100 | ····/** | ||
| 101 | ·····*·@description·Sets·the·HTTP/2·connection-level·flow-control·window·size·(ClientHttp2Session.setLocalWindowSize). | ||
| 102 | ·····*·@default·524288 | ||
| 103 | ·····*/ | ||
| 104 | ····connectionWindowSize?:·number; | ||
| 95 | ··} | 105 | ··} |
| 96 | ··export·interface·SocketInfo·{ | 106 | ··export·interface·SocketInfo·{ |
| 97 | ····localAddress?:·string | 107 | ····localAddress?:·string |
| 98 | ····localPort?:·number | 108 | ····localPort?:·number |
| 99 | ····remoteAddress?:·string | 109 | ····remoteAddress?:·string |
| 100 | ····remotePort?:·number | 110 | ····remotePort?:·number |
| 101 | ····remoteFamily?:·string | 111 | ····remoteFamily?:·string |
| Offset 47, 9 lines modified | Offset 47, 9 lines modified | ||
| 47 | ····"license":·"MIT", | 47 | ····"license":·"MIT", |
| 48 | ····"name":·"undici-types", | 48 | ····"name":·"undici-types", |
| 49 | ····"repository":·{ | 49 | ····"repository":·{ |
| 50 | ········"type":·"git", | 50 | ········"type":·"git", |
| 51 | ········"url":·"git+https://github.com/nodejs/undici.git" | 51 | ········"url":·"git+https://github.com/nodejs/undici.git" |
| 52 | ····}, | 52 | ····}, |
| 53 | ····"types":·"index.d.ts", | 53 | ····"types":·"index.d.ts", |
| 54 | ····"version":·"7.1 | 54 | ····"version":·"7.19.2" |
| 55 | } | 55 | } |
| Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
| 1 | THE·FOLLOWING·SETS·FORTH·ATTRIBUTION·NOTICES·FOR·THIRD·PARTY·SOFTWARE·THAT·MAY·BE·CONTAINED·IN·PORTIONS·OF·THIS·PRODUCT | 1 | THE·FOLLOWING·SETS·FORTH·ATTRIBUTION·NOTICES·FOR·THIRD·PARTY·SOFTWARE·THAT·MAY·BE·CONTAINED·IN·PORTIONS·OF·THIS·PRODUCT |
| 2 | The·following·software·may·be·included·in·this·product:·@hono/node-server·(1.19.1 | 2 | The·following·software·may·be·included·in·this·product:·@hono/node-server·(1.19.13) |
| 3 | This·software·contains·the·following·license·and·notice·below: | 3 | This·software·contains·the·following·license·and·notice·below: |
| 4 | MIT·License | 4 | MIT·License |
| 5 | Copyright·(c)·2022·-·present,·Yusuke·Wada·and·Hono·contributors | 5 | Copyright·(c)·2022·-·present,·Yusuke·Wada·and·Hono·contributors |
| 6 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy | 6 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy |
| Offset 464, 15 lines modified | Offset 464, 15 lines modified | ||
| 464 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER | 464 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER |
| 465 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, | 465 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, |
| 466 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE | 466 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE |
| 467 | SOFTWARE | 467 | SOFTWARE |
| 468 | --- | 468 | --- |
| 469 | The·following·software·may·be·included·in·this·product:·@types/node·(25. | 469 | The·following·software·may·be·included·in·this·product:·@types/node·(25.6.0) |
| 470 | This·software·contains·the·following·license·and·notice·below: | 470 | This·software·contains·the·following·license·and·notice·below: |
| 471 | MIT·License | 471 | MIT·License |
| 472 | Copyright·(c)·Microsoft·Corporation. | 472 | Copyright·(c)·Microsoft·Corporation. |
| 473 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy | 473 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy |
| Offset 1054, 15 lines modified | Offset 1054, 15 lines modified | ||
| 1054 | The·above·copyright·notice·and·this·permission·notice·shall·be·included·in·all·copies·or·substantial·portions·of·the·Software. | 1054 | The·above·copyright·notice·and·this·permission·notice·shall·be·included·in·all·copies·or·substantial·portions·of·the·Software. |
| 1055 | 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. | 1055 | 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. |
| 1056 | --- | 1056 | --- |
| 1057 | The·following·software·may·be·included·in·this·product:·hono·(4.12.1 | 1057 | The·following·software·may·be·included·in·this·product:·hono·(4.12.12) |
| 1058 | This·software·contains·the·following·license·and·notice·below: | 1058 | This·software·contains·the·following·license·and·notice·below: |
| 1059 | MIT·License | 1059 | MIT·License |
| 1060 | Copyright·(c)·2021·-·present,·Yusuke·Wada·and·Hono·contributors | 1060 | Copyright·(c)·2021·-·present,·Yusuke·Wada·and·Hono·contributors |
| 1061 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy | 1061 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy |
| Offset 2030, 15 lines modified | Offset 2030, 15 lines modified | ||
| 2030 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER | 2030 | AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER |
| 2031 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, | 2031 | LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM, |
| 2032 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE | 2032 | OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN·THE |
| 2033 | SOFTWARE | 2033 | SOFTWARE |
| 2034 | --- | 2034 | --- |
| 2035 | The·following·software·may·be·included·in·this·product:·undici-types·(7.1 | 2035 | The·following·software·may·be·included·in·this·product:·undici-types·(7.19.2) |
| 2036 | This·software·contains·the·following·license·and·notice·below: | 2036 | This·software·contains·the·following·license·and·notice·below: |
| 2037 | MIT·License | 2037 | MIT·License |
| 2038 | Copyright·(c)·Matteo·Collina·and·Undici·contributors | 2038 | Copyright·(c)·Matteo·Collina·and·Undici·contributors |
| 2039 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy | 2039 | Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining·a·copy |
| Offset 299, 22 lines modified | Offset 299, 22 lines modified | ||
| 299 | ············"path_type":·"hardlink", | 299 | ············"path_type":·"hardlink", |
| 300 | ············"sha256":·"2cbee9caa5a9cb218dc8d4f23efd7bc585d13eec3b8ff7f111bc36dd5cb611a8", | 300 | ············"sha256":·"2cbee9caa5a9cb218dc8d4f23efd7bc585d13eec3b8ff7f111bc36dd5cb611a8", |
| 301 | ············"size_in_bytes":·698 | 301 | ············"size_in_bytes":·698 |
| 302 | ········}, | 302 | ········}, |
| 303 | ········{ | 303 | ········{ |
| 304 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.js", | 304 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.js", |
| 305 | ············"path_type":·"hardlink", | 305 | ············"path_type":·"hardlink", |
| 306 | ············"sha256":·" | 306 | ············"sha256":·"d0156679f773b58a0151bb06c9e368af9f43a4ceb40631eea22631878dd20d67", |
| 307 | ············"size_in_bytes":·63 | 307 | ············"size_in_bytes":·6388 |
| 308 | ········}, | 308 | ········}, |
| 309 | ········{ | 309 | ········{ |
| 310 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.mjs", | 310 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/serve-static.mjs", |
| 311 | ············"path_type":·"hardlink", | 311 | ············"path_type":·"hardlink", |
| 312 | ············"sha256":·" | 312 | ············"sha256":·"752227d0d6ca109d769ade073c7def411892f8f1acb5436eb2c3b565bc2f252c", |
| 313 | ············"size_in_bytes":·51 | 313 | ············"size_in_bytes":·5171 |
| 314 | ········}, | 314 | ········}, |
| 315 | ········{ | 315 | ········{ |
| 316 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.d.mts", | 316 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/server.d.mts", |
| 317 | ············"path_type":·"hardlink", | 317 | ············"path_type":·"hardlink", |
| 318 | ············"sha256":·"a5706eea411f4f063e7f452a6e3666be820c4764955dedfef5bf5dfa028a9085", | 318 | ············"sha256":·"a5706eea411f4f063e7f452a6e3666be820c4764955dedfef5bf5dfa028a9085", |
| 319 | ············"size_in_bytes":·367 | 319 | ············"size_in_bytes":·367 |
| 320 | ········}, | 320 | ········}, |
| Offset 407, 22 lines modified | Offset 407, 22 lines modified | ||
| 407 | ············"path_type":·"hardlink", | 407 | ············"path_type":·"hardlink", |
| 408 | ············"sha256":·"eed934c8e7dff968d986ba03442e5d55cecbdd6d540adc00d2847b6a4a5bc1c9", | 408 | ············"sha256":·"eed934c8e7dff968d986ba03442e5d55cecbdd6d540adc00d2847b6a4a5bc1c9", |
| 409 | ············"size_in_bytes":·234 | 409 | ············"size_in_bytes":·234 |
| 410 | ········}, | 410 | ········}, |
| 411 | ········{ | 411 | ········{ |
| 412 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.d.mts", | 412 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.d.mts", |
| 413 | ············"path_type":·"hardlink", | 413 | ············"path_type":·"hardlink", |
| 414 | ············"sha256":·" | 414 | ············"sha256":·"98fb6965f6a9e3bab0404b9fc02915e4637da28ec0d07e326daf7e47b39eb82d", |
| 415 | ············"size_in_bytes":·8 | 415 | ············"size_in_bytes":·829 |
| 416 | ········}, | 416 | ········}, |
| 417 | ········{ | 417 | ········{ |
| 418 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.d.ts", | 418 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.d.ts", |
| 419 | ············"path_type":·"hardlink", | 419 | ············"path_type":·"hardlink", |
| 420 | ············"sha256":·" | 420 | ············"sha256":·"98fb6965f6a9e3bab0404b9fc02915e4637da28ec0d07e326daf7e47b39eb82d", |
| 421 | ············"size_in_bytes":·8 | 421 | ············"size_in_bytes":·829 |
| 422 | ········}, | 422 | ········}, |
| 423 | ········{ | 423 | ········{ |
| 424 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.js", | 424 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/dist/utils.js", |
| 425 | ············"path_type":·"hardlink", | 425 | ············"path_type":·"hardlink", |
| 426 | ············"sha256":·"e4d755af2fdf8a3bf615c2775a36b7311e607bc006eca4be47d48853bd8401a8", | 426 | ············"sha256":·"e4d755af2fdf8a3bf615c2775a36b7311e607bc006eca4be47d48853bd8401a8", |
| 427 | ············"size_in_bytes":·3122 | 427 | ············"size_in_bytes":·3122 |
| 428 | ········}, | 428 | ········}, |
| Offset 455, 15 lines modified | Offset 455, 15 lines modified | ||
| 455 | ············"path_type":·"hardlink", | 455 | ············"path_type":·"hardlink", |
| 456 | ············"sha256":·"d37d6ab80e26630ab09634f98897b1c770a704eec917e9093a0a8a3eaf6a6376", | 456 | ············"sha256":·"d37d6ab80e26630ab09634f98897b1c770a704eec917e9093a0a8a3eaf6a6376", |
| 457 | ············"size_in_bytes":·17806 | 457 | ············"size_in_bytes":·17806 |
| 458 | ········}, | 458 | ········}, |
| 459 | ········{ | 459 | ········{ |
| 460 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/package.json", | 460 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@hono/node-server/package.json", |
| 461 | ············"path_type":·"hardlink", | 461 | ············"path_type":·"hardlink", |
| 462 | ············"sha256":·" | 462 | ············"sha256":·"2c1710a70e52e9c829e6bd66db6c9dd4ec13b737790ccaf9eb68bf2172ecbbd3", |
| 463 | ············"size_in_bytes":·2633 | 463 | ············"size_in_bytes":·2633 |
| 464 | ········}, | 464 | ········}, |
| 465 | ········{ | 465 | ········{ |
| 466 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@noble/hashes/LICENSE", | 466 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@noble/hashes/LICENSE", |
| 467 | ············"path_type":·"hardlink", | 467 | ············"path_type":·"hardlink", |
| 468 | ············"sha256":·"4f221aee6e072336700c408c68ab3b96a3fc09f6aebe6f48f1bd99e5ef13faec", | 468 | ············"sha256":·"4f221aee6e072336700c408c68ab3b96a3fc09f6aebe6f48f1bd99e5ef13faec", |
| 469 | ············"size_in_bytes":·1109 | 469 | ············"size_in_bytes":·1109 |
| Offset 4667, 130 lines modified | Offset 4667, 130 lines modified | ||
| 4667 | ············"path_type":·"hardlink", | 4667 | ············"path_type":·"hardlink", |
| 4668 | ············"sha256":·"c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383", | 4668 | ············"sha256":·"c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383", |
| 4669 | ············"size_in_bytes":·1141 | 4669 | ············"size_in_bytes":·1141 |
| 4670 | ········}, | 4670 | ········}, |
| 4671 | ········{ | 4671 | ········{ |
| 4672 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/README.md", | 4672 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/README.md", |
| 4673 | ············"path_type":·"hardlink", | 4673 | ············"path_type":·"hardlink", |
| 4674 | ············"sha256":·" | 4674 | ············"sha256":·"f7310dce60c111010075a94beb9ed3c070e7d99bfeda049bd756c374a2a11553", |
| 4675 | ············"size_in_bytes":·1582 | 4675 | ············"size_in_bytes":·1582 |
| 4676 | ········}, | 4676 | ········}, |
| 4677 | ········{ | 4677 | ········{ |
| 4678 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/assert/strict.d.ts", | 4678 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/assert/strict.d.ts", |
| 4679 | ············"path_type":·"hardlink", | 4679 | ············"path_type":·"hardlink", |
| 4680 | ············"sha256":·" | 4680 | ············"sha256":·"3f5e5d9be35913db9fea42a63f3df0b7e3c8703b97670a2125587b4dbbd56d7c", |
| 4681 | ············"size_in_bytes":· | 4681 | ············"size_in_bytes":·1464 |
| 4682 | ········}, | 4682 | ········}, |
| 4683 | ········{ | 4683 | ········{ |
| 4684 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/assert.d.ts", | 4684 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/assert.d.ts", |
| 4685 | ············"path_type":·"hardlink", | 4685 | ············"path_type":·"hardlink", |
| 4686 | ············"sha256":·" | 4686 | ············"sha256":·"d2ae155afe8a01cc0ae612d99117cf8ef16692ba7c4366590156fdec1bcf2d8c", |
| 4687 | ············"size_in_bytes":· | 4687 | ············"size_in_bytes":·39914 |
| 4688 | ········}, | 4688 | ········}, |
| 4689 | ········{ | 4689 | ········{ |
| 4690 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/async_hooks.d.ts", | 4690 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/async_hooks.d.ts", |
| 4691 | ············"path_type":·"hardlink", | 4691 | ············"path_type":·"hardlink", |
| 4692 | ············"sha256":·" | 4692 | ············"sha256":·"8caeb65fdc3bfe0d13f86f67324fcb2d858ed1c55f1f0cce892eb1acfb9f3239", |
| 4693 | ············"size_in_bytes":·2 | 4693 | ············"size_in_bytes":·24988 |
| 4694 | ········}, | 4694 | ········}, |
| 4695 | ········{ | 4695 | ········{ |
| 4696 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/buffer.buffer.d.ts", | 4696 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/buffer.buffer.d.ts", |
| 4697 | ············"path_type":·"hardlink", | 4697 | ············"path_type":·"hardlink", |
| 4698 | ············"sha256":·" | 4698 | ············"sha256":·"cc2110f7decca6bfb9392e30421cfa1436479e4a6756e8fec6cbc22625d4f881", |
| 4699 | ············"size_in_bytes":·226 | 4699 | ············"size_in_bytes":·22604 |
| 4700 | ········}, | 4700 | ········}, |
| 4701 | ········{ | 4701 | ········{ |
| 4702 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/buffer.d.ts", | 4702 | ············"_path":·"lib/node_modules/@quasar/cli/node_modules/@types/node/buffer.d.ts", |
| 4703 | ············"path_type":·"hardlink", | 4703 | ············"path_type":·"hardlink", |
| Max diff block lines reached; 40501/46589 bytes (86.93%) of diff not shown. | |||