@tds/util-helpers
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.4.2](https://github.com/telus/tds-core/compare/@tds/util-helpers@1.4.1...@tds/util-helpers@1.4.2) (2020-02-03) | ||
**Note:** Version bump only for package @tds/util-helpers | ||
## [1.4.1](https://github.com/telus/tds-core/compare/@tds/util-helpers@1.4.0...@tds/util-helpers@1.4.1) (2020-01-27) | ||
@@ -8,0 +16,0 @@ |
@@ -141,3 +141,3 @@ 'use strict'; | ||
until: undefined, | ||
props: Object.assign({}, getStaticProps(props).reduce(function (acc, staticProp) { | ||
props: _extends_1({}, getStaticProps(props).reduce(function (acc, staticProp) { | ||
if (typeof props[staticProp] !== 'undefined') { | ||
@@ -148,3 +148,3 @@ acc[staticProp] = props[staticProp]; | ||
return acc; | ||
}, {}), getResponsiveProps(props).reduce(function (acc, responsiveProp) { | ||
}, {}), {}, getResponsiveProps(props).reduce(function (acc, responsiveProp) { | ||
if (typeof props[responsiveProp][breakpoint] !== 'undefined') { | ||
@@ -165,3 +165,3 @@ acc[responsiveProp] = props[responsiveProp][breakpoint]; | ||
if (index !== 0) { | ||
breakpoint.props = Object.assign({}, src[index - 1].props, bp.props); | ||
breakpoint.props = _extends_1({}, src[index - 1].props, {}, bp.props); | ||
} | ||
@@ -201,3 +201,3 @@ | ||
var result = coreResponsive.media.from(breakpoint.from === 'xs' ? undefined : breakpoint.from).until(breakpoint.until === 'xl' ? undefined : breakpoint.until).css(typeof style === 'function' ? style(props, breakpoint.from, breakpoint.until) : style); | ||
return _extends_1({}, acc, result); | ||
return _extends_1({}, acc, {}, result); | ||
} | ||
@@ -204,0 +204,0 @@ |
@@ -137,3 +137,3 @@ import { createContext } from 'react'; | ||
until: undefined, | ||
props: Object.assign({}, getStaticProps(props).reduce(function (acc, staticProp) { | ||
props: _extends_1({}, getStaticProps(props).reduce(function (acc, staticProp) { | ||
if (typeof props[staticProp] !== 'undefined') { | ||
@@ -144,3 +144,3 @@ acc[staticProp] = props[staticProp]; | ||
return acc; | ||
}, {}), getResponsiveProps(props).reduce(function (acc, responsiveProp) { | ||
}, {}), {}, getResponsiveProps(props).reduce(function (acc, responsiveProp) { | ||
if (typeof props[responsiveProp][breakpoint] !== 'undefined') { | ||
@@ -161,3 +161,3 @@ acc[responsiveProp] = props[responsiveProp][breakpoint]; | ||
if (index !== 0) { | ||
breakpoint.props = Object.assign({}, src[index - 1].props, bp.props); | ||
breakpoint.props = _extends_1({}, src[index - 1].props, {}, bp.props); | ||
} | ||
@@ -197,3 +197,3 @@ | ||
var result = media.from(breakpoint.from === 'xs' ? undefined : breakpoint.from).until(breakpoint.until === 'xl' ? undefined : breakpoint.until).css(typeof style === 'function' ? style(props, breakpoint.from, breakpoint.until) : style); | ||
return _extends_1({}, acc, result); | ||
return _extends_1({}, acc, {}, result); | ||
} | ||
@@ -200,0 +200,0 @@ |
@@ -30,5 +30,4 @@ import { media } from '@tds/core-responsive' | ||
until: undefined, | ||
props: Object.assign( | ||
{}, | ||
getStaticProps(props).reduce((acc, staticProp) => { | ||
props: { | ||
...getStaticProps(props).reduce((acc, staticProp) => { | ||
if (typeof props[staticProp] !== 'undefined') { | ||
@@ -39,3 +38,3 @@ acc[staticProp] = props[staticProp] | ||
}, {}), | ||
getResponsiveProps(props).reduce((acc, responsiveProp) => { | ||
...getResponsiveProps(props).reduce((acc, responsiveProp) => { | ||
if (typeof props[responsiveProp][breakpoint] !== 'undefined') { | ||
@@ -45,4 +44,4 @@ acc[responsiveProp] = props[responsiveProp][breakpoint] | ||
return acc | ||
}, {}) | ||
), | ||
}, {}), | ||
}, | ||
} | ||
@@ -55,3 +54,3 @@ return o | ||
if (index !== 0) { | ||
breakpoint.props = Object.assign({}, src[index - 1].props, bp.props) | ||
breakpoint.props = { ...src[index - 1].props, ...bp.props } | ||
} | ||
@@ -58,0 +57,0 @@ if (index < src.length - 1) { |
{ | ||
"name": "@tds/util-helpers", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "TDS helpers", | ||
@@ -26,3 +26,3 @@ "main": "index.cjs.js", | ||
}, | ||
"gitHead": "601aa5d9ca7eaf965e607fe1f0e87204801f4dfe" | ||
"gitHead": "3267374f3f5351201f7fe740b6b2db6a402c3e42" | ||
} |
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
28638
837