diff --git a/package.json b/package.json index 77adc70..b73c6ae 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "object" ], "devDependencies": { - "@sindresorhus/is": "^0.14.0", + "@sindresorhus/is": "^0.15.0", "@sindresorhus/tsconfig": "^0.2.0", "@types/dot-prop": "^4.2.0", "@types/lodash.isequal": "^4.5.2", @@ -64,7 +64,7 @@ "lodash.isequal": "^4.5.0", "nyc": "^13.1.0", "tslint": "^5.12.0", - "tslint-xo": "^0.13.0", + "tslint-xo": "^0.14.0", "typedoc": "^0.14.2", "typescript": "^3.3.1", "vali-date": "^1.0.0", diff --git a/source/utils/match-shape.ts b/source/utils/match-shape.ts index 234c1a5..6934926 100644 --- a/source/utils/match-shape.ts +++ b/source/utils/match-shape.ts @@ -15,7 +15,7 @@ export interface Shape { * @param shape Shape to test the object against. * @param parent Name of the parent property. */ -export function partial(object: {[key: string]: any; }, shape: Shape, parent?: string): boolean | string { +export function partial(object: {[key: string]: any}, shape: Shape, parent?: string): boolean | string { try { for (const key of Object.keys(shape)) { const label = parent ? `${parent}.${key}` : key; @@ -45,7 +45,7 @@ export function partial(object: {[key: string]: any; }, shape: Shape, parent?: s * @param shape Shape to test the object against. * @param parent Name of the parent property. */ -export function exact(object: {[key: string]: any; }, shape: Shape, parent?: string): boolean | string { +export function exact(object: {[key: string]: any}, shape: Shape, parent?: string): boolean | string { try { const objectKeys = new Set(Object.keys(object));