Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "nuekit", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "The closer-to-standards web framework. Build sites and apps with less effort.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://nuejs.org", |
@@ -25,3 +25,3 @@ | ||
- [Hybrid app routing and page routing](https://nuejs.org/docs/concepts/client-side-navigation.html) | ||
- [Modular layout components](https://nuejs.org/docs/concepts/layout-components.html) | ||
- [layout components](https://nuejs.org/docs/concepts/layout-components.html) | ||
- [JS/TypeScript modules](https://nuejs.org/docs/concepts/js-modules.html) | ||
@@ -28,0 +28,0 @@ - [Content collections](https://nuejs.org/docs/concepts/content-collections.html) |
@@ -25,11 +25,11 @@ | ||
// update (if changed) | ||
// patch (with primitive DOM diffing) | ||
if (a && b) { | ||
if (a.outerHTML != b.outerHTML) a.replaceWith(b) | ||
// remove | ||
// remove original | ||
} else if (a) { | ||
a.remove() | ||
// add | ||
// add new one | ||
} else { | ||
@@ -36,0 +36,0 @@ const fn = query == 'footer' ? 'append' : 'prepend' |
@@ -51,4 +51,5 @@ | ||
if (!path) throw { errno: -2 } | ||
const buffer = await fs.readFile(join(root, path)) | ||
res.writeHead(code || 200, { 'content-type': TYPES[ext] || TYPES.html }) | ||
res.end(await fs.readFile(join(root, path))) | ||
res.end(buffer) | ||
@@ -55,0 +56,0 @@ } catch(e) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80212
1919