mirror of
https://github.com/iconify/iconify.git
synced 2024-12-12 13:47:49 +00:00
Move API modules from iconify package to core package
This commit is contained in:
parent
5ee1765529
commit
49b9d09f6f
@ -6,8 +6,8 @@ import {
|
||||
IconifyAPISendQuery,
|
||||
IconifyAPIModule,
|
||||
GetIconifyAPIModule,
|
||||
} from '@iconify/core/lib/api/modules';
|
||||
import { GetAPIConfig } from '@iconify/core/lib/api/config';
|
||||
} from '../modules';
|
||||
import { GetAPIConfig } from '../config';
|
||||
|
||||
/**
|
||||
* Endpoint
|
@ -5,8 +5,8 @@ import {
|
||||
IconifyAPISendQuery,
|
||||
IconifyAPIModule,
|
||||
GetIconifyAPIModule,
|
||||
} from '@iconify/core/lib/api/modules';
|
||||
import { GetAPIConfig } from '@iconify/core/lib/api/config';
|
||||
} from '../modules';
|
||||
import { GetAPIConfig } from '../config';
|
||||
|
||||
/**
|
||||
* Global
|
||||
@ -193,7 +193,7 @@ export const getAPIModule: GetIconifyAPIModule = (
|
||||
const cacheKey = provider + ':' + prefix;
|
||||
|
||||
// Create callback prefix
|
||||
const cbPrefix = prefix.split('-').shift().slice(0, 3);
|
||||
const cbPrefix = prefix.split('-').shift()!.slice(0, 3);
|
||||
|
||||
const global = getGlobal();
|
||||
|
@ -57,7 +57,7 @@ import {
|
||||
getAPIConfig,
|
||||
GetAPIConfig,
|
||||
} from '@iconify/core/lib/api/config';
|
||||
import { getAPIModule } from './modules/api-jsonp';
|
||||
import { getAPIModule } from '@iconify/core/lib/api/modules/jsonp';
|
||||
import {
|
||||
IconifyIconLoaderCallback,
|
||||
IconifyIconLoaderAbort,
|
||||
|
Loading…
Reference in New Issue
Block a user