mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-11-16 00:59:07 +02:00
Update SDK TS defs and improve extensions getter functions (#10978)
This commit is contained in:
parent
7777cbabfe
commit
06deb20e92
3
sdk.d.ts
vendored
3
sdk.d.ts
vendored
@ -80,4 +80,7 @@ export function normalizeColor(text: string): string;
|
||||
export function getThirdPartyExtensions(
|
||||
readmePath?: string,
|
||||
): Promise<ThirdPartyExtension[]>;
|
||||
export function getThirdPartyLibraries(
|
||||
readmePath?: string,
|
||||
): Promise<ThirdPartyExtension[]>;
|
||||
export const collator: Intl.Collator;
|
||||
|
8
sdk.mjs
8
sdk.mjs
@ -197,8 +197,8 @@ export const getThirdPartyExtensions = async (
|
||||
) =>
|
||||
normalizeNewlines(await fs.readFile(readmePath, 'utf8'))
|
||||
.split('## Third-Party Extensions')[1]
|
||||
.split('\n\n')[2]
|
||||
.split('\n')
|
||||
.split('|\n\n')[0]
|
||||
.split('|\n|')
|
||||
.slice(2)
|
||||
.map((line) => {
|
||||
let [module, author] = line.split(' | ');
|
||||
@ -228,8 +228,8 @@ export const getThirdPartyLibraries = async (
|
||||
) =>
|
||||
normalizeNewlines(await fs.readFile(readmePath, 'utf8'))
|
||||
.split('## Third-Party Libraries')[1]
|
||||
.split('\n\n')[2]
|
||||
.split('\n')
|
||||
.split('|\n\n')[0]
|
||||
.split('|\n|')
|
||||
.slice(2)
|
||||
.map((line) => {
|
||||
let [module, author] = line.split(' | ');
|
||||
|
Loading…
Reference in New Issue
Block a user