@cyberskill/shared 1.201.0 → 1.202.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.
Files changed (51) hide show
  1. package/dist/magic-string.es-D_iPNVbJ.cjs +10 -0
  2. package/dist/magic-string.es-cELbkQ5L.js +901 -0
  3. package/dist/{path.constant-Y6ImOuVK.cjs → path.constant-CPGOAxEp.cjs} +2 -2
  4. package/dist/{path.constant-CFKXX6cG.js → path.constant-DJq0jtD0.js} +63 -64
  5. package/dist/src/config/vitest/vitest.unit.cjs +1 -1
  6. package/dist/src/config/vitest/vitest.unit.js +1 -1
  7. package/dist/src/config/vitest/vitest.unit.setup.cjs +1 -1
  8. package/dist/src/config/vitest/vitest.unit.setup.js +1 -1
  9. package/dist/src/node/cli/cli.util.cjs +1 -1
  10. package/dist/src/node/cli/cli.util.js +19 -19
  11. package/dist/src/node/command/command.util.cjs +1 -1
  12. package/dist/src/node/command/command.util.js +1 -1
  13. package/dist/src/node/command/index.cjs +1 -1
  14. package/dist/src/node/command/index.js +1 -1
  15. package/dist/src/node/express/express.util.cjs +1 -1
  16. package/dist/src/node/express/express.util.js +43 -42
  17. package/dist/src/node/mongo/mongo.util.cjs +1 -1
  18. package/dist/src/node/mongo/mongo.util.js +1 -1
  19. package/dist/src/node/package/index.cjs +1 -1
  20. package/dist/src/node/package/index.js +1 -1
  21. package/dist/src/node/package/package.util.cjs +1 -1
  22. package/dist/src/node/package/package.util.js +1 -1
  23. package/dist/src/node/path/index.cjs +1 -1
  24. package/dist/src/node/path/index.js +20 -21
  25. package/dist/src/node/path/path.constant.cjs +1 -1
  26. package/dist/src/node/path/path.constant.d.ts +0 -1
  27. package/dist/src/node/path/path.constant.js +25 -26
  28. package/dist/src/node/upload/upload.util.cjs +1 -1
  29. package/dist/src/node/upload/upload.util.js +1 -1
  30. package/dist/src/react/apollo-client/apollo-client.util.cjs +1 -1
  31. package/dist/src/react/apollo-client/apollo-client.util.js +29 -29
  32. package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.component.cjs +1 -0
  33. package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.component.d.ts +3 -0
  34. package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.component.js +20 -0
  35. package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs +1 -0
  36. package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts +6 -0
  37. package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js +6 -0
  38. package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.cjs +1 -0
  39. package/dist/src/react/apollo-client-nextjs/{apollo-client.util.d.ts → apollo-client-nextjs.util.d.ts} +1 -1
  40. package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.js +24 -0
  41. package/dist/src/react/apollo-client-nextjs/index.cjs +1 -1
  42. package/dist/src/react/apollo-client-nextjs/index.d.ts +2 -2
  43. package/dist/src/react/apollo-client-nextjs/index.js +4 -4
  44. package/package.json +9 -5
  45. package/dist/magic-string.es-CyLHbrL2.js +0 -871
  46. package/dist/magic-string.es-hjygV5wN.cjs +0 -10
  47. package/dist/src/react/apollo-client-nextjs/apollo-client.component.cjs +0 -1
  48. package/dist/src/react/apollo-client-nextjs/apollo-client.component.d.ts +0 -3
  49. package/dist/src/react/apollo-client-nextjs/apollo-client.component.js +0 -33
  50. package/dist/src/react/apollo-client-nextjs/apollo-client.util.cjs +0 -1
  51. package/dist/src/react/apollo-client-nextjs/apollo-client.util.js +0 -31
@@ -1 +1 @@
1
- "use strict";var N=Object.defineProperty;var w=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var d=(t,e,n)=>e in t?N(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T=(t,e)=>{for(var n in e||(e={}))R.call(e,n)&&d(t,n,e[n]);if(w)for(var n of w(e))G.call(e,n)&&d(t,n,e[n]);return t};var U=(t,e,n)=>d(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("@apollo/client/core/core.cjs"),m=require("@apollo/client/link/core/core.cjs"),P=require("@apollo/client/link/error/error.cjs"),S=require("@apollo/client/link/http/http.cjs"),H=require("@apollo/client/link/remove-typename/remove-typename.cjs"),I=require("@apollo/client/link/subscriptions/subscriptions.cjs"),x=require("@apollo/client/utilities/utilities.cjs"),F=require("graphql-ws"),q=require("react");require("../apollo-error/apollo-error.context.cjs");const M=require("../apollo-error/apollo-error.util.cjs"),c=require("../log/log.util.cjs"),h=require("react-hot-toast"),C=require("./apollo-client.constant.cjs");class D extends m.ApolloLink{constructor(){super(...arguments);U(this,"count",0)}request(n,r){const g=Date.now();return this.count+=1,r(n).map(_=>{const p=Date.now()-g,a=n.operationName||"Unnamed";return c.log.info(`[Apollo] #${this.count}: ${a} (${p}ms)`),_})}}function j(t){const{uri:e,wsUrl:n,customLinks:r}=t,g=new D,_=P.onError(({graphQLErrors:o,networkError:i,protocolErrors:s,operation:f})=>{var b,y;const v=(f==null?void 0:f.operationName)||"Unknown";if(o&&o.forEach(({message:l,locations:u,path:L})=>{c.log.error(`[GraphQL error] ${v}: ${l}, Location: ${JSON.stringify(u,null,4)}, Path: ${L}`)}),s&&s.forEach(({message:l,extensions:u})=>{c.log.error(`[Protocol error]: ${l}, Extensions: ${JSON.stringify(u,null,4)}`)}),i&&c.log.error(`[Network error]: ${i}`),o||s||i){const l=((b=o==null?void 0:o[0])==null?void 0:b.message)||((y=s==null?void 0:s[0])==null?void 0:y.message)||(i==null?void 0:i.message)||"Unexpected error",u=new k.ApolloError({graphQLErrors:o||[],protocolErrors:s||[],clientErrors:[],networkError:i||null,errorMessage:l,extraInfo:{operation:f}});h.toast.error(L=>q.createElement(q.Fragment,null,l," ",q.createElement("button",{type:"button",onClick:()=>{setTimeout(()=>{M.showGlobalApolloError(u)},0),h.toast.dismiss(L.id)}},"Show Details")))}}),p=H.removeTypenameFromVariables();e||c.log.warn(`[Apollo] No GraphQL URI provided — using "${C.GRAPHQL_URI_DEFAULT}" as default`);const a=new S.HttpLink({uri:e!=null?e:C.GRAPHQL_URI_DEFAULT,credentials:"include"}),A=n?new I.GraphQLWsLink(F.createClient({url:n})):m.ApolloLink.empty(),$=A instanceof m.ApolloLink?m.split(({query:o})=>{const i=x.getMainDefinition(o);return i.kind==="OperationDefinition"&&i.operation==="subscription"},A,a):a;return $===a&&n&&c.log.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."),[g,_,p,...r!=null?r:[],$]}function O(t={}){const e=m.from(j(t));return new k.ApolloClient(T({link:e,cache:new k.InMemoryCache},t))}exports.DevLoggerLink=D;exports.createApolloLinks=j;exports.getClient=O;
1
+ "use strict";var N=Object.defineProperty;var h=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var d=(t,e,n)=>e in t?N(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,w=(t,e)=>{for(var n in e||(e={}))R.call(e,n)&&d(t,n,e[n]);if(h)for(var n of h(e))x.call(e,n)&&d(t,n,e[n]);return t};var T=(t,e,n)=>d(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("@apollo/client/core/core.cjs"),m=require("@apollo/client/link/core/core.cjs"),G=require("@apollo/client/link/error/error.cjs"),P=require("@apollo/client/link/http/http.cjs"),S=require("@apollo/client/link/remove-typename/remove-typename.cjs"),H=require("@apollo/client/link/subscriptions/subscriptions.cjs"),I=require("@apollo/client/utilities/utilities.cjs"),F=require("graphql-ws"),k=require("react"),M=require("../apollo-error/apollo-error.util.cjs"),c=require("../log/log.util.cjs"),U=require("react-hot-toast"),v=require("./apollo-client.constant.cjs");class C extends m.ApolloLink{constructor(){super(...arguments);T(this,"count",0)}request(n,r){const g=Date.now();return this.count+=1,r(n).map(_=>{const p=Date.now()-g,a=n.operationName||"Unnamed";return c.log.info(`[Apollo] #${this.count}: ${a} (${p}ms)`),_})}}function D(t){const{uri:e,wsUrl:n,customLinks:r}=t,g=new C,_=G.onError(({graphQLErrors:o,networkError:i,protocolErrors:s,operation:f})=>{var $,y;const j=(f==null?void 0:f.operationName)||"Unknown";if(o&&o.forEach(({message:l,locations:u,path:L})=>{c.log.error(`[GraphQL error] ${j}: ${l}, Location: ${JSON.stringify(u,null,4)}, Path: ${L}`)}),s&&s.forEach(({message:l,extensions:u})=>{c.log.error(`[Protocol error]: ${l}, Extensions: ${JSON.stringify(u,null,4)}`)}),i&&c.log.error(`[Network error]: ${i}`),o||s||i){const l=(($=o==null?void 0:o[0])==null?void 0:$.message)||((y=s==null?void 0:s[0])==null?void 0:y.message)||(i==null?void 0:i.message)||"Unexpected error",u=new q.ApolloError({graphQLErrors:o||[],protocolErrors:s||[],clientErrors:[],networkError:i||null,errorMessage:l,extraInfo:{operation:f}});U.toast.error(L=>k.createElement(k.Fragment,null,l," ",k.createElement("button",{type:"button",className:"text-blue-500 hover:text-blue-700",onClick:()=>{setTimeout(()=>{M.showGlobalApolloError(u)},0),U.toast.dismiss(L.id)}},"Show Details")))}}),p=S.removeTypenameFromVariables();e||c.log.warn(`[Apollo] No GraphQL URI provided — using "${v.GRAPHQL_URI_DEFAULT}" as default`);const a=new P.HttpLink({uri:e!=null?e:v.GRAPHQL_URI_DEFAULT,credentials:"include"}),A=n?new H.GraphQLWsLink(F.createClient({url:n})):m.ApolloLink.empty(),b=A instanceof m.ApolloLink?m.split(({query:o})=>{const i=I.getMainDefinition(o);return i.kind==="OperationDefinition"&&i.operation==="subscription"},A,a):a;return b===a&&n&&c.log.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."),[g,_,p,...r!=null?r:[],b]}function O(t={}){const e=m.from(D(t));return new q.ApolloClient(w({link:e,cache:new q.InMemoryCache},t))}exports.DevLoggerLink=C;exports.createApolloLinks=D;exports.getClient=O;
@@ -1,17 +1,17 @@
1
- var v = Object.defineProperty;
2
- var U = Object.getOwnPropertySymbols;
3
- var x = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
4
- var k = (t, e, n) => e in t ? v(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, h = (t, e) => {
1
+ var C = Object.defineProperty;
2
+ var y = Object.getOwnPropertySymbols;
3
+ var T = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
4
+ var k = (t, e, n) => e in t ? C(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, N = (t, e) => {
5
5
  for (var n in e || (e = {}))
6
- x.call(e, n) && k(t, n, e[n]);
7
- if (U)
8
- for (var n of U(e))
6
+ T.call(e, n) && k(t, n, e[n]);
7
+ if (y)
8
+ for (var n of y(e))
9
9
  G.call(e, n) && k(t, n, e[n]);
10
10
  return t;
11
11
  };
12
- var D = (t, e, n) => k(t, typeof e != "symbol" ? e + "" : e, n);
12
+ var U = (t, e, n) => k(t, typeof e != "symbol" ? e + "" : e, n);
13
13
  import { ApolloError as R, ApolloClient as I, InMemoryCache as P } from "@apollo/client/core/core.cjs";
14
- import { ApolloLink as g, split as S, from as _ } from "@apollo/client/link/core/core.cjs";
14
+ import { ApolloLink as b, split as S, from as _ } from "@apollo/client/link/core/core.cjs";
15
15
  import { onError as F } from "@apollo/client/link/error/error.cjs";
16
16
  import { HttpLink as H } from "@apollo/client/link/http/http.cjs";
17
17
  import { removeTypenameFromVariables as M } from "@apollo/client/link/remove-typename/remove-typename.cjs";
@@ -19,15 +19,14 @@ import { GraphQLWsLink as O } from "@apollo/client/link/subscriptions/subscripti
19
19
  import { getMainDefinition as J } from "@apollo/client/utilities/utilities.cjs";
20
20
  import { createClient as W } from "graphql-ws";
21
21
  import $ from "react";
22
- import "../apollo-error/apollo-error.context.js";
23
22
  import { showGlobalApolloError as q } from "../apollo-error/apollo-error.util.js";
24
23
  import { log as l } from "../log/log.util.js";
25
- import { toast as N } from "react-hot-toast";
26
- import { GRAPHQL_URI_DEFAULT as C } from "./apollo-client.constant.js";
27
- class V extends g {
24
+ import { toast as x } from "react-hot-toast";
25
+ import { GRAPHQL_URI_DEFAULT as D } from "./apollo-client.constant.js";
26
+ class V extends b {
28
27
  constructor() {
29
28
  super(...arguments);
30
- D(this, "count", 0);
29
+ U(this, "count", 0);
31
30
  }
32
31
  request(n, a) {
33
32
  const u = Date.now();
@@ -39,18 +38,18 @@ class V extends g {
39
38
  }
40
39
  function j(t) {
41
40
  const { uri: e, wsUrl: n, customLinks: a } = t, u = new V(), p = F(({ graphQLErrors: o, networkError: i, protocolErrors: m, operation: r }) => {
42
- var b, y;
43
- const T = (r == null ? void 0 : r.operationName) || "Unknown";
41
+ var A, h;
42
+ const v = (r == null ? void 0 : r.operationName) || "Unknown";
44
43
  if (o && o.forEach(({ message: s, locations: f, path: L }) => {
45
44
  l.error(
46
- `[GraphQL error] ${T}: ${s}, Location: ${JSON.stringify(f, null, 4)}, Path: ${L}`
45
+ `[GraphQL error] ${v}: ${s}, Location: ${JSON.stringify(f, null, 4)}, Path: ${L}`
47
46
  );
48
47
  }), m && m.forEach(({ message: s, extensions: f }) => {
49
48
  l.error(
50
49
  `[Protocol error]: ${s}, Extensions: ${JSON.stringify(f, null, 4)}`
51
50
  );
52
51
  }), i && l.error(`[Network error]: ${i}`), o || m || i) {
53
- const s = ((b = o == null ? void 0 : o[0]) == null ? void 0 : b.message) || ((y = m == null ? void 0 : m[0]) == null ? void 0 : y.message) || (i == null ? void 0 : i.message) || "Unexpected error", f = new R({
52
+ const s = ((A = o == null ? void 0 : o[0]) == null ? void 0 : A.message) || ((h = m == null ? void 0 : m[0]) == null ? void 0 : h.message) || (i == null ? void 0 : i.message) || "Unexpected error", f = new R({
54
53
  graphQLErrors: o || [],
55
54
  protocolErrors: m || [],
56
55
  clientErrors: [],
@@ -60,33 +59,34 @@ function j(t) {
60
59
  operation: r
61
60
  }
62
61
  });
63
- N.error((L) => /* @__PURE__ */ $.createElement($.Fragment, null, s, " ", /* @__PURE__ */ $.createElement(
62
+ x.error((L) => /* @__PURE__ */ $.createElement($.Fragment, null, s, " ", /* @__PURE__ */ $.createElement(
64
63
  "button",
65
64
  {
66
65
  type: "button",
66
+ className: "text-blue-500 hover:text-blue-700",
67
67
  onClick: () => {
68
68
  setTimeout(() => {
69
69
  q(f);
70
- }, 0), N.dismiss(L.id);
70
+ }, 0), x.dismiss(L.id);
71
71
  }
72
72
  },
73
73
  "Show Details"
74
74
  )));
75
75
  }
76
76
  }), d = M();
77
- e || l.warn(`[Apollo] No GraphQL URI provided — using "${C}" as default`);
77
+ e || l.warn(`[Apollo] No GraphQL URI provided — using "${D}" as default`);
78
78
  const c = new H({
79
- uri: e != null ? e : C,
79
+ uri: e != null ? e : D,
80
80
  credentials: "include"
81
- }), w = n ? new O(W({ url: n })) : g.empty(), A = w instanceof g ? S(
81
+ }), g = n ? new O(W({ url: n })) : b.empty(), w = g instanceof b ? S(
82
82
  ({ query: o }) => {
83
83
  const i = J(o);
84
84
  return i.kind === "OperationDefinition" && i.operation === "subscription";
85
85
  },
86
- w,
86
+ g,
87
87
  c
88
88
  ) : c;
89
- return A === c && n && l.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."), [
89
+ return w === c && n && l.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."), [
90
90
  u,
91
91
  // 🪵 custom logger
92
92
  p,
@@ -95,13 +95,13 @@ function j(t) {
95
95
  // 🧼 cleans up __typename
96
96
  ...a != null ? a : [],
97
97
  // 🔗 custom links
98
- A
98
+ w
99
99
  // 📡 HTTP vs WS routing
100
100
  ];
101
101
  }
102
- function le(t = {}) {
102
+ function se(t = {}) {
103
103
  const e = _(j(t));
104
- return new I(h({
104
+ return new I(N({
105
105
  link: e,
106
106
  cache: new P()
107
107
  }, t));
@@ -109,5 +109,5 @@ function le(t = {}) {
109
109
  export {
110
110
  V as DevLoggerLink,
111
111
  j as createApolloLinks,
112
- le as getClient
112
+ se as getClient
113
113
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@apollo/client-integration-nextjs"),e=require("react"),n=require("../apollo-error/apollo-error.component.cjs");require("../apollo-error/apollo-error.context.cjs");const c=require("../apollo-error/apollo-error.provider.cjs"),i=require("react-hot-toast"),a=require("./apollo-client-nextjs.util.cjs");function p({options:r,children:o}){const t=e.useMemo(()=>()=>a.getClient(r||{}),[r]);return e.createElement(e.Fragment,null,e.createElement(c.ApolloErrorProvider,null,e.createElement(l.ApolloNextAppProvider,{makeClient:t},o),e.createElement(n.ApolloErrorComponent,null)),e.createElement(i.Toaster,{position:"top-right"}))}exports.ApolloProvider=p;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { I_ApolloProviderProps } from '../apollo-client/index.js';
3
+ export declare function ApolloProvider({ options, children, }: I_ApolloProviderProps): React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { ApolloNextAppProvider as l } from "@apollo/client-integration-nextjs";
2
+ import e, { useMemo as m } from "react";
3
+ import { ApolloErrorComponent as n } from "../apollo-error/apollo-error.component.js";
4
+ import "../apollo-error/apollo-error.context.js";
5
+ import { ApolloErrorProvider as p } from "../apollo-error/apollo-error.provider.js";
6
+ import { Toaster as i } from "react-hot-toast";
7
+ import { getClient as a } from "./apollo-client-nextjs.util.js";
8
+ function s({
9
+ options: r,
10
+ children: o
11
+ }) {
12
+ const t = m(
13
+ () => () => a(r || {}),
14
+ [r]
15
+ );
16
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement(l, { makeClient: t }, o), /* @__PURE__ */ e.createElement(n, null)), /* @__PURE__ */ e.createElement(i, { position: "top-right" }));
17
+ }
18
+ export {
19
+ s as ApolloProvider
20
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@apollo/client-integration-nextjs"),l=require("./apollo-client-nextjs.util.cjs"),i=(e={})=>t.registerApolloClient(()=>l.getClient(e));exports.makeClient=i;
@@ -0,0 +1,6 @@
1
+ import { I_ApolloOptions } from '../apollo-client/index.js';
2
+ export declare const makeClient: (options?: I_ApolloOptions) => {
3
+ getClient: () => import('@apollo/client-integration-nextjs').ApolloClient<unknown>;
4
+ query: <T = any, TVariables extends import('@apollo/client').OperationVariables = import('@apollo/client').OperationVariables>(options: import('@apollo/client').QueryOptions<TVariables, T>) => Promise<import('@apollo/client').ApolloQueryResult<import('@apollo/client').MaybeMasked<T>>>;
5
+ PreloadQuery: import('@apollo/client-integration-nextjs').PreloadQueryComponent;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { registerApolloClient as e } from "@apollo/client-integration-nextjs";
2
+ import { getClient as o } from "./apollo-client-nextjs.util.js";
3
+ const l = (t = {}) => e(() => o(t));
4
+ export {
5
+ l as makeClient
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";var i=Object.defineProperty;var l=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var o=(t,e,n)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,r=(t,e)=>{for(var n in e||(e={}))a.call(e,n)&&o(t,n,e[n]);if(l)for(var n of l(e))s.call(e,n)&&o(t,n,e[n]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@apollo/client-integration-nextjs"),u=require("@apollo/client/link/core/core.cjs"),C=require("../apollo-client/apollo-client.util.cjs");function g(t={}){const e=u.from(C.createApolloLinks(t));return new c.ApolloClient(r({link:e,cache:new c.InMemoryCache},t))}exports.getClient=g;
@@ -1,3 +1,3 @@
1
1
  import { ApolloClient } from '@apollo/client-integration-nextjs';
2
2
  import { I_ApolloOptions } from '../apollo-client/index.js';
3
- export declare function getClientNextJS(options?: I_ApolloOptions): ApolloClient<unknown>;
3
+ export declare function getClient(options?: I_ApolloOptions): ApolloClient<unknown>;
@@ -0,0 +1,24 @@
1
+ var i = Object.defineProperty;
2
+ var n = Object.getOwnPropertySymbols;
3
+ var l = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
+ var t = (e, o, r) => o in e ? i(e, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[o] = r, m = (e, o) => {
5
+ for (var r in o || (o = {}))
6
+ l.call(o, r) && t(e, r, o[r]);
7
+ if (n)
8
+ for (var r of n(o))
9
+ c.call(o, r) && t(e, r, o[r]);
10
+ return e;
11
+ };
12
+ import { ApolloClient as f, InMemoryCache as p } from "@apollo/client-integration-nextjs";
13
+ import { from as a } from "@apollo/client/link/core/core.cjs";
14
+ import { createApolloLinks as C } from "../apollo-client/apollo-client.util.js";
15
+ function A(e = {}) {
16
+ const o = a(C(e));
17
+ return new f(m({
18
+ link: o,
19
+ cache: new p()
20
+ }, e));
21
+ }
22
+ export {
23
+ A as getClient
24
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./apollo-client.component.cjs"),t=require("./apollo-client.util.cjs");exports.ApolloProviderNextJS=e.ApolloProviderNextJS;exports.getClientNextJS=t.getClientNextJS;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./apollo-client-nextjs.component.cjs"),t=require("./apollo-client-nextjs.util.cjs");exports.ApolloProvider=e.ApolloProvider;exports.getClient=t.getClient;
@@ -1,2 +1,2 @@
1
- export * from './apollo-client.component.js';
2
- export * from './apollo-client.util.js';
1
+ export * from './apollo-client-nextjs.component.js';
2
+ export * from './apollo-client-nextjs.util.js';
@@ -1,6 +1,6 @@
1
- import { ApolloProviderNextJS as r } from "./apollo-client.component.js";
2
- import { getClientNextJS as x } from "./apollo-client.util.js";
1
+ import { ApolloProvider as e } from "./apollo-client-nextjs.component.js";
2
+ import { getClient as l } from "./apollo-client-nextjs.util.js";
3
3
  export {
4
- r as ApolloProviderNextJS,
5
- x as getClientNextJS
4
+ e as ApolloProvider,
5
+ l as getClient
6
6
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cyberskill/shared",
3
3
  "type": "module",
4
- "version": "1.201.0",
4
+ "version": "1.202.0",
5
5
  "description": "CyberSkill Shared",
6
6
  "author": "Stephen Cheng",
7
7
  "license": "MIT",
@@ -124,6 +124,11 @@
124
124
  "import": "./dist/src/react/apollo-client-nextjs/index.js",
125
125
  "require": "./dist/src/react/apollo-client-nextjs/index.cjs"
126
126
  },
127
+ "./react/apollo-client-nextjs/rsc": {
128
+ "types": "./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts",
129
+ "import": "./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js",
130
+ "require": "./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs"
131
+ },
127
132
  "./react/apollo-error": {
128
133
  "types": "./dist/src/react/apollo-error/index.d.ts",
129
134
  "import": "./dist/src/react/apollo-error/index.js",
@@ -228,8 +233,9 @@
228
233
  "fs-extra": "11.3.0",
229
234
  "globals": "16.2.0",
230
235
  "graphql": "16.11.0",
236
+ "graphql-upload": "17.0.0",
231
237
  "graphql-ws": "6.0.5",
232
- "i18next": "25.2.1",
238
+ "i18next": "25.3.0",
233
239
  "jsdom": "26.1.0",
234
240
  "localforage": "1.10.0",
235
241
  "migrate-mongo": "12.1.3",
@@ -270,6 +276,7 @@
270
276
  "@types/express-session": "1.18.2",
271
277
  "@types/express-useragent": "1.0.5",
272
278
  "@types/fs-extra": "11.0.4",
279
+ "@types/graphql-upload": "17.0.0",
273
280
  "@types/migrate-mongo": "10.0.5",
274
281
  "@types/node": "24.0.7",
275
282
  "@types/node-persist": "3.1.8",
@@ -288,9 +295,6 @@
288
295
  "glob": "11.0.3",
289
296
  "lint-staged": "16.1.2",
290
297
  "node-modules-inspector": "1.0.0",
291
- "playwright": "1.53.1",
292
- "postcss": "8.5.6",
293
- "postcss-modules": "6.0.1",
294
298
  "sass": "1.89.2",
295
299
  "simple-git-hooks": "2.13.0",
296
300
  "tsx": "4.20.3",