tsbuffer-schema
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -6,11 +6,4 @@ /** 任意类型 */ | ||
/** TypeScript NonNullable<T> */ | ||
interface NonNullableTypeSchema { | ||
type: 'NonNullable'; | ||
/** 引用目标的SchemaID */ | ||
target: string; | ||
} | ||
declare type TSBufferSchema = BooleanTypeSchema | NumberTypeSchema | StringTypeSchema | ArrayTypeSchema | TupleTypeSchema | EnumTypeSchema | AnyTypeSchema | LiteralTypeSchema | ObjectTypeSchema | InterfaceTypeSchema | BufferTypeSchema | IndexedAccessTypeSchema | ReferenceTypeSchema | UnionTypeSchema | IntersectionTypeSchema | PickTypeSchema | PartialTypeSchema | OmitTypeSchema | OverwriteTypeSchema | NonNullableTypeSchema | DateTypeSchema; | ||
declare type TSBufferSchema = BooleanTypeSchema | NumberTypeSchema | StringTypeSchema | ArrayTypeSchema | TupleTypeSchema | EnumTypeSchema | AnyTypeSchema | LiteralTypeSchema | NonPrimitiveTypeSchema | InterfaceTypeSchema | BufferTypeSchema | IndexedAccessTypeSchema | ReferenceTypeSchema | UnionTypeSchema | IntersectionTypeSchema | PickTypeSchema | PartialTypeSchema | OmitTypeSchema | OverwriteTypeSchema | NonNullableTypeSchema | DateTypeSchema; | ||
interface ArrayTypeSchema { | ||
@@ -155,7 +148,14 @@ type: 'Array'; | ||
/** TypeScript NonNullable<T> */ | ||
interface NonNullableTypeSchema { | ||
type: 'NonNullable'; | ||
/** 引用目标的SchemaID */ | ||
target: string; | ||
} | ||
/** | ||
* let a: object; | ||
*/ | ||
interface NonPrimitiveTypeSchema { | ||
type: 'NonPrimitive'; | ||
interface ObjectTypeSchema { | ||
type: 'Object'; | ||
} | ||
@@ -192,3 +192,3 @@ | ||
Literal = "Literal", | ||
NonPrimitive = "NonPrimitive", | ||
Object = "Object", | ||
Interface = "Interface", | ||
@@ -220,2 +220,2 @@ Buffer = "Buffer", | ||
export { AnyTypeSchema, ArrayTypeSchema, BooleanTypeSchema, BufferTypeSchema, DateTypeSchema, EnumTypeSchema, IndexedAccessTypeSchema, InterfaceReference, InterfaceTypeSchema, IntersectionTypeSchema, LiteralTypeSchema, NonNullableTypeSchema, NonPrimitiveTypeSchema, NumberTypeSchema, OmitTypeSchema, OverwriteTypeSchema, PartialTypeSchema, PickTypeSchema, ReferenceTypeSchema, SchemaType, StringTypeSchema, TSBufferProto, TSBufferSchema, TupleTypeSchema, TypeReference, UnionTypeSchema }; | ||
export { AnyTypeSchema, ArrayTypeSchema, BooleanTypeSchema, BufferTypeSchema, DateTypeSchema, EnumTypeSchema, IndexedAccessTypeSchema, InterfaceReference, InterfaceTypeSchema, IntersectionTypeSchema, LiteralTypeSchema, NonNullableTypeSchema, NumberTypeSchema, ObjectTypeSchema, OmitTypeSchema, OverwriteTypeSchema, PartialTypeSchema, PickTypeSchema, ReferenceTypeSchema, SchemaType, StringTypeSchema, TSBufferProto, TSBufferSchema, TupleTypeSchema, TypeReference, UnionTypeSchema }; |
{ | ||
"name": "tsbuffer-schema", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "TSBuffer schema declarations", | ||
@@ -14,4 +14,3 @@ "main": "index.cjs", | ||
"bp": "tsc --noEmit && npm version patch && npm run build && cd dist && npm publish && cd ..", | ||
"build": "rm -rf dist && npx rollup -c && cp package.json README.md LICENSE dist/", | ||
"copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist/src" | ||
"build": "rm -rf dist && npx rollup -c && cp package.json README.md LICENSE dist/" | ||
}, | ||
@@ -44,6 +43,4 @@ "repository": { | ||
"devDependencies": { | ||
"copyfiles": "^2.4.1", | ||
"rollup": "^2.42.3", | ||
"rollup-plugin-dts": "^3.0.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
@@ -50,0 +47,0 @@ "typescript": "^4.2.3" |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4
0
21127
1