coralite 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,10 +3,10 @@
3
3
  coralite is a static site generator library built around the emerging [HTML modules proposal](https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md).
4
4
 
5
5
  - Getting started
6
- [Basic templating](./docs/basic-templating.md)
6
+ - [Basic templating](./docs/basic-templating.md)
7
7
  - Reference
8
- [Coralite CLI](./docs/coralite-cli.md)
9
- [Coralite](./docs/coralite.md)
8
+ - [Coralite CLI](./docs/coralite-cli.md)
9
+ - [Coralite](./docs/coralite.md)
10
10
 
11
11
  ## Installation
12
12
 
package/lib/parse.js CHANGED
@@ -3,6 +3,7 @@ import { aggregate } from './html-module.js'
3
3
  import vm from 'node:vm'
4
4
  import { invalidCustomTags, validTags } from './tags.js'
5
5
 
6
+
6
7
  /**
7
8
  * @import {Module} from 'node:vm'
8
9
  * @import {
@@ -647,7 +648,7 @@ export async function createComponent ({
647
648
  */
648
649
  export async function parseScript (component, values, element, components, document) {
649
650
  const contextifiedObject = vm.createContext({
650
- crypto,
651
+ crypto: globalThis.crypto,
651
652
  coralite: {
652
653
  tokens: values,
653
654
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coralite",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "HTML modules static site generator",
5
5
  "main": "./lib/coralite.js",
6
6
  "type": "module",
@@ -56,6 +56,7 @@
56
56
  "@stylistic/eslint-plugin-js": "^2.12.1",
57
57
  "@stylistic/eslint-plugin-plus": "^2.12.1",
58
58
  "@types/node": "^22.10.5",
59
+ "highlight.js": "^11.11.1",
59
60
  "kleur": "^4.1.5",
60
61
  "sirv-cli": "^3.0.0"
61
62
  },