Comparing version 2.0.2 to 2.0.3
@@ -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 { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27600
1
298
- Removednuke-env@^2.x.x
- Removedrax-text@^0.4.20
- Removeddriver-browser@0.6.7(transitive)
- Removeddriver-server@0.6.5(transitive)
- Removeddriver-weex@0.6.5(transitive)
- Removedrax@0.6.7(transitive)
- Removedrax-text@0.4.20(transitive)
- Removedstyle-unit@0.6.5(transitive)
- Removeduniversal-env@0.4.200.6.6(transitive)