@iconify/react
Advanced tools
Comparing version 4.0.1-beta.1 to 4.0.1
@@ -45,2 +45,6 @@ import { IconifyIcon } from '@iconify/types'; | ||
*/ | ||
export declare function calculateSize(size: string, ratio: number, precision?: number): string; | ||
export declare function calculateSize(size: number, ratio: number, precision?: number): number; | ||
export declare function calculateSize(size: string | number, ratio: number, precision?: number): string | number; | ||
@@ -47,0 +51,0 @@ |
@@ -688,3 +688,7 @@ 'use strict'; | ||
setTimeout(() => { | ||
callback("next", defaultError); | ||
if (data === 404) { | ||
callback("abort", data); | ||
} else { | ||
callback("next", defaultError); | ||
} | ||
}); | ||
@@ -1324,7 +1328,4 @@ return; | ||
params.forEach((item) => { | ||
sendAPIQuery(provider, item, (data, error) => { | ||
sendAPIQuery(provider, item, (data) => { | ||
if (typeof data !== "object") { | ||
if (error !== 404) { | ||
return; | ||
} | ||
item.icons.forEach((name) => { | ||
@@ -1331,0 +1332,0 @@ storage.missing.add(name); |
136
package.json
{ | ||
"name": "@iconify/react", | ||
"description": "Iconify icon component for React.", | ||
"author": "Vjacheslav Trushkin", | ||
"version": "4.0.1-beta.1", | ||
"license": "MIT", | ||
"bugs": "https://github.com/iconify/iconify/issues", | ||
"homepage": "https://iconify.design/", | ||
"funding": "https://github.com/sponsors/cyberalien", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/iconify/iconify.git", | ||
"directory": "components/react" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf lib dist tsconfig.tsbuildinfo", | ||
"prebuild": "pnpm run clean", | ||
"build": "node build", | ||
"build:lib": "tsc -b", | ||
"build:dist": "rollup -c rollup.config.js", | ||
"prebuild:api": "api-extractor run --local --verbose --config api-extractor.offline.json", | ||
"build:api": "api-extractor run --local --verbose --config api-extractor.iconify.json", | ||
"build:cleanup": "node cleanup", | ||
"test": "jest --runInBand" | ||
}, | ||
"main": "dist/iconify.js", | ||
"module": "dist/iconify.mjs", | ||
"types": "dist/iconify.d.ts", | ||
"exports": { | ||
"./*": "./*", | ||
".": { | ||
"import": "./dist/iconify.mjs", | ||
"types": "./dist/iconify.d.ts", | ||
"default": "./dist/iconify.js" | ||
}, | ||
"./offline": { | ||
"import": "./dist/offline.mjs", | ||
"types": "./dist/offline.d.ts", | ||
"default": "./dist/offline.js" | ||
}, | ||
"./dist/offline": { | ||
"import": "./dist/offline.mjs", | ||
"types": "./dist/offline.d.ts", | ||
"default": "./dist/offline.js" | ||
} | ||
}, | ||
"dependencies": { | ||
"@iconify/types": "workspace:^" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.19.0", | ||
"@babel/preset-react": "^7.18.6", | ||
"@iconify/core": "workspace:^", | ||
"@iconify/utils": "workspace:^", | ||
"@microsoft/api-extractor": "^7.30.0", | ||
"@rollup/plugin-node-resolve": "^14.0.0", | ||
"@types/react": "^17.0.49", | ||
"babel-jest": "^29.0.2", | ||
"jest": "^29.0.2", | ||
"react": "^18.2.0", | ||
"react-test-renderer": "^18.2.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.79.0", | ||
"typescript": "^4.8.2" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16" | ||
} | ||
} | ||
"name": "@iconify/react", | ||
"description": "Iconify icon component for React.", | ||
"author": "Vjacheslav Trushkin", | ||
"version": "4.0.1", | ||
"license": "MIT", | ||
"bugs": "https://github.com/iconify/iconify/issues", | ||
"homepage": "https://iconify.design/", | ||
"funding": "https://github.com/sponsors/cyberalien", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/iconify/iconify.git", | ||
"directory": "components/react" | ||
}, | ||
"main": "dist/iconify.js", | ||
"module": "dist/iconify.mjs", | ||
"types": "dist/iconify.d.ts", | ||
"exports": { | ||
"./*": "./*", | ||
".": { | ||
"import": "./dist/iconify.mjs", | ||
"types": "./dist/iconify.d.ts", | ||
"default": "./dist/iconify.js" | ||
}, | ||
"./offline": { | ||
"import": "./dist/offline.mjs", | ||
"types": "./dist/offline.d.ts", | ||
"default": "./dist/offline.js" | ||
}, | ||
"./dist/offline": { | ||
"import": "./dist/offline.mjs", | ||
"types": "./dist/offline.d.ts", | ||
"default": "./dist/offline.js" | ||
} | ||
}, | ||
"dependencies": { | ||
"@iconify/types": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.19.0", | ||
"@babel/preset-react": "^7.18.6", | ||
"@iconify/core": "^2.0.1", | ||
"@iconify/utils": "^2.0.2", | ||
"@microsoft/api-extractor": "^7.30.0", | ||
"@rollup/plugin-node-resolve": "^14.0.0", | ||
"@types/react": "^17.0.49", | ||
"babel-jest": "^29.0.2", | ||
"jest": "^29.0.2", | ||
"react": "^18.2.0", | ||
"react-test-renderer": "^18.2.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.79.0", | ||
"typescript": "^4.8.2" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf lib dist tsconfig.tsbuildinfo", | ||
"prebuild": "pnpm run clean", | ||
"build": "node build", | ||
"build:lib": "tsc -b", | ||
"build:dist": "rollup -c rollup.config.js", | ||
"prebuild:api": "api-extractor run --local --verbose --config api-extractor.offline.json", | ||
"build:api": "api-extractor run --local --verbose --config api-extractor.iconify.json", | ||
"build:cleanup": "node cleanup", | ||
"test": "jest --runInBand" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
174520
5660
0
+ Added@iconify/types@2.0.0(transitive)
Updated@iconify/types@^2.0.0