Socket
Socket
Sign inDemoInstall

nuke-var-loader

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-var-loader - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

HISTORY.md
# Changelog
## 0.0.2 / 2017-01-09
* [[5e6f628](http://gitlab.alibaba-inc.com/nuke/var-loader/commit/5e6f628263cab8c93fc8ba0f2a4a2799d6a6c877)] - `feat` add varLoader
## 0.0.1 / 2017-01-09

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

@@ -7,8 +7,17 @@ 'use strict';

module.exports = {
varLoader: function varLoader(config) {
return Object.assign({}, config, window.customVar);
varsLoader: function varsLoader(config) {
return Object.assign(config, window.customVar);
},
varLoader: function varLoader(key, value) {
if (key in window.customVar) {
return window.customVar[key];
};
return value;
},
setVars: function setVars(config) {
Object.assign(window.customVar, config);
},
setVar: function setVar(key, value) {
window.customVar[key] = value;
},
androidVar: function androidVar(config) {

@@ -15,0 +24,0 @@ var style = {};

4

package.json
{
"name": "nuke-var-loader",
"version": "0.0.1",
"version": "0.0.2",
"description": "var loader",

@@ -42,2 +42,2 @@ "main": "lib/index",

}
}
}

@@ -12,11 +12,11 @@ # VarLoader

* varLoader()
保存之前获取焦点的元素
* varsLoader()
* setVars()
情况之前保存的元素
* androidVar()
让之前保存的元素获取焦点
* iosVar(node)
获取可以被聚焦元素的列表
ios 前缀

@@ -8,8 +8,17 @@ 'use strict';

module.exports = {
varLoader: function (config) {
return Object.assign({},config, window.customVar);
varsLoader: function (config) {
return Object.assign(config, window.customVar);
},
varLoader: function (key, value) {
if (key in window.customVar) {
return window.customVar[key];
};
return value;
},
setVars: function(config) {
Object.assign(window.customVar, config);
},
setVar: function(key, value) {
window.customVar[key] = value;
},
androidVar:function(config) {

@@ -16,0 +25,0 @@ let style = {};

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