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

flip-ya-numbers

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flip-ya-numbers - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1-beta.1

flip-ya-numbers.gif

6

lib/flipNumber.js

@@ -123,3 +123,5 @@ 'use strict';

length = _props.length,
position = _props.position;
position = _props.position,
_props$numberStyle = _props.numberStyle,
numberStyle = _props$numberStyle === undefined ? {} : _props$numberStyle;
var _state = this.state,

@@ -138,3 +140,3 @@ degree = _state.degree,

{
style: _extends({}, viewPortSize, {
style: _extends({}, numberStyle, viewPortSize, {
perspective: perspective,

@@ -141,0 +143,0 @@ overflow: 'hidden',

@@ -47,2 +47,3 @@ 'use strict';

nonNumberStyle = _props.nonNumberStyle,
numberStyle = _props.numberStyle,
height = _props.height,

@@ -86,3 +87,4 @@ width = _props.width,

startAnimation: startAnimation,
delaySeconds: delaySeconds
delaySeconds: delaySeconds,
numberStyle: numberStyle
}, {

@@ -120,4 +122,5 @@ position: numberCounter,

delaySeconds: 0,
nonNumberStyle: {}
nonNumberStyle: {},
numberStyle: {}
};
exports.default = FlipNumbers;
{
"name": "flip-ya-numbers",
"version": "1.0.0",
"version": "1.0.1-beta.1",
"description": "flip your numbers",

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

@@ -21,3 +21,3 @@ [![npm version](https://img.shields.io/npm/v/flip-ya-numbers.svg?style=flat-square)](https://www.npmjs.com/package/flip-ya-numbers)

<p align="center">
<img width="300" src="https://raw.githubusercontent.com/bluebill1049/flip-ya-numbers/master/example/flip-ya-numbers.gif" alt="Flip your number" />
<img width="300" src="https://raw.githubusercontent.com/bluebill1049/flip-ya-numbers/master/flip-ya-numbers.gif" alt="Flip your number" />
</p>

@@ -24,0 +24,0 @@

@@ -29,2 +29,3 @@ // @flow

startAnimation: boolean,
numberStyle: { [string]: string | number },
};

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

position,
numberStyle = {},
} = this.props;

@@ -118,2 +120,3 @@ const { degree, isStatic } = this.state;

style={{
...numberStyle,
...viewPortSize,

@@ -120,0 +123,0 @@ perspective,

@@ -16,3 +16,4 @@ // @flow

animate?: boolean,
startAnimation?: boolean
startAnimation?: boolean,
numberStyle: { [string]: string | number },
};

@@ -28,2 +29,3 @@

nonNumberStyle: {},
numberStyle: {},
};

@@ -44,2 +46,3 @@

nonNumberStyle,
numberStyle,
height,

@@ -85,2 +88,3 @@ width,

delaySeconds,
numberStyle,
}}

@@ -87,0 +91,0 @@ position={numberCounter}

@@ -25,2 +25,3 @@ import renderer from 'react-test-renderer';

startAnimation: true,
numberStyle: {},
};

@@ -27,0 +28,0 @@

Sorry, the diff of this file is not supported yet

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