naystack 1.7.29 → 1.7.30
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/auth/email/index.cjs.js +6 -15
- package/dist/auth/email/index.esm.js +6 -15
- package/dist/auth/email/next.cjs.js +6 -15
- package/dist/auth/email/next.esm.js +6 -15
- package/dist/auth/index.cjs.js +6 -15
- package/dist/auth/index.esm.js +6 -15
- package/dist/graphql/index.cjs.js +6 -15
- package/dist/graphql/index.esm.js +6 -15
- package/dist/graphql/server.cjs.js +6 -15
- package/dist/graphql/server.d.mts +1 -1
- package/dist/graphql/server.d.ts +1 -1
- package/dist/graphql/server.esm.js +6 -15
- package/package.json +1 -1
|
@@ -375,31 +375,22 @@ var import_headers2 = require("next/headers");
|
|
|
375
375
|
var import_server4 = require("next/server");
|
|
376
376
|
var import_react = __toESM(require("react"));
|
|
377
377
|
var import_react2 = require("react");
|
|
378
|
-
function Injector({
|
|
378
|
+
async function Injector({
|
|
379
379
|
fetch: fetch2,
|
|
380
380
|
Component,
|
|
381
381
|
props,
|
|
382
382
|
isStatic
|
|
383
383
|
}) {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
fetch: fetch2,
|
|
389
|
-
props,
|
|
390
|
-
isStatic
|
|
391
|
-
}
|
|
392
|
-
));
|
|
384
|
+
if (!isStatic) {
|
|
385
|
+
await (0, import_server4.connection)();
|
|
386
|
+
}
|
|
387
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react2.Suspense, { fallback: /* @__PURE__ */ import_react.default.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ import_react.default.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
|
|
393
388
|
}
|
|
394
389
|
async function InjectorSuspensed({
|
|
395
390
|
fetch: fetch2,
|
|
396
391
|
Component,
|
|
397
|
-
props
|
|
398
|
-
isStatic
|
|
392
|
+
props
|
|
399
393
|
}) {
|
|
400
|
-
if (!isStatic) {
|
|
401
|
-
await (0, import_server4.connection)();
|
|
402
|
-
}
|
|
403
394
|
const data = await fetch2();
|
|
404
395
|
return /* @__PURE__ */ import_react.default.createElement(Component, { loading: false, ...props || {}, data });
|
|
405
396
|
}
|
|
@@ -340,31 +340,22 @@ import { cookies as cookies2 } from "next/headers";
|
|
|
340
340
|
import { connection } from "next/server";
|
|
341
341
|
import React from "react";
|
|
342
342
|
import { Suspense } from "react";
|
|
343
|
-
function Injector({
|
|
343
|
+
async function Injector({
|
|
344
344
|
fetch: fetch2,
|
|
345
345
|
Component,
|
|
346
346
|
props,
|
|
347
347
|
isStatic
|
|
348
348
|
}) {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
fetch: fetch2,
|
|
354
|
-
props,
|
|
355
|
-
isStatic
|
|
356
|
-
}
|
|
357
|
-
));
|
|
349
|
+
if (!isStatic) {
|
|
350
|
+
await connection();
|
|
351
|
+
}
|
|
352
|
+
return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
|
|
358
353
|
}
|
|
359
354
|
async function InjectorSuspensed({
|
|
360
355
|
fetch: fetch2,
|
|
361
356
|
Component,
|
|
362
|
-
props
|
|
363
|
-
isStatic
|
|
357
|
+
props
|
|
364
358
|
}) {
|
|
365
|
-
if (!isStatic) {
|
|
366
|
-
await connection();
|
|
367
|
-
}
|
|
368
359
|
const data = await fetch2();
|
|
369
360
|
return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
|
|
370
361
|
}
|
|
@@ -98,31 +98,22 @@ var import_headers = require("next/headers");
|
|
|
98
98
|
var import_server = require("next/server");
|
|
99
99
|
var import_react = __toESM(require("react"));
|
|
100
100
|
var import_react2 = require("react");
|
|
101
|
-
function Injector({
|
|
101
|
+
async function Injector({
|
|
102
102
|
fetch: fetch2,
|
|
103
103
|
Component,
|
|
104
104
|
props,
|
|
105
105
|
isStatic
|
|
106
106
|
}) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
fetch: fetch2,
|
|
112
|
-
props,
|
|
113
|
-
isStatic
|
|
114
|
-
}
|
|
115
|
-
));
|
|
107
|
+
if (!isStatic) {
|
|
108
|
+
await (0, import_server.connection)();
|
|
109
|
+
}
|
|
110
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react2.Suspense, { fallback: /* @__PURE__ */ import_react.default.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ import_react.default.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
|
|
116
111
|
}
|
|
117
112
|
async function InjectorSuspensed({
|
|
118
113
|
fetch: fetch2,
|
|
119
114
|
Component,
|
|
120
|
-
props
|
|
121
|
-
isStatic
|
|
115
|
+
props
|
|
122
116
|
}) {
|
|
123
|
-
if (!isStatic) {
|
|
124
|
-
await (0, import_server.connection)();
|
|
125
|
-
}
|
|
126
117
|
const data = await fetch2();
|
|
127
118
|
return /* @__PURE__ */ import_react.default.createElement(Component, { loading: false, ...props || {}, data });
|
|
128
119
|
}
|
|
@@ -67,31 +67,22 @@ import { cookies } from "next/headers";
|
|
|
67
67
|
import { connection } from "next/server";
|
|
68
68
|
import React from "react";
|
|
69
69
|
import { Suspense } from "react";
|
|
70
|
-
function Injector({
|
|
70
|
+
async function Injector({
|
|
71
71
|
fetch: fetch2,
|
|
72
72
|
Component,
|
|
73
73
|
props,
|
|
74
74
|
isStatic
|
|
75
75
|
}) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
fetch: fetch2,
|
|
81
|
-
props,
|
|
82
|
-
isStatic
|
|
83
|
-
}
|
|
84
|
-
));
|
|
76
|
+
if (!isStatic) {
|
|
77
|
+
await connection();
|
|
78
|
+
}
|
|
79
|
+
return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
|
|
85
80
|
}
|
|
86
81
|
async function InjectorSuspensed({
|
|
87
82
|
fetch: fetch2,
|
|
88
83
|
Component,
|
|
89
|
-
props
|
|
90
|
-
isStatic
|
|
84
|
+
props
|
|
91
85
|
}) {
|
|
92
|
-
if (!isStatic) {
|
|
93
|
-
await connection();
|
|
94
|
-
}
|
|
95
86
|
const data = await fetch2();
|
|
96
87
|
return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
|
|
97
88
|
}
|
package/dist/auth/index.cjs.js
CHANGED
|
@@ -393,31 +393,22 @@ var import_headers2 = require("next/headers");
|
|
|
393
393
|
var import_server4 = require("next/server");
|
|
394
394
|
var import_react = __toESM(require("react"));
|
|
395
395
|
var import_react2 = require("react");
|
|
396
|
-
function Injector({
|
|
396
|
+
async function Injector({
|
|
397
397
|
fetch: fetch2,
|
|
398
398
|
Component,
|
|
399
399
|
props,
|
|
400
400
|
isStatic
|
|
401
401
|
}) {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
fetch: fetch2,
|
|
407
|
-
props,
|
|
408
|
-
isStatic
|
|
409
|
-
}
|
|
410
|
-
));
|
|
402
|
+
if (!isStatic) {
|
|
403
|
+
await (0, import_server4.connection)();
|
|
404
|
+
}
|
|
405
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react2.Suspense, { fallback: /* @__PURE__ */ import_react.default.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ import_react.default.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
|
|
411
406
|
}
|
|
412
407
|
async function InjectorSuspensed({
|
|
413
408
|
fetch: fetch2,
|
|
414
409
|
Component,
|
|
415
|
-
props
|
|
416
|
-
isStatic
|
|
410
|
+
props
|
|
417
411
|
}) {
|
|
418
|
-
if (!isStatic) {
|
|
419
|
-
await (0, import_server4.connection)();
|
|
420
|
-
}
|
|
421
412
|
const data = await fetch2();
|
|
422
413
|
return /* @__PURE__ */ import_react.default.createElement(Component, { loading: false, ...props || {}, data });
|
|
423
414
|
}
|
package/dist/auth/index.esm.js
CHANGED
|
@@ -352,31 +352,22 @@ import { cookies as cookies2 } from "next/headers";
|
|
|
352
352
|
import { connection } from "next/server";
|
|
353
353
|
import React from "react";
|
|
354
354
|
import { Suspense } from "react";
|
|
355
|
-
function Injector({
|
|
355
|
+
async function Injector({
|
|
356
356
|
fetch: fetch2,
|
|
357
357
|
Component,
|
|
358
358
|
props,
|
|
359
359
|
isStatic
|
|
360
360
|
}) {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
fetch: fetch2,
|
|
366
|
-
props,
|
|
367
|
-
isStatic
|
|
368
|
-
}
|
|
369
|
-
));
|
|
361
|
+
if (!isStatic) {
|
|
362
|
+
await connection();
|
|
363
|
+
}
|
|
364
|
+
return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
|
|
370
365
|
}
|
|
371
366
|
async function InjectorSuspensed({
|
|
372
367
|
fetch: fetch2,
|
|
373
368
|
Component,
|
|
374
|
-
props
|
|
375
|
-
isStatic
|
|
369
|
+
props
|
|
376
370
|
}) {
|
|
377
|
-
if (!isStatic) {
|
|
378
|
-
await connection();
|
|
379
|
-
}
|
|
380
371
|
const data = await fetch2();
|
|
381
372
|
return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
|
|
382
373
|
}
|
|
@@ -941,31 +941,22 @@ var import_headers3 = require("next/headers");
|
|
|
941
941
|
var import_server6 = require("next/server");
|
|
942
942
|
var import_react2 = __toESM(require("react"));
|
|
943
943
|
var import_react3 = require("react");
|
|
944
|
-
function Injector({
|
|
944
|
+
async function Injector({
|
|
945
945
|
fetch: fetch2,
|
|
946
946
|
Component,
|
|
947
947
|
props,
|
|
948
948
|
isStatic
|
|
949
949
|
}) {
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
fetch: fetch2,
|
|
955
|
-
props,
|
|
956
|
-
isStatic
|
|
957
|
-
}
|
|
958
|
-
));
|
|
950
|
+
if (!isStatic) {
|
|
951
|
+
await (0, import_server6.connection)();
|
|
952
|
+
}
|
|
953
|
+
return /* @__PURE__ */ import_react2.default.createElement(import_react3.Suspense, { fallback: /* @__PURE__ */ import_react2.default.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ import_react2.default.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
|
|
959
954
|
}
|
|
960
955
|
async function InjectorSuspensed({
|
|
961
956
|
fetch: fetch2,
|
|
962
957
|
Component,
|
|
963
|
-
props
|
|
964
|
-
isStatic
|
|
958
|
+
props
|
|
965
959
|
}) {
|
|
966
|
-
if (!isStatic) {
|
|
967
|
-
await (0, import_server6.connection)();
|
|
968
|
-
}
|
|
969
960
|
const data = await fetch2();
|
|
970
961
|
return /* @__PURE__ */ import_react2.default.createElement(Component, { loading: false, ...props || {}, data });
|
|
971
962
|
}
|
|
@@ -939,31 +939,22 @@ import { cookies as cookies3 } from "next/headers";
|
|
|
939
939
|
import { connection } from "next/server";
|
|
940
940
|
import React from "react";
|
|
941
941
|
import { Suspense } from "react";
|
|
942
|
-
function Injector({
|
|
942
|
+
async function Injector({
|
|
943
943
|
fetch: fetch2,
|
|
944
944
|
Component,
|
|
945
945
|
props,
|
|
946
946
|
isStatic
|
|
947
947
|
}) {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
fetch: fetch2,
|
|
953
|
-
props,
|
|
954
|
-
isStatic
|
|
955
|
-
}
|
|
956
|
-
));
|
|
948
|
+
if (!isStatic) {
|
|
949
|
+
await connection();
|
|
950
|
+
}
|
|
951
|
+
return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
|
|
957
952
|
}
|
|
958
953
|
async function InjectorSuspensed({
|
|
959
954
|
fetch: fetch2,
|
|
960
955
|
Component,
|
|
961
|
-
props
|
|
962
|
-
isStatic
|
|
956
|
+
props
|
|
963
957
|
}) {
|
|
964
|
-
if (!isStatic) {
|
|
965
|
-
await connection();
|
|
966
|
-
}
|
|
967
958
|
const data = await fetch2();
|
|
968
959
|
return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
|
|
969
960
|
}
|
|
@@ -92,31 +92,22 @@ function getEnv(key, skipCheck) {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
// src/graphql/server.tsx
|
|
95
|
-
function Injector({
|
|
95
|
+
async function Injector({
|
|
96
96
|
fetch,
|
|
97
97
|
Component,
|
|
98
98
|
props,
|
|
99
99
|
isStatic
|
|
100
100
|
}) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
fetch,
|
|
106
|
-
props,
|
|
107
|
-
isStatic
|
|
108
|
-
}
|
|
109
|
-
));
|
|
101
|
+
if (!isStatic) {
|
|
102
|
+
await (0, import_server.connection)();
|
|
103
|
+
}
|
|
104
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react2.Suspense, { fallback: /* @__PURE__ */ import_react.default.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ import_react.default.createElement(InjectorSuspensed, { Component, fetch, props }));
|
|
110
105
|
}
|
|
111
106
|
async function InjectorSuspensed({
|
|
112
107
|
fetch,
|
|
113
108
|
Component,
|
|
114
|
-
props
|
|
115
|
-
isStatic
|
|
109
|
+
props
|
|
116
110
|
}) {
|
|
117
|
-
if (!isStatic) {
|
|
118
|
-
await (0, import_server.connection)();
|
|
119
|
-
}
|
|
120
111
|
const data = await fetch();
|
|
121
112
|
return /* @__PURE__ */ import_react.default.createElement(Component, { loading: false, ...props || {}, data });
|
|
122
113
|
}
|
|
@@ -78,7 +78,7 @@ declare function Injector<T, Y>({ fetch, Component, props, isStatic, }: {
|
|
|
78
78
|
loading: boolean;
|
|
79
79
|
} & Y>;
|
|
80
80
|
isStatic?: boolean;
|
|
81
|
-
} & ComponentProps<Y>): React__default.JSX.Element
|
|
81
|
+
} & ComponentProps<Y>): Promise<React__default.JSX.Element>;
|
|
82
82
|
/**
|
|
83
83
|
* Runs a raw GraphQL query on the server using the registered Apollo client.
|
|
84
84
|
* Cookies are forwarded automatically so the backend can identify the user.
|
package/dist/graphql/server.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ declare function Injector<T, Y>({ fetch, Component, props, isStatic, }: {
|
|
|
78
78
|
loading: boolean;
|
|
79
79
|
} & Y>;
|
|
80
80
|
isStatic?: boolean;
|
|
81
|
-
} & ComponentProps<Y>): React__default.JSX.Element
|
|
81
|
+
} & ComponentProps<Y>): Promise<React__default.JSX.Element>;
|
|
82
82
|
/**
|
|
83
83
|
* Runs a raw GraphQL query on the server using the registered Apollo client.
|
|
84
84
|
* Cookies are forwarded automatically so the backend can identify the user.
|
|
@@ -61,31 +61,22 @@ function getEnv(key, skipCheck) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
// src/graphql/server.tsx
|
|
64
|
-
function Injector({
|
|
64
|
+
async function Injector({
|
|
65
65
|
fetch,
|
|
66
66
|
Component,
|
|
67
67
|
props,
|
|
68
68
|
isStatic
|
|
69
69
|
}) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
fetch,
|
|
75
|
-
props,
|
|
76
|
-
isStatic
|
|
77
|
-
}
|
|
78
|
-
));
|
|
70
|
+
if (!isStatic) {
|
|
71
|
+
await connection();
|
|
72
|
+
}
|
|
73
|
+
return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(InjectorSuspensed, { Component, fetch, props }));
|
|
79
74
|
}
|
|
80
75
|
async function InjectorSuspensed({
|
|
81
76
|
fetch,
|
|
82
77
|
Component,
|
|
83
|
-
props
|
|
84
|
-
isStatic
|
|
78
|
+
props
|
|
85
79
|
}) {
|
|
86
|
-
if (!isStatic) {
|
|
87
|
-
await connection();
|
|
88
|
-
}
|
|
89
80
|
const data = await fetch();
|
|
90
81
|
return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
|
|
91
82
|
}
|