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

nuke-text

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-text - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

2

deps.json

@@ -1,1 +0,1 @@

{"npm/rax-text/0.4.20/index.cmd":{"requires":[]},"npm/nuke-text/2.0.1/index.cmd":{"requires":["npm/rax-text/0.4.20/index.cmd"]},"npm/nuke-text/2.0.1/index.native.cmd":{"requires":["npm/rax-text/0.4.20/index.cmd"]},"npm/nuke-text/2.0.0/index.cmd":{"requires":["npm/rax-text/0.4.20/index.cmd"]},"npm/nuke-text/2.0.0/index.native.cmd":{"requires":["npm/rax-text/0.4.20/index.cmd"]},"npm/nuke-text/2.0.2/index.cmd":{"requires":["npm/rax-text/0.4.20/index.cmd"]},"npm/nuke-text/2.0.2/index.native.cmd":{"requires":["npm/rax-text/0.4.20/index.cmd"]}}
{"npm/nuke-helper/2.0.2/index.cmd":{"requires":[]},"npm/nuke-helper/2.0.2/index.native.cmd":{"requires":[]},"npm/nuke-helper/2.0.3/index.cmd":{"requires":[]},"npm/nuke-helper/2.0.3/index.native.cmd":{"requires":[]},"npm/nuke-env/2.0.2/index.cmd":{"requires":[]},"npm/nuke-env/2.0.2/index.native.cmd":{"requires":[]},"npm/nuke-text/2.0.2/index.cmd":{"requires":["npm/nuke-helper/2.0.3/index.cmd","npm/nuke-env/2.0.2/index.cmd"]},"npm/nuke-text/2.0.2/index.native.cmd":{"requires":["npm/nuke-helper/2.0.3/index.native.cmd","npm/nuke-env/2.0.2/index.native.cmd"]},"npm/nuke-text/2.0.3/index.cmd":{"requires":["npm/nuke-helper/2.0.3/index.cmd"]},"npm/nuke-text/2.0.3/index.native.cmd":{"requires":["npm/nuke-helper/2.0.3/index.native.cmd"]}}
# Changelog
## 2.0.3 / 2018-04-25
* [[e7e49c9b](http://gitlab.alibaba-inc.com/nuke/text/commit/e7e49c9b6f7a1b84b1ee09ca68b60e09cd641db3)] - `refactor` remove env dependency
## 2.0.2 / 2018-04-24

@@ -5,0 +9,0 @@

@@ -15,4 +15,6 @@ /** @jsx createElement */

var _nukeHelper = require('nuke-helper');
var _calcFixedFont = require('nuke-helper/lib/calc-fixed-font');
var _calcFixedFont2 = _interopRequireDefault(_calcFixedFont);
var _raxText = require('rax-text');

@@ -22,6 +24,2 @@

var _nukeEnv = require('nuke-env');
var _nukeEnv2 = _interopRequireDefault(_nukeEnv);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -41,3 +39,3 @@

var isWeb = _nukeEnv2.default.isWeb;
var isWeb = typeof callNative !== 'function';

@@ -96,3 +94,3 @@ var Text = function (_Component) {

var textStyle = Object.assign({ fontSize: 32, wordWrap: 'break-word' }, style);
textStyle = this.fixedFont ? (0, _nukeHelper.calcTextSize)(textStyle) : textStyle;
textStyle = this.fixedFont ? (0, _calcFixedFont2.default)(textStyle) : textStyle;
textStyle = this.optimizeLineHeight ? this.calcLineHeight(textStyle) : textStyle;

@@ -99,0 +97,0 @@ return (0, _rax.createElement)(_raxText2.default, _extends({}, others, { style: textStyle, onClick: onPress || onClick }));

{
"name": "nuke-text",
"version": "2.0.2",
"version": "2.0.3",
"description": "文本",

@@ -50,5 +50,3 @@ "main": "lib/index",

"dependencies": {
"rax-text": "^0.4.20",
"nuke-helper": "^2.x.x",
"nuke-env": "^2.x.x"
"nuke-helper": "^2.x.x"
},

@@ -55,0 +53,0 @@ "devDependencies": {

@@ -6,5 +6,4 @@ /** @jsx createElement */

import { Component, createElement, PropTypes } from 'rax';
import { calcTextSize } from 'nuke-helper';
import calcTextSize from 'nuke-helper/src/calc-fixed-font';
import RaxText from 'rax-text';
import Env from 'nuke-env';

@@ -16,3 +15,3 @@ const defaultLineHeightOptimizer = fontSize =>

const { isWeb } = Env;
const isWeb = typeof callNative !== 'function';

@@ -19,0 +18,0 @@ class Text extends Component {

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