netlify 23.4.3 → 23.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/deploy/deploy-site.d.ts.map +1 -1
- package/dist/utils/deploy/deploy-site.js +4 -3
- package/dist/utils/deploy/deploy-site.js.map +1 -1
- package/dist/utils/deploy/file.d.ts +8 -0
- package/dist/utils/deploy/file.d.ts.map +1 -0
- package/dist/utils/deploy/file.js +2 -0
- package/dist/utils/deploy/file.js.map +1 -0
- package/dist/utils/deploy/hasher-segments.d.ts +2 -1
- package/dist/utils/deploy/hasher-segments.d.ts.map +1 -1
- package/dist/utils/deploy/hasher-segments.js.map +1 -1
- package/dist/utils/deploy/process-files.d.ts +16 -0
- package/dist/utils/deploy/process-files.d.ts.map +1 -0
- package/dist/utils/deploy/process-files.js +38 -0
- package/dist/utils/deploy/process-files.js.map +1 -0
- package/npm-shrinkwrap.json +145 -145
- package/package.json +7 -7
- package/dist/lib/edge-functions/deploy.d.ts +0 -8
- package/dist/lib/edge-functions/deploy.d.ts.map +0 -1
- package/dist/lib/edge-functions/deploy.js +0 -34
- package/dist/lib/edge-functions/deploy.js.map +0 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.5.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify",
|
|
9
|
-
"version": "23.
|
|
9
|
+
"version": "23.5.1",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@fastify/static": "7.0.4",
|
|
14
14
|
"@netlify/api": "14.0.4",
|
|
15
|
-
"@netlify/blobs": "10.0.
|
|
16
|
-
"@netlify/build": "35.1.
|
|
15
|
+
"@netlify/blobs": "10.0.10",
|
|
16
|
+
"@netlify/build": "35.1.6",
|
|
17
17
|
"@netlify/build-info": "10.0.7",
|
|
18
18
|
"@netlify/config": "24.0.3",
|
|
19
|
-
"@netlify/dev-utils": "4.1.
|
|
20
|
-
"@netlify/edge-bundler": "14.5.
|
|
19
|
+
"@netlify/dev-utils": "4.1.3",
|
|
20
|
+
"@netlify/edge-bundler": "14.5.4",
|
|
21
21
|
"@netlify/edge-functions-bootstrap": "2.14.0",
|
|
22
22
|
"@netlify/headers-parser": "9.0.2",
|
|
23
23
|
"@netlify/local-functions-proxy": "2.0.3",
|
|
24
24
|
"@netlify/redirect-parser": "15.0.3",
|
|
25
|
-
"@netlify/zip-it-and-ship-it": "14.1.
|
|
25
|
+
"@netlify/zip-it-and-ship-it": "14.1.7",
|
|
26
26
|
"@octokit/rest": "21.1.1",
|
|
27
27
|
"@opentelemetry/api": "1.8.0",
|
|
28
28
|
"@pnpm/tabtab": "0.5.4",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"http-proxy": "1.18.1",
|
|
64
64
|
"http-proxy-middleware": "2.0.9",
|
|
65
65
|
"https-proxy-agent": "7.0.6",
|
|
66
|
-
"inquirer": "8.2.
|
|
66
|
+
"inquirer": "8.2.7",
|
|
67
67
|
"inquirer-autocomplete-prompt": "1.4.0",
|
|
68
68
|
"ipx": "3.1.1",
|
|
69
69
|
"is-docker": "3.0.0",
|
|
@@ -894,6 +894,39 @@
|
|
|
894
894
|
"resolved": "https://registry.npmjs.org/@import-maps/resolve/-/resolve-2.0.0.tgz",
|
|
895
895
|
"integrity": "sha512-RwzRTpmrrS6Q1ZhQExwuxJGK1Wqhv4stt+OF2JzS+uawewpwNyU7EJL1WpBex7aDiiGLs4FsXGkfUBdYuX7xiQ=="
|
|
896
896
|
},
|
|
897
|
+
"node_modules/@inquirer/external-editor": {
|
|
898
|
+
"version": "1.0.1",
|
|
899
|
+
"resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.1.tgz",
|
|
900
|
+
"integrity": "sha512-Oau4yL24d2B5IL4ma4UpbQigkVhzPDXLoqy1ggK4gnHg/stmkffJE4oOXHXF3uz0UEpywG68KcyXsyYpA1Re/Q==",
|
|
901
|
+
"license": "MIT",
|
|
902
|
+
"dependencies": {
|
|
903
|
+
"chardet": "^2.1.0",
|
|
904
|
+
"iconv-lite": "^0.6.3"
|
|
905
|
+
},
|
|
906
|
+
"engines": {
|
|
907
|
+
"node": ">=18"
|
|
908
|
+
},
|
|
909
|
+
"peerDependencies": {
|
|
910
|
+
"@types/node": ">=18"
|
|
911
|
+
},
|
|
912
|
+
"peerDependenciesMeta": {
|
|
913
|
+
"@types/node": {
|
|
914
|
+
"optional": true
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
"node_modules/@inquirer/external-editor/node_modules/iconv-lite": {
|
|
919
|
+
"version": "0.6.3",
|
|
920
|
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
|
921
|
+
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
|
922
|
+
"license": "MIT",
|
|
923
|
+
"dependencies": {
|
|
924
|
+
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
|
925
|
+
},
|
|
926
|
+
"engines": {
|
|
927
|
+
"node": ">=0.10.0"
|
|
928
|
+
}
|
|
929
|
+
},
|
|
897
930
|
"node_modules/@isaacs/cliui": {
|
|
898
931
|
"version": "8.0.2",
|
|
899
932
|
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
|
|
@@ -1048,11 +1081,11 @@
|
|
|
1048
1081
|
"integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
|
|
1049
1082
|
},
|
|
1050
1083
|
"node_modules/@netlify/blobs": {
|
|
1051
|
-
"version": "10.0.
|
|
1052
|
-
"resolved": "https://registry.npmjs.org/@netlify/blobs/-/blobs-10.0.
|
|
1053
|
-
"integrity": "sha512-
|
|
1084
|
+
"version": "10.0.10",
|
|
1085
|
+
"resolved": "https://registry.npmjs.org/@netlify/blobs/-/blobs-10.0.10.tgz",
|
|
1086
|
+
"integrity": "sha512-900jiduBT3b7GagpOGJKD3FQypkNbskGyx+Mvd9Ajy7pU3K0CNj4JBaji4aJZz7krrMxZZJacr0wCEsqWLQQmA==",
|
|
1054
1087
|
"dependencies": {
|
|
1055
|
-
"@netlify/dev-utils": "4.1.
|
|
1088
|
+
"@netlify/dev-utils": "4.1.3",
|
|
1056
1089
|
"@netlify/runtime-utils": "2.1.0"
|
|
1057
1090
|
},
|
|
1058
1091
|
"engines": {
|
|
@@ -1060,21 +1093,21 @@
|
|
|
1060
1093
|
}
|
|
1061
1094
|
},
|
|
1062
1095
|
"node_modules/@netlify/build": {
|
|
1063
|
-
"version": "35.1.
|
|
1064
|
-
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-35.1.
|
|
1065
|
-
"integrity": "sha512-
|
|
1096
|
+
"version": "35.1.6",
|
|
1097
|
+
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-35.1.6.tgz",
|
|
1098
|
+
"integrity": "sha512-zt8UaxhH7p4WzM82uWhLX06tjVAe//ox9tFhfNjR1pq0zFxAXjQ78eJ50fwnVvLJSxWcOenVwvXB6tC8DYsvNw==",
|
|
1066
1099
|
"dependencies": {
|
|
1067
1100
|
"@bugsnag/js": "^8.0.0",
|
|
1068
|
-
"@netlify/blobs": "^10.0.
|
|
1101
|
+
"@netlify/blobs": "^10.0.10",
|
|
1069
1102
|
"@netlify/cache-utils": "^6.0.4",
|
|
1070
1103
|
"@netlify/config": "^24.0.3",
|
|
1071
|
-
"@netlify/edge-bundler": "14.5.
|
|
1072
|
-
"@netlify/functions-utils": "^6.2.
|
|
1104
|
+
"@netlify/edge-bundler": "14.5.4",
|
|
1105
|
+
"@netlify/functions-utils": "^6.2.7",
|
|
1073
1106
|
"@netlify/git-utils": "^6.0.2",
|
|
1074
1107
|
"@netlify/opentelemetry-utils": "^2.0.1",
|
|
1075
1108
|
"@netlify/plugins-list": "^6.80.0",
|
|
1076
1109
|
"@netlify/run-utils": "^6.0.2",
|
|
1077
|
-
"@netlify/zip-it-and-ship-it": "14.1.
|
|
1110
|
+
"@netlify/zip-it-and-ship-it": "14.1.7",
|
|
1078
1111
|
"@sindresorhus/slugify": "^2.0.0",
|
|
1079
1112
|
"ansi-escapes": "^7.0.0",
|
|
1080
1113
|
"ansis": "^4.1.0",
|
|
@@ -1186,9 +1219,9 @@
|
|
|
1186
1219
|
}
|
|
1187
1220
|
},
|
|
1188
1221
|
"node_modules/@netlify/build/node_modules/emoji-regex": {
|
|
1189
|
-
"version": "10.
|
|
1190
|
-
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.
|
|
1191
|
-
"integrity": "sha512-
|
|
1222
|
+
"version": "10.5.0",
|
|
1223
|
+
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.5.0.tgz",
|
|
1224
|
+
"integrity": "sha512-lb49vf1Xzfx080OKA0o6l8DQQpV+6Vg95zyCJX9VB/BqKYlhG7N4wgROUUHRA+ZPUefLnteQOad7z1kT2bV7bg=="
|
|
1192
1225
|
},
|
|
1193
1226
|
"node_modules/@netlify/build/node_modules/execa": {
|
|
1194
1227
|
"version": "8.0.1",
|
|
@@ -1603,9 +1636,9 @@
|
|
|
1603
1636
|
}
|
|
1604
1637
|
},
|
|
1605
1638
|
"node_modules/@netlify/dev-utils": {
|
|
1606
|
-
"version": "4.1.
|
|
1607
|
-
"resolved": "https://registry.npmjs.org/@netlify/dev-utils/-/dev-utils-4.1.
|
|
1608
|
-
"integrity": "sha512-
|
|
1639
|
+
"version": "4.1.3",
|
|
1640
|
+
"resolved": "https://registry.npmjs.org/@netlify/dev-utils/-/dev-utils-4.1.3.tgz",
|
|
1641
|
+
"integrity": "sha512-Cc8XNyKNVPWmRJAMVD8VICdYvVxZ66uoVdDzSyhrctw0cT7hW3NAlXF/xoLFK7uOV1xejah/Qt+2MPCJn32mqg==",
|
|
1609
1642
|
"dependencies": {
|
|
1610
1643
|
"@whatwg-node/server": "^0.10.0",
|
|
1611
1644
|
"ansis": "^4.1.0",
|
|
@@ -1628,9 +1661,9 @@
|
|
|
1628
1661
|
}
|
|
1629
1662
|
},
|
|
1630
1663
|
"node_modules/@netlify/edge-bundler": {
|
|
1631
|
-
"version": "14.5.
|
|
1632
|
-
"resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-14.5.
|
|
1633
|
-
"integrity": "sha512-
|
|
1664
|
+
"version": "14.5.4",
|
|
1665
|
+
"resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-14.5.4.tgz",
|
|
1666
|
+
"integrity": "sha512-mGEQTOsC3VoUcio6y5zXj5s5Rs4ygFGWdHmweU2K7QH+Zy5co7GuzbpivoP0VCBws3VSBCdx1rvGPY9ylZaOHQ==",
|
|
1634
1667
|
"dependencies": {
|
|
1635
1668
|
"@import-maps/resolve": "^2.0.0",
|
|
1636
1669
|
"ajv": "^8.11.2",
|
|
@@ -1819,11 +1852,11 @@
|
|
|
1819
1852
|
"integrity": "sha512-Fs1cQ+XKfKr2OxrAvmX+S46CJmrysxBdCUCTk/wwcCZikrDvsYUFG7FTquUl4JfAf9taYYyW/tPv35gKOKS8BQ=="
|
|
1820
1853
|
},
|
|
1821
1854
|
"node_modules/@netlify/functions-utils": {
|
|
1822
|
-
"version": "6.2.
|
|
1823
|
-
"resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-6.2.
|
|
1824
|
-
"integrity": "sha512-
|
|
1855
|
+
"version": "6.2.7",
|
|
1856
|
+
"resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-6.2.7.tgz",
|
|
1857
|
+
"integrity": "sha512-oIMwnEzCiACUG3ZUHplMNMQVuQmjSeoklWHs+AGebk4kitnxgo624JRB90sAhAU6G2A/7i/uSgqcv5BoYRNlUg==",
|
|
1825
1858
|
"dependencies": {
|
|
1826
|
-
"@netlify/zip-it-and-ship-it": "14.1.
|
|
1859
|
+
"@netlify/zip-it-and-ship-it": "14.1.7",
|
|
1827
1860
|
"cpy": "^11.0.0",
|
|
1828
1861
|
"path-exists": "^5.0.0"
|
|
1829
1862
|
},
|
|
@@ -2374,14 +2407,14 @@
|
|
|
2374
2407
|
}
|
|
2375
2408
|
},
|
|
2376
2409
|
"node_modules/@netlify/zip-it-and-ship-it": {
|
|
2377
|
-
"version": "14.1.
|
|
2378
|
-
"resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-14.1.
|
|
2379
|
-
"integrity": "sha512-
|
|
2410
|
+
"version": "14.1.7",
|
|
2411
|
+
"resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-14.1.7.tgz",
|
|
2412
|
+
"integrity": "sha512-GuPYN/+oAmT5boiKVPsIk5sE25qmln8+bHaakMAr2S6vwy/yArEYcM/Oa7kLMIyN3aryYrdpqOSwU1ly20tkyw==",
|
|
2380
2413
|
"dependencies": {
|
|
2381
2414
|
"@babel/parser": "^7.22.5",
|
|
2382
2415
|
"@babel/types": "7.28.1",
|
|
2383
2416
|
"@netlify/binary-info": "^1.0.0",
|
|
2384
|
-
"@netlify/serverless-functions-api": "^2.
|
|
2417
|
+
"@netlify/serverless-functions-api": "^2.5.0",
|
|
2385
2418
|
"@vercel/nft": "0.29.4",
|
|
2386
2419
|
"archiver": "^7.0.0",
|
|
2387
2420
|
"common-path-prefix": "^3.0.0",
|
|
@@ -2419,9 +2452,9 @@
|
|
|
2419
2452
|
}
|
|
2420
2453
|
},
|
|
2421
2454
|
"node_modules/@netlify/zip-it-and-ship-it/node_modules/@netlify/serverless-functions-api": {
|
|
2422
|
-
"version": "2.
|
|
2423
|
-
"resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-2.
|
|
2424
|
-
"integrity": "sha512-
|
|
2455
|
+
"version": "2.5.0",
|
|
2456
|
+
"resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-2.5.0.tgz",
|
|
2457
|
+
"integrity": "sha512-0Hl6POpkEs3aan8T+EQvPIj5/gNc+64nwNv93VY4JoxFSrLPKYWmUyXJhT9lG93VxwGfmbxrCOV8U4sq2eWgTw==",
|
|
2425
2458
|
"engines": {
|
|
2426
2459
|
"node": ">=18.0.0"
|
|
2427
2460
|
}
|
|
@@ -5076,9 +5109,10 @@
|
|
|
5076
5109
|
}
|
|
5077
5110
|
},
|
|
5078
5111
|
"node_modules/chardet": {
|
|
5079
|
-
"version": "
|
|
5080
|
-
"resolved": "https://registry.npmjs.org/chardet/-/chardet-
|
|
5081
|
-
"integrity": "sha512-
|
|
5112
|
+
"version": "2.1.0",
|
|
5113
|
+
"resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz",
|
|
5114
|
+
"integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==",
|
|
5115
|
+
"license": "MIT"
|
|
5082
5116
|
},
|
|
5083
5117
|
"node_modules/chokidar": {
|
|
5084
5118
|
"version": "4.0.3",
|
|
@@ -6762,19 +6796,6 @@
|
|
|
6762
6796
|
"node": ">=4"
|
|
6763
6797
|
}
|
|
6764
6798
|
},
|
|
6765
|
-
"node_modules/external-editor": {
|
|
6766
|
-
"version": "3.1.0",
|
|
6767
|
-
"resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",
|
|
6768
|
-
"integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
|
|
6769
|
-
"dependencies": {
|
|
6770
|
-
"chardet": "^0.7.0",
|
|
6771
|
-
"iconv-lite": "^0.4.24",
|
|
6772
|
-
"tmp": "^0.0.33"
|
|
6773
|
-
},
|
|
6774
|
-
"engines": {
|
|
6775
|
-
"node": ">=4"
|
|
6776
|
-
}
|
|
6777
|
-
},
|
|
6778
6799
|
"node_modules/extract-zip": {
|
|
6779
6800
|
"version": "2.0.1",
|
|
6780
6801
|
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
|
|
@@ -7928,15 +7949,16 @@
|
|
|
7928
7949
|
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
|
|
7929
7950
|
},
|
|
7930
7951
|
"node_modules/inquirer": {
|
|
7931
|
-
"version": "8.2.
|
|
7932
|
-
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.
|
|
7933
|
-
"integrity": "sha512-
|
|
7952
|
+
"version": "8.2.7",
|
|
7953
|
+
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.7.tgz",
|
|
7954
|
+
"integrity": "sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA==",
|
|
7955
|
+
"license": "MIT",
|
|
7934
7956
|
"dependencies": {
|
|
7957
|
+
"@inquirer/external-editor": "^1.0.0",
|
|
7935
7958
|
"ansi-escapes": "^4.2.1",
|
|
7936
7959
|
"chalk": "^4.1.1",
|
|
7937
7960
|
"cli-cursor": "^3.1.0",
|
|
7938
7961
|
"cli-width": "^3.0.0",
|
|
7939
|
-
"external-editor": "^3.0.3",
|
|
7940
7962
|
"figures": "^3.0.0",
|
|
7941
7963
|
"lodash": "^4.17.21",
|
|
7942
7964
|
"mute-stream": "0.0.8",
|
|
@@ -9905,14 +9927,6 @@
|
|
|
9905
9927
|
"url": "https://github.com/sponsors/sindresorhus"
|
|
9906
9928
|
}
|
|
9907
9929
|
},
|
|
9908
|
-
"node_modules/os-tmpdir": {
|
|
9909
|
-
"version": "1.0.2",
|
|
9910
|
-
"resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
|
|
9911
|
-
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
|
|
9912
|
-
"engines": {
|
|
9913
|
-
"node": ">=0.10.0"
|
|
9914
|
-
}
|
|
9915
|
-
},
|
|
9916
9930
|
"node_modules/p-cancelable": {
|
|
9917
9931
|
"version": "3.0.0",
|
|
9918
9932
|
"resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz",
|
|
@@ -12246,17 +12260,6 @@
|
|
|
12246
12260
|
"util-deprecate": "~1.0.1"
|
|
12247
12261
|
}
|
|
12248
12262
|
},
|
|
12249
|
-
"node_modules/tmp": {
|
|
12250
|
-
"version": "0.0.33",
|
|
12251
|
-
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
|
|
12252
|
-
"integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
|
|
12253
|
-
"dependencies": {
|
|
12254
|
-
"os-tmpdir": "~1.0.2"
|
|
12255
|
-
},
|
|
12256
|
-
"engines": {
|
|
12257
|
-
"node": ">=0.6.0"
|
|
12258
|
-
}
|
|
12259
|
-
},
|
|
12260
12263
|
"node_modules/tmp-promise": {
|
|
12261
12264
|
"version": "3.0.3",
|
|
12262
12265
|
"resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz",
|
|
@@ -12266,9 +12269,10 @@
|
|
|
12266
12269
|
}
|
|
12267
12270
|
},
|
|
12268
12271
|
"node_modules/tmp-promise/node_modules/tmp": {
|
|
12269
|
-
"version": "0.2.
|
|
12270
|
-
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.
|
|
12271
|
-
"integrity": "sha512-
|
|
12272
|
+
"version": "0.2.5",
|
|
12273
|
+
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz",
|
|
12274
|
+
"integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==",
|
|
12275
|
+
"license": "MIT",
|
|
12272
12276
|
"engines": {
|
|
12273
12277
|
"node": ">=14.14"
|
|
12274
12278
|
}
|
|
@@ -13948,6 +13952,25 @@
|
|
|
13948
13952
|
"resolved": "https://registry.npmjs.org/@import-maps/resolve/-/resolve-2.0.0.tgz",
|
|
13949
13953
|
"integrity": "sha512-RwzRTpmrrS6Q1ZhQExwuxJGK1Wqhv4stt+OF2JzS+uawewpwNyU7EJL1WpBex7aDiiGLs4FsXGkfUBdYuX7xiQ=="
|
|
13950
13954
|
},
|
|
13955
|
+
"@inquirer/external-editor": {
|
|
13956
|
+
"version": "1.0.1",
|
|
13957
|
+
"resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.1.tgz",
|
|
13958
|
+
"integrity": "sha512-Oau4yL24d2B5IL4ma4UpbQigkVhzPDXLoqy1ggK4gnHg/stmkffJE4oOXHXF3uz0UEpywG68KcyXsyYpA1Re/Q==",
|
|
13959
|
+
"requires": {
|
|
13960
|
+
"chardet": "^2.1.0",
|
|
13961
|
+
"iconv-lite": "^0.6.3"
|
|
13962
|
+
},
|
|
13963
|
+
"dependencies": {
|
|
13964
|
+
"iconv-lite": {
|
|
13965
|
+
"version": "0.6.3",
|
|
13966
|
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
|
13967
|
+
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
|
13968
|
+
"requires": {
|
|
13969
|
+
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
|
13970
|
+
}
|
|
13971
|
+
}
|
|
13972
|
+
}
|
|
13973
|
+
},
|
|
13951
13974
|
"@isaacs/cliui": {
|
|
13952
13975
|
"version": "8.0.2",
|
|
13953
13976
|
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
|
|
@@ -14061,30 +14084,30 @@
|
|
|
14061
14084
|
"integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
|
|
14062
14085
|
},
|
|
14063
14086
|
"@netlify/blobs": {
|
|
14064
|
-
"version": "10.0.
|
|
14065
|
-
"resolved": "https://registry.npmjs.org/@netlify/blobs/-/blobs-10.0.
|
|
14066
|
-
"integrity": "sha512-
|
|
14087
|
+
"version": "10.0.10",
|
|
14088
|
+
"resolved": "https://registry.npmjs.org/@netlify/blobs/-/blobs-10.0.10.tgz",
|
|
14089
|
+
"integrity": "sha512-900jiduBT3b7GagpOGJKD3FQypkNbskGyx+Mvd9Ajy7pU3K0CNj4JBaji4aJZz7krrMxZZJacr0wCEsqWLQQmA==",
|
|
14067
14090
|
"requires": {
|
|
14068
|
-
"@netlify/dev-utils": "4.1.
|
|
14091
|
+
"@netlify/dev-utils": "4.1.3",
|
|
14069
14092
|
"@netlify/runtime-utils": "2.1.0"
|
|
14070
14093
|
}
|
|
14071
14094
|
},
|
|
14072
14095
|
"@netlify/build": {
|
|
14073
|
-
"version": "35.1.
|
|
14074
|
-
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-35.1.
|
|
14075
|
-
"integrity": "sha512-
|
|
14096
|
+
"version": "35.1.6",
|
|
14097
|
+
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-35.1.6.tgz",
|
|
14098
|
+
"integrity": "sha512-zt8UaxhH7p4WzM82uWhLX06tjVAe//ox9tFhfNjR1pq0zFxAXjQ78eJ50fwnVvLJSxWcOenVwvXB6tC8DYsvNw==",
|
|
14076
14099
|
"requires": {
|
|
14077
14100
|
"@bugsnag/js": "^8.0.0",
|
|
14078
|
-
"@netlify/blobs": "^10.0.
|
|
14101
|
+
"@netlify/blobs": "^10.0.10",
|
|
14079
14102
|
"@netlify/cache-utils": "^6.0.4",
|
|
14080
14103
|
"@netlify/config": "^24.0.3",
|
|
14081
|
-
"@netlify/edge-bundler": "14.5.
|
|
14082
|
-
"@netlify/functions-utils": "^6.2.
|
|
14104
|
+
"@netlify/edge-bundler": "14.5.4",
|
|
14105
|
+
"@netlify/functions-utils": "^6.2.7",
|
|
14083
14106
|
"@netlify/git-utils": "^6.0.2",
|
|
14084
14107
|
"@netlify/opentelemetry-utils": "^2.0.1",
|
|
14085
14108
|
"@netlify/plugins-list": "^6.80.0",
|
|
14086
14109
|
"@netlify/run-utils": "^6.0.2",
|
|
14087
|
-
"@netlify/zip-it-and-ship-it": "14.1.
|
|
14110
|
+
"@netlify/zip-it-and-ship-it": "14.1.7",
|
|
14088
14111
|
"@sindresorhus/slugify": "^2.0.0",
|
|
14089
14112
|
"ansi-escapes": "^7.0.0",
|
|
14090
14113
|
"ansis": "^4.1.0",
|
|
@@ -14136,9 +14159,9 @@
|
|
|
14136
14159
|
}
|
|
14137
14160
|
},
|
|
14138
14161
|
"emoji-regex": {
|
|
14139
|
-
"version": "10.
|
|
14140
|
-
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.
|
|
14141
|
-
"integrity": "sha512-
|
|
14162
|
+
"version": "10.5.0",
|
|
14163
|
+
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.5.0.tgz",
|
|
14164
|
+
"integrity": "sha512-lb49vf1Xzfx080OKA0o6l8DQQpV+6Vg95zyCJX9VB/BqKYlhG7N4wgROUUHRA+ZPUefLnteQOad7z1kT2bV7bg=="
|
|
14142
14165
|
},
|
|
14143
14166
|
"execa": {
|
|
14144
14167
|
"version": "8.0.1",
|
|
@@ -14428,9 +14451,9 @@
|
|
|
14428
14451
|
}
|
|
14429
14452
|
},
|
|
14430
14453
|
"@netlify/dev-utils": {
|
|
14431
|
-
"version": "4.1.
|
|
14432
|
-
"resolved": "https://registry.npmjs.org/@netlify/dev-utils/-/dev-utils-4.1.
|
|
14433
|
-
"integrity": "sha512-
|
|
14454
|
+
"version": "4.1.3",
|
|
14455
|
+
"resolved": "https://registry.npmjs.org/@netlify/dev-utils/-/dev-utils-4.1.3.tgz",
|
|
14456
|
+
"integrity": "sha512-Cc8XNyKNVPWmRJAMVD8VICdYvVxZ66uoVdDzSyhrctw0cT7hW3NAlXF/xoLFK7uOV1xejah/Qt+2MPCJn32mqg==",
|
|
14434
14457
|
"requires": {
|
|
14435
14458
|
"@whatwg-node/server": "^0.10.0",
|
|
14436
14459
|
"ansis": "^4.1.0",
|
|
@@ -14450,9 +14473,9 @@
|
|
|
14450
14473
|
}
|
|
14451
14474
|
},
|
|
14452
14475
|
"@netlify/edge-bundler": {
|
|
14453
|
-
"version": "14.5.
|
|
14454
|
-
"resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-14.5.
|
|
14455
|
-
"integrity": "sha512-
|
|
14476
|
+
"version": "14.5.4",
|
|
14477
|
+
"resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-14.5.4.tgz",
|
|
14478
|
+
"integrity": "sha512-mGEQTOsC3VoUcio6y5zXj5s5Rs4ygFGWdHmweU2K7QH+Zy5co7GuzbpivoP0VCBws3VSBCdx1rvGPY9ylZaOHQ==",
|
|
14456
14479
|
"requires": {
|
|
14457
14480
|
"@import-maps/resolve": "^2.0.0",
|
|
14458
14481
|
"ajv": "^8.11.2",
|
|
@@ -14573,11 +14596,11 @@
|
|
|
14573
14596
|
"integrity": "sha512-Fs1cQ+XKfKr2OxrAvmX+S46CJmrysxBdCUCTk/wwcCZikrDvsYUFG7FTquUl4JfAf9taYYyW/tPv35gKOKS8BQ=="
|
|
14574
14597
|
},
|
|
14575
14598
|
"@netlify/functions-utils": {
|
|
14576
|
-
"version": "6.2.
|
|
14577
|
-
"resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-6.2.
|
|
14578
|
-
"integrity": "sha512-
|
|
14599
|
+
"version": "6.2.7",
|
|
14600
|
+
"resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-6.2.7.tgz",
|
|
14601
|
+
"integrity": "sha512-oIMwnEzCiACUG3ZUHplMNMQVuQmjSeoklWHs+AGebk4kitnxgo624JRB90sAhAU6G2A/7i/uSgqcv5BoYRNlUg==",
|
|
14579
14602
|
"requires": {
|
|
14580
|
-
"@netlify/zip-it-and-ship-it": "14.1.
|
|
14603
|
+
"@netlify/zip-it-and-ship-it": "14.1.7",
|
|
14581
14604
|
"cpy": "^11.0.0",
|
|
14582
14605
|
"path-exists": "^5.0.0"
|
|
14583
14606
|
},
|
|
@@ -14888,14 +14911,14 @@
|
|
|
14888
14911
|
"integrity": "sha512-z1h+wjB7IVYUsFZsuIYyNxiw5WWuylseY+eXaUDHBxNeLTlqziy+lz03QkR67CUR4Y790xGIhaHV00aOR2KAtw=="
|
|
14889
14912
|
},
|
|
14890
14913
|
"@netlify/zip-it-and-ship-it": {
|
|
14891
|
-
"version": "14.1.
|
|
14892
|
-
"resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-14.1.
|
|
14893
|
-
"integrity": "sha512-
|
|
14914
|
+
"version": "14.1.7",
|
|
14915
|
+
"resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-14.1.7.tgz",
|
|
14916
|
+
"integrity": "sha512-GuPYN/+oAmT5boiKVPsIk5sE25qmln8+bHaakMAr2S6vwy/yArEYcM/Oa7kLMIyN3aryYrdpqOSwU1ly20tkyw==",
|
|
14894
14917
|
"requires": {
|
|
14895
14918
|
"@babel/parser": "^7.22.5",
|
|
14896
14919
|
"@babel/types": "7.28.1",
|
|
14897
14920
|
"@netlify/binary-info": "^1.0.0",
|
|
14898
|
-
"@netlify/serverless-functions-api": "^2.
|
|
14921
|
+
"@netlify/serverless-functions-api": "^2.5.0",
|
|
14899
14922
|
"@vercel/nft": "0.29.4",
|
|
14900
14923
|
"archiver": "^7.0.0",
|
|
14901
14924
|
"common-path-prefix": "^3.0.0",
|
|
@@ -14927,9 +14950,9 @@
|
|
|
14927
14950
|
},
|
|
14928
14951
|
"dependencies": {
|
|
14929
14952
|
"@netlify/serverless-functions-api": {
|
|
14930
|
-
"version": "2.
|
|
14931
|
-
"resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-2.
|
|
14932
|
-
"integrity": "sha512-
|
|
14953
|
+
"version": "2.5.0",
|
|
14954
|
+
"resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-2.5.0.tgz",
|
|
14955
|
+
"integrity": "sha512-0Hl6POpkEs3aan8T+EQvPIj5/gNc+64nwNv93VY4JoxFSrLPKYWmUyXJhT9lG93VxwGfmbxrCOV8U4sq2eWgTw=="
|
|
14933
14956
|
},
|
|
14934
14957
|
"brace-expansion": {
|
|
14935
14958
|
"version": "2.0.2",
|
|
@@ -16669,9 +16692,9 @@
|
|
|
16669
16692
|
"integrity": "sha512-46QrSQFyVSEyYAgQ22hQ+zDa60YHA4fBstHmtSApj1Y5vKtG27fWowW03jCk5KcbXEWPZUIR894aARCA/G1kfQ=="
|
|
16670
16693
|
},
|
|
16671
16694
|
"chardet": {
|
|
16672
|
-
"version": "
|
|
16673
|
-
"resolved": "https://registry.npmjs.org/chardet/-/chardet-
|
|
16674
|
-
"integrity": "sha512-
|
|
16695
|
+
"version": "2.1.0",
|
|
16696
|
+
"resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz",
|
|
16697
|
+
"integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA=="
|
|
16675
16698
|
},
|
|
16676
16699
|
"chokidar": {
|
|
16677
16700
|
"version": "4.0.3",
|
|
@@ -17818,16 +17841,6 @@
|
|
|
17818
17841
|
"sort-keys-length": "^1.0.0"
|
|
17819
17842
|
}
|
|
17820
17843
|
},
|
|
17821
|
-
"external-editor": {
|
|
17822
|
-
"version": "3.1.0",
|
|
17823
|
-
"resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",
|
|
17824
|
-
"integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
|
|
17825
|
-
"requires": {
|
|
17826
|
-
"chardet": "^0.7.0",
|
|
17827
|
-
"iconv-lite": "^0.4.24",
|
|
17828
|
-
"tmp": "^0.0.33"
|
|
17829
|
-
}
|
|
17830
|
-
},
|
|
17831
17844
|
"extract-zip": {
|
|
17832
17845
|
"version": "2.0.1",
|
|
17833
17846
|
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
|
|
@@ -18632,15 +18645,15 @@
|
|
|
18632
18645
|
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
|
|
18633
18646
|
},
|
|
18634
18647
|
"inquirer": {
|
|
18635
|
-
"version": "8.2.
|
|
18636
|
-
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.
|
|
18637
|
-
"integrity": "sha512-
|
|
18648
|
+
"version": "8.2.7",
|
|
18649
|
+
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.7.tgz",
|
|
18650
|
+
"integrity": "sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA==",
|
|
18638
18651
|
"requires": {
|
|
18652
|
+
"@inquirer/external-editor": "^1.0.0",
|
|
18639
18653
|
"ansi-escapes": "^4.2.1",
|
|
18640
18654
|
"chalk": "^4.1.1",
|
|
18641
18655
|
"cli-cursor": "^3.1.0",
|
|
18642
18656
|
"cli-width": "^3.0.0",
|
|
18643
|
-
"external-editor": "^3.0.3",
|
|
18644
18657
|
"figures": "^3.0.0",
|
|
18645
18658
|
"lodash": "^4.17.21",
|
|
18646
18659
|
"mute-stream": "0.0.8",
|
|
@@ -19988,11 +20001,6 @@
|
|
|
19988
20001
|
"windows-release": "^6.1.0"
|
|
19989
20002
|
}
|
|
19990
20003
|
},
|
|
19991
|
-
"os-tmpdir": {
|
|
19992
|
-
"version": "1.0.2",
|
|
19993
|
-
"resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
|
|
19994
|
-
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
|
|
19995
|
-
},
|
|
19996
20004
|
"p-cancelable": {
|
|
19997
20005
|
"version": "3.0.0",
|
|
19998
20006
|
"resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz",
|
|
@@ -21568,14 +21576,6 @@
|
|
|
21568
21576
|
}
|
|
21569
21577
|
}
|
|
21570
21578
|
},
|
|
21571
|
-
"tmp": {
|
|
21572
|
-
"version": "0.0.33",
|
|
21573
|
-
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
|
|
21574
|
-
"integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
|
|
21575
|
-
"requires": {
|
|
21576
|
-
"os-tmpdir": "~1.0.2"
|
|
21577
|
-
}
|
|
21578
|
-
},
|
|
21579
21579
|
"tmp-promise": {
|
|
21580
21580
|
"version": "3.0.3",
|
|
21581
21581
|
"resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz",
|
|
@@ -21585,9 +21585,9 @@
|
|
|
21585
21585
|
},
|
|
21586
21586
|
"dependencies": {
|
|
21587
21587
|
"tmp": {
|
|
21588
|
-
"version": "0.2.
|
|
21589
|
-
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.
|
|
21590
|
-
"integrity": "sha512-
|
|
21588
|
+
"version": "0.2.5",
|
|
21589
|
+
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz",
|
|
21590
|
+
"integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow=="
|
|
21591
21591
|
}
|
|
21592
21592
|
}
|
|
21593
21593
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify",
|
|
3
3
|
"description": "Netlify command line tool",
|
|
4
|
-
"version": "23.
|
|
4
|
+
"version": "23.5.1",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@fastify/static": "7.0.4",
|
|
59
59
|
"@netlify/api": "14.0.4",
|
|
60
|
-
"@netlify/blobs": "10.0.
|
|
61
|
-
"@netlify/build": "35.1.
|
|
60
|
+
"@netlify/blobs": "10.0.10",
|
|
61
|
+
"@netlify/build": "35.1.6",
|
|
62
62
|
"@netlify/build-info": "10.0.7",
|
|
63
63
|
"@netlify/config": "24.0.3",
|
|
64
|
-
"@netlify/dev-utils": "4.1.
|
|
65
|
-
"@netlify/edge-bundler": "14.5.
|
|
64
|
+
"@netlify/dev-utils": "4.1.3",
|
|
65
|
+
"@netlify/edge-bundler": "14.5.4",
|
|
66
66
|
"@netlify/edge-functions-bootstrap": "2.14.0",
|
|
67
67
|
"@netlify/headers-parser": "9.0.2",
|
|
68
68
|
"@netlify/local-functions-proxy": "2.0.3",
|
|
69
69
|
"@netlify/redirect-parser": "15.0.3",
|
|
70
|
-
"@netlify/zip-it-and-ship-it": "14.1.
|
|
70
|
+
"@netlify/zip-it-and-ship-it": "14.1.7",
|
|
71
71
|
"@octokit/rest": "21.1.1",
|
|
72
72
|
"@opentelemetry/api": "1.8.0",
|
|
73
73
|
"@pnpm/tabtab": "0.5.4",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"http-proxy": "1.18.1",
|
|
109
109
|
"http-proxy-middleware": "2.0.9",
|
|
110
110
|
"https-proxy-agent": "7.0.6",
|
|
111
|
-
"inquirer": "8.2.
|
|
111
|
+
"inquirer": "8.2.7",
|
|
112
112
|
"inquirer-autocomplete-prompt": "1.4.0",
|
|
113
113
|
"ipx": "3.1.1",
|
|
114
114
|
"is-docker": "3.0.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {string} workingDir
|
|
3
|
-
* @param {*} file
|
|
4
|
-
*/
|
|
5
|
-
export declare const deployFileNormalizer: (workingDir: string, file: any) => any;
|
|
6
|
-
export declare const getDistPathIfExists: (workingDir: string) => Promise<string | undefined>;
|
|
7
|
-
export declare const isEdgeFunctionFile: (filePath: string) => boolean;
|
|
8
|
-
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/lib/edge-functions/deploy.ts"],"names":[],"mappings":"AASA;;;GAGG;AAEH,eAAO,MAAM,oBAAoB,GAAI,YAAY,MAAM,EAAE,SAAI,QAS5D,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAU,YAAY,MAAM,gCAa3D,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,YAA+C,CAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { stat } from 'fs/promises';
|
|
2
|
-
import { join } from 'path';
|
|
3
|
-
import { getPathInProject } from '../settings.js';
|
|
4
|
-
import { EDGE_FUNCTIONS_FOLDER, PUBLIC_URL_PATH } from './consts.js';
|
|
5
|
-
const distPath = getPathInProject([EDGE_FUNCTIONS_FOLDER]);
|
|
6
|
-
/**
|
|
7
|
-
* @param {string} workingDir
|
|
8
|
-
* @param {*} file
|
|
9
|
-
*/
|
|
10
|
-
// @ts-expect-error TS(7006) FIXME: Parameter 'workingDir' implicitly has an 'any' typ... Remove this comment to see the full error message
|
|
11
|
-
export const deployFileNormalizer = (workingDir, file) => {
|
|
12
|
-
const absoluteDistPath = join(workingDir, distPath);
|
|
13
|
-
const isEdgeFunction = file.root === absoluteDistPath;
|
|
14
|
-
const normalizedPath = isEdgeFunction ? `${PUBLIC_URL_PATH}/${file.normalizedPath}` : file.normalizedPath;
|
|
15
|
-
return {
|
|
16
|
-
...file,
|
|
17
|
-
normalizedPath,
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export const getDistPathIfExists = async (workingDir) => {
|
|
21
|
-
try {
|
|
22
|
-
const absoluteDistPath = join(workingDir, distPath);
|
|
23
|
-
const stats = await stat(absoluteDistPath);
|
|
24
|
-
if (!stats.isDirectory()) {
|
|
25
|
-
throw new Error(`Path ${absoluteDistPath} must be a directory.`);
|
|
26
|
-
}
|
|
27
|
-
return absoluteDistPath;
|
|
28
|
-
}
|
|
29
|
-
catch {
|
|
30
|
-
// no-op
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export const isEdgeFunctionFile = (filePath) => filePath.startsWith(`${PUBLIC_URL_PATH}/`);
|
|
34
|
-
//# sourceMappingURL=deploy.js.map
|