New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svgs

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgs - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

6

CHANGELOG.md
# CHANGELOG
### 3.0.1
- 3.0.0 also introduced some `Prop-Type` validation to certain components. It
forced `x` and `y` values to be strings. This has now been updated to allow
both `string` and `number` values.
### 3.0.0

@@ -4,0 +10,0 @@

30

index.js

@@ -0,5 +1,13 @@

import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import rip from 'rip-out';
//
// Allow both numbers and strings to represent a value.
//
const numb = PropTypes.oneOfType([
PropTypes.string,
PropTypes.number
]);
/**

@@ -252,8 +260,9 @@ * Helper function to copy and paste over properties to a different object if

}
Text.propTypes = {
x: PropTypes.string,
y: PropTypes.string,
dx: PropTypes.string,
dy: PropTypes.string,
rotate: PropTypes.string
x: numb,
y: numb,
dx: numb,
dy: numb,
rotate: numb,
};

@@ -277,10 +286,5 @@

}
TSpan.propTypes = {
x: PropTypes.string,
y: PropTypes.string,
dx: PropTypes.string,
dy: PropTypes.string,
rotate: PropTypes.string
};
TSpan.propTypes = Text.propTypes;
/**

@@ -287,0 +291,0 @@ * Return a textpath SVG element.

@@ -10,2 +10,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _react = require('react');

@@ -15,6 +19,2 @@

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _ripOut = require('rip-out');

@@ -28,2 +28,7 @@

//
// Allow both numbers and strings to represent a value.
//
var numb = _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]);
/**

@@ -283,8 +288,9 @@ * Helper function to copy and paste over properties to a different object if

}
Text.propTypes = {
x: _propTypes2.default.string,
y: _propTypes2.default.string,
dx: _propTypes2.default.string,
dy: _propTypes2.default.string,
rotate: _propTypes2.default.string
x: numb,
y: numb,
dx: numb,
dy: numb,
rotate: numb
};

@@ -314,10 +320,5 @@

}
TSpan.propTypes = {
x: _propTypes2.default.string,
y: _propTypes2.default.string,
dx: _propTypes2.default.string,
dy: _propTypes2.default.string,
rotate: _propTypes2.default.string
};
TSpan.propTypes = Text.propTypes;
/**

@@ -324,0 +325,0 @@ * Return a textpath SVG element.

{
"name": "svgs",
"version": "3.0.0",
"version": "3.0.1",
"description": "svgs is a compatiblity layer between svg and react-native-svg",

@@ -5,0 +5,0 @@ "main": "./lib",

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