sugar-high 0.7.1 → 0.7.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/lib/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export function highlight(code: string): string
2
2
  export function tokenize(code: string): Array<[number, string]>
3
+ export function generate(tokens: string[]): Array<[number, string]>
package/lib/index.js CHANGED
@@ -583,7 +583,7 @@ function tokenize(code) {
583
583
 
584
584
  /**
585
585
  * @param {Array<[number, string]>} tokens
586
- * @return {Array<any>}
586
+ * @return {Array<[number, string]>}
587
587
  */
588
588
  function generate(tokens) {
589
589
  const lines = []
@@ -592,8 +592,6 @@ function generate(tokens) {
592
592
  *
593
593
  */
594
594
  const createLine = (children) =>
595
- // generateType === 'html'
596
- // ? `<span class="sh__line">${content}</span>`
597
595
  ({
598
596
  type: 'element',
599
597
  tagName: 'span',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sugar-high",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "types": "./lib/index.d.ts",
6
6
  "exports": {
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "codice": "^0.2.0",
22
- "next": "14.2.4",
22
+ "next": "15.0.1",
23
23
  "react": "^18.3.1",
24
24
  "react-dom": "^18.3.1",
25
25
  "sugar-high": "link:./",
26
- "vitest": "^1.2.2"
26
+ "vitest": "^2.1.3"
27
27
  },
28
28
  "packageManager": "pnpm@8.7.1"
29
29
  }