@nuxt/nitro-server-nightly 4.2.0-29345108.b399de2f → 4.2.0-29345501.dd522394
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-29345501.dd522394";
|
|
20
20
|
|
|
21
21
|
function toArray(value) {
|
|
22
22
|
return Array.isArray(value) ? value : [value];
|
|
@@ -569,7 +569,7 @@ async function bundle(nuxt) {
|
|
|
569
569
|
ImpoundPlugin.rollup({
|
|
570
570
|
cwd: nuxt.options.rootDir,
|
|
571
571
|
patterns: createImportProtectionPatterns(nuxt, { context: "nitro-app" }),
|
|
572
|
-
exclude: [/node_modules[\\/]nitro(?:pack)?(?:-nightly)?[\\/]|(packages|@nuxt)[\\/]nitro-server[\\/](src|dist)[\\/]runtime[\\/]/, ...sharedPatterns]
|
|
572
|
+
exclude: [/node_modules[\\/]nitro(?:pack)?(?:-nightly)?[\\/]|(packages|@nuxt)[\\/]nitro-server(?:-nightly)?[\\/](src|dist)[\\/]runtime[\\/]/, ...sharedPatterns]
|
|
573
573
|
})
|
|
574
574
|
);
|
|
575
575
|
const isIgnored = createIsIgnored(nuxt);
|
|
@@ -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-29345501.dd522394",
|
|
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-29345501.dd522394",
|
|
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-29345501.dd522394"
|
|
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-29345501.dd522394",
|
|
53
|
+
"nuxt": "npm:nuxt-nightly@4.2.0-29345501.dd522394",
|
|
54
54
|
"unbuild": "3.6.1",
|
|
55
55
|
"vitest": "3.2.4"
|
|
56
56
|
},
|