Skip to content

Commit 7f71e7a

Browse files
committed
fix: e2e/test works!
1 parent 79423cc commit 7f71e7a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export const logger = ({ file, isLogging = false }: LoggerOptions) => ({
99
error: (msg: string, ...args: unknown[]) => {
1010
if (args) console.error(`jspm:[${file}]: ${msg}`, ...args);
1111
else console.error(`jspm:[${file}]: ${msg}`);
12-
}
12+
},
1313
});

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const log = logger({ file: "parser", isLogging: IS_DEBUGGING });
1414
* @returns {string}
1515
*/
1616
export const parseNodeModuleCachePath = async (modulePath: string, cachePath: string) => {
17-
log.debug('parseNodeModuleCachePath', cachePath, modulePath)
17+
log.debug("parseNodeModuleCachePath", cachePath, modulePath);
1818
if (existsSync(cachePath)) return cachePath;
1919
try {
2020
const resp = await fetch(modulePath);

src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export const ensureFileSync = (path: string) => {
3030
const dirPath = dirname(path);
3131
if (!existsSync(dirPath)) ensureDirSync(dirPath);
3232
try {
33-
writeFileSync(path, '', { flag: 'wx' });
33+
writeFileSync(path, "", { flag: "wx" });
3434
} catch {
35-
log.error(`ensureDirSync: Failed in creating ${path}`)
35+
log.error(`ensureDirSync: Failed in creating ${path}`);
3636
}
37-
}
37+
};
3838

3939
export const checkIfNodeOrFileProtocol = (modulePath: string) => {
4040
const { protocol = "" } = new URL(modulePath);

0 commit comments

Comments
 (0)