@kodelyth/zalouser 2026.5.39 → 2026.5.42
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 +120 -0
- package/api.ts +9 -0
- package/channel-plugin-api.ts +3 -0
- package/contract-api.ts +2 -0
- package/dist/accounts-DOefD_if.js +66 -0
- package/dist/accounts.runtime-KT101uuu.js +2 -0
- package/dist/api-DSWT4Dh_.js +133 -0
- package/dist/api.js +7 -0
- package/dist/channel-pby_3Sur.js +602 -0
- package/dist/channel-plugin-api.js +2 -0
- package/dist/channel.runtime-0aJ2O7Y8.js +25 -0
- package/dist/channel.setup-CqyWwqcQ.js +9 -0
- package/dist/contract-api.js +3 -0
- package/dist/doctor-contract-B9EvrW0j.js +128 -0
- package/dist/doctor-contract-api.js +2 -0
- package/dist/index.js +27 -0
- package/dist/monitor-CVtrUqyW.js +708 -0
- package/dist/runtime-api.js +19 -0
- package/dist/secret-contract-api.js +5 -0
- package/dist/security-audit-D_rftvs-.js +34 -0
- package/dist/send-uRjUB8mG.js +542 -0
- package/dist/session-route-CalHiv1d.js +92 -0
- package/dist/setup-entry.js +11 -0
- package/dist/setup-plugin-api.js +2 -0
- package/dist/setup-surface-Cfj4GQlB.js +360 -0
- package/dist/shared-DjK0e2FC.js +160 -0
- package/dist/test-api.js +5 -0
- package/dist/zalo-js-B80cRyDF.js +1285 -0
- package/doctor-contract-api.ts +1 -0
- package/index.ts +34 -0
- package/klaw.plugin.json +3 -286
- package/package.json +4 -4
- package/runtime-api.ts +62 -0
- package/secret-contract-api.ts +4 -0
- package/setup-entry.ts +9 -0
- package/setup-plugin-api.ts +2 -0
- package/src/accounts.runtime.ts +1 -0
- package/src/accounts.test-mocks.ts +14 -0
- package/src/accounts.test.ts +298 -0
- package/src/accounts.ts +136 -0
- package/src/channel-api.ts +16 -0
- package/src/channel.adapters.ts +432 -0
- package/src/channel.directory.test.ts +59 -0
- package/src/channel.runtime.ts +12 -0
- package/src/channel.sendpayload.test.ts +311 -0
- package/src/channel.setup.test.ts +30 -0
- package/src/channel.setup.ts +12 -0
- package/src/channel.test.ts +424 -0
- package/src/channel.ts +221 -0
- package/src/config-schema.ts +33 -0
- package/src/directory.ts +54 -0
- package/src/doctor-contract.ts +156 -0
- package/src/doctor.test.ts +87 -0
- package/src/doctor.ts +37 -0
- package/src/group-policy.test.ts +61 -0
- package/src/group-policy.ts +83 -0
- package/src/message-sid.test.ts +66 -0
- package/src/message-sid.ts +80 -0
- package/src/monitor.account-scope.test.ts +122 -0
- package/src/monitor.group-gating.test.ts +967 -0
- package/src/monitor.send-mocks.ts +20 -0
- package/src/monitor.ts +1057 -0
- package/src/probe.test.ts +60 -0
- package/src/probe.ts +35 -0
- package/src/qr-temp-file.ts +19 -0
- package/src/reaction.test.ts +19 -0
- package/src/reaction.ts +32 -0
- package/src/runtime.ts +9 -0
- package/src/security-audit.test.ts +83 -0
- package/src/security-audit.ts +71 -0
- package/src/send-receipt.ts +31 -0
- package/src/send.test.ts +424 -0
- package/src/send.ts +280 -0
- package/src/session-route.ts +121 -0
- package/src/setup-core.ts +36 -0
- package/src/setup-surface.test.ts +367 -0
- package/src/setup-surface.ts +481 -0
- package/src/setup-test-helpers.ts +42 -0
- package/src/shared.ts +92 -0
- package/src/status-issues.test.ts +31 -0
- package/src/status-issues.ts +55 -0
- package/src/test-helpers.ts +26 -0
- package/src/text-styles.test.ts +203 -0
- package/src/text-styles.ts +540 -0
- package/src/tool.test.ts +212 -0
- package/src/tool.ts +200 -0
- package/src/types.ts +127 -0
- package/src/zalo-js.credentials.test.ts +465 -0
- package/src/zalo-js.test-mocks.ts +89 -0
- package/src/zalo-js.ts +1889 -0
- package/src/zca-client.test.ts +27 -0
- package/src/zca-client.ts +259 -0
- package/src/zca-constants.ts +55 -0
- package/src/zca-js-exports.d.ts +22 -0
- package/test-api.ts +21 -0
- package/tsconfig.json +16 -0
- package/api.js +0 -7
- package/channel-plugin-api.js +0 -7
- package/contract-api.js +0 -7
- package/doctor-contract-api.js +0 -7
- package/index.js +0 -7
- package/runtime-api.js +0 -7
- package/secret-contract-api.js +0 -7
- package/setup-entry.js +0 -7
- package/setup-plugin-api.js +0 -7
- package/test-api.js +0 -7
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from "vitest";
|
|
2
|
+
|
|
3
|
+
describe("zca-client runtime loading", () => {
|
|
4
|
+
it("does not import zca-js until a session is created", async () => {
|
|
5
|
+
vi.clearAllMocks();
|
|
6
|
+
let constructedOptions: { logging?: boolean; selfListen?: boolean } | undefined;
|
|
7
|
+
function MockZalo(options?: { logging?: boolean; selfListen?: boolean }) {
|
|
8
|
+
constructedOptions = options;
|
|
9
|
+
}
|
|
10
|
+
const runtimeFactory = vi.fn(() => ({
|
|
11
|
+
Zalo: MockZalo,
|
|
12
|
+
}));
|
|
13
|
+
|
|
14
|
+
vi.doMock("zca-js", runtimeFactory);
|
|
15
|
+
|
|
16
|
+
const zcaClient = await import("./zca-client.js");
|
|
17
|
+
expect(runtimeFactory).not.toHaveBeenCalled();
|
|
18
|
+
|
|
19
|
+
await zcaClient.createZalo({ logging: false, selfListen: true });
|
|
20
|
+
|
|
21
|
+
expect(runtimeFactory).toHaveBeenCalledTimes(1);
|
|
22
|
+
expect(constructedOptions).toEqual({
|
|
23
|
+
logging: false,
|
|
24
|
+
selfListen: true,
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LoginQRCallbackEventType,
|
|
3
|
+
Reactions,
|
|
4
|
+
TextStyle,
|
|
5
|
+
ThreadType,
|
|
6
|
+
type Style,
|
|
7
|
+
} from "./zca-constants.js";
|
|
8
|
+
|
|
9
|
+
type ZcaJsRuntime = {
|
|
10
|
+
Zalo: unknown;
|
|
11
|
+
};
|
|
12
|
+
let zcaJsRuntimePromise: Promise<ZcaJsRuntime> | null = null;
|
|
13
|
+
|
|
14
|
+
async function loadZcaJsRuntime(): Promise<ZcaJsRuntime> {
|
|
15
|
+
// Keep zca-js behind a runtime boundary so bundled metadata/contracts can load
|
|
16
|
+
// without resolving its optional WebSocket dependency tree.
|
|
17
|
+
zcaJsRuntimePromise ??= import("zca-js").then((mod) => mod as unknown as ZcaJsRuntime);
|
|
18
|
+
return await zcaJsRuntimePromise;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { LoginQRCallbackEventType, Reactions, TextStyle, ThreadType };
|
|
22
|
+
export type { Style };
|
|
23
|
+
|
|
24
|
+
export type Credentials = {
|
|
25
|
+
imei: string;
|
|
26
|
+
cookie: unknown;
|
|
27
|
+
userAgent: string;
|
|
28
|
+
language?: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type User = {
|
|
32
|
+
userId: string;
|
|
33
|
+
username: string;
|
|
34
|
+
displayName: string;
|
|
35
|
+
zaloName: string;
|
|
36
|
+
avatar: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type GroupInfo = {
|
|
40
|
+
groupId: string;
|
|
41
|
+
name: string;
|
|
42
|
+
totalMember?: number;
|
|
43
|
+
memberIds?: unknown[];
|
|
44
|
+
currentMems?: Array<{
|
|
45
|
+
id?: unknown;
|
|
46
|
+
dName?: string;
|
|
47
|
+
zaloName?: string;
|
|
48
|
+
avatar?: string;
|
|
49
|
+
}>;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type Message = {
|
|
53
|
+
type: number;
|
|
54
|
+
threadId: string;
|
|
55
|
+
isSelf: boolean;
|
|
56
|
+
data: Record<string, unknown>;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type LoginQRCallbackEvent =
|
|
60
|
+
| {
|
|
61
|
+
type: 0;
|
|
62
|
+
data: {
|
|
63
|
+
code: string;
|
|
64
|
+
image: string;
|
|
65
|
+
};
|
|
66
|
+
actions: {
|
|
67
|
+
saveToFile: (qrPath?: string) => Promise<unknown>;
|
|
68
|
+
retry: () => unknown;
|
|
69
|
+
abort: () => unknown;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
| {
|
|
73
|
+
type: 1;
|
|
74
|
+
data: null;
|
|
75
|
+
actions: {
|
|
76
|
+
retry: () => unknown;
|
|
77
|
+
abort: () => unknown;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
| {
|
|
81
|
+
type: 2;
|
|
82
|
+
data: {
|
|
83
|
+
avatar: string;
|
|
84
|
+
display_name: string;
|
|
85
|
+
};
|
|
86
|
+
actions: {
|
|
87
|
+
retry: () => unknown;
|
|
88
|
+
abort: () => unknown;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
| {
|
|
92
|
+
type: 3;
|
|
93
|
+
data: {
|
|
94
|
+
code: string;
|
|
95
|
+
};
|
|
96
|
+
actions: {
|
|
97
|
+
retry: () => unknown;
|
|
98
|
+
abort: () => unknown;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
| {
|
|
102
|
+
type: 4;
|
|
103
|
+
data: {
|
|
104
|
+
cookie: unknown;
|
|
105
|
+
imei: string;
|
|
106
|
+
userAgent: string;
|
|
107
|
+
};
|
|
108
|
+
actions: null;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export type Listener = {
|
|
112
|
+
on(event: "message", callback: (message: Message) => void): void;
|
|
113
|
+
on(event: "error", callback: (error: unknown) => void): void;
|
|
114
|
+
on(event: "closed", callback: (code: number, reason: string) => void): void;
|
|
115
|
+
off(event: "message", callback: (message: Message) => void): void;
|
|
116
|
+
off(event: "error", callback: (error: unknown) => void): void;
|
|
117
|
+
off(event: "closed", callback: (code: number, reason: string) => void): void;
|
|
118
|
+
start(opts?: { retryOnClose?: boolean }): void;
|
|
119
|
+
stop(): void;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
type DeliveryEventMessage = {
|
|
123
|
+
msgId: string;
|
|
124
|
+
cliMsgId: string;
|
|
125
|
+
uidFrom: string;
|
|
126
|
+
idTo: string;
|
|
127
|
+
msgType: string;
|
|
128
|
+
st: number;
|
|
129
|
+
at: number;
|
|
130
|
+
cmd: number;
|
|
131
|
+
ts: string | number;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
type DeliveryEventMessages = DeliveryEventMessage | DeliveryEventMessage[];
|
|
135
|
+
|
|
136
|
+
export type API = {
|
|
137
|
+
listener: Listener;
|
|
138
|
+
getContext(): {
|
|
139
|
+
imei: string;
|
|
140
|
+
userAgent: string;
|
|
141
|
+
language?: string;
|
|
142
|
+
};
|
|
143
|
+
getCookie(): {
|
|
144
|
+
toJSON(): {
|
|
145
|
+
cookies: unknown[];
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
fetchAccountInfo(): Promise<User | { profile: User }>;
|
|
149
|
+
getAllFriends(): Promise<User[]>;
|
|
150
|
+
getOwnId(): string;
|
|
151
|
+
getAllGroups(): Promise<{
|
|
152
|
+
gridVerMap: Record<string, string>;
|
|
153
|
+
}>;
|
|
154
|
+
getGroupInfo(groupId: string | string[]): Promise<{
|
|
155
|
+
gridInfoMap: Record<string, GroupInfo & { memVerList?: unknown }>;
|
|
156
|
+
}>;
|
|
157
|
+
getGroupMembersInfo(memberId: string | string[]): Promise<{
|
|
158
|
+
profiles: Record<
|
|
159
|
+
string,
|
|
160
|
+
{
|
|
161
|
+
id?: string;
|
|
162
|
+
displayName?: string;
|
|
163
|
+
zaloName?: string;
|
|
164
|
+
avatar?: string;
|
|
165
|
+
}
|
|
166
|
+
>;
|
|
167
|
+
}>;
|
|
168
|
+
sendMessage(
|
|
169
|
+
message: string | Record<string, unknown>,
|
|
170
|
+
threadId: string,
|
|
171
|
+
type?: number,
|
|
172
|
+
): Promise<{
|
|
173
|
+
msgId?: string | number;
|
|
174
|
+
message?: { msgId?: string | number } | null;
|
|
175
|
+
attachment?: Array<{ msgId?: string | number }>;
|
|
176
|
+
}>;
|
|
177
|
+
uploadAttachment(
|
|
178
|
+
sources:
|
|
179
|
+
| string
|
|
180
|
+
| {
|
|
181
|
+
data: Buffer;
|
|
182
|
+
filename: `${string}.${string}`;
|
|
183
|
+
metadata: {
|
|
184
|
+
totalSize: number;
|
|
185
|
+
width?: number;
|
|
186
|
+
height?: number;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
| Array<
|
|
190
|
+
| string
|
|
191
|
+
| {
|
|
192
|
+
data: Buffer;
|
|
193
|
+
filename: `${string}.${string}`;
|
|
194
|
+
metadata: {
|
|
195
|
+
totalSize: number;
|
|
196
|
+
width?: number;
|
|
197
|
+
height?: number;
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
>,
|
|
201
|
+
threadId: string,
|
|
202
|
+
type?: number,
|
|
203
|
+
): Promise<
|
|
204
|
+
Array<{
|
|
205
|
+
fileType: "image" | "video" | "others";
|
|
206
|
+
fileUrl?: string;
|
|
207
|
+
msgId?: string | number;
|
|
208
|
+
fileId?: string;
|
|
209
|
+
fileName?: string;
|
|
210
|
+
}>
|
|
211
|
+
>;
|
|
212
|
+
sendVoice(
|
|
213
|
+
options: {
|
|
214
|
+
voiceUrl: string;
|
|
215
|
+
ttl?: number;
|
|
216
|
+
},
|
|
217
|
+
threadId: string,
|
|
218
|
+
type?: number,
|
|
219
|
+
): Promise<{ msgId?: string | number }>;
|
|
220
|
+
sendLink(
|
|
221
|
+
payload: { link: string; msg?: string },
|
|
222
|
+
threadId: string,
|
|
223
|
+
type?: number,
|
|
224
|
+
): Promise<{ msgId?: string | number }>;
|
|
225
|
+
sendTypingEvent(threadId: string, type?: number, destType?: number): Promise<{ status: number }>;
|
|
226
|
+
addReaction(
|
|
227
|
+
icon: string | { rType: number; source: number; icon: string },
|
|
228
|
+
dest: {
|
|
229
|
+
data: {
|
|
230
|
+
msgId: string;
|
|
231
|
+
cliMsgId: string;
|
|
232
|
+
};
|
|
233
|
+
threadId: string;
|
|
234
|
+
type: number;
|
|
235
|
+
},
|
|
236
|
+
): Promise<unknown>;
|
|
237
|
+
sendDeliveredEvent(
|
|
238
|
+
isSeen: boolean,
|
|
239
|
+
messages: DeliveryEventMessages,
|
|
240
|
+
type?: number,
|
|
241
|
+
): Promise<unknown>;
|
|
242
|
+
sendSeenEvent(messages: DeliveryEventMessages, type?: number): Promise<unknown>;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
type ZaloCtor = new (options?: { logging?: boolean; selfListen?: boolean }) => {
|
|
246
|
+
login(credentials: Credentials): Promise<API>;
|
|
247
|
+
loginQR(
|
|
248
|
+
options?: { userAgent?: string; language?: string; qrPath?: string },
|
|
249
|
+
callback?: (event: LoginQRCallbackEvent) => unknown,
|
|
250
|
+
): Promise<API>;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export async function createZalo(
|
|
254
|
+
options?: ConstructorParameters<ZaloCtor>[0],
|
|
255
|
+
): Promise<InstanceType<ZaloCtor>> {
|
|
256
|
+
const zcaJs = await loadZcaJsRuntime();
|
|
257
|
+
const Zalo = zcaJs.Zalo as ZaloCtor;
|
|
258
|
+
return new Zalo(options);
|
|
259
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export const ThreadType = {
|
|
2
|
+
User: 0,
|
|
3
|
+
Group: 1,
|
|
4
|
+
} as const;
|
|
5
|
+
|
|
6
|
+
export const LoginQRCallbackEventType = {
|
|
7
|
+
QRCodeGenerated: 0,
|
|
8
|
+
QRCodeExpired: 1,
|
|
9
|
+
QRCodeScanned: 2,
|
|
10
|
+
QRCodeDeclined: 3,
|
|
11
|
+
GotLoginInfo: 4,
|
|
12
|
+
} as const;
|
|
13
|
+
|
|
14
|
+
export const Reactions = {
|
|
15
|
+
HEART: "/-heart",
|
|
16
|
+
LIKE: "/-strong",
|
|
17
|
+
HAHA: ":>",
|
|
18
|
+
WOW: ":o",
|
|
19
|
+
CRY: ":-((",
|
|
20
|
+
ANGRY: ":-h",
|
|
21
|
+
NONE: "",
|
|
22
|
+
} as const;
|
|
23
|
+
|
|
24
|
+
// Mirror zca-js sendMessage style constants locally because the package root
|
|
25
|
+
// typing surface does not consistently expose TextStyle/Style to tsgo.
|
|
26
|
+
export const TextStyle = {
|
|
27
|
+
Bold: "b",
|
|
28
|
+
Italic: "i",
|
|
29
|
+
Underline: "u",
|
|
30
|
+
StrikeThrough: "s",
|
|
31
|
+
Red: "c_db342e",
|
|
32
|
+
Orange: "c_f27806",
|
|
33
|
+
Yellow: "c_f7b503",
|
|
34
|
+
Green: "c_15a85f",
|
|
35
|
+
Small: "f_13",
|
|
36
|
+
Big: "f_18",
|
|
37
|
+
UnorderedList: "lst_1",
|
|
38
|
+
OrderedList: "lst_2",
|
|
39
|
+
Indent: "ind_$",
|
|
40
|
+
} as const;
|
|
41
|
+
|
|
42
|
+
type TextStyleValue = (typeof TextStyle)[keyof typeof TextStyle];
|
|
43
|
+
|
|
44
|
+
export type Style =
|
|
45
|
+
| {
|
|
46
|
+
start: number;
|
|
47
|
+
len: number;
|
|
48
|
+
st: Exclude<TextStyleValue, typeof TextStyle.Indent>;
|
|
49
|
+
}
|
|
50
|
+
| {
|
|
51
|
+
start: number;
|
|
52
|
+
len: number;
|
|
53
|
+
st: typeof TextStyle.Indent;
|
|
54
|
+
indentSize?: number;
|
|
55
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare module "zca-js" {
|
|
2
|
+
export const ThreadType: {
|
|
3
|
+
User: number;
|
|
4
|
+
Group: number;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const LoginQRCallbackEventType: {
|
|
8
|
+
QRCodeGenerated: number;
|
|
9
|
+
QRCodeExpired: number;
|
|
10
|
+
QRCodeScanned: number;
|
|
11
|
+
QRCodeDeclined: number;
|
|
12
|
+
GotLoginInfo: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const Reactions: Record<string, string>;
|
|
16
|
+
|
|
17
|
+
export class Zalo {
|
|
18
|
+
constructor(options?: { logging?: boolean; selfListen?: boolean });
|
|
19
|
+
login(credentials: unknown): Promise<unknown>;
|
|
20
|
+
loginQR(options?: unknown, callback?: (event: unknown) => unknown): Promise<unknown>;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/test-api.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { sendMessageZalouser } from "./src/send.js";
|
|
2
|
+
export { parseZalouserOutboundTarget } from "./src/session-route.js";
|
|
3
|
+
export {
|
|
4
|
+
checkZcaAuthenticated,
|
|
5
|
+
getZcaUserInfo,
|
|
6
|
+
listZalouserAccountIds,
|
|
7
|
+
resolveDefaultZalouserAccountId,
|
|
8
|
+
resolveZalouserAccountSync,
|
|
9
|
+
} from "./src/accounts.js";
|
|
10
|
+
export {
|
|
11
|
+
checkZaloAuthenticated,
|
|
12
|
+
getZaloUserInfo,
|
|
13
|
+
listZaloFriendsMatching,
|
|
14
|
+
listZaloGroupMembers,
|
|
15
|
+
listZaloGroupsMatching,
|
|
16
|
+
logoutZaloProfile,
|
|
17
|
+
resolveZaloAllowFromEntries,
|
|
18
|
+
resolveZaloGroupsByEntries,
|
|
19
|
+
startZaloQrLogin,
|
|
20
|
+
waitForZaloQrLogin,
|
|
21
|
+
} from "./src/zalo-js.js";
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.package-boundary.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "."
|
|
5
|
+
},
|
|
6
|
+
"include": ["./*.ts", "./src/**/*.ts"],
|
|
7
|
+
"exclude": [
|
|
8
|
+
"./**/*.test.ts",
|
|
9
|
+
"./dist/**",
|
|
10
|
+
"./node_modules/**",
|
|
11
|
+
"./src/test-support/**",
|
|
12
|
+
"./src/**/*test-helpers.ts",
|
|
13
|
+
"./src/**/*test-harness.ts",
|
|
14
|
+
"./src/**/*test-support.ts"
|
|
15
|
+
]
|
|
16
|
+
}
|
package/api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/api.js";
|
|
2
|
-
import * as module from "../../../dist/extensions/zalouser/api.js";
|
|
3
|
-
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|
package/channel-plugin-api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/channel-plugin-api.js";
|
|
2
|
-
import * as module from "../../../dist/extensions/zalouser/channel-plugin-api.js";
|
|
3
|
-
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|
package/contract-api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/contract-api.js";
|
|
2
|
-
import * as module from "../../../dist/extensions/zalouser/contract-api.js";
|
|
3
|
-
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|
package/doctor-contract-api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/doctor-contract-api.js";
|
|
2
|
-
import * as module from "../../../dist/extensions/zalouser/doctor-contract-api.js";
|
|
3
|
-
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|
package/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/index.js";
|
|
2
|
-
import defaultModule from "../../../dist/extensions/zalouser/index.js";
|
|
3
|
-
let defaultExport = defaultModule;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|
package/runtime-api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/runtime-api.js";
|
|
2
|
-
import * as module from "../../../dist/extensions/zalouser/runtime-api.js";
|
|
3
|
-
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|
package/secret-contract-api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/secret-contract-api.js";
|
|
2
|
-
import * as module from "../../../dist/extensions/zalouser/secret-contract-api.js";
|
|
3
|
-
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|
package/setup-entry.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/setup-entry.js";
|
|
2
|
-
import defaultModule from "../../../dist/extensions/zalouser/setup-entry.js";
|
|
3
|
-
let defaultExport = defaultModule;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|
package/setup-plugin-api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/setup-plugin-api.js";
|
|
2
|
-
import * as module from "../../../dist/extensions/zalouser/setup-plugin-api.js";
|
|
3
|
-
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|
package/test-api.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/extensions/zalouser/test-api.js";
|
|
2
|
-
import * as module from "../../../dist/extensions/zalouser/test-api.js";
|
|
3
|
-
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
-
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
-
defaultExport = defaultExport.default;
|
|
6
|
-
}
|
|
7
|
-
export { defaultExport as default };
|