Comparing version 0.9.0 to 0.10.0
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "FiniteNumber"; | ||
@@ -8,4 +8,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type FiniteNumberError = incident.Incident<Data, Name, Cause>; | ||
export declare type FiniteNumberError = Incident<Data, Name, Cause>; | ||
export declare function format({ value }: Data): string; | ||
export declare function createFiniteNumberError(value: number): FiniteNumberError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "InvalidArrayItems"; | ||
@@ -11,3 +11,3 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type InvalidArrayItemsError = incident.Incident<Data, Name, Cause>; | ||
export declare type InvalidArrayItemsError = Incident<Data, Name, Cause>; | ||
export declare function createInvalidArrayItemsError(invalid: Map<number, Error>): InvalidArrayItemsError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "InvalidFloat64"; | ||
@@ -9,4 +9,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type InvalidFloat64Error = incident.Incident<Data, Name, Cause>; | ||
export declare type InvalidFloat64Error = Incident<Data, Name, Cause>; | ||
export declare function format({ value, source }: Data): string; | ||
export declare function createInvalidFloat64Error(value: any, source?: any): InvalidFloat64Error; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "InvalidInteger"; | ||
@@ -9,4 +9,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type InvalidIntegerError = incident.Incident<Data, Name, Cause>; | ||
export declare type InvalidIntegerError = Incident<Data, Name, Cause>; | ||
export declare function format({ value, source }: Data): string; | ||
export declare function createInvalidIntegerError(value: number, source?: any): InvalidIntegerError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "InvalidTimestamp"; | ||
@@ -8,4 +8,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type InvalidTimestampError = incident.Incident<Data, Name, Cause>; | ||
export declare type InvalidTimestampError = Incident<Data, Name, Cause>; | ||
export declare function format({ date }: Data): string; | ||
export declare function createInvalidTimestampError(date: Date): InvalidTimestampError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "InvalidType"; | ||
@@ -20,4 +20,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type InvalidTypeError = incident.Incident<Data, Name, Cause>; | ||
export declare type InvalidTypeError = Incident<Data, Name, Cause>; | ||
export declare function format({ typeName, value, variableName }: Data): string; | ||
export declare function createInvalidTypeError(typeName: string, value: any, variableName?: string): InvalidTypeError; |
@@ -1,3 +0,3 @@ | ||
import incident from "incident"; | ||
import { Type } from "../core"; | ||
import { Incident } from "incident"; | ||
import { Type } from "../index"; | ||
export declare type Name = "InvalidValue"; | ||
@@ -10,3 +10,3 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type InvalidValueError = incident.Incident<Data, Name, Cause>; | ||
export declare type InvalidValueError = Incident<Data, Name, Cause>; | ||
export declare function createInvalidValueError(type: Type<any>, value: any): InvalidValueError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "LazyOptions"; | ||
@@ -8,3 +8,3 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type LazyOptionsError = incident.Incident<Data, Name, Cause>; | ||
export declare type LazyOptionsError = Incident<Data, Name, Cause>; | ||
export declare function createLazyOptionsError(target: any): LazyOptionsError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "LowerCase"; | ||
@@ -8,4 +8,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type LowerCaseError = incident.Incident<Data, Name, Cause>; | ||
export declare type LowerCaseError = Incident<Data, Name, Cause>; | ||
export declare function format({ string }: Data): string; | ||
export declare function createLowerCaseError(string: string): LowerCaseError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "MaxArrayLength"; | ||
@@ -9,4 +9,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type MaxArrayLengthError = incident.Incident<Data, Name, Cause>; | ||
export declare type MaxArrayLengthError = Incident<Data, Name, Cause>; | ||
export declare function format({ array, max }: Data): string; | ||
export declare function createMaxArrayLengthError(array: ArrayLike<any>, max: number): MaxArrayLengthError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "MaxCodepoints"; | ||
@@ -10,4 +10,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type MaxCodepointsError = incident.Incident<Data, Name, Cause>; | ||
export declare type MaxCodepointsError = Incident<Data, Name, Cause>; | ||
export declare function format({ count, max }: Data): string; | ||
export declare function createMaxCodepointsError(string: string, count: number, max: number): MaxCodepointsError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "MaxUcs2StringLength"; | ||
@@ -9,4 +9,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type MaxUcs2StringLengthError = incident.Incident<Data, Name, Cause>; | ||
export declare type MaxUcs2StringLengthError = Incident<Data, Name, Cause>; | ||
export declare function format({ string, max }: Data): string; | ||
export declare function createMaxUcs2StringLengthError(string: string, max: number): MaxUcs2StringLengthError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "MinArrayLength"; | ||
@@ -9,4 +9,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type MinArrayLengthError = incident.Incident<Data, Name, Cause>; | ||
export declare type MinArrayLengthError = Incident<Data, Name, Cause>; | ||
export declare function format({ array, min }: Data): string; | ||
export declare function createMinArrayLengthError(array: ArrayLike<any>, min: number): MinArrayLengthError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "MinCodepoints"; | ||
@@ -10,4 +10,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type MinCodepointsError = incident.Incident<Data, Name, Cause>; | ||
export declare type MinCodepointsError = Incident<Data, Name, Cause>; | ||
export declare function format({ count, min }: Data): string; | ||
export declare function createMinCodepointsError(string: string, count: number, min: number): MinCodepointsError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "MinUcs2StringLength"; | ||
@@ -9,4 +9,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type MinUcs2StringLengthError = incident.Incident<Data, Name, Cause>; | ||
export declare type MinUcs2StringLengthError = Incident<Data, Name, Cause>; | ||
export declare function format({ string, min }: Data): string; | ||
export declare function createMinUcs2StringLengthError(string: string, min: number): MinUcs2StringLengthError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "MissingDependency"; | ||
@@ -9,4 +9,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type MissingDependencyError = incident.Incident<Data, Name, Cause>; | ||
export declare type MissingDependencyError = Incident<Data, Name, Cause>; | ||
export declare function format({ name, role }: Data): string; | ||
export declare function createMissingDependencyError(depName: string, role: string): MissingDependencyError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "NotImplemented"; | ||
@@ -7,3 +7,3 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type NotImplementedError = incident.Incident<Data, Name, Cause>; | ||
export declare type NotImplementedError = Incident<Data, Name, Cause>; | ||
export declare function createNotImplementedError(message: string): NotImplementedError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "NotTrimmed"; | ||
@@ -8,4 +8,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type NotTrimmedError = incident.Incident<Data, Name, Cause>; | ||
export declare type NotTrimmedError = Incident<Data, Name, Cause>; | ||
export declare function format({ string }: Data): string; | ||
export declare function createNotTrimmedError(string: string): NotTrimmedError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "NullProperty"; | ||
@@ -8,4 +8,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type NullPropertyError = incident.Incident<Data, Name, Cause>; | ||
export declare type NullPropertyError = Incident<Data, Name, Cause>; | ||
export declare function format({ key }: Data): string; | ||
export declare function createNullPropertyError(key: string): NullPropertyError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "PatternNotMatched"; | ||
@@ -9,4 +9,4 @@ export declare const name: Name; | ||
export declare type Cause = undefined; | ||
export declare type PatternNotMatchedError = incident.Incident<Data, Name, Cause>; | ||
export declare type PatternNotMatchedError = Incident<Data, Name, Cause>; | ||
export declare function format({ pattern, string }: Data): string; | ||
export declare function createPatternNotMatchedError(pattern: RegExp, string: string): PatternNotMatchedError; |
@@ -1,2 +0,2 @@ | ||
import incident from "incident"; | ||
import { Incident } from "incident"; | ||
export declare type Name = "UnknownFormat"; | ||
@@ -16,4 +16,4 @@ export declare const name: Name; | ||
*/ | ||
export declare type UnknownFormatError = incident.Incident<Data, Name, Cause>; | ||
export declare type UnknownFormatError = Incident<Data, Name, Cause>; | ||
export declare function format({ format }: Data): string; | ||
export declare function createUnknownFormatError(unknownFormat: string): UnknownFormatError; |
/** | ||
* This is a placeholder module: you should never import it. Trying to import it will result in a | ||
* runtime error. | ||
* This module defines most of the Typescript interfaces and type aliases used by Kryo. | ||
* | ||
* Use deep module imports to directly import components you need. | ||
* @module kryo/core | ||
*/ | ||
/** | ||
* Represents a lazy value of type `T`. | ||
* You can retrieve it with `const val = typeof lazy === "function" ? lazy() : lazy;`. | ||
* This library guarantees that it will be only called once but you should still ensure that it is idempotent. | ||
*/ | ||
export declare type Lazy<T> = T | (() => T); | ||
/** | ||
* Simple type interface. | ||
* | ||
* For example, to import the `DocumentType` type constructor, use: | ||
* ```typescript | ||
* import { DocumentType } from "kryo/types/document"; | ||
* ``` | ||
* This is the smallest interface for objects to be valid types. | ||
* A type with this interface can check the validity and equality of values, and clone them. | ||
*/ | ||
export interface Type<T> { | ||
/** | ||
* Name of this type. This is only used to help with debugging. | ||
*/ | ||
name?: string; | ||
/** | ||
* Tests if this type matches `value`. | ||
* | ||
* @param value The value to test against this type. | ||
* @return Boolean indicating if this type matches `value`. | ||
*/ | ||
test(value: T): boolean; | ||
/** | ||
* Tests if `left` is equal to `value`. | ||
* | ||
* This is a deep strict structural equality test restricted to the properties of this type. | ||
* | ||
* It satisfies the following properties (the variables `a`, `b` and `c` are valid values): | ||
* - Reflexivity: `type.equal(a, a) === true` | ||
* - Symmetry: `type.equals(a, b) === type.equals(b, a)` | ||
* - Transitivity: if `type.equals(a, b) && type.equals(b, c)` then `type.equals(a, c)` | ||
* | ||
* The above properties mean that type objects implement the `Setoid` algebra as specified by | ||
* Static Land. | ||
* | ||
* @see https://github.com/rpominov/static-land/blob/master/docs/spec.md#setoid | ||
* @param left Left value, trusted to be compatible with this type. | ||
* @param right Right value, trusted to be compatible with this type. | ||
* @return Boolean indicating if both values are equal. | ||
*/ | ||
equals(left: T, right: T): boolean; | ||
/** | ||
* Returns a deep copy of `value`. | ||
* | ||
* @param value The value to clone, trusted to be compatible with this type. | ||
* @return A deep copy of the supplied value, restricted to the properties of this type. | ||
*/ | ||
clone(value: T): T; | ||
/** | ||
* Tests if this type matches `value`, describes the error if not. | ||
* | ||
* @param value The value to test against this type. | ||
* @return If this type matches `value` then `undefined`; otherwise an error describing why this | ||
* type does not match `value`. | ||
*/ | ||
testError?(value: T): Error | undefined; | ||
/** | ||
* Compares two valid values. | ||
* | ||
* @param left Left operand, a valid value. | ||
* @param right Right operand, a valid value. | ||
* @return Boolean indicating if `left <= right` is true. | ||
*/ | ||
lte?(left: T, right: T): boolean; | ||
/** | ||
* Serializes the valid value `value`. | ||
* | ||
* @param writer Writer used to emit the data. | ||
* @param value Value to serialize. | ||
* @return Writer result. | ||
*/ | ||
write?<W>(writer: Writer<W>, value: T): W; | ||
/** | ||
* Deserializes a value of this type. | ||
* | ||
* @param reader Reader to drive during the deserialization. | ||
* @param input Reader input. | ||
* @return Valid value. | ||
*/ | ||
read?<R>(reader: Reader<R>, input: R): T; | ||
} | ||
export interface Ord<T> { | ||
lte(left: T, right: T): boolean; | ||
} | ||
export interface Writable<T> { | ||
write<W>(writer: Writer<W>, value: T): W; | ||
} | ||
export interface Readable<T> { | ||
read<R>(reader: Reader<R>, raw: R): T; | ||
} | ||
/** | ||
* Represents a type suitable for IO operations: this type supports both serialization and | ||
* deserialization. | ||
*/ | ||
export interface IoType<T> extends Type<T>, Readable<T>, Writable<T> { | ||
write<W>(writer: Writer<W>, value: T): W; | ||
read<R>(reader: Reader<R>, raw: R): T; | ||
} | ||
/** | ||
* W: Write result type. | ||
*/ | ||
export interface Writer<W> { | ||
writeAny(value: any): W; | ||
writeBoolean(value: boolean): W; | ||
writeBytes(value: Uint8Array): W; | ||
writeDate(value: Date): W; | ||
writeRecord<K extends string>(keys: Iterable<K>, handler: <FW>(key: K, fieldWriter: Writer<FW>) => FW): W; | ||
writeFloat64(value: number): W; | ||
writeList(size: number, handler: <IW>(index: number, itemWriter: Writer<IW>) => IW): W; | ||
writeMap(size: number, keyHandler: <KW>(index: number, mapKeyWriter: Writer<KW>) => KW, valueHandler: <VW>(index: number, mapValueWriter: Writer<VW>) => VW): W; | ||
writeNull(): W; | ||
writeString(value: string): W; | ||
} | ||
/** | ||
* T: Return type of the read-visitor. This is the type of the value you actually want to create. | ||
*/ | ||
export interface ReadVisitor<T> { | ||
fromBoolean(input: boolean): T; | ||
fromBytes(input: Uint8Array): T; | ||
fromDate(input: Date): T; | ||
fromFloat64(input: number): T; | ||
fromList<RI>(input: Iterable<RI>, itemReader: Reader<RI>): T; | ||
fromMap<RK, RV>(input: Map<RK, RV>, keyReader: Reader<RK>, valueReader: Reader<RV>): T; | ||
fromNull(): T; | ||
fromString(input: string): T; | ||
} | ||
/** | ||
* R: Raw input type. | ||
*/ | ||
export interface Reader<R> { | ||
/** | ||
* Boolean indicating that this reader wishes to opt-out of unneeded data validity checks. | ||
*/ | ||
trustInput?: boolean; | ||
readAny<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
readBoolean<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
readBytes<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
readDate<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
readRecord<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
readFloat64<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
readList<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
readMap<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
readNull<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
readString<T>(raw: R, visitor: ReadVisitor<T>): T; | ||
} | ||
export interface VersionedType<T, Diff> extends Type<T> { | ||
/** | ||
* Returns undefined if both values are equivalent, otherwise a diff representing the change from | ||
* oldVal to newVal. | ||
* | ||
* @param oldVal The old value | ||
* @param newVal The new value | ||
*/ | ||
diff(oldVal: T, newVal: T): Diff | undefined; | ||
patch(oldVal: T, diff: Diff | undefined): T; | ||
reverseDiff(diff: Diff | undefined): Diff | undefined; | ||
squash(oldDiff: Diff | undefined, newDiff: Diff | undefined): Diff | undefined; | ||
} | ||
/** | ||
* Represents an identifier case style. | ||
* | ||
* @module kryo | ||
* This enum is used when automatically renaming fields and enum variants. | ||
*/ | ||
export {}; | ||
export declare enum CaseStyle { | ||
/** | ||
* Capitalize every component except for the first one, then join them without any separator. | ||
* | ||
* e.g. `camelCase` | ||
*/ | ||
CamelCase = "camelCase", | ||
/** | ||
* Capitalize every component, then join them without any separator. | ||
* | ||
* e.g. `PascalCase` | ||
*/ | ||
PascalCase = "PascalCase", | ||
/** | ||
* Make every component lowercase, then join them using `_`. | ||
* | ||
* e.g. `snake_case` | ||
*/ | ||
SnakeCase = "snake_case", | ||
/** | ||
* Make every component uppercase, then join them using `_`. | ||
* | ||
* e.g. `SCREAMING_SNAKE_CASE` | ||
*/ | ||
ScreamingSnakeCase = "SCREAMING_SNAKE_CASE", | ||
/** | ||
* Make every component lowercase, then join them using `-`. | ||
* | ||
* e.g. `kebab-case` | ||
*/ | ||
KebabCase = "kebab-case" | ||
} |
/** | ||
* This is a placeholder module: you should never import it. Trying to import it will result in a | ||
* runtime error. | ||
* This module defines most of the Typescript interfaces and type aliases used by Kryo. | ||
* | ||
* Use deep module imports to directly import components you need. | ||
* @module kryo/core | ||
*/ | ||
/** | ||
* Represents an identifier case style. | ||
* | ||
* For example, to import the `DocumentType` type constructor, use: | ||
* ```typescript | ||
* import { DocumentType } from "kryo/types/document"; | ||
* ``` | ||
* | ||
* @module kryo | ||
* This enum is used when automatically renaming fields and enum variants. | ||
*/ | ||
import { Incident } from "incident"; | ||
throw new Incident("IndexImport", | ||
// tslint:disable-next-line:max-line-length | ||
"You cannot import `kryo`'s index module, use deep imports such as `import { DocumentType } from \"kryo/types/document\"`."); | ||
export var CaseStyle; | ||
(function (CaseStyle) { | ||
/** | ||
* Capitalize every component except for the first one, then join them without any separator. | ||
* | ||
* e.g. `camelCase` | ||
*/ | ||
CaseStyle["CamelCase"] = "camelCase"; | ||
/** | ||
* Capitalize every component, then join them without any separator. | ||
* | ||
* e.g. `PascalCase` | ||
*/ | ||
CaseStyle["PascalCase"] = "PascalCase"; | ||
/** | ||
* Make every component lowercase, then join them using `_`. | ||
* | ||
* e.g. `snake_case` | ||
*/ | ||
CaseStyle["SnakeCase"] = "snake_case"; | ||
/** | ||
* Make every component uppercase, then join them using `_`. | ||
* | ||
* e.g. `SCREAMING_SNAKE_CASE` | ||
*/ | ||
CaseStyle["ScreamingSnakeCase"] = "SCREAMING_SNAKE_CASE"; | ||
/** | ||
* Make every component lowercase, then join them using `-`. | ||
* | ||
* e.g. `kebab-case` | ||
*/ | ||
CaseStyle["KebabCase"] = "kebab-case"; | ||
})(CaseStyle || (CaseStyle = {})); | ||
//# sourceMappingURL=index.js.map |
/** | ||
* @module kryo/readers/read-visitor | ||
*/ | ||
import { ReadVisitor } from "../core"; | ||
import { ReadVisitor } from "../index"; | ||
export declare function readVisitor<R>(partial: Partial<ReadVisitor<R>>): ReadVisitor<R>; |
/** | ||
* @module kryo/writers/structured | ||
*/ | ||
import { Writer } from "../core.js"; | ||
import { Writer } from "../index.js"; | ||
/** | ||
@@ -17,4 +17,4 @@ * Base class for `json`, `qs` and `bson` writers. | ||
writeList(size: number, handler: (index: number, itemWriter: Writer<any>) => any): any[]; | ||
writeDocument<K extends string>(keys: Iterable<K>, handler: (key: K, fieldWriter: Writer<any>) => any): Record<K, any>; | ||
writeRecord<K extends string>(keys: Iterable<K>, handler: (key: K, fieldWriter: Writer<any>) => any): Record<K, any>; | ||
abstract writeMap(size: number, keyHandler: <KW>(index: number, mapKeyWriter: Writer<KW>) => KW, valueHandler: <VW>(index: number, mapValueWriter: Writer<VW>) => VW): any; | ||
} |
@@ -18,3 +18,3 @@ /** | ||
} | ||
writeDocument(keys, handler) { | ||
writeRecord(keys, handler) { | ||
const result = {}; | ||
@@ -21,0 +21,0 @@ for (const key of keys) { |
{ | ||
"name": "kryo", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "Runtime types for validation and serialization", | ||
@@ -12,4 +12,5 @@ "license": "MIT", | ||
}, | ||
"private": false, | ||
"type": "module", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", | ||
"files": [ | ||
@@ -19,2 +20,3 @@ "./lib/" | ||
"exports": { | ||
".": "./lib/index.js", | ||
"./lib/": "./lib/" | ||
@@ -32,7 +34,5 @@ }, | ||
"lint": "eslint \"./src/**/*.ts\"", | ||
"format": "eslint --fix \"./src/**/*.ts\"", | ||
"typedoc": "gulp lib:typedoc" | ||
"format": "eslint --fix \"./src/**/*.ts\"" | ||
}, | ||
"dependencies": { | ||
"@types/bson": "^4.0.1", | ||
"@types/object-inspect": "^1.6.0", | ||
@@ -43,19 +43,10 @@ "incident": "^3.2.0", | ||
}, | ||
"optionalDependencies": { | ||
"bson": "^4.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.2.8", | ||
"@types/minimist": "^1.2.0", | ||
"@types/mocha": "^7.0.1", | ||
"@types/node": "^13.7.0", | ||
"@types/qs": "^6.9.0", | ||
"@types/unorm": "^1.3.27", | ||
"c88": "^0.3.4", | ||
"chai": "^4.2.0", | ||
"husky": "^4.2.1", | ||
"mocha": "^7.1.1", | ||
"minimist": "^1.2.0", | ||
"qs": "^6.9.1", | ||
"ts-node": "^8.6.2", | ||
"typescript": "^3.7.5", | ||
@@ -68,8 +59,3 @@ "unorm": "^1.6.0" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "yarn run lint" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
9
417962
154
4319
- Removed@types/bson@^4.0.1
- Removed@types/bson@4.2.4(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbson@4.7.2(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedieee754@1.2.1(transitive)