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

intertween

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intertween - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

145

index.js

@@ -85,16 +85,17 @@ /**

var setnested = function(nested) {
if (typeof nested === 'object' && !!nested) {
for (var prop in nested) {
if (prop.indexOf('.') !== -1 || prop.indexOf('[') !== -1) {
propExtract(nested, prop);
} else if (typeof nested[prop] === 'object' && !!nested[prop]) {
var nested2 = nested[prop];
for (var prop2 in nested2) {
if (prop2.indexOf('.') !== -1 || prop2.indexOf('[') !== -1) {
propExtract(nested2, prop2);
} else if (typeof nested2[prop2] === 'object' && !!nested2[prop2]) {
var nested3 = nested2[prop2];
for (var prop3 in nested3) {
if (prop3.indexOf('.') !== -1 || prop3.indexOf('[') !== -1) {
propExtract(nested3, prop3);
if (typeof nested === 'object' && !!nested) {
for (var prop in nested) {
if (prop.indexOf('.') !== -1 || prop.indexOf('[') !== -1) {
propExtract(nested, prop);
} else if (typeof nested[prop] === 'object' && !!nested[prop]) {
var nested2 = nested[prop];
for (var prop2 in nested2) {
if (prop2.indexOf('.') !== -1 || prop2.indexOf('[') !== -1) {
propExtract(nested2, prop2);
} else if (typeof nested2[prop2] === 'object' && !!nested2[prop2]) {
var nested3 = nested2[prop2];
for (var prop3 in nested3) {
if (prop3.indexOf('.') !== -1 || prop3.indexOf('[') !== -1) {
propExtract(nested3, prop3);
}
}

@@ -106,3 +107,2 @@ }

}
}
return nested;

@@ -198,3 +198,7 @@ }

}
return function(t) {
return function(t, vt, ease) {
if (!ease) {
ease = easing;
}
vt = vt !== undefined ? vt : t;
var str = '';

@@ -206,6 +210,6 @@ i = 0;

r = rv[i],
_t = typeof easing === 'function' ? easing(t) : t;
_t = typeof ease === 'function' ? ease(t) : t;
str += typeof b === 'number' ? cm !== null && i > cm && i < cmls ? (a + (b - a) * _t) | 0 :
(((a + (b - a) * _t) * d) | 0) / d : a;
if (t === 1 && r !== null) {
if (vt === 1 && r !== null) {
sv[i] = b;

@@ -223,9 +227,16 @@ ev[i] = r2n(b, r);

var s = sv[i];
vs[i] = isArray(s) ? arrayTween(s, ev, d, easing[i] || easing) : typeof s === 'object' ? objectTween(s, ev, d, easing[i] || easing) : typeof s ===
'string' ? stringTween(s, ev, d, easing[i] || easing) : s;
vs[i] = isArray(s) ? arrayTween(s, ev, d, easing && easing[i] || easing) : typeof s === 'object' ?
objectTween(s, ev, d, easing && easing[i] || easing) : typeof s ===
'string' ? stringTween(s, ev, d, easing && easing[i] || easing) : s;
}
return function(t) {
return function(t, v, ease) {
v = v !== undefined ? v : t;
if (!ease) {
ease = easing;
}
for (var i = 0, len = vs.length; i < len; i++) {
var _t = typeof easing === 'function' ? easing(t) : easing && typeof easing[i] === 'function' ? easing[i](t) : t;
sv[i] = typeof vs[i] === 'function' ? vs[i](_t) : typeof vs[i] === 'number' ? vs[i] + (ev -
var _easing = _easing = typeof(ease) === 'function' ? ease : ease && typeof ease[i] === 'function' ?
ease[i] : null;
var _t = typeof _easing ? _easing(t) : t;
sv[i] = typeof vs[i] === 'function' ? vs[i](_easing ? t : _t, v, ease) : typeof vs[i] === 'number' ? vs[i] + (ev -
vs[i]) * _t : vs[i];

@@ -241,3 +252,3 @@ }

var e = ev[i];
vs[i] = mainTween(i === 0 ? sv : ev[i - 1], e, d, easing[i] || easing);
vs[i] = mainTween(i === 0 ? sv : ev[i - 1], e, d, easing && easing[i] || easing);
}

@@ -269,8 +280,14 @@ var lastItem = ev[ev.length - 1];

s[i] = ve.nodeType || ve.update ? ve.update : vs === ve ? null : isArray(ve) ? isArray(vs) && ve.length ===
vs.length ? arrayTween(vs, ve, d, easing[i] || easing) : parseInterpolatables(vs, ve, d, easing[i] || easing) : isArray(vs) ? tweenThemTo(vs,
ve, d, easing[i] || easing) : typeof vs === 'object' ? objectTween(vs, ve, d, easing[i] || easing) : typeof vs === 'string' ?
stringTween(vs, ve, d, easing[i] || easing) : vs !== undefined ? vs : ve;
vs.length ? arrayTween(vs, ve, d, easing && easing[i] || easing) : parseInterpolatables(vs, ve,
d, easing && easing[i] || easing) : isArray(vs) ? tweenThemTo(vs,
ve, d, easing && easing[i] || easing) : typeof vs === 'object' ? objectTween(vs, ve, d,
easing && easing[i] || easing) : typeof vs === 'string' ?
stringTween(vs, ve, d, easing && easing[i] || easing) : vs !== undefined ? vs : ve;
ev[i] = rv[i] !== null ? r2n(vs, ve) : ve;
}
return function(t) {
return function(t, v, ease) {
if (!ease) {
ease = easing;
}
v !== undefined ? v : t;
for (var i = 0; i < minLength; i++) {

@@ -281,6 +298,9 @@ var a = s[i],

if (a === null || a === undefined) continue;
var _t = typeof easing === 'function' ? easing(t) : easing && typeof easing[i] === 'function' ? easing[i](t) : t;
sv[i] = typeof a === 'number' ? (((a + (b - a) * _t) * d) | 0) / d : typeof a === 'function' ?
a(_t) : a.update ? a.update(_t) : b && b.update ? b.update(_t) : b;
if (r && t === 1) {
var _easing = _easing = typeof(ease) === 'function' ? ease : ease && typeof ease[i] === 'function' ?
ease[i] : null;
var _t = _easing ? _easing(t) : t;
sv[i] = typeof a === 'number' ? (((a + (b - a) * _t) * d) | 0) / d : typeof a ===
'function' ?
a(_easing ? t : _t, v, _easing) : a.update ? a.update(_easing ? t : _t, v, _easing) : b && b.update ? b.update(_easing ? t : _t, v, _easing) : b;
if (r && v === 1) {
s[i] = b;

@@ -309,6 +329,10 @@ ev[i] = r2n(s[i], r);

}
return s === e && ev[0] === u ? ev : function(t) {
var _t = typeof easing === 'function' ? easing(t) : t;
return s === e && ev[0] === u ? ev : function(t, vt, ease) {
if (!ease) {
ease = easing;
}
vt !== undefined ? vt : t;
var _t = typeof ease === 'function' ? ease(t) : t;
var v = ((((s + (e - s) * _t) * d) | 0) / d) + u;
if (r && t === 1) {
if (r && vt === 1) {
s = e;

@@ -323,3 +347,5 @@ e = r2n(s, r);

}
var _getProp = !!Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor : function() {
var descriptor = Object.getOwnPropertyDescriptor;
var _getProp = !!descriptor ? descriptor : function() {
return;

@@ -335,3 +361,3 @@ };

setnested(sv)
setnested(easing)
setnested(easing)
for (var i in ev) {

@@ -350,8 +376,14 @@ if (sv[i] === undefined || sv[i] === null) {

s[i] = ve.nodeType ? ve : ve.update ? ve : vs === ve ? null : isArray(ve) ? isArray(vs) && ve.length ===
vs.length ? arrayTween(vs, ve, d, easing[i] || easing) : parseInterpolatables(vs, ve, d, easing[i] || easing) : isArray(vs) ? tweenThemTo(vs,
ve, d, easing[i] || easing) : typeof vs === 'object' ? objectTween(vs, ve, d, easing[i] || easing) : typeof vs === 'string' ?
stringTween(vs, ve, d, easing[i] || easing) : vs !== undefined ? vs : ve;
vs.length ? arrayTween(vs, ve, d, easing && easing[i] || easing) : parseInterpolatables(vs, ve,
d, easing && easing[i] || easing) : isArray(vs) ? tweenThemTo(vs,
ve, d, easing && easing[i] || easing) : typeof vs === 'object' ? objectTween(vs, ve, d,
easing && easing[i] || easing) : typeof vs === 'string' ?
stringTween(vs, ve, d, easing && easing[i] || easing) : vs !== undefined ? vs : ve;
ev[i] = rv[i] !== null ? r2n(vs, ve) : ve;
}
return function(t) {
return function(t, vt, ease) {
if (!ease) {
ease = easing;
}
vt = vt !== undefined ? vt : t;
for (var i in s) {

@@ -361,10 +393,13 @@ var a = s[i],

r = rv[i],
_easing = typeof(easing) === 'function' ? easing : easing && typeof easing[i] === 'function' ? easing[i] : null,
value = !!_easing ? _easing(t) : t,
v = typeof a === 'number' ? (((a + (b - a) * value) * d) | 0) / d : typeof a === 'function' ?
a(value) : a && a.update ? a.update(value) : b && b.update ? b.update(value) : b;
_easing = typeof(ease) === 'function' ? ease : ease && typeof ease[i] === 'function' ?
ease[i] : null,
value = !!_easing ? _easing(t) : t,
v = typeof a === 'number' ? (((a + (b - a) * value) * d) | 0) / d : typeof a ===
'function' ?
a(_easing ? t : value, vt, _easing) : a && a.update ? a.update(_easing ? t : value, vt, _easing) : b && b.update ? b.update(_easing ? t : value, vt, _easing) :
b;
if (!readOnly[i]) {
sv[i] = v;
}
if (r && t === 1) {
if (r && vt === 1) {
s[i] = b;

@@ -379,3 +414,3 @@ ev[i] = r2n(s[i], r);

function mainTween(sv, ev, d, easing) {
setnested(easing)
setnested(easing)
d = d !== null && d !== undefined ? d : 10000;

@@ -387,8 +422,14 @@ var rv = typeof(ev) === 'string' && typeof sv === 'number' && ev.indexOf('=') === 1 ? ev : null;

return ev.nodeType ? ev : sv.nodeType ? sv : isArray(ev) ? isArray(sv) && sv.length === ev.length ?
arrayTween(sv, ev, d, easing) : parseInterpolatables(sv, ev, d, easing) : isArray(sv) ? tweenThemTo(sv, ev, d, easing) : typeof ev ===
'object' ? objectTween(sv, ev, d, easing) : typeof ev === 'string' ? stringTween(sv, ev, d, easing) : typeof ev ===
'function' ? ev : function(t) {
var value = typeof(easing) === 'function' ? easing(t) : t;
arrayTween(sv, ev, d, easing) : parseInterpolatables(sv, ev, d, easing) : isArray(sv) ? tweenThemTo(
sv, ev, d, easing) : typeof ev ===
'object' ? objectTween(sv, ev, d, easing) : typeof ev === 'string' ? stringTween(sv, ev, d, easing) :
typeof ev ===
'function' ? ev : function(t, vt, ease) {
vt = vt !== undefined ? vt : t;
if (!ease) {
ease = easing;
}
var value = typeof(ease) === 'function' ? ease(t) : t;
var vv = typeof ev === 'number' ? (((sv + (ev - sv) * value) * d) | 0) / d : sv
if (rv && t === 1) {
if (rv && vt === 1) {
sv += ev;

@@ -395,0 +436,0 @@ ev = r2n(sv, rv);

/*! InterTween - https://www.npmjs.com/package/intertween */
var y="undefined"!==typeof window?window:this;function F(){function n(a){if("object"===typeof a&&a)for(var b in a)if(-1!==b.indexOf(".")||-1!==b.indexOf("["))z(a,b);else if("object"===typeof a[b]&&a[b]){var e=a[b],c;for(c in e)if(-1!==c.indexOf(".")||-1!==c.indexOf("["))z(e,c);else if("object"===typeof e[c]&&e[c]){var k=e[c],g;for(g in k)-1===g.indexOf(".")&&-1===g.indexOf("[")||z(k,g)}}}function z(a,b){var e=a[b],c=b.replace(G,"").split(H),k=c.length-1,g=Array.isArray(a),l="object"===typeof a&&!g;l?(a[b]=null,delete a[b]):g&&a.splice(b,1);c.reduce(function(b,a,d){g&&"."!==a&&"["!==a&&(a*=1);var f="["===c[d+1];if("."===a||"["===a)"."===a?(l=!0,g=!1):"["===a&&(l=!1,g=!0);else if(void 0===b[a]){if(g||l)return b[a]=d===k?e:g||f?[]:l?{}:null,l=g=!1,b[a]}else if(void 0!==b[a])return d===k&&(b[a]=e),b[a];return b},a)}function I(a){var b=parseFloat(a);return"number"!==typeof b||isNaN(b)?a:b}function J(a,b){if(3===b.length){var e=b[0];var c=b[1];var k=b[2];b=e+e+c+c+k+k}e=parseInt(b,16);return"rgb("+(e>>16&255)+","+(e>>8&255)+","+(e&255)+")"}function q(a,b){if("number"!==typeof b){var e=K[b.substr(0,2)],c=b.substr(2);if(1===e)return a+parseFloat(b[0]+c);if(2===e)return a*+c;if(3===e)return a/+c;if(4===e)return+c/100*a}return b}function D(a){var b="string"!==typeof a?a:("string"===typeof a?a.replace(L,"").replace(M,","):a).replace(N,J);return"string"===typeof b?b.match(E).map(I):a}function v(a,b,e,c){e=null!==e&&void 0!==e?e:1E4;if(!E.test(b))return b;var k=D(a),g=D(b);if(a=O(k,g,e,c))return a;for(var l=a=null,f=null,h=[],d=0,t=g.length;d<t;d++){a=g[d];var p=k[d];h[d]="string"===typeof a&&1===a.indexOf("=")?b:null;P.test(a)?(l=d+2,f=d+11):Q.test(a)&&(l=d,f=d+9);g[d]=p===a?null:null!==h[d]?q(p,a):a}return function(a){var b="";for(d=0;d<t;d++){var p=k[d],u=g[d],m=h[d],n="function"===typeof c?c(a):a;b+="number"===typeof u?null!==l&&d>l&&d<f?p+(u-p)*n|0:((p+(u-p)*n)*e|0)/e:p;1===a&&null!==m&&(k[d]=u,g[d]=q(u,m))}return b}}function A(a,b,e,c){for(var k=[],g=0,l=a.length;g<l;g++){var f=a[g];k[g]=m(f)?w(f,b,e,c[g]||c):"object"===typeof f?x(f,b,e,c[g]||c):"string"===typeof f?v(f,b,e,c[g]||c):f}return function(e){for(var d=0,g=k.length;d<g;d++){var f="function"===typeof c?c(e):c&&"function"===typeof c[d]?c[d](e):e;a[d]="function"===typeof k[d]?k[d](f):"number"===typeof k[d]?k[d]+(b-k[d])*f:k[d]}return a}}function B(a,b,e,c){for(var k=[],g=0,l=b.length;g<l;g++)k[g]=C(0===g?a:b[g-1],b[g],e,c[g]||c);a=b[b.length-1];k.push(C(a,a,e,c[b.length-1]||c));var f=k.length-1;return function(a){a*=f;var b=Math.max(0,Math.floor(a)),c=k[b];return"function"===typeof c?c(a-b):c}}function w(a,b,e,c){e=null!==e&&void 0!==e?e:1E4;n(b);n(a);for(var k=a.slice(),g=[],l=Math.min(a.length,b.length),f=0;f<l;f++){var h=k[f],d=b[f];g[f]="string"===typeof d&&1===d.indexOf("=")?d:null;k[f]=d.nodeType||d.update?d.update:h===d?null:m(d)?m(h)&&d.length===h.length?w(h,d,e,c[f]||c):B(h,d,e,c[f]||c):m(h)?A(h,d,e,c[f]||c):"object"===typeof h?x(h,d,e,c[f]||c):"string"===typeof h?v(h,d,e,c[f]||c):void 0!==h?h:d;b[f]=null!==g[f]?q(h,d):d}return function(d){for(var f=0;f<l;f++){var h=k[f],r=b[f],m=g[f];if(null!==h&&void 0!==h){var n="function"===typeof c?c(d):c&&"function"===typeof c[f]?c[f](d):d;a[f]="number"===typeof h?((h+(r-h)*n)*e|0)/e:"function"===typeof h?h(n):h.update?h.update(n):r&&r.update?r.update(n):r;m&&1===d&&(k[f]=r,b[f]=q(k[f],m))}}return a}}function O(a,b,e,c){e=null!==e&&void 0!==e?e:1E4;if(2===b.length&&2===a.length&&-1!==R.indexOf(b[1])){var k=+a[0],g=+b[0],l=b[1],f="string"===typeof b[0]&&1===b[0].indexOf("=")?b[0]:null;f&&(g=q(k,g));return k===g&&b[0]===l?b:function(a){var b="function"===typeof c?c(a):a;b=((k+(g-k)*b)*e|0)/e+l;f&&1===a&&(k=g,g=q(k,f));return b}}return!1}function x(a,b,e,c){e=null!==e&&void 0!==e?e:1E4;var k={},g={},l={};n(b);n(a);n(c);for(var f in b)if(void 0!==a[f]&&null!==a[f]){g[f]=a&&a[f];var h=g[f],d=b[f],t=S(a,f);k[f]="string"===typeof d&&1===d.indexOf("=")?d:null;t&&!1===t.writable&&(l[f]=!0);g[f]=d.nodeType?d:d.update?d:h===d?null:m(d)?m(h)&&d.length===h.length?w(h,d,e,c[f]||c):B(h,d,e,c[f]||c):m(h)?A(h,d,e,c[f]||c):"object"===typeof h?x(h,d,e,c[f]||c):"string"===typeof h?v(h,d,e,c[f]||c):void 0!==h?h:d;b[f]=null!==k[f]?q(h,d):d}return function(d){for(var f in g){var h=g[f],m=b[f],n=k[f],p="function"===typeof c?c:c&&"function"===typeof c[f]?c[f]:null;p=p?p(d):d;h="number"===typeof h?((h+(m-h)*p)*e|0)/e:"function"===typeof h?h(p):h&&h.update?h.update(p):m&&m.update?m.update(p):m;l[f]||(a[f]=h);n&&1===d&&(g[f]=m,b[f]=q(g[f],n))}return a}}function C(a,b,e,c){n(c);e=null!==e&&void 0!==e?e:1E4;var k="string"===typeof b&&"number"===typeof a&&1===b.indexOf("=")?b:null;k&&(b=q(a,k));return b.nodeType?b:a.nodeType?a:m(b)?m(a)&&a.length===b.length?w(a,b,e,c):B(a,b,e,c):m(a)?A(a,b,e,c):"object"===typeof b?x(a,b,e,c):"string"===typeof b?v(a,b,e,c):"function"===typeof b?b:function(g){var l="function"===typeof c?c(g):g;l="number"===typeof b?((a+(b-a)*l)*e|0)/e:a;k&&1===g&&(a+=b,b=q(a,k));return l}}var Q=/rgb/g,P=/argb/g,E=/\s+|([A-Za-z?().,{}:""[\]#\%]+)|([-+/*%]+=)?([-+*/%]+)?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,N=/^#([0-9a-f]{6}|[0-9a-f]{3})$/i,L=/\n|\r|\t/g,M=/, | ,| , /g,m=Array.isArray||function(a){return a instanceof Array},H=/([.\[])/g,G=/\]/g,K={"+=":1,"-=":1,"*=":2,"/=":3,"%=":4},R="px pt pc deg rad turn em ex cm mm dm inch in rem vw vh vmin vmax %".split(" "),S=Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor:function(){};return C}"function"===typeof define&&define.amd?define([],F):"undefined"!==typeof module&&module.exports?module.exports=F():y.InterTween=F();
var A="undefined"!==typeof window?window:this;function J(){function t(a){if("object"===typeof a&&a)for(var b in a)if(-1!==b.indexOf(".")||-1!==b.indexOf("["))B(a,b);else if("object"===typeof a[b]&&a[b]){var d=a[b],c;for(c in d)if(-1!==c.indexOf(".")||-1!==c.indexOf("["))B(d,c);else if("object"===typeof d[c]&&d[c]){var k=d[c],g;for(g in k)-1===g.indexOf(".")&&-1===g.indexOf("[")||B(k,g)}}}function B(a,b){var d=a[b],c=b.replace(K,"").split(L),k=c.length-1,g=Array.isArray(a),m="object"===typeof a&&!g;m?(a[b]=null,delete a[b]):g&&a.splice(b,1);c.reduce(function(b,a,f){g&&"."!==a&&"["!==a&&(a*=1);var e="["===c[f+1];if("."===a||"["===a)"."===a?(m=!0,g=!1):"["===a&&(m=!1,g=!0);else if(void 0===b[a]){if(g||m)return b[a]=f===k?d:g||e?[]:m?{}:null,m=g=!1,b[a]}else if(void 0!==b[a])return f===k&&(b[a]=d),b[a];return b},a)}function M(a){var b=parseFloat(a);return"number"!==typeof b||isNaN(b)?a:b}function N(a,b){if(3===b.length){var d=b[0];var c=b[1];var k=b[2];b=d+d+c+c+k+k}d=parseInt(b,16);return"rgb("+(d>>16&255)+","+(d>>8&255)+","+(d&255)+")"}function u(a,b){if("number"!==typeof b){var d=O[b.substr(0,2)],c=b.substr(2);if(1===d)return a+parseFloat(b[0]+c);if(2===d)return a*+c;if(3===d)return a/+c;if(4===d)return+c/100*a}return b}function F(a){var b="string"!==typeof a?a:("string"===typeof a?a.replace(P,"").replace(Q,","):a).replace(R,N);return"string"===typeof b?b.match(G).map(M):a}function x(a,b,d,c){d=null!==d&&void 0!==d?d:1E4;if(!G.test(b))return b;var k=F(a),g=F(b);if(a=S(k,g,d,c))return a;for(var m=a=null,e=null,h=[],f=0,w=g.length;f<w;f++){a=g[f];var q=k[f];h[f]="string"===typeof a&&1===a.indexOf("=")?b:null;T.test(a)?(m=f+2,e=f+11):U.test(a)&&(m=f,e=f+9);g[f]=q===a?null:null!==h[f]?u(q,a):a}return function(a,b,q){q||(q=c);b=void 0!==b?b:a;var p="";for(f=0;f<w;f++){var n=k[f],r=g[f],H=h[f],l="function"===typeof q?q(a):a;p+="number"===typeof r?null!==m&&f>m&&f<e?n+(r-n)*l|0:((n+(r-n)*l)*d|0)/d:n;1===b&&null!==H&&(k[f]=r,g[f]=u(r,H))}return p}}function C(a,b,d,c){for(var k=[],g=0,m=a.length;g<m;g++){var e=a[g];k[g]=l(e)?y(e,b,d,c&&c[g]||c):"object"===typeof e?z(e,b,d,c&&c[g]||c):"string"===typeof e?x(e,b,d,c&&c[g]||c):e}return function(d,f,g){f=void 0!==f?f:d;g||(g=c);for(var e=0,h=k.length;e<h;e++){var m=m="function"===typeof g?g:g&&"function"===typeof g[e]?g[e]:null,n=typeof m?m(d):d;a[e]="function"===typeof k[e]?k[e](m?d:n,f,g):"number"===typeof k[e]?k[e]+(b-k[e])*n:k[e]}return a}}function D(a,b,d,c){for(var k=[],g=0,m=b.length;g<m;g++)k[g]=E(0===g?a:b[g-1],b[g],d,c&&c[g]||c);a=b[b.length-1];k.push(E(a,a,d,c[b.length-1]||c));var e=k.length-1;return function(a){a*=e;var b=Math.max(0,Math.floor(a)),c=k[b];return"function"===typeof c?c(a-b):c}}function y(a,b,d,c){d=null!==d&&void 0!==d?d:1E4;t(b);t(a);for(var k=a.slice(),g=[],m=Math.min(a.length,b.length),e=0;e<m;e++){var h=k[e],f=b[e];g[e]="string"===typeof f&&1===f.indexOf("=")?f:null;k[e]=f.nodeType||f.update?f.update:h===f?null:l(f)?l(h)&&f.length===h.length?y(h,f,d,c&&c[e]||c):D(h,f,d,c&&c[e]||c):l(h)?C(h,f,d,c&&c[e]||c):"object"===typeof h?z(h,f,d,c&&c[e]||c):"string"===typeof h?x(h,f,d,c&&c[e]||c):void 0!==h?h:f;b[e]=null!==g[e]?u(h,f):f}return function(f,e,h){h||(h=c);void 0!==e?e:f;for(var p=0;p<m;p++){var n=k[p],v=b[p],q=g[p];if(null!==n&&void 0!==n){var r=r="function"===typeof h?h:h&&"function"===typeof h[p]?h[p]:null,l=r?r(f):f;a[p]="number"===typeof n?((n+(v-n)*l)*d|0)/d:"function"===typeof n?n(r?f:l,e,r):n.update?n.update(r?f:l,e,r):v&&v.update?v.update(r?f:l,e,r):v;q&&1===e&&(k[p]=v,b[p]=u(k[p],q))}}return a}}function S(a,b,d,c){d=null!==d&&void 0!==d?d:1E4;if(2===b.length&&2===a.length&&-1!==V.indexOf(b[1])){var k=+a[0],g=+b[0],m=b[1],e="string"===typeof b[0]&&1===b[0].indexOf("=")?b[0]:null;e&&(g=u(k,g));return k===g&&b[0]===m?b:function(a,b,l){l||(l=c);void 0!==b?b:a;a="function"===typeof l?l(a):a;a=((k+(g-k)*a)*d|0)/d+m;e&&1===b&&(k=g,g=u(k,e));return a}}return!1}function z(a,b,d,c){d=null!==d&&void 0!==d?d:1E4;var k={},g={},m={};t(b);t(a);t(c);for(var e in b)if(void 0!==a[e]&&null!==a[e]){g[e]=a&&a[e];var h=g[e],f=b[e],w=W(a,e);k[e]="string"===typeof f&&1===f.indexOf("=")?f:null;w&&!1===w.writable&&(m[e]=!0);g[e]=f.nodeType?f:f.update?f:h===f?null:l(f)?l(h)&&f.length===h.length?y(h,f,d,c&&c[e]||c):D(h,f,d,c&&c[e]||c):l(h)?C(h,f,d,c&&c[e]||c):"object"===typeof h?z(h,f,d,c&&c[e]||c):"string"===typeof h?x(h,f,d,c&&c[e]||c):void 0!==h?h:f;b[e]=null!==k[e]?u(h,f):f}return function(e,f,h){h||(h=c);f=void 0!==f?f:e;for(var n in g){var l=g[n],p=b[n],r=k[n],q="function"===typeof h?h:h&&"function"===typeof h[n]?h[n]:null,t=q?q(e):e;l="number"===typeof l?((l+(p-l)*t)*d|0)/d:"function"===typeof l?l(q?e:t,f,q):l&&l.update?l.update(q?e:t,f,q):p&&p.update?p.update(q?e:t,f,q):p;m[n]||(a[n]=l);r&&1===f&&(g[n]=p,b[n]=u(g[n],r))}return a}}function E(a,b,d,c){t(c);d=null!==d&&void 0!==d?d:1E4;var k="string"===typeof b&&"number"===typeof a&&1===b.indexOf("=")?b:null;k&&(b=u(a,k));return b.nodeType?b:a.nodeType?a:l(b)?l(a)&&a.length===b.length?y(a,b,d,c):D(a,b,d,c):l(a)?C(a,b,d,c):"object"===typeof b?z(a,b,d,c):"string"===typeof b?x(a,b,d,c):"function"===typeof b?b:function(g,l,e){l=void 0!==l?l:g;e||(e=c);g="function"===typeof e?e(g):g;g="number"===typeof b?((a+(b-a)*g)*d|0)/d:a;k&&1===l&&(a+=b,b=u(a,k));return g}}var U=/rgb/g,T=/argb/g,G=/\s+|([A-Za-z?().,{}:""[\]#\%]+)|([-+/*%]+=)?([-+*/%]+)?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,R=/^#([0-9a-f]{6}|[0-9a-f]{3})$/i,P=/\n|\r|\t/g,Q=/, | ,| , /g,l=Array.isArray||function(a){return a instanceof Array},L=/([.\[])/g,K=/\]/g,O={"+=":1,"-=":1,"*=":2,"/=":3,"%=":4},V="px pt pc deg rad turn em ex cm mm dm inch in rem vw vh vmin vmax %".split(" "),I=Object.getOwnPropertyDescriptor,W=I?I:function(){};return E}"function"===typeof define&&define.amd?define([],J):"undefined"!==typeof module&&module.exports?module.exports=J():A.InterTween=J();
{
"name": "intertween",
"version": "0.0.20",
"version": "0.0.21",
"description": "The lightweight, fastest, smartest, effecient value interpolator with no-dependecy, zero-configuration and relative interpolation",

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

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