nuke-helper
Advanced tools
Comparing version 0.0.2 to 0.0.3
# Changelog | ||
## 0.0.3 / 2017-12-18 | ||
* [[a20a80d](http://gitlab.alibaba-inc.com/nuke/helper/commit/a20a80d10a39079f158126a703f1204a1b81825f)] - `feat` delete nuke-env ,use universal | ||
## 0.0.2 / 2017-12-18 | ||
@@ -5,0 +9,0 @@ |
@@ -9,3 +9,3 @@ 'use strict'; | ||
var _nukeEnv = require('nuke-env'); | ||
var _universalEnv = require('universal-env'); | ||
@@ -21,3 +21,3 @@ exports.default = function (style) { | ||
} | ||
result.fontSize = fontSize + (_nukeEnv.isWeb ? 'px' : 'wx'); | ||
result.fontSize = fontSize + (_universalEnv.isWeb ? 'px' : 'wx'); | ||
return result; | ||
@@ -24,0 +24,0 @@ }; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var _nukeEnv = require('nuke-env'); | ||
var _universalEnv = require('universal-env'); | ||
@@ -25,3 +25,3 @@ var _borderSeperate = require('./border-seperate'); | ||
var hairLineFlag = void 0; | ||
if (!_nukeEnv.isWeb) return true; | ||
if (!_universalEnv.isWeb) return true; | ||
if (window.OffsetHeightForRxBorder) { | ||
@@ -52,3 +52,3 @@ hairLineFlag = window.OffsetHeightForRxBorder; | ||
hairLine.fixBorder = function (style) { | ||
if (!_nukeEnv.isWeb) return style; | ||
if (!_universalEnv.isWeb) return style; | ||
var borderWidthHair = hairLine.detect() ? '0.5px' : '1px'; | ||
@@ -55,0 +55,0 @@ style = (0, _borderSeperate2.default)(style, ['Width']); |
{ | ||
"name": "nuke-helper", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "辅助函数", | ||
@@ -47,7 +47,7 @@ "main": "lib/index", | ||
"dependencies": { | ||
"nuke-env": "^0.x.x" | ||
"universal-env": "^0.4.20" | ||
}, | ||
"devDependencies": { | ||
"nuke-view": "^0.x.x", | ||
"nuke-text": "^0.x.x" | ||
"nuke-view": "^x.x.x", | ||
"nuke-text": "^x.x.x" | ||
}, | ||
@@ -54,0 +54,0 @@ "publishConfig": { |
9762
+ Addeduniversal-env@^0.4.20
+ Addeduniversal-env@0.4.20(transitive)
- Removednuke-env@^0.x.x
- Removednuke-env@0.3.6(transitive)