nuxt-spec 0.2.4-alpha.2 → 0.2.4-alpha.3

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.
@@ -0,0 +1,7 @@
1
+ // type hint for tsconfig.nuxt-spec.json
2
+ declare module '*.vue' {
3
+ import type { DefineComponent } from 'vue'
4
+
5
+ const component: DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown>
6
+ export default component
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-spec",
3
- "version": "0.2.4-alpha.2",
3
+ "version": "0.2.4-alpha.3",
4
4
  "description": "Test-pack layer for Nuxt Applications",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,6 +12,7 @@
12
12
  "scripts": {
13
13
  "analyze": "nuxt analyze",
14
14
  "eslint": "eslint .",
15
+ "typecheck": "nuxi typecheck",
15
16
  "build": "pnpm test && nuxt build",
16
17
  "dev": "nuxt dev",
17
18
  "generate": "nuxt generate",
@@ -68,7 +69,8 @@
68
69
  "vitest": "4.1.9",
69
70
  "vitest-browser-vue": "2.1.0",
70
71
  "vue": "~3.5.39",
71
- "vue-router": "~5.1.0"
72
+ "vue-router": "~5.1.0",
73
+ "vue-tsc": "~3.3.6"
72
74
  },
73
75
  "packageManager": "pnpm@11.9.0"
74
76
  }
@@ -7,8 +7,8 @@ import type { DecodedPng } from 'fast-png'
7
7
 
8
8
  const templatesDir = resolve(fileURLToPath(import.meta.url), '..')
9
9
  const REPORT_ENTRY = readFileSync(resolve(templatesDir, 'report-entry.html'), 'utf-8')
10
- const REPORT_PATH = resolve(process.cwd(), '.report-path')
11
- const REPORT_LOCK = resolve(process.cwd(), '.report-lock')
10
+ const REPORT_PATH = resolve(process.cwd(), '.nuxt/.nuxt-spec-report-path')
11
+ const REPORT_LOCK = resolve(process.cwd(), '.nuxt/.nuxt-spec-report-lock')
12
12
 
13
13
  // create report file on first call
14
14
  // protected from parallel execution issues
@@ -118,9 +118,10 @@ export function toRGBA(img: DecodedPng): Uint8Array {
118
118
  const pixels = width * height
119
119
  const rgba = new Uint8Array(pixels * 4)
120
120
  for (let i = 0; i < pixels; i++) {
121
- rgba[i * 4] = data[i * 3]
122
- rgba[i * 4 + 1] = data[i * 3 + 1]
123
- rgba[i * 4 + 2] = data[i * 3 + 2]
121
+ const src = i * 3
122
+ rgba[i * 4 + 0] = data[src + 0] ?? 0
123
+ rgba[i * 4 + 1] = data[src + 1] ?? 0
124
+ rgba[i * 4 + 2] = data[src + 2] ?? 0
124
125
  rgba[i * 4 + 3] = 255
125
126
  }
126
127
  return rgba