vite-node 0.28.0 → 0.28.2

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 CHANGED
@@ -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.28.0";
28
+ var version = "0.28.2";
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.28.0";
21
+ var version = "0.28.2";
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/server.cjs CHANGED
@@ -291,7 +291,7 @@ class ViteNodeServer {
291
291
  const module = this.server.moduleGraph.getModuleById(id);
292
292
  const timestamp = module ? module.lastHMRTimestamp : null;
293
293
  const cache = this.fetchCache.get(filePath);
294
- if (timestamp !== null && cache && cache.timestamp >= timestamp)
294
+ if (timestamp && cache && cache.timestamp >= timestamp)
295
295
  return cache.result;
296
296
  const time = Date.now();
297
297
  const externalize = await this.shouldExternalize(filePath);
package/dist/server.mjs CHANGED
@@ -282,7 +282,7 @@ class ViteNodeServer {
282
282
  const module = this.server.moduleGraph.getModuleById(id);
283
283
  const timestamp = module ? module.lastHMRTimestamp : null;
284
284
  const cache = this.fetchCache.get(filePath);
285
- if (timestamp !== null && cache && cache.timestamp >= timestamp)
285
+ if (timestamp && cache && cache.timestamp >= timestamp)
286
286
  return cache.result;
287
287
  const time = Date.now();
288
288
  const externalize = await this.shouldExternalize(filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-node",
3
- "version": "0.28.0",
3
+ "version": "0.28.2",
4
4
  "description": "Vite as Node.js runtime",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",