pepka 0.14.0-beta3 → 0.14.0-beta5

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/dist/bundle.d.ts CHANGED
@@ -256,8 +256,8 @@ export declare const prop: {
256
256
  };
257
257
  export declare const propEq: FT.Curry<(key: string, value: any, o: AnyObject) => boolean>;
258
258
  export declare const propsEq: FT.Curry<(key: string, o1: any, o2: AnyObject) => boolean>;
259
- export declare const pathOr: FT.Curry<(_default: any, path: string[], o: any) => any>;
260
- export declare const path: FT.Curry<(path: string[], o: any) => any>;
259
+ export declare const pathOr: FT.Curry<(_default: any, path: (string | number)[], o: any) => any>;
260
+ export declare const path: FT.Curry<(path: (string | number)[], o: any) => any>;
261
261
  export declare const pathEq: FT.Curry<(_path: string[], value: any, o: AnyObject) => (a: any) => boolean>;
262
262
  export declare const pathsEq: FT.Curry<(_path: string[], o1: AnyObject, o2: AnyObject) => (a: any) => boolean>;
263
263
  export declare const clone: (s: any, shallow?: boolean) => any;
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "exports": {
24
24
  ".": {
25
25
  "module": "./dist/bundle.mjs",
26
- "commonjs": "./dist/bundle.cjs"
26
+ "require": "./dist/bundle.cjs"
27
27
  }
28
28
  },
29
29
  "name": "pepka",
@@ -44,7 +44,7 @@
44
44
  "prod": "npm run gentypes && npm run prod:es && npm run prod:cjs",
45
45
  "all": "npm run dev && npm run prod"
46
46
  },
47
- "version": "0.14.0-beta3",
47
+ "version": "0.14.0-beta5",
48
48
  "ava": {
49
49
  "files": [ "./test/specs/*.ts" ],
50
50
  "failFast": true,
package/src/safe.ts CHANGED
@@ -213,7 +213,7 @@ export const propsEq = curry3(
213
213
  (key: string, o1: any, o2: AnyObject) => equals(o1[key], o2[key])
214
214
  )
215
215
  export const pathOr = curry3(
216
- (_default: any, path: string[], o: any) =>
216
+ (_default: any, path: (string | number)[], o: any) =>
217
217
  ifElse(length,
218
218
  () => isNil(o)
219
219
  ? _default