@dpuse/dpuse-development 0.3.808 → 0.3.810
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 +9 -9
- package/dist/{apiReference-BazeHifT.js → apiReference-Fj5_02JP.js} +1 -1
- package/dist/{apiReference-BazeHifT.js.map → apiReference-Fj5_02JP.js.map} +1 -1
- package/dist/dpuse-development.es.js +5 -5
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/{utilities-Bo8LfncX.js → utilities-CQ2h3IWL.js} +180 -172
- package/dist/utilities-CQ2h3IWL.js.map +1 -0
- package/package.json +2 -2
- package/dist/utilities-Bo8LfncX.js.map +0 -1
|
@@ -75,15 +75,15 @@ function ee(e, t) {
|
|
|
75
75
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
76
76
|
}
|
|
77
77
|
/* @__NO_SIDE_EFFECTS__ */
|
|
78
|
-
function
|
|
78
|
+
function te(e, t) {
|
|
79
79
|
return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
80
80
|
}
|
|
81
81
|
/* @__NO_SIDE_EFFECTS__ */
|
|
82
|
-
function
|
|
82
|
+
function ne(e, t) {
|
|
83
83
|
let n = [...new Set(e)];
|
|
84
84
|
return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function p(e) {
|
|
87
87
|
return e["~standard"] = {
|
|
88
88
|
version: 1,
|
|
89
89
|
vendor: "valibot",
|
|
@@ -91,19 +91,19 @@ function m(e) {
|
|
|
91
91
|
}, e;
|
|
92
92
|
}
|
|
93
93
|
/* @__NO_SIDE_EFFECTS__ */
|
|
94
|
-
function
|
|
94
|
+
function re(e, t, n) {
|
|
95
95
|
return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
|
|
96
96
|
}
|
|
97
97
|
/* @__NO_SIDE_EFFECTS__ */
|
|
98
|
-
function
|
|
98
|
+
function m(e, t, n) {
|
|
99
99
|
return typeof e.default == "function" ? e.default(t, n) : e.default;
|
|
100
100
|
}
|
|
101
101
|
/* @__NO_SIDE_EFFECTS__ */
|
|
102
|
-
function
|
|
103
|
-
return
|
|
102
|
+
function h(e, t) {
|
|
103
|
+
return p({
|
|
104
104
|
kind: "schema",
|
|
105
105
|
type: "array",
|
|
106
|
-
reference:
|
|
106
|
+
reference: h,
|
|
107
107
|
expects: "Array",
|
|
108
108
|
async: !1,
|
|
109
109
|
item: e,
|
|
@@ -136,11 +136,11 @@ function g(e, t) {
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
/* @__NO_SIDE_EFFECTS__ */
|
|
139
|
-
function
|
|
140
|
-
return
|
|
139
|
+
function g(e) {
|
|
140
|
+
return p({
|
|
141
141
|
kind: "schema",
|
|
142
142
|
type: "boolean",
|
|
143
|
-
reference:
|
|
143
|
+
reference: g,
|
|
144
144
|
expects: "boolean",
|
|
145
145
|
async: !1,
|
|
146
146
|
message: e,
|
|
@@ -150,11 +150,11 @@ function _(e) {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
/* @__NO_SIDE_EFFECTS__ */
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function _(e, t) {
|
|
154
|
+
return p({
|
|
155
155
|
kind: "schema",
|
|
156
156
|
type: "literal",
|
|
157
|
-
reference:
|
|
157
|
+
reference: _,
|
|
158
158
|
expects: /* @__PURE__ */ d(e),
|
|
159
159
|
async: !1,
|
|
160
160
|
literal: e,
|
|
@@ -165,26 +165,26 @@ function v(e, t) {
|
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
/* @__NO_SIDE_EFFECTS__ */
|
|
168
|
-
function
|
|
169
|
-
return
|
|
168
|
+
function v(e, t) {
|
|
169
|
+
return p({
|
|
170
170
|
kind: "schema",
|
|
171
171
|
type: "nullable",
|
|
172
|
-
reference:
|
|
172
|
+
reference: v,
|
|
173
173
|
expects: `(${e.expects} | null)`,
|
|
174
174
|
async: !1,
|
|
175
175
|
wrapped: e,
|
|
176
176
|
default: t,
|
|
177
177
|
"~run"(e, t) {
|
|
178
|
-
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
178
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
/* @__NO_SIDE_EFFECTS__ */
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function y(e) {
|
|
184
|
+
return p({
|
|
185
185
|
kind: "schema",
|
|
186
186
|
type: "number",
|
|
187
|
-
reference:
|
|
187
|
+
reference: y,
|
|
188
188
|
expects: "number",
|
|
189
189
|
async: !1,
|
|
190
190
|
message: e,
|
|
@@ -194,26 +194,26 @@ function b(e) {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
/* @__NO_SIDE_EFFECTS__ */
|
|
197
|
-
function
|
|
198
|
-
return
|
|
197
|
+
function b(e, t) {
|
|
198
|
+
return p({
|
|
199
199
|
kind: "schema",
|
|
200
200
|
type: "optional",
|
|
201
|
-
reference:
|
|
201
|
+
reference: b,
|
|
202
202
|
expects: `(${e.expects} | undefined)`,
|
|
203
203
|
async: !1,
|
|
204
204
|
wrapped: e,
|
|
205
205
|
default: t,
|
|
206
206
|
"~run"(e, t) {
|
|
207
|
-
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
207
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
/* @__NO_SIDE_EFFECTS__ */
|
|
212
|
-
function
|
|
213
|
-
return
|
|
212
|
+
function x(e, t, n) {
|
|
213
|
+
return p({
|
|
214
214
|
kind: "schema",
|
|
215
215
|
type: "record",
|
|
216
|
-
reference:
|
|
216
|
+
reference: x,
|
|
217
217
|
expects: "Object",
|
|
218
218
|
async: !1,
|
|
219
219
|
key: e,
|
|
@@ -223,7 +223,7 @@ function S(e, t, n) {
|
|
|
223
223
|
let n = e.value;
|
|
224
224
|
if (n && typeof n == "object") {
|
|
225
225
|
e.typed = !0, e.value = {};
|
|
226
|
-
for (let r in n) if (/* @__PURE__ */
|
|
226
|
+
for (let r in n) if (/* @__PURE__ */ te(n, r)) {
|
|
227
227
|
let i = n[r], a = this.key["~run"]({ value: r }, t);
|
|
228
228
|
if (a.issues) {
|
|
229
229
|
let o = {
|
|
@@ -262,11 +262,11 @@ function S(e, t, n) {
|
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
/* @__NO_SIDE_EFFECTS__ */
|
|
265
|
-
function
|
|
266
|
-
return
|
|
265
|
+
function S(e, t) {
|
|
266
|
+
return p({
|
|
267
267
|
kind: "schema",
|
|
268
268
|
type: "strict_object",
|
|
269
|
-
reference:
|
|
269
|
+
reference: S,
|
|
270
270
|
expects: "Object",
|
|
271
271
|
async: !1,
|
|
272
272
|
entries: e,
|
|
@@ -278,7 +278,7 @@ function C(e, t) {
|
|
|
278
278
|
for (let r in this.entries) {
|
|
279
279
|
let i = this.entries[r];
|
|
280
280
|
if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
281
|
-
let a = r in n ? n[r] : /* @__PURE__ */
|
|
281
|
+
let a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i["~run"]({ value: a }, t);
|
|
282
282
|
if (o.issues) {
|
|
283
283
|
let i = {
|
|
284
284
|
type: "object",
|
|
@@ -294,7 +294,7 @@ function C(e, t) {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
o.typed || (e.typed = !1), e.value[r] = o.value;
|
|
297
|
-
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */
|
|
297
|
+
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ re(i);
|
|
298
298
|
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (f(this, "key", e, t, {
|
|
299
299
|
input: void 0,
|
|
300
300
|
expected: `"${r}"`,
|
|
@@ -329,11 +329,11 @@ function C(e, t) {
|
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
/* @__NO_SIDE_EFFECTS__ */
|
|
332
|
-
function
|
|
333
|
-
return
|
|
332
|
+
function C(e) {
|
|
333
|
+
return p({
|
|
334
334
|
kind: "schema",
|
|
335
335
|
type: "string",
|
|
336
|
-
reference:
|
|
336
|
+
reference: C,
|
|
337
337
|
expects: "string",
|
|
338
338
|
async: !1,
|
|
339
339
|
message: e,
|
|
@@ -343,19 +343,19 @@ function w(e) {
|
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
/* @__NO_SIDE_EFFECTS__ */
|
|
346
|
-
function
|
|
346
|
+
function w(e) {
|
|
347
347
|
let t;
|
|
348
348
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
349
349
|
else t = n.issues;
|
|
350
350
|
return t;
|
|
351
351
|
}
|
|
352
352
|
/* @__NO_SIDE_EFFECTS__ */
|
|
353
|
-
function
|
|
354
|
-
return
|
|
353
|
+
function T(e, t) {
|
|
354
|
+
return p({
|
|
355
355
|
kind: "schema",
|
|
356
356
|
type: "union",
|
|
357
|
-
reference:
|
|
358
|
-
expects: /* @__PURE__ */
|
|
357
|
+
reference: T,
|
|
358
|
+
expects: /* @__PURE__ */ ne(e.map((e) => e.expects), "|"),
|
|
359
359
|
async: !1,
|
|
360
360
|
options: e,
|
|
361
361
|
message: t,
|
|
@@ -374,29 +374,29 @@ function E(e, t) {
|
|
|
374
374
|
if (n) return n;
|
|
375
375
|
if (r) {
|
|
376
376
|
if (r.length === 1) return r[0];
|
|
377
|
-
f(this, "type", e, t, { issues: /* @__PURE__ */
|
|
377
|
+
f(this, "type", e, t, { issues: /* @__PURE__ */ w(r) }), e.typed = !0;
|
|
378
378
|
} else if (i?.length === 1) return i[0];
|
|
379
|
-
else f(this, "type", e, t, { issues: /* @__PURE__ */
|
|
379
|
+
else f(this, "type", e, t, { issues: /* @__PURE__ */ w(i) });
|
|
380
380
|
return e;
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
var
|
|
385
|
-
en: /* @__PURE__ */
|
|
386
|
-
es: /* @__PURE__ */
|
|
387
|
-
}),
|
|
388
|
-
id: /* @__PURE__ */
|
|
389
|
-
label: /* @__PURE__ */
|
|
390
|
-
en: /* @__PURE__ */
|
|
391
|
-
es: /* @__PURE__ */
|
|
384
|
+
var E = /* @__PURE__ */ S({
|
|
385
|
+
en: /* @__PURE__ */ C(),
|
|
386
|
+
es: /* @__PURE__ */ C()
|
|
387
|
+
}), ie = {
|
|
388
|
+
id: /* @__PURE__ */ C(),
|
|
389
|
+
label: /* @__PURE__ */ S({
|
|
390
|
+
en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
|
|
391
|
+
es: /* @__PURE__ */ b(/* @__PURE__ */ C())
|
|
392
392
|
}),
|
|
393
|
-
description: /* @__PURE__ */
|
|
394
|
-
en: /* @__PURE__ */
|
|
395
|
-
es: /* @__PURE__ */
|
|
393
|
+
description: /* @__PURE__ */ S({
|
|
394
|
+
en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
|
|
395
|
+
es: /* @__PURE__ */ b(/* @__PURE__ */ C())
|
|
396
396
|
}),
|
|
397
|
-
icon: /* @__PURE__ */
|
|
398
|
-
iconDark: /* @__PURE__ */
|
|
399
|
-
},
|
|
397
|
+
icon: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
398
|
+
iconDark: /* @__PURE__ */ v(/* @__PURE__ */ C())
|
|
399
|
+
}, D = (e) => /* @__PURE__ */ T(e.map((e) => /* @__PURE__ */ _(e))), ae = D([
|
|
400
400
|
"app",
|
|
401
401
|
"connector",
|
|
402
402
|
"connectorConnection",
|
|
@@ -418,33 +418,33 @@ var D = /* @__PURE__ */ C({
|
|
|
418
418
|
"presenter",
|
|
419
419
|
"presenterPresentation",
|
|
420
420
|
"tool"
|
|
421
|
-
]),
|
|
421
|
+
]), oe = D([
|
|
422
422
|
"danger",
|
|
423
423
|
"success",
|
|
424
424
|
"warning"
|
|
425
|
-
]),
|
|
425
|
+
]), O = D([
|
|
426
426
|
"alpha",
|
|
427
427
|
"beta",
|
|
428
428
|
"releaseCandidate",
|
|
429
429
|
"generalAvailability"
|
|
430
|
-
]),
|
|
431
|
-
color:
|
|
432
|
-
label: /* @__PURE__ */
|
|
430
|
+
]), se = /* @__PURE__ */ S({
|
|
431
|
+
color: oe,
|
|
432
|
+
label: /* @__PURE__ */ C()
|
|
433
|
+
}), k = {
|
|
434
|
+
...ie,
|
|
435
|
+
typeId: ae
|
|
436
|
+
}, ce = /* @__PURE__ */ S({
|
|
437
|
+
...k,
|
|
438
|
+
order: /* @__PURE__ */ y(),
|
|
439
|
+
path: /* @__PURE__ */ C()
|
|
433
440
|
}), A = {
|
|
434
|
-
...
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
path: /* @__PURE__ */ w()
|
|
440
|
-
}), j = {
|
|
441
|
-
...A,
|
|
442
|
-
firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
443
|
-
lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
444
|
-
status: /* @__PURE__ */ y(oe),
|
|
445
|
-
statusId: /* @__PURE__ */ y(k)
|
|
441
|
+
...k,
|
|
442
|
+
firstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
443
|
+
lastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
444
|
+
status: /* @__PURE__ */ v(se),
|
|
445
|
+
statusId: /* @__PURE__ */ v(O)
|
|
446
446
|
};
|
|
447
|
-
({ ...
|
|
447
|
+
({ ...A }), c({ en: "Data Positioning Events" }), c({ en: "Delimited Text" }), c({ en: "JSON" }), c({ en: "SPSS" }), c({ en: "XLSX" }), c({ en: "XML" }), c({ en: "Newline" }), c({ en: "Carriage Return" }), c({ en: "Carriage Return/Newline" }), c({ en: "Colon" }), c({ en: "Comma" }), c({ en: "Exclamation Mark" }), c({ en: "Record Separator" }), c({ en: "Semicolon" }), c({ en: "Space" }), c({ en: "Tab" }), c({ en: "Underscore" }), c({ en: "Unit Separator" }), c({ en: "Vertical Bar" }), D([
|
|
448
448
|
"app",
|
|
449
449
|
"engine",
|
|
450
450
|
"connector",
|
|
@@ -452,15 +452,15 @@ var D = /* @__PURE__ */ C({
|
|
|
452
452
|
"presenter",
|
|
453
453
|
"tool"
|
|
454
454
|
]);
|
|
455
|
-
var
|
|
456
|
-
...
|
|
457
|
-
vendorAccountURL: /* @__PURE__ */
|
|
458
|
-
vendorDocumentationURL: /* @__PURE__ */
|
|
459
|
-
vendorHomeURL: /* @__PURE__ */
|
|
460
|
-
version: /* @__PURE__ */
|
|
455
|
+
var j = {
|
|
456
|
+
...A,
|
|
457
|
+
vendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
458
|
+
vendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
459
|
+
vendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
460
|
+
version: /* @__PURE__ */ C()
|
|
461
461
|
};
|
|
462
|
-
({ ...
|
|
463
|
-
var
|
|
462
|
+
({ ...j });
|
|
463
|
+
var le = D([
|
|
464
464
|
"abortOperation",
|
|
465
465
|
"auditObjectContent",
|
|
466
466
|
"createObject",
|
|
@@ -476,39 +476,39 @@ var ce = O([
|
|
|
476
476
|
"retrieveChunks",
|
|
477
477
|
"retrieveRecords",
|
|
478
478
|
"upsertRecords"
|
|
479
|
-
]),
|
|
479
|
+
]), ue = D([
|
|
480
480
|
"application",
|
|
481
481
|
"curatedDataset",
|
|
482
482
|
"database",
|
|
483
483
|
"fileStore"
|
|
484
|
-
]),
|
|
484
|
+
]), de = /* @__PURE__ */ S({ label: E }), fe = D([
|
|
485
485
|
"bidirectional",
|
|
486
486
|
"destination",
|
|
487
487
|
"source",
|
|
488
488
|
"unknown"
|
|
489
|
-
]),
|
|
490
|
-
authMethodId:
|
|
489
|
+
]), pe = /* @__PURE__ */ S({ label: E }), me = /* @__PURE__ */ S({
|
|
490
|
+
authMethodId: D([
|
|
491
491
|
"apiKey",
|
|
492
492
|
"disabled",
|
|
493
493
|
"oAuth2",
|
|
494
494
|
"none"
|
|
495
495
|
]),
|
|
496
|
-
activeConnectionCount: /* @__PURE__ */
|
|
497
|
-
canDescribe: /* @__PURE__ */
|
|
498
|
-
id: /* @__PURE__ */
|
|
499
|
-
label: /* @__PURE__ */
|
|
500
|
-
maxConnectionCount: /* @__PURE__ */
|
|
501
|
-
params: /* @__PURE__ */
|
|
502
|
-
}),
|
|
503
|
-
...
|
|
504
|
-
typeId: /* @__PURE__ */
|
|
505
|
-
actionNames: /* @__PURE__ */
|
|
506
|
-
category: /* @__PURE__ */
|
|
507
|
-
categoryId:
|
|
508
|
-
implementations: /* @__PURE__ */
|
|
509
|
-
usage: /* @__PURE__ */
|
|
510
|
-
usageId: /* @__PURE__ */
|
|
511
|
-
}),
|
|
496
|
+
activeConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),
|
|
497
|
+
canDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),
|
|
498
|
+
id: /* @__PURE__ */ b(/* @__PURE__ */ C()),
|
|
499
|
+
label: /* @__PURE__ */ b(E),
|
|
500
|
+
maxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
501
|
+
params: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))
|
|
502
|
+
}), he = /* @__PURE__ */ S({
|
|
503
|
+
...j,
|
|
504
|
+
typeId: /* @__PURE__ */ _("connector"),
|
|
505
|
+
actionNames: /* @__PURE__ */ h(le),
|
|
506
|
+
category: /* @__PURE__ */ v(de),
|
|
507
|
+
categoryId: ue,
|
|
508
|
+
implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), me),
|
|
509
|
+
usage: /* @__PURE__ */ v(pe),
|
|
510
|
+
usageId: /* @__PURE__ */ v(fe)
|
|
511
|
+
}), M = {
|
|
512
512
|
abortOperation: "Abort Operation",
|
|
513
513
|
auditObjectContent: "Audit Object Content",
|
|
514
514
|
createObject: "Create Object",
|
|
@@ -524,12 +524,12 @@ var ce = O([
|
|
|
524
524
|
retrieveChunks: "Retrieve Chunks",
|
|
525
525
|
retrieveRecords: "Retrieve Records",
|
|
526
526
|
upsertRecords: "Upsert Records"
|
|
527
|
-
},
|
|
527
|
+
}, N = /* @__PURE__ */ new Set([
|
|
528
528
|
"createObject",
|
|
529
529
|
"dropObject",
|
|
530
530
|
"removeRecords",
|
|
531
531
|
"upsertRecords"
|
|
532
|
-
]),
|
|
532
|
+
]), P = /* @__PURE__ */ new Set([
|
|
533
533
|
"auditObjectContent",
|
|
534
534
|
"findObject",
|
|
535
535
|
"getInfo",
|
|
@@ -540,28 +540,28 @@ var ce = O([
|
|
|
540
540
|
"retrieveChunks",
|
|
541
541
|
"retrieveRecords"
|
|
542
542
|
]);
|
|
543
|
-
function
|
|
543
|
+
function F(e) {
|
|
544
544
|
let t = !1, n = !1;
|
|
545
|
-
for (let r of e)
|
|
545
|
+
for (let r of e) P.has(r) && (t = !0), N.has(r) && (n = !0);
|
|
546
546
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function I(e) {
|
|
549
549
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
550
550
|
n += "|:----|:-------:|\n";
|
|
551
|
-
for (let e of Object.keys(
|
|
551
|
+
for (let e of Object.keys(M)) n += `| ${M[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
552
552
|
return n;
|
|
553
553
|
}
|
|
554
|
-
|
|
555
|
-
var
|
|
554
|
+
D(["list"]), { ...j };
|
|
555
|
+
var L = D([
|
|
556
556
|
"list",
|
|
557
557
|
"render",
|
|
558
558
|
"setColorMode"
|
|
559
|
-
]),
|
|
560
|
-
...
|
|
561
|
-
typeId: /* @__PURE__ */
|
|
562
|
-
actionNames: /* @__PURE__ */
|
|
563
|
-
presentations: /* @__PURE__ */
|
|
564
|
-
}),
|
|
559
|
+
]), R = /* @__PURE__ */ S({
|
|
560
|
+
...j,
|
|
561
|
+
typeId: /* @__PURE__ */ _("presenter"),
|
|
562
|
+
actionNames: /* @__PURE__ */ h(L),
|
|
563
|
+
presentations: /* @__PURE__ */ h(ce)
|
|
564
|
+
}), z = "code-health-reports/fallow", ge = `${z}/badge.json`, _e = `${z}/index.md`, B = "<!-- CONTRIBUTING_LICENSE_END -->", V = "<!-- CONTRIBUTING_LICENSE_START -->", ve = "<!-- GOVERNANCE_END -->", H = "<!-- GOVERNANCE_START -->", U = "<!-- QUALITY_SECURITY_END -->", W = "<!-- QUALITY_SECURITY_START -->", ye = "rust/Cargo.toml", be = [
|
|
565
565
|
{
|
|
566
566
|
idPrefix: "dpuse-app",
|
|
567
567
|
typeId: "app",
|
|
@@ -646,9 +646,9 @@ var R = O([
|
|
|
646
646
|
publishedTo: "github",
|
|
647
647
|
uploadGroupName: void 0
|
|
648
648
|
}
|
|
649
|
-
],
|
|
650
|
-
async function
|
|
651
|
-
n !== void 0 &&
|
|
649
|
+
], xe = n(r);
|
|
650
|
+
async function Se(n, r) {
|
|
651
|
+
n !== void 0 && X(`${n} - clear(${r})`);
|
|
652
652
|
let i;
|
|
653
653
|
try {
|
|
654
654
|
i = await e.readdir(r, { withFileTypes: !0 });
|
|
@@ -668,16 +668,16 @@ async function xe(n, r) {
|
|
|
668
668
|
}
|
|
669
669
|
}));
|
|
670
670
|
}
|
|
671
|
-
async function
|
|
671
|
+
async function Ce(t, n) {
|
|
672
672
|
return e.readdir(t, n);
|
|
673
673
|
}
|
|
674
|
-
async function
|
|
675
|
-
t !== void 0 &&
|
|
676
|
-
let { stdout: a, stderr: o } = await
|
|
674
|
+
async function we(t, n, r, i) {
|
|
675
|
+
t !== void 0 && X(`${t} - exec(${n} ${r.join(" ")})`);
|
|
676
|
+
let { stdout: a, stderr: o } = await xe(n, r);
|
|
677
677
|
i === void 0 ? a.trim() && console.log(a.trim()) : await e.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
|
|
678
678
|
}
|
|
679
|
-
async function
|
|
680
|
-
return
|
|
679
|
+
async function Te(e, t, n, r = !1, a = !1) {
|
|
680
|
+
return X(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
|
|
681
681
|
i(t, n, {
|
|
682
682
|
shell: a,
|
|
683
683
|
stdio: "inherit"
|
|
@@ -686,8 +686,8 @@ async function we(e, t, n, r = !1, a = !1) {
|
|
|
686
686
|
});
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
|
-
async function
|
|
690
|
-
return
|
|
689
|
+
async function Ee(n, r, a, o, s = !1) {
|
|
690
|
+
return X(`${n} - spawn(${r} ${a.join(" ")}) > ${o}`), new Promise((n, c) => {
|
|
691
691
|
let l = i(r, a, {
|
|
692
692
|
shell: !1,
|
|
693
693
|
stdio: [
|
|
@@ -709,19 +709,19 @@ async function Te(n, r, a, o, s = !1) {
|
|
|
709
709
|
});
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
|
-
async function
|
|
713
|
-
let e = await
|
|
712
|
+
async function De() {
|
|
713
|
+
let e = await K("./README.md"), t = e.indexOf(H), n = e.indexOf(ve);
|
|
714
714
|
if (t === -1 || n === -1) return;
|
|
715
|
-
let r = `${
|
|
716
|
-
await
|
|
715
|
+
let r = `${W}\n${U}\n\n${V}\n${B}`;
|
|
716
|
+
await Y("README.md", `${e.slice(0, t)}${r}${e.slice(n + 23)}`);
|
|
717
717
|
}
|
|
718
|
-
async function
|
|
718
|
+
async function G(t) {
|
|
719
719
|
return JSON.parse(await e.readFile(t, "utf-8"));
|
|
720
720
|
}
|
|
721
|
-
async function
|
|
721
|
+
async function K(t) {
|
|
722
722
|
return await e.readFile(t, "utf-8");
|
|
723
723
|
}
|
|
724
|
-
async function
|
|
724
|
+
async function q(t) {
|
|
725
725
|
try {
|
|
726
726
|
return await e.readFile(t, "utf-8");
|
|
727
727
|
} catch (e) {
|
|
@@ -729,30 +729,30 @@ async function J(t) {
|
|
|
729
729
|
throw e;
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
async function
|
|
732
|
+
async function J(n, r) {
|
|
733
733
|
await e.mkdir(t.dirname(n), { recursive: !0 }), await e.writeFile(n, `${JSON.stringify(r, void 0, 4)}\n`, "utf-8");
|
|
734
734
|
}
|
|
735
|
-
async function
|
|
736
|
-
await
|
|
735
|
+
async function Oe(e, t, n) {
|
|
736
|
+
await Y("README.md", ze(await K("./README.md"), e, t, n));
|
|
737
737
|
}
|
|
738
|
-
async function
|
|
738
|
+
async function Y(t, n) {
|
|
739
739
|
await e.writeFile(t, n, "utf-8");
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function ke(e) {
|
|
742
742
|
console.info("\x1B[36m────────────────────────────────────────────────────────────────────────────────"), console.info(`▶️ ${e}[0m`);
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ae(e) {
|
|
745
745
|
console.info(`✅ ${e}`);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function X(e) {
|
|
748
748
|
console.info(e);
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
let t =
|
|
750
|
+
function je(e) {
|
|
751
|
+
let t = be.find((t) => e.startsWith(t.idPrefix));
|
|
752
752
|
if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
|
|
753
753
|
return t;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function Me(e, t) {
|
|
756
756
|
let n = e.repository, r = typeof n == "string" ? n : n?.url;
|
|
757
757
|
if (r == null || r === "") throw Error(`package.json 'repository' field is required to ${t}.`);
|
|
758
758
|
let i = r.replace(/^git\+/, "").replace(/\.git$/, ""), a = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(i);
|
|
@@ -762,56 +762,64 @@ function je(e, t) {
|
|
|
762
762
|
repo: a[2]
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
async function
|
|
765
|
+
async function Ne(t) {
|
|
766
766
|
return await e.stat(t);
|
|
767
767
|
}
|
|
768
|
-
async function
|
|
768
|
+
async function Pe(e, t, n) {
|
|
769
769
|
switch (n.typeId) {
|
|
770
|
-
case "connector": return await
|
|
771
|
-
case "presenter": return await
|
|
772
|
-
default: return await
|
|
770
|
+
case "connector": return await Ie(e, t);
|
|
771
|
+
case "presenter": return await Le(e, t);
|
|
772
|
+
default: return await Re(e, t);
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
async function
|
|
776
|
-
if (
|
|
775
|
+
async function Fe(e, t, n = "./") {
|
|
776
|
+
if (X(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
777
777
|
else {
|
|
778
778
|
let e = t.version, n = t.version.split(".");
|
|
779
779
|
t.version = `${n[0] ?? "unknown"}.${n[1] ?? "unknown"}.${String(Number(n[2]) + 1)}`, console.info(`Project version bumped from '${e}' to '${t.version}'.`);
|
|
780
780
|
}
|
|
781
|
-
await
|
|
781
|
+
await J(`${n}package.json`, t);
|
|
782
782
|
}
|
|
783
|
-
async function
|
|
783
|
+
async function Z(e) {
|
|
784
784
|
let { default: t } = await import("typescript"), n = t.createSourceFile("index.ts", e, t.ScriptTarget.Latest, !0), r = [], i = (e) => {
|
|
785
785
|
t.isMethodDeclaration(e) && t.isClassLike(e.parent) && t.isIdentifier(e.name) && ((e.modifiers?.some((e) => e.kind === t.SyntaxKind.PrivateKeyword) ?? !1) || r.push(e.name.text)), t.forEachChild(e, i);
|
|
786
786
|
};
|
|
787
787
|
return i(n), r;
|
|
788
788
|
}
|
|
789
|
-
async function Fe(e, t) {
|
|
790
|
-
Z(`${e} Build connector project configuration`);
|
|
791
|
-
let [n, r] = await Promise.all([K("config.json"), q("src/index.ts")]), i = /* @__PURE__ */ s(me, n);
|
|
792
|
-
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
793
|
-
let a = await Q(r);
|
|
794
|
-
return await $(t, n, a, I(a));
|
|
795
|
-
}
|
|
796
789
|
async function Ie(e, t) {
|
|
797
|
-
|
|
798
|
-
let [n, r] = await Promise.all([
|
|
790
|
+
X(`${e} Build connector project configuration`);
|
|
791
|
+
let [n, r] = await Promise.all([G("config.json"), K("src/index.ts")]), i = /* @__PURE__ */ s(he, n);
|
|
799
792
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
800
|
-
|
|
793
|
+
let a = await Z(r);
|
|
794
|
+
return await Q(t, n, a, F(a));
|
|
801
795
|
}
|
|
802
796
|
async function Le(e, t) {
|
|
803
|
-
|
|
804
|
-
let n = await
|
|
805
|
-
|
|
797
|
+
X(`${e} Build presenter project configuration`);
|
|
798
|
+
let [n, r] = await Promise.all([G("config.json"), K("src/index.ts")]), i = /* @__PURE__ */ s(R, n);
|
|
799
|
+
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
800
|
+
return await Q(t, n, await Z(r));
|
|
801
|
+
}
|
|
802
|
+
async function Re(e, t) {
|
|
803
|
+
X(`${e} Build project configuration`);
|
|
804
|
+
let n = await G("config.json");
|
|
805
|
+
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await q("logo.svg"), n.iconDark ??= await q("logoDark.svg"), await J("config.json", $(n)), n;
|
|
806
|
+
}
|
|
807
|
+
async function Q(e, t, n, r) {
|
|
808
|
+
return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await J("config.json", $(t)), t;
|
|
806
809
|
}
|
|
807
|
-
|
|
808
|
-
|
|
810
|
+
function $(e) {
|
|
811
|
+
let t = [
|
|
812
|
+
"id",
|
|
813
|
+
"label",
|
|
814
|
+
"description"
|
|
815
|
+
], n = Object.entries(e), r = t.flatMap((e) => n.filter(([t]) => t === e)), i = n.filter(([e]) => !t.includes(e)).toSorted(([e], [t]) => e.localeCompare(t, "en", { sensitivity: "base" }));
|
|
816
|
+
return Object.fromEntries([...r, ...i]);
|
|
809
817
|
}
|
|
810
|
-
function
|
|
818
|
+
function ze(e, t, n, r) {
|
|
811
819
|
let i = e.indexOf(n), a = e.indexOf(r);
|
|
812
820
|
if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
|
|
813
821
|
let o = t.trim();
|
|
814
822
|
return `${e.slice(0, Math.max(0, i + n.length))}\n\n${o}\n\n${e.slice(Math.max(0, a))}`;
|
|
815
823
|
}
|
|
816
824
|
//#endregion
|
|
817
|
-
export {
|
|
825
|
+
export { I as A, Me as C, Oe as D, J as E, Y as O, q as S, Ee as T, Ae as _, _e as a, G as b, ye as c, Se as d, we as f, ke as g, Ne as h, z as i, F as k, Pe as l, je as m, V as n, U as o, Ce as p, ge as r, W as s, B as t, Fe as u, X as v, Te as w, K as x, De as y };
|