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

fauna

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fauna - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

package.json
{
"name": "fauna",
"version": "0.4.0",
"version": "0.4.1",
"description": "Generate and render animated L-Systems",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -50,9 +50,9 @@ const xml = require('xml');

const valuesPath = `${fromPath};${toPath};${fromPath};`;
return [{animate: {_attr:{
return [{_attr:{
attributeName: 'd',
begin: '0s',
dur: duration,
values: valuesPath,
repeatCount: 'indefinite'
}}}];
dur: duration + 's',
repeatCount: 'indefinite',
values: valuesPath
}}];
}

@@ -94,2 +94,3 @@

const toStack = stacks[1];
const toPath = pathString(toStack);
const animateEl = animateElement(fromPath, toPath, 10);

@@ -96,0 +97,0 @@ animateEls.push(animateEl);

@@ -79,9 +79,9 @@ const expect = require('chai').expect;

const duration = 20;
const expected = [{animate: {_attr:{
const expected = [{_attr:{
attributeName: 'd',
begin: '0s',
dur: 20,
dur: '20s',
values: '1 2 1;3 4 3;1 2 1;',
repeatCount: 'indefinite'
}}}];
}}];
const actual = animateElement(fromPath, toPath, duration);

@@ -88,0 +88,0 @@ expect(actual).to.be.deep.equal(expected);

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