Use native esm
This commit is contained in:
parent
c4354a6600
commit
70bd12a4d6
37 changed files with 379 additions and 119 deletions
|
@ -1,7 +1,7 @@
|
|||
import { parse } from 'url';
|
||||
import querystring from 'querystring';
|
||||
import request from 'superagent';
|
||||
import urlMatch from './url';
|
||||
import urlMatch from './url.js';
|
||||
|
||||
const apiRoot = 'https://itunes.apple.com';
|
||||
|
||||
|
@ -22,7 +22,7 @@ export async function parseUrl(url) {
|
|||
}
|
||||
}
|
||||
|
||||
return await module.exports.lookupId(itunesId, type, matches[1] || 'us');
|
||||
return await lookupId(itunesId, type, matches[1] || 'us');
|
||||
}
|
||||
throw new Error();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue