Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svgpipe

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgpipe - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

dist/shared/svgpipe.7da406d6.cjs

14

dist/main.d.ts

@@ -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 };

18

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc