@blocklet/pages-kit 0.5.36 → 0.5.38

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.
@@ -1,4 +1,10 @@
1
1
  import { PreloadComponentsResult } from '../types';
2
+ /**
3
+ * Safely stringify JSON data to prevent XSS injection by escaping dangerous characters
4
+ * @param obj - The object to stringify
5
+ * @returns Safe JSON string with escaped characters
6
+ */
7
+ export declare function safeJSONStringify(obj: any): string;
2
8
  export declare function injectPreloadComponents(data: PreloadComponentsResult): {
3
9
  html: string;
4
10
  } | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit",
3
- "version": "0.5.36",
3
+ "version": "0.5.38",
4
4
  "description": "Pages Kit components and utils for blocklet(s)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -151,7 +151,7 @@
151
151
  "ufo": "^1.5.4",
152
152
  "yaml": "^2.5.0",
153
153
  "zustand": "^4.5.5",
154
- "@blocklet/pages-kit-core": "^0.5.36"
154
+ "@blocklet/pages-kit-core": "^0.5.38"
155
155
  },
156
156
  "peerDependencies": {
157
157
  "@arcblock/ux": "^2.11.35",