@medmain/core
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -37,3 +37,3 @@ import cloneDeep from 'lodash/cloneDeep'; | ||
if (typeof pathsOrProps === 'object') { | ||
if (_isObject(pathsOrProps)) { | ||
return pathsOrProps; | ||
@@ -51,3 +51,3 @@ } | ||
if (typeof propsOrPaths === 'object') { | ||
if (_isObject(propsOrPaths)) { | ||
return _getPaths(propsOrPaths); | ||
@@ -69,3 +69,3 @@ } | ||
if (typeof value === 'object' && !(value instanceof Date)) { | ||
if (_isObject(value)) { | ||
var subpaths = _getPaths(value); | ||
@@ -156,3 +156,3 @@ | ||
if (typeof value === 'object') { | ||
if (_isObject(value)) { | ||
value = cleanProps(value); | ||
@@ -172,2 +172,7 @@ | ||
} | ||
function _isObject(value) { | ||
return typeof value === 'object' && value !== null && !(value instanceof Date); | ||
} | ||
export function getImageFormat(_ref5) { | ||
@@ -174,0 +179,0 @@ var filename = _ref5.filename, |
@@ -47,3 +47,3 @@ "use strict"; | ||
if (typeof pathsOrProps === 'object') { | ||
if (_isObject(pathsOrProps)) { | ||
return pathsOrProps; | ||
@@ -62,3 +62,3 @@ } | ||
if (typeof propsOrPaths === 'object') { | ||
if (_isObject(propsOrPaths)) { | ||
return _getPaths(propsOrPaths); | ||
@@ -74,3 +74,3 @@ } | ||
for (const [key, value] of Object.entries(props)) { | ||
if (typeof value === 'object' && !(value instanceof Date)) { | ||
if (_isObject(value)) { | ||
const subpaths = _getPaths(value); | ||
@@ -121,3 +121,3 @@ | ||
for (let [key, value] of Object.entries(props)) { | ||
if (typeof value === 'object') { | ||
if (_isObject(value)) { | ||
value = cleanProps(value); | ||
@@ -138,2 +138,6 @@ | ||
function _isObject(value) { | ||
return typeof value === 'object' && value !== null && !(value instanceof Date); | ||
} | ||
function getImageFormat({ | ||
@@ -140,0 +144,0 @@ filename, |
@@ -25,3 +25,3 @@ import cloneDeep from 'lodash/cloneDeep'; | ||
if (typeof pathsOrProps === 'object') { | ||
if (_isObject(pathsOrProps)) { | ||
return pathsOrProps; | ||
@@ -39,3 +39,3 @@ } | ||
if (typeof propsOrPaths === 'object') { | ||
if (_isObject(propsOrPaths)) { | ||
return _getPaths(propsOrPaths); | ||
@@ -51,3 +51,3 @@ } | ||
for (const [key, value] of Object.entries(props)) { | ||
if (typeof value === 'object' && !(value instanceof Date)) { | ||
if (_isObject(value)) { | ||
const subpaths = _getPaths(value); | ||
@@ -96,3 +96,3 @@ | ||
for (let [key, value] of Object.entries(props)) { | ||
if (typeof value === 'object') { | ||
if (_isObject(value)) { | ||
value = cleanProps(value); | ||
@@ -112,2 +112,7 @@ | ||
} | ||
function _isObject(value) { | ||
return typeof value === 'object' && value !== null && !(value instanceof Date); | ||
} | ||
export function getImageFormat({ | ||
@@ -114,0 +119,0 @@ filename, |
{ | ||
"name": "@medmain/core", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Medmain's core module, root of everything else", | ||
@@ -5,0 +5,0 @@ "files": [ |
26940
904