Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tajnymag committed Mar 15, 2020
1 parent 5b31ca8 commit 9c038fd
Show file tree
Hide file tree
Showing 3 changed files with 1,333 additions and 1,388 deletions.
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spayd",
"version": "2.0.2",
"version": "2.0.3",
"description": "An SPAYD generator implemented in js.",
"author": "Marek Lukáš",
"license": "MIT",
Expand All @@ -13,20 +13,19 @@
"test": "jest"
},
"devDependencies": {
"@types/date-fns": "^2.6.0",
"@types/jest": "^24.0.15",
"jest": "^24.8.0",
"rollup": "^1.16.2",
"@types/jest": "^25.1.4",
"jest": "^25.1.0",
"rollup": "^2.0.6",
"rollup-plugin-commonjs": "^10.0.1",
"rollup-plugin-node-resolve": "^5.1.0",
"rollup-plugin-terser": "^5.0.0",
"rollup-plugin-typescript2": "^0.21.2",
"ts-jest": "^24.0.2",
"rollup-plugin-typescript2": "^0.26.0",
"ts-jest": "^25.2.1",
"tslib": "^1.10.0",
"typescript": "^3.5.2"
},
"dependencies": {
"date-fns": "^1.29.0",
"date-fns": "^2.11.0",
"ibantools": "^2.0.0"
}
}
4 changes: 2 additions & 2 deletions src/Keys.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {isValidIBAN, isValidBIC} from 'ibantools';
import format from 'date-fns/format';
import isValid from 'date-fns/is_valid';
import isValid from 'date-fns/isValid';

abstract class Key {
protected name: string;
Expand Down Expand Up @@ -92,7 +92,7 @@ export class Dt extends Key {
private originalDate: Date;

constructor(value: Date) {
super('dt', format(value, 'YYYYMMDD'));
super('dt', format(value, 'yyyyMMdd'));
this.originalDate = value;

if (!this.isValid()) {
Expand Down
Loading

0 comments on commit 9c038fd

Please sign in to comment.