nitro-nightly 3.1.0-20251029-083118-c3a252ab → 3.1.0-20251029-083418-84ceb86e

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.
@@ -1,4 +1,4 @@
1
- import sysPath__default from 'path';
1
+ import path from 'node:path';
2
2
 
3
3
  function matches(pattern, importee) {
4
4
  if (pattern instanceof RegExp) {
@@ -60,7 +60,7 @@ function alias(options = {}) {
60
60
  return {
61
61
  name: 'alias',
62
62
  async buildStart(inputOptions) {
63
- await Promise.all([...(Array.isArray(options.entries) ? options.entries : []), options].map(({ customResolver }) => { var _a; return customResolver && ((_a = getHookFunction(customResolver.buildStart)) === null || _a === void 0 ? void 0 : _a.call(this, inputOptions)); }));
63
+ await Promise.all([...(Array.isArray(options.entries) ? options.entries : []), options].map(({ customResolver }) => customResolver && getHookFunction(customResolver.buildStart)?.call(this, inputOptions)));
64
64
  },
65
65
  resolveId(importee, importer, resolveOptions) {
66
66
  // First match is supposed to be the correct one
@@ -75,8 +75,8 @@ function alias(options = {}) {
75
75
  return this.resolve(updatedId, importer, Object.assign({ skipSelf: true }, resolveOptions)).then((resolved) => {
76
76
  if (resolved)
77
77
  return resolved;
78
- if (!sysPath__default.isAbsolute(updatedId)) {
79
- this.warn(`rewrote ${importee} to ${updatedId} but was not an abolute path and was not handled by other plugins. ` +
78
+ if (!path.isAbsolute(updatedId)) {
79
+ this.warn(`rewrote ${importee} to ${updatedId} but was not an absolute path and was not handled by other plugins. ` +
80
80
  `This will lead to duplicated modules for the same path. ` +
81
81
  `To avoid duplicating modules, you should resolve to an absolute path.`);
82
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.1.0-20251029-083118-c3a252ab",
3
+ "version": "3.1.0-20251029-083418-84ceb86e",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",
@@ -75,7 +75,7 @@
75
75
  "@hiogawa/vite-plugin-fullstack": "npm:@pi0/vite-plugin-fullstack@0.0.5-pr-1297",
76
76
  "@netlify/edge-functions": "^3.0.1",
77
77
  "@netlify/functions": "^5.0.1",
78
- "@rollup/plugin-alias": "^5.1.1",
78
+ "@rollup/plugin-alias": "^6.0.0",
79
79
  "@rollup/plugin-commonjs": "^28.0.9",
80
80
  "@rollup/plugin-inject": "^5.0.5",
81
81
  "@rollup/plugin-json": "^6.1.0",
@@ -83,12 +83,12 @@
83
83
  "@rollup/plugin-replace": "^6.0.2",
84
84
  "@rollup/plugin-terser": "^0.4.4",
85
85
  "@scalar/api-reference": "^1.38.1",
86
- "@types/aws-lambda": "^8.10.156",
86
+ "@types/aws-lambda": "^8.10.157",
87
87
  "@types/estree": "^1.0.8",
88
88
  "@types/etag": "^1.8.4",
89
89
  "@types/fs-extra": "^11.0.4",
90
90
  "@types/http-proxy": "^1.17.17",
91
- "@types/node": "^24.9.1",
91
+ "@types/node": "^24.9.2",
92
92
  "@types/node-fetch": "^2.6.13",
93
93
  "@types/semver": "^7.7.1",
94
94
  "@types/serve-static": "^2.2.0",