@cyberskill/shared 1.201.0 → 1.201.1
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/magic-string.es-D_iPNVbJ.cjs +10 -0
- package/dist/magic-string.es-cELbkQ5L.js +901 -0
- package/dist/{path.constant-Y6ImOuVK.cjs → path.constant-BT9ilH7U.cjs} +2 -2
- package/dist/{path.constant-CFKXX6cG.js → path.constant-C43rx8PK.js} +58 -59
- package/dist/src/config/vitest/vitest.unit.cjs +1 -1
- package/dist/src/config/vitest/vitest.unit.js +1 -1
- package/dist/src/config/vitest/vitest.unit.setup.cjs +1 -1
- package/dist/src/config/vitest/vitest.unit.setup.js +1 -1
- package/dist/src/node/cli/cli.util.cjs +1 -1
- package/dist/src/node/cli/cli.util.js +15 -15
- package/dist/src/node/command/command.util.cjs +1 -1
- package/dist/src/node/command/command.util.js +1 -1
- package/dist/src/node/command/index.cjs +1 -1
- package/dist/src/node/command/index.js +1 -1
- package/dist/src/node/mongo/mongo.util.cjs +1 -1
- package/dist/src/node/mongo/mongo.util.js +1 -1
- package/dist/src/node/package/index.cjs +1 -1
- package/dist/src/node/package/index.js +1 -1
- package/dist/src/node/package/package.util.cjs +1 -1
- package/dist/src/node/package/package.util.js +1 -1
- package/dist/src/node/path/index.cjs +1 -1
- package/dist/src/node/path/index.js +20 -21
- package/dist/src/node/path/path.constant.cjs +1 -1
- package/dist/src/node/path/path.constant.d.ts +0 -1
- package/dist/src/node/path/path.constant.js +25 -26
- package/dist/src/node/upload/upload.util.cjs +1 -1
- package/dist/src/node/upload/upload.util.js +1 -1
- package/dist/src/react/apollo-client/apollo-client.util.cjs +1 -1
- package/dist/src/react/apollo-client/apollo-client.util.js +29 -29
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.component.cjs +1 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.component.d.ts +3 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.component.js +20 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs +1 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts +6 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js +6 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.cjs +1 -0
- package/dist/src/react/apollo-client-nextjs/{apollo-client.util.d.ts → apollo-client-nextjs.util.d.ts} +1 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.js +24 -0
- package/dist/src/react/apollo-client-nextjs/index.cjs +1 -1
- package/dist/src/react/apollo-client-nextjs/index.d.ts +2 -2
- package/dist/src/react/apollo-client-nextjs/index.js +4 -4
- package/package.json +7 -5
- package/dist/magic-string.es-CyLHbrL2.js +0 -871
- package/dist/magic-string.es-hjygV5wN.cjs +0 -10
- package/dist/src/react/apollo-client-nextjs/apollo-client.component.cjs +0 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client.component.d.ts +0 -3
- package/dist/src/react/apollo-client-nextjs/apollo-client.component.js +0 -33
- package/dist/src/react/apollo-client-nextjs/apollo-client.util.cjs +0 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client.util.js +0 -31
|
@@ -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 @@
|
|
|
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
|
|
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.
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
-
|
|
5
|
-
|
|
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.
|
|
4
|
+
"version": "1.201.1",
|
|
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",
|
|
@@ -229,7 +234,7 @@
|
|
|
229
234
|
"globals": "16.2.0",
|
|
230
235
|
"graphql": "16.11.0",
|
|
231
236
|
"graphql-ws": "6.0.5",
|
|
232
|
-
"i18next": "25.
|
|
237
|
+
"i18next": "25.3.0",
|
|
233
238
|
"jsdom": "26.1.0",
|
|
234
239
|
"localforage": "1.10.0",
|
|
235
240
|
"migrate-mongo": "12.1.3",
|
|
@@ -288,9 +293,6 @@
|
|
|
288
293
|
"glob": "11.0.3",
|
|
289
294
|
"lint-staged": "16.1.2",
|
|
290
295
|
"node-modules-inspector": "1.0.0",
|
|
291
|
-
"playwright": "1.53.1",
|
|
292
|
-
"postcss": "8.5.6",
|
|
293
|
-
"postcss-modules": "6.0.1",
|
|
294
296
|
"sass": "1.89.2",
|
|
295
297
|
"simple-git-hooks": "2.13.0",
|
|
296
298
|
"tsx": "4.20.3",
|