@strifeapp/astro 1.0.16 → 1.0.18
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 +10 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -274,6 +274,14 @@ function h(e) {
|
|
|
274
274
|
if (i === p)
|
|
275
275
|
return `
|
|
276
276
|
import { DocumentStore, AbstractJavaScriptMultiMapIndexCreationTask, IndexCreation } from "ravendb";
|
|
277
|
+
import https from 'https';
|
|
278
|
+
|
|
279
|
+
https.get(${l(((o = e.urls) == null ? void 0 : o[0]) || "")}, (res) => {
|
|
280
|
+
console.log('Test SSR fetch to RavenDB:', res.statusCode);
|
|
281
|
+
}).on('error', (e) => {
|
|
282
|
+
console.error('SSR network error to RavenDB:', e);
|
|
283
|
+
});
|
|
284
|
+
|
|
277
285
|
|
|
278
286
|
const authOptions = {
|
|
279
287
|
type: 'pfx',
|
|
@@ -285,12 +293,6 @@ function h(e) {
|
|
|
285
293
|
console.log('[vitePluginStrifeStore] Using database:', ${l(e.database)});
|
|
286
294
|
console.log('[vitePluginStrifeStore] Certificate length:', ${e.certificate ? e.certificate.length : 0});
|
|
287
295
|
|
|
288
|
-
https.get(${l(((o = e.urls) == null ? void 0 : o[0]) || "")}, (res) => {
|
|
289
|
-
console.log('Test fetch to RavenDB:', res.statusCode);
|
|
290
|
-
}).on('error', (e) => {
|
|
291
|
-
console.error('Network error to RavenDB:', e);
|
|
292
|
-
});
|
|
293
|
-
|
|
294
296
|
const store = new DocumentStore(
|
|
295
297
|
${l(e.urls ? e.urls : [])},
|
|
296
298
|
${l(e.database || "")},
|
|
@@ -346,7 +348,7 @@ function g(e, i) {
|
|
|
346
348
|
password: a || void 0
|
|
347
349
|
};
|
|
348
350
|
}
|
|
349
|
-
function
|
|
351
|
+
function v(e) {
|
|
350
352
|
return {
|
|
351
353
|
name: "@strife/astro",
|
|
352
354
|
hooks: {
|
|
@@ -386,5 +388,5 @@ Current values:
|
|
|
386
388
|
};
|
|
387
389
|
}
|
|
388
390
|
export {
|
|
389
|
-
|
|
391
|
+
v as default
|
|
390
392
|
};
|