@nexushub/client 0.4.9 → 0.5.0
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/cli.cjs +37 -37
- package/dist/content/local-cache-server.cjs +5 -1
- package/dist/content/local-cache-server.js +5 -1
- package/dist/index.cjs +5 -1
- package/dist/index.js +5 -1
- package/dist/{local-cache-server-BBTSKKEV.cjs → local-cache-server-SGSGWUCL.cjs} +5 -1
- package/dist/{local-cache-server-CWKX622Y.js → local-cache-server-VL4YNBME.js} +5 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
|
@@ -214,7 +214,11 @@ var LocalCache = class {
|
|
|
214
214
|
if (import_fs.default.existsSync(filePath)) {
|
|
215
215
|
const pageData = this.decompileFile(filePath);
|
|
216
216
|
if (!pageData) return null;
|
|
217
|
-
|
|
217
|
+
let content = pageData;
|
|
218
|
+
while (content && typeof content === "object" && content.data !== void 0) {
|
|
219
|
+
content = content.data;
|
|
220
|
+
}
|
|
221
|
+
return content;
|
|
218
222
|
}
|
|
219
223
|
return null;
|
|
220
224
|
}
|
|
@@ -180,7 +180,11 @@ var LocalCache = class {
|
|
|
180
180
|
if (fs.existsSync(filePath)) {
|
|
181
181
|
const pageData = this.decompileFile(filePath);
|
|
182
182
|
if (!pageData) return null;
|
|
183
|
-
|
|
183
|
+
let content = pageData;
|
|
184
|
+
while (content && typeof content === "object" && content.data !== void 0) {
|
|
185
|
+
content = content.data;
|
|
186
|
+
}
|
|
187
|
+
return content;
|
|
184
188
|
}
|
|
185
189
|
return null;
|
|
186
190
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -254,7 +254,11 @@ var init_local_cache_server = __esm({
|
|
|
254
254
|
if (import_fs.default.existsSync(filePath)) {
|
|
255
255
|
const pageData = this.decompileFile(filePath);
|
|
256
256
|
if (!pageData) return null;
|
|
257
|
-
|
|
257
|
+
let content = pageData;
|
|
258
|
+
while (content && typeof content === "object" && content.data !== void 0) {
|
|
259
|
+
content = content.data;
|
|
260
|
+
}
|
|
261
|
+
return content;
|
|
258
262
|
}
|
|
259
263
|
return null;
|
|
260
264
|
}
|
package/dist/index.js
CHANGED
|
@@ -232,7 +232,11 @@ var init_local_cache_server = __esm({
|
|
|
232
232
|
if (fs.existsSync(filePath)) {
|
|
233
233
|
const pageData = this.decompileFile(filePath);
|
|
234
234
|
if (!pageData) return null;
|
|
235
|
-
|
|
235
|
+
let content = pageData;
|
|
236
|
+
while (content && typeof content === "object" && content.data !== void 0) {
|
|
237
|
+
content = content.data;
|
|
238
|
+
}
|
|
239
|
+
return content;
|
|
236
240
|
}
|
|
237
241
|
return null;
|
|
238
242
|
}
|
|
@@ -158,7 +158,11 @@ var LocalCache = class {
|
|
|
158
158
|
if (_fs2.default.existsSync(filePath)) {
|
|
159
159
|
const pageData = this.decompileFile(filePath);
|
|
160
160
|
if (!pageData) return null;
|
|
161
|
-
|
|
161
|
+
let content = pageData;
|
|
162
|
+
while (content && typeof content === "object" && content.data !== void 0) {
|
|
163
|
+
content = content.data;
|
|
164
|
+
}
|
|
165
|
+
return content;
|
|
162
166
|
}
|
|
163
167
|
return null;
|
|
164
168
|
}
|
|
@@ -158,7 +158,11 @@ var LocalCache = class {
|
|
|
158
158
|
if (fs.existsSync(filePath)) {
|
|
159
159
|
const pageData = this.decompileFile(filePath);
|
|
160
160
|
if (!pageData) return null;
|
|
161
|
-
|
|
161
|
+
let content = pageData;
|
|
162
|
+
while (content && typeof content === "object" && content.data !== void 0) {
|
|
163
|
+
content = content.data;
|
|
164
|
+
}
|
|
165
|
+
return content;
|
|
162
166
|
}
|
|
163
167
|
return null;
|
|
164
168
|
}
|
package/dist/react.cjs
CHANGED
|
@@ -282,7 +282,7 @@ var LocalCacheProxy = class {
|
|
|
282
282
|
async getInstance() {
|
|
283
283
|
if (this.instance) return this.instance;
|
|
284
284
|
if (typeof window === "undefined") {
|
|
285
|
-
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("./local-cache-server-
|
|
285
|
+
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("./local-cache-server-SGSGWUCL.cjs")));
|
|
286
286
|
this.instance = new mod.LocalCache(this.cachePath);
|
|
287
287
|
} else {
|
|
288
288
|
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("./local-cache-client-IGAL7SZ6.cjs")));
|
package/dist/react.js
CHANGED
|
@@ -282,7 +282,7 @@ var LocalCacheProxy = class {
|
|
|
282
282
|
async getInstance() {
|
|
283
283
|
if (this.instance) return this.instance;
|
|
284
284
|
if (typeof window === "undefined") {
|
|
285
|
-
const mod = await import("./local-cache-server-
|
|
285
|
+
const mod = await import("./local-cache-server-VL4YNBME.js");
|
|
286
286
|
this.instance = new mod.LocalCache(this.cachePath);
|
|
287
287
|
} else {
|
|
288
288
|
const mod = await import("./local-cache-client-I6UYVJJV.js");
|