@timeback/core 0.1.7-beta.20260227023028 → 0.1.7-beta.20260303225507
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/index.js +50 -42
- package/dist/types.js +0 -8
- package/dist/utils.js +8 -4
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -5762,7 +5762,7 @@ function handleIntersectionResults(result, left, right) {
|
|
|
5762
5762
|
result.issues.push(iss);
|
|
5763
5763
|
}
|
|
5764
5764
|
}
|
|
5765
|
-
const bothKeys = [...unrecKeys].filter(([,
|
|
5765
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
5766
5766
|
if (bothKeys.length && unrecIssue) {
|
|
5767
5767
|
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
5768
5768
|
}
|
|
@@ -12097,8 +12097,8 @@ class $ZodRegistry {
|
|
|
12097
12097
|
if (p) {
|
|
12098
12098
|
const pm = { ...this.get(p) ?? {} };
|
|
12099
12099
|
delete pm.id;
|
|
12100
|
-
const
|
|
12101
|
-
return Object.keys(
|
|
12100
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
12101
|
+
return Object.keys(f).length ? f : undefined;
|
|
12102
12102
|
}
|
|
12103
12103
|
return this._map.get(schema);
|
|
12104
12104
|
}
|
|
@@ -22979,7 +22979,7 @@ function handleIntersectionResults2(result, left, right) {
|
|
|
22979
22979
|
result.issues.push(iss);
|
|
22980
22980
|
}
|
|
22981
22981
|
}
|
|
22982
|
-
const bothKeys = [...unrecKeys].filter(([,
|
|
22982
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
22983
22983
|
if (bothKeys.length && unrecIssue) {
|
|
22984
22984
|
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
22985
22985
|
}
|
|
@@ -29314,8 +29314,8 @@ class $ZodRegistry2 {
|
|
|
29314
29314
|
if (p) {
|
|
29315
29315
|
const pm = { ...this.get(p) ?? {} };
|
|
29316
29316
|
delete pm.id;
|
|
29317
|
-
const
|
|
29318
|
-
return Object.keys(
|
|
29317
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
29318
|
+
return Object.keys(f).length ? f : undefined;
|
|
29319
29319
|
}
|
|
29320
29320
|
return this._map.get(schema);
|
|
29321
29321
|
}
|
|
@@ -39915,7 +39915,7 @@ function handleIntersectionResults3(result, left, right) {
|
|
|
39915
39915
|
result.issues.push(iss);
|
|
39916
39916
|
}
|
|
39917
39917
|
}
|
|
39918
|
-
const bothKeys = [...unrecKeys].filter(([,
|
|
39918
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
39919
39919
|
if (bothKeys.length && unrecIssue) {
|
|
39920
39920
|
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
39921
39921
|
}
|
|
@@ -46250,8 +46250,8 @@ class $ZodRegistry3 {
|
|
|
46250
46250
|
if (p) {
|
|
46251
46251
|
const pm = { ...this.get(p) ?? {} };
|
|
46252
46252
|
delete pm.id;
|
|
46253
|
-
const
|
|
46254
|
-
return Object.keys(
|
|
46253
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
46254
|
+
return Object.keys(f).length ? f : undefined;
|
|
46255
46255
|
}
|
|
46256
46256
|
return this._map.get(schema);
|
|
46257
46257
|
}
|
|
@@ -53473,7 +53473,11 @@ function validateNonEmptyString3(value, name) {
|
|
|
53473
53473
|
var EDUBRIDGE_ENV_VARS = {
|
|
53474
53474
|
baseUrl: ["TIMEBACK_API_BASE_URL", "TIMEBACK_BASE_URL", "EDUBRIDGE_BASE_URL"],
|
|
53475
53475
|
clientId: ["TIMEBACK_API_CLIENT_ID", "TIMEBACK_CLIENT_ID", "EDUBRIDGE_CLIENT_ID"],
|
|
53476
|
-
clientSecret: [
|
|
53476
|
+
clientSecret: [
|
|
53477
|
+
"TIMEBACK_API_CLIENT_SECRET",
|
|
53478
|
+
"TIMEBACK_CLIENT_SECRET",
|
|
53479
|
+
"EDUBRIDGE_CLIENT_SECRET"
|
|
53480
|
+
],
|
|
53477
53481
|
authUrl: ["TIMEBACK_API_AUTH_URL", "TIMEBACK_AUTH_URL", "EDUBRIDGE_TOKEN_URL"]
|
|
53478
53482
|
};
|
|
53479
53483
|
function resolveToProvider24(config4, registry4 = DEFAULT_PROVIDER_REGISTRY4) {
|
|
@@ -56938,7 +56942,7 @@ function handleIntersectionResults4(result, left, right) {
|
|
|
56938
56942
|
result.issues.push(iss);
|
|
56939
56943
|
}
|
|
56940
56944
|
}
|
|
56941
|
-
const bothKeys = [...unrecKeys].filter(([,
|
|
56945
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
56942
56946
|
if (bothKeys.length && unrecIssue) {
|
|
56943
56947
|
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
56944
56948
|
}
|
|
@@ -63273,8 +63277,8 @@ class $ZodRegistry4 {
|
|
|
63273
63277
|
if (p) {
|
|
63274
63278
|
const pm = { ...this.get(p) ?? {} };
|
|
63275
63279
|
delete pm.id;
|
|
63276
|
-
const
|
|
63277
|
-
return Object.keys(
|
|
63280
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
63281
|
+
return Object.keys(f).length ? f : undefined;
|
|
63278
63282
|
}
|
|
63279
63283
|
return this._map.get(schema);
|
|
63280
63284
|
}
|
|
@@ -70089,14 +70093,14 @@ __export6(exports_util8, {
|
|
|
70089
70093
|
TextEncoder: () => TextEncoder6,
|
|
70090
70094
|
TextDecoder: () => TextDecoder6
|
|
70091
70095
|
});
|
|
70092
|
-
function format6(
|
|
70093
|
-
if (!isString6(
|
|
70094
|
-
var objects = [
|
|
70096
|
+
function format6(f, ...args) {
|
|
70097
|
+
if (!isString6(f)) {
|
|
70098
|
+
var objects = [f];
|
|
70095
70099
|
for (var i = 0;i < args.length; i++)
|
|
70096
70100
|
objects.push(inspect6(args[i]));
|
|
70097
70101
|
return objects.join(" ");
|
|
70098
70102
|
}
|
|
70099
|
-
var i = 0, len = args.length, str = String(
|
|
70103
|
+
var i = 0, len = args.length, str = String(f).replace(formatRegExp6, function(x2) {
|
|
70100
70104
|
if (x2 === "%%")
|
|
70101
70105
|
return "%";
|
|
70102
70106
|
if (i >= len)
|
|
@@ -72017,7 +72021,11 @@ function validateSourcedId2(sourcedId, context) {
|
|
|
72017
72021
|
var ONEROSTER_ENV_VARS = {
|
|
72018
72022
|
baseUrl: ["TIMEBACK_API_BASE_URL", "TIMEBACK_BASE_URL", "ONEROSTER_BASE_URL"],
|
|
72019
72023
|
clientId: ["TIMEBACK_API_CLIENT_ID", "TIMEBACK_CLIENT_ID", "ONEROSTER_CLIENT_ID"],
|
|
72020
|
-
clientSecret: [
|
|
72024
|
+
clientSecret: [
|
|
72025
|
+
"TIMEBACK_API_CLIENT_SECRET",
|
|
72026
|
+
"TIMEBACK_CLIENT_SECRET",
|
|
72027
|
+
"ONEROSTER_CLIENT_SECRET"
|
|
72028
|
+
],
|
|
72021
72029
|
authUrl: ["TIMEBACK_API_AUTH_URL", "TIMEBACK_AUTH_URL", "ONEROSTER_TOKEN_URL"]
|
|
72022
72030
|
};
|
|
72023
72031
|
function resolveToProvider25(config5, registry5 = DEFAULT_PROVIDER_REGISTRY6) {
|
|
@@ -75409,7 +75417,7 @@ function handleIntersectionResults5(result, left, right) {
|
|
|
75409
75417
|
result.issues.push(iss);
|
|
75410
75418
|
}
|
|
75411
75419
|
}
|
|
75412
|
-
const bothKeys = [...unrecKeys].filter(([,
|
|
75420
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
75413
75421
|
if (bothKeys.length && unrecIssue) {
|
|
75414
75422
|
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
75415
75423
|
}
|
|
@@ -81744,8 +81752,8 @@ class $ZodRegistry5 {
|
|
|
81744
81752
|
if (p) {
|
|
81745
81753
|
const pm = { ...this.get(p) ?? {} };
|
|
81746
81754
|
delete pm.id;
|
|
81747
|
-
const
|
|
81748
|
-
return Object.keys(
|
|
81755
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
81756
|
+
return Object.keys(f).length ? f : undefined;
|
|
81749
81757
|
}
|
|
81750
81758
|
return this._map.get(schema);
|
|
81751
81759
|
}
|
|
@@ -88814,14 +88822,14 @@ __export7(exports_util9, {
|
|
|
88814
88822
|
TextEncoder: () => TextEncoder7,
|
|
88815
88823
|
TextDecoder: () => TextDecoder7
|
|
88816
88824
|
});
|
|
88817
|
-
function format7(
|
|
88818
|
-
if (!isString7(
|
|
88819
|
-
var objects = [
|
|
88825
|
+
function format7(f, ...args) {
|
|
88826
|
+
if (!isString7(f)) {
|
|
88827
|
+
var objects = [f];
|
|
88820
88828
|
for (var i = 0;i < args.length; i++)
|
|
88821
88829
|
objects.push(inspect7(args[i]));
|
|
88822
88830
|
return objects.join(" ");
|
|
88823
88831
|
}
|
|
88824
|
-
var i = 0, len = args.length, str = String(
|
|
88832
|
+
var i = 0, len = args.length, str = String(f).replace(formatRegExp7, function(x2) {
|
|
88825
88833
|
if (x2 === "%%")
|
|
88826
88834
|
return "%";
|
|
88827
88835
|
if (i >= len)
|
|
@@ -94093,7 +94101,7 @@ function handleIntersectionResults6(result, left, right) {
|
|
|
94093
94101
|
result.issues.push(iss);
|
|
94094
94102
|
}
|
|
94095
94103
|
}
|
|
94096
|
-
const bothKeys = [...unrecKeys].filter(([,
|
|
94104
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
94097
94105
|
if (bothKeys.length && unrecIssue) {
|
|
94098
94106
|
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
94099
94107
|
}
|
|
@@ -100428,8 +100436,8 @@ class $ZodRegistry6 {
|
|
|
100428
100436
|
if (p) {
|
|
100429
100437
|
const pm = { ...this.get(p) ?? {} };
|
|
100430
100438
|
delete pm.id;
|
|
100431
|
-
const
|
|
100432
|
-
return Object.keys(
|
|
100439
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
100440
|
+
return Object.keys(f).length ? f : undefined;
|
|
100433
100441
|
}
|
|
100434
100442
|
return this._map.get(schema);
|
|
100435
100443
|
}
|
|
@@ -106274,14 +106282,14 @@ __export8(exports_util10, {
|
|
|
106274
106282
|
TextEncoder: () => TextEncoder8,
|
|
106275
106283
|
TextDecoder: () => TextDecoder8
|
|
106276
106284
|
});
|
|
106277
|
-
function format8(
|
|
106278
|
-
if (!isString8(
|
|
106279
|
-
var objects = [
|
|
106285
|
+
function format8(f, ...args) {
|
|
106286
|
+
if (!isString8(f)) {
|
|
106287
|
+
var objects = [f];
|
|
106280
106288
|
for (var i = 0;i < args.length; i++)
|
|
106281
106289
|
objects.push(inspect8(args[i]));
|
|
106282
106290
|
return objects.join(" ");
|
|
106283
106291
|
}
|
|
106284
|
-
var i = 0, len = args.length, str = String(
|
|
106292
|
+
var i = 0, len = args.length, str = String(f).replace(formatRegExp8, function(x2) {
|
|
106285
106293
|
if (x2 === "%%")
|
|
106286
106294
|
return "%";
|
|
106287
106295
|
if (i >= len)
|
|
@@ -111569,7 +111577,7 @@ function handleIntersectionResults7(result, left, right) {
|
|
|
111569
111577
|
result.issues.push(iss);
|
|
111570
111578
|
}
|
|
111571
111579
|
}
|
|
111572
|
-
const bothKeys = [...unrecKeys].filter(([,
|
|
111580
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
111573
111581
|
if (bothKeys.length && unrecIssue) {
|
|
111574
111582
|
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
111575
111583
|
}
|
|
@@ -117904,8 +117912,8 @@ class $ZodRegistry7 {
|
|
|
117904
117912
|
if (p) {
|
|
117905
117913
|
const pm = { ...this.get(p) ?? {} };
|
|
117906
117914
|
delete pm.id;
|
|
117907
|
-
const
|
|
117908
|
-
return Object.keys(
|
|
117915
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
117916
|
+
return Object.keys(f).length ? f : undefined;
|
|
117909
117917
|
}
|
|
117910
117918
|
return this._map.get(schema);
|
|
117911
117919
|
}
|
|
@@ -123879,14 +123887,14 @@ __export9(exports_util11, {
|
|
|
123879
123887
|
TextEncoder: () => TextEncoder9,
|
|
123880
123888
|
TextDecoder: () => TextDecoder9
|
|
123881
123889
|
});
|
|
123882
|
-
function format9(
|
|
123883
|
-
if (!isString9(
|
|
123884
|
-
var objects = [
|
|
123890
|
+
function format9(f, ...args) {
|
|
123891
|
+
if (!isString9(f)) {
|
|
123892
|
+
var objects = [f];
|
|
123885
123893
|
for (var i = 0;i < args.length; i++)
|
|
123886
123894
|
objects.push(inspect9(args[i]));
|
|
123887
123895
|
return objects.join(" ");
|
|
123888
123896
|
}
|
|
123889
|
-
var i = 0, len = args.length, str = String(
|
|
123897
|
+
var i = 0, len = args.length, str = String(f).replace(formatRegExp9, function(x2) {
|
|
123890
123898
|
if (x2 === "%%")
|
|
123891
123899
|
return "%";
|
|
123892
123900
|
if (i >= len)
|
|
@@ -128952,7 +128960,7 @@ function handleIntersectionResults8(result, left, right) {
|
|
|
128952
128960
|
result.issues.push(iss);
|
|
128953
128961
|
}
|
|
128954
128962
|
}
|
|
128955
|
-
const bothKeys = [...unrecKeys].filter(([,
|
|
128963
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
128956
128964
|
if (bothKeys.length && unrecIssue) {
|
|
128957
128965
|
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
128958
128966
|
}
|
|
@@ -135287,8 +135295,8 @@ class $ZodRegistry8 {
|
|
|
135287
135295
|
if (p) {
|
|
135288
135296
|
const pm = { ...this.get(p) ?? {} };
|
|
135289
135297
|
delete pm.id;
|
|
135290
|
-
const
|
|
135291
|
-
return Object.keys(
|
|
135298
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
135299
|
+
return Object.keys(f).length ? f : undefined;
|
|
135292
135300
|
}
|
|
135293
135301
|
return this._map.get(schema);
|
|
135294
135302
|
}
|
package/dist/types.js
CHANGED
|
@@ -21,14 +21,6 @@ var exports_public_types2 = {};
|
|
|
21
21
|
__export(exports_public_types2, {
|
|
22
22
|
CALIPER_DATA_VERSION: () => CALIPER_DATA_VERSION
|
|
23
23
|
});
|
|
24
|
-
var TypeScriptPackages = {
|
|
25
|
-
tsc: "tsc",
|
|
26
|
-
nativePreview: "@typescript/native-preview"
|
|
27
|
-
};
|
|
28
|
-
var TYPESCRIPT_RUNNER = {
|
|
29
|
-
package: TypeScriptPackages.nativePreview,
|
|
30
|
-
bin: "tsgo"
|
|
31
|
-
};
|
|
32
24
|
var CALIPER_DATA_VERSION = "http://purl.imsglobal.org/ctx/caliper/v1p2";
|
|
33
25
|
// ../webhooks/dist/public-types.js
|
|
34
26
|
var exports_public_types3 = {};
|
package/dist/utils.js
CHANGED
|
@@ -1757,7 +1757,11 @@ function validateNonEmptyString(value, name) {
|
|
|
1757
1757
|
var EDUBRIDGE_ENV_VARS = {
|
|
1758
1758
|
baseUrl: ["TIMEBACK_API_BASE_URL", "TIMEBACK_BASE_URL", "EDUBRIDGE_BASE_URL"],
|
|
1759
1759
|
clientId: ["TIMEBACK_API_CLIENT_ID", "TIMEBACK_CLIENT_ID", "EDUBRIDGE_CLIENT_ID"],
|
|
1760
|
-
clientSecret: [
|
|
1760
|
+
clientSecret: [
|
|
1761
|
+
"TIMEBACK_API_CLIENT_SECRET",
|
|
1762
|
+
"TIMEBACK_CLIENT_SECRET",
|
|
1763
|
+
"EDUBRIDGE_CLIENT_SECRET"
|
|
1764
|
+
],
|
|
1761
1765
|
authUrl: ["TIMEBACK_API_AUTH_URL", "TIMEBACK_AUTH_URL", "EDUBRIDGE_TOKEN_URL"]
|
|
1762
1766
|
};
|
|
1763
1767
|
function resolveToProvider2(config, registry = DEFAULT_PROVIDER_REGISTRY) {
|
|
@@ -5222,7 +5226,7 @@ function handleIntersectionResults(result, left, right) {
|
|
|
5222
5226
|
result.issues.push(iss);
|
|
5223
5227
|
}
|
|
5224
5228
|
}
|
|
5225
|
-
const bothKeys = [...unrecKeys].filter(([,
|
|
5229
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
5226
5230
|
if (bothKeys.length && unrecIssue) {
|
|
5227
5231
|
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
5228
5232
|
}
|
|
@@ -11557,8 +11561,8 @@ class $ZodRegistry {
|
|
|
11557
11561
|
if (p) {
|
|
11558
11562
|
const pm = { ...this.get(p) ?? {} };
|
|
11559
11563
|
delete pm.id;
|
|
11560
|
-
const
|
|
11561
|
-
return Object.keys(
|
|
11564
|
+
const f = { ...pm, ...this._map.get(schema) };
|
|
11565
|
+
return Object.keys(f).length ? f : undefined;
|
|
11562
11566
|
}
|
|
11563
11567
|
return this._map.get(schema);
|
|
11564
11568
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timeback/core",
|
|
3
|
-
"version": "0.1.7-beta.
|
|
3
|
+
"version": "0.1.7-beta.20260303225507",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "bun build.ts",
|
|
30
|
-
"test": "bun test --no-env-file unit.test.ts"
|
|
30
|
+
"test": "bun test --no-env-file unit.test.ts",
|
|
31
|
+
"test:coverage": "bun test --coverage --coverage-reporter=lcov --no-env-file unit.test.ts"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@timeback/caliper": "0.1.6",
|