Comparing version 1.2.4 to 1.2.5
@@ -18,2 +18,3 @@ declare let R: R.Static | ||
type MapFunction<In, Out> = (x: In, prop?: string) => Out | ||
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> | ||
@@ -364,5 +365,10 @@ interface MapInterface<T> { | ||
omit<T>(names: string[] | string, obj: T): T | ||
omit(names: string[] | string): <T>(obj: T) => T | ||
omit<T, K extends Array<keyof T>>(names: K, obj: T): Omit<T, K[number]> | ||
omit<T, K extends keyof T>(name: K, obj: T): Omit<T, K> | ||
omit<T, K extends Array<keyof T>>(names: K): (obj: T) => Omit<T, K[number]> | ||
omit<T, K extends keyof T>(name: K): (obj: T) => Omit<T, K> | ||
partialCurry<Out>( | ||
@@ -369,0 +375,0 @@ fn: (input: Dictionary<any>) => Out, |
{ | ||
"name": "rambda", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Lightweight faster alternative to Ramda", | ||
@@ -69,3 +69,7 @@ "main": "./dist/rambda.js", | ||
], | ||
"workInProgress": "" | ||
"workInProgress": "", | ||
"docs": [ | ||
"docsify", | ||
"repl" | ||
] | ||
}, | ||
@@ -72,0 +76,0 @@ "files": [ |
@@ -66,3 +66,3 @@ [![CircleCI](https://circleci.com/gh/selfrefactor/rambda/tree/master.svg?style=svg)](https://circleci.com/gh/selfrefactor/rambda/tree/master) | ||
``` | ||
https://unpkg.com/rambda@1.2.3/dist/rambda.umd.js | ||
https://unpkg.com/rambda@1.2.4/dist/rambda.umd.js | ||
``` | ||
@@ -798,24 +798,2 @@ | ||
--- | ||
#### join | ||
> join(separator: string, arr: T[]): string | ||
``` | ||
R.join('-', [1, 2, 3]) // => '1-2-3' | ||
``` | ||
[Source](https://github.com/selfrefactor/rambda/tree/master/modules/join.js) | ||
<a href="https://rambda.now.sh?const%20result%20%3D%20R.join('-'%2C%20%5B1%2C%202%2C%203%5D)%20%20%2F%2F%20%3D%3E%20'1-2-3'">Try in REPL</a> | ||
--- | ||
#### keys | ||
> keys(x: Object): string[] | ||
``` | ||
R.keys({a:1, b:2}) // => ['a', 'b'] | ||
``` | ||
--- | ||
#### is | ||
@@ -832,6 +810,2 @@ | ||
[Source](https://github.com/selfrefactor/rambda/tree/master/modules/is.js) | ||
<a href="https://rambda.now.sh?const%20result%20%3D%20R.is(String%2C%20'foo')%20%20%2F%2F%20%3D%3E%20true%0AR.is(Array%2C%201)%20%20%2F%2F%20%3D%3E%20false">Try in REPL</a> | ||
--- | ||
@@ -854,2 +828,24 @@ #### isNil | ||
--- | ||
#### join | ||
> join(separator: string, arr: T[]): string | ||
``` | ||
R.join('-', [1, 2, 3]) // => '1-2-3' | ||
``` | ||
[Source](https://github.com/selfrefactor/rambda/tree/master/modules/join.js) | ||
<a href="https://rambda.now.sh?const%20result%20%3D%20R.join('-'%2C%20%5B1%2C%202%2C%203%5D)%20%20%2F%2F%20%3D%3E%20'1-2-3'">Try in REPL</a> | ||
--- | ||
#### keys | ||
> keys(x: Object): string[] | ||
``` | ||
R.keys({a:1, b:2}) // => ['a', 'b'] | ||
``` | ||
--- | ||
#### last | ||
@@ -1710,3 +1706,4 @@ | ||
- 1.2.3 Add missing Typescript definitions - [PR#82](https://github.com/selfrefactor/rambda/pull/82) | ||
- 1.2.4 Add missing Typescript definitions - [PR#82](https://github.com/selfrefactor/rambda/pull/82) | ||
- 1.2.3 Doesn't exist because NPM is great at handling errors. | ||
- 1.2.2 Change curry method used across most of library methods | ||
@@ -1713,0 +1710,0 @@ - 1.2.1 Add `R.assoc` | fix passing `undefined` to `R.map` and `R.merge` [issue #77](https://github.com/selfrefactor/rambda/issues/77) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
283940
1172
0
2087