Socket
Socket
Sign inDemoInstall

svg-symbol-sprite

Package Overview
Dependencies
22
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.2

18

CHANGELOG.md

@@ -7,2 +7,20 @@ ### Changelog

#### [1.2.2](https://github.com/scriptex/svg-symbol-sprite/compare/1.2.0...1.2.2)
> 7 November 2022
- Update dependency svgo to v3 [`#21`](https://github.com/scriptex/svg-symbol-sprite/pull/21)
- Update dependency release-it to v15.4.3 [`88541a0`](https://github.com/scriptex/svg-symbol-sprite/commit/88541a0acbc5386a646464d2196f2e5b388431ca)
- Fix the URL to the documentation [`2b09efa`](https://github.com/scriptex/svg-symbol-sprite/commit/2b09efa3eff267d8caf61249d0c43f1cefe08f9a)
- Update CHANGELOG.md with the latest changes [`ec1aa24`](https://github.com/scriptex/svg-symbol-sprite/commit/ec1aa2475d9e092fa577bf0b99b341a885d265b5)
#### [1.2.0](https://github.com/scriptex/svg-symbol-sprite/compare/1.0.5...1.2.0)
> 30 September 2022
- Update metadata [`#20`](https://github.com/scriptex/svg-symbol-sprite/pull/20)
- Update dependency release-it to v15.4.2 [`3a66588`](https://github.com/scriptex/svg-symbol-sprite/commit/3a665880d666637e50d9e4a312de22ced918dd90)
- Update CHANGELOG.md with the latest changes [`d077dbe`](https://github.com/scriptex/svg-symbol-sprite/commit/d077dbe11a24c1655851514a49b65ca8af430bcf)
- Update dependency typescript to v4.8.4 [`58b78c4`](https://github.com/scriptex/svg-symbol-sprite/commit/58b78c4a4061557cd306c2b073a64ffc537251bb)
#### [1.0.5](https://github.com/scriptex/svg-symbol-sprite/compare/1.0.4...1.0.5)

@@ -9,0 +27,0 @@

4

config/svgo.config.js

@@ -17,2 +17,3 @@ module.exports = {

'removeDimensions',
'cleanupIds',
{

@@ -23,4 +24,3 @@ name: 'removeViewBox',

{
name: 'cleanupIDs',
active: true,
name: 'prefixIds',
params: {

@@ -27,0 +27,0 @@ prefix: {

@@ -69,3 +69,6 @@ #!/usr/bin/env node

for (const file of files) {
(0, svgo_1.optimize)(file, svgoConfig);
const content = await fs_1.promises.readFile((0, path_1.join)(INPUT, file), {
encoding: 'utf-8'
});
(0, svgo_1.optimize)(content, svgoConfig);
}

@@ -72,0 +75,0 @@ return processFiles(files);

{
"name": "svg-symbol-sprite",
"version": "1.1.0",
"version": "1.2.2",
"description": "A script to generate a symbol sprite from SVG files",

@@ -14,3 +14,3 @@ "keywords": [

],
"homepage": "https://atanas.info/projects/svg-symbol-sprite.html",
"homepage": "https://atanas.info/portfolio/open-source/svg-symbol-sprite",
"bugs": {

@@ -44,11 +44,10 @@ "url": "https://github.com/scriptex/svg-symbol-sprite/issues",

"cheerio": "1.0.0-rc.12",
"commander": "9.4.0",
"svgo": "2.8.0"
"commander": "9.4.1",
"svgo": "3.0.0"
},
"devDependencies": {
"@types/cheerio": "0.22.31",
"@types/node": "18.7.23",
"@types/svgo": "2.6.4",
"release-it": "15.4.2",
"tslib": "2.4.0",
"@types/node": "18.11.9",
"release-it": "15.5.0",
"tslib": "2.4.1",
"typescript": "4.8.4"

@@ -55,0 +54,0 @@ },

@@ -86,3 +86,7 @@ #!/usr/bin/env node

for (const file of files) {
optimize(file, svgoConfig);
const content = await fs.readFile(join(INPUT, file), {
encoding: 'utf-8'
});
optimize(content, svgoConfig);
}

@@ -89,0 +93,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc