vite-plugin-vercel 11.0.0-beta.13 → 11.0.0-beta.15
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/vite.js +3 -3
- package/package.json +2 -2
package/dist/vite.js
CHANGED
|
@@ -140,11 +140,11 @@ function hashString(str, length = 6) {
|
|
|
140
140
|
hash = hash >>> 0;
|
|
141
141
|
return hash.toString(36).slice(0, length);
|
|
142
142
|
}
|
|
143
|
-
function uniqueViteName(id, maxSegments = 2) {
|
|
144
|
-
return removeExtension$1(`${mapPath(extractBestPath(parseViteId(id)), maxSegments)}_${hashString(
|
|
143
|
+
function uniqueViteName(id, entry, maxSegments = 2) {
|
|
144
|
+
return removeExtension$1(`${mapPath(extractBestPath(parseViteId(id)), maxSegments)}_${hashString(JSON.stringify(entry))}`.replace(/[^a-zA-Z0-9\-_[\]/]/g, "-"));
|
|
145
145
|
}
|
|
146
146
|
function entryDestinationDefault(root, entry) {
|
|
147
|
-
return uniqueViteName(pathRelativeTo$1(entry.id, root));
|
|
147
|
+
return uniqueViteName(pathRelativeTo$1(entry.id, root), entry);
|
|
148
148
|
}
|
|
149
149
|
function entryDestination(root, entry, postfix) {
|
|
150
150
|
return `${path.posix.join("functions/", entryDestinationDefault(root, entry))}${postfix}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-vercel",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@manypkg/find-root": "^3.1.0",
|
|
36
|
-
"@universal-deploy/store": "^0.
|
|
36
|
+
"@universal-deploy/store": "^0.1.3",
|
|
37
37
|
"@universal-middleware/core": "^0.4.13",
|
|
38
38
|
"@universal-middleware/vercel": "^0.4.29",
|
|
39
39
|
"@vercel/build-utils": "^13.2.3",
|