Socket
Socket
Sign inDemoInstall

@motionone/utils

Package Overview
Dependencies
3
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.16.3 to 10.17.0

2

dist/array.cjs.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function addUniqueItem(array, item) {

@@ -6,0 +4,0 @@ array.indexOf(item) === -1 && array.push(item);

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
exports.clamp = clamp;
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const defaults = {

@@ -6,0 +4,0 @@ duration: 0.3,

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var isEasingList = require('./is-easing-list.cjs.js');

@@ -6,0 +4,0 @@ var wrap = require('./wrap.cjs.js');

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var array = require('./array.cjs.js');

@@ -6,0 +4,0 @@ var clamp = require('./clamp.cjs.js');

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var mix = require('./mix.cjs.js');

@@ -6,0 +4,0 @@ var noop = require('./noop.cjs.js');

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var isNumber = require('./is-number.cjs.js');

@@ -6,0 +4,0 @@

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const isEasingGenerator = (easing) => typeof easing === "object" &&

@@ -6,0 +4,0 @@ Boolean(easing.createAnimation);

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var isNumber = require('./is-number.cjs.js');

@@ -6,0 +4,0 @@

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const isFunction = (value) => typeof value === "function";
exports.isFunction = isFunction;
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const isNumber = (value) => typeof value === "number";
exports.isNumber = isNumber;
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const isString = (value) => typeof value === "string";
exports.isString = isString;
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const mix = (min, max, progress) => -progress * min + progress * max + min;
exports.mix = mix;
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const noop = () => { };

@@ -6,0 +4,0 @@ const noopReturn = (v) => v;

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var mix = require('./mix.cjs.js');

@@ -6,0 +4,0 @@ var progress = require('./progress.cjs.js');

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const progress = (min, max, value) => max - min === 0 ? 1 : (value - min) / (max - min);
exports.progress = progress;
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const time = {

@@ -6,0 +4,0 @@ ms: (seconds) => seconds * 1000,

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/*

@@ -6,0 +4,0 @@ Convert velocity into velocity per second

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const wrap = (min, max, v) => {

@@ -6,0 +4,0 @@ const rangeSize = max - min;

6

package.json
{
"name": "@motionone/utils",
"version": "10.16.3",
"version": "10.17.0",
"description": "A collection of utility functions for animations.",

@@ -17,7 +17,7 @@ "license": "MIT",

"dependencies": {
"@motionone/types": "^10.16.3",
"@motionone/types": "^10.17.0",
"hey-listen": "^1.0.8",
"tslib": "^2.3.1"
},
"gitHead": "f4721014f749ce528145c09386af8584eced4e2a"
"gitHead": "2775786f4f0ba21cbf222d72a68263c7627c4825"
}
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