Comparing version 0.0.22 to 0.0.23
@@ -170,2 +170,14 @@ import { Config } from 'svgo'; | ||
export { type CreateHandler, CssMaskHandler, File, type IWriter, type ModuleConfig, ReactCssMaskHandler, TokenHandler, TypeHandler, VueCssMaskHandler, VueInlineHandler, defineConfig }; | ||
declare class ReactInlineHandler implements ISvgHandler { | ||
private readonly mConfig; | ||
private file; | ||
private components; | ||
private imports; | ||
config: Config; | ||
constructor(mConfig: ModuleConfig); | ||
onFile(svg: File): File; | ||
onEnd(ctx: Context): File[]; | ||
private getFileContent; | ||
} | ||
export { type CreateHandler, CssMaskHandler, File, type IWriter, type ModuleConfig, ReactCssMaskHandler, ReactInlineHandler, TokenHandler, TypeHandler, VueCssMaskHandler, VueInlineHandler, defineConfig }; |
{ | ||
"name": "svgpipe", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "A flexible CLI tool around svgo for further postprocessing.", | ||
@@ -36,17 +36,17 @@ "keywords": [ | ||
}, | ||
"packageManager": "pnpm@9.5.0", | ||
"packageManager": "pnpm@9.15.0", | ||
"devDependencies": { | ||
"@types/lodash": "^4.17.7", | ||
"@types/lodash": "^4.17.13", | ||
"@types/node": "^20.14.11", | ||
"@types/svgo": "^3.0.0", | ||
"changelogen": "^0.5.5", | ||
"changelogen": "^0.5.7", | ||
"ts-node": "^10.9.2", | ||
"tsconfig-paths": "^4.2.0", | ||
"typescript": "^5.5.3", | ||
"typescript": "^5.7.2", | ||
"unbuild": "^2.0.0", | ||
"vite-tsconfig-paths": "^5.0.1", | ||
"vitest": "^2.0.3" | ||
"vite-tsconfig-paths": "^5.1.4", | ||
"vitest": "^2.1.8" | ||
}, | ||
"dependencies": { | ||
"c12": "^1.11.1", | ||
"c12": "^2.0.1", | ||
"change-case-all": "^2.1.0", | ||
@@ -57,5 +57,5 @@ "citty": "^0.1.6", | ||
"lodash": "^4.17.21", | ||
"prettier": "^3.3.3", | ||
"prettier": "^3.4.2", | ||
"svgo": "^3.3.2" | ||
} | ||
} |
@@ -48,7 +48,9 @@ # Svgpipe | ||
| Name | Output | Note | | ||
| :------------- | :----------------------------------------------------------------------------------------------------------- | :---------------------------- | | ||
| `css-mask` | [View](https://github.com/niklas-may/svgpipe/tree/main/src/handler/__test__/snapshots/css-mask.css.txt) | | | ||
| `vue-css-mask` | [View](https://github.com/niklas-may/svgpipe/tree/main/src/handler/__test__/snapshots/vue-css-mask.vue.txt) | | | ||
| `vue-inline` | [View](https://github.com/niklas-may/svgpipe/tree/main/src/handler/__test__/snapshots/vue-inline.vue.txt) | Depends on `vite-svg-loader`. | | ||
| Name | Output | Note | | ||
| :--------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------ | | ||
| `css-mask` | [View](https://github.com/niklas-may/svgpipe/tree/main/src/handler/__test__/snapshots/css-mask.css.txt) | | | ||
| `vue-css-mask` | [View](https://github.com/niklas-may/svgpipe/tree/main/src/handler/__test__/snapshots/vue-css-mask.vue.txt) | | | ||
| `vue-inline` | [View](https://github.com/niklas-may/svgpipe/tree/main/src/handler/__test__/snapshots/vue-inline.vue.txt) | Depends on `vite-svg-loader`. | | ||
| `react-css-mask` | [View](https://github.com/niklas-may/svgpipe/tree/main/src/handler/__test__/snapshots/react-css-mask.tsx.txt) | | | ||
| `react-inline` | [View](https://github.com/niklas-may/svgpipe/tree/main/src/handler/__test__/snapshots/react-inline.tsx.txt) | Needs something like `@svgr/webpack`. | | ||
@@ -100,2 +102,3 @@ ## Options | ||
} | ||
// Add svgo config (https://github.com/svg/svgo?tab=readme-ov-file#configuration). Can be overridden or extended from svgpipe.config.ts | ||
config: { | ||
@@ -102,0 +105,0 @@ multipass: true |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
68647
1687
123
+ Addedc12@2.0.1(transitive)
+ Addedchokidar@4.0.2(transitive)
+ Addedjiti@2.4.2(transitive)
+ Addedreaddirp@4.0.2(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbraces@3.0.3(transitive)
- Removedc12@1.11.2(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedjiti@1.21.7(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
Updatedc12@^2.0.1
Updatedprettier@^3.4.2