@nuxt/nitro-server-nightly 4.2.0-29344722.285eac31 → 4.2.0-29345484.1f69d1e1
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/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import { isWindows } from 'std-env';
|
|
|
16
16
|
import { ImpoundPlugin } from 'impound';
|
|
17
17
|
import { resolveModulePath } from 'exsolve';
|
|
18
18
|
|
|
19
|
-
const version = "4.2.0-
|
|
19
|
+
const version = "4.2.0-29345484.1f69d1e1";
|
|
20
20
|
|
|
21
21
|
function toArray(value) {
|
|
22
22
|
return Array.isArray(value) ? value : [value];
|
|
@@ -331,7 +331,6 @@ async function bundle(nuxt) {
|
|
|
331
331
|
],
|
|
332
332
|
exclude: [
|
|
333
333
|
...nuxt.options.modulesDir.map((m) => relativeWithDot(nuxt.options.buildDir, m)),
|
|
334
|
-
// nitro generate output: https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/core/nitro.ts#L186
|
|
335
334
|
relativeWithDot(nuxt.options.buildDir, resolve(nuxt.options.rootDir, "dist"))
|
|
336
335
|
]
|
|
337
336
|
}
|
|
@@ -9,26 +9,28 @@ import lruCache from 'unstorage/drivers/lru-cache'
|
|
|
9
9
|
*/
|
|
10
10
|
const normalizeFsKey = item => decodeURIComponent(item.replaceAll(':', '_'))
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
export default defineDriver(
|
|
13
|
+
/**
|
|
14
|
+
* @param {{ base?: string }} opts
|
|
15
|
+
*/
|
|
16
|
+
(opts) => {
|
|
17
|
+
const fs = fsDriver({ base: opts.base })
|
|
18
|
+
const lru = lruCache({ max: 1000 })
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
20
|
+
return {
|
|
21
|
+
...fs, // fall back to file system - only the bottom three methods are used in renderer
|
|
22
|
+
async setItem (key, value, opts) {
|
|
23
|
+
await Promise.all([
|
|
24
|
+
fs.setItem?.(normalizeFsKey(key), value, opts),
|
|
25
|
+
lru.setItem?.(key, value, opts),
|
|
26
|
+
])
|
|
27
|
+
},
|
|
28
|
+
async hasItem (key, opts) {
|
|
29
|
+
return await lru.hasItem(key, opts) || await fs.hasItem(normalizeFsKey(key), opts)
|
|
30
|
+
},
|
|
31
|
+
async getItem (key, opts) {
|
|
32
|
+
return await lru.getItem(key, opts) || await fs.getItem(normalizeFsKey(key), opts)
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/nitro-server-nightly",
|
|
3
|
-
"version": "4.2.0-
|
|
3
|
+
"version": "4.2.0-29345484.1f69d1e1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@nuxt/devalue": "^2.0.2",
|
|
22
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-
|
|
22
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29345484.1f69d1e1",
|
|
23
23
|
"@unhead/vue": "^2.0.14",
|
|
24
24
|
"@vue/shared": "^3.5.22",
|
|
25
25
|
"consola": "^3.4.2",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"vue-devtools-stub": "^0.1.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"nuxt": "npm:nuxt-nightly@4.2.0-
|
|
49
|
+
"nuxt": "npm:nuxt-nightly@4.2.0-29345484.1f69d1e1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-
|
|
53
|
-
"nuxt": "npm:nuxt-nightly@4.2.0-
|
|
52
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29345484.1f69d1e1",
|
|
53
|
+
"nuxt": "npm:nuxt-nightly@4.2.0-29345484.1f69d1e1",
|
|
54
54
|
"unbuild": "3.6.1",
|
|
55
55
|
"vitest": "3.2.4"
|
|
56
56
|
},
|