vite-node 0.27.0 → 0.27.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/cli.cjs +2 -2
- package/dist/cli.mjs +1 -1
- package/dist/client.cjs +0 -12
- package/dist/client.mjs +0 -12
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -6,8 +6,8 @@ var vite = require('vite');
|
|
|
6
6
|
var server = require('./server.cjs');
|
|
7
7
|
var client = require('./client.cjs');
|
|
8
8
|
var utils = require('./utils.cjs');
|
|
9
|
-
var sourceMap = require('./source-map.cjs');
|
|
10
9
|
var hmr = require('./chunk-hmr.cjs');
|
|
10
|
+
var sourceMap = require('./source-map.cjs');
|
|
11
11
|
require('perf_hooks');
|
|
12
12
|
require('pathe');
|
|
13
13
|
require('debug');
|
|
@@ -25,7 +25,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
25
25
|
var cac__default = /*#__PURE__*/_interopDefaultLegacy(cac);
|
|
26
26
|
var c__default = /*#__PURE__*/_interopDefaultLegacy(c);
|
|
27
27
|
|
|
28
|
-
var version = "0.27.
|
|
28
|
+
var version = "0.27.1";
|
|
29
29
|
|
|
30
30
|
const cli = cac__default["default"]("vite-node");
|
|
31
31
|
cli.version(version).option("-r, --root <path>", "Use specified root directory").option("-c, --config <path>", "Use specified config file").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--options <options>", "Use specified Vite server options").help();
|
package/dist/cli.mjs
CHANGED
|
@@ -18,7 +18,7 @@ import 'node:path';
|
|
|
18
18
|
import 'node:vm';
|
|
19
19
|
import 'node:events';
|
|
20
20
|
|
|
21
|
-
var version = "0.27.
|
|
21
|
+
var version = "0.27.1";
|
|
22
22
|
|
|
23
23
|
const cli = cac("vite-node");
|
|
24
24
|
cli.version(version).option("-r, --root <path>", "Use specified root directory").option("-c, --config <path>", "Use specified config file").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--options <options>", "Use specified Vite server options").help();
|
package/dist/client.cjs
CHANGED
|
@@ -344,12 +344,6 @@ ${getStack()}`), 2e3);
|
|
|
344
344
|
if (!this.shouldInterop(path, importedModule))
|
|
345
345
|
return importedModule;
|
|
346
346
|
const { mod, defaultExport } = interopModule(importedModule);
|
|
347
|
-
const modKeys = Reflect.ownKeys(mod);
|
|
348
|
-
let defaultKeys = !utils.isPrimitive(defaultExport) ? Reflect.ownKeys(defaultExport) : [];
|
|
349
|
-
if (typeof mod !== "function" && typeof defaultExport === "function") {
|
|
350
|
-
const reservedKeys = ["arguments", "caller", "prototype", "name", "length"];
|
|
351
|
-
defaultKeys = defaultKeys.filter((n) => typeof n === "string" && !reservedKeys.includes(n));
|
|
352
|
-
}
|
|
353
347
|
return new Proxy(mod, {
|
|
354
348
|
get(mod2, prop) {
|
|
355
349
|
if (prop === "default")
|
|
@@ -361,12 +355,6 @@ ${getStack()}`), 2e3);
|
|
|
361
355
|
return defaultExport !== void 0;
|
|
362
356
|
return prop in mod2 || defaultExport && prop in defaultExport;
|
|
363
357
|
},
|
|
364
|
-
ownKeys() {
|
|
365
|
-
if (!defaultExport || utils.isPrimitive(defaultExport))
|
|
366
|
-
return modKeys;
|
|
367
|
-
const allKeys = [...modKeys, "default", ...defaultKeys];
|
|
368
|
-
return Array.from(new Set(allKeys));
|
|
369
|
-
},
|
|
370
358
|
getOwnPropertyDescriptor(mod2, prop) {
|
|
371
359
|
const descriptor = Reflect.getOwnPropertyDescriptor(mod2, prop);
|
|
372
360
|
if (descriptor)
|
package/dist/client.mjs
CHANGED
|
@@ -317,12 +317,6 @@ ${getStack()}`), 2e3);
|
|
|
317
317
|
if (!this.shouldInterop(path, importedModule))
|
|
318
318
|
return importedModule;
|
|
319
319
|
const { mod, defaultExport } = interopModule(importedModule);
|
|
320
|
-
const modKeys = Reflect.ownKeys(mod);
|
|
321
|
-
let defaultKeys = !isPrimitive(defaultExport) ? Reflect.ownKeys(defaultExport) : [];
|
|
322
|
-
if (typeof mod !== "function" && typeof defaultExport === "function") {
|
|
323
|
-
const reservedKeys = ["arguments", "caller", "prototype", "name", "length"];
|
|
324
|
-
defaultKeys = defaultKeys.filter((n) => typeof n === "string" && !reservedKeys.includes(n));
|
|
325
|
-
}
|
|
326
320
|
return new Proxy(mod, {
|
|
327
321
|
get(mod2, prop) {
|
|
328
322
|
if (prop === "default")
|
|
@@ -334,12 +328,6 @@ ${getStack()}`), 2e3);
|
|
|
334
328
|
return defaultExport !== void 0;
|
|
335
329
|
return prop in mod2 || defaultExport && prop in defaultExport;
|
|
336
330
|
},
|
|
337
|
-
ownKeys() {
|
|
338
|
-
if (!defaultExport || isPrimitive(defaultExport))
|
|
339
|
-
return modKeys;
|
|
340
|
-
const allKeys = [...modKeys, "default", ...defaultKeys];
|
|
341
|
-
return Array.from(new Set(allKeys));
|
|
342
|
-
},
|
|
343
331
|
getOwnPropertyDescriptor(mod2, prop) {
|
|
344
332
|
const descriptor = Reflect.getOwnPropertyDescriptor(mod2, prop);
|
|
345
333
|
if (descriptor)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-node",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "Vite as Node.js runtime",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"cac": "^6.7.14",
|
|
74
74
|
"debug": "^4.3.4",
|
|
75
|
-
"mlly": "^1.
|
|
75
|
+
"mlly": "^1.1.0",
|
|
76
76
|
"pathe": "^0.2.0",
|
|
77
77
|
"picocolors": "^1.0.0",
|
|
78
78
|
"source-map": "^0.6.1",
|