Browse Source

Bump dependencies

string-allowed-chars
Sindre Sorhus 6 years ago
parent
commit
04b4a51d1a
  1. 4
      package.json
  2. 4
      source/utils/match-shape.ts

4
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",

4
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<string>(Object.keys(object));

Loading…
Cancel
Save