Socket
Socket
Sign inDemoInstall

nanotween

Package Overview
Dependencies
2
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.7 to 0.4.8

18

dist/helpers.js

@@ -10,2 +10,19 @@ var ntHelpers = (function (exports) {

function def(from, to, k) {
return from + (to - from) * k
}
function fromTo(from, to, cb) {
return function(instance) {
var fn = function(k) {
return typeof from === 'object'
? Object.keys(from).reduce(function(acc, key) {
acc[key] = fromTo(from[key], to[key]);
}, {})
: (cb || def)(from, to, k)
};
instance.convert(fn);
}
}
function Chain(tweens) {

@@ -105,2 +122,3 @@ var self = this;

exports.yoyo = yoyo;
exports.fromTo = fromTo;
exports.Chain = Chain;

@@ -107,0 +125,0 @@ exports.Group = Group;

1

helpers/index.js
export { default as yoyo } from './yoyo'
export { default as fromTo } from './fromTo'
export { default as Chain } from './chain'
export { default as Group } from './group'

2

package.json
{
"name": "nanotween",
"version": "0.4.7",
"version": "0.4.8",
"description": "Tiny library for tweening",

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

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