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

svgo

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgo - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

### [ [>](https://github.com/svg/svgo/tree/v0.2.2) ] 0.2.2 / 09.02.2013
* plugins/convertTransforms: wrong translate() shorthand (fix [#94](https://github.com/svg/svgo/issues/94))
* [yaml.js](https://github.com/jeremyfa/yaml.js) → [js-yaml](https://github.com/nodeca/js-yaml)
* update outdated deps
### [ [>](https://github.com/svg/svgo/tree/v0.2.1) ] 0.2.1 / 18.01.2013

@@ -2,0 +7,0 @@ * plugins/moveElemsAttrsToGroup + plugins/moveGroupAttrsToElems: move or just leave transform attr from Group to the inner Path Elems (close [#86](https://github.com/svg/svgo/issues/86))

4

lib/svgo/config.js

@@ -5,3 +5,3 @@ 'use strict';

PATH = require('path'),
YAML = require('yamljs'),
YAML = require('js-yaml'),
extend = require('./tools').extend,

@@ -115,3 +115,3 @@ defaultConfigPath = PATH.resolve(__dirname, '../../.svgo.yml');

.then(function(data) {
return YAML.parse(data.toString());
return YAML.load(data.toString());
});

@@ -118,0 +118,0 @@

{
"name": "svgo",
"version": "0.2.1",
"version": "0.2.2",
"description": "Nodejs-based tool for optimizing SVG vector graphics files",

@@ -40,3 +40,3 @@ "keywords": [ "svgo", "svg", "optimize", "minify" ],

"dependencies": {
"sax": "~0.4.2",
"sax": "~0.5.0",
"q": "~0.8.10",

@@ -47,9 +47,9 @@ "q-fs": "~0.1.0",

"node.extend": "",
"yamljs": "~0.1.3",
"js-yaml": "",
"colors": "~0.6.0"
},
"devDependencies": {
"mocha": "~1.7.0",
"mocha-as-promised": "~1.1.0",
"chai": "~1.1.0",
"mocha": "~1.8.0",
"mocha-as-promised": "~1.2.0",
"chai": "~1.5.0",
"chai-as-promised": "~3.2.3",

@@ -56,0 +56,0 @@ "istanbul": "~0.1.0",

@@ -203,3 +203,3 @@ 'use strict';

// [1, 0, 0, 1, tx, ty]
matrix = [1, 0, 0, 1, transform.data[0], transform.data[1] || transform.data[0]];
matrix = [1, 0, 0, 1, transform.data[0], transform.data[1] || 0];
break;

@@ -206,0 +206,0 @@ case 'scale':

@@ -6,3 +6,3 @@ **english** | [русский](https://github.com/svg/svgo/blob/master/README.ru.md)

## SVGO v0.2.1 [![Build Status](https://secure.travis-ci.org/svg/svgo.png)](http://travis-ci.org/svg/svgo)
## SVGO v0.2.2 [![Build Status](https://secure.travis-ci.org/svg/svgo.png)](http://travis-ci.org/svg/svgo)

@@ -9,0 +9,0 @@ **SVG O**ptimizer is a Nodejs-based tool for optimizing SVG vector graphics files.

@@ -6,3 +6,3 @@ [english](https://github.com/svg/svgo/blob/master/README.md) | **русский**

## SVGO v0.2.1 [![Build Status](https://secure.travis-ci.org/svg/svgo.png)](http://travis-ci.org/svg/svgo)
## SVGO v0.2.2 [![Build Status](https://secure.travis-ci.org/svg/svgo.png)](http://travis-ci.org/svg/svgo)

@@ -9,0 +9,0 @@ **SVG** **O**ptimizer – это инструмент для оптимизации векторной графики в формате SVG, написанный на Node.js.

@@ -37,4 +37,4 @@ 'use strict';

it('should eventually be an Object', function() {
return defaultConfig.should.eventually.be.an('object');
it('should eventually be an instance of Object', function() {
return defaultConfig.should.eventually.be.an.instanceOf(Object);
});

@@ -41,0 +41,0 @@

@@ -43,4 +43,4 @@ 'use strict';

it('should eventually be an Object', function() {
return root.should.eventually.be.an('object');
it('should eventually be an instance of Object', function() {
return root.should.eventually.be.an.instanceOf(Object);
});

@@ -64,8 +64,8 @@

it('should eventually be an Array', function() {
return content.should.eventually.be.an('array');
it('should eventually be an instance of Array', function() {
return content.should.eventually.be.an.instanceOf(Array);
});
it('should eventually have length 4', function() {
return content.should.eventually.have.length(4);
return content.should.eventually.have.lengthOf(4);
});

@@ -85,4 +85,4 @@

it('should eventually be an Object', function() {
return processinginstruction.should.eventually.be.an('object');
it('should eventually be an instance of Object', function() {
return processinginstruction.should.eventually.be.an.instanceOf(Object);
});

@@ -166,4 +166,4 @@

it('should eventually be an Object', function() {
return attrs.should.be.an('object');
it('should eventually be an instance of Object', function() {
return attrs.should.be.an.instanceOf(Object);
});

@@ -183,4 +183,4 @@

it('should eventually be an Object', function() {
return version.should.eventually.be.an('object');
it('should eventually be an instance of Object', function() {
return version.should.eventually.be.an.instanceOf(Object);
});

@@ -218,8 +218,8 @@

it('should eventually be an Array', function() {
return content.should.eventually.be.an('array');
it('should eventually be an instance of Array', function() {
return content.should.eventually.be.an.instanceOf(Array);
});
it('should eventually have length 3', function() {
return content.should.eventually.have.length(3);
return content.should.eventually.have.lengthOf(3);
});

@@ -226,0 +226,0 @@

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