Socket
Socket
Sign inDemoInstall

nuekit

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuekit - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

package.json
{
"name": "nuekit",
"version": "0.2.0",
"version": "0.3.0",
"description": "The closer-to-standards web framework. Build sites and apps with less effort.",

@@ -5,0 +5,0 @@ "homepage": "https://nuejs.org",

@@ -64,3 +64,3 @@

// components
if (!data.no_automount) data.components = await site.getAssets(dir, ['nue'], 'js')
if (data.automount !== false) data.components = await site.getAssets(dir, ['nue'], 'js')

@@ -76,4 +76,4 @@ // scripts

// system scripts
if (!data.is_spa && data.page_router) push('page-router')
if (is_dev && !data.no_hotreload) push('hotreload')
if (!data.is_spa && data.router) push('page-router')
if (is_dev && data.hotreload !== false) push('hotreload')
if (data.page?.isomorphic) push('nuemark')

@@ -80,0 +80,0 @@ if (data.components?.length) push('mount')

import { buildCSS, findModule } from '../src/builder.js'
import { parseMarkdown, getParts } from '../src/util.js'
import { getParts } from '../src/util.js'
import { match } from '../src/browser/app-router.js'

@@ -78,9 +78,2 @@ import { renderHead } from '../src/layout.js'

test('markdown', async () => {
const { meta, content } = parseMarkdown('---\nog: og.png\n---\n# Hey')
expect(meta.og).toBe('og.png')
expect(content.trim()).toBe('<h1>Hey</h1>')
})
test('app router', async () => {

@@ -87,0 +80,0 @@ expect(match('/fail/:id', '/users/20')).toBeNull()

@@ -213,3 +213,3 @@

const kit = await getKit()
await write('scripts/app.yaml', 'include: [hello.js]\nno_hotreload: true')
await write('scripts/app.yaml', 'include: [hello.js]\nhotreload: false')
await write('scripts/index.md', '# Hey')

@@ -216,0 +216,0 @@ await write('scripts/hello.nue', '<div/>')

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