@blogmcp/sdk 0.2.0 → 0.2.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function s(...n) {
|
|
2
2
|
const o = n.length === 1 ? n[0] : n[1];
|
|
3
|
-
(n.length
|
|
3
|
+
(n.length !== 2 || n[0]) && process.env.NODE_ENV !== "production" && console.warn(o);
|
|
4
4
|
}
|
|
5
5
|
function c(...n) {
|
|
6
6
|
const o = n.length === 1 ? n[0] : n[1];
|
package/dist/vue/plugin.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createKbClient as K } from "../core/client.js";
|
|
|
2
2
|
import { createLocalStorageTokenStorage as c, createMemoryTokenStorage as i, createAuthManager as l } from "../core/auth.js";
|
|
3
3
|
import { createKbI18n as b } from "../core/i18n.js";
|
|
4
4
|
import { defaultImageHtml as d } from "../core/markdown.js";
|
|
5
|
-
const s = Symbol("KbClient"), E = Symbol("KbAuth"), S = Symbol("KbI18n"), _ = Symbol("KbImageRenderer"), R = {
|
|
5
|
+
const s = /* @__PURE__ */ Symbol("KbClient"), E = /* @__PURE__ */ Symbol("KbAuth"), S = /* @__PURE__ */ Symbol("KbI18n"), _ = /* @__PURE__ */ Symbol("KbImageRenderer"), R = {
|
|
6
6
|
install(o, e) {
|
|
7
7
|
const t = e.tokenStorage || (typeof window < "u" ? c() : i()), r = K({ ...e, tokenStorage: t }), n = l(t), a = e.i18n || b(e.locale || "en"), m = e.imageRenderer || d;
|
|
8
8
|
o.provide(s, r), o.provide(E, n), o.provide(S, a), o.provide(_, m);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blogmcp/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Headless SDK for Knowledge Base blog — core client, Vue composables, Nuxt adapter",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@blogmcp/mdx-schema": "^0.2.
|
|
65
|
-
"@blogmcp/sanitize": "^0.2.
|
|
64
|
+
"@blogmcp/mdx-schema": "^0.2.1",
|
|
65
|
+
"@blogmcp/sanitize": "^0.2.1",
|
|
66
66
|
"marked": "^15.0.7"
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|