Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gracile/engine

Package Overview
Dependencies
Maintainers
0
Versions
38
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.3 to 0.2.0-next.4

20

dist/plugin.js

@@ -1,4 +0,2 @@

import { readFile } from 'node:fs/promises';
import { join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { logger } from '@gracile/internal-utils/logger';

@@ -34,6 +32,18 @@ import { rename, rm } from 'fs/promises';

// Infos
const mainPjson = fileURLToPath(new URL('../../gracile/package.json', import.meta.url));
const { version } = JSON.parse(await readFile(mainPjson, 'utf-8'));
// // NOTE: Beware import.meta.resolve is only compatible
// // with v20.6.0 (without cli flag)and upward
// // Not working with StackBlitz ATM?
// const mainPjson = import.meta
// .resolve('@gracile/gracile')
// // NOTE: Weirdly, it will assume that it's `dist/**.js`,
// // even after fiddling with pjson exports.
// .replace('/dist/index.js', '/package.json');
// const { version } = JSON.parse(
// await readFile(new URL(mainPjson), 'utf-8'),
// ) as {
// version: number;
// };
const version = process.env['__GRACILE_VERSION__'];
logger.info(`${c.cyan(c.italic(c.underline('🧚 Gracile ')))}` +
` ${c.green(` v${version}`)}`);
` ${c.green(` v${version ?? 'X'}`)}`);
// ---

@@ -40,0 +50,0 @@ const { handler } = await createDevHandler({

{
"name": "@gracile/engine",
"version": "0.2.0-next.3",
"version": "0.2.0-next.4",
"description": "A thin, full-stack, web framework",

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

},
"gitHead": "48a2950f61cfb2d0aec50f5539ea90f7905ad6a8"
"gitHead": "79b1951fb7faf857deb5f361169fea20b7e4ef62"
}

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