Skip to content

Commit b444ee8

Browse files
authored
Fix cves (#201)
1 parent 8d8b4c2 commit b444ee8

4 files changed

Lines changed: 2533 additions & 5059 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This package provides an implementation for the `@aws-appsync/utils` package tha
44

55
## Changelog:
66

7+
- v0.1.1: security updates
78
- v0.1.0: first pinned version of the library
89

910
> [!TIP]

__tests__/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ describe("time utilities", () => {
2323

2424
test("nowFormatted", async () => {
2525
jest.useFakeTimers();
26-
jest.setSystemTime(new Date(Date.UTC(2021, 1, 1)));
26+
jest.setSystemTime(new Date(Date.UTC(2021, 1, 1)).getTime());
2727

2828
expect(util.time.nowFormatted('YYYY-MM-dd HH:mm:ss')).toEqual("2021-02-01T00:00:00.000Z");
2929
});
3030
test("nowISO8601", async () => {
3131
jest.useFakeTimers();
32-
jest.setSystemTime(new Date(Date.UTC(2021, 1, 1)));
32+
jest.setSystemTime(new Date(Date.UTC(2021, 1, 1)).getTime());
3333

3434
expect(util.time.nowISO8601()).toEqual("2021-02-01T00:00:00.000Z");
3535
});

0 commit comments

Comments
 (0)