Changeset 79a0317 for imaps-frontend/node_modules/is-generator-function
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/is-generator-function
- Files:
-
- 2 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/is-generator-function/.eslintrc
r0c6b92a r79a0317 5 5 6 6 "rules": { 7 "no-new-func": 1 7 "no-new-func": 1, 8 8 }, 9 9 } -
imaps-frontend/node_modules/is-generator-function/CHANGELOG.md
r0c6b92a r79a0317 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 8 ## [v1.1.0](https://github.com/inspect-js/is-generator-function/compare/v1.0.10...v1.1.0) - 2025-01-02 9 10 ### Commits 11 12 - [actions] reuse common workflows [`7301651`](https://github.com/inspect-js/is-generator-function/commit/7301651ad24468ab17aee7a86a2dd2a6fcd58637) 13 - [actions] split out node 10-20, and 20+ [`40f30a5`](https://github.com/inspect-js/is-generator-function/commit/40f30a5dee3e26cad236ce0afbd0567b6075af54) 14 - [meta] use `npmignore` to autogenerate an npmignore file [`ec843a4`](https://github.com/inspect-js/is-generator-function/commit/ec843a4501d238fcde254c7e33c137ec997abfaa) 15 - [New] add types [`6dd27c4`](https://github.com/inspect-js/is-generator-function/commit/6dd27c4b6a3ebaa42ddbf4e93c20e2b4d90bad07) 16 - [actions] update codecov uploader [`717f85e`](https://github.com/inspect-js/is-generator-function/commit/717f85e8b080cdbdb160558b289ec9f043410bd2) 17 - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`4280e62`](https://github.com/inspect-js/is-generator-function/commit/4280e6260029ccdae8b299faadacafd0f8a2de78) 18 - [actions] update rebase action to use reusable workflow [`895c2d0`](https://github.com/inspect-js/is-generator-function/commit/895c2d06a914b82913d3fae2df3071bde72cb584) 19 - [Tests] use `for-each` [`3caee87`](https://github.com/inspect-js/is-generator-function/commit/3caee870b0509b91ad37e6a0562f261d7b5f4523) 20 - [Robustness] use `call-bound` [`1eb55de`](https://github.com/inspect-js/is-generator-function/commit/1eb55def663c335222d970c5e62459f73aee20db) 21 - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `object-inspect`, `tape` [`5bbd4cd`](https://github.com/inspect-js/is-generator-function/commit/5bbd4cd8bcbd167a05ddf1cd285fd1fd2802801a) 22 - [Robustness] use `safe-regex-test` [`5f8b992`](https://github.com/inspect-js/is-generator-function/commit/5f8b9921e4cf53c3cb4185a0f30a170fa2e0722f) 23 - [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `npmignore`, `tape` [`c730f4c`](https://github.com/inspect-js/is-generator-function/commit/c730f4c056697653ba935b37b44bf9bfe1017331) 24 - [Robustness] use `get-proto` [`6dfff38`](https://github.com/inspect-js/is-generator-function/commit/6dfff3821b8a42d0b0f70651abfe1d2e90afbb10) 25 - [Tests] replace `aud` with `npm audit` [`725db70`](https://github.com/inspect-js/is-generator-function/commit/725db703352200f7400fa4b2b2058e2220a4c42b) 26 - [Deps] update `has-tostringtag` [`5cc3c2d`](https://github.com/inspect-js/is-generator-function/commit/5cc3c2d34b77c3d7d50588225d4d4afa20aa3df2) 27 - [Dev Deps] add missing peer dep [`869a507`](https://github.com/inspect-js/is-generator-function/commit/869a507790e8cf1452b355719a6c00efadbe4965) 7 28 8 29 ## [v1.0.10](https://github.com/inspect-js/is-generator-function/compare/v1.0.9...v1.0.10) - 2021-08-05 -
imaps-frontend/node_modules/is-generator-function/index.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var toStr = Object.prototype.toString;4 var fnToStr = Function.prototype.toString;5 var isFnRegex = /^\s*(?:function)?\*/;3 var callBound = require('call-bound'); 4 var safeRegexTest = require('safe-regex-test'); 5 var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/); 6 6 var hasToStringTag = require('has-tostringtag/shams')(); 7 var getProto = Object.getPrototypeOf; 7 var getProto = require('get-proto'); 8 9 var toStr = callBound('Object.prototype.toString'); 10 var fnToStr = callBound('Function.prototype.toString'); 11 8 12 var getGeneratorFunc = function () { // eslint-disable-line consistent-return 9 13 if (!hasToStringTag) { … … 15 19 } 16 20 }; 21 /** @type {undefined | false | null | GeneratorFunctionConstructor} */ 17 22 var GeneratorFunction; 18 23 24 /** @type {import('.')} */ 19 25 module.exports = function isGeneratorFunction(fn) { 20 26 if (typeof fn !== 'function') { 21 27 return false; 22 28 } 23 if (isFnRegex .test(fnToStr.call(fn))) {29 if (isFnRegex(fnToStr(fn))) { 24 30 return true; 25 31 } 26 32 if (!hasToStringTag) { 27 var str = toStr .call(fn);33 var str = toStr(fn); 28 34 return str === '[object GeneratorFunction]'; 29 35 } … … 33 39 if (typeof GeneratorFunction === 'undefined') { 34 40 var generatorFunc = getGeneratorFunc(); 35 GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false; 41 GeneratorFunction = generatorFunc 42 // eslint-disable-next-line no-extra-parens 43 ? /** @type {GeneratorFunctionConstructor} */ (getProto(generatorFunc)) 44 : false; 36 45 } 37 46 return getProto(fn) === GeneratorFunction; -
imaps-frontend/node_modules/is-generator-function/package.json
r0c6b92a r79a0317 1 1 { 2 "name": "is-generator-function", 3 "version": "1.0.10", 4 "description": "Determine if a function is a native generator function.", 5 "main": "index.js", 6 "scripts": { 7 "prepublishOnly": "safe-publish-latest", 8 "prepublish": "not-in-publish || npm run prepublishOnly", 9 "pretest": "npm run lint", 10 "test": "npm run tests-only", 11 "tests-only": "nyc npm run test:all", 12 "test:all": "npm run test:index && npm run test:corejs && npm run test:uglified", 13 "test:harmony": "node --es-staging --harmony test && node --es-staging --harmony test/corejs && node --es-staging --harmony test/uglified", 14 "test:index": "node test", 15 "test:corejs": "node test/corejs", 16 "test:uglified": "node test/uglified", 17 "posttest": "aud --production", 18 "lint": "eslint .", 19 "version": "auto-changelog && git add CHANGELOG.md", 20 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" 21 }, 22 "repository": { 23 "type": "git", 24 "url": "git://github.com/inspect-js/is-generator-function.git" 25 }, 26 "keywords": [ 27 "generator", 28 "generator function", 29 "es6", 30 "es2015", 31 "yield", 32 "function", 33 "function*" 34 ], 35 "author": "Jordan Harband <ljharb@gmail.com>", 36 "funding": { 37 "url": "https://github.com/sponsors/ljharb" 38 }, 39 "license": "MIT", 40 "bugs": { 41 "url": "https://github.com/inspect-js/is-generator-function/issues" 42 }, 43 "dependencies": { 44 "has-tostringtag": "^1.0.0" 45 }, 46 "devDependencies": { 47 "@ljharb/eslint-config": "^17.6.0", 48 "aud": "^1.1.5", 49 "auto-changelog": "^2.3.0", 50 "core-js": "^2.6.5 || ^3.16.0", 51 "eslint": "^7.32.0", 52 "make-generator-function": "^2.0.0", 53 "nyc": "^10.3.2", 54 "safe-publish-latest": "^1.1.4", 55 "tape": "^5.3.0", 56 "uglify-register": "^1.0.1" 57 }, 58 "testling": { 59 "files": "test/index.js", 60 "browsers": [ 61 "iexplore/6.0..latest", 62 "firefox/3.0..6.0", 63 "firefox/15.0..latest", 64 "firefox/nightly", 65 "chrome/4.0..10.0", 66 "chrome/20.0..latest", 67 "chrome/canary", 68 "opera/10.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 } 2 "_from": "is-generator-function@^1.0.10", 3 "_id": "is-generator-function@1.1.0", 4 "_inBundle": false, 5 "_integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", 6 "_location": "/is-generator-function", 7 "_phantomChildren": {}, 8 "_requested": { 9 "type": "range", 10 "registry": true, 11 "raw": "is-generator-function@^1.0.10", 12 "name": "is-generator-function", 13 "escapedName": "is-generator-function", 14 "rawSpec": "^1.0.10", 15 "saveSpec": null, 16 "fetchSpec": "^1.0.10" 17 }, 18 "_requiredBy": [ 19 "/which-builtin-type" 20 ], 21 "_resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", 22 "_shasum": "bf3eeda931201394f57b5dba2800f91a238309ca", 23 "_spec": "is-generator-function@^1.0.10", 24 "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/which-builtin-type", 25 "author": { 26 "name": "Jordan Harband", 27 "email": "ljharb@gmail.com" 28 }, 29 "auto-changelog": { 30 "output": "CHANGELOG.md", 31 "template": "keepachangelog", 32 "unreleased": false, 33 "commitLimit": false, 34 "backfillLimit": false, 35 "hideCredit": true 36 }, 37 "bugs": { 38 "url": "https://github.com/inspect-js/is-generator-function/issues" 39 }, 40 "bundleDependencies": false, 41 "dependencies": { 42 "call-bound": "^1.0.3", 43 "get-proto": "^1.0.0", 44 "has-tostringtag": "^1.0.2", 45 "safe-regex-test": "^1.1.0" 46 }, 47 "deprecated": false, 48 "description": "Determine if a function is a native generator function.", 49 "devDependencies": { 50 "@arethetypeswrong/cli": "^0.17.2", 51 "@ljharb/eslint-config": "^21.1.1", 52 "@ljharb/tsconfig": "^0.2.3", 53 "@types/for-each": "^0.3.3", 54 "@types/make-generator-function": "^2.0.3", 55 "@types/tape": "^5.8.0", 56 "auto-changelog": "^2.5.0", 57 "core-js": "^2.6.5 || ^3.20.0", 58 "encoding": "^0.1.13", 59 "eslint": "=8.8.0", 60 "for-each": "^0.3.3", 61 "in-publish": "^2.0.1", 62 "make-generator-function": "^2.0.0", 63 "npmignore": "^0.3.1", 64 "nyc": "^10.3.2", 65 "safe-publish-latest": "^2.0.0", 66 "tape": "^5.9.0", 67 "typescript": "next", 68 "uglify-register": "^1.0.1" 69 }, 70 "engines": { 71 "node": ">= 0.4" 72 }, 73 "funding": { 74 "url": "https://github.com/sponsors/ljharb" 75 }, 76 "homepage": "https://github.com/inspect-js/is-generator-function#readme", 77 "keywords": [ 78 "generator", 79 "generator function", 80 "es6", 81 "es2015", 82 "yield", 83 "function", 84 "function*" 85 ], 86 "license": "MIT", 87 "main": "index.js", 88 "name": "is-generator-function", 89 "publishConfig": { 90 "ignore": [ 91 ".github/workflows" 92 ] 93 }, 94 "repository": { 95 "type": "git", 96 "url": "git://github.com/inspect-js/is-generator-function.git" 97 }, 98 "scripts": { 99 "lint": "eslint --ext=js,mjs .", 100 "postlint": "tsc && attw -P", 101 "posttest": "npx npm@\">= 10.2\" audit --production", 102 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", 103 "prepack": "npmignore --auto --commentLines=autogenerated", 104 "prepublish": "not-in-publish || npm run prepublishOnly", 105 "prepublishOnly": "safe-publish-latest", 106 "pretest": "npm run lint", 107 "test": "npm run tests-only", 108 "test:all": "npm run test:index && npm run test:corejs && npm run test:uglified", 109 "test:corejs": "node test/corejs", 110 "test:harmony": "node --es-staging --harmony test && node --es-staging --harmony test/corejs && node --es-staging --harmony test/uglified", 111 "test:index": "node test", 112 "test:uglified": "node test/uglified", 113 "tests-only": "nyc npm run test:all", 114 "version": "auto-changelog && git add CHANGELOG.md" 115 }, 116 "testling": { 117 "files": "test/index.js", 118 "browsers": [ 119 "iexplore/6.0..latest", 120 "firefox/3.0..6.0", 121 "firefox/15.0..latest", 122 "firefox/nightly", 123 "chrome/4.0..10.0", 124 "chrome/20.0..latest", 125 "chrome/canary", 126 "opera/10.0..latest", 127 "opera/next", 128 "safari/4.0..latest", 129 "ipad/6.0..latest", 130 "iphone/6.0..latest", 131 "android-browser/4.2" 132 ] 133 }, 134 "version": "1.1.0" 87 135 } -
imaps-frontend/node_modules/is-generator-function/test/corejs.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 // @ts-ignore 3 4 require('core-js'); 4 5 -
imaps-frontend/node_modules/is-generator-function/test/index.js
r0c6b92a r79a0317 4 4 5 5 var test = require('tape'); 6 var isGeneratorFunction = require('../index'); 6 7 7 var generatorFuncs = require('make-generator-function')(); 8 8 var hasToStringTag = require('has-tostringtag/shams')(); 9 var forEach = require('for-each'); 9 10 10 var forEach = function (arr, func) { 11 var i; 12 for (i = 0; i < arr.length; ++i) { 13 func(arr[i], i, arr); 14 } 15 }; 11 var isGeneratorFunction = require('../index'); 16 12 17 13 test('returns false for non-functions', function (t) { … … 63 59 test('returns false for non-generator function with faked @@toStringTag', { skip: !hasToStringTag || generatorFuncs.length === 0 }, function (t) { 64 60 var generatorFunc = generatorFuncs[0]; 61 /** @type {{ toString(): unknown; valueOf(): unknown; [Symbol.toStringTag]?: unknown; }} */ 65 62 var fakeGenFunction = { 66 63 toString: function () { return String(generatorFunc); }, -
imaps-frontend/node_modules/is-generator-function/test/uglified.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 // @ts-ignore 3 4 require('uglify-register/api').register({ 4 5 exclude: [/\/node_modules\//, /\/test\//],
Note:
See TracChangeset
for help on using the changeset viewer.