tsbuffer-validator
Advanced tools
Comparing version 2.1.0-dev.0 to 2.1.0-dev.2
/*! | ||
* TSBuffer Validator v2.1.0-dev.0 | ||
* TSBuffer Validator v2.1.0-dev.2 | ||
* ----------------------------------------- | ||
@@ -27,7 +27,6 @@ * MIT LICENSE | ||
/** @public */ | ||
export declare class ProtoHelper { | ||
readonly proto: TSBufferProto; | ||
constructor(proto: TSBufferProto); | ||
/** 将ReferenceTYpeSchema层层转换为它最终实际引用的类型 */ | ||
/** 将ReferenceTypeSchema层层转换为它最终实际引用的类型 */ | ||
parseReference(schema: TSBufferSchema): Exclude<TSBufferSchema, TypeReference>; | ||
@@ -34,0 +33,0 @@ isInterface(schema: TSBufferSchema, excludeReference?: boolean): schema is InterfaceTypeSchema | InterfaceReference; |
/*! | ||
* TSBuffer Validator v2.1.0-dev.0 | ||
* TSBuffer Validator v2.1.0-dev.2 | ||
* ----------------------------------------- | ||
@@ -16,3 +16,2 @@ * MIT LICENSE | ||
/** @public */ | ||
var ProtoHelper = /** @class */ (function () { | ||
@@ -25,3 +24,3 @@ function ProtoHelper(proto) { | ||
} | ||
/** 将ReferenceTYpeSchema层层转换为它最终实际引用的类型 */ | ||
/** 将ReferenceTypeSchema层层转换为它最终实际引用的类型 */ | ||
ProtoHelper.prototype.parseReference = function (schema) { | ||
@@ -85,3 +84,3 @@ // Reference | ||
return { | ||
type: 'Union', | ||
type: tsbufferSchema.SchemaType.Union, | ||
members: flatInterface.properties.map(function (v, i) { return ({ | ||
@@ -88,0 +87,0 @@ id: i, |
{ | ||
"name": "tsbuffer-validator", | ||
"version": "2.1.0-dev.0", | ||
"version": "2.1.0-dev.2", | ||
"description": "Validator for TSBuffer values", | ||
@@ -44,3 +44,3 @@ "main": "index.js", | ||
"k8w-extend-native": "^1.4.6", | ||
"tsbuffer-schema": "^2.2.0-dev.0", | ||
"tsbuffer-schema": "^2.2.0-dev.1", | ||
"tslib": "^2.3.1" | ||
@@ -70,7 +70,7 @@ }, | ||
"nyc": "^15.1.0", | ||
"rollup": "^2.67.0", | ||
"rollup": "^2.67.1", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"ts-node": "^10.4.0", | ||
"ts-node": "^10.5.0", | ||
"typescript": "^4.5.5" | ||
} | ||
} |
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
107576
2289
Updatedtsbuffer-schema@^2.2.0-dev.1