@nestjs-ssr/react 0.1.9 → 0.1.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.
package/dist/index.js CHANGED
@@ -1167,5 +1167,3 @@ exports.usePageContext = usePageContext;
1167
1167
  exports.useParams = useParams;
1168
1168
  exports.useQuery = useQuery;
1169
1169
  exports.useUserAgent = useUserAgent;
1170
- //# sourceMappingURL=index.js.map
1171
- //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -1153,5 +1153,3 @@ function useUserAgent() {
1153
1153
  __name(useUserAgent, "useUserAgent");
1154
1154
 
1155
1155
  export { ErrorPageDevelopment, ErrorPageProduction, ReactRender, Render, RenderInterceptor, RenderModule, RenderService, StreamingErrorHandler, TemplateParserService, usePageContext, useParams, useQuery, useUserAgent };
1156
- //# sourceMappingURL=index.mjs.map
1157
- //# sourceMappingURL=index.mjs.map
@@ -1133,5 +1133,3 @@ exports.RenderModule = _ts_decorate6([
1133
1133
 
1134
1134
  exports.ErrorPageDevelopment = ErrorPageDevelopment;
1135
1135
  exports.ErrorPageProduction = ErrorPageProduction;
1136
- //# sourceMappingURL=index.js.map
1137
- //# sourceMappingURL=index.js.map
@@ -1125,5 +1125,3 @@ RenderModule = _ts_decorate6([
1125
1125
  ], RenderModule);
1126
1126
 
1127
1127
  export { ErrorPageDevelopment, ErrorPageProduction, RenderInterceptor, RenderModule, RenderService, StreamingErrorHandler, TemplateParserService };
1128
- //# sourceMappingURL=index.mjs.map
1129
- //# sourceMappingURL=index.mjs.map
@@ -1,3 +1,4 @@
1
+ /// <reference path="../global.d.ts" />
1
2
  import React, { StrictMode } from 'react';
2
3
  import { hydrateRoot } from 'react-dom/client';
3
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs-ssr/react",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "React SSR for NestJS that respects Clean Architecture. Proper DI, SOLID principles, clear separation of concerns.",
5
5
  "keywords": [
6
6
  "nestjs",
@@ -58,13 +58,13 @@
58
58
  "require": "./dist/react/*.js"
59
59
  },
60
60
  "./templates/*": "./src/templates/*",
61
+ "./global": "./src/global.d.ts",
61
62
  "./package.json": "./package.json"
62
63
  },
63
64
  "files": [
64
65
  "dist",
65
66
  "src/templates",
66
67
  "src/global.d.ts",
67
- "src/cli",
68
68
  "README.md",
69
69
  "LICENSE"
70
70
  ],
@@ -96,6 +96,8 @@
96
96
  }
97
97
  },
98
98
  "dependencies": {
99
+ "citty": "^0.1.6",
100
+ "consola": "^3.4.2",
99
101
  "escape-html": "^1.0.3",
100
102
  "serialize-javascript": "^6.0.2"
101
103
  },
@@ -107,16 +109,12 @@
107
109
  "@testing-library/react": "^16.3.0",
108
110
  "@types/escape-html": "^1.0.4",
109
111
  "@types/express": "^5.0.5",
110
- "@types/glob": "^9.0.0",
111
112
  "@types/node": "^22.0.0",
112
113
  "@types/react": "^19.0.0",
113
114
  "@types/react-dom": "^19.0.0",
114
115
  "@types/serialize-javascript": "^5.0.4",
115
116
  "@vitejs/plugin-react": "^4.7.0",
116
117
  "@vitest/ui": "^4.0.14",
117
- "citty": "^0.1.6",
118
- "consola": "^3.4.2",
119
- "glob": "^13.0.0",
120
118
  "happy-dom": "^20.0.11",
121
119
  "react": "^19.0.0",
122
120
  "react-dom": "^19.0.0",
package/src/global.d.ts CHANGED
@@ -19,6 +19,22 @@ declare global {
19
19
  */
20
20
  __COMPONENT_NAME__: string;
21
21
  }
22
+
23
+ interface ImportMeta {
24
+ /**
25
+ * Vite-specific glob import API
26
+ * @see https://vite.dev/guide/features.html#glob-import
27
+ */
28
+ glob<T = any>(
29
+ pattern: string | string[],
30
+ options?: {
31
+ eager?: boolean;
32
+ import?: string;
33
+ query?: string | Record<string, string | number | boolean>;
34
+ as?: string;
35
+ }
36
+ ): Record<string, T>;
37
+ }
22
38
  }
23
39
 
24
40
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference path="../global.d.ts" />
1
2
  import React, { StrictMode } from 'react';
2
3
  import { hydrateRoot } from 'react-dom/client';
3
4