Comparing version 1.0.0 to 1.0.1
@@ -18,2 +18,5 @@ 'use strict'; | ||
function parse(path) { | ||
if (!ramda.is(String, path)) { | ||
throw new Error('Given value is must be string!'); | ||
} | ||
return ramda.compose(_reduce(function (acc, n) { | ||
@@ -20,0 +23,0 @@ if (n < 0) { |
@@ -1,2 +0,2 @@ | ||
import { compose, split, reduce, curry, is, lensPath, view, set as set$2 } from 'ramda'; | ||
import { is, compose, split, reduce, curry, lensPath, view, set as set$2 } from 'ramda'; | ||
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; | ||
@@ -16,2 +16,5 @@ | ||
function parse(path) { | ||
if (!is(String, path)) { | ||
throw new Error('Given value is must be string!'); | ||
} | ||
return compose(_reduce(function (acc, n) { | ||
@@ -18,0 +21,0 @@ if (n < 0) { |
{ | ||
"name": "lens-o", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Parse object path and get, set value", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16876
123