@stacksjs/components 0.2.9 → 0.2.11
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.
|
@@ -18,6 +18,7 @@ export declare function useSEO(options: SEOMetaOptions): void;
|
|
|
18
18
|
* Generate SEO meta tags as HTML string for server-side rendering
|
|
19
19
|
*/
|
|
20
20
|
export declare function generateSEOTags(options: SEOMetaOptions): string;
|
|
21
|
+
/* eslint-disable style/max-statements-per-line */
|
|
21
22
|
/**
|
|
22
23
|
* SEO and meta tag utilities for STX components
|
|
23
24
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.11",
|
|
5
5
|
"description": "A modern component library built with STX, featuring headwind utility classes and TypeScript syntax highlighting.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"prepublishOnly": "bun run build"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@cwcss/crosswind": "^0.
|
|
59
|
-
"@stacksjs/stx": "0.2.
|
|
60
|
-
"bun-plugin-stx": "0.2.
|
|
58
|
+
"@cwcss/crosswind": "^0.2.0",
|
|
59
|
+
"@stacksjs/stx": "0.2.11",
|
|
60
|
+
"bun-plugin-stx": "0.2.11",
|
|
61
61
|
"ts-syntax-highlighter": "^0.2.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@types/bun": "^1.3.
|
|
65
|
-
"bun-plugin-dtsx": "^0.
|
|
64
|
+
"@types/bun": "^1.3.11",
|
|
65
|
+
"bun-plugin-dtsx": "^0.21.17",
|
|
66
66
|
"pickier": "^0.1.20",
|
|
67
|
-
"typescript": "^
|
|
67
|
+
"typescript": "^6.0.2"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -271,7 +271,8 @@ export function clearErrorHandler(): void {
|
|
|
271
271
|
* ```ts
|
|
272
272
|
* try {
|
|
273
273
|
* // Component code
|
|
274
|
-
* }
|
|
274
|
+
* }
|
|
275
|
+
catch (error) {
|
|
275
276
|
* handleError(error, { throwError: false })
|
|
276
277
|
* }
|
|
277
278
|
* ```
|
|
@@ -293,7 +294,9 @@ export function handleError(
|
|
|
293
294
|
|
|
294
295
|
if (error instanceof ComponentError) {
|
|
295
296
|
console.group('Error Details')
|
|
297
|
+
// eslint-disable-next-line no-console
|
|
296
298
|
console.log('Component:', error.component)
|
|
299
|
+
// eslint-disable-next-line no-console
|
|
297
300
|
console.log('Context:', error.context)
|
|
298
301
|
console.groupEnd()
|
|
299
302
|
}
|
package/src/utils/keep-alive.ts
CHANGED