@tstdl/base 0.83.22 → 0.83.24
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/package.json +3 -3
- package/schema/utils/schema.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tstdl/base",
|
|
3
|
-
"version": "0.83.
|
|
3
|
+
"version": "0.83.24",
|
|
4
4
|
"author": "Patrick Hein",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"typescript": "5.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@elastic/elasticsearch": "^8.
|
|
46
|
+
"@elastic/elasticsearch": "^8.7",
|
|
47
47
|
"@koa/router": "^12.0",
|
|
48
48
|
"@tstdl/angular": "^0.83",
|
|
49
49
|
"@zxcvbn-ts/core": "2.2",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"nodemailer": "^6.9",
|
|
61
61
|
"preact": "^10.13",
|
|
62
62
|
"preact-render-to-string": "^5.2",
|
|
63
|
-
"puppeteer": "^19.
|
|
63
|
+
"puppeteer": "^19.9",
|
|
64
64
|
"undici": "^5.21",
|
|
65
65
|
"urlpattern-polyfill": "^7.0"
|
|
66
66
|
},
|
package/schema/utils/schema.js
CHANGED
|
@@ -57,8 +57,8 @@ function _normalizeSchema(schema) {
|
|
|
57
57
|
throw new Error("Unsupported schema.");
|
|
58
58
|
}
|
|
59
59
|
function _normalizeObjectSchema(schema) {
|
|
60
|
-
const unknownPropertiesSchema = (0, import_type_guards.isDefined)(schema.unknownProperties) ? (0, import_types.schemaTestablesToSchemas)(schema.unknownProperties) : void 0;
|
|
61
|
-
const unknownPropertiesKeySchema = (0, import_type_guards.isDefined)(schema.unknownPropertiesKey) ? (0, import_types.schemaTestablesToSchemas)(schema.unknownPropertiesKey) : void 0;
|
|
60
|
+
const unknownPropertiesSchema = (0, import_type_guards.isDefined)(schema.unknownProperties) && (!(0, import_type_guards.isArray)(schema.unknownProperties) || schema.unknownProperties.length > 0) ? (0, import_types.schemaTestablesToSchemas)(schema.unknownProperties) : void 0;
|
|
61
|
+
const unknownPropertiesKeySchema = (0, import_type_guards.isDefined)(schema.unknownPropertiesKey) && (!(0, import_type_guards.isArray)(schema.unknownPropertiesKey) || schema.unknownPropertiesKey.length > 0) ? (0, import_types.schemaTestablesToSchemas)(schema.unknownPropertiesKey) : void 0;
|
|
62
62
|
const allowUnknownProperties = (0, import_type_guards.isArray)(unknownPropertiesSchema) && unknownPropertiesSchema.length > 0 || (0, import_type_guards.isDefined)(unknownPropertiesSchema);
|
|
63
63
|
const normalizedSchema = {
|
|
64
64
|
factory: schema.factory,
|