breakpoint-changes-rx
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -33,4 +33,4 @@ import { Observable, BehaviorSubject } from 'rxjs'; | ||
} | ||
export declare const parseBreakpoints: (object: Record<string, unknown>, config?: BreakpointParseConfig | undefined) => BreakpointDefinitions; | ||
export declare const parseBreakpoints: (object: Record<string, unknown>, config?: BreakpointParseConfig) => BreakpointDefinitions; | ||
declare const breakpoints: (breakpointDefinitions: BreakpointDefinitions) => BreakpointFncs; | ||
export default breakpoints; |
@@ -12,3 +12,4 @@ import { Observable, merge, BehaviorSubject, } from 'rxjs'; | ||
export const parseBreakpoints = (object, config) => { | ||
const parseConfig = Object.assign(Object.assign({}, defaultParseConfig), config !== null && config !== void 0 ? config : {}); | ||
const parseConfig = Object.assign(Object.assign({}, defaultParseConfig), config); | ||
// eslint-disable-next-line unicorn/no-array-reduce | ||
return Object.entries(object).reduce((obj, [key, value]) => { | ||
@@ -15,0 +16,0 @@ const breakpointMatch = key.match(parseConfig.regex); |
{ | ||
"name": "breakpoint-changes-rx", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"repository": { | ||
@@ -43,19 +43,19 @@ "type": "git", | ||
"devDependencies": { | ||
"@commitlint/cli": "17.0.0", | ||
"@commitlint/config-conventional": "17.0.0", | ||
"@jenssimon/eslint-config-base": "5.4.1", | ||
"@jenssimon/eslint-config-typescript": "3.4.2", | ||
"@types/jest": "27.5.1", | ||
"commitizen": "4.2.4", | ||
"@commitlint/cli": "17.0.3", | ||
"@commitlint/config-conventional": "17.0.3", | ||
"@jenssimon/eslint-config-base": "6.0.0", | ||
"@jenssimon/eslint-config-typescript": "3.5.1", | ||
"@types/jest": "28.1.6", | ||
"commitizen": "4.2.5", | ||
"cz-conventional-changelog": "3.3.0", | ||
"eslint": "8.15.0", | ||
"eslint": "8.21.0", | ||
"husky": "8.0.1", | ||
"jest": "28.1.0", | ||
"jest-environment-jsdom": "28.1.0", | ||
"jest": "28.1.3", | ||
"jest-environment-jsdom": "28.1.3", | ||
"npm-run-all": "4.1.5", | ||
"pinst": "3.0.0", | ||
"rxjs": "7.5.5", | ||
"semantic-release": "19.0.2", | ||
"ts-jest": "28.0.2", | ||
"typescript": "4.6.4" | ||
"rxjs": "7.5.6", | ||
"semantic-release": "19.0.3", | ||
"ts-jest": "28.0.7", | ||
"typescript": "4.7.4" | ||
}, | ||
@@ -90,3 +90,3 @@ "peerDependencies": { | ||
}, | ||
"packageManager": "yarn@3.2.1", | ||
"packageManager": "yarn@3.2.2", | ||
"config": { | ||
@@ -93,0 +93,0 @@ "commitizen": { |
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
155