pepka 1.12.0 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "prod": "npm run gentypes && npm run prod:es && npm run prod:cjs",
43
43
  "all": "npm run dev && npm run prod"
44
44
  },
45
- "version": "1.12.0",
45
+ "version": "1.12.1",
46
46
  "devDependencies": {
47
47
  "@rollup/plugin-commonjs": "^29.0.2",
48
48
  "@rollup/plugin-node-resolve": "^16.0.3",
package/src/quick.ts CHANGED
@@ -44,7 +44,7 @@ export const qmergeDeepX = mergeDeep(2)
44
44
  export const qmergeDeepAdd = mergeDeep(3)
45
45
  /** @param o1 <- o2 */
46
46
  export const qmergeShallow = curry2((o1: AnyObject, o2: AnyObject) => Object.assign(o1, o2))
47
- /** qmapKeys({ a: 'b' }, { a: 44 }) -> { b: 44 } */
47
+ /** qmapKeys({ a: 'b' }, { a: 44 }) -> { b: 44 } removes a key when null. */
48
48
  export const qmapKeys = curry2(
49
49
  (
50
50
  keyMap: {[oldKey: string]: string | AnyFunc},
package/src/safe.ts CHANGED
@@ -430,7 +430,7 @@ export const mergeDeepAdd = curry2(
430
430
  */
431
431
  export const overProp = curry3(
432
432
  (prop: string, pipe: AnyFunc, data: any) =>
433
- (prop in data) && assoc(prop, pipe(data[prop]), data)
433
+ prop in data ? assoc(prop, pipe(data[prop]), data) : data
434
434
  )
435
435
  /** mapKeys({ a: 'b' }, { a: 44 }) -> { b: 44 } */
436
436
  export const mapKeys = curry2(