2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-06 07:20:40 +00:00

Update dependencies in various components and demos, move setFetch to _api in all components

This commit is contained in:
Vjacheslav Trushkin 2021-05-07 21:19:48 +03:00
parent 2282a05bea
commit 5192ed0ab7
22 changed files with 4943 additions and 5040 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,8 +14,7 @@
},
"devDependencies": {
"@iconify-icons/mdi-light": "^1.1.0",
"@iconify-icons/uil": "^1.1.1",
"@iconify/react": "^2.0.0-rc.8"
"@iconify-icons/uil": "^1.1.1"
}
},
"node_modules/@babel/code-frame": {
@ -1521,12 +1520,6 @@
"integrity": "sha512-HdSyOZzEPwh2549jpL2YrLkuR4aYRRF47gDRuZcSRRFdgbkmlpGDSSQ1G1PR9E/a3Igg7j9XdIK9HffTFJP0Lg==",
"dev": true
},
"node_modules/@iconify/react": {
"version": "2.0.0-rc.8",
"resolved": "https://registry.npmjs.org/@iconify/react/-/react-2.0.0-rc.8.tgz",
"integrity": "sha512-jJKOBeJaM8tRu3kpBnYgzNLDGG7QojtbGlZGyAQGNWiIjR30+7S+DnMA2kFrvr4mBBVji7A0bpcfoZNKBoXyVw==",
"dev": true
},
"node_modules/@istanbuljs/load-nyc-config": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",
@ -22727,12 +22720,6 @@
"integrity": "sha512-HdSyOZzEPwh2549jpL2YrLkuR4aYRRF47gDRuZcSRRFdgbkmlpGDSSQ1G1PR9E/a3Igg7j9XdIK9HffTFJP0Lg==",
"dev": true
},
"@iconify/react": {
"version": "2.0.0-rc.8",
"resolved": "https://registry.npmjs.org/@iconify/react/-/react-2.0.0-rc.8.tgz",
"integrity": "sha512-jJKOBeJaM8tRu3kpBnYgzNLDGG7QojtbGlZGyAQGNWiIjR30+7S+DnMA2kFrvr4mBBVji7A0bpcfoZNKBoXyVw==",
"dev": true
},
"@istanbuljs/load-nyc-config": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",

View File

@ -16,21 +16,6 @@ export function InlineDemo() {
<OfflineIcon icon="experiment2" inline={true} />
<FullIcon icon="experiment2" inline={true} />
</div>
<div>
Using "vertical-align: 0" to override inline attribute:
<OfflineIcon icon="experiment2" style={{ verticalAlign: 0 }} />
<FullIcon icon="experiment2" style={{ verticalAlign: 0 }} />
<OfflineIcon
icon="experiment2"
style={{ verticalAlign: 0 }}
inline={true}
/>
<FullIcon
icon="experiment2"
style={{ verticalAlign: 0 }}
inline={true}
/>
</div>
</section>
);
}

View File

@ -11,7 +11,7 @@
"devDependencies": {
"@babel/preset-env": "^7.13.15",
"@babel/preset-react": "^7.13.13",
"@iconify/core": "^1.0.0-rc.4",
"@iconify/core": "^1.0.0",
"@iconify/types": "^1.0.6",
"@microsoft/api-extractor": "^7.13.5",
"@rollup/plugin-buble": "^0.21.3",
@ -1381,9 +1381,9 @@
"dev": true
},
"node_modules/@iconify/core": {
"version": "1.0.0-rc.5",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0-rc.5.tgz",
"integrity": "sha512-1VFvNlBqsX/pMRI3nd00UzEqAS7weayJ/CyCD18b8+kFa9PvoVcGAmob1bTTm++v+QKVqQs+8iQaBFl/DrrsvA==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0.tgz",
"integrity": "sha512-jzGZQMOqoPpKFZ4K4dQ6gNcDqALoJE02FMExm+kcN4vp2GJ5JKCccYxJLBWTmR23vVeZzpxlCtL3KSKjUfe2Kw==",
"dev": true,
"dependencies": {
"@cyberalien/redundancy": "^1.1.0",
@ -10661,9 +10661,9 @@
"dev": true
},
"@iconify/core": {
"version": "1.0.0-rc.5",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0-rc.5.tgz",
"integrity": "sha512-1VFvNlBqsX/pMRI3nd00UzEqAS7weayJ/CyCD18b8+kFa9PvoVcGAmob1bTTm++v+QKVqQs+8iQaBFl/DrrsvA==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0.tgz",
"integrity": "sha512-jzGZQMOqoPpKFZ4K4dQ6gNcDqALoJE02FMExm+kcN4vp2GJ5JKCccYxJLBWTmR23vVeZzpxlCtL3KSKjUfe2Kw==",
"dev": true,
"requires": {
"@cyberalien/redundancy": "^1.1.0",

View File

@ -26,7 +26,7 @@
"devDependencies": {
"@babel/preset-env": "^7.13.15",
"@babel/preset-react": "^7.13.13",
"@iconify/core": "^1.0.0-rc.4",
"@iconify/core": "^1.0.0",
"@iconify/types": "^1.0.6",
"@microsoft/api-extractor": "^7.13.5",
"@rollup/plugin-buble": "^0.21.3",

View File

@ -205,13 +205,13 @@ setAPIModule('', getAPIModule(getAPIConfig));
/**
* Function to enable node-fetch for getting icons on server side
*/
export function setNodeFetch(nodeFetch: typeof fetch) {
_api.setFetch = (nodeFetch: typeof fetch) => {
setFetch(nodeFetch);
if (getAPIModule !== getFetchAPIModule) {
getAPIModule = getFetchAPIModule;
setAPIModule('', getAPIModule(getAPIConfig));
}
}
};
/**
* Browser stuff

View File

@ -2636,9 +2636,6 @@
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.34.2.tgz",
"integrity": "sha512-mvtQLqu3cNeoctS+kZ09iOPxrc1P1/Bt1z15enuQ5feyKOdM3MJAVFjjsygurDpSWn530xB4AlA83TWIzRstXA==",
"dev": true,
"dependencies": {
"fsevents": "~2.1.2"
},
"bin": {
"rollup": "dist/bin/rollup"
},

View File

@ -13,7 +13,6 @@
"devDependencies": {
"@iconify-icons/mdi-light": "^1.1.0",
"@iconify-icons/uil": "^1.1.1",
"@iconify/svelte": "^1.0.3",
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"rollup": "^2.33.3",
@ -61,12 +60,6 @@
"integrity": "sha512-HdSyOZzEPwh2549jpL2YrLkuR4aYRRF47gDRuZcSRRFdgbkmlpGDSSQ1G1PR9E/a3Igg7j9XdIK9HffTFJP0Lg==",
"dev": true
},
"node_modules/@iconify/svelte": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@iconify/svelte/-/svelte-1.0.4.tgz",
"integrity": "sha512-Bjr4UMJUsMCra1lpMYIijLZJustalA7FuBldV9B7IsaeKGZ06rcmgeVUYJqrKJ/0bhRg/chcKasLjUlFqWIoMQ==",
"dev": true
},
"node_modules/@polka/url": {
"version": "1.0.0-next.12",
"resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.12.tgz",
@ -1060,12 +1053,6 @@
"integrity": "sha512-HdSyOZzEPwh2549jpL2YrLkuR4aYRRF47gDRuZcSRRFdgbkmlpGDSSQ1G1PR9E/a3Igg7j9XdIK9HffTFJP0Lg==",
"dev": true
},
"@iconify/svelte": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@iconify/svelte/-/svelte-1.0.4.tgz",
"integrity": "sha512-Bjr4UMJUsMCra1lpMYIijLZJustalA7FuBldV9B7IsaeKGZ06rcmgeVUYJqrKJ/0bhRg/chcKasLjUlFqWIoMQ==",
"dev": true
},
"@polka/url": {
"version": "1.0.0-next.12",
"resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.12.tgz",

View File

@ -15,19 +15,4 @@
<OfflineIcon icon="experiment2" inline={true} />
<FullIcon icon="experiment2" inline={true} />
</div>
<div>
Using "vertical-align: 0" to override inline attribute:
<OfflineIcon icon="experiment2" style="vertical-align: 0;" />
<FullIcon icon="experiment2" style="vertical-align: 0;" />
<OfflineIcon
icon="experiment2"
style="vertical-align: 0;"
inline={true}
/>
<FullIcon
icon="experiment2"
style="vertical-align: 0;"
inline={true}
/>
</div>
</section>

View File

@ -11,6 +11,7 @@
"devDependencies": {
"@babel/preset-env": "^7.14.0",
"@iconify/core": "^1.0.0-rc.3",
"@iconify/types": "^1.0.6",
"@microsoft/api-extractor": "^7.15.0",
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-node-resolve": "^10.0.0",
@ -1483,13 +1484,13 @@
"dev": true
},
"node_modules/@iconify/core": {
"version": "1.0.0-rc.3",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0-rc.3.tgz",
"integrity": "sha512-gCHmASaQbai749xrvvBpJ7eVrnJusLA2Q+aULMGAZkIrU/YRUiXznpfNITozZaIhdOLjzp8CD8s/j2vv5CyNCg==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0.tgz",
"integrity": "sha512-jzGZQMOqoPpKFZ4K4dQ6gNcDqALoJE02FMExm+kcN4vp2GJ5JKCccYxJLBWTmR23vVeZzpxlCtL3KSKjUfe2Kw==",
"dev": true,
"dependencies": {
"@cyberalien/redundancy": "^1.1.0",
"@iconify/types": "^1.0.5"
"@iconify/types": "^1.0.6"
}
},
"node_modules/@iconify/types": {
@ -9799,13 +9800,13 @@
"dev": true
},
"@iconify/core": {
"version": "1.0.0-rc.3",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0-rc.3.tgz",
"integrity": "sha512-gCHmASaQbai749xrvvBpJ7eVrnJusLA2Q+aULMGAZkIrU/YRUiXznpfNITozZaIhdOLjzp8CD8s/j2vv5CyNCg==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0.tgz",
"integrity": "sha512-jzGZQMOqoPpKFZ4K4dQ6gNcDqALoJE02FMExm+kcN4vp2GJ5JKCccYxJLBWTmR23vVeZzpxlCtL3KSKjUfe2Kw==",
"dev": true,
"requires": {
"@cyberalien/redundancy": "^1.1.0",
"@iconify/types": "^1.0.5"
"@iconify/types": "^1.0.6"
}
},
"@iconify/types": {

View File

@ -28,6 +28,7 @@
"devDependencies": {
"@babel/preset-env": "^7.14.0",
"@iconify/core": "^1.0.0-rc.3",
"@iconify/types": "^1.0.6",
"@microsoft/api-extractor": "^7.15.0",
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-node-resolve": "^10.0.0",

View File

@ -203,13 +203,13 @@ setAPIModule('', getAPIModule(getAPIConfig));
/**
* Function to enable node-fetch for getting icons on server side
*/
export function setNodeFetch(nodeFetch: typeof fetch) {
_api.setFetch = (nodeFetch: typeof fetch) => {
setFetch(nodeFetch);
if (getAPIModule !== getFetchAPIModule) {
getAPIModule = getFetchAPIModule;
setAPIModule('', getAPIModule(getAPIConfig));
}
}
};
/**
* Browser stuff

View File

@ -26,4 +26,4 @@ export {
export { calculateSize, replaceIDs } from './functions';
export { loadIcons, addAPIProvider, _api, setNodeFetch } from './functions';
export { loadIcons, addAPIProvider, _api } from './functions';

View File

@ -13,8 +13,6 @@
"devDependencies": {
"@iconify-icons/bx": "^1.0.2",
"@iconify-icons/dashicons": "^1.0.0",
"@iconify/types": "^1.0.5",
"@iconify/vue": "^2.0.0-rc.2",
"@vue/compiler-sfc": "^3.0.2",
"typescript": "^4.1.2",
"vite": "^1.0.0-rc.9"
@ -139,21 +137,6 @@
"integrity": "sha512-l539ceihPtCEm+v5JQjDjkRZ5ULPRJLA1OhSePuqTrBWkWx+H6asXkpM4hOB0cR59ynelsK9htSmrPij/JHnRg==",
"dev": true
},
"node_modules/@iconify/types": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/@iconify/types/-/types-1.0.6.tgz",
"integrity": "sha512-eG74WPaqjBGnZ3Xy36X4LRDA/ZlhCK6T0zbsAAIYObY2Qija/379iXx+e2wWwEIXS46B62nGaUcuI0MpUnTSrg==",
"dev": true
},
"node_modules/@iconify/vue": {
"version": "2.0.0-rc.3",
"resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-2.0.0-rc.3.tgz",
"integrity": "sha512-McYHQZBKZx+knO7DNODOhspIYCHYf0ogzk9YbzZsPdSAhTt7M42aXcczGK/Y8O2txvAwejtscwLX77jVbknHbw==",
"dev": true,
"peerDependencies": {
"vue": "^3.0.0"
}
},
"node_modules/@koa/cors": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@koa/cors/-/cors-3.1.0.tgz",
@ -3770,19 +3753,6 @@
"integrity": "sha512-l539ceihPtCEm+v5JQjDjkRZ5ULPRJLA1OhSePuqTrBWkWx+H6asXkpM4hOB0cR59ynelsK9htSmrPij/JHnRg==",
"dev": true
},
"@iconify/types": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/@iconify/types/-/types-1.0.6.tgz",
"integrity": "sha512-eG74WPaqjBGnZ3Xy36X4LRDA/ZlhCK6T0zbsAAIYObY2Qija/379iXx+e2wWwEIXS46B62nGaUcuI0MpUnTSrg==",
"dev": true
},
"@iconify/vue": {
"version": "2.0.0-rc.3",
"resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-2.0.0-rc.3.tgz",
"integrity": "sha512-McYHQZBKZx+knO7DNODOhspIYCHYf0ogzk9YbzZsPdSAhTt7M42aXcczGK/Y8O2txvAwejtscwLX77jVbknHbw==",
"dev": true,
"requires": {}
},
"@koa/cors": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@koa/cors/-/cors-3.1.0.tgz",

View File

@ -11,21 +11,6 @@
<OfflineIcon icon="experiment2" :inline="true" />
<FullIcon icon="experiment2" :inline="true" />
</div>
<div>
Using "vertical-align: 0" to override inline attribute:
<OfflineIcon icon="experiment2" style="vertical-align: 0" />
<FullIcon icon="experiment2" style="vertical-align: 0" />
<OfflineIcon
icon="experiment2"
style="vertical-align: 0"
:inline="true"
/>
<FullIcon
icon="experiment2"
style="vertical-align: 0"
:inline="true"
/>
</div>
</section>
</template>

View File

@ -9,7 +9,8 @@
"version": "3.0.0-dev",
"license": "MIT",
"devDependencies": {
"@iconify/core": "^1.0.0-rc.3",
"@iconify/core": "^1.0.0",
"@iconify/types": "^1.0.6",
"@microsoft/api-extractor": "^7.12.0",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-commonjs": "^16.0.0",
@ -25,6 +26,9 @@
"typescript": "^4.1.2",
"vue": "^3.0.2",
"vue-jest": "^5.0.0-alpha.7"
},
"peerDependencies": {
"vue": ">= 3.0.0"
}
},
"node_modules/@babel/code-frame": {
@ -543,9 +547,9 @@
}
},
"node_modules/@iconify/core": {
"version": "1.0.0-rc.5",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0-rc.5.tgz",
"integrity": "sha512-1VFvNlBqsX/pMRI3nd00UzEqAS7weayJ/CyCD18b8+kFa9PvoVcGAmob1bTTm++v+QKVqQs+8iQaBFl/DrrsvA==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0.tgz",
"integrity": "sha512-jzGZQMOqoPpKFZ4K4dQ6gNcDqALoJE02FMExm+kcN4vp2GJ5JKCccYxJLBWTmR23vVeZzpxlCtL3KSKjUfe2Kw==",
"dev": true,
"dependencies": {
"@cyberalien/redundancy": "^1.1.0",
@ -22162,16 +22166,16 @@
"peer": true
},
"node_modules/vue-jest": {
"version": "5.0.0-alpha.7",
"resolved": "https://registry.npmjs.org/vue-jest/-/vue-jest-5.0.0-alpha.7.tgz",
"integrity": "sha512-cB7ccBXqQsdMt/rzPVPlKeBS486uyXhR+q3A5t22ibhMc6RDPwr7bbb6XFcViv7xyIG9/MkKgSESg67mHv2/9w==",
"version": "5.0.0-alpha.8",
"resolved": "https://registry.npmjs.org/vue-jest/-/vue-jest-5.0.0-alpha.8.tgz",
"integrity": "sha512-4FqH69T6X6rOglrEui/mDWvOTGB9ammmCXLVdS4s524D4Emx8fBC4sKAPFAUZfbWpYh/7i7xWoPwF4agfyGWwA==",
"dev": true,
"dependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"chalk": "^2.1.0",
"convert-source-map": "^1.6.0",
"extract-from-css": "^0.4.4",
"ts-jest": "^24.0.0"
"tsconfig": "^7.0.0"
},
"peerDependencies": {
"@babel/core": "7.x",
@ -24394,9 +24398,9 @@
}
},
"@iconify/core": {
"version": "1.0.0-rc.5",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0-rc.5.tgz",
"integrity": "sha512-1VFvNlBqsX/pMRI3nd00UzEqAS7weayJ/CyCD18b8+kFa9PvoVcGAmob1bTTm++v+QKVqQs+8iQaBFl/DrrsvA==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0.tgz",
"integrity": "sha512-jzGZQMOqoPpKFZ4K4dQ6gNcDqALoJE02FMExm+kcN4vp2GJ5JKCccYxJLBWTmR23vVeZzpxlCtL3KSKjUfe2Kw==",
"dev": true,
"requires": {
"@cyberalien/redundancy": "^1.1.0",
@ -42362,15 +42366,16 @@
"peer": true
},
"vue-jest": {
"version": "5.0.0-alpha.7",
"resolved": "https://registry.npmjs.org/vue-jest/-/vue-jest-5.0.0-alpha.7.tgz",
"integrity": "sha512-cB7ccBXqQsdMt/rzPVPlKeBS486uyXhR+q3A5t22ibhMc6RDPwr7bbb6XFcViv7xyIG9/MkKgSESg67mHv2/9w==",
"version": "5.0.0-alpha.8",
"resolved": "https://registry.npmjs.org/vue-jest/-/vue-jest-5.0.0-alpha.8.tgz",
"integrity": "sha512-4FqH69T6X6rOglrEui/mDWvOTGB9ammmCXLVdS4s524D4Emx8fBC4sKAPFAUZfbWpYh/7i7xWoPwF4agfyGWwA==",
"dev": true,
"requires": {
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"chalk": "^2.1.0",
"convert-source-map": "^1.6.0",
"extract-from-css": "^0.4.4"
"extract-from-css": "^0.4.4",
"tsconfig": "^7.0.0"
}
},
"vue-loader": {

View File

@ -24,7 +24,8 @@
"module": "dist/iconify.mjs",
"types": "dist/iconify.d.ts",
"devDependencies": {
"@iconify/core": "^1.0.0-rc.3",
"@iconify/core": "^1.0.0",
"@iconify/types": "^1.0.6",
"@microsoft/api-extractor": "^7.12.0",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-commonjs": "^16.0.0",
@ -40,5 +41,8 @@
"typescript": "^4.1.2",
"vue": "^3.0.2",
"vue-jest": "^5.0.0-alpha.7"
},
"peerDependencies": {
"vue": ">= 3.0.0"
}
}

View File

@ -212,13 +212,13 @@ setAPIModule('', getAPIModule(getAPIConfig));
/**
* Function to enable node-fetch for getting icons on server side
*/
export function setNodeFetch(nodeFetch: typeof fetch) {
_api.setFetch = (nodeFetch: typeof fetch) => {
setFetch(nodeFetch);
if (getAPIModule !== getFetchAPIModule) {
getAPIModule = getFetchAPIModule;
setAPIModule('', getAPIModule(getAPIConfig));
}
}
};
/**
* Browser stuff
@ -327,11 +327,7 @@ export const Icon = defineComponent({
},
unmounted() {
this.mounted = false;
if (this._loadingIcon) {
this._loadingIcon.abort();
this._loadingIcon = null;
}
this.abortLoading();
},
methods: {
@ -397,8 +393,6 @@ export const Icon = defineComponent({
// Get icon data
const props = this.$attrs;
// Check icon
const icon = this.getIcon(props.icon);
// Validate icon object

View File

@ -8148,6 +8148,7 @@
"node-pre-gyp"
],
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"

View File

@ -1,15 +1,16 @@
{
"name": "@iconify/vue2",
"version": "1.0.6",
"version": "1.0.0-dev",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@iconify/vue2",
"version": "1.0.6",
"version": "1.0.0-dev",
"license": "MIT",
"devDependencies": {
"@iconify/core": "^1.0.0-rc.3",
"@iconify/core": "^1.0.0",
"@iconify/types": "^1.0.6",
"@microsoft/api-extractor": "^7.15.1",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-commonjs": "^18.1.0",
@ -26,6 +27,9 @@
"vue": "^2.6.12",
"vue-jest": "^3.0.7",
"vue-template-compiler": "^2.6.12"
},
"peerDependencies": {
"vue": "2.x"
}
},
"node_modules/@babel/code-frame": {
@ -703,13 +707,13 @@
"dev": true
},
"node_modules/@iconify/core": {
"version": "1.0.0-rc.3",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0-rc.3.tgz",
"integrity": "sha512-gCHmASaQbai749xrvvBpJ7eVrnJusLA2Q+aULMGAZkIrU/YRUiXznpfNITozZaIhdOLjzp8CD8s/j2vv5CyNCg==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0.tgz",
"integrity": "sha512-jzGZQMOqoPpKFZ4K4dQ6gNcDqALoJE02FMExm+kcN4vp2GJ5JKCccYxJLBWTmR23vVeZzpxlCtL3KSKjUfe2Kw==",
"dev": true,
"dependencies": {
"@cyberalien/redundancy": "^1.1.0",
"@iconify/types": "^1.0.5"
"@iconify/types": "^1.0.6"
}
},
"node_modules/@iconify/types": {
@ -3440,6 +3444,7 @@
"resolved": "https://registry.npmjs.org/deasync/-/deasync-0.1.20.tgz",
"integrity": "sha512-E1GI7jMI57hL30OX6Ht/hfQU8DO4AuB9m72WFm4c38GNbUD4Q03//XZaOIHZiY+H1xUaomcot5yk2q/qIZQkGQ==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
"bindings": "^1.5.0",
"node-addon-api": "^1.7.1"
@ -10089,13 +10094,13 @@
"dev": true
},
"@iconify/core": {
"version": "1.0.0-rc.3",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0-rc.3.tgz",
"integrity": "sha512-gCHmASaQbai749xrvvBpJ7eVrnJusLA2Q+aULMGAZkIrU/YRUiXznpfNITozZaIhdOLjzp8CD8s/j2vv5CyNCg==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@iconify/core/-/core-1.0.0.tgz",
"integrity": "sha512-jzGZQMOqoPpKFZ4K4dQ6gNcDqALoJE02FMExm+kcN4vp2GJ5JKCccYxJLBWTmR23vVeZzpxlCtL3KSKjUfe2Kw==",
"dev": true,
"requires": {
"@cyberalien/redundancy": "^1.1.0",
"@iconify/types": "^1.0.5"
"@iconify/types": "^1.0.6"
}
},
"@iconify/types": {

View File

@ -24,7 +24,8 @@
"module": "dist/iconify.mjs",
"types": "dist/iconify.d.ts",
"devDependencies": {
"@iconify/core": "^1.0.0-rc.3",
"@iconify/core": "^1.0.0",
"@iconify/types": "^1.0.6",
"@microsoft/api-extractor": "^7.15.1",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-commonjs": "^18.1.0",
@ -41,5 +42,8 @@
"vue": "^2.6.12",
"vue-jest": "^3.0.7",
"vue-template-compiler": "^2.6.12"
},
"peerDependencies": {
"vue": "2.x"
}
}

View File

@ -204,13 +204,13 @@ setAPIModule('', getAPIModule(getAPIConfig));
/**
* Function to enable node-fetch for getting icons on server side
*/
export function setNodeFetch(nodeFetch: typeof fetch) {
_api.setFetch = (nodeFetch: typeof fetch) => {
setFetch(nodeFetch);
if (getAPIModule !== getFetchAPIModule) {
getAPIModule = getFetchAPIModule;
setAPIModule('', getAPIModule(getAPIConfig));
}
}
};
/**
* Browser stuff