Skip to content

Commit

Permalink
build: dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBorde committed Mar 6, 2024
1 parent 9e817ea commit 3dd3a60
Show file tree
Hide file tree
Showing 8 changed files with 3,006 additions and 2,607 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- dependencies update
- tslint replaced with eslint

## 2.1.2 - 2020-03-24
## 2.1.2 - 2020-03-24

### Changed

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const configuration = loadConfiguration(
defaults: {
log: { level: "debug" },
},
}
},
);
```

Expand Down
2 changes: 1 addition & 1 deletion examples/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const configuration = loadConfiguration(
defaults: {
log: { level: "debug" },
},
}
},
);

console.log(configuration);
2 changes: 1 addition & 1 deletion examples/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const configuration = loadConfiguration(
defaults: {
log: { level: "debug" },
},
}
},
);

console.log(configuration);
2 changes: 1 addition & 1 deletion lib/load.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ describe("load function", () => {
const loadCall = () => load(schema, options);

expect(loadCall).toThrow(
"At least one variable should be defined in: PORT, API_PORT"
"At least one variable should be defined in: PORT, API_PORT",
);
});
});
Expand Down
4 changes: 2 additions & 2 deletions lib/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function doLoad(schema: Schema, defaults: any, options: EffectiveOptions): any {
return Object.keys(schema).reduce(
(result, key) =>
Object.assign({}, result, loadKey(key, schema, defaults, options)),
{}
{},
);
}

Expand All @@ -40,7 +40,7 @@ function loadKey(
key: string,
schema: Schema,
defaults: any,
options: EffectiveOptions
options: EffectiveOptions,
): any {
const schemaPart = schema[key];
if (schemaSeemsNested(schemaPart)) {
Expand Down

0 comments on commit 3dd3a60

Please sign in to comment.