Upload folder using huggingface_hub (part 7)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- node_modules/is-fullwidth-code-point/readme.md +39 -0
- node_modules/is-generator-function/.eslintrc +9 -0
- node_modules/is-generator-function/.nvmrc +1 -0
- node_modules/is-generator-function/.nycrc +9 -0
- node_modules/is-generator-function/CHANGELOG.md +254 -0
- node_modules/is-generator-function/LICENSE +20 -0
- node_modules/is-generator-function/README.md +40 -0
- node_modules/is-generator-function/index.d.ts +3 -0
- node_modules/is-generator-function/index.js +31 -0
- node_modules/is-generator-function/package.json +107 -0
- node_modules/is-generator-function/test/corejs.js +6 -0
- node_modules/is-generator-function/test/index.js +80 -0
- node_modules/is-generator-function/test/uglified.js +9 -0
- node_modules/is-generator-function/tsconfig.json +9 -0
- node_modules/is-glob/LICENSE +21 -0
- node_modules/is-glob/README.md +206 -0
- node_modules/is-glob/index.js +150 -0
- node_modules/is-glob/package.json +81 -0
- node_modules/is-hexadecimal/index.d.ts +8 -0
- node_modules/is-hexadecimal/index.js +17 -0
- node_modules/is-hexadecimal/license +22 -0
- node_modules/is-hexadecimal/package.json +73 -0
- node_modules/is-hexadecimal/readme.md +141 -0
- node_modules/is-map/.editorconfig +15 -0
- node_modules/is-map/.eslintrc +5 -0
- node_modules/is-map/.gitattributes +1 -0
- node_modules/is-map/.github/FUNDING.yml +12 -0
- node_modules/is-map/.nycrc +9 -0
- node_modules/is-map/CHANGELOG.md +89 -0
- node_modules/is-map/LICENSE +21 -0
- node_modules/is-map/README.md +52 -0
- node_modules/is-map/index.d.ts +3 -0
- node_modules/is-map/index.js +47 -0
- node_modules/is-map/package.json +79 -0
- node_modules/is-map/test/index.js +59 -0
- node_modules/is-map/tsconfig.json +49 -0
- node_modules/is-negative-zero/.editorconfig +8 -0
- node_modules/is-negative-zero/.eslintrc +9 -0
- node_modules/is-negative-zero/.github/FUNDING.yml +12 -0
- node_modules/is-negative-zero/.nycrc +9 -0
- node_modules/is-negative-zero/CHANGELOG.md +147 -0
- node_modules/is-negative-zero/LICENSE +20 -0
- node_modules/is-negative-zero/README.md +54 -0
- node_modules/is-negative-zero/index.d.ts +3 -0
- node_modules/is-negative-zero/index.js +7 -0
- node_modules/is-negative-zero/package.json +92 -0
- node_modules/is-negative-zero/test/index.js +29 -0
- node_modules/is-negative-zero/tsconfig.json +49 -0
- node_modules/is-number-object/.editorconfig +23 -0
- node_modules/is-number-object/.eslintrc +16 -0
node_modules/is-fullwidth-code-point/readme.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-fullwidth-code-point [](https://travis-ci.org/sindresorhus/is-fullwidth-code-point)
|
| 2 |
+
|
| 3 |
+
> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
## Install
|
| 7 |
+
|
| 8 |
+
```
|
| 9 |
+
$ npm install is-fullwidth-code-point
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
## Usage
|
| 14 |
+
|
| 15 |
+
```js
|
| 16 |
+
const isFullwidthCodePoint = require('is-fullwidth-code-point');
|
| 17 |
+
|
| 18 |
+
isFullwidthCodePoint('谢'.codePointAt(0));
|
| 19 |
+
//=> true
|
| 20 |
+
|
| 21 |
+
isFullwidthCodePoint('a'.codePointAt(0));
|
| 22 |
+
//=> false
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
## API
|
| 27 |
+
|
| 28 |
+
### isFullwidthCodePoint(codePoint)
|
| 29 |
+
|
| 30 |
+
#### codePoint
|
| 31 |
+
|
| 32 |
+
Type: `number`
|
| 33 |
+
|
| 34 |
+
The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
## License
|
| 38 |
+
|
| 39 |
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
node_modules/is-generator-function/.eslintrc
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"root": true,
|
| 3 |
+
|
| 4 |
+
"extends": "@ljharb",
|
| 5 |
+
|
| 6 |
+
"rules": {
|
| 7 |
+
"no-new-func": 1,
|
| 8 |
+
},
|
| 9 |
+
}
|
node_modules/is-generator-function/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
node
|
node_modules/is-generator-function/.nycrc
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"all": true,
|
| 3 |
+
"check-coverage": false,
|
| 4 |
+
"reporter": ["text-summary", "text", "html", "json"],
|
| 5 |
+
"exclude": [
|
| 6 |
+
"coverage",
|
| 7 |
+
"test"
|
| 8 |
+
]
|
| 9 |
+
}
|
node_modules/is-generator-function/CHANGELOG.md
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
All notable changes to this project will be documented in this file.
|
| 4 |
+
|
| 5 |
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
| 6 |
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
| 7 |
+
|
| 8 |
+
## [v1.1.2](https://github.com/inspect-js/is-generator-function/compare/v1.1.1...v1.1.2) - 2025-09-30
|
| 9 |
+
|
| 10 |
+
### Fixed
|
| 11 |
+
|
| 12 |
+
- [Fix] fix broken logic [`#45`](https://github.com/inspect-js/is-generator-function/issues/45)
|
| 13 |
+
|
| 14 |
+
### Commits
|
| 15 |
+
|
| 16 |
+
- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-cig`, `@ljharb/tsconfig`, `@types/tape`, `for-each` [`9638da4`](https://github.com/inspect-js/is-generator-function/commit/9638da419fc0ad3077a6295c8a29243aa473d6a0)
|
| 17 |
+
- [Deps] update `call-bound`, `get-proto` [`d5e41c1`](https://github.com/inspect-js/is-generator-function/commit/d5e41c1e99deb878725af180f46d4f1f8e71603d)
|
| 18 |
+
|
| 19 |
+
## [v1.1.1](https://github.com/inspect-js/is-generator-function/compare/v1.1.0...v1.1.1) - 2025-09-29
|
| 20 |
+
|
| 21 |
+
### Commits
|
| 22 |
+
|
| 23 |
+
- [Refactor] use `generator-function` [`5477ff1`](https://github.com/inspect-js/is-generator-function/commit/5477ff1d533273466858e9af5dc1c889ab2fa35b)
|
| 24 |
+
|
| 25 |
+
## [v1.1.0](https://github.com/inspect-js/is-generator-function/compare/v1.0.10...v1.1.0) - 2025-01-02
|
| 26 |
+
|
| 27 |
+
### Commits
|
| 28 |
+
|
| 29 |
+
- [actions] reuse common workflows [`7301651`](https://github.com/inspect-js/is-generator-function/commit/7301651ad24468ab17aee7a86a2dd2a6fcd58637)
|
| 30 |
+
- [actions] split out node 10-20, and 20+ [`40f30a5`](https://github.com/inspect-js/is-generator-function/commit/40f30a5dee3e26cad236ce0afbd0567b6075af54)
|
| 31 |
+
- [meta] use `npmignore` to autogenerate an npmignore file [`ec843a4`](https://github.com/inspect-js/is-generator-function/commit/ec843a4501d238fcde254c7e33c137ec997abfaa)
|
| 32 |
+
- [New] add types [`6dd27c4`](https://github.com/inspect-js/is-generator-function/commit/6dd27c4b6a3ebaa42ddbf4e93c20e2b4d90bad07)
|
| 33 |
+
- [actions] update codecov uploader [`717f85e`](https://github.com/inspect-js/is-generator-function/commit/717f85e8b080cdbdb160558b289ec9f043410bd2)
|
| 34 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`4280e62`](https://github.com/inspect-js/is-generator-function/commit/4280e6260029ccdae8b299faadacafd0f8a2de78)
|
| 35 |
+
- [actions] update rebase action to use reusable workflow [`895c2d0`](https://github.com/inspect-js/is-generator-function/commit/895c2d06a914b82913d3fae2df3071bde72cb584)
|
| 36 |
+
- [Tests] use `for-each` [`3caee87`](https://github.com/inspect-js/is-generator-function/commit/3caee870b0509b91ad37e6a0562f261d7b5f4523)
|
| 37 |
+
- [Robustness] use `call-bound` [`1eb55de`](https://github.com/inspect-js/is-generator-function/commit/1eb55def663c335222d970c5e62459f73aee20db)
|
| 38 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `object-inspect`, `tape` [`5bbd4cd`](https://github.com/inspect-js/is-generator-function/commit/5bbd4cd8bcbd167a05ddf1cd285fd1fd2802801a)
|
| 39 |
+
- [Robustness] use `safe-regex-test` [`5f8b992`](https://github.com/inspect-js/is-generator-function/commit/5f8b9921e4cf53c3cb4185a0f30a170fa2e0722f)
|
| 40 |
+
- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `npmignore`, `tape` [`c730f4c`](https://github.com/inspect-js/is-generator-function/commit/c730f4c056697653ba935b37b44bf9bfe1017331)
|
| 41 |
+
- [Robustness] use `get-proto` [`6dfff38`](https://github.com/inspect-js/is-generator-function/commit/6dfff3821b8a42d0b0f70651abfe1d2e90afbb10)
|
| 42 |
+
- [Tests] replace `aud` with `npm audit` [`725db70`](https://github.com/inspect-js/is-generator-function/commit/725db703352200f7400fa4b2b2058e2220a4c42b)
|
| 43 |
+
- [Deps] update `has-tostringtag` [`5cc3c2d`](https://github.com/inspect-js/is-generator-function/commit/5cc3c2d34b77c3d7d50588225d4d4afa20aa3df2)
|
| 44 |
+
- [Dev Deps] add missing peer dep [`869a507`](https://github.com/inspect-js/is-generator-function/commit/869a507790e8cf1452b355719a6c00efadbe4965)
|
| 45 |
+
|
| 46 |
+
## [v1.0.10](https://github.com/inspect-js/is-generator-function/compare/v1.0.9...v1.0.10) - 2021-08-05
|
| 47 |
+
|
| 48 |
+
### Commits
|
| 49 |
+
|
| 50 |
+
- [Dev Deps] update `eslint`, `auto-changelog`, `core-js`, `tape` [`63cd935`](https://github.com/inspect-js/is-generator-function/commit/63cd9353eead5ad5eb8cf581fc4129841641bb43)
|
| 51 |
+
- [Fix] use `has-tostringtag` to behave correctly in the presence of symbol shams [`8c3fe76`](https://github.com/inspect-js/is-generator-function/commit/8c3fe76b546fbc5085381df65800e4fc67e25ede)
|
| 52 |
+
- [Dev Deps] unpin `core-js` v3 [`ebf2885`](https://github.com/inspect-js/is-generator-function/commit/ebf2885bc202b59f37e074f28951639873c6f38e)
|
| 53 |
+
|
| 54 |
+
## [v1.0.9](https://github.com/inspect-js/is-generator-function/compare/v1.0.8...v1.0.9) - 2021-05-05
|
| 55 |
+
|
| 56 |
+
### Fixed
|
| 57 |
+
|
| 58 |
+
- [Fix] avoid calling `Function` until absolutely necessary [`#41`](https://github.com/inspect-js/is-generator-function/issues/41)
|
| 59 |
+
|
| 60 |
+
### Commits
|
| 61 |
+
|
| 62 |
+
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`612862b`](https://github.com/inspect-js/is-generator-function/commit/612862b5fefc2dc1c7e1f5e7478563a5b53f7b23)
|
| 63 |
+
- [meta] do not publish github action workflow files [`c13855d`](https://github.com/inspect-js/is-generator-function/commit/c13855dc11947589ed7314840a9cc5ae04db90f4)
|
| 64 |
+
- [readme] fix repo URLs; remove travis badge [`bd11a2a`](https://github.com/inspect-js/is-generator-function/commit/bd11a2af1b644cfa352346dcbf6f4cec48b00b78)
|
| 65 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`23f54d4`](https://github.com/inspect-js/is-generator-function/commit/23f54d49da035c1ca79227faee9bacfde2d46884)
|
| 66 |
+
- [readme] add actions and codecov badges [`9e759ef`](https://github.com/inspect-js/is-generator-function/commit/9e759ef8e8f098fe1fa3cd9cca98f79f9e8b8b22)
|
| 67 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`6305f8d`](https://github.com/inspect-js/is-generator-function/commit/6305f8d71ccfa4656bdd280c2616e88fc5ca184b)
|
| 68 |
+
- [meta] remove explicit audit level config [`db4391c`](https://github.com/inspect-js/is-generator-function/commit/db4391c68cf8162245d32734685be7c73c2f03c7)
|
| 69 |
+
- [meta] use `prepublishOnly` script for npm 7+ [`82c5b18`](https://github.com/inspect-js/is-generator-function/commit/82c5b183a605f1d25af15ec8242c8a8f88a26bfa)
|
| 70 |
+
- [Dev Deps] pin `core-js` v3 to < v3.9 [`5f6cc2a`](https://github.com/inspect-js/is-generator-function/commit/5f6cc2ac94a65d7d592775bac6dce573220ccea2)
|
| 71 |
+
- [Tests] avoid running harmony tests on node 16+ [`c41526b`](https://github.com/inspect-js/is-generator-function/commit/c41526b8cd1d376f9ca73b56a5ee076db0f9f1c1)
|
| 72 |
+
- [actions] update workflows [`a348c5d`](https://github.com/inspect-js/is-generator-function/commit/a348c5d6d4b06041ae0ece9f3765dc13ec9df354)
|
| 73 |
+
|
| 74 |
+
## [v1.0.8](https://github.com/inspect-js/is-generator-function/compare/v1.0.7...v1.0.8) - 2020-12-02
|
| 75 |
+
|
| 76 |
+
### Fixed
|
| 77 |
+
|
| 78 |
+
- [Refactor] improve performance in non-toStringTag envs [`#9`](https://github.com/inspect-js/is-generator-function/issues/9)
|
| 79 |
+
|
| 80 |
+
### Commits
|
| 81 |
+
|
| 82 |
+
- [Tests] use shared travis-ci configs [`98c84ec`](https://github.com/inspect-js/is-generator-function/commit/98c84ecd38d7d64b2aa070fa2c240be4373be131)
|
| 83 |
+
- [Tests] migrate tests to Github Actions [`52ea2e2`](https://github.com/inspect-js/is-generator-function/commit/52ea2e2e14da2278c7844a18af4aaef1cc8bb3bb)
|
| 84 |
+
- [meta] add `auto-changelog` [`a31c8d9`](https://github.com/inspect-js/is-generator-function/commit/a31c8d9e8fe4f397e1f8da5b1297050542cd00c3)
|
| 85 |
+
- [Tests] remove `jscs` [`c30694e`](https://github.com/inspect-js/is-generator-function/commit/c30694e5e1739a37c455b8bfae4cc7c4347292de)
|
| 86 |
+
- [meta] remove unused Makefile and associated utilities [`23a8dd7`](https://github.com/inspect-js/is-generator-function/commit/23a8dd75ea554642aadb1313c1cbbd11fe69eb1d)
|
| 87 |
+
- [Tests] up to `node` `v11.4`, `v10.14`, `v8.14`, `v6.15` [`9711495`](https://github.com/inspect-js/is-generator-function/commit/9711495e58fa9477167d7dbc582749981c3f5ee5)
|
| 88 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `make-generator-function`; add `safe-publish-latest` [`3afb4d0`](https://github.com/inspect-js/is-generator-function/commit/3afb4d033587eeddfd2dc840ff98c10f3abea48e)
|
| 89 |
+
- [Tests] up to `node` `v10.0`, `v9.11`, `v8.11`, `v6.14`, `v4.9` [`f1e9b0f`](https://github.com/inspect-js/is-generator-function/commit/f1e9b0f150e77357ecd4afac5873a3bd3ada7b02)
|
| 90 |
+
- [Tests] up to `node` `v11.13`, `v10.15`, `v8.15`, `v6.17` [`433ca64`](https://github.com/inspect-js/is-generator-function/commit/433ca64d5500371516598bebb19fc00370e7c9c7)
|
| 91 |
+
- [Tests] run `nyc` on all tests [`84d8e18`](https://github.com/inspect-js/is-generator-function/commit/84d8e18c441c4c181e51a339559040f95adc4d94)
|
| 92 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`ec51a9f`](https://github.com/inspect-js/is-generator-function/commit/ec51a9f2e6f5da5ae5e8b446e0112eeaa0853954)
|
| 93 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `replace`, `semver`, `tape` [`180fb0d`](https://github.com/inspect-js/is-generator-function/commit/180fb0dbd1a9d6975344d2deb4338c9071e865b1)
|
| 94 |
+
- [actions] add automatic rebasing / merge commit blocking [`7e0f94b`](https://github.com/inspect-js/is-generator-function/commit/7e0f94b055308abc8469e526980991a12a87cfaf)
|
| 95 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `tape`, `replace`, `semver`, `core-js` [`75768b3`](https://github.com/inspect-js/is-generator-function/commit/75768b30b7d4c92231ed53ec72d2f4ae81274d4c)
|
| 96 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `core-js`, `replace`, `semver`, `tape` [`d6413cd`](https://github.com/inspect-js/is-generator-function/commit/d6413cd0bfc27c924619200efe39d9956d6fb638)
|
| 97 |
+
- [actions] add "Allow Edits" workflow [`e73fec7`](https://github.com/inspect-js/is-generator-function/commit/e73fec71e5d1c99246a6f905091e133860931245)
|
| 98 |
+
- [Dev Deps] update `core-js`, `eslint`, `nsp`, `semver`, `tape` [`6746c73`](https://github.com/inspect-js/is-generator-function/commit/6746c733fa535f724700726356a9156d491b54ae)
|
| 99 |
+
- [Tests] switch from `nsp` to `npm audit`; allow it to fail for now [`301aa25`](https://github.com/inspect-js/is-generator-function/commit/301aa2557b4b99962a0e48191c4719c5a95eb69b)
|
| 100 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog` [`d978937`](https://github.com/inspect-js/is-generator-function/commit/d978937e3c86b3e239e0ceecc2324134806e0a32)
|
| 101 |
+
- Revert "[Refactor] improve performance in non-toStringTag envs" [`3892c18`](https://github.com/inspect-js/is-generator-function/commit/3892c18f95a8b5ea57f9893e6d8dce89fec4af30)
|
| 102 |
+
- [Tests] test on both core-js 3 and 2 [`fac5447`](https://github.com/inspect-js/is-generator-function/commit/fac54476693d1b8573cbd36bc3c6eb74cbeb7468)
|
| 103 |
+
- [Tests] use `npx aud` instead of `npm audit` with hoops [`e12897f`](https://github.com/inspect-js/is-generator-function/commit/e12897feae0185f89592dfe1a02a2a4520180313)
|
| 104 |
+
- [meta] add `funding` field [`60711d1`](https://github.com/inspect-js/is-generator-function/commit/60711d122a4ef7ab6a9bee6044a26352ba7f86bd)
|
| 105 |
+
- [Fix] `Object.getPrototypeOf` does not exist in all engines [`7484531`](https://github.com/inspect-js/is-generator-function/commit/7484531c55a61fdb7e8d819ce9aa363f29b2c704)
|
| 106 |
+
- [Dev Deps] update `auto-changelog`, `tape` [`fe92b74`](https://github.com/inspect-js/is-generator-function/commit/fe92b743baaf206e3ee849c551171f0a56b7fa23)
|
| 107 |
+
- [Dev Deps] update `eslint`, `tape` [`2f16f77`](https://github.com/inspect-js/is-generator-function/commit/2f16f77aae4c9aafe65fb29854f46b783d853c58)
|
| 108 |
+
- [Dev Deps] update `core-js`, `replace` [`c67825a`](https://github.com/inspect-js/is-generator-function/commit/c67825a62b7bad7911a1bdb5af237d86229aa4bc)
|
| 109 |
+
- [Tests] on `node` `v10.1` [`b00dbcc`](https://github.com/inspect-js/is-generator-function/commit/b00dbcce7a9f6df4fb35e99fac79560389a9a272)
|
| 110 |
+
- [actions] update rebase action to use checkout v2 [`85c7947`](https://github.com/inspect-js/is-generator-function/commit/85c7947d7474468a5e6dd30b00f632e43f45c21d)
|
| 111 |
+
- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`d2fd827`](https://github.com/inspect-js/is-generator-function/commit/d2fd827cf87a90d647d93185f6d5e332fb7b1bb4)
|
| 112 |
+
- [Dev Deps] update `@ljharb/eslint-config` [`791766e`](https://github.com/inspect-js/is-generator-function/commit/791766e4f12a96d3b9949128f813dadd428d0891)
|
| 113 |
+
|
| 114 |
+
## [v1.0.7](https://github.com/inspect-js/is-generator-function/compare/v1.0.6...v1.0.7) - 2017-12-27
|
| 115 |
+
|
| 116 |
+
### Fixed
|
| 117 |
+
|
| 118 |
+
- [Tests] run tests with uglify-register [`#16`](https://github.com/inspect-js/is-generator-function/issues/16)
|
| 119 |
+
- Exclude `testling.html` from npm package. [`#8`](https://github.com/inspect-js/is-generator-function/issues/8)
|
| 120 |
+
|
| 121 |
+
### Commits
|
| 122 |
+
|
| 123 |
+
- [Tests] up to `node` `v8.4`; use `nvm install-latest-npm` to ensure new npm doesn’t break old node; remove osx builds [`365004b`](https://github.com/inspect-js/is-generator-function/commit/365004b20b302dceb7bd2cee91814f0a55ae3253)
|
| 124 |
+
- [Tests] up to `node` `v9.2`, `v8.9`, `v6.12`; pin included builds to LTS [`33916ea`](https://github.com/inspect-js/is-generator-function/commit/33916eadddccf2a39c8cf0160f82c9a5d4a20ecb)
|
| 125 |
+
- [Dev Deps] update `core-js`, `eslint`, `nsp` [`b4ce014`](https://github.com/inspect-js/is-generator-function/commit/b4ce0144a8b56fc3089b96f1b8818c6e793e552f)
|
| 126 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `core-js`, `nsp`, `semver`, `tape` [`e4b499f`](https://github.com/inspect-js/is-generator-function/commit/e4b499fbe2e5e24593eb25bd63dfc2a1520aaa04)
|
| 127 |
+
- [Tests] up to `node` `v7.4`, `v4.7` [`ce642b6`](https://github.com/inspect-js/is-generator-function/commit/ce642b63f0f9c4f56ca3daefbf8b0d4cbda8c0a4)
|
| 128 |
+
- Only apps should have lockfiles. [`ea4dfb1`](https://github.com/inspect-js/is-generator-function/commit/ea4dfb15554de3a22656415cda985ceaf449be00)
|
| 129 |
+
- [Tests] on `node` `v9.3` [`307d9c1`](https://github.com/inspect-js/is-generator-function/commit/307d9c144fed8a4aec412d3e9ccc117d1c08e167)
|
| 130 |
+
- fix: example code missing ) after argument list [`05f62c7`](https://github.com/inspect-js/is-generator-function/commit/05f62c712a9ca08b0efcabe883affd7c0734f51c)
|
| 131 |
+
- [Tests] update `uglify-register` [`7376bec`](https://github.com/inspect-js/is-generator-function/commit/7376bec6c3c8ee16cf16feb285798be23e6c2c89)
|
| 132 |
+
- [Dev Deps] update `eslint` [`c3f5895`](https://github.com/inspect-js/is-generator-function/commit/c3f58952033c93918aa5b5ac527520b26c2460f8)
|
| 133 |
+
|
| 134 |
+
## [v1.0.6](https://github.com/inspect-js/is-generator-function/compare/v1.0.5...v1.0.6) - 2016-12-20
|
| 135 |
+
|
| 136 |
+
### Fixed
|
| 137 |
+
|
| 138 |
+
- [Fix] fix `is-generator-function` in an env without native generators, with core-js. [`#33`](https://github.com/ljharb/is-equal/issues/33)
|
| 139 |
+
|
| 140 |
+
### Commits
|
| 141 |
+
|
| 142 |
+
- [Tests] fix linting errors. [`9d12cdb`](https://github.com/inspect-js/is-generator-function/commit/9d12cdb4bb43c63801173635a7db92ced8f720d8)
|
| 143 |
+
|
| 144 |
+
## [v1.0.5](https://github.com/inspect-js/is-generator-function/compare/v1.0.4...v1.0.5) - 2016-12-19
|
| 145 |
+
|
| 146 |
+
### Commits
|
| 147 |
+
|
| 148 |
+
- Update `tape`, `semver`, `eslint`; use my personal shared `eslint` config. [`3a1192c`](https://github.com/inspect-js/is-generator-function/commit/3a1192cbf25ee5a1ca64e64c20d169c643ceb860)
|
| 149 |
+
- Add `npm run eslint` [`ae191b6`](https://github.com/inspect-js/is-generator-function/commit/ae191b61d3ec65de63bcd7b2c1ab08f2f9a94ead)
|
| 150 |
+
- [Tests] improve test matrix [`0d0837f`](https://github.com/inspect-js/is-generator-function/commit/0d0837fe00bed00ced94ef5a7bfdbd7e8e295656)
|
| 151 |
+
- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config`, `semver`, `nsp` [`6523655`](https://github.com/inspect-js/is-generator-function/commit/652365556b5f8eea69b4612a183b5026c952e776)
|
| 152 |
+
- Update `jscs`, `tape`, `semver` [`c185388`](https://github.com/inspect-js/is-generator-function/commit/c185388111ee6c0df1498a76d9c565167b5d20cd)
|
| 153 |
+
- Update `eslint` [`9959dbc`](https://github.com/inspect-js/is-generator-function/commit/9959dbc1450214658dc4789574b68de826ec33a7)
|
| 154 |
+
- Update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`5945497`](https://github.com/inspect-js/is-generator-function/commit/5945497bc564655ed5ea1bb6f12610a9afc33a33)
|
| 155 |
+
- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`1754eae`](https://github.com/inspect-js/is-generator-function/commit/1754eaec79e43835bd154c81fba064b558f7ad1b)
|
| 156 |
+
- Update `eslint`, `semver`, `nsp` [`a40f7af`](https://github.com/inspect-js/is-generator-function/commit/a40f7afab3f6ba43193e5464faf51692f6f2199d)
|
| 157 |
+
- Update `covert`, `jscs`, `eslint`, `semver` [`f7c3504`](https://github.com/inspect-js/is-generator-function/commit/f7c35049406adc784b23b6b0fbfdd34b4ca8c183)
|
| 158 |
+
- [Fix] account for Safari 10 which reports the wrong toString on generator functions. [`3a3a52b`](https://github.com/inspect-js/is-generator-function/commit/3a3a52bdba46e03ae333af9519bf471207bf6cec)
|
| 159 |
+
- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config`, `semver`, `nsp` [`aaab6c3`](https://github.com/inspect-js/is-generator-function/commit/aaab6c3a331c8c8793f8f43aa1d452cc12b92c0d)
|
| 160 |
+
- [Dev Deps] update `jscs` [`e24641c`](https://github.com/inspect-js/is-generator-function/commit/e24641ca69ae3ee232837e9153c8b43b046cfe69)
|
| 161 |
+
- [Tests] up to `io.js` `v3.3`, `node` `v4.1` [`c43c5ad`](https://github.com/inspect-js/is-generator-function/commit/c43c5ade8b3b62fa27fac3e5104ab3df93278878)
|
| 162 |
+
- Add `npm run security` via `nsp` [`24256ca`](https://github.com/inspect-js/is-generator-function/commit/24256ca5f5308930e86c3dc75b70bbfe1033e9b6)
|
| 163 |
+
- Test up to `io.js` `v2.3` [`730233f`](https://github.com/inspect-js/is-generator-function/commit/730233f0ca376887c698c01799b60ee54424bf9f)
|
| 164 |
+
- [Tests] use pretest/posttest for linting/security [`3e6b860`](https://github.com/inspect-js/is-generator-function/commit/3e6b8603453e4d127cd1acef720f1ce214d8f69a)
|
| 165 |
+
- [Refactor] remove useless `Object#toString` check. [`9d4d7ac`](https://github.com/inspect-js/is-generator-function/commit/9d4d7ac23f6f2f75098903b4fe4f74e1d39a2226)
|
| 166 |
+
- [Dev Deps] Update `tape`, `eslint` [`34673b8`](https://github.com/inspect-js/is-generator-function/commit/34673b86aecddf149284bd8bbca5ab54e6e59694)
|
| 167 |
+
- Test up to `io.js` `v2.1` [`1e91585`](https://github.com/inspect-js/is-generator-function/commit/1e915850246cbd691606567850f35665a650e490)
|
| 168 |
+
- Test on two latest `io.js` versions. [`8702608`](https://github.com/inspect-js/is-generator-function/commit/87026087a1e3b43ba9f8dc7a5b6c2b58d572ff25)
|
| 169 |
+
- Test on `iojs-v1.5` and `iojs-v1.6` [`c74935e`](https://github.com/inspect-js/is-generator-function/commit/c74935ec9c187e9640f862607873aa096ddcf9fc)
|
| 170 |
+
- Latest `node` now supports generators. [`beb3bfe`](https://github.com/inspect-js/is-generator-function/commit/beb3bfe3d425cc0ece9a02e286727e36d53f5050)
|
| 171 |
+
- [Dev Deps] update `tape` [`c6e6587`](https://github.com/inspect-js/is-generator-function/commit/c6e658765c94b9edc282848f13e7bce882711c8c)
|
| 172 |
+
- Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG. [`0039875`](https://github.com/inspect-js/is-generator-function/commit/0039875e6c587255470088c7867cfa314713626b)
|
| 173 |
+
- Test on `io.js` `v2.5` [`0017408`](https://github.com/inspect-js/is-generator-function/commit/001740801d2a29f9a25a8824b064286910601e8c)
|
| 174 |
+
- Test on `io.js` `v2.4` [`bc013e2`](https://github.com/inspect-js/is-generator-function/commit/bc013e20b99a89b3f592038196d69f871b39caf0)
|
| 175 |
+
- Test on `io.js` `v3.0` [`e195030`](https://github.com/inspect-js/is-generator-function/commit/e1950306f4e0a107101e9aeae89cfac2c18e33de)
|
| 176 |
+
|
| 177 |
+
## [v1.0.4](https://github.com/inspect-js/is-generator-function/compare/v1.0.3...v1.0.4) - 2015-03-03
|
| 178 |
+
|
| 179 |
+
### Fixed
|
| 180 |
+
|
| 181 |
+
- Add support for detecting concise generator methods. [`#2`](https://github.com/inspect-js/is-generator-function/issues/2)
|
| 182 |
+
|
| 183 |
+
### Commits
|
| 184 |
+
|
| 185 |
+
- All grade A-supported `node`/`iojs` versions now ship with an `npm` that understands `^`. [`6562e80`](https://github.com/inspect-js/is-generator-function/commit/6562e8015cf318056522a39d7a8e6ad121f9cf4c)
|
| 186 |
+
- Run `travis-ci` tests on `iojs` and `node` v0.12; speed up builds; allow 0.8 failures. [`592f768`](https://github.com/inspect-js/is-generator-function/commit/592f76853bcc5b46351d8842df7fd1483214d870)
|
| 187 |
+
- Test on latest `io.js` [`edca329`](https://github.com/inspect-js/is-generator-function/commit/edca329a4b3ddc19b5ac9491f7678240a73f4e0b)
|
| 188 |
+
- Forgot to add `replace` in 209fac444b4bd90eaa8df279457c4a15e6bba6d2 [`3ebfb38`](https://github.com/inspect-js/is-generator-function/commit/3ebfb380c73e29447689f0924248a5c801260371)
|
| 189 |
+
- Update `semver` [`c21baa5`](https://github.com/inspect-js/is-generator-function/commit/c21baa5acfe51e6bbe324c13ce5d4b6770ecfb27)
|
| 190 |
+
- Update `jscs` [`71a68f4`](https://github.com/inspect-js/is-generator-function/commit/71a68f47044af23ed2cd819d122202a59c2e6967)
|
| 191 |
+
- Update `tape` [`32c03cf`](https://github.com/inspect-js/is-generator-function/commit/32c03cf5701634f47c8d47fc383c97365adb3bb3)
|
| 192 |
+
|
| 193 |
+
## [v1.0.3](https://github.com/inspect-js/is-generator-function/compare/v1.0.2...v1.0.3) - 2015-01-31
|
| 194 |
+
|
| 195 |
+
### Commits
|
| 196 |
+
|
| 197 |
+
- `make release` [`209fac4`](https://github.com/inspect-js/is-generator-function/commit/209fac444b4bd90eaa8df279457c4a15e6bba6d2)
|
| 198 |
+
- Run tests against a faked @@toStringTag [`c9ba1ea`](https://github.com/inspect-js/is-generator-function/commit/c9ba1ea8163bd2e7a0f537da8fbaead0efa96a24)
|
| 199 |
+
- Add `sudo: false` to speed up travis-ci tests. [`a4b41e1`](https://github.com/inspect-js/is-generator-function/commit/a4b41e1b9c3856c671922f64bf5b7b41eb9ec0d6)
|
| 200 |
+
- Bail out early when typeof is not "function" [`a62e7a5`](https://github.com/inspect-js/is-generator-function/commit/a62e7a547307f5ba62a39e374f2cc2f46705eabc)
|
| 201 |
+
|
| 202 |
+
## [v1.0.2](https://github.com/inspect-js/is-generator-function/compare/v1.0.1...v1.0.2) - 2015-01-20
|
| 203 |
+
|
| 204 |
+
### Commits
|
| 205 |
+
|
| 206 |
+
- Update `tape`, `jscs` [`354d343`](https://github.com/inspect-js/is-generator-function/commit/354d3437426c274221ad21a2a580e9f31bfb07e3)
|
| 207 |
+
- Update `jscs` [`e0b6203`](https://github.com/inspect-js/is-generator-function/commit/e0b620323be47b3925fe3cd660c063a06cfde4aa)
|
| 208 |
+
- Fix tests in newer v8 (and io.js) [`36f0545`](https://github.com/inspect-js/is-generator-function/commit/36f054590d4f5fa994af5f2e7d592840bf9f9d27)
|
| 209 |
+
|
| 210 |
+
## [v1.0.1](https://github.com/inspect-js/is-generator-function/compare/v1.0.0...v1.0.1) - 2014-12-14
|
| 211 |
+
|
| 212 |
+
### Commits
|
| 213 |
+
|
| 214 |
+
- Use my standard jscs.json file. [`7624ca3`](https://github.com/inspect-js/is-generator-function/commit/7624ca3053cacec69d9a58e40c54e6635d8f980b)
|
| 215 |
+
- Use `make-generator-function` instead of a local module. [`9234a57`](https://github.com/inspect-js/is-generator-function/commit/9234a5771a3237baf3fe609540e74ce982fe6932)
|
| 216 |
+
- Adding license and downloads badges [`9463b6a`](https://github.com/inspect-js/is-generator-function/commit/9463b6a0c6bf254e213a2f5306f37e9849c8bb1a)
|
| 217 |
+
- Using single quotes exclusively. [`4b4d71f`](https://github.com/inspect-js/is-generator-function/commit/4b4d71f9e0d3753b6f2bd764ae910601352ff19e)
|
| 218 |
+
- Use SVG badges instead of PNG [`eaaaf41`](https://github.com/inspect-js/is-generator-function/commit/eaaaf41900c2e69c801062e8c7bb247bd3d2e402)
|
| 219 |
+
- Updating jscs. [`780758e`](https://github.com/inspect-js/is-generator-function/commit/780758ef1ae5e6a7a422fc8e3ac1265f53e33135)
|
| 220 |
+
- Update `tape`, `jscs` [`6b8f959`](https://github.com/inspect-js/is-generator-function/commit/6b8f95928274d770e9b66359e38c982a2b161e74)
|
| 221 |
+
- Update `tape`, `jscs` [`6e1334d`](https://github.com/inspect-js/is-generator-function/commit/6e1334d12899bed116ab3c4e82994fdfc8f8c279)
|
| 222 |
+
- Lock covert to v1.0.0. [`3dd5c74`](https://github.com/inspect-js/is-generator-function/commit/3dd5c74921a59481d5a699444a879ef0f80ef7c5)
|
| 223 |
+
- Updating `tape` [`99f61a3`](https://github.com/inspect-js/is-generator-function/commit/99f61a30692b7c00d06a6d29ac3022b242d4f1d4)
|
| 224 |
+
- Updating jscs [`171d96d`](https://github.com/inspect-js/is-generator-function/commit/171d96deef2bff8a840b0ef9563ad9366c8fcd98)
|
| 225 |
+
- Updating jscs [`847795e`](https://github.com/inspect-js/is-generator-function/commit/847795e9f951f5d28195f0bdb85ec26b427d2d33)
|
| 226 |
+
- Updating jscs [`cad09d8`](https://github.com/inspect-js/is-generator-function/commit/cad09d88873f2595545977f0ce9ed8ccde78b625)
|
| 227 |
+
- Updating covert [`8617860`](https://github.com/inspect-js/is-generator-function/commit/86178604dccea5b73ad2b386b275657366735529)
|
| 228 |
+
- Adding an .nvmrc file. [`1fa3ea4`](https://github.com/inspect-js/is-generator-function/commit/1fa3ea4f04139fdc28e2c0e553efd917be1f5744)
|
| 229 |
+
|
| 230 |
+
## [v1.0.0](https://github.com/inspect-js/is-generator-function/compare/v0.0.0...v1.0.0) - 2014-08-09
|
| 231 |
+
|
| 232 |
+
### Commits
|
| 233 |
+
|
| 234 |
+
- Adding `npm run lint` [`ed9cf0a`](https://github.com/inspect-js/is-generator-function/commit/ed9cf0a240ae8b3c4bf682e5ff37757d9eb6cffc)
|
| 235 |
+
- Make sure old and unstable nodes don't break Travis [`80a7ee7`](https://github.com/inspect-js/is-generator-function/commit/80a7ee782dc832869bccf857213ef76685303738)
|
| 236 |
+
- Updating tape [`d5f141f`](https://github.com/inspect-js/is-generator-function/commit/d5f141f0017aefb003911a1eb9c9b615069f1cf0)
|
| 237 |
+
- Fix npm upgrading on node 0.8 [`2ee0f08`](https://github.com/inspect-js/is-generator-function/commit/2ee0f08a56f493fb5d4299c7bda9cd52c41a98a2)
|
| 238 |
+
- Updating dependencies [`accf688`](https://github.com/inspect-js/is-generator-function/commit/accf688e8c20f05d0f24c1ff8efdaa24def0882c)
|
| 239 |
+
- Updating covert [`38d22e6`](https://github.com/inspect-js/is-generator-function/commit/38d22e6cdc939bb3f2cbfc5fff41473a694d4fe5)
|
| 240 |
+
- Updating tape [`49c1f00`](https://github.com/inspect-js/is-generator-function/commit/49c1f00cf5c66c87a8678d9c78a6b411cf1af986)
|
| 241 |
+
- Updating tape [`75cb7df`](https://github.com/inspect-js/is-generator-function/commit/75cb7dfef5254f4a9941a3bd77471cb783bb6fbd)
|
| 242 |
+
- Updating tape [`4142cc0`](https://github.com/inspect-js/is-generator-function/commit/4142cc092e157b92a6107112b2c3f3dc9b154367)
|
| 243 |
+
- Better code coverage [`1831d64`](https://github.com/inspect-js/is-generator-function/commit/1831d64d859ae8d45cc9aea30248d8cabc3d1e1d)
|
| 244 |
+
|
| 245 |
+
## v0.0.0 - 2014-02-09
|
| 246 |
+
|
| 247 |
+
### Commits
|
| 248 |
+
|
| 249 |
+
- Tests. [`f46e936`](https://github.com/inspect-js/is-generator-function/commit/f46e9368db04e0725a56e2bd0a246ab52123ed35)
|
| 250 |
+
- package.json [`189db32`](https://github.com/inspect-js/is-generator-function/commit/189db324e627257de94b68d1e6005c21ba74ebad)
|
| 251 |
+
- Initial commit [`8096cee`](https://github.com/inspect-js/is-generator-function/commit/8096ceedf7c9caece9acfd0ff4a0bd6eafa5dfdf)
|
| 252 |
+
- README. [`9eda97f`](https://github.com/inspect-js/is-generator-function/commit/9eda97fbc33113a519121a6515e777985730f3f7)
|
| 253 |
+
- Implementation. [`c5c3a8d`](https://github.com/inspect-js/is-generator-function/commit/c5c3a8d5dccae465c69958fc38c4ceba8b1354cc)
|
| 254 |
+
- Adding Travis CI [`9a6503e`](https://github.com/inspect-js/is-generator-function/commit/9a6503ebce8c9521c82e8ed1ec1b79bc856d0c5c)
|
node_modules/is-generator-function/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014 Jordan Harband
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 6 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 7 |
+
the Software without restriction, including without limitation the rights to
|
| 8 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
| 9 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
| 10 |
+
subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
| 17 |
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
| 18 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
| 19 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 20 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
node_modules/is-generator-function/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-generator-function <sup>[![Version Badge][2]][1]</sup>
|
| 2 |
+
|
| 3 |
+
[![github actions][actions-image]][actions-url]
|
| 4 |
+
[![coverage][codecov-image]][codecov-url]
|
| 5 |
+
[![dependency status][5]][6]
|
| 6 |
+
[![dev dependency status][7]][8]
|
| 7 |
+
[![License][license-image]][license-url]
|
| 8 |
+
[![Downloads][downloads-image]][downloads-url]
|
| 9 |
+
|
| 10 |
+
[![npm badge][11]][1]
|
| 11 |
+
|
| 12 |
+
Is this a native generator function?
|
| 13 |
+
|
| 14 |
+
## Example
|
| 15 |
+
|
| 16 |
+
```js
|
| 17 |
+
var isGeneratorFunction = require('is-generator-function');
|
| 18 |
+
assert(!isGeneratorFunction(function () {}));
|
| 19 |
+
assert(!isGeneratorFunction(null));
|
| 20 |
+
assert(isGeneratorFunction(function* () { yield 42; return Infinity; }));
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## Tests
|
| 24 |
+
Simply clone the repo, `npm install`, and run `npm test`
|
| 25 |
+
|
| 26 |
+
[1]: https://npmjs.org/package/is-generator-function
|
| 27 |
+
[2]: https://versionbadg.es/inspect-js/is-generator-function.svg
|
| 28 |
+
[5]: https://david-dm.org/inspect-js/is-generator-function.svg
|
| 29 |
+
[6]: https://david-dm.org/inspect-js/is-generator-function
|
| 30 |
+
[7]: https://david-dm.org/inspect-js/is-generator-function/dev-status.svg
|
| 31 |
+
[8]: https://david-dm.org/inspect-js/is-generator-function#info=devDependencies
|
| 32 |
+
[11]: https://nodei.co/npm/is-generator-function.png?downloads=true&stars=true
|
| 33 |
+
[license-image]: https://img.shields.io/npm/l/is-generator-function.svg
|
| 34 |
+
[license-url]: LICENSE
|
| 35 |
+
[downloads-image]: https://img.shields.io/npm/dm/is-generator-function.svg
|
| 36 |
+
[downloads-url]: https://npm-stat.com/charts.html?package=is-generator-function
|
| 37 |
+
[codecov-image]: https://codecov.io/gh/inspect-js/is-generator-function/branch/main/graphs/badge.svg
|
| 38 |
+
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-generator-function/
|
| 39 |
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-generator-function
|
| 40 |
+
[actions-url]: https://github.com/inspect-js/is-generator-function/actions
|
node_modules/is-generator-function/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
declare function isGeneratorFunction(fn: unknown): fn is GeneratorFunction;
|
| 2 |
+
|
| 3 |
+
export = isGeneratorFunction;
|
node_modules/is-generator-function/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var callBound = require('call-bound');
|
| 4 |
+
var safeRegexTest = require('safe-regex-test');
|
| 5 |
+
var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
|
| 6 |
+
var hasToStringTag = require('has-tostringtag/shams')();
|
| 7 |
+
var getProto = require('get-proto');
|
| 8 |
+
|
| 9 |
+
var toStr = callBound('Object.prototype.toString');
|
| 10 |
+
var fnToStr = callBound('Function.prototype.toString');
|
| 11 |
+
|
| 12 |
+
var getGeneratorFunction = require('generator-function');
|
| 13 |
+
|
| 14 |
+
/** @type {import('.')} */
|
| 15 |
+
module.exports = function isGeneratorFunction(fn) {
|
| 16 |
+
if (typeof fn !== 'function') {
|
| 17 |
+
return false;
|
| 18 |
+
}
|
| 19 |
+
if (isFnRegex(fnToStr(fn))) {
|
| 20 |
+
return true;
|
| 21 |
+
}
|
| 22 |
+
if (!hasToStringTag) {
|
| 23 |
+
var str = toStr(fn);
|
| 24 |
+
return str === '[object GeneratorFunction]';
|
| 25 |
+
}
|
| 26 |
+
if (!getProto) {
|
| 27 |
+
return false;
|
| 28 |
+
}
|
| 29 |
+
var GeneratorFunction = getGeneratorFunction();
|
| 30 |
+
return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
|
| 31 |
+
};
|
node_modules/is-generator-function/package.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-generator-function",
|
| 3 |
+
"version": "1.1.2",
|
| 4 |
+
"description": "Determine if a function is a native generator function.",
|
| 5 |
+
"main": "index.js",
|
| 6 |
+
"scripts": {
|
| 7 |
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
| 8 |
+
"prepublishOnly": "safe-publish-latest",
|
| 9 |
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
| 10 |
+
"pretest": "npm run lint",
|
| 11 |
+
"test": "npm run tests-only",
|
| 12 |
+
"tests-only": "nyc npm run test:all",
|
| 13 |
+
"test:all": "npm run test:index && npm run test:corejs && npm run test:uglified",
|
| 14 |
+
"test:harmony": "node --es-staging --harmony test && node --es-staging --harmony test/corejs && node --es-staging --harmony test/uglified",
|
| 15 |
+
"test:index": "node test",
|
| 16 |
+
"test:corejs": "node test/corejs",
|
| 17 |
+
"test:uglified": "node test/uglified",
|
| 18 |
+
"posttest": "npx npm@\">= 10.2\" audit --production",
|
| 19 |
+
"lint": "eslint --ext=js,mjs .",
|
| 20 |
+
"postlint": "tsc && attw -P",
|
| 21 |
+
"version": "auto-changelog && git add CHANGELOG.md",
|
| 22 |
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
| 23 |
+
},
|
| 24 |
+
"repository": {
|
| 25 |
+
"type": "git",
|
| 26 |
+
"url": "git://github.com/inspect-js/is-generator-function.git"
|
| 27 |
+
},
|
| 28 |
+
"keywords": [
|
| 29 |
+
"generator",
|
| 30 |
+
"generator function",
|
| 31 |
+
"es6",
|
| 32 |
+
"es2015",
|
| 33 |
+
"yield",
|
| 34 |
+
"function",
|
| 35 |
+
"function*"
|
| 36 |
+
],
|
| 37 |
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
| 38 |
+
"funding": {
|
| 39 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 40 |
+
},
|
| 41 |
+
"license": "MIT",
|
| 42 |
+
"bugs": {
|
| 43 |
+
"url": "https://github.com/inspect-js/is-generator-function/issues"
|
| 44 |
+
},
|
| 45 |
+
"dependencies": {
|
| 46 |
+
"call-bound": "^1.0.4",
|
| 47 |
+
"generator-function": "^2.0.0",
|
| 48 |
+
"get-proto": "^1.0.1",
|
| 49 |
+
"has-tostringtag": "^1.0.2",
|
| 50 |
+
"safe-regex-test": "^1.1.0"
|
| 51 |
+
},
|
| 52 |
+
"devDependencies": {
|
| 53 |
+
"@arethetypeswrong/cli": "^0.18.2",
|
| 54 |
+
"@ljharb/eslint-config": "^21.2.0",
|
| 55 |
+
"@ljharb/tsconfig": "^0.3.2",
|
| 56 |
+
"@types/for-each": "^0.3.3",
|
| 57 |
+
"@types/make-generator-function": "^2.0.3",
|
| 58 |
+
"@types/tape": "^5.8.1",
|
| 59 |
+
"auto-changelog": "^2.5.0",
|
| 60 |
+
"core-js": "^2.6.5 || ^3.20.0",
|
| 61 |
+
"encoding": "^0.1.13",
|
| 62 |
+
"eslint": "=8.8.0",
|
| 63 |
+
"for-each": "^0.3.5",
|
| 64 |
+
"in-publish": "^2.0.1",
|
| 65 |
+
"make-generator-function": "^2.1.0",
|
| 66 |
+
"npmignore": "^0.3.1",
|
| 67 |
+
"nyc": "^10.3.2",
|
| 68 |
+
"safe-publish-latest": "^2.0.0",
|
| 69 |
+
"tape": "^5.9.0",
|
| 70 |
+
"typescript": "next",
|
| 71 |
+
"uglify-register": "^1.0.1"
|
| 72 |
+
},
|
| 73 |
+
"testling": {
|
| 74 |
+
"files": "test/index.js",
|
| 75 |
+
"browsers": [
|
| 76 |
+
"iexplore/6.0..latest",
|
| 77 |
+
"firefox/3.0..6.0",
|
| 78 |
+
"firefox/15.0..latest",
|
| 79 |
+
"firefox/nightly",
|
| 80 |
+
"chrome/4.0..10.0",
|
| 81 |
+
"chrome/20.0..latest",
|
| 82 |
+
"chrome/canary",
|
| 83 |
+
"opera/10.0..latest",
|
| 84 |
+
"opera/next",
|
| 85 |
+
"safari/4.0..latest",
|
| 86 |
+
"ipad/6.0..latest",
|
| 87 |
+
"iphone/6.0..latest",
|
| 88 |
+
"android-browser/4.2"
|
| 89 |
+
]
|
| 90 |
+
},
|
| 91 |
+
"engines": {
|
| 92 |
+
"node": ">= 0.4"
|
| 93 |
+
},
|
| 94 |
+
"auto-changelog": {
|
| 95 |
+
"output": "CHANGELOG.md",
|
| 96 |
+
"template": "keepachangelog",
|
| 97 |
+
"unreleased": false,
|
| 98 |
+
"commitLimit": false,
|
| 99 |
+
"backfillLimit": false,
|
| 100 |
+
"hideCredit": true
|
| 101 |
+
},
|
| 102 |
+
"publishConfig": {
|
| 103 |
+
"ignore": [
|
| 104 |
+
".github/workflows"
|
| 105 |
+
]
|
| 106 |
+
}
|
| 107 |
+
}
|
node_modules/is-generator-function/test/corejs.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
// @ts-ignore
|
| 4 |
+
require('core-js');
|
| 5 |
+
|
| 6 |
+
require('./');
|
node_modules/is-generator-function/test/index.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
/* globals window */
|
| 4 |
+
|
| 5 |
+
var test = require('tape');
|
| 6 |
+
|
| 7 |
+
var generatorFuncs = require('make-generator-function')();
|
| 8 |
+
var hasToStringTag = require('has-tostringtag/shams')();
|
| 9 |
+
var forEach = require('for-each');
|
| 10 |
+
|
| 11 |
+
var isGeneratorFunction = require('../index');
|
| 12 |
+
|
| 13 |
+
test('returns false for non-functions', function (t) {
|
| 14 |
+
var nonFuncs = [
|
| 15 |
+
true,
|
| 16 |
+
false,
|
| 17 |
+
null,
|
| 18 |
+
undefined,
|
| 19 |
+
{},
|
| 20 |
+
[],
|
| 21 |
+
/a/g,
|
| 22 |
+
'string',
|
| 23 |
+
42,
|
| 24 |
+
new Date()
|
| 25 |
+
];
|
| 26 |
+
t.plan(nonFuncs.length);
|
| 27 |
+
forEach(nonFuncs, function (nonFunc) {
|
| 28 |
+
t.notOk(isGeneratorFunction(nonFunc), nonFunc + ' is not a function');
|
| 29 |
+
});
|
| 30 |
+
t.end();
|
| 31 |
+
});
|
| 32 |
+
|
| 33 |
+
test('returns false for non-generator functions', function (t) {
|
| 34 |
+
var func = function () {};
|
| 35 |
+
t.notOk(isGeneratorFunction(func), 'anonymous function is not an generator function');
|
| 36 |
+
|
| 37 |
+
var namedFunc = function foo() {};
|
| 38 |
+
t.notOk(isGeneratorFunction(namedFunc), 'named function is not an generator function');
|
| 39 |
+
|
| 40 |
+
if (typeof window === 'undefined') {
|
| 41 |
+
t.skip('window.alert is not an generator function');
|
| 42 |
+
} else {
|
| 43 |
+
t.notOk(isGeneratorFunction(window.alert), 'window.alert is not an generator function');
|
| 44 |
+
}
|
| 45 |
+
t.end();
|
| 46 |
+
});
|
| 47 |
+
|
| 48 |
+
var fakeToString = function () { return 'function* () { return "TOTALLY REAL I SWEAR!"; }'; };
|
| 49 |
+
|
| 50 |
+
test('returns false for non-generator function with faked toString', function (t) {
|
| 51 |
+
var func = function () {};
|
| 52 |
+
func.toString = fakeToString;
|
| 53 |
+
|
| 54 |
+
t.notEqual(String(func), Function.prototype.toString.apply(func), 'faked toString is not real toString');
|
| 55 |
+
t.notOk(isGeneratorFunction(func), 'anonymous function with faked toString is not a generator function');
|
| 56 |
+
t.end();
|
| 57 |
+
});
|
| 58 |
+
|
| 59 |
+
test('returns false for non-generator function with faked @@toStringTag', { skip: !hasToStringTag || generatorFuncs.length === 0 }, function (t) {
|
| 60 |
+
var generatorFunc = generatorFuncs[0];
|
| 61 |
+
/** @type {{ toString(): unknown; valueOf(): unknown; [Symbol.toStringTag]?: unknown; }} */
|
| 62 |
+
var fakeGenFunction = {
|
| 63 |
+
toString: function () { return String(generatorFunc); },
|
| 64 |
+
valueOf: function () { return generatorFunc; }
|
| 65 |
+
};
|
| 66 |
+
fakeGenFunction[Symbol.toStringTag] = 'GeneratorFunction';
|
| 67 |
+
t.notOk(isGeneratorFunction(fakeGenFunction), 'fake GeneratorFunction with @@toStringTag "GeneratorFunction" is not a generator function');
|
| 68 |
+
t.end();
|
| 69 |
+
});
|
| 70 |
+
|
| 71 |
+
test('returns true for generator functions', function (t) {
|
| 72 |
+
if (generatorFuncs.length > 0) {
|
| 73 |
+
forEach(generatorFuncs, function (generatorFunc) {
|
| 74 |
+
t.ok(isGeneratorFunction(generatorFunc), generatorFunc + ' is generator function');
|
| 75 |
+
});
|
| 76 |
+
} else {
|
| 77 |
+
t.skip('generator function is generator function - this environment does not support ES6 generator functions. Please run `node --harmony`, or use a supporting browser.');
|
| 78 |
+
}
|
| 79 |
+
t.end();
|
| 80 |
+
});
|
node_modules/is-generator-function/test/uglified.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
// @ts-ignore
|
| 4 |
+
require('uglify-register/api').register({
|
| 5 |
+
exclude: [/\/node_modules\//, /\/test\//],
|
| 6 |
+
uglify: { mangle: true }
|
| 7 |
+
});
|
| 8 |
+
|
| 9 |
+
require('./');
|
node_modules/is-generator-function/tsconfig.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"extends": "@ljharb/tsconfig",
|
| 3 |
+
"compilerOptions": {
|
| 4 |
+
"maxNodeModuleJsDepth": 0
|
| 5 |
+
},
|
| 6 |
+
"exclude": [
|
| 7 |
+
"coverage"
|
| 8 |
+
]
|
| 9 |
+
}
|
node_modules/is-glob/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-2017, Jon Schlinkert.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in
|
| 13 |
+
all copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 21 |
+
THE SOFTWARE.
|
node_modules/is-glob/README.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-glob [](https://www.npmjs.com/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://github.com/micromatch/is-glob/actions)
|
| 2 |
+
|
| 3 |
+
> Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.
|
| 4 |
+
|
| 5 |
+
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Install with [npm](https://www.npmjs.com/):
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
$ npm install --save is-glob
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
You might also be interested in [is-valid-glob](https://github.com/jonschlinkert/is-valid-glob) and [has-glob](https://github.com/jonschlinkert/has-glob).
|
| 16 |
+
|
| 17 |
+
## Usage
|
| 18 |
+
|
| 19 |
+
```js
|
| 20 |
+
var isGlob = require('is-glob');
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
### Default behavior
|
| 24 |
+
|
| 25 |
+
**True**
|
| 26 |
+
|
| 27 |
+
Patterns that have glob characters or regex patterns will return `true`:
|
| 28 |
+
|
| 29 |
+
```js
|
| 30 |
+
isGlob('!foo.js');
|
| 31 |
+
isGlob('*.js');
|
| 32 |
+
isGlob('**/abc.js');
|
| 33 |
+
isGlob('abc/*.js');
|
| 34 |
+
isGlob('abc/(aaa|bbb).js');
|
| 35 |
+
isGlob('abc/[a-z].js');
|
| 36 |
+
isGlob('abc/{a,b}.js');
|
| 37 |
+
//=> true
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Extglobs
|
| 41 |
+
|
| 42 |
+
```js
|
| 43 |
+
isGlob('abc/@(a).js');
|
| 44 |
+
isGlob('abc/!(a).js');
|
| 45 |
+
isGlob('abc/+(a).js');
|
| 46 |
+
isGlob('abc/*(a).js');
|
| 47 |
+
isGlob('abc/?(a).js');
|
| 48 |
+
//=> true
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
**False**
|
| 52 |
+
|
| 53 |
+
Escaped globs or extglobs return `false`:
|
| 54 |
+
|
| 55 |
+
```js
|
| 56 |
+
isGlob('abc/\\@(a).js');
|
| 57 |
+
isGlob('abc/\\!(a).js');
|
| 58 |
+
isGlob('abc/\\+(a).js');
|
| 59 |
+
isGlob('abc/\\*(a).js');
|
| 60 |
+
isGlob('abc/\\?(a).js');
|
| 61 |
+
isGlob('\\!foo.js');
|
| 62 |
+
isGlob('\\*.js');
|
| 63 |
+
isGlob('\\*\\*/abc.js');
|
| 64 |
+
isGlob('abc/\\*.js');
|
| 65 |
+
isGlob('abc/\\(aaa|bbb).js');
|
| 66 |
+
isGlob('abc/\\[a-z].js');
|
| 67 |
+
isGlob('abc/\\{a,b}.js');
|
| 68 |
+
//=> false
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
Patterns that do not have glob patterns return `false`:
|
| 72 |
+
|
| 73 |
+
```js
|
| 74 |
+
isGlob('abc.js');
|
| 75 |
+
isGlob('abc/def/ghi.js');
|
| 76 |
+
isGlob('foo.js');
|
| 77 |
+
isGlob('abc/@.js');
|
| 78 |
+
isGlob('abc/+.js');
|
| 79 |
+
isGlob('abc/?.js');
|
| 80 |
+
isGlob();
|
| 81 |
+
isGlob(null);
|
| 82 |
+
//=> false
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
Arrays are also `false` (If you want to check if an array has a glob pattern, use [has-glob](https://github.com/jonschlinkert/has-glob)):
|
| 86 |
+
|
| 87 |
+
```js
|
| 88 |
+
isGlob(['**/*.js']);
|
| 89 |
+
isGlob(['foo.js']);
|
| 90 |
+
//=> false
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
### Option strict
|
| 94 |
+
|
| 95 |
+
When `options.strict === false` the behavior is less strict in determining if a pattern is a glob. Meaning that
|
| 96 |
+
some patterns that would return `false` may return `true`. This is done so that matching libraries like [micromatch](https://github.com/micromatch/micromatch) have a chance at determining if the pattern is a glob or not.
|
| 97 |
+
|
| 98 |
+
**True**
|
| 99 |
+
|
| 100 |
+
Patterns that have glob characters or regex patterns will return `true`:
|
| 101 |
+
|
| 102 |
+
```js
|
| 103 |
+
isGlob('!foo.js', {strict: false});
|
| 104 |
+
isGlob('*.js', {strict: false});
|
| 105 |
+
isGlob('**/abc.js', {strict: false});
|
| 106 |
+
isGlob('abc/*.js', {strict: false});
|
| 107 |
+
isGlob('abc/(aaa|bbb).js', {strict: false});
|
| 108 |
+
isGlob('abc/[a-z].js', {strict: false});
|
| 109 |
+
isGlob('abc/{a,b}.js', {strict: false});
|
| 110 |
+
//=> true
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
Extglobs
|
| 114 |
+
|
| 115 |
+
```js
|
| 116 |
+
isGlob('abc/@(a).js', {strict: false});
|
| 117 |
+
isGlob('abc/!(a).js', {strict: false});
|
| 118 |
+
isGlob('abc/+(a).js', {strict: false});
|
| 119 |
+
isGlob('abc/*(a).js', {strict: false});
|
| 120 |
+
isGlob('abc/?(a).js', {strict: false});
|
| 121 |
+
//=> true
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
**False**
|
| 125 |
+
|
| 126 |
+
Escaped globs or extglobs return `false`:
|
| 127 |
+
|
| 128 |
+
```js
|
| 129 |
+
isGlob('\\!foo.js', {strict: false});
|
| 130 |
+
isGlob('\\*.js', {strict: false});
|
| 131 |
+
isGlob('\\*\\*/abc.js', {strict: false});
|
| 132 |
+
isGlob('abc/\\*.js', {strict: false});
|
| 133 |
+
isGlob('abc/\\(aaa|bbb).js', {strict: false});
|
| 134 |
+
isGlob('abc/\\[a-z].js', {strict: false});
|
| 135 |
+
isGlob('abc/\\{a,b}.js', {strict: false});
|
| 136 |
+
//=> false
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
## About
|
| 140 |
+
|
| 141 |
+
<details>
|
| 142 |
+
<summary><strong>Contributing</strong></summary>
|
| 143 |
+
|
| 144 |
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
| 145 |
+
|
| 146 |
+
</details>
|
| 147 |
+
|
| 148 |
+
<details>
|
| 149 |
+
<summary><strong>Running Tests</strong></summary>
|
| 150 |
+
|
| 151 |
+
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
| 152 |
+
|
| 153 |
+
```sh
|
| 154 |
+
$ npm install && npm test
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
</details>
|
| 158 |
+
|
| 159 |
+
<details>
|
| 160 |
+
<summary><strong>Building docs</strong></summary>
|
| 161 |
+
|
| 162 |
+
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
| 163 |
+
|
| 164 |
+
To generate the readme, run the following command:
|
| 165 |
+
|
| 166 |
+
```sh
|
| 167 |
+
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
</details>
|
| 171 |
+
|
| 172 |
+
### Related projects
|
| 173 |
+
|
| 174 |
+
You might also be interested in these projects:
|
| 175 |
+
|
| 176 |
+
* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble "Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit")
|
| 177 |
+
* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base "Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks")
|
| 178 |
+
* [update](https://www.npmjs.com/package/update): Be scalable! Update is a new, open source developer framework and CLI for automating updates… [more](https://github.com/update/update) | [homepage](https://github.com/update/update "Be scalable! Update is a new, open source developer framework and CLI for automating updates of any kind in code projects.")
|
| 179 |
+
* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb "Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.")
|
| 180 |
+
|
| 181 |
+
### Contributors
|
| 182 |
+
|
| 183 |
+
| **Commits** | **Contributor** |
|
| 184 |
+
| --- | --- |
|
| 185 |
+
| 47 | [jonschlinkert](https://github.com/jonschlinkert) |
|
| 186 |
+
| 5 | [doowb](https://github.com/doowb) |
|
| 187 |
+
| 1 | [phated](https://github.com/phated) |
|
| 188 |
+
| 1 | [danhper](https://github.com/danhper) |
|
| 189 |
+
| 1 | [paulmillr](https://github.com/paulmillr) |
|
| 190 |
+
|
| 191 |
+
### Author
|
| 192 |
+
|
| 193 |
+
**Jon Schlinkert**
|
| 194 |
+
|
| 195 |
+
* [GitHub Profile](https://github.com/jonschlinkert)
|
| 196 |
+
* [Twitter Profile](https://twitter.com/jonschlinkert)
|
| 197 |
+
* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
|
| 198 |
+
|
| 199 |
+
### License
|
| 200 |
+
|
| 201 |
+
Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).
|
| 202 |
+
Released under the [MIT License](LICENSE).
|
| 203 |
+
|
| 204 |
+
***
|
| 205 |
+
|
| 206 |
+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 27, 2019._
|
node_modules/is-glob/index.js
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!
|
| 2 |
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
| 3 |
+
*
|
| 4 |
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
| 5 |
+
* Released under the MIT License.
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
var isExtglob = require('is-extglob');
|
| 9 |
+
var chars = { '{': '}', '(': ')', '[': ']'};
|
| 10 |
+
var strictCheck = function(str) {
|
| 11 |
+
if (str[0] === '!') {
|
| 12 |
+
return true;
|
| 13 |
+
}
|
| 14 |
+
var index = 0;
|
| 15 |
+
var pipeIndex = -2;
|
| 16 |
+
var closeSquareIndex = -2;
|
| 17 |
+
var closeCurlyIndex = -2;
|
| 18 |
+
var closeParenIndex = -2;
|
| 19 |
+
var backSlashIndex = -2;
|
| 20 |
+
while (index < str.length) {
|
| 21 |
+
if (str[index] === '*') {
|
| 22 |
+
return true;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
if (str[index + 1] === '?' && /[\].+)]/.test(str[index])) {
|
| 26 |
+
return true;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
if (closeSquareIndex !== -1 && str[index] === '[' && str[index + 1] !== ']') {
|
| 30 |
+
if (closeSquareIndex < index) {
|
| 31 |
+
closeSquareIndex = str.indexOf(']', index);
|
| 32 |
+
}
|
| 33 |
+
if (closeSquareIndex > index) {
|
| 34 |
+
if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
|
| 35 |
+
return true;
|
| 36 |
+
}
|
| 37 |
+
backSlashIndex = str.indexOf('\\', index);
|
| 38 |
+
if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
|
| 39 |
+
return true;
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
if (closeCurlyIndex !== -1 && str[index] === '{' && str[index + 1] !== '}') {
|
| 45 |
+
closeCurlyIndex = str.indexOf('}', index);
|
| 46 |
+
if (closeCurlyIndex > index) {
|
| 47 |
+
backSlashIndex = str.indexOf('\\', index);
|
| 48 |
+
if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) {
|
| 49 |
+
return true;
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
if (closeParenIndex !== -1 && str[index] === '(' && str[index + 1] === '?' && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ')') {
|
| 55 |
+
closeParenIndex = str.indexOf(')', index);
|
| 56 |
+
if (closeParenIndex > index) {
|
| 57 |
+
backSlashIndex = str.indexOf('\\', index);
|
| 58 |
+
if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
|
| 59 |
+
return true;
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
if (pipeIndex !== -1 && str[index] === '(' && str[index + 1] !== '|') {
|
| 65 |
+
if (pipeIndex < index) {
|
| 66 |
+
pipeIndex = str.indexOf('|', index);
|
| 67 |
+
}
|
| 68 |
+
if (pipeIndex !== -1 && str[pipeIndex + 1] !== ')') {
|
| 69 |
+
closeParenIndex = str.indexOf(')', pipeIndex);
|
| 70 |
+
if (closeParenIndex > pipeIndex) {
|
| 71 |
+
backSlashIndex = str.indexOf('\\', pipeIndex);
|
| 72 |
+
if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
|
| 73 |
+
return true;
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
if (str[index] === '\\') {
|
| 80 |
+
var open = str[index + 1];
|
| 81 |
+
index += 2;
|
| 82 |
+
var close = chars[open];
|
| 83 |
+
|
| 84 |
+
if (close) {
|
| 85 |
+
var n = str.indexOf(close, index);
|
| 86 |
+
if (n !== -1) {
|
| 87 |
+
index = n + 1;
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
if (str[index] === '!') {
|
| 92 |
+
return true;
|
| 93 |
+
}
|
| 94 |
+
} else {
|
| 95 |
+
index++;
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
return false;
|
| 99 |
+
};
|
| 100 |
+
|
| 101 |
+
var relaxedCheck = function(str) {
|
| 102 |
+
if (str[0] === '!') {
|
| 103 |
+
return true;
|
| 104 |
+
}
|
| 105 |
+
var index = 0;
|
| 106 |
+
while (index < str.length) {
|
| 107 |
+
if (/[*?{}()[\]]/.test(str[index])) {
|
| 108 |
+
return true;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
if (str[index] === '\\') {
|
| 112 |
+
var open = str[index + 1];
|
| 113 |
+
index += 2;
|
| 114 |
+
var close = chars[open];
|
| 115 |
+
|
| 116 |
+
if (close) {
|
| 117 |
+
var n = str.indexOf(close, index);
|
| 118 |
+
if (n !== -1) {
|
| 119 |
+
index = n + 1;
|
| 120 |
+
}
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
if (str[index] === '!') {
|
| 124 |
+
return true;
|
| 125 |
+
}
|
| 126 |
+
} else {
|
| 127 |
+
index++;
|
| 128 |
+
}
|
| 129 |
+
}
|
| 130 |
+
return false;
|
| 131 |
+
};
|
| 132 |
+
|
| 133 |
+
module.exports = function isGlob(str, options) {
|
| 134 |
+
if (typeof str !== 'string' || str === '') {
|
| 135 |
+
return false;
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
if (isExtglob(str)) {
|
| 139 |
+
return true;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
var check = strictCheck;
|
| 143 |
+
|
| 144 |
+
// optionally relax check
|
| 145 |
+
if (options && options.strict === false) {
|
| 146 |
+
check = relaxedCheck;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
return check(str);
|
| 150 |
+
};
|
node_modules/is-glob/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-glob",
|
| 3 |
+
"description": "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.",
|
| 4 |
+
"version": "4.0.3",
|
| 5 |
+
"homepage": "https://github.com/micromatch/is-glob",
|
| 6 |
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
| 7 |
+
"contributors": [
|
| 8 |
+
"Brian Woodward (https://twitter.com/doowb)",
|
| 9 |
+
"Daniel Perez (https://tuvistavie.com)",
|
| 10 |
+
"Jon Schlinkert (http://twitter.com/jonschlinkert)"
|
| 11 |
+
],
|
| 12 |
+
"repository": "micromatch/is-glob",
|
| 13 |
+
"bugs": {
|
| 14 |
+
"url": "https://github.com/micromatch/is-glob/issues"
|
| 15 |
+
},
|
| 16 |
+
"license": "MIT",
|
| 17 |
+
"files": [
|
| 18 |
+
"index.js"
|
| 19 |
+
],
|
| 20 |
+
"main": "index.js",
|
| 21 |
+
"engines": {
|
| 22 |
+
"node": ">=0.10.0"
|
| 23 |
+
},
|
| 24 |
+
"scripts": {
|
| 25 |
+
"test": "mocha && node benchmark.js"
|
| 26 |
+
},
|
| 27 |
+
"dependencies": {
|
| 28 |
+
"is-extglob": "^2.1.1"
|
| 29 |
+
},
|
| 30 |
+
"devDependencies": {
|
| 31 |
+
"gulp-format-md": "^0.1.10",
|
| 32 |
+
"mocha": "^3.0.2"
|
| 33 |
+
},
|
| 34 |
+
"keywords": [
|
| 35 |
+
"bash",
|
| 36 |
+
"braces",
|
| 37 |
+
"check",
|
| 38 |
+
"exec",
|
| 39 |
+
"expression",
|
| 40 |
+
"extglob",
|
| 41 |
+
"glob",
|
| 42 |
+
"globbing",
|
| 43 |
+
"globstar",
|
| 44 |
+
"is",
|
| 45 |
+
"match",
|
| 46 |
+
"matches",
|
| 47 |
+
"pattern",
|
| 48 |
+
"regex",
|
| 49 |
+
"regular",
|
| 50 |
+
"string",
|
| 51 |
+
"test"
|
| 52 |
+
],
|
| 53 |
+
"verb": {
|
| 54 |
+
"layout": "default",
|
| 55 |
+
"plugins": [
|
| 56 |
+
"gulp-format-md"
|
| 57 |
+
],
|
| 58 |
+
"related": {
|
| 59 |
+
"list": [
|
| 60 |
+
"assemble",
|
| 61 |
+
"base",
|
| 62 |
+
"update",
|
| 63 |
+
"verb"
|
| 64 |
+
]
|
| 65 |
+
},
|
| 66 |
+
"reflinks": [
|
| 67 |
+
"assemble",
|
| 68 |
+
"bach",
|
| 69 |
+
"base",
|
| 70 |
+
"composer",
|
| 71 |
+
"gulp",
|
| 72 |
+
"has-glob",
|
| 73 |
+
"is-valid-glob",
|
| 74 |
+
"micromatch",
|
| 75 |
+
"npm",
|
| 76 |
+
"scaffold",
|
| 77 |
+
"verb",
|
| 78 |
+
"vinyl"
|
| 79 |
+
]
|
| 80 |
+
}
|
| 81 |
+
}
|
node_modules/is-hexadecimal/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Check if the given character code, or the character code at the first
|
| 3 |
+
* character, is hexadecimal.
|
| 4 |
+
*
|
| 5 |
+
* @param {string|number} character
|
| 6 |
+
* @returns {boolean} Whether `character` is hexadecimal
|
| 7 |
+
*/
|
| 8 |
+
export function isHexadecimal(character: string | number): boolean
|
node_modules/is-hexadecimal/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Check if the given character code, or the character code at the first
|
| 3 |
+
* character, is hexadecimal.
|
| 4 |
+
*
|
| 5 |
+
* @param {string|number} character
|
| 6 |
+
* @returns {boolean} Whether `character` is hexadecimal
|
| 7 |
+
*/
|
| 8 |
+
export function isHexadecimal(character) {
|
| 9 |
+
const code =
|
| 10 |
+
typeof character === 'string' ? character.charCodeAt(0) : character
|
| 11 |
+
|
| 12 |
+
return (
|
| 13 |
+
(code >= 97 /* a */ && code <= 102) /* z */ ||
|
| 14 |
+
(code >= 65 /* A */ && code <= 70) /* Z */ ||
|
| 15 |
+
(code >= 48 /* A */ && code <= 57) /* Z */
|
| 16 |
+
)
|
| 17 |
+
}
|
node_modules/is-hexadecimal/license
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(The MIT License)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
'Software'), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 19 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 20 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 21 |
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 22 |
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
node_modules/is-hexadecimal/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-hexadecimal",
|
| 3 |
+
"version": "2.0.1",
|
| 4 |
+
"description": "Check if a character is hexadecimal",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"keywords": [
|
| 7 |
+
"string",
|
| 8 |
+
"character",
|
| 9 |
+
"char",
|
| 10 |
+
"code",
|
| 11 |
+
"hexadecimal"
|
| 12 |
+
],
|
| 13 |
+
"repository": "wooorm/is-hexadecimal",
|
| 14 |
+
"bugs": "https://github.com/wooorm/is-hexadecimal/issues",
|
| 15 |
+
"funding": {
|
| 16 |
+
"type": "github",
|
| 17 |
+
"url": "https://github.com/sponsors/wooorm"
|
| 18 |
+
},
|
| 19 |
+
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
| 20 |
+
"contributors": [
|
| 21 |
+
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
|
| 22 |
+
],
|
| 23 |
+
"sideEffects": false,
|
| 24 |
+
"type": "module",
|
| 25 |
+
"main": "index.js",
|
| 26 |
+
"types": "index.d.ts",
|
| 27 |
+
"files": [
|
| 28 |
+
"index.d.ts",
|
| 29 |
+
"index.js"
|
| 30 |
+
],
|
| 31 |
+
"devDependencies": {
|
| 32 |
+
"@types/tape": "^4.0.0",
|
| 33 |
+
"c8": "^7.0.0",
|
| 34 |
+
"prettier": "^2.0.0",
|
| 35 |
+
"remark-cli": "^10.0.0",
|
| 36 |
+
"remark-preset-wooorm": "^9.0.0",
|
| 37 |
+
"rimraf": "^3.0.0",
|
| 38 |
+
"tape": "^5.0.0",
|
| 39 |
+
"type-coverage": "^2.0.0",
|
| 40 |
+
"typescript": "^4.0.0",
|
| 41 |
+
"xo": "^0.46.0"
|
| 42 |
+
},
|
| 43 |
+
"scripts": {
|
| 44 |
+
"prepublishOnly": "npm run build && npm run format",
|
| 45 |
+
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
|
| 46 |
+
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
| 47 |
+
"test-api": "node --conditions development test.js",
|
| 48 |
+
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
|
| 49 |
+
"test": "npm run build && npm run format && npm run test-coverage"
|
| 50 |
+
},
|
| 51 |
+
"prettier": {
|
| 52 |
+
"tabWidth": 2,
|
| 53 |
+
"useTabs": false,
|
| 54 |
+
"singleQuote": true,
|
| 55 |
+
"bracketSpacing": false,
|
| 56 |
+
"semi": false,
|
| 57 |
+
"trailingComma": "none"
|
| 58 |
+
},
|
| 59 |
+
"xo": {
|
| 60 |
+
"prettier": true
|
| 61 |
+
},
|
| 62 |
+
"remarkConfig": {
|
| 63 |
+
"plugins": [
|
| 64 |
+
"preset-wooorm"
|
| 65 |
+
]
|
| 66 |
+
},
|
| 67 |
+
"typeCoverage": {
|
| 68 |
+
"atLeast": 100,
|
| 69 |
+
"detail": true,
|
| 70 |
+
"strict": true,
|
| 71 |
+
"ignoreCatch": true
|
| 72 |
+
}
|
| 73 |
+
}
|
node_modules/is-hexadecimal/readme.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-hexadecimal
|
| 2 |
+
|
| 3 |
+
[![Build][build-badge]][build]
|
| 4 |
+
[![Coverage][coverage-badge]][coverage]
|
| 5 |
+
[![Downloads][downloads-badge]][downloads]
|
| 6 |
+
[![Size][size-badge]][size]
|
| 7 |
+
|
| 8 |
+
Check if a character is hexadecimal.
|
| 9 |
+
|
| 10 |
+
## Contents
|
| 11 |
+
|
| 12 |
+
* [What is this?](#what-is-this)
|
| 13 |
+
* [When should I use this?](#when-should-i-use-this)
|
| 14 |
+
* [Install](#install)
|
| 15 |
+
* [Use](#use)
|
| 16 |
+
* [API](#api)
|
| 17 |
+
* [`isHexadecimal(character|code)`](#ishexadecimalcharactercode)
|
| 18 |
+
* [Types](#types)
|
| 19 |
+
* [Compatibility](#compatibility)
|
| 20 |
+
* [Security](#security)
|
| 21 |
+
* [Related](#related)
|
| 22 |
+
* [Contribute](#contribute)
|
| 23 |
+
* [License](#license)
|
| 24 |
+
|
| 25 |
+
## What is this?
|
| 26 |
+
|
| 27 |
+
This is a function that checks if a given character is a white space character:
|
| 28 |
+
whether it matches `[a-f0-9]`, case insensitive.
|
| 29 |
+
|
| 30 |
+
## When should I use this?
|
| 31 |
+
|
| 32 |
+
Not often, as it’s relatively simple to do yourself.
|
| 33 |
+
This package exists because it’s needed in several related packages, at which
|
| 34 |
+
point it becomes useful to defer to one shared function.
|
| 35 |
+
|
| 36 |
+
## Install
|
| 37 |
+
|
| 38 |
+
This package is [ESM only][esm].
|
| 39 |
+
In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:
|
| 40 |
+
|
| 41 |
+
```sh
|
| 42 |
+
npm install is-hexadecimal
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
In Deno with [Skypack][]:
|
| 46 |
+
|
| 47 |
+
```js
|
| 48 |
+
import {isHexadecimal} from 'https://cdn.skypack.dev/is-hexadecimal@2?dts'
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
In browsers with [Skypack][]:
|
| 52 |
+
|
| 53 |
+
```html
|
| 54 |
+
<script type="module">
|
| 55 |
+
import {isHexadecimal} from 'https://cdn.skypack.dev/is-hexadecimal@2?min'
|
| 56 |
+
</script>
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
## Use
|
| 60 |
+
|
| 61 |
+
```js
|
| 62 |
+
import {isHexadecimal} from 'is-hexadecimal'
|
| 63 |
+
|
| 64 |
+
isHexadecimal('a') // => true
|
| 65 |
+
isHexadecimal('0') // => true
|
| 66 |
+
isHexadecimal('G') // => false
|
| 67 |
+
isHexadecimal('💩') // => false
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## API
|
| 71 |
+
|
| 72 |
+
This package exports the following identifier: `isHexadecimal`.
|
| 73 |
+
There is no default export.
|
| 74 |
+
|
| 75 |
+
### `isHexadecimal(character|code)`
|
| 76 |
+
|
| 77 |
+
Check whether the given character code (`number`), or the character code at the
|
| 78 |
+
first position (`string`), is isHexadecimal.
|
| 79 |
+
|
| 80 |
+
## Types
|
| 81 |
+
|
| 82 |
+
This package is fully typed with [TypeScript][].
|
| 83 |
+
|
| 84 |
+
## Compatibility
|
| 85 |
+
|
| 86 |
+
This package is at least compatible with all maintained versions of Node.js.
|
| 87 |
+
As of now, that is Node.js 12.20+, 14.14+, and 16.0+.
|
| 88 |
+
It also works in Deno and modern browsers.
|
| 89 |
+
|
| 90 |
+
## Security
|
| 91 |
+
|
| 92 |
+
This package is safe.
|
| 93 |
+
|
| 94 |
+
## Related
|
| 95 |
+
|
| 96 |
+
* [`wooorm/is-alphabetical`](https://github.com/wooorm/is-alphabetical)
|
| 97 |
+
* [`wooorm/is-alphanumerical`](https://github.com/wooorm/is-alphabetical)
|
| 98 |
+
* [`wooorm/is-decimal`](https://github.com/wooorm/is-decimal)
|
| 99 |
+
* [`wooorm/is-whitespace-character`](https://github.com/wooorm/is-whitespace-character)
|
| 100 |
+
* [`wooorm/is-word-character`](https://github.com/wooorm/is-word-character)
|
| 101 |
+
|
| 102 |
+
## Contribute
|
| 103 |
+
|
| 104 |
+
Yes please!
|
| 105 |
+
See [How to Contribute to Open Source][contribute].
|
| 106 |
+
|
| 107 |
+
## License
|
| 108 |
+
|
| 109 |
+
[MIT][license] © [Titus Wormer][author]
|
| 110 |
+
|
| 111 |
+
<!-- Definitions -->
|
| 112 |
+
|
| 113 |
+
[build-badge]: https://github.com/wooorm/is-hexadecimal/workflows/main/badge.svg
|
| 114 |
+
|
| 115 |
+
[build]: https://github.com/wooorm/is-hexadecimal/actions
|
| 116 |
+
|
| 117 |
+
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-hexadecimal.svg
|
| 118 |
+
|
| 119 |
+
[coverage]: https://codecov.io/github/wooorm/is-hexadecimal
|
| 120 |
+
|
| 121 |
+
[downloads-badge]: https://img.shields.io/npm/dm/is-hexadecimal.svg
|
| 122 |
+
|
| 123 |
+
[downloads]: https://www.npmjs.com/package/is-hexadecimal
|
| 124 |
+
|
| 125 |
+
[size-badge]: https://img.shields.io/bundlephobia/minzip/is-hexadecimal.svg
|
| 126 |
+
|
| 127 |
+
[size]: https://bundlephobia.com/result?p=is-hexadecimal
|
| 128 |
+
|
| 129 |
+
[npm]: https://docs.npmjs.com/cli/install
|
| 130 |
+
|
| 131 |
+
[skypack]: https://www.skypack.dev
|
| 132 |
+
|
| 133 |
+
[license]: license
|
| 134 |
+
|
| 135 |
+
[author]: https://wooorm.com
|
| 136 |
+
|
| 137 |
+
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
| 138 |
+
|
| 139 |
+
[typescript]: https://www.typescriptlang.org
|
| 140 |
+
|
| 141 |
+
[contribute]: https://opensource.guide/how-to-contribute/
|
node_modules/is-map/.editorconfig
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
root = true
|
| 2 |
+
|
| 3 |
+
[*]
|
| 4 |
+
indent_style = tab
|
| 5 |
+
end_of_line = lf
|
| 6 |
+
charset = utf-8
|
| 7 |
+
trim_trailing_whitespace = true
|
| 8 |
+
insert_final_newline = true
|
| 9 |
+
|
| 10 |
+
[{package.json,*.yml}]
|
| 11 |
+
indent_style = space
|
| 12 |
+
indent_size = 2
|
| 13 |
+
|
| 14 |
+
[*.md]
|
| 15 |
+
trim_trailing_whitespace = false
|
node_modules/is-map/.eslintrc
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"root": true,
|
| 3 |
+
|
| 4 |
+
"extends": "@ljharb",
|
| 5 |
+
}
|
node_modules/is-map/.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
* text=auto
|
node_modules/is-map/.github/FUNDING.yml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# These are supported funding model platforms
|
| 2 |
+
|
| 3 |
+
github: [ljharb]
|
| 4 |
+
patreon: # Replace with a single Patreon username
|
| 5 |
+
open_collective: # Replace with a single Open Collective username
|
| 6 |
+
ko_fi: # Replace with a single Ko-fi username
|
| 7 |
+
tidelift: npm/is-map
|
| 8 |
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
| 9 |
+
liberapay: # Replace with a single Liberapay username
|
| 10 |
+
issuehunt: # Replace with a single IssueHunt username
|
| 11 |
+
otechie: # Replace with a single Otechie username
|
| 12 |
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
node_modules/is-map/.nycrc
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"all": true,
|
| 3 |
+
"check-coverage": false,
|
| 4 |
+
"reporter": ["text-summary", "text", "html", "json"],
|
| 5 |
+
"exclude": [
|
| 6 |
+
"coverage",
|
| 7 |
+
"test"
|
| 8 |
+
]
|
| 9 |
+
}
|
node_modules/is-map/CHANGELOG.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
All notable changes to this project will be documented in this file.
|
| 4 |
+
|
| 5 |
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
| 6 |
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
| 7 |
+
|
| 8 |
+
## [v2.0.3](https://github.com/inspect-js/is-map/compare/v2.0.2...v2.0.3) - 2024-03-08
|
| 9 |
+
|
| 10 |
+
### Commits
|
| 11 |
+
|
| 12 |
+
- [actions] reuse common workflows [`ce10d0f`](https://github.com/inspect-js/is-map/commit/ce10d0f82fcec150b5d283202c1988887d618895)
|
| 13 |
+
- [meta] use `npmignore` to autogenerate an npmignore file [`e07e23a`](https://github.com/inspect-js/is-map/commit/e07e23affca99f469937dade44abc02e05a26739)
|
| 14 |
+
- add types [`cd13cfb`](https://github.com/inspect-js/is-map/commit/cd13cfb54647def94a0df9a276a92298891f7bdd)
|
| 15 |
+
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`1e055f9`](https://github.com/inspect-js/is-map/commit/1e055f9ea79c6c7cb6f8182e644c08ae167d358b)
|
| 16 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `safe-publish-latest`, `tape` [`12d125e`](https://github.com/inspect-js/is-map/commit/12d125ef5bd4d6cf0468f406bf3dd3b873aa3af9)
|
| 17 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `es5-shim`, `object-inspect`, `tape` [`adfb18e`](https://github.com/inspect-js/is-map/commit/adfb18ee26fa3ecadfdb16657a5423dda4248ca3)
|
| 18 |
+
- [actions] remove redundant finisher [`c5511b7`](https://github.com/inspect-js/is-map/commit/c5511b79c739a08f7da40b9cae2391d10b4b613c)
|
| 19 |
+
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `es6-shim`, `npmignore`, `object-inspect`, `tape` [`b2c7d67`](https://github.com/inspect-js/is-map/commit/b2c7d674d2e78f5fb67a7e69b83ae177255fb8da)
|
| 20 |
+
- [actions] update rebase action to use reusable workflow [`bbad644`](https://github.com/inspect-js/is-map/commit/bbad64428c5b777070ed86130669211ec1645714)
|
| 21 |
+
- [actions] update codecov uploader [`8f57f98`](https://github.com/inspect-js/is-map/commit/8f57f98d3e3897fa82e87a155f05b7fdb174c222)
|
| 22 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `auto-changelog`, `es5-shim`, `object-inspect`, `tape` [`d330ff4`](https://github.com/inspect-js/is-map/commit/d330ff4cbdbbce8402da928cab040e2c85126506)
|
| 23 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `object-inspect`, `tape` [`454e31c`](https://github.com/inspect-js/is-map/commit/454e31ccecaa2ac78c7397afe2b0101576ad5b11)
|
| 24 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `es5-shim`, `tape` [`b43283d`](https://github.com/inspect-js/is-map/commit/b43283dcd906d2024d2b78448bf8b679922d791b)
|
| 25 |
+
- [readme] add actions and codecov badges [`0fc119e`](https://github.com/inspect-js/is-map/commit/0fc119ed01da39b3444478f7912447f6f298339f)
|
| 26 |
+
- [Dev Deps] update `eslint`, `object-inspect` [`e2311f8`](https://github.com/inspect-js/is-map/commit/e2311f8984f2e2efda5011b4636275bfa7b17e8d)
|
| 27 |
+
- [meta] add missing `engines.node` [`9bddaf2`](https://github.com/inspect-js/is-map/commit/9bddaf20a47fc5f359d171c8a7d43ac667d4680d)
|
| 28 |
+
- [meta] use `prepublishOnly` script for npm 7+ [`d3b7661`](https://github.com/inspect-js/is-map/commit/d3b76613fcd34381a1ccdf17f4ab6e3e892dfc5f)
|
| 29 |
+
- [Dev Deps] update `safe-publish-latest` [`00d7b69`](https://github.com/inspect-js/is-map/commit/00d7b69c315b9404b49c8d0ca85774f739f25a61)
|
| 30 |
+
- [meta] add `sideEffects` flag [`bab4457`](https://github.com/inspect-js/is-map/commit/bab445707d11d590f2650f43b58bf9fa8dd664d1)
|
| 31 |
+
|
| 32 |
+
## [v2.0.2](https://github.com/inspect-js/is-map/compare/v2.0.1...v2.0.2) - 2020-12-13
|
| 33 |
+
|
| 34 |
+
### Commits
|
| 35 |
+
|
| 36 |
+
- [Tests] migrate tests to Github Actions [`349a036`](https://github.com/inspect-js/is-map/commit/349a0362a744d024937a4356134389cbebf0c1a7)
|
| 37 |
+
- [meta] do not publish github action workflow files [`f473ae7`](https://github.com/inspect-js/is-map/commit/f473ae777d15c5d247002f5aaa52ed4ada3a5dd4)
|
| 38 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `es6-shim`, `object-inspect`, `tape` [`12dbda3`](https://github.com/inspect-js/is-map/commit/12dbda37a97c0dab0a3874a6cff086cd44f1c94c)
|
| 39 |
+
- [Tests] run `nyc` on all tests; use `tape` runner; add `core-js` tests [`b280737`](https://github.com/inspect-js/is-map/commit/b280737c513588fef4b88c16328627744c8ab946)
|
| 40 |
+
- [actions] add "Allow Edits" workflow [`d8dcf17`](https://github.com/inspect-js/is-map/commit/d8dcf17dd6b1cc09b8de369aa87188f469297b7c)
|
| 41 |
+
- [readme] remove travis badge [`eab86f9`](https://github.com/inspect-js/is-map/commit/eab86f94cca4941861784e5eb8b7ca05e847e0b5)
|
| 42 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`9c87af5`](https://github.com/inspect-js/is-map/commit/9c87af5008a4ff79bffc3a6de55bf2d65979db6d)
|
| 43 |
+
- [actions] switch Automatic Rease workflow to `pull_request_tarbget` event [`71647b8`](https://github.com/inspect-js/is-map/commit/71647b805066ecbc096d5742fd69046d22f2b5c4)
|
| 44 |
+
- [Dev Deps] update `es5-shim`, `tape` [`3a91230`](https://github.com/inspect-js/is-map/commit/3a912305d7d836e8d6e4f80e9047e3beff8ea887)
|
| 45 |
+
- [Dev Deps] update `auto-changelog`; add `aud` [`d3cd3da`](https://github.com/inspect-js/is-map/commit/d3cd3da9008756a02c2b26b45292c477bf9594a9)
|
| 46 |
+
- [Tests] only audit prod deps [`83ef327`](https://github.com/inspect-js/is-map/commit/83ef327c62d54a48193bf95ed8cb6c4dff0a2035)
|
| 47 |
+
- [meta] normalize line endings [`81a9eec`](https://github.com/inspect-js/is-map/commit/81a9eec713f8e309fa1f0ffb7e4b154c359b367b)
|
| 48 |
+
|
| 49 |
+
## [v2.0.1](https://github.com/inspect-js/is-map/compare/v2.0.0...v2.0.1) - 2019-12-17
|
| 50 |
+
|
| 51 |
+
### Fixed
|
| 52 |
+
|
| 53 |
+
- [Refactor] avoid top-level return, because babel and webpack are broken [`#5`](https://github.com/inspect-js/is-map/issues/5) [`#4`](https://github.com/inspect-js/is-map/issues/4) [`#3`](https://github.com/inspect-js/is-map/issues/3) [`#78`](https://github.com/inspect-js/node-deep-equal/issues/78) [`#7`](https://github.com/es-shims/Promise.allSettled/issues/7) [`#12`](https://github.com/airbnb/js-shims/issues/12)
|
| 54 |
+
|
| 55 |
+
### Commits
|
| 56 |
+
|
| 57 |
+
- [actions] add automatic rebasing / merge commit blocking [`743f29f`](https://github.com/inspect-js/is-map/commit/743f29fc527b4a8a56a7045ad3d56ecfc798b1a3)
|
| 58 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`8ced854`](https://github.com/inspect-js/is-map/commit/8ced854c842c86cb126b86618cb4f90ef6a04f2b)
|
| 59 |
+
|
| 60 |
+
## [v2.0.0](https://github.com/inspect-js/is-map/compare/v1.0.1...v2.0.0) - 2019-11-12
|
| 61 |
+
|
| 62 |
+
### Commits
|
| 63 |
+
|
| 64 |
+
- Initial commit [`38592bc`](https://github.com/inspect-js/is-map/commit/38592bcb928d97b244cca6cee91142a44bcf5ab1)
|
| 65 |
+
- Tests [`ca54632`](https://github.com/inspect-js/is-map/commit/ca546326943385052e8b5a04377f1f8b110b7306)
|
| 66 |
+
- readme [`9ad8bb6`](https://github.com/inspect-js/is-map/commit/9ad8bb6bc2fb295ada21e1cd901c89aa55acad37)
|
| 67 |
+
- implementation [`03e1dbc`](https://github.com/inspect-js/is-map/commit/03e1dbc64eb09e6caba919c9ae5662992f0a9b52)
|
| 68 |
+
- npm init [`d05ce8b`](https://github.com/inspect-js/is-map/commit/d05ce8b0ad797c97ed23a7730a9e211e5fe0fe92)
|
| 69 |
+
- [meta] add `funding` field; create `FUNDING.yml` [`2d56b4e`](https://github.com/inspect-js/is-map/commit/2d56b4e2a44e6eb4557d9d192a863c92b68c6597)
|
| 70 |
+
- [meta] add `safe-publish-latest`, `auto-changelog` [`2ebecb5`](https://github.com/inspect-js/is-map/commit/2ebecb5a3fe5fa682d5d04d1cd87f4d88ba22ec9)
|
| 71 |
+
- [Tests] add `npm run lint` [`ddc3e32`](https://github.com/inspect-js/is-map/commit/ddc3e320c3d181b9111dd3a86df486604710e08c)
|
| 72 |
+
- [Tests] use shared travis-ci configs [`69f6d9c`](https://github.com/inspect-js/is-map/commit/69f6d9c52a06dda27419eb41572b8db6009f6d49)
|
| 73 |
+
- Only apps should have lockfiles [`408cccd`](https://github.com/inspect-js/is-map/commit/408cccdc824c017547573d816b2201e9cfb9a292)
|
| 74 |
+
- [Tests] add `npx aud` in `posttest` [`5eadb02`](https://github.com/inspect-js/is-map/commit/5eadb02075754732df3532bc2e98ca6307c46537)
|
| 75 |
+
|
| 76 |
+
## [v1.0.1](https://github.com/inspect-js/is-map/compare/v1.0.0...v1.0.1) - 2015-07-02
|
| 77 |
+
|
| 78 |
+
### Commits
|
| 79 |
+
|
| 80 |
+
- small tweaks [`2bd7622`](https://github.com/inspect-js/is-map/commit/2bd762263930d4f72eedd3a54678e1692062d53f)
|
| 81 |
+
- Add `related` section to readme [`3231e74`](https://github.com/inspect-js/is-map/commit/3231e748fbf1d4d7d1662b8a559e73cc1e69468b)
|
| 82 |
+
- Update license info in `readme.md` [`3a03b38`](https://github.com/inspect-js/is-map/commit/3a03b387b798d5eda09965dcf63e0c9fb9c7ddac)
|
| 83 |
+
- editorconfig: indent yml using 2 spaces [`d724177`](https://github.com/inspect-js/is-map/commit/d724177b7eb103174cd9ca1dce4a914e3dfdb1cd)
|
| 84 |
+
|
| 85 |
+
## v1.0.0 - 2015-02-18
|
| 86 |
+
|
| 87 |
+
### Commits
|
| 88 |
+
|
| 89 |
+
- init [`73b9f38`](https://github.com/inspect-js/is-map/commit/73b9f38e3d3c0435e639a7e054714d71b6ddae9b)
|
node_modules/is-map/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2019 Inspect JS
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
node_modules/is-map/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-map <sup>[![Version Badge][2]][1]</sup>
|
| 2 |
+
|
| 3 |
+
[![github actions][actions-image]][actions-url]
|
| 4 |
+
[![coverage][codecov-image]][codecov-url]
|
| 5 |
+
[![dependency status][5]][6]
|
| 6 |
+
[![dev dependency status][7]][8]
|
| 7 |
+
[![License][license-image]][license-url]
|
| 8 |
+
[![Downloads][downloads-image]][downloads-url]
|
| 9 |
+
|
| 10 |
+
[![npm badge][11]][1]
|
| 11 |
+
|
| 12 |
+
Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
|
| 13 |
+
|
| 14 |
+
## Example
|
| 15 |
+
|
| 16 |
+
```js
|
| 17 |
+
var isMap = require('is-map');
|
| 18 |
+
assert(!isMap(function () {}));
|
| 19 |
+
assert(!isMap(null));
|
| 20 |
+
assert(!isMap(function* () { yield 42; return Infinity; });
|
| 21 |
+
assert(!isMap(Symbol('foo')));
|
| 22 |
+
assert(!isMap(1n));
|
| 23 |
+
assert(!isMap(Object(1n)));
|
| 24 |
+
|
| 25 |
+
assert(!isMap(new Set()));
|
| 26 |
+
assert(!isMap(new WeakSet()));
|
| 27 |
+
assert(!isMap(new WeakMap()));
|
| 28 |
+
|
| 29 |
+
assert(isMap(new Map()));
|
| 30 |
+
|
| 31 |
+
class MyMap extends Map {}
|
| 32 |
+
assert(isMap(new MyMap()));
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Tests
|
| 36 |
+
Simply clone the repo, `npm install`, and run `npm test`
|
| 37 |
+
|
| 38 |
+
[1]: https://npmjs.org/package/is-map
|
| 39 |
+
[2]: https://versionbadg.es/inspect-js/is-map.svg
|
| 40 |
+
[5]: https://david-dm.org/inspect-js/is-map.svg
|
| 41 |
+
[6]: https://david-dm.org/inspect-js/is-map
|
| 42 |
+
[7]: https://david-dm.org/inspect-js/is-map/dev-status.svg
|
| 43 |
+
[8]: https://david-dm.org/inspect-js/is-map#info=devDependencies
|
| 44 |
+
[11]: https://nodei.co/npm/is-map.png?downloads=true&stars=true
|
| 45 |
+
[license-image]: https://img.shields.io/npm/l/is-map.svg
|
| 46 |
+
[license-url]: LICENSE
|
| 47 |
+
[downloads-image]: https://img.shields.io/npm/dm/is-map.svg
|
| 48 |
+
[downloads-url]: https://npm-stat.com/charts.html?package=is-map
|
| 49 |
+
[codecov-image]: https://codecov.io/gh/inspect-js/is-map/branch/main/graphs/badge.svg
|
| 50 |
+
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-map/
|
| 51 |
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-map
|
| 52 |
+
[actions-url]: https://github.com/inspect-js/is-map/actions
|
node_modules/is-map/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
declare function isMap<K = unknown, V = unknown>(x: unknown): x is Map<K, V>;
|
| 2 |
+
|
| 3 |
+
export = isMap;
|
node_modules/is-map/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
/** @const */
|
| 4 |
+
var $Map = typeof Map === 'function' && Map.prototype ? Map : null;
|
| 5 |
+
var $Set = typeof Set === 'function' && Set.prototype ? Set : null;
|
| 6 |
+
|
| 7 |
+
var exported;
|
| 8 |
+
|
| 9 |
+
if (!$Map) {
|
| 10 |
+
/** @type {import('.')} */
|
| 11 |
+
// eslint-disable-next-line no-unused-vars
|
| 12 |
+
exported = function isMap(x) {
|
| 13 |
+
// `Map` is not present in this environment.
|
| 14 |
+
return false;
|
| 15 |
+
};
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
var $mapHas = $Map ? Map.prototype.has : null;
|
| 19 |
+
var $setHas = $Set ? Set.prototype.has : null;
|
| 20 |
+
if (!exported && !$mapHas) {
|
| 21 |
+
/** @type {import('.')} */
|
| 22 |
+
// eslint-disable-next-line no-unused-vars
|
| 23 |
+
exported = function isMap(x) {
|
| 24 |
+
// `Map` does not have a `has` method
|
| 25 |
+
return false;
|
| 26 |
+
};
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
/** @type {import('.')} */
|
| 30 |
+
module.exports = exported || function isMap(x) {
|
| 31 |
+
if (!x || typeof x !== 'object') {
|
| 32 |
+
return false;
|
| 33 |
+
}
|
| 34 |
+
try {
|
| 35 |
+
$mapHas.call(x);
|
| 36 |
+
if ($setHas) {
|
| 37 |
+
try {
|
| 38 |
+
$setHas.call(x);
|
| 39 |
+
} catch (e) {
|
| 40 |
+
return true;
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
// @ts-expect-error TS can't figure out that $Map is always truthy here
|
| 44 |
+
return x instanceof $Map; // core-js workaround, pre-v2.5.0
|
| 45 |
+
} catch (e) {}
|
| 46 |
+
return false;
|
| 47 |
+
};
|
node_modules/is-map/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-map",
|
| 3 |
+
"version": "2.0.3",
|
| 4 |
+
"description": "Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.",
|
| 5 |
+
"main": "index.js",
|
| 6 |
+
"sideEffects": false,
|
| 7 |
+
"scripts": {
|
| 8 |
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
| 9 |
+
"version": "auto-changelog && git add CHANGELOG.md",
|
| 10 |
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
|
| 11 |
+
"prepublishOnly": "safe-publish-latest",
|
| 12 |
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
| 13 |
+
"pretest": "npm run lint",
|
| 14 |
+
"lint": "eslint --ext=js,mjs .",
|
| 15 |
+
"postlint": "tsc -p . && attw -P",
|
| 16 |
+
"tests-only": "nyc tape 'test/**/*.js'",
|
| 17 |
+
"tests:shims": "nyc tape --require=es5-shim --require=es5-shim 'test/**/*.js'",
|
| 18 |
+
"tests:corejs": "nyc tape --require=core-js 'test/**/*.js'",
|
| 19 |
+
"test": "npm run tests-only && npm run tests:shims && npm run tests:corejs",
|
| 20 |
+
"posttest": "aud --production"
|
| 21 |
+
},
|
| 22 |
+
"repository": {
|
| 23 |
+
"type": "git",
|
| 24 |
+
"url": "git+https://github.com/inspect-js/is-map.git"
|
| 25 |
+
},
|
| 26 |
+
"keywords": [
|
| 27 |
+
"map",
|
| 28 |
+
"set",
|
| 29 |
+
"collection",
|
| 30 |
+
"is",
|
| 31 |
+
"robust"
|
| 32 |
+
],
|
| 33 |
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
| 34 |
+
"funding": {
|
| 35 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 36 |
+
},
|
| 37 |
+
"license": "MIT",
|
| 38 |
+
"bugs": {
|
| 39 |
+
"url": "https://github.com/inspect-js/is-map/issues"
|
| 40 |
+
},
|
| 41 |
+
"homepage": "https://github.com/inspect-js/is-map#readme",
|
| 42 |
+
"devDependencies": {
|
| 43 |
+
"@arethetypeswrong/cli": "^0.15.0",
|
| 44 |
+
"@ljharb/eslint-config": "^21.1.0",
|
| 45 |
+
"@types/for-each": "^0.3.3",
|
| 46 |
+
"@types/object-inspect": "^1.8.4",
|
| 47 |
+
"@types/tape": "^5.6.4",
|
| 48 |
+
"aud": "^2.0.4",
|
| 49 |
+
"auto-changelog": "^2.4.0",
|
| 50 |
+
"core-js": "^2.6.12",
|
| 51 |
+
"es5-shim": "^4.6.7",
|
| 52 |
+
"es6-shim": "^0.35.8",
|
| 53 |
+
"eslint": "=8.8.0",
|
| 54 |
+
"for-each": "^0.3.3",
|
| 55 |
+
"in-publish": "^2.0.1",
|
| 56 |
+
"npmignore": "^0.3.1",
|
| 57 |
+
"nyc": "^10.3.2",
|
| 58 |
+
"object-inspect": "^1.13.1",
|
| 59 |
+
"safe-publish-latest": "^2.0.0",
|
| 60 |
+
"tape": "^5.7.5",
|
| 61 |
+
"typescript": "^5.5.0-dev.20240308"
|
| 62 |
+
},
|
| 63 |
+
"auto-changelog": {
|
| 64 |
+
"output": "CHANGELOG.md",
|
| 65 |
+
"template": "keepachangelog",
|
| 66 |
+
"unreleased": false,
|
| 67 |
+
"commitLimit": false,
|
| 68 |
+
"backfillLimit": false,
|
| 69 |
+
"hideCredit": true
|
| 70 |
+
},
|
| 71 |
+
"publishConfig": {
|
| 72 |
+
"ignore": [
|
| 73 |
+
".github/workflows"
|
| 74 |
+
]
|
| 75 |
+
},
|
| 76 |
+
"engines": {
|
| 77 |
+
"node": ">= 0.4"
|
| 78 |
+
}
|
| 79 |
+
}
|
node_modules/is-map/test/index.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var test = require('tape');
|
| 4 |
+
var debug = require('object-inspect');
|
| 5 |
+
var forEach = require('for-each');
|
| 6 |
+
|
| 7 |
+
var isMap = require('..');
|
| 8 |
+
|
| 9 |
+
test('non-collections', function (t) {
|
| 10 |
+
forEach([
|
| 11 |
+
null,
|
| 12 |
+
undefined,
|
| 13 |
+
true,
|
| 14 |
+
false,
|
| 15 |
+
42,
|
| 16 |
+
0,
|
| 17 |
+
-0,
|
| 18 |
+
NaN,
|
| 19 |
+
Infinity,
|
| 20 |
+
'',
|
| 21 |
+
'foo',
|
| 22 |
+
/a/g,
|
| 23 |
+
[],
|
| 24 |
+
{},
|
| 25 |
+
function () {}
|
| 26 |
+
], function (nonCollection) {
|
| 27 |
+
t.equal(isMap(nonCollection), false, debug(nonCollection) + ' is not a Map');
|
| 28 |
+
});
|
| 29 |
+
|
| 30 |
+
t.end();
|
| 31 |
+
});
|
| 32 |
+
|
| 33 |
+
test('Maps', { skip: typeof Map !== 'function' }, function (t) {
|
| 34 |
+
var m = new Map();
|
| 35 |
+
t.equal(isMap(m), true, debug(m) + ' is a Map');
|
| 36 |
+
|
| 37 |
+
t.end();
|
| 38 |
+
});
|
| 39 |
+
|
| 40 |
+
test('Sets', { skip: typeof Set !== 'function' }, function (t) {
|
| 41 |
+
var s = new Set();
|
| 42 |
+
t.equal(isMap(s), false, debug(s) + ' is not a Map');
|
| 43 |
+
|
| 44 |
+
t.end();
|
| 45 |
+
});
|
| 46 |
+
|
| 47 |
+
test('WeakMaps', { skip: typeof WeakMap !== 'function' }, function (t) {
|
| 48 |
+
var wm = new WeakMap();
|
| 49 |
+
t.equal(isMap(wm), false, debug(wm) + ' is not a Map');
|
| 50 |
+
|
| 51 |
+
t.end();
|
| 52 |
+
});
|
| 53 |
+
|
| 54 |
+
test('WeakSets', { skip: typeof WeakSet !== 'function' }, function (t) {
|
| 55 |
+
var ws = new WeakSet();
|
| 56 |
+
t.equal(isMap(ws), false, debug(ws) + ' is not a Map');
|
| 57 |
+
|
| 58 |
+
t.end();
|
| 59 |
+
});
|
node_modules/is-map/tsconfig.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"compilerOptions": {
|
| 3 |
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
| 4 |
+
|
| 5 |
+
/* Projects */
|
| 6 |
+
|
| 7 |
+
/* Language and Environment */
|
| 8 |
+
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
| 9 |
+
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
| 10 |
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
| 11 |
+
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
| 12 |
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
| 13 |
+
|
| 14 |
+
/* Modules */
|
| 15 |
+
"module": "commonjs", /* Specify what module code is generated. */
|
| 16 |
+
// "rootDir": "./", /* Specify the root folder within your source files. */
|
| 17 |
+
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
| 18 |
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
| 19 |
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
| 20 |
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
| 21 |
+
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
| 22 |
+
"resolveJsonModule": true, /* Enable importing .json files. */
|
| 23 |
+
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
| 24 |
+
|
| 25 |
+
/* JavaScript Support */
|
| 26 |
+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
| 27 |
+
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
| 28 |
+
"maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
| 29 |
+
|
| 30 |
+
/* Emit */
|
| 31 |
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
| 32 |
+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
| 33 |
+
"noEmit": true, /* Disable emitting files from a compilation. */
|
| 34 |
+
|
| 35 |
+
/* Interop Constraints */
|
| 36 |
+
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
| 37 |
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
| 38 |
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
| 39 |
+
|
| 40 |
+
/* Type Checking */
|
| 41 |
+
"strict": true, /* Enable all strict type-checking options. */
|
| 42 |
+
|
| 43 |
+
/* Completeness */
|
| 44 |
+
//"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
| 45 |
+
},
|
| 46 |
+
"exclude": [
|
| 47 |
+
"coverage"
|
| 48 |
+
]
|
| 49 |
+
}
|
node_modules/is-negative-zero/.editorconfig
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
root = true
|
| 2 |
+
|
| 3 |
+
[*]
|
| 4 |
+
indent_style = tab
|
| 5 |
+
end_of_line = lf
|
| 6 |
+
charset = utf-8
|
| 7 |
+
trim_trailing_whitespace = true
|
| 8 |
+
insert_final_newline = true
|
node_modules/is-negative-zero/.eslintrc
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"root": true,
|
| 3 |
+
|
| 4 |
+
"extends": "@ljharb",
|
| 5 |
+
|
| 6 |
+
"rules": {
|
| 7 |
+
"no-magic-numbers": 0
|
| 8 |
+
}
|
| 9 |
+
}
|
node_modules/is-negative-zero/.github/FUNDING.yml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# These are supported funding model platforms
|
| 2 |
+
|
| 3 |
+
github: ljharb
|
| 4 |
+
patreon: # Replace with a single Patreon username
|
| 5 |
+
open_collective: # Replace with a single Open Collective username
|
| 6 |
+
ko_fi: # Replace with a single Ko-fi username
|
| 7 |
+
tidelift: npm/is-negative-zero
|
| 8 |
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
| 9 |
+
liberapay: # Replace with a single Liberapay username
|
| 10 |
+
issuehunt: # Replace with a single IssueHunt username
|
| 11 |
+
otechie: # Replace with a single Otechie username
|
| 12 |
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
node_modules/is-negative-zero/.nycrc
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"all": true,
|
| 3 |
+
"check-coverage": false,
|
| 4 |
+
"reporter": ["text-summary", "text", "html", "json"],
|
| 5 |
+
"exclude": [
|
| 6 |
+
"coverage",
|
| 7 |
+
"test"
|
| 8 |
+
]
|
| 9 |
+
}
|
node_modules/is-negative-zero/CHANGELOG.md
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
All notable changes to this project will be documented in this file.
|
| 4 |
+
|
| 5 |
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
| 6 |
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
| 7 |
+
|
| 8 |
+
## [v2.0.3](https://github.com/inspect-js/is-negative-zero/compare/v2.0.2...v2.0.3) - 2024-02-19
|
| 9 |
+
|
| 10 |
+
### Commits
|
| 11 |
+
|
| 12 |
+
- add types [`e28f0d5`](https://github.com/inspect-js/is-negative-zero/commit/e28f0d59cffc61bd3d41c10563105e8adb868e59)
|
| 13 |
+
- [meta] use `npmignore` to autogenerate an npmignore file [`f68ec13`](https://github.com/inspect-js/is-negative-zero/commit/f68ec13c1d04a2ef1e1c72506ae9c2ac0567bcdd)
|
| 14 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`70abff7`](https://github.com/inspect-js/is-negative-zero/commit/70abff788bb0156f300a09c2f5cc7d30d5618184)
|
| 15 |
+
- [actions] update rebase action to use reusable workflow [`6e1356e`](https://github.com/inspect-js/is-negative-zero/commit/6e1356e9fc5fee1bcae20b365c7d71b14ecf876d)
|
| 16 |
+
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`c00d4ab`](https://github.com/inspect-js/is-negative-zero/commit/c00d4ab5c381d22ac3e6d89180b3e012c479f13f)
|
| 17 |
+
- [meta] add `sideEffects` flag [`9c45539`](https://github.com/inspect-js/is-negative-zero/commit/9c455398988d2db940fe6644541d09d510b6661f)
|
| 18 |
+
|
| 19 |
+
## [v2.0.2](https://github.com/inspect-js/is-negative-zero/compare/v2.0.1...v2.0.2) - 2021-12-10
|
| 20 |
+
|
| 21 |
+
### Commits
|
| 22 |
+
|
| 23 |
+
- [actions] reuse common workflows [`ece923d`](https://github.com/inspect-js/is-negative-zero/commit/ece923d6b50820b7832150957774047da43d1743)
|
| 24 |
+
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`3a26f43`](https://github.com/inspect-js/is-negative-zero/commit/3a26f435434bbfb8a254ddd32d6079bf50263121)
|
| 25 |
+
- [meta] do not publish workflow files [`2cea0c2`](https://github.com/inspect-js/is-negative-zero/commit/2cea0c20c7f8b167bb6064f916f3285642bf5ab1)
|
| 26 |
+
- [readme] add github actions/codecov badges; update URLs [`0c0be3e`](https://github.com/inspect-js/is-negative-zero/commit/0c0be3eb148ccf9d764e8ed515ef0e1d0ffeed9d)
|
| 27 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`a93d16e`](https://github.com/inspect-js/is-negative-zero/commit/a93d16eddf46cad6bc9b71a92968ce758e6f4ea4)
|
| 28 |
+
- [meta] create FUNDING.yml [`b4f425e`](https://github.com/inspect-js/is-negative-zero/commit/b4f425e49edb8c4aa1efa6ba34c2d5c1150b2a26)
|
| 29 |
+
- [actions] update codecov uploader [`7999db3`](https://github.com/inspect-js/is-negative-zero/commit/7999db3bff3f0f9cc729529940b9077a586822e2)
|
| 30 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `auto-changelog`, `safe-publish-latest`, `tape` [`140e4d9`](https://github.com/inspect-js/is-negative-zero/commit/140e4d95eda9ad821608c28a5f705d84a906096d)
|
| 31 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`23a8b6d`](https://github.com/inspect-js/is-negative-zero/commit/23a8b6d257cea0b8a608b2319739562ecbc6ba75)
|
| 32 |
+
- [readme] add actions and codecov badges [`fe92126`](https://github.com/inspect-js/is-negative-zero/commit/fe9212634346ced7a45905d958cb85d129e4c10b)
|
| 33 |
+
- [readme] fix repo URLs [`50c428e`](https://github.com/inspect-js/is-negative-zero/commit/50c428e423e5861a6c231440b8b3e746cbf6230f)
|
| 34 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`688155f`](https://github.com/inspect-js/is-negative-zero/commit/688155ff0214da72cbafa4c438c3b9629265d82b)
|
| 35 |
+
- [meta] use `prepublishOnly` script for npm 7+ [`83171f9`](https://github.com/inspect-js/is-negative-zero/commit/83171f9131aed266f475d7a3283d9c2fc77e1436)
|
| 36 |
+
- [actions] update workflows [`e9823db`](https://github.com/inspect-js/is-negative-zero/commit/e9823db3054887d8bb5b3f2c8f698b93cdce7d82)
|
| 37 |
+
|
| 38 |
+
## [v2.0.1](https://github.com/inspect-js/is-negative-zero/compare/v2.0.0...v2.0.1) - 2020-12-04
|
| 39 |
+
|
| 40 |
+
### Commits
|
| 41 |
+
|
| 42 |
+
- [Tests] use shared travis-ci configs [`5b92482`](https://github.com/inspect-js/is-negative-zero/commit/5b92482ed26e55e1aafcc6b6310d279958af8204)
|
| 43 |
+
- [Tests] up to `node` `v11.7`, `v10.15`, `v9.11`, `v8.15`, `v7.10`, `v6.16`, `v5.12`, `v4.9`; use `nvm install-latest-npm`; fix test scripts [`0f5d2f8`](https://github.com/inspect-js/is-negative-zero/commit/0f5d2f85ea7fe83de47f39b6b35e489b866d88a7)
|
| 44 |
+
- [Tests] migrate tests to Github Actions [`b80f05a`](https://github.com/inspect-js/is-negative-zero/commit/b80f05adb11a6a3232860fb50272b101aacb504f)
|
| 45 |
+
- [Tests] remove `jscs` [`7ccaf41`](https://github.com/inspect-js/is-negative-zero/commit/7ccaf4100281b614d61d7c9122e6f87943a89295)
|
| 46 |
+
- [meta] add missing changelog [`992bdde`](https://github.com/inspect-js/is-negative-zero/commit/992bddee362cbae71f2cdfd8666f4774b252412e)
|
| 47 |
+
- [readme] fix repo URLs; remove defunct badges [`80fd18d`](https://github.com/inspect-js/is-negative-zero/commit/80fd18d2b0191321afe0e1b572200e4c025eb664)
|
| 48 |
+
- [Tests] run `nyc` on all tests [`df26f14`](https://github.com/inspect-js/is-negative-zero/commit/df26f14b0b854d82b0d3ca7b4949811c9f151357)
|
| 49 |
+
- Update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`d7723aa`](https://github.com/inspect-js/is-negative-zero/commit/d7723aa70e5b478adc36d98e1338abe741c1906a)
|
| 50 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`9fdaabe`](https://github.com/inspect-js/is-negative-zero/commit/9fdaabecfdb25e6e860e5007a91b60ee0f20734f)
|
| 51 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `tape` [`f07eeb2`](https://github.com/inspect-js/is-negative-zero/commit/f07eeb2740037c53f270e95d2f62edc051cafc56)
|
| 52 |
+
- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`bd5c751`](https://github.com/inspect-js/is-negative-zero/commit/bd5c751fa4850ba8726dc1c197ed6c843a227b05)
|
| 53 |
+
- [actions] add automatic rebasing / merge commit blocking [`5666a91`](https://github.com/inspect-js/is-negative-zero/commit/5666a917db6bdcee63c0a3e28e5e281359975abc)
|
| 54 |
+
- [meta] add `auto-changelog` [`f70fb2b`](https://github.com/inspect-js/is-negative-zero/commit/f70fb2b5b9ea53dc52729310717553648292189e)
|
| 55 |
+
- [actions] add "Allow Edits" workflow [`2b040a8`](https://github.com/inspect-js/is-negative-zero/commit/2b040a87d362f17d8cab2b0d48058b80e426ad4e)
|
| 56 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`; add `safe-publish-latest` [`09e2e53`](https://github.com/inspect-js/is-negative-zero/commit/09e2e537390225c1d1a6912be64267eaec6ea367)
|
| 57 |
+
- [Tests] use `npm audit` instead of `nsp` [`7df2669`](https://github.com/inspect-js/is-negative-zero/commit/7df2669013ac9328d424e9d8c82a53a0458f0888)
|
| 58 |
+
- [Tests] up to `io.js` `v3.3`, `node` `v4.1` [`4ff97c5`](https://github.com/inspect-js/is-negative-zero/commit/4ff97c5891c7a241a91c03fb54bd83e78570ef22)
|
| 59 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog` [`9e8cb7b`](https://github.com/inspect-js/is-negative-zero/commit/9e8cb7bca46d325ecf202187c0fde7da8722bcab)
|
| 60 |
+
- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config`, `nsp` [`70b9888`](https://github.com/inspect-js/is-negative-zero/commit/70b988802a99c84ab7eb8da287bb8ff0efc5c055)
|
| 61 |
+
- [Dev Deps] update `jscs` [`59d0c42`](https://github.com/inspect-js/is-negative-zero/commit/59d0c42131020b74e68fd444798b9a3bf247fb2d)
|
| 62 |
+
- Add `npm run security` [`eb418ed`](https://github.com/inspect-js/is-negative-zero/commit/eb418ed7e79216808c206388fbd360cc7a75655f)
|
| 63 |
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`86a758d`](https://github.com/inspect-js/is-negative-zero/commit/86a758d42eb7d17a18f7f584c337d8820b842758)
|
| 64 |
+
- Only apps should have lockfiles [`a0ab621`](https://github.com/inspect-js/is-negative-zero/commit/a0ab6215590bf6adb3eaf1ff9e7c036d72e807ec)
|
| 65 |
+
- [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops [`5c51349`](https://github.com/inspect-js/is-negative-zero/commit/5c513498fc5a8b2fd06f5e0c1b38b8e93c3477ac)
|
| 66 |
+
- [meta] add `funding` field [`1d0b2f4`](https://github.com/inspect-js/is-negative-zero/commit/1d0b2f43bf5bf75176859a440346b3e338ee510e)
|
| 67 |
+
- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`9b12367`](https://github.com/inspect-js/is-negative-zero/commit/9b12367706f1c269a3df406c8e2c211558671a15)
|
| 68 |
+
- [Dev Deps] update `auto-changelog`, `tape` [`6d98b8d`](https://github.com/inspect-js/is-negative-zero/commit/6d98b8d1f512c3844d4062215c793070084d1164)
|
| 69 |
+
- [Dev Deps] Update `tape`, `eslint` [`a258cdb`](https://github.com/inspect-js/is-negative-zero/commit/a258cdb86691725482d1d43a1f9e7953c3c6733f)
|
| 70 |
+
- [Dev Deps] update `auto-changelog`; add `aud` [`2ca2afb`](https://github.com/inspect-js/is-negative-zero/commit/2ca2afb9efef4ebc8b3c19046ab1ab3ad516ea9a)
|
| 71 |
+
- Test up to `io.js` `v3.0` [`1254ae8`](https://github.com/inspect-js/is-negative-zero/commit/1254ae80b7706616331ac914654d7a17bff31039)
|
| 72 |
+
- [Dev Deps] update `auto-changelog` [`4b54722`](https://github.com/inspect-js/is-negative-zero/commit/4b547228fceaae8f9eccabc9ad8a49046492348d)
|
| 73 |
+
- [Tests] only audit prod deps [`86d298b`](https://github.com/inspect-js/is-negative-zero/commit/86d298b56db90f81617ee5d942476eda34afb374)
|
| 74 |
+
- [Dev Deps] update `tape` [`3a47e27`](https://github.com/inspect-js/is-negative-zero/commit/3a47e2730f889539f666ef0eb09a93fb9c80bfd1)
|
| 75 |
+
- Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG. [`128d9bd`](https://github.com/inspect-js/is-negative-zero/commit/128d9bd4c12385fb5e478ac3dd3138fa4360a777)
|
| 76 |
+
|
| 77 |
+
## [v2.0.0](https://github.com/inspect-js/is-negative-zero/compare/v1.0.0...v2.0.0) - 2015-07-24
|
| 78 |
+
|
| 79 |
+
### Commits
|
| 80 |
+
|
| 81 |
+
- Update `tape`, `eslint`; use my personal shared `eslint` config. [`648d002`](https://github.com/inspect-js/is-negative-zero/commit/648d0029b177886428a11b07307f233ae2d3175b)
|
| 82 |
+
- Add `npm run eslint` [`5a52d80`](https://github.com/inspect-js/is-negative-zero/commit/5a52d80ab052e377044b9b181991a32afaaa3090)
|
| 83 |
+
- Using my standard jscs.json file [`5a667d9`](https://github.com/inspect-js/is-negative-zero/commit/5a667d9f8b7402ca3bd134080cd4435b5c7f1462)
|
| 84 |
+
- Adding `npm run lint` [`9a85ed9`](https://github.com/inspect-js/is-negative-zero/commit/9a85ed934da65d8733a38bf6ad3c89fd62115194)
|
| 85 |
+
- Update `tape`, `covert`, `jscs` [`c6cd3a6`](https://github.com/inspect-js/is-negative-zero/commit/c6cd3a64ea5b98100e10537549f50a9eeadc30ec)
|
| 86 |
+
- Update `eslint` [`e9c9b6e`](https://github.com/inspect-js/is-negative-zero/commit/e9c9b6e9623f021b7f3ae4091bf9ea2571ab02b4)
|
| 87 |
+
- Test on latest `io.js` [`2f7c8a9`](https://github.com/inspect-js/is-negative-zero/commit/2f7c8a9d174066400c072841d7bcf02cf90f8ebf)
|
| 88 |
+
- Adding license and downloads badges [`717087a`](https://github.com/inspect-js/is-negative-zero/commit/717087a013b4cfc9dc7847d3d4a64faf19341be4)
|
| 89 |
+
- Remove Number type coercion. [`481295d`](https://github.com/inspect-js/is-negative-zero/commit/481295dbd09dbf81d196dc77382f1b92f534de3f)
|
| 90 |
+
- Test up to `io.js` `v2.1` [`139a84a`](https://github.com/inspect-js/is-negative-zero/commit/139a84a3dbdec29682044c6e7ac884a7382ae6e1)
|
| 91 |
+
- Update `eslint` [`2f5fbfb`](https://github.com/inspect-js/is-negative-zero/commit/2f5fbfbc436ccd8676fc36fcd9f0edcdda33a1e7)
|
| 92 |
+
- Update `eslint` [`53cb4c5`](https://github.com/inspect-js/is-negative-zero/commit/53cb4c5eccecdf2d874e78e5c38cca762ed76a9d)
|
| 93 |
+
- Test on `io.js` `v2.2` [`98a1824`](https://github.com/inspect-js/is-negative-zero/commit/98a1824c86366f8a03cf303f46acecd67409f94b)
|
| 94 |
+
- All grade A-supported `node`/`iojs` versions now ship with an `npm` that understands `^`. [`772d6cd`](https://github.com/inspect-js/is-negative-zero/commit/772d6cdf397e6fc1b26e5ed5f279d07a5ead6df8)
|
| 95 |
+
- Run `travis-ci` tests on `iojs` and `node` v0.12; speed up builds; allow 0.8 failures. [`3e6147e`](https://github.com/inspect-js/is-negative-zero/commit/3e6147ebb5ecdfda4a2bffa441572fe017c7bb73)
|
| 96 |
+
- Use SVG badges instead of PNG [`d986cb4`](https://github.com/inspect-js/is-negative-zero/commit/d986cb450e5bd4f373041255b69e18f47c252a1e)
|
| 97 |
+
- Update `tape`, `jscs` [`9f9d7e7`](https://github.com/inspect-js/is-negative-zero/commit/9f9d7e751bcf4ceeed8e36e75e31d29c76326b3f)
|
| 98 |
+
- Update `jscs` [`079eaf6`](https://github.com/inspect-js/is-negative-zero/commit/079eaf699d53e7e32c54e5233259a00f5f494d9a)
|
| 99 |
+
- Update `tape`, `jscs` [`cffe3fc`](https://github.com/inspect-js/is-negative-zero/commit/cffe3fc17c6bfaa6996bf7402446b160631a04b3)
|
| 100 |
+
- Update `tape`, `jscs` [`3a16616`](https://github.com/inspect-js/is-negative-zero/commit/3a166165ae8770d59c296794d28547379cebec58)
|
| 101 |
+
- Use consistent quotes [`9509a81`](https://github.com/inspect-js/is-negative-zero/commit/9509a8110027b12c5762ba48d03b649a921847d5)
|
| 102 |
+
- Test on `io.js` `v2.4` [`a9150a3`](https://github.com/inspect-js/is-negative-zero/commit/a9150a3397db339d992e9e4e6ddb52d1237fd617)
|
| 103 |
+
- Test on `io.js` `v2.3` [`36d7acf`](https://github.com/inspect-js/is-negative-zero/commit/36d7acf5bb9193a2b35585e2c49ae8be9f45a55e)
|
| 104 |
+
- Lock covert to v1.0.0. [`29d8917`](https://github.com/inspect-js/is-negative-zero/commit/29d89171c3aad69ace372edbf641ec3a5468c760)
|
| 105 |
+
- Updating jscs [`fe09c8a`](https://github.com/inspect-js/is-negative-zero/commit/fe09c8a6d16c637ecd83a9a8a7f6192faef0754a)
|
| 106 |
+
- Updating jscs [`5877bc7`](https://github.com/inspect-js/is-negative-zero/commit/5877bc7c2ed44c1ecc5d31e1c484c523450722d8)
|
| 107 |
+
- Running linter as part of tests [`9e77756`](https://github.com/inspect-js/is-negative-zero/commit/9e777563905f511d915ec7257e2637811b911bd6)
|
| 108 |
+
- Updating covert [`520a695`](https://github.com/inspect-js/is-negative-zero/commit/520a695164465b88c76860a638baafd4192bce5c)
|
| 109 |
+
|
| 110 |
+
## [v1.0.0](https://github.com/inspect-js/is-negative-zero/compare/v0.1.1...v1.0.0) - 2014-08-08
|
| 111 |
+
|
| 112 |
+
### Commits
|
| 113 |
+
|
| 114 |
+
- Updating tape [`31d1942`](https://github.com/inspect-js/is-negative-zero/commit/31d19422ecd9d453677851a9d5a8d9372a16fb39)
|
| 115 |
+
- Updating tape [`e7143bf`](https://github.com/inspect-js/is-negative-zero/commit/e7143bf3b67d8881b1b6ee0444637647d7bb1d2b)
|
| 116 |
+
|
| 117 |
+
## [v0.1.1](https://github.com/inspect-js/is-negative-zero/compare/v0.1.0...v0.1.1) - 2014-05-13
|
| 118 |
+
|
| 119 |
+
### Merged
|
| 120 |
+
|
| 121 |
+
- Simplify code [`#1`](https://github.com/inspect-js/is-negative-zero/pull/1)
|
| 122 |
+
|
| 123 |
+
### Commits
|
| 124 |
+
|
| 125 |
+
- Adding a trailing newline [`61fb37f`](https://github.com/inspect-js/is-negative-zero/commit/61fb37f677e871cca53d9309e765d808ddddfd5a)
|
| 126 |
+
|
| 127 |
+
## [v0.1.0](https://github.com/inspect-js/is-negative-zero/compare/v0.0.0...v0.1.0) - 2014-05-13
|
| 128 |
+
|
| 129 |
+
### Commits
|
| 130 |
+
|
| 131 |
+
- Make sure old and unstable nodes don't break Travis [`f627215`](https://github.com/inspect-js/is-negative-zero/commit/f627215527a95dc1ca014600650e00f15fe122c5)
|
| 132 |
+
- Updating deps [`b502f48`](https://github.com/inspect-js/is-negative-zero/commit/b502f48e807d7671cb07e2ca247ae2daa62e4165)
|
| 133 |
+
- Oops, negative numbers were negative zero! [`746cb97`](https://github.com/inspect-js/is-negative-zero/commit/746cb975d82c0fa0c5058e8e031807f9afcfd6db)
|
| 134 |
+
- Updating covert [`99ef4ed`](https://github.com/inspect-js/is-negative-zero/commit/99ef4ed97d2f76f2a5afbef029bf794f1b5bcffa)
|
| 135 |
+
- Updating tape [`ee9cfc2`](https://github.com/inspect-js/is-negative-zero/commit/ee9cfc2fd0039bdb65b6493ce0b8e47d18aa17cd)
|
| 136 |
+
- Testing on node 0.6 again [`6a9bf0a`](https://github.com/inspect-js/is-negative-zero/commit/6a9bf0a09e210cca09c7a8a225d08ef1e6789b5a)
|
| 137 |
+
|
| 138 |
+
## v0.0.0 - 2014-01-19
|
| 139 |
+
|
| 140 |
+
### Commits
|
| 141 |
+
|
| 142 |
+
- package.json [`8411d92`](https://github.com/inspect-js/is-negative-zero/commit/8411d92ec787fd522a1b5e65154ae88e9024a23f)
|
| 143 |
+
- read me [`5c8bf3c`](https://github.com/inspect-js/is-negative-zero/commit/5c8bf3ce4867dbf2997ef01ea6b712aa294ec959)
|
| 144 |
+
- Initial commit [`c06f7dc`](https://github.com/inspect-js/is-negative-zero/commit/c06f7dcf926f5b35ba678787a0f16cdd7b544054)
|
| 145 |
+
- Tests. [`5c554d4`](https://github.com/inspect-js/is-negative-zero/commit/5c554d405bfb323a7413fde395d8dc39c5316356)
|
| 146 |
+
- Travis CI [`334d000`](https://github.com/inspect-js/is-negative-zero/commit/334d000941fc926493cc7dbdb4e5f7ae481a311b)
|
| 147 |
+
- Implementation. [`4ef4491`](https://github.com/inspect-js/is-negative-zero/commit/4ef449189c36d471d283e40aa20a8ebfa4985882)
|
node_modules/is-negative-zero/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014 Jordan Harband
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 6 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 7 |
+
the Software without restriction, including without limitation the rights to
|
| 8 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
| 9 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
| 10 |
+
subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
| 17 |
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
| 18 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
| 19 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 20 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
node_modules/is-negative-zero/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-negative-zero <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
| 2 |
+
|
| 3 |
+
[![github actions][actions-image]][actions-url]
|
| 4 |
+
[![coverage][codecov-image]][codecov-url]
|
| 5 |
+
[![dependency status][deps-svg]][deps-url]
|
| 6 |
+
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
| 7 |
+
[![License][license-image]][license-url]
|
| 8 |
+
[![Downloads][downloads-image]][downloads-url]
|
| 9 |
+
|
| 10 |
+
[![npm badge][npm-badge-png]][package-url]
|
| 11 |
+
|
| 12 |
+
Is this value negative zero? === will lie to you.
|
| 13 |
+
|
| 14 |
+
## Example
|
| 15 |
+
|
| 16 |
+
```js
|
| 17 |
+
var isNegativeZero = require('is-negative-zero');
|
| 18 |
+
var assert = require('assert');
|
| 19 |
+
|
| 20 |
+
assert.notOk(isNegativeZero(undefined));
|
| 21 |
+
assert.notOk(isNegativeZero(null));
|
| 22 |
+
assert.notOk(isNegativeZero(false));
|
| 23 |
+
assert.notOk(isNegativeZero(true));
|
| 24 |
+
assert.notOk(isNegativeZero(0));
|
| 25 |
+
assert.notOk(isNegativeZero(42));
|
| 26 |
+
assert.notOk(isNegativeZero(Infinity));
|
| 27 |
+
assert.notOk(isNegativeZero(-Infinity));
|
| 28 |
+
assert.notOk(isNegativeZero(NaN));
|
| 29 |
+
assert.notOk(isNegativeZero('foo'));
|
| 30 |
+
assert.notOk(isNegativeZero(function () {}));
|
| 31 |
+
assert.notOk(isNegativeZero([]));
|
| 32 |
+
assert.notOk(isNegativeZero({}));
|
| 33 |
+
|
| 34 |
+
assert.ok(isNegativeZero(-0));
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Tests
|
| 38 |
+
Simply clone the repo, `npm install`, and run `npm test`
|
| 39 |
+
|
| 40 |
+
[package-url]: https://npmjs.org/package/is-negative-zero
|
| 41 |
+
[npm-version-svg]: https://versionbadg.es/inspect-js/is-negative-zero.svg
|
| 42 |
+
[deps-svg]: https://david-dm.org/inspect-js/is-negative-zero.svg
|
| 43 |
+
[deps-url]: https://david-dm.org/inspect-js/is-negative-zero
|
| 44 |
+
[dev-deps-svg]: https://david-dm.org/inspect-js/is-negative-zero/dev-status.svg
|
| 45 |
+
[dev-deps-url]: https://david-dm.org/inspect-js/is-negative-zero#info=devDependencies
|
| 46 |
+
[npm-badge-png]: https://nodei.co/npm/is-negative-zero.png?downloads=true&stars=true
|
| 47 |
+
[license-image]: https://img.shields.io/npm/l/is-negative-zero.svg
|
| 48 |
+
[license-url]: LICENSE
|
| 49 |
+
[downloads-image]: https://img.shields.io/npm/dm/is-negative-zero.svg
|
| 50 |
+
[downloads-url]: https://npm-stat.com/charts.html?package=is-negative-zero
|
| 51 |
+
[codecov-image]: https://codecov.io/gh/inspect-js/is-negative-zero/branch/main/graphs/badge.svg
|
| 52 |
+
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-negative-zero/
|
| 53 |
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-negative-zero
|
| 54 |
+
[actions-url]: https://github.com/inspect-js/is-negative-zero/actions
|
node_modules/is-negative-zero/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
declare function isNegativeZero(number: unknown): number is -0;
|
| 2 |
+
|
| 3 |
+
export = isNegativeZero;
|
node_modules/is-negative-zero/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
/** @type {import('.')} */
|
| 4 |
+
module.exports = function isNegativeZero(number) {
|
| 5 |
+
return number === 0 && (1 / number) === -Infinity;
|
| 6 |
+
};
|
| 7 |
+
|
node_modules/is-negative-zero/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-negative-zero",
|
| 3 |
+
"version": "2.0.3",
|
| 4 |
+
"description": "Is this value negative zero? === will lie to you",
|
| 5 |
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
| 6 |
+
"funding": {
|
| 7 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 8 |
+
},
|
| 9 |
+
"license": "MIT",
|
| 10 |
+
"main": "index.js",
|
| 11 |
+
"types": "./index.d.ts",
|
| 12 |
+
"sideEffects": false,
|
| 13 |
+
"scripts": {
|
| 14 |
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
| 15 |
+
"prepublishOnly": "safe-publish-latest",
|
| 16 |
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
| 17 |
+
"pretest": "npm run lint",
|
| 18 |
+
"test": "npm run tests-only",
|
| 19 |
+
"tests-only": "nyc tape 'test/**/*.js'",
|
| 20 |
+
"posttest": "aud --production",
|
| 21 |
+
"lint": "eslint --ext=js,mjs .",
|
| 22 |
+
"postlint": "tsc -p .",
|
| 23 |
+
"version": "auto-changelog && git add CHANGELOG.md",
|
| 24 |
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
| 25 |
+
},
|
| 26 |
+
"repository": {
|
| 27 |
+
"type": "git",
|
| 28 |
+
"url": "git://github.com/inspect-js/is-negative-zero.git"
|
| 29 |
+
},
|
| 30 |
+
"bugs": {
|
| 31 |
+
"url": "https://github.com/inspect-js/is-negative-zero/issues"
|
| 32 |
+
},
|
| 33 |
+
"homepage": "https://github.com/inspect-js/is-negative-zero",
|
| 34 |
+
"keywords": [
|
| 35 |
+
"is",
|
| 36 |
+
"negative",
|
| 37 |
+
"zero",
|
| 38 |
+
"negative zero",
|
| 39 |
+
"number",
|
| 40 |
+
"positive",
|
| 41 |
+
"0",
|
| 42 |
+
"-0"
|
| 43 |
+
],
|
| 44 |
+
"devDependencies": {
|
| 45 |
+
"@ljharb/eslint-config": "^21.1.0",
|
| 46 |
+
"@types/tape": "^5.6.4",
|
| 47 |
+
"aud": "^2.0.4",
|
| 48 |
+
"auto-changelog": "^2.4.0",
|
| 49 |
+
"eslint": "=8.8.0",
|
| 50 |
+
"in-publish": "^2.0.1",
|
| 51 |
+
"npmignore": "^0.3.1",
|
| 52 |
+
"nyc": "^10.3.2",
|
| 53 |
+
"safe-publish-latest": "^2.0.0",
|
| 54 |
+
"tape": "^5.7.5",
|
| 55 |
+
"typescript": "next"
|
| 56 |
+
},
|
| 57 |
+
"testling": {
|
| 58 |
+
"files": "test/index.js",
|
| 59 |
+
"browsers": [
|
| 60 |
+
"iexplore/6.0..latest",
|
| 61 |
+
"firefox/3.0..6.0",
|
| 62 |
+
"firefox/15.0..latest",
|
| 63 |
+
"firefox/nightly",
|
| 64 |
+
"chrome/4.0..10.0",
|
| 65 |
+
"chrome/20.0..latest",
|
| 66 |
+
"chrome/canary",
|
| 67 |
+
"opera/10.0..12.0",
|
| 68 |
+
"opera/15.0..latest",
|
| 69 |
+
"opera/next",
|
| 70 |
+
"safari/4.0..latest",
|
| 71 |
+
"ipad/6.0..latest",
|
| 72 |
+
"iphone/6.0..latest",
|
| 73 |
+
"android-browser/4.2"
|
| 74 |
+
]
|
| 75 |
+
},
|
| 76 |
+
"engines": {
|
| 77 |
+
"node": ">= 0.4"
|
| 78 |
+
},
|
| 79 |
+
"auto-changelog": {
|
| 80 |
+
"output": "CHANGELOG.md",
|
| 81 |
+
"template": "keepachangelog",
|
| 82 |
+
"unreleased": false,
|
| 83 |
+
"commitLimit": false,
|
| 84 |
+
"backfillLimit": false,
|
| 85 |
+
"hideCredit": true
|
| 86 |
+
},
|
| 87 |
+
"publishConfig": {
|
| 88 |
+
"ignore": [
|
| 89 |
+
".github/workflows"
|
| 90 |
+
]
|
| 91 |
+
}
|
| 92 |
+
}
|
node_modules/is-negative-zero/test/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var test = require('tape');
|
| 4 |
+
var isNegativeZero = require('../');
|
| 5 |
+
|
| 6 |
+
test('not negative zero', function (t) {
|
| 7 |
+
// @ts-expect-error
|
| 8 |
+
t.notOk(isNegativeZero(), 'undefined is not negative zero');
|
| 9 |
+
t.notOk(isNegativeZero(null), 'null is not negative zero');
|
| 10 |
+
t.notOk(isNegativeZero(false), 'false is not negative zero');
|
| 11 |
+
t.notOk(isNegativeZero(true), 'true is not negative zero');
|
| 12 |
+
t.notOk(isNegativeZero(0), 'positive zero is not negative zero');
|
| 13 |
+
t.notOk(isNegativeZero(Infinity), 'Infinity is not negative zero');
|
| 14 |
+
t.notOk(isNegativeZero(-Infinity), '-Infinity is not negative zero');
|
| 15 |
+
t.notOk(isNegativeZero(NaN), 'NaN is not negative zero');
|
| 16 |
+
t.notOk(isNegativeZero('foo'), 'string is not negative zero');
|
| 17 |
+
t.notOk(isNegativeZero([]), 'array is not negative zero');
|
| 18 |
+
t.notOk(isNegativeZero({}), 'object is not negative zero');
|
| 19 |
+
t.notOk(isNegativeZero(function () {}), 'function is not negative zero');
|
| 20 |
+
t.notOk(isNegativeZero(-1), '-1 is not negative zero');
|
| 21 |
+
|
| 22 |
+
t.end();
|
| 23 |
+
});
|
| 24 |
+
|
| 25 |
+
test('negative zero', function (t) {
|
| 26 |
+
t.ok(isNegativeZero(-0), 'negative zero is negative zero');
|
| 27 |
+
t.end();
|
| 28 |
+
});
|
| 29 |
+
|
node_modules/is-negative-zero/tsconfig.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"compilerOptions": {
|
| 3 |
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
| 4 |
+
|
| 5 |
+
/* Projects */
|
| 6 |
+
|
| 7 |
+
/* Language and Environment */
|
| 8 |
+
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
| 9 |
+
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
| 10 |
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
| 11 |
+
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
| 12 |
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
| 13 |
+
|
| 14 |
+
/* Modules */
|
| 15 |
+
"module": "commonjs", /* Specify what module code is generated. */
|
| 16 |
+
// "rootDir": "./", /* Specify the root folder within your source files. */
|
| 17 |
+
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
| 18 |
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
| 19 |
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
| 20 |
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
| 21 |
+
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
| 22 |
+
"resolveJsonModule": true, /* Enable importing .json files. */
|
| 23 |
+
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
| 24 |
+
|
| 25 |
+
/* JavaScript Support */
|
| 26 |
+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
| 27 |
+
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
| 28 |
+
"maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
| 29 |
+
|
| 30 |
+
/* Emit */
|
| 31 |
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
| 32 |
+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
| 33 |
+
"noEmit": true, /* Disable emitting files from a compilation. */
|
| 34 |
+
|
| 35 |
+
/* Interop Constraints */
|
| 36 |
+
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
| 37 |
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
| 38 |
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
| 39 |
+
|
| 40 |
+
/* Type Checking */
|
| 41 |
+
"strict": true, /* Enable all strict type-checking options. */
|
| 42 |
+
|
| 43 |
+
/* Completeness */
|
| 44 |
+
//"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
| 45 |
+
},
|
| 46 |
+
"exclude": [
|
| 47 |
+
"coverage"
|
| 48 |
+
]
|
| 49 |
+
}
|
node_modules/is-number-object/.editorconfig
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
root = true
|
| 2 |
+
|
| 3 |
+
[*]
|
| 4 |
+
indent_style = tab
|
| 5 |
+
indent_size = 4
|
| 6 |
+
end_of_line = lf
|
| 7 |
+
charset = utf-8
|
| 8 |
+
trim_trailing_whitespace = true
|
| 9 |
+
insert_final_newline = true
|
| 10 |
+
max_line_length = 150
|
| 11 |
+
|
| 12 |
+
[CHANGELOG.md]
|
| 13 |
+
indent_style = space
|
| 14 |
+
indent_size = 2
|
| 15 |
+
|
| 16 |
+
[*.json]
|
| 17 |
+
max_line_length = off
|
| 18 |
+
|
| 19 |
+
[Makefile]
|
| 20 |
+
max_line_length = off
|
| 21 |
+
|
| 22 |
+
[CHANGELOG.md]
|
| 23 |
+
max_line_length = off
|
node_modules/is-number-object/.eslintrc
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"root": true,
|
| 3 |
+
|
| 4 |
+
"extends": "@ljharb",
|
| 5 |
+
|
| 6 |
+
"rules": {
|
| 7 |
+
"func-name-matching": 0,
|
| 8 |
+
},
|
| 9 |
+
|
| 10 |
+
"overrides": [
|
| 11 |
+
{
|
| 12 |
+
"files": "test-core-js.js",
|
| 13 |
+
"extends": "@ljharb/eslint-config/tests",
|
| 14 |
+
},
|
| 15 |
+
],
|
| 16 |
+
}
|