ts-key-enum
Advanced tools
Comparing version
{ | ||
"name": "ts-key-enum", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A TypeScript string enum for compile-time safety when working with event.key", | ||
@@ -46,17 +46,17 @@ "main": "", | ||
"devDependencies": { | ||
"@types/bluebird": "3.5.28", | ||
"@types/cheerio": "0.22.13", | ||
"@types/lodash": "4.14.144", | ||
"@types/bluebird": "3.5.29", | ||
"@types/cheerio": "0.22.14", | ||
"@types/lodash": "4.14.146", | ||
"@types/request": "2.48.3", | ||
"@types/request-promise": "4.1.44", | ||
"bluebird": "3.7.1", | ||
"chalk": "2.4.2", | ||
"chalk": "3.0.0", | ||
"cheerio": "1.0.0-rc.3", | ||
"prettier": "1.18.2", | ||
"prettier": "1.19.1", | ||
"request": "2.88.0", | ||
"request-promise": "4.2.4", | ||
"ts-node": "8.4.1", | ||
"tslint": "5.20.0", | ||
"typescript": "3.6.4" | ||
"request-promise": "4.2.5", | ||
"ts-node": "8.5.0", | ||
"tslint": "5.20.1", | ||
"typescript": "3.7.2" | ||
} | ||
} |
# ts-key-enum | ||
<a href="https://gitlab.com/nfriend/ts-key-enum/pipelines/latest" target="_blank"> | ||
<img src="https://gitlab.com/nfriend/ts-key-enum/badges/master/pipeline.svg" alt="GitLab build status"> | ||
<img alt="GitLab build status" src="https://gitlab.com/nfriend/ts-key-enum/badges/master/pipeline.svg"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/ts-key-enum" target="_blank"> | ||
<img alt="npm version" src="https://img.shields.io/npm/v/ts-key-enum"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/ts-key-enum" target="_blank"> | ||
<img alt="types" src="https://img.shields.io/npm/types/ts-key-enum"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/ts-key-enum" target="_blank"> | ||
<img alt="npm downloads" src="https://img.shields.io/npm/dw/ts-key-enum"> | ||
</a> | ||
<a href="https://gitlab.com/nfriend/ts-key-enum/blob/master/LICENSE" target="_blank"> | ||
<img alt="license" src="https://img.shields.io/npm/l/ts-key-enum"> | ||
</a> | ||
A TypeScript string enum for compile-time safety when working with `event.key`. | ||
@@ -17,2 +33,6 @@ | ||
```sh | ||
yarn add ts-key-enum | ||
``` | ||
## Purpose | ||
@@ -103,2 +123,5 @@ | ||
- You are using TypeScript < `1.4`, which doesn't support `const enum`. | ||
- You are using [`@babel/plugin-transform-typescript`](https://babeljs.io/docs/en/babel-plugin-transform-typescript), which [does not support `const enum`](https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats). | ||
- See #2 and https://github.com/babel/babel/issues/8741 | ||
- Alternatively, use [`babel-plugin-const-enum`](https://www.npmjs.com/package/babel-plugin-const-enum) to convert `const enum`s to regular `enum` in your development environment, allowing you to reap the benefits of `const enum`s in your production build (see https://www.npmjs.com/package/babel-plugin-const-enum#transform-removeconst-default). | ||
@@ -105,0 +128,0 @@ ## Building |
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
41019
3.22%157
17.16%0
-100%