Socket
Socket
Sign inDemoInstall

@gracile/engine

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gracile/engine - npm Package Compare versions

Comparing version 0.2.0-next.4 to 0.2.0-next.5

dist/server/adapters/hono.d.ts

2

dist/plugin.js

@@ -8,3 +8,3 @@ import { join } from 'node:path';

import { createDevHandler } from './dev/dev.js';
import { nodeAdapter } from './server/node.js';
import { nodeAdapter } from './server/adapters/node.js';
import { buildRoutes } from './vite/plugins/build-routes.js';

@@ -11,0 +11,0 @@ import { virtualRoutes } from './vite/plugins/virtual-routes.js';

@@ -5,2 +5,3 @@ import type { IncomingMessage, Server, ServerResponse } from 'node:http';

address?: string;
port?: number;
}): void;

@@ -23,3 +24,2 @@ export declare function notFoundHandler(req: IncomingMessage, res: ServerResponse): void;

}) => boolean) => BasicAuthUser;
export declare function getClientDistPath(root: string): string;
//# sourceMappingURL=utils.d.ts.map
// NOTE: Util. to pretty print for user provided server.
import { fileURLToPath } from 'node:url';
// import type { AddressInfo } from 'node:net';

@@ -7,3 +6,3 @@ import { logger } from '@gracile/internal-utils/logger';

import c from 'picocolors';
import { CLIENT_DIST_DIR, IP_EXPOSED } from './env.js';
import { IP_EXPOSED } from './env.js';
export function printAddressInfos(options) {

@@ -18,3 +17,3 @@ let address = null;

else if (options.address) {
address = options.address;
address = `http://${options.address}${options.port ? `:${String(options.port)}` : ''}`;
}

@@ -26,9 +25,11 @@ if (!address)

});
logger.info(`
${c.dim('┃')} Local ${c.cyan(address.replace(/::1?/, 'localhost'))}` +
`${address?.includes(IP_EXPOSED)
if (address?.includes(IP_EXPOSED))
logger.info(`${address?.includes(IP_EXPOSED)
? `\n${c.dim('┃')} Network ${c.cyan(address)}`
: ''}
`);
: ''}`);
else
logger.info(`
${c.dim('┃')} Local ${c.cyan(address.replace(/::1?/, 'localhost'))}`);
}
// NOTE: UNUSED (keep?)
function sendHtml(res, payload) {

@@ -77,4 +78,1 @@ res.setHeader('content/type', 'text/html');

};
export function getClientDistPath(root) {
return fileURLToPath(new URL(CLIENT_DIST_DIR, root));
}
{
"name": "@gracile/engine",
"version": "0.2.0-next.4",
"version": "0.2.0-next.5",
"description": "A thin, full-stack, web framework",

@@ -78,3 +78,3 @@ "keywords": [

},
"gitHead": "79b1951fb7faf857deb5f361169fea20b7e4ef62"
"gitHead": "73b565d94552da78e776b8925533f569b1886e9c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc