New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-node

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-node - npm Package Compare versions

Comparing version

to
5.0.0

24

dist/rollup-plugin-swc.js

@@ -18,9 +18,19 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });

@@ -27,0 +37,0 @@ exports.RollupPluginSwc = RollupPluginSwc;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpressHandler = void 0;
const ExpressHandler = ({ app, req, res }) => {
const ExpressHandler = ({ app, req, res, server, next: nextType }) => {
// Add error handling middleware to fix stack traces
app.use((err, _req, _res, next) => {
if (err instanceof Error)
server.ssrFixStacktrace(err);
next(err);
});
app(req, res);

@@ -6,0 +12,0 @@ };

{
"name": "vite-plugin-node",
"version": "4.0.0",
"version": "5.0.0",
"description": "Vite plugin to enable your node server HMR",

@@ -26,2 +26,10 @@ "author": "Axe",

],
"scripts": {
"build-dist": "tsc",
"build": "run-s prebuild build-dist",
"dev": "tsc -w --incremental",
"lint": "eslint --ext .ts src/**",
"format": "prettier --write .",
"prebuild": "rimraf dist && npm run lint && cp ../../README.md ./readme.md"
},
"dependencies": {

@@ -34,3 +42,3 @@ "@rollup/pluginutils": "^4.1.1",

"@swc/core": "^1.7.26",
"vite": "^5.0.0"
"vite": "catalog:"
},

@@ -61,12 +69,4 @@ "peerDependenciesMeta": {

"rxjs": "^7.5.5",
"vite": "^5.4.8"
},
"scripts": {
"build-dist": "tsc",
"build": "run-s prebuild build-dist",
"dev": "tsc -w --incremental",
"lint": "eslint --ext .ts src/**",
"format": "prettier --write .",
"prebuild": "rimraf dist && npm run lint && cp ../../README.md ./readme.md"
"vite": "catalog:"
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet