Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsbuffer-validator

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsbuffer-validator - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

index.d.ts
/*!
* 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc