Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"typescript": "^3.5.2"
},
"dependencies": {
"glob": "^7.1.4",
"glob": "^10.5.0",
"rimraf": "^4.3.1"
}
}
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';
import crypto from 'crypto';
import { spawn } from 'child_process';
import glob from 'glob';
import { glob } from 'glob';
import rimraf from 'rimraf';

export interface Options {
Expand Down Expand Up @@ -122,9 +122,7 @@ const getOptionArgs = (options: Options): string[] => {
return args;
};

const findFiles = async (patten: string): Promise <string[]> => new Promise((resolve, reject) => {
glob(patten, (err, files) => (err ? reject(err) : resolve(files)));
});
const findFiles = async (pattern: string): Promise<string[]> => glob(pattern);

class PDFToCairo {
private bin: string;
Expand Down