@cicada/render
Advanced tools
Comparing version 1.1.3-alpha2 to 1.1.3
@@ -134,3 +134,5 @@ 'use strict'; | ||
function findParentPath(path) { | ||
function findParentPath() { | ||
var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; | ||
var arr = path.split('.'); | ||
@@ -141,3 +143,5 @@ arr.pop(); | ||
function findClosestInitialPath(statePath) { | ||
function findClosestInitialPath() { | ||
var statePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; | ||
var result = statePath; | ||
@@ -144,0 +148,0 @@ var arr = statePath.split('.'); |
@@ -42,6 +42,10 @@ 'use strict'; | ||
}, | ||
split: function split(path) { | ||
split: function split() { | ||
var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; | ||
return path.split(rxAccess); | ||
}, | ||
remove: function remove(obj, path) { | ||
remove: function remove(obj) { | ||
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
var arr = Array.isArray(path) ? path : path.split(rxAccess); | ||
@@ -48,0 +52,0 @@ var base = arr.length > 1 ? _exist2.default.get(obj, arr.slice(0, arr.length - 1)) : obj; |
{ | ||
"name": "@cicada/render", | ||
"version": "1.1.3-alpha2", | ||
"version": "1.1.3", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
338645
8146
1