Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "wonka", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "Phil Pluckthun <phil@kitten.sh>", | ||
@@ -29,2 +29,3 @@ "source": "./src/index.js", | ||
"prettier": "prettier --write ./dist/*.js", | ||
"refmt": "bsrefmt --in-place **/**/*.{re,rei}", | ||
"prebundle": "rimraf ./dist", | ||
@@ -59,2 +60,4 @@ "bundle": "microbundle --external none --no-compress --no-sourcemap --format es,cjs", | ||
"coveralls": "^3.0.0", | ||
"husky": "^1.3.1", | ||
"lint-staged": "^8.1.5", | ||
"microbundle": "^0.9.0", | ||
@@ -66,2 +69,13 @@ "npm-run-all": "^4.1.5", | ||
}, | ||
"lint-staged": { | ||
"*.{re, rei}": [ | ||
"bsrefmt --in-place", | ||
"git add" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"prettier": { | ||
@@ -68,0 +82,0 @@ "printWidth": 100 |
@@ -68,5 +68,5 @@ # Wonka | ||
Wonka.fromList(example) | ||
|> Wonka.filter(x => x mod 2 === 0) | ||
|> Wonka.map(x => x * 2) | ||
|> Wonka.forEach(x => print_endline(string_of_int(x))); | ||
|> Wonka.filter((.x) => x mod 2 === 0) | ||
|> Wonka.map((.x )=> x * 2) | ||
|> Wonka.forEach((.x) => print_endline(string_of_int(x))); | ||
@@ -95,5 +95,5 @@ /* prints: 4, 8, 12 */ | ||
|> Wonka.take(7) | ||
|> Wonka.filter(x => x mod 2 === 0) | ||
|> Wonka.map(x => x * 2) | ||
|> Wonka.forEach(x => print_endline(string_of_int(x))); | ||
|> Wonka.filter((.x) => x mod 2 === 0) | ||
|> Wonka.map((.x) => x * 2) | ||
|> Wonka.forEach((.x) => print_endline(string_of_int(x))); | ||
@@ -100,0 +100,0 @@ /* prints: 4, 8, 12 */ |
import { Source } from '../wonka_types'; | ||
export const fromDomEvent: <E>(HTMLElement, string) => Source<E>; | ||
export const fromDomEvent: <E>(element: HTMLElement, event: string) => Source<E>; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
417039
9330
11