Skip to content

Commit 8bfd1c4

Browse files
committed
chore: upgrade deps to latest
1 parent 67f66d6 commit 8bfd1c4

File tree

4 files changed

+187
-239
lines changed

4 files changed

+187
-239
lines changed

dist/index.js

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

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
},
2222
"devDependencies": {
2323
"@types/concat-stream": "^1.6.0",
24-
"@types/glob": "^7.1.1",
25-
"@types/node": "^13.7.7",
26-
"@types/yarnpkg__lockfile": "^1.1.3",
24+
"@types/glob": "^7.1.3",
25+
"@types/node": "^14.11.8",
26+
"@types/yarnpkg__lockfile": "^1.1.4",
2727
"hard-source-webpack-plugin": "^0.13.1",
28-
"ts-loader": "^6.2.2",
29-
"typescript": "^3.8.3",
30-
"webpack": "^4.42.1",
31-
"webpack-cli": "^3.3.11"
28+
"ts-loader": "^8.0.4",
29+
"typescript": "^4.0.3",
30+
"webpack": "^4.44.2",
31+
"webpack-cli": "^3.3.12"
3232
},
3333
"dependencies": {
34-
"@actions/core": "^1.2.3",
34+
"@actions/core": "^1.2.6",
3535
"@yarnpkg/lockfile": "^1.1.0",
3636
"concat-stream": "^2.0.0",
3737
"glob": "^7.1.6"

src/langSvc/createHost.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ export const createHost = (fileNames: string[], compilerOptions: _ts.CompilerOpt
1010
const getCurrentVersion = (fileName: string) => fileEntry.has(fileName) ? fileEntry.get(fileName)!.version : 0
1111
const getTextFromSnapshot = (snapshot: _ts.IScriptSnapshot) => snapshot.getText(0, snapshot.getLength())
1212

13-
const readFile = (fileName: string, encoding: string | undefined = 'utf8') => {
13+
const readFile = (fileName: string, encoding: BufferEncoding = 'utf8') => {
1414
if (libDTSRegexp.test(fileName)) {
1515
return libDTS[fileName].content
1616
}
1717

1818
fileName = path.normalize(fileName);
1919
try {
20-
return fs.readFileSync(fileName, encoding);
20+
return fs.readFileSync(fileName, { encoding });
2121
} catch (e) {
2222
return undefined;
2323
}
2424
}
2525

2626
const readFileWithFallback = (
2727
filePath: string,
28-
encoding?: string | undefined
28+
encoding?: BufferEncoding
2929
) => {
3030
return ts.sys.readFile(filePath, encoding) || readFile(filePath, encoding)
3131
}

0 commit comments

Comments
 (0)