@smartmemory/sdk-js 0.6.0 → 0.6.7
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/README.md +27 -0
- package/dist/{core-CC81ya-7.js → core-CLtPrdbi.js} +279 -129
- package/dist/core.js +9 -9
- package/dist/fetch.js +19 -19
- package/dist/index.js +42 -34
- package/dist/progress.js +83 -82
- package/dist/react.js +1 -1
- package/package.json +21 -6
package/dist/core.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { A as e, a as r, d as A, e as I, B as P, D as
|
|
1
|
+
import { A as e, a as r, d as A, e as I, B as P, D as n, f as o, I as t, M as i, j as g, p as M, q as h, S as m, l as S, T as f, n as p, U as l } from "./core-CLtPrdbi.js";
|
|
2
2
|
export {
|
|
3
3
|
e as APIError,
|
|
4
4
|
r as AgentAPI,
|
|
5
5
|
A as AuthAPI,
|
|
6
6
|
I as AuthCore,
|
|
7
7
|
P as BaseAPI,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
n as DecisionAPI,
|
|
9
|
+
o as GraphAPI,
|
|
10
|
+
t as InsightsAPI,
|
|
11
|
+
i as MemoryAPI,
|
|
12
12
|
g as ProfileAPI,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
M as RefreshManager,
|
|
14
|
+
h as SSOManager,
|
|
15
|
+
m as SmartMemoryClient,
|
|
16
16
|
S as SubscriptionAPI,
|
|
17
17
|
f as TeamAPI,
|
|
18
18
|
p as TokenManager,
|
|
19
|
-
|
|
19
|
+
l as UsageAPI
|
|
20
20
|
};
|
package/dist/fetch.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function
|
|
2
|
-
return async function(
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
function l(e) {
|
|
2
|
+
return async function(s, t = {}) {
|
|
3
|
+
var c;
|
|
4
|
+
const i = {
|
|
5
5
|
"Content-Type": "application/json",
|
|
6
6
|
...e.getAuthHeaders(t.headers)
|
|
7
|
-
},
|
|
8
|
-
if (
|
|
7
|
+
}, n = await fetch(s, e.getRequestOptions({ ...t, headers: i }));
|
|
8
|
+
if (n.status === 401 && !t.__isRetry)
|
|
9
9
|
try {
|
|
10
10
|
await e.refreshToken();
|
|
11
11
|
const a = {
|
|
@@ -13,31 +13,31 @@ function d(e) {
|
|
|
13
13
|
...e.getAuthHeaders(t.headers)
|
|
14
14
|
};
|
|
15
15
|
return fetch(
|
|
16
|
-
|
|
16
|
+
s,
|
|
17
17
|
e.getRequestOptions({ ...t, headers: a, __isRetry: !0 })
|
|
18
18
|
);
|
|
19
19
|
} catch {
|
|
20
|
-
throw (
|
|
20
|
+
throw (c = e.clearLocalAuth) == null || c.call(e), new Error("Authentication required");
|
|
21
21
|
}
|
|
22
|
-
return
|
|
22
|
+
return n;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function f(e, { urlPatterns:
|
|
26
|
-
const
|
|
27
|
-
return globalThis.fetch = async function(n,
|
|
28
|
-
const
|
|
29
|
-
if (!(
|
|
30
|
-
return
|
|
25
|
+
function f(e, { urlPatterns: r = [] } = {}) {
|
|
26
|
+
const s = globalThis.fetch, t = s.bind(globalThis);
|
|
27
|
+
return globalThis.fetch = async function(n, c = {}) {
|
|
28
|
+
const a = typeof n == "string" ? n : n.toString();
|
|
29
|
+
if (!(r.length === 0 || r.some((o) => a.includes(o))))
|
|
30
|
+
return t(n, c);
|
|
31
31
|
const h = {
|
|
32
|
-
...
|
|
32
|
+
...c.headers,
|
|
33
33
|
...e.getAuthHeaders()
|
|
34
34
|
};
|
|
35
|
-
return
|
|
35
|
+
return t(n, { ...c, headers: h });
|
|
36
36
|
}, function() {
|
|
37
|
-
globalThis.fetch =
|
|
37
|
+
globalThis.fetch = s;
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
l as createAuthFetch,
|
|
42
42
|
f as installInterceptor
|
|
43
43
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as f, a as u, b, c as
|
|
1
|
+
import { A as f, a as u, b as A, c as b, d as P, e as h, D as I, E as g, G as x, f as p, I as w, M as m, O as k, g as v, P as T, h as B, i as y, j as C, R as E, k as S, S as R, l as F, T as M, m as L, n as O, o as G, U, V as $, Z as D } from "./core-CLtPrdbi.js";
|
|
2
2
|
const i = {
|
|
3
3
|
variables: {
|
|
4
4
|
colorBackground: "transparent",
|
|
@@ -27,34 +27,41 @@ const i = {
|
|
|
27
27
|
formFieldErrorText: "text-red-300",
|
|
28
28
|
formButtonPrimary: "bg-blue-600 hover:bg-blue-500 text-white",
|
|
29
29
|
footerActionLink: "text-blue-400 hover:text-blue-300",
|
|
30
|
-
footer
|
|
30
|
+
// Clerk paints the footer with TWO stacked background-image layers, the
|
|
31
|
+
// second an opaque black linear-gradient — !bg-transparent only overrides
|
|
32
|
+
// background-COLOR, so !bg-none is required to kill the background-IMAGE
|
|
33
|
+
// and let the card show through. Verified against live DOM 2026-05-28.
|
|
34
|
+
footer: "!bg-transparent !bg-none",
|
|
31
35
|
footerAction: "!bg-transparent",
|
|
32
|
-
badge: "hidden"
|
|
36
|
+
badge: "hidden",
|
|
37
|
+
// The "Last used" pill is cl-lastAuthenticationStrategyBadge, NOT cl-badge —
|
|
38
|
+
// the badge:'hidden' above never caught it. It also clips past the card edge.
|
|
39
|
+
lastAuthenticationStrategyBadge: "hidden"
|
|
33
40
|
}
|
|
34
41
|
};
|
|
35
|
-
async function n(
|
|
36
|
-
for (let e = 0; e <
|
|
42
|
+
async function n(o, a = 8, r = 300) {
|
|
43
|
+
for (let e = 0; e < a; e += 1) {
|
|
37
44
|
let t = null;
|
|
38
45
|
try {
|
|
39
|
-
t = await
|
|
46
|
+
t = await o({ skipCache: !0 });
|
|
40
47
|
} catch {
|
|
41
|
-
t = await
|
|
48
|
+
t = await o();
|
|
42
49
|
}
|
|
43
50
|
if (t) return t;
|
|
44
|
-
e <
|
|
51
|
+
e < a - 1 && await new Promise((s) => setTimeout(s, r));
|
|
45
52
|
}
|
|
46
53
|
return null;
|
|
47
54
|
}
|
|
48
55
|
async function l({
|
|
49
|
-
apiBaseUrl:
|
|
50
|
-
getToken:
|
|
56
|
+
apiBaseUrl: o,
|
|
57
|
+
getToken: a
|
|
51
58
|
}) {
|
|
52
|
-
const
|
|
53
|
-
if (!
|
|
59
|
+
const r = await n(a);
|
|
60
|
+
if (!r)
|
|
54
61
|
throw new Error("Missing Clerk token after retries");
|
|
55
|
-
const e = await fetch(`${
|
|
62
|
+
const e = await fetch(`${o}/auth/clerk/session`, {
|
|
56
63
|
method: "POST",
|
|
57
|
-
headers: { Authorization: `Bearer ${
|
|
64
|
+
headers: { Authorization: `Bearer ${r}` },
|
|
58
65
|
credentials: "include"
|
|
59
66
|
});
|
|
60
67
|
if (!e.ok) {
|
|
@@ -70,33 +77,34 @@ async function l({
|
|
|
70
77
|
export {
|
|
71
78
|
f as APIError,
|
|
72
79
|
u as AgentAPI,
|
|
73
|
-
|
|
74
|
-
|
|
80
|
+
A as AnalyticsAPI,
|
|
81
|
+
b as ArchiveAPI,
|
|
75
82
|
P as AuthAPI,
|
|
76
83
|
h as AuthCore,
|
|
77
84
|
i as CLERK_APPEARANCE,
|
|
78
85
|
I as DecisionAPI,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
86
|
+
g as EvolutionAPI,
|
|
87
|
+
x as GovernanceAPI,
|
|
88
|
+
p as GraphAPI,
|
|
89
|
+
w as InsightsAPI,
|
|
90
|
+
m as MemoryAPI,
|
|
84
91
|
k as OntologyAPI,
|
|
85
|
-
v as
|
|
86
|
-
T as
|
|
87
|
-
B as
|
|
88
|
-
y as
|
|
89
|
-
C as
|
|
90
|
-
E as
|
|
92
|
+
v as OpinionAPI,
|
|
93
|
+
T as PipelineAPI,
|
|
94
|
+
B as ProcedureCandidateAPI,
|
|
95
|
+
y as ProcedureMatchAPI,
|
|
96
|
+
C as ProfileAPI,
|
|
97
|
+
E as ReasoningAPI,
|
|
98
|
+
S as ReasoningTracesAPI,
|
|
91
99
|
R as SmartMemoryClient,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
100
|
+
F as SubscriptionAPI,
|
|
101
|
+
M as TeamAPI,
|
|
102
|
+
L as TemporalAPI,
|
|
103
|
+
O as TokenManager,
|
|
96
104
|
G as TokenUsageAPI,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
105
|
+
U as UsageAPI,
|
|
106
|
+
$ as ValidationAPI,
|
|
107
|
+
D as ZettelkastenAPI,
|
|
100
108
|
l as exchangeClerkSession,
|
|
101
109
|
n as getClerkTokenWithRetry
|
|
102
110
|
};
|
package/dist/progress.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
async function
|
|
1
|
+
async function _(r, n) {
|
|
2
2
|
const t = r.getReader();
|
|
3
3
|
let e;
|
|
4
4
|
for (; !(e = await t.read()).done; )
|
|
5
5
|
n(e.value);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function R(r) {
|
|
8
8
|
let n, t, e, o = !1;
|
|
9
|
-
return function(
|
|
10
|
-
n === void 0 ? (n =
|
|
9
|
+
return function(s) {
|
|
10
|
+
n === void 0 ? (n = s, t = 0, e = -1) : n = L(n, s);
|
|
11
11
|
const i = n.length;
|
|
12
|
-
let
|
|
12
|
+
let a = 0;
|
|
13
13
|
for (; t < i; ) {
|
|
14
|
-
o && (n[t] === 10 && (
|
|
15
|
-
let
|
|
16
|
-
for (; t < i &&
|
|
14
|
+
o && (n[t] === 10 && (a = ++t), o = !1);
|
|
15
|
+
let c = -1;
|
|
16
|
+
for (; t < i && c === -1; ++t)
|
|
17
17
|
switch (n[t]) {
|
|
18
18
|
case 58:
|
|
19
|
-
e === -1 && (e = t -
|
|
19
|
+
e === -1 && (e = t - a);
|
|
20
20
|
break;
|
|
21
21
|
case 13:
|
|
22
22
|
o = !0;
|
|
23
23
|
case 10:
|
|
24
|
-
|
|
24
|
+
c = t;
|
|
25
25
|
break;
|
|
26
26
|
}
|
|
27
|
-
if (
|
|
27
|
+
if (c === -1)
|
|
28
28
|
break;
|
|
29
|
-
r(n.subarray(
|
|
29
|
+
r(n.subarray(a, c), e), a = t, e = -1;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
a === i ? n = void 0 : a !== 0 && (n = n.subarray(a), t -= a);
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
let e =
|
|
34
|
+
function P(r, n, t) {
|
|
35
|
+
let e = A();
|
|
36
36
|
const o = new TextDecoder();
|
|
37
|
-
return function(
|
|
38
|
-
if (
|
|
39
|
-
t == null || t(e), e =
|
|
37
|
+
return function(s, i) {
|
|
38
|
+
if (s.length === 0)
|
|
39
|
+
t == null || t(e), e = A();
|
|
40
40
|
else if (i > 0) {
|
|
41
|
-
const
|
|
42
|
-
switch (
|
|
41
|
+
const a = o.decode(s.subarray(0, i)), c = i + (s[i + 1] === 32 ? 2 : 1), l = o.decode(s.subarray(c));
|
|
42
|
+
switch (a) {
|
|
43
43
|
case "data":
|
|
44
44
|
e.data = e.data ? e.data + `
|
|
45
|
-
` +
|
|
45
|
+
` + l : l;
|
|
46
46
|
break;
|
|
47
47
|
case "event":
|
|
48
|
-
e.event =
|
|
48
|
+
e.event = l;
|
|
49
49
|
break;
|
|
50
50
|
case "id":
|
|
51
|
-
r(e.id =
|
|
51
|
+
r(e.id = l);
|
|
52
52
|
break;
|
|
53
53
|
case "retry":
|
|
54
|
-
const f = parseInt(
|
|
54
|
+
const f = parseInt(l, 10);
|
|
55
55
|
isNaN(f) || n(e.retry = f);
|
|
56
56
|
break;
|
|
57
57
|
}
|
|
@@ -62,7 +62,7 @@ function L(r, n) {
|
|
|
62
62
|
const t = new Uint8Array(r.length + n.length);
|
|
63
63
|
return t.set(r), t.set(n, r.length), t;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function A() {
|
|
66
66
|
return {
|
|
67
67
|
data: "",
|
|
68
68
|
event: "",
|
|
@@ -70,7 +70,7 @@ function k() {
|
|
|
70
70
|
retry: void 0
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var j = function(r, n) {
|
|
74
74
|
var t = {};
|
|
75
75
|
for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && n.indexOf(e) < 0 && (t[e] = r[e]);
|
|
76
76
|
if (r != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -78,114 +78,115 @@ var $ = function(r, n) {
|
|
|
78
78
|
n.indexOf(e[o]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[o]) && (t[e[o]] = r[e[o]]);
|
|
79
79
|
return t;
|
|
80
80
|
};
|
|
81
|
-
const
|
|
82
|
-
function
|
|
83
|
-
var { signal: t, headers: e, onopen: o, onmessage:
|
|
84
|
-
return new Promise((f,
|
|
85
|
-
const
|
|
86
|
-
|
|
81
|
+
const k = "text/event-stream", x = 1e3, I = "last-event-id";
|
|
82
|
+
function N(r, n) {
|
|
83
|
+
var { signal: t, headers: e, onopen: o, onmessage: g, onclose: s, onerror: i, openWhenHidden: a, fetch: c } = n, l = j(n, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
|
|
84
|
+
return new Promise((f, E) => {
|
|
85
|
+
const y = Object.assign({}, e);
|
|
86
|
+
y.accept || (y.accept = k);
|
|
87
87
|
let v;
|
|
88
|
-
function
|
|
89
|
-
v.abort(), document.hidden ||
|
|
88
|
+
function h() {
|
|
89
|
+
v.abort(), document.hidden || O();
|
|
90
90
|
}
|
|
91
|
-
|
|
92
|
-
let
|
|
91
|
+
a || document.addEventListener("visibilitychange", h);
|
|
92
|
+
let d = x, b = 0;
|
|
93
93
|
function u() {
|
|
94
|
-
document.removeEventListener("visibilitychange",
|
|
94
|
+
document.removeEventListener("visibilitychange", h), window.clearTimeout(b), v.abort();
|
|
95
95
|
}
|
|
96
96
|
t == null || t.addEventListener("abort", () => {
|
|
97
97
|
u(), f();
|
|
98
98
|
});
|
|
99
|
-
const
|
|
100
|
-
async function
|
|
101
|
-
var
|
|
99
|
+
const w = c ?? window.fetch, m = o ?? $;
|
|
100
|
+
async function O() {
|
|
101
|
+
var T;
|
|
102
102
|
v = new AbortController();
|
|
103
103
|
try {
|
|
104
|
-
const
|
|
105
|
-
await
|
|
106
|
-
|
|
107
|
-
}, (
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
} catch (
|
|
104
|
+
const S = await w(r, Object.assign(Object.assign({}, l), { headers: y, signal: v.signal }));
|
|
105
|
+
await m(S), await _(S.body, R(P((p) => {
|
|
106
|
+
p ? y[I] = p : delete y[I];
|
|
107
|
+
}, (p) => {
|
|
108
|
+
d = p;
|
|
109
|
+
}, g))), s == null || s(), u(), f();
|
|
110
|
+
} catch (S) {
|
|
111
111
|
if (!v.signal.aborted)
|
|
112
112
|
try {
|
|
113
|
-
const
|
|
114
|
-
window.clearTimeout(
|
|
115
|
-
} catch (
|
|
116
|
-
u(),
|
|
113
|
+
const p = (T = i == null ? void 0 : i(S)) !== null && T !== void 0 ? T : d;
|
|
114
|
+
window.clearTimeout(b), b = window.setTimeout(O, p);
|
|
115
|
+
} catch (p) {
|
|
116
|
+
u(), E(p);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
O();
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function $(r) {
|
|
124
124
|
const n = r.headers.get("content-type");
|
|
125
|
-
if (!(n != null && n.startsWith(
|
|
126
|
-
throw new Error(`Expected content-type to be ${
|
|
125
|
+
if (!(n != null && n.startsWith(k)))
|
|
126
|
+
throw new Error(`Expected content-type to be ${k}, Actual: ${n}`);
|
|
127
127
|
}
|
|
128
|
-
const
|
|
129
|
-
function
|
|
128
|
+
const C = "/memory/progress/stream", H = 3, W = 1e3, q = /* @__PURE__ */ new Set([401, 403, 404]);
|
|
129
|
+
function U(r) {
|
|
130
130
|
const {
|
|
131
131
|
baseUrl: n = "",
|
|
132
132
|
token: t,
|
|
133
133
|
apiKey: e,
|
|
134
134
|
workspaceId: o,
|
|
135
|
-
runId:
|
|
136
|
-
fromSeq:
|
|
135
|
+
runId: g,
|
|
136
|
+
fromSeq: s,
|
|
137
137
|
since: i,
|
|
138
|
-
onEvent:
|
|
139
|
-
onError:
|
|
140
|
-
onReconnect:
|
|
138
|
+
onEvent: a,
|
|
139
|
+
onError: c,
|
|
140
|
+
onReconnect: l
|
|
141
141
|
} = r, f = new URLSearchParams();
|
|
142
|
-
|
|
143
|
-
const
|
|
142
|
+
g !== void 0 && f.set("run_id", g), s !== void 0 && f.set("from_seq", String(s)), i !== void 0 && f.set("since", i);
|
|
143
|
+
const E = f.toString(), y = `${n}${C}${E ? "?" + E : ""}`, v = {
|
|
144
144
|
Accept: "text/event-stream"
|
|
145
145
|
};
|
|
146
146
|
t ? v.Authorization = `Bearer ${t}` : e && (v["X-API-Key"] = e), o && (v["X-Workspace-Id"] = o);
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
return
|
|
147
|
+
const h = new AbortController();
|
|
148
|
+
let d = !1, b = 0;
|
|
149
|
+
return N(y, {
|
|
150
150
|
headers: v,
|
|
151
|
-
signal:
|
|
151
|
+
signal: h.signal,
|
|
152
152
|
openWhenHidden: !0,
|
|
153
153
|
async onopen(u) {
|
|
154
154
|
if (u.ok) {
|
|
155
|
-
|
|
155
|
+
b = 0;
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
const w = u.status, m = new Error(`SSE connection failed: HTTP ${w}`);
|
|
159
|
+
throw q.has(w) && (d = !0, c(m), h.abort()), m;
|
|
159
160
|
},
|
|
160
161
|
onmessage(u) {
|
|
161
|
-
if (
|
|
162
|
-
|
|
163
|
-
let
|
|
162
|
+
if (d || !u.data) return;
|
|
163
|
+
b = 0;
|
|
164
|
+
let w;
|
|
164
165
|
try {
|
|
165
|
-
|
|
166
|
+
w = JSON.parse(u.data);
|
|
166
167
|
} catch {
|
|
167
168
|
return;
|
|
168
169
|
}
|
|
169
|
-
|
|
170
|
+
a(w);
|
|
170
171
|
},
|
|
171
172
|
onerror(u) {
|
|
172
|
-
if (!
|
|
173
|
-
if (
|
|
174
|
-
|
|
173
|
+
if (!d) {
|
|
174
|
+
if (b += 1, b >= H) {
|
|
175
|
+
c(u), d = !0, h.abort();
|
|
175
176
|
return;
|
|
176
177
|
}
|
|
177
|
-
return
|
|
178
|
+
return l == null || l(), W * b;
|
|
178
179
|
}
|
|
179
180
|
},
|
|
180
181
|
onclose() {
|
|
181
|
-
|
|
182
|
+
d || (d = !0, c(new Error("SSE connection closed by server")));
|
|
182
183
|
}
|
|
183
184
|
}), {
|
|
184
185
|
close() {
|
|
185
|
-
|
|
186
|
+
d || (d = !0, h.abort());
|
|
186
187
|
}
|
|
187
188
|
};
|
|
188
189
|
}
|
|
189
190
|
export {
|
|
190
|
-
|
|
191
|
+
U as subscribeProgress
|
|
191
192
|
};
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import h, { createContext as d, useRef as y, useState as v, useEffect as b, useCallback as c, useContext as f } from "react";
|
|
2
|
-
import { S as x } from "./core-
|
|
2
|
+
import { S as x } from "./core-CLtPrdbi.js";
|
|
3
3
|
const m = d(null), g = d(null);
|
|
4
4
|
function U({ children: e, ...r }) {
|
|
5
5
|
const n = y(null);
|
package/package.json
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartmemory/sdk-js",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "Unified JavaScript SDK for SmartMemory API — auth + API client for all frontends",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
".":
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"./
|
|
9
|
+
".": {
|
|
10
|
+
"development": "./src/index.js",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./core": {
|
|
14
|
+
"development": "./src/core.js",
|
|
15
|
+
"default": "./dist/core.js"
|
|
16
|
+
},
|
|
17
|
+
"./react": {
|
|
18
|
+
"development": "./src/react/index.js",
|
|
19
|
+
"default": "./dist/react.js"
|
|
20
|
+
},
|
|
21
|
+
"./fetch": {
|
|
22
|
+
"development": "./src/fetch/index.js",
|
|
23
|
+
"default": "./dist/fetch.js"
|
|
24
|
+
},
|
|
25
|
+
"./progress": {
|
|
26
|
+
"development": "./src/progress.ts",
|
|
27
|
+
"default": "./dist/progress.js"
|
|
28
|
+
}
|
|
14
29
|
},
|
|
15
30
|
"files": [
|
|
16
31
|
"dist"
|