Upgrade linguist dependency
This version changes how it counts python heredoc. All heredoc is counted as code.
This commit is contained in:
parent
a44b61d961
commit
b29bf7b05a
32 changed files with 410 additions and 339 deletions
5
node_modules/github-linguist/src/index.ts
generated
vendored
5
node_modules/github-linguist/src/index.ts
generated
vendored
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-ignore
|
||||
import slash from 'slash2';
|
||||
import fs from 'fs-extra';
|
||||
|
||||
|
|
@ -8,9 +7,7 @@ import { LocFile } from './file';
|
|||
export { LocDir, LocDirOptions } from './directory';
|
||||
export { LocFile, LineInfo } from './file';
|
||||
|
||||
const loc = async (
|
||||
fileOrDir: string,
|
||||
): Promise<LocResult> => {
|
||||
const loc = async (fileOrDir: string): Promise<LocResult> => {
|
||||
const stat = await fs.stat(slash(fileOrDir));
|
||||
if (stat.isFile()) {
|
||||
const locFile = new LocFile(slash(fileOrDir));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue