Skip to content

Commit ef9395c

Browse files
committed
chore: update devDependencies
1 parent 4f6ba39 commit ef9395c

File tree

8 files changed

+980
-712
lines changed

8 files changed

+980
-712
lines changed

package-lock.json

Lines changed: 956 additions & 679 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@
4545
"steno": "^2.1.0"
4646
},
4747
"devDependencies": {
48-
"@commitlint/cli": "^16.2.1",
49-
"@commitlint/config-conventional": "^16.2.1",
50-
"@commitlint/prompt-cli": "^16.2.1",
51-
"@sindresorhus/tsconfig": "^2.0.0",
52-
"@types/lodash": "^4.14.179",
53-
"@types/node": "^17.0.21",
48+
"@commitlint/cli": "^17.1.2",
49+
"@commitlint/config-conventional": "^17.1.0",
50+
"@commitlint/prompt-cli": "^17.1.2",
51+
"@sindresorhus/tsconfig": "^3.0.1",
52+
"@types/lodash": "^4.14.186",
53+
"@types/node": "^18.11.0",
5454
"@typicode/eslint-config": "^1.0.0",
55-
"del-cli": "^4.0.1",
56-
"eslint": "^8.10.0",
57-
"husky": "^7.0.4",
55+
"del-cli": "^5.0.0",
56+
"eslint": "^8.25.0",
57+
"husky": "^8.0.1",
5858
"lodash": "^4.17.21",
59-
"tempy": "^2.0.0",
60-
"typescript": "^4.6.2",
59+
"tempy": "^3.0.0",
60+
"typescript": "^4.8.4",
6161
"xv": "^1.1.1"
6262
},
6363
"engines": {

src/Low.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import {
55
} from 'assert'
66
import fs from 'fs'
77
import lodash from 'lodash'
8-
import tempy from 'tempy'
8+
import { temporaryFile } from 'tempy'
99

1010
import { JSONFile } from './adapters/JSONFile.js'
1111
import { Low } from './Low.js'
1212
import { MissingAdapterError } from './MissingAdapterError.js'
1313

1414
function createJSONFile(obj: unknown): string {
15-
const file = tempy.file()
15+
const file = temporaryFile()
1616
fs.writeFileSync(file, JSON.stringify(obj))
1717
return file
1818
}

src/LowSync.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { deepStrictEqual as deepEqual, throws } from 'assert'
22
import fs from 'fs'
3-
import tempy from 'tempy'
3+
import { temporaryFile } from 'tempy'
44

55
import { JSONFileSync } from './adapters/JSONFileSync.js'
66
import { LowSync } from './LowSync.js'
77
import { MissingAdapterError } from './MissingAdapterError.js'
88

99
function createJSONFile(obj: unknown): string {
10-
const file = tempy.file()
10+
const file = temporaryFile()
1111
fs.writeFileSync(file, JSON.stringify(obj))
1212
return file
1313
}

src/adapters/JSONFile.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { deepStrictEqual as deepEqual, strictEqual as equal } from 'assert'
2-
import tempy from 'tempy'
2+
import { temporaryFile } from 'tempy'
33

44
import { JSONFile } from './JSONFile.js'
55

66
export async function testJSONFile(): Promise<void> {
77
const obj = { a: 1 }
8-
9-
const filename = tempy.file()
10-
const file = new JSONFile(filename)
8+
const file = new JSONFile(temporaryFile())
119

1210
// Null if file doesn't exist
1311
equal(await file.read(), null)

src/adapters/JSONFileSync.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { deepStrictEqual as deepEqual, strictEqual as equal } from 'assert'
2-
import tempy from 'tempy'
2+
import { temporaryFile } from 'tempy'
33

44
import { JSONFileSync } from './JSONFileSync.js'
55

66
export function testJSONFileSync(): void {
77
const obj = { a: 1 }
8-
9-
const filename = tempy.file()
10-
const file = new JSONFileSync(filename)
8+
const file = new JSONFileSync(temporaryFile())
119

1210
// Null if file doesn't exist
1311
equal(file.read(), null)

src/adapters/TextFile.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { deepStrictEqual as deepEqual, strictEqual as equal } from 'assert'
2-
import tempy from 'tempy'
2+
import { temporaryFile } from 'tempy'
33

44
import { TextFile } from './TextFile.js'
55

66
export async function testTextFile(): Promise<void> {
77
const str = 'foo'
8-
9-
const filename = tempy.file()
10-
const file = new TextFile(filename)
8+
const file = new TextFile(temporaryFile())
119

1210
// Null if file doesn't exist
1311
equal(await file.read(), null)
@@ -20,8 +18,7 @@ export async function testTextFile(): Promise<void> {
2018
}
2119

2220
export async function testRaceCondition(): Promise<void> {
23-
const filename = tempy.file()
24-
const file = new TextFile(filename)
21+
const file = new TextFile(temporaryFile())
2522
const promises: Promise<void>[] = []
2623

2724
let i = 0

src/adapters/TextFileSync.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { deepStrictEqual as deepEqual, strictEqual as equal } from 'assert'
2-
import tempy from 'tempy'
2+
import { temporaryFile } from 'tempy'
33

44
import { TextFileSync } from './TextFileSync.js'
55

66
export function testTextFileSync(): void {
77
const str = 'foo'
8-
9-
const filename = tempy.file()
10-
const file = new TextFileSync(filename)
8+
const file = new TextFileSync(temporaryFile())
119

1210
// Null if file doesn't exist
1311
equal(file.read(), null)

0 commit comments

Comments
 (0)