Comparing version 2.0.0-4 to 2.0.0-5
@@ -45,3 +45,4 @@ "use strict"; | ||
config, | ||
terminalWidth | ||
terminalWidth, | ||
skipStaticElements | ||
}); | ||
@@ -96,3 +97,4 @@ node.insertChild(yogaNode, index); | ||
config, | ||
terminalWidth | ||
terminalWidth, | ||
skipStaticElements | ||
}); | ||
@@ -99,0 +101,0 @@ node.insertChild(yogaNode, index); |
@@ -14,3 +14,3 @@ "use strict"; | ||
var _debounceFn = _interopRequireDefault(require("debounce-fn")); | ||
var _lodash = _interopRequireDefault(require("lodash.throttle")); | ||
@@ -83,3 +83,6 @@ var _createReconciler = _interopRequireDefault(require("./create-reconciler")); | ||
const debouncedRender = options.debug ? onRender : (0, _debounceFn.default)(onRender); | ||
const debouncedRender = options.debug ? onRender : (0, _lodash.default)(onRender, 50, { | ||
leading: true, | ||
trailing: true | ||
}); | ||
const reconciler = options.stdout._inkReconciler || (0, _createReconciler.default)(document, debouncedRender); | ||
@@ -86,0 +89,0 @@ |
{ | ||
"name": "ink", | ||
"version": "2.0.0-4", | ||
"version": "2.0.0-5", | ||
"description": "React for CLI", | ||
@@ -44,3 +44,3 @@ "license": "MIT", | ||
"cli-cursor": "^2.1.0", | ||
"debounce-fn": "^1.0.0", | ||
"lodash.throttle": "^4.1.1", | ||
"log-update": "^2.3.0", | ||
@@ -47,0 +47,0 @@ "prop-types": "^15.6.2", |
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
54361
954
+ Addedlodash.throttle@^4.1.1
+ Addedlodash.throttle@4.1.1(transitive)
- Removeddebounce-fn@^1.0.0
- Removeddebounce-fn@1.0.0(transitive)