Changeset 0c6b92a for imaps-frontend/node_modules/es-iterator-helpers
- Timestamp:
- 12/12/24 17:06:06 (5 weeks ago)
- Branches:
- main
- Parents:
- d565449
- Location:
- imaps-frontend/node_modules/es-iterator-helpers
- Files:
-
- 22 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-iterator-helpers/.eslintrc
rd565449 r0c6b92a 22 22 "capIsNewExceptions": [ 23 23 "Call", 24 "CreateDataPropertyOrThrow", 24 25 "CreateIteratorFromClosure", 25 26 "CreateIterResultObject", … … 30 31 "Get", 31 32 "GetIntrinsic", 33 "GetIterator", 32 34 "GetIteratorDirect", 33 35 "GetIteratorFlattenable", 34 36 "GetMethod", 37 "GetOptionsObject", 38 "IfAbruptCloseIterators", 39 "IsAccessorDescriptor", 35 40 "IsArray", 36 41 "IsCallable", 42 "IsDataDescriptor", 37 43 "IteratorClose", 44 "IteratorCloseAll", 45 "IteratorStep", 38 46 "IteratorStepValue", 39 "Iterator Step",47 "IteratorZip", 40 48 "NormalCompletion", 41 49 "OrdinaryHasInstance", 42 50 "OrdinaryObjectCreate", 51 "ReturnCompletion", 43 52 "StringToCodePoints", 44 53 "ThrowCompletion", … … 64 73 }, 65 74 }, 75 { 76 "files": "Iterator.zip*/implementation.js", 77 "rules": { 78 "complexity": "off", 79 "max-depth": "off", 80 }, 81 }, 82 { 83 "files": "aos/IteratorZip.js", 84 "rules": { 85 "max-depth": "off", 86 "max-params": "off", 87 }, 88 }, 66 89 ], 67 90 } -
imaps-frontend/node_modules/es-iterator-helpers/CHANGELOG.md
rd565449 r0c6b92a 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.2.0](https://github.com/es-shims/iterator-helpers/compare/v1.1.0...v1.2.0) - 2024-11-04 9 10 ### Commits 11 12 - [New] add `Iterator.zip`, `Iterator.zipKeyed` [`d11073f`](https://github.com/es-shims/iterator-helpers/commit/d11073fd27fcdaf696c3d9b00634b6a5144f75b1) 13 - [Fix] `concat`: add missing slot for `.return`; convert singular slot to plural slot [`cc4b586`](https://github.com/es-shims/iterator-helpers/commit/cc4b586cdb0ad6ba540043077c3d71ff79d528cd) 14 - [Dev Deps] update `@es-shims/api` [`dd14f1b`](https://github.com/es-shims/iterator-helpers/commit/dd14f1b9f06c37f3bcb0a20bacd6e7f031c0724d) 15 16 ## [v1.1.0](https://github.com/es-shims/iterator-helpers/compare/v1.0.19...v1.1.0) - 2024-10-09 17 18 ### Commits 19 20 - [New] add `Iterator.concat` [`1c07c21`](https://github.com/es-shims/iterator-helpers/commit/1c07c21d42fa6f3de516191a2b7fb848679314e7) 21 - [readme] add ESM and CJS examples [`ae0b60c`](https://github.com/es-shims/iterator-helpers/commit/ae0b60cae42a5e6174809859e29d16085042e3b2) 22 - [Dev Deps] update `@es-shims/api`, `auto-changelog`, `es-value-fixtures`, `eslint-plugin-import`, `tape` [`bd34766`](https://github.com/es-shims/iterator-helpers/commit/bd34766d527cc625dcbc242297290a793f21b055) 23 - [Dev Deps] update `@ljharb/eslint-config`, `mock-property`, `object-inspect`, `tape` [`2016080`](https://github.com/es-shims/iterator-helpers/commit/201608082a32bc1fa114c012eeb72744e1bf5bfa) 24 - [readme] fix copy-paste errors [`799255c`](https://github.com/es-shims/iterator-helpers/commit/799255ce358f9f19ab54cc2377aafb404463d917) 25 - [Tests] replace `aud` with `npm audit` [`4c48a77`](https://github.com/es-shims/iterator-helpers/commit/4c48a77d90a6894863ad160fd0f88b3fc76653b6) 26 - [Deps] update `globalthis` [`14d9e97`](https://github.com/es-shims/iterator-helpers/commit/14d9e971f976da482cbb7ee76b583db9ce17e056) 27 - [Dev Deps] update `@es-shims/api` [`15d84bb`](https://github.com/es-shims/iterator-helpers/commit/15d84bbbe1864dfd028f30f98251cbdf19e74908) 28 - [Dev Deps] add missing peer dep [`34559b9`](https://github.com/es-shims/iterator-helpers/commit/34559b9a263dfbc3551fd0ff586639692c04e514) 7 29 8 30 ## [v1.0.19](https://github.com/es-shims/iterator-helpers/compare/v1.0.18...v1.0.19) - 2024-04-24 -
imaps-frontend/node_modules/es-iterator-helpers/Iterator.from/implementation.js
rd565449 r0c6b92a 17 17 } 18 18 19 var iteratorRecord = GetIteratorFlattenable(O, ' iterate-strings'); // step 119 var iteratorRecord = GetIteratorFlattenable(O, 'ITERATE-STRINGS'); // step 1 20 20 21 21 var hasInstance = OrdinaryHasInstance($Iterator, iteratorRecord['[[Iterator]]']); // step 2 -
imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.drop/implementation.js
rd565449 r0c6b92a 86 86 SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation 87 87 88 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator ]]']); // step 488 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 4 89 89 90 SLOT.set(result, '[[UnderlyingIterator ]]', iterated); // step 590 SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 5 91 91 92 92 return result; // step 6 -
imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.filter/implementation.js
rd565449 r0c6b92a 73 73 SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation 74 74 75 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator ]]']); // step 775 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 7 76 76 77 SLOT.set(result, '[[UnderlyingIterator ]]', iterated); // step 877 SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 8 78 78 79 79 return result; // step 9 -
imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.flatMap/implementation.js
rd565449 r0c6b92a 77 77 var mapped = Call(mapper, void undefined, [value, counter]); // step 5.b.iv 78 78 // yield mapped // step 5.b.vi 79 innerIterator = GetIteratorFlattenable(mapped, ' reject-strings'); // step 5.b.vi79 innerIterator = GetIteratorFlattenable(mapped, 'REJECT-STRINGS'); // step 5.b.vi 80 80 } catch (e) { 81 81 innerAlive = false; … … 111 111 SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation 112 112 113 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator ]]']); // step 7113 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 7 114 114 115 SLOT.set(result, '[[UnderlyingIterator ]]', iterated); // step 8115 SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 8 116 116 117 117 return result; // step 9 -
imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.map/implementation.js
rd565449 r0c6b92a 69 69 SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation 70 70 71 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator ]]']); // step 771 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 7 72 72 73 SLOT.set(result, '[[UnderlyingIterator ]]', iterated); // step 873 SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 8 74 74 75 75 return result; // step 9 -
imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.take/implementation.js
rd565449 r0c6b92a 77 77 SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation 78 78 79 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator ]]']); // step 779 var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 7 80 80 81 SLOT.set(result, '[[UnderlyingIterator ]]', iterated); // step 881 SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 8 82 82 83 83 return result; // step 9 -
imaps-frontend/node_modules/es-iterator-helpers/IteratorHelperPrototype/index.js
rd565449 r0c6b92a 6 6 var SLOT = require('internal-slot'); 7 7 8 var CompletionRecord = require('es-abstract/2024/CompletionRecord');9 8 var CreateIterResultObject = require('es-abstract/2024/CreateIterResultObject'); 10 9 var GeneratorResume = require('../aos/GeneratorResume'); 11 10 var GeneratorResumeAbrupt = require('../aos/GeneratorResumeAbrupt'); 12 var IteratorClose = require('es-abstract/2024/IteratorClose');11 var IteratorCloseAll = require('../aos/IteratorCloseAll'); 13 12 var NormalCompletion = require('es-abstract/2024/NormalCompletion'); 13 var ReturnCompletion = require('../aos/ReturnCompletion'); 14 14 15 15 var implementation; … … 23 23 var O = this; // step 1 24 24 25 SLOT.assert(O, '[[UnderlyingIterator ]]'); // step 225 SLOT.assert(O, '[[UnderlyingIterators]]'); // step 2 26 26 27 27 SLOT.assert(O, '[[GeneratorState]]'); // step 3 … … 29 29 if (SLOT.get(O, '[[GeneratorState]]') === 'suspendedStart') { // step 4 30 30 SLOT.set(O, '[[GeneratorState]]', 'completed'); // step 4.a 31 IteratorClose (SLOT.get(O, '[[UnderlyingIterator]]'), NormalCompletion('unused')); // step 4.c31 IteratorCloseAll(SLOT.get(O, '[[UnderlyingIterators]]'), NormalCompletion('unused')); // step 4.c 32 32 return CreateIterResultObject(void undefined, true); // step 4.d 33 33 } 34 34 35 var C = new CompletionRecord('return',void undefined); // step 535 var C = ReturnCompletion(void undefined); // step 5 36 36 37 37 return GeneratorResumeAbrupt(O, C, 'Iterator Helper'); // step 6 … … 48 48 }; 49 49 implementation['return'] = function () { 50 var C = new CompletionRecord('return',void undefined); // step 150 var C = ReturnCompletion(void undefined); // step 1 51 51 return GeneratorResumeAbrupt(this, C, 'Iterator Helper'); 52 52 }; -
imaps-frontend/node_modules/es-iterator-helpers/README.md
rd565449 r0c6b92a 10 10 An ESnext spec-compliant sync iterator helpers shim/polyfill/replacement that works as far down as ES3. 11 11 12 This package implements the [es-shim API](https://github.com/es-shims/api) “multi” interface. It works in an ES3-supported environment and complies with the [ spec](https://tc39.es/ecma262/#sec-additional-properties-of-the-string.prototype-object).12 This package implements the [es-shim API](https://github.com/es-shims/api) “multi” interface. It works in an ES3-supported environment and complies with the [iterator helpers spec](https://tc39.es/proposal-iterator-helpers/) and the [iterator sequencing spec](https://tc39.es/proposal-iterator-sequencing/). 13 13 14 Because the `Iterator.prototype` methods depend on a receiver (the `this` value), the main export in each subdirectory takes the stringto operate on as the first argument.14 Because the `Iterator.prototype` methods depend on a receiver (the `this` value), the main export in each subdirectory takes the iterator to operate on as the first argument. 15 15 16 16 The main export of the package itself is simply an array of the available directory names. It’s sole intended use is for build tooling and testing. … … 20 20 - [`Iterator` constructor](https://tc39.es/proposal-iterator-helpers/#sec-iterator-constructor) 21 21 - [`Iterator.prototype`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.prototype) 22 - [`Iterator.concat`](https://tc39.es/proposal-iterator-sequencing/) 22 23 - [`Iterator.from`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.from) 23 24 - [`Iterator.prototype.constructor`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.constructor) … … 38 39 - node v22, Chrome >= v122: has a [bug](https://issues.chromium.org/issues/336839115) 39 40 - node < v22, Chrome < v122, Safari <= v17.1, Firefox <= v125: not implemented 41 - all environments lack Iterator.concat 40 42 41 43 ## Getting started … … 46 48 47 49 ## Usage/Examples 50 51 Using explicit imports: 48 52 49 53 ```js … … 68 72 ``` 69 73 74 Shim using `require`: 75 70 76 ```js 71 require(' ./auto'); // shim all of the methods77 require('es-iterator-helpers/auto'); // shim all of the methods 72 78 73 require('./Iterator.prototype.map/auto'); // shim the “map” method 79 require('es-iterator-helpers/Iterator.prototype.map/auto'); // shim the “map” method 80 ``` 81 82 Shim using `import` syntax: 83 84 [](#preventEval) 85 ```js 86 import 'es-iterator-helpers/auto'; // shim all of the methods 87 88 import 'es-iterator-helpers/Iterator.prototype.map/auto'; // shim the “map” method 74 89 ``` 75 90 -
imaps-frontend/node_modules/es-iterator-helpers/aos/GetIteratorFlattenable.js
rd565449 r0c6b92a 12 12 var getIteratorMethod = require('es-abstract/helpers/getIteratorMethod'); 13 13 14 // https://tc39.es/proposal-iterator-helpers/#sec-getiteratorflattenable 15 14 16 module.exports = function GetIteratorFlattenable(obj, stringHandling) { 17 if (stringHandling !== 'REJECT-STRINGS' && stringHandling !== 'ITERATE-STRINGS') { 18 throw new $TypeError('Assertion failed: `stringHandling` must be "REJECT-STRINGS" or "ITERATE-STRINGS"'); 19 } 20 15 21 if (Type(obj) !== 'Object') { 16 if (stringHandling === ' reject-strings' || typeof obj !== 'string') {22 if (stringHandling === 'REJECT-STRINGS' || typeof obj !== 'string') { 17 23 throw new $TypeError('obj must be an Object'); // step 1.a 18 24 } -
imaps-frontend/node_modules/es-iterator-helpers/index.json
rd565449 r0c6b92a 1 1 [ 2 2 "Iterator", 3 "Iterator.concat", 3 4 "Iterator.from", 5 "Iterator.zip", 6 "Iterator.zipKeyed", 4 7 "Iterator.prototype", 5 8 "Iterator.prototype.constructor", -
imaps-frontend/node_modules/es-iterator-helpers/package.json
rd565449 r0c6b92a 1 1 { 2 2 "name": "es-iterator-helpers", 3 "version": "1. 0.19",3 "version": "1.2.0", 4 4 "description": "An ESnext spec-compliant iterator helpers shim/polyfill/replacement that works as far down as ES3.", 5 5 "main": "index.json", … … 18 18 "./Iterator.prototype/implementation": "./Iterator.prototype/implementation.js", 19 19 "./Iterator.prototype/shim": "./Iterator.prototype/shim.js", 20 "./Iterator.concat": "./Iterator.concat/index.js", 21 "./Iterator.concat/auto": "./Iterator.concat/auto.js", 22 "./Iterator.concat/polyfill": "./Iterator.concat/polyfill.js", 23 "./Iterator.concat/implementation": "./Iterator.concat/implementation.js", 24 "./Iterator.concat/shim": "./Iterator.concat/shim.js", 20 25 "./Iterator.from": "./Iterator.from/index.js", 21 26 "./Iterator.from/auto": "./Iterator.from/auto.js", … … 23 28 "./Iterator.from/implementation": "./Iterator.from/implementation.js", 24 29 "./Iterator.from/shim": "./Iterator.from/shim.js", 30 "./Iterator.zip": "./Iterator.zip/index.js", 31 "./Iterator.zip/auto": "./Iterator.zip/auto.js", 32 "./Iterator.zip/polyfill": "./Iterator.zip/polyfill.js", 33 "./Iterator.zip/implementation": "./Iterator.zip/implementation.js", 34 "./Iterator.zip/shim": "./Iterator.zip/shim.js", 35 "./Iterator.zipKeyed": "./Iterator.zipKeyed/index.js", 36 "./Iterator.zipKeyed/auto": "./Iterator.zipKeyed/auto.js", 37 "./Iterator.zipKeyed/polyfill": "./Iterator.zipKeyed/polyfill.js", 38 "./Iterator.zipKeyed/implementation": "./Iterator.zipKeyed/implementation.js", 39 "./Iterator.zipKeyed/shim": "./Iterator.zipKeyed/shim.js", 25 40 "./Iterator.prototype.constructor": "./Iterator.prototype.constructor/index.js", 26 41 "./Iterator.prototype.constructor/auto": "./Iterator.prototype.constructor/auto.js", … … 89 104 "prepublishOnly": "safe-publish-latest", 90 105 "prepublish": "not-in-publish || npm run prepublishOnly", 91 "prelint": "es-shim-api -- bound --multi --ignore-dirs=WrapForValidIteratorPrototype,IteratorHelperPrototype",106 "prelint": "es-shim-api --type=multi --ignore-dirs=WrapForValidIteratorPrototype,IteratorHelperPrototype", 92 107 "lint": "eslint --ext=js,mjs .", 93 108 "postlint": "evalmd README.md", … … 95 110 "test": "npm run tests-only", 96 111 "tests-only": "nyc tape 'test/**/*.js'", 97 "posttest": " aud--production",112 "posttest": "npx npm@'>=10.2' audit --production", 98 113 "version": "auto-changelog && git add CHANGELOG.md", 99 114 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" … … 139 154 "function-bind": "^1.1.2", 140 155 "get-intrinsic": "^1.2.4", 141 "globalthis": "^1.0.3", 156 "globalthis": "^1.0.4", 157 "gopd": "^1.0.1", 142 158 "has-property-descriptors": "^1.0.2", 143 159 "has-proto": "^1.0.3", 144 160 "has-symbols": "^1.0.3", 145 161 "internal-slot": "^1.0.7", 146 "iterator.prototype": "^1.1. 2",162 "iterator.prototype": "^1.1.3", 147 163 "safe-array-concat": "^1.1.2" 148 164 }, 149 165 "devDependencies": { 150 "@es-shims/api": "^ 2.4.2",151 "@ljharb/eslint-config": "^21.1. 0",152 "au d": "^2.0.4",153 " auto-changelog": "^2.4.0",154 "es-value-fixtures": "^1. 4.2",166 "@es-shims/api": "^3.0.1", 167 "@ljharb/eslint-config": "^21.1.1", 168 "auto-changelog": "^2.5.0", 169 "encoding": "^0.1.13", 170 "es-value-fixtures": "^1.5.0", 155 171 "eslint": "=8.8.0", 156 "eslint-plugin-import": "^2. 29.1",172 "eslint-plugin-import": "^2.31.0", 157 173 "evalmd": "^0.0.19", 158 174 "for-each": "^0.3.3", … … 163 179 "iterate-iterator": "^1.0.2", 164 180 "make-generator-function": "^2.0.0", 165 "mock-property": "^1. 0.3",181 "mock-property": "^1.1.0", 166 182 "npmignore": "^0.3.1", 167 183 "nyc": "^10.3.2", 168 "object-inspect": "^1.13. 1",184 "object-inspect": "^1.13.2", 169 185 "safe-publish-latest": "^2.0.0", 170 "tape": "^5. 7.5"186 "tape": "^5.9.0" 171 187 }, 172 188 "auto-changelog": { -
imaps-frontend/node_modules/es-iterator-helpers/shim.js
rd565449 r0c6b92a 3 3 var shimIterator = require('./Iterator/shim'); 4 4 var shimIteratorFrom = require('./Iterator.from/shim'); 5 var shimIteratorConcat = require('./Iterator.concat/shim'); 6 var shimZip = require('./Iterator.zip/shim'); 7 var shimZipKeyed = require('./Iterator.zipKeyed/shim'); 5 8 var shimIteratorProto = require('./Iterator.prototype/shim'); 6 9 var shimIteratorCtor = require('./Iterator.prototype.constructor/shim'); … … 19 22 module.exports = function shimIteratorHelpers() { 20 23 shimIterator(); 24 shimIteratorProto(); 21 25 shimIteratorFrom(); 22 shimIteratorProto(); 26 shimIteratorConcat(); 27 shimZip(); 28 shimZipKeyed(); 23 29 shimIteratorCtor(); 24 30 shimIteratorDrop(); -
imaps-frontend/node_modules/es-iterator-helpers/test/Iterator.from.js
rd565449 r0c6b92a 101 101 st.test('real iterators', { skip: !hasSymbols }, function (s2t) { 102 102 var iter = [][Symbol.iterator](); 103 s2t.equal(from(iter), iter, 'array iterator becomes itself'); 103 // eslint-disable-next-line no-proto 104 var arrayIterHasIterProto = hasProto && iter.__proto__.__proto__ !== Object.prototype; 105 s2t.equal( 106 from(iter), 107 iter, 108 'array iterator becomes itself', 109 { skip: !arrayIterHasIterProto && 'node 0.12 - 3 do not have Iterator.prototype in the proto chains' } 110 ); 104 111 105 112 s2t.end();
Note:
See TracChangeset
for help on using the changeset viewer.