Comparing version 1.10.1 to 1.10.2
@@ -0,1 +1,8 @@ | ||
### **1.10.2** (2021-12-23) | ||
- Fix for Deno 1.17 | ||
- Update README.md | ||
- Update README.md | ||
- Update README.md | ||
### **1.10.1** (2021-07-20) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "evt", | ||
"version": "1.10.1", | ||
"version": "1.10.2", | ||
"description": "Type safe replacement for node's EventEmitter", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -8,6 +8,14 @@ <p align="center"> | ||
<br> | ||
<img src="https://github.com/garronej/evt/workflows/ci/badge.svg?branch=develop"> | ||
<img src="https://img.shields.io/bundlephobia/minzip/evt"> | ||
<img src="https://img.shields.io/npm/dw/evt"> | ||
<img src="https://img.shields.io/npm/l/evt"> | ||
<a href="https://github.com/garronej/evt/actions"> | ||
<img src="https://github.com/garronej/evt/workflows/ci/badge.svg?branch=develop"> | ||
</a> | ||
<a href="https://bundlephobia.com/package/evt"> | ||
<img src="https://img.shields.io/bundlephobia/minzip/evt"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/evt"> | ||
<img src="https://img.shields.io/npm/dw/evt"> | ||
</a> | ||
<a href="https://github.com/garronej/evt/blob/main/LICENSE"> | ||
<img src="https://img.shields.io/npm/l/evt"> | ||
</a> | ||
</p> | ||
@@ -32,3 +40,3 @@ | ||
- ✅ Lightweight, no dependency. | ||
- ✅ No polyfills needed, the NPM module is transpiled down to ES3 | ||
- ✅ Can be imported with `require` (CJS) or `import` (ESM) as long as you install [`evt@beta`](https://github.com/garronej/evt/pull/16) | ||
- ✅ [React Hooks integration](https://stackblitz.com/edit/evt-react-hooks-todo-list?file=index.tsx) | ||
@@ -126,2 +134,3 @@ | ||
$ npm install --save evt | ||
# OR npm install --save evt@beta for the latest features | ||
``` | ||
@@ -128,0 +137,0 @@ ```typescript |
@@ -21,4 +21,4 @@ export type ReduceCallbackFunction<ArrOf, ReduceTo> = ( | ||
if ("1" in outWrap) { | ||
out = outWrap[1]; | ||
if (outWrap.length === 1) { | ||
out = outWrap[0]; | ||
} else { | ||
@@ -25,0 +25,0 @@ out = arrOp(array, ...params); |
@@ -49,3 +49,3 @@ | ||
errorDefineProperty = error; | ||
errorDefineProperty = error as any; | ||
@@ -52,0 +52,0 @@ } |
@@ -37,4 +37,4 @@ "use strict"; | ||
var out; | ||
if ("1" in outWrap) { | ||
out = outWrap[1]; | ||
if (outWrap.length === 1) { | ||
out = outWrap[0]; | ||
} | ||
@@ -41,0 +41,0 @@ else { |
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
2575765
187