You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@based/cli

Package Overview
Dependencies
Maintainers
1
Versions
229
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/cli - npm Package Compare versions

Comparing version

to
5.2.7

26

dist/commands/dev/index.js

@@ -91,3 +91,3 @@ "use strict";

const r = (0, utils_1.requireFromString)(fn.text, fn.path);
const f = r.default || r;
const fnDefault = r.default || r;
await (0, utils_1.bundleApp)({

@@ -104,3 +104,3 @@ publicPath,

const wrapper = async (based, _payload, ctx) => {
let html = await f(based, params, ctx);
let html = await fnDefault(based, params, ctx);
const i = html.indexOf('</head>');

@@ -115,12 +115,16 @@ if (i === -1) {

};
const props = {
version: 1,
fn: wrapper,
uninstallAfterIdleTime: -1,
closeAfterIdleTime: 5e3,
...DEFAULTS.function,
...configObj,
type: 'function',
};
if (r.httpResponse) {
props.httpResponse = r.httpResponse;
}
server.functions.add({
[configObj.name]: {
version: 1,
fn: wrapper,
uninstallAfterIdleTime: -1,
closeAfterIdleTime: 5e3,
...DEFAULTS.function,
...configObj,
type: 'function',
},
[configObj.name]: props,
});

@@ -127,0 +131,0 @@ clients.forEach((client) => {

{
"name": "@based/cli",
"version": "5.2.6",
"version": "5.2.7",
"description": "",

@@ -27,3 +27,3 @@ "bin": "bin/cmd.js",

"dependencies": {
"@based/client": "4.7.3",
"@based/client": "^4.7.3",
"@based/server": "6.7.2",

@@ -30,0 +30,0 @@ "@esbuild-plugins/node-globals-polyfill": "^0.2.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet