naystack 1.5.20 → 1.5.21

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.
@@ -312,6 +312,7 @@ var getPutRoute = (options) => async (req) => {
312
312
  // src/auth/email/server.tsx
313
313
  var import_client2 = require("naystack/auth/email/client");
314
314
  var import_headers3 = require("next/headers");
315
+ var import_react3 = __toESM(require("react"));
315
316
 
316
317
  // src/graphql/server.tsx
317
318
  var import_client = require("@apollo/client");
@@ -345,7 +346,7 @@ var { query: gqlQuery } = (0, import_client_integration_nextjs.registerApolloCli
345
346
 
346
347
  // src/auth/email/server.tsx
347
348
  function AuthFetch() {
348
- return /* @__PURE__ */ React.createElement(
349
+ return /* @__PURE__ */ import_react3.default.createElement(
349
350
  Injector,
350
351
  {
351
352
  fetch: async () => {
@@ -273,6 +273,7 @@ var getPutRoute = (options) => async (req) => {
273
273
  // src/auth/email/server.tsx
274
274
  import { AuthApply } from "naystack/auth/email/client";
275
275
  import { cookies as cookies3 } from "next/headers";
276
+ import React2 from "react";
276
277
 
277
278
  // src/graphql/server.tsx
278
279
  import {
@@ -282,14 +283,14 @@ import {
282
283
  } from "@apollo/client";
283
284
  import { registerApolloClient } from "@apollo/client-integration-nextjs";
284
285
  import { cookies as cookies2 } from "next/headers";
285
- import React2 from "react";
286
+ import React from "react";
286
287
  import { Suspense } from "react";
287
288
  function Injector({
288
289
  fetch: fetch2,
289
290
  Component,
290
291
  props
291
292
  }) {
292
- return /* @__PURE__ */ React2.createElement(Suspense, { fallback: /* @__PURE__ */ React2.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React2.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
293
+ return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
293
294
  }
294
295
  async function InjectorSuspensed({
295
296
  fetch: fetch2,
@@ -297,7 +298,7 @@ async function InjectorSuspensed({
297
298
  props
298
299
  }) {
299
300
  const data = await fetch2();
300
- return /* @__PURE__ */ React2.createElement(Component, { loading: false, ...props || {}, data });
301
+ return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
301
302
  }
302
303
  var { query: gqlQuery } = registerApolloClient(() => {
303
304
  return new ApolloClient({
@@ -310,7 +311,7 @@ var { query: gqlQuery } = registerApolloClient(() => {
310
311
 
311
312
  // src/auth/email/server.tsx
312
313
  function AuthFetch() {
313
- return /* @__PURE__ */ React.createElement(
314
+ return /* @__PURE__ */ React2.createElement(
314
315
  Injector,
315
316
  {
316
317
  fetch: async () => {
@@ -35,6 +35,7 @@ __export(server_exports, {
35
35
  module.exports = __toCommonJS(server_exports);
36
36
  var import_client2 = require("naystack/auth/email/client");
37
37
  var import_headers2 = require("next/headers");
38
+ var import_react3 = __toESM(require("react"));
38
39
 
39
40
  // src/graphql/server.tsx
40
41
  var import_client = require("@apollo/client");
@@ -119,7 +120,7 @@ var { query: gqlQuery } = (0, import_client_integration_nextjs.registerApolloCli
119
120
 
120
121
  // src/auth/email/server.tsx
121
122
  function AuthFetch() {
122
- return /* @__PURE__ */ React.createElement(
123
+ return /* @__PURE__ */ import_react3.default.createElement(
123
124
  Injector,
124
125
  {
125
126
  fetch: async () => {
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
1
+ import React__default from 'react';
2
2
 
3
- declare function AuthFetch(): React.JSX.Element;
3
+ declare function AuthFetch(): React__default.JSX.Element;
4
4
 
5
5
  export { AuthFetch as default };
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
1
+ import React__default from 'react';
2
2
 
3
- declare function AuthFetch(): React.JSX.Element;
3
+ declare function AuthFetch(): React__default.JSX.Element;
4
4
 
5
5
  export { AuthFetch as default };
@@ -1,6 +1,7 @@
1
1
  // src/auth/email/server.tsx
2
2
  import { AuthApply } from "naystack/auth/email/client";
3
3
  import { cookies as cookies2 } from "next/headers";
4
+ import React2 from "react";
4
5
 
5
6
  // src/graphql/server.tsx
6
7
  import {
@@ -10,7 +11,7 @@ import {
10
11
  } from "@apollo/client";
11
12
  import { registerApolloClient } from "@apollo/client-integration-nextjs";
12
13
  import { cookies } from "next/headers";
13
- import React2 from "react";
14
+ import React from "react";
14
15
  import { Suspense } from "react";
15
16
 
16
17
  // src/env.ts
@@ -68,7 +69,7 @@ function Injector({
68
69
  Component,
69
70
  props
70
71
  }) {
71
- return /* @__PURE__ */ React2.createElement(Suspense, { fallback: /* @__PURE__ */ React2.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React2.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
72
+ return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
72
73
  }
73
74
  async function InjectorSuspensed({
74
75
  fetch: fetch2,
@@ -76,7 +77,7 @@ async function InjectorSuspensed({
76
77
  props
77
78
  }) {
78
79
  const data = await fetch2();
79
- return /* @__PURE__ */ React2.createElement(Component, { loading: false, ...props || {}, data });
80
+ return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
80
81
  }
81
82
  var { query: gqlQuery } = registerApolloClient(() => {
82
83
  return new ApolloClient({
@@ -89,7 +90,7 @@ var { query: gqlQuery } = registerApolloClient(() => {
89
90
 
90
91
  // src/auth/email/server.tsx
91
92
  function AuthFetch() {
92
- return /* @__PURE__ */ React.createElement(
93
+ return /* @__PURE__ */ React2.createElement(
93
94
  Injector,
94
95
  {
95
96
  fetch: async () => {
@@ -328,6 +328,7 @@ var getPutRoute = (options) => async (req) => {
328
328
  // src/auth/email/server.tsx
329
329
  var import_client2 = require("naystack/auth/email/client");
330
330
  var import_headers3 = require("next/headers");
331
+ var import_react3 = __toESM(require("react"));
331
332
 
332
333
  // src/graphql/server.tsx
333
334
  var import_client = require("@apollo/client");
@@ -361,7 +362,7 @@ var { query: gqlQuery } = (0, import_client_integration_nextjs.registerApolloCli
361
362
 
362
363
  // src/auth/email/server.tsx
363
364
  function AuthFetch() {
364
- return /* @__PURE__ */ React.createElement(
365
+ return /* @__PURE__ */ import_react3.default.createElement(
365
366
  Injector,
366
367
  {
367
368
  fetch: async () => {
@@ -285,6 +285,7 @@ var getPutRoute = (options) => async (req) => {
285
285
  // src/auth/email/server.tsx
286
286
  import { AuthApply } from "naystack/auth/email/client";
287
287
  import { cookies as cookies3 } from "next/headers";
288
+ import React2 from "react";
288
289
 
289
290
  // src/graphql/server.tsx
290
291
  import {
@@ -294,14 +295,14 @@ import {
294
295
  } from "@apollo/client";
295
296
  import { registerApolloClient } from "@apollo/client-integration-nextjs";
296
297
  import { cookies as cookies2 } from "next/headers";
297
- import React2 from "react";
298
+ import React from "react";
298
299
  import { Suspense } from "react";
299
300
  function Injector({
300
301
  fetch: fetch2,
301
302
  Component,
302
303
  props
303
304
  }) {
304
- return /* @__PURE__ */ React2.createElement(Suspense, { fallback: /* @__PURE__ */ React2.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React2.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
305
+ return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(InjectorSuspensed, { Component, fetch: fetch2, props }));
305
306
  }
306
307
  async function InjectorSuspensed({
307
308
  fetch: fetch2,
@@ -309,7 +310,7 @@ async function InjectorSuspensed({
309
310
  props
310
311
  }) {
311
312
  const data = await fetch2();
312
- return /* @__PURE__ */ React2.createElement(Component, { loading: false, ...props || {}, data });
313
+ return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
313
314
  }
314
315
  var { query: gqlQuery } = registerApolloClient(() => {
315
316
  return new ApolloClient({
@@ -322,7 +323,7 @@ var { query: gqlQuery } = registerApolloClient(() => {
322
323
 
323
324
  // src/auth/email/server.tsx
324
325
  function AuthFetch() {
325
- return /* @__PURE__ */ React.createElement(
326
+ return /* @__PURE__ */ React2.createElement(
326
327
  Injector,
327
328
  {
328
329
  fetch: async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naystack",
3
- "version": "1.5.20",
3
+ "version": "1.5.21",
4
4
  "description": "A stack built with Next + GraphQL + S3 + Auth",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",