text-to-svg
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -146,3 +146,3 @@ 'use strict'; | ||
var attributes = Object.keys(options.attributes || {}).map(function (key) { | ||
return key + '="' + attributes[key] + '"'; | ||
return key + '="' + options.attributes[key] + '"'; | ||
}).join(' '); | ||
@@ -149,0 +149,0 @@ var d = this.getD(text, options); |
# CHANGELOG | ||
## 3.0.1 | ||
- Fix #10 | ||
## 3.0.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "text-to-svg", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Convert text to SVG path.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -159,2 +159,11 @@ # text-to-svg | ||
## Thanks | ||
text-to-svg depends on the following softwares. I thank great authors a lot. | ||
- [opentype.js](https://github.com/nodebox/opentype.js): Copyright (c) 2015 Frederik De Bleser | ||
- [commander](https://github.com/tj/commander.js): Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca> | ||
These are released under the [MIT license](https://opensource.org/licenses/MIT) | ||
[npm-url]: https://npmjs.org/package/text-to-svg | ||
@@ -161,0 +170,0 @@ [npm-image]: https://badge.fury.io/js/text-to-svg.svg |
@@ -134,3 +134,3 @@ /** | ||
const attributes = Object.keys(options.attributes || {}) | ||
.map(key => `${key}="${attributes[key]}"`) | ||
.map(key => `${key}="${options.attributes[key]}"`) | ||
.join(' '); | ||
@@ -137,0 +137,0 @@ const d = this.getD(text, options); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
13004860
9176
176
0
116