tsbuffer-validator
Advanced tools
Comparing version 2.1.0 to 2.1.1
/*! | ||
* TSBuffer Validator v2.1.0 | ||
* TSBuffer Validator v2.1.1 | ||
* ----------------------------------------- | ||
@@ -4,0 +4,0 @@ * MIT LICENSE |
/*! | ||
* TSBuffer Validator v2.1.0 | ||
* TSBuffer Validator v2.1.1 | ||
* ----------------------------------------- | ||
@@ -113,3 +113,3 @@ * MIT LICENSE | ||
ProtoHelper.prototype.isTypeReference = function (schema) { | ||
return schema.type === tsbufferSchema.SchemaType.Reference || schema.type === tsbufferSchema.SchemaType.IndexedAccess; | ||
return schema.type === tsbufferSchema.SchemaType.Reference || schema.type === tsbufferSchema.SchemaType.IndexedAccess || schema.type === tsbufferSchema.SchemaType.Keyof; | ||
}; | ||
@@ -608,2 +608,3 @@ ProtoHelper.prototype._getSchemaUuid = function (schema) { | ||
case tsbufferSchema.SchemaType.Reference: | ||
case tsbufferSchema.SchemaType.Keyof: | ||
vRes = this._validateReferenceType(value, schema, options); | ||
@@ -635,2 +636,3 @@ break; | ||
default: | ||
// @ts-expect-error | ||
throw new Error("Unsupported schema type: ".concat(schema.type)); | ||
@@ -637,0 +639,0 @@ } |
{ | ||
"name": "tsbuffer-validator", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Validator for TSBuffer values", | ||
@@ -63,13 +63,13 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@microsoft/api-documenter": "^7.15.3", | ||
"@microsoft/api-extractor": "^7.19.4", | ||
"@microsoft/api-documenter": "^7.19.14", | ||
"@microsoft/api-extractor": "^7.31.2", | ||
"@types/mocha": "^8.2.3", | ||
"@types/node": "^15.14.9", | ||
"mocha": "^9.2.1", | ||
"mocha": "^9.2.2", | ||
"nyc": "^15.1.0", | ||
"rollup": "^2.68.0", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"ts-node": "^10.5.0", | ||
"typescript": "^4.5.5" | ||
"rollup": "^2.79.1", | ||
"rollup-plugin-typescript2": "^0.34.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.8.3" | ||
} | ||
} |
# TSBuffer Validator | ||
Runtime type validator for [TSBuffer](https://github.com/k8w/tsbuffer) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109523
2322