Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

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  
    2222                        "capIsNewExceptions": [
    2323                                "Call",
     24                                "CreateDataPropertyOrThrow",
    2425                                "CreateIteratorFromClosure",
    2526                                "CreateIterResultObject",
     
    3031                                "Get",
    3132                                "GetIntrinsic",
     33                                "GetIterator",
    3234                                "GetIteratorDirect",
    3335                                "GetIteratorFlattenable",
    3436                                "GetMethod",
     37                                "GetOptionsObject",
     38                                "IfAbruptCloseIterators",
     39                                "IsAccessorDescriptor",
    3540                                "IsArray",
    3641                                "IsCallable",
     42                                "IsDataDescriptor",
    3743                                "IteratorClose",
     44                                "IteratorCloseAll",
     45                                "IteratorStep",
    3846                                "IteratorStepValue",
    39                                 "IteratorStep",
     47                                "IteratorZip",
    4048                                "NormalCompletion",
    4149                                "OrdinaryHasInstance",
    4250                                "OrdinaryObjectCreate",
     51                                "ReturnCompletion",
    4352                                "StringToCodePoints",
    4453                                "ThrowCompletion",
     
    6473                        },
    6574                },
     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                },
    6689        ],
    6790}
  • imaps-frontend/node_modules/es-iterator-helpers/CHANGELOG.md

    rd565449 r0c6b92a  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and 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)
    729
    830## [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  
    1717        }
    1818
    19         var iteratorRecord = GetIteratorFlattenable(O, 'iterate-strings'); // step 1
     19        var iteratorRecord = GetIteratorFlattenable(O, 'ITERATE-STRINGS'); // step 1
    2020
    2121        var hasInstance = OrdinaryHasInstance($Iterator, iteratorRecord['[[Iterator]]']); // step 2
  • imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.drop/implementation.js

    rd565449 r0c6b92a  
    8686        SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation
    8787
    88         var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator]]']); // step 4
     88        var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 4
    8989
    90         SLOT.set(result, '[[UnderlyingIterator]]', iterated); // step 5
     90        SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 5
    9191
    9292        return result; // step 6
  • imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.filter/implementation.js

    rd565449 r0c6b92a  
    7373        SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation
    7474
    75         var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator]]']); // step 7
     75        var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 7
    7676
    77         SLOT.set(result, '[[UnderlyingIterator]]', iterated); // step 8
     77        SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 8
    7878
    7979        return result; // step 9
  • imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.flatMap/implementation.js

    rd565449 r0c6b92a  
    7777                                var mapped = Call(mapper, void undefined, [value, counter]); // step 5.b.iv
    7878                                // yield mapped // step 5.b.vi
    79                                 innerIterator = GetIteratorFlattenable(mapped, 'reject-strings'); // step 5.b.vi
     79                                innerIterator = GetIteratorFlattenable(mapped, 'REJECT-STRINGS'); // step 5.b.vi
    8080                        } catch (e) {
    8181                                innerAlive = false;
     
    111111        SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation
    112112
    113         var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator]]']); // step 7
     113        var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 7
    114114
    115         SLOT.set(result, '[[UnderlyingIterator]]', iterated); // step 8
     115        SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 8
    116116
    117117        return result; // step 9
  • imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.map/implementation.js

    rd565449 r0c6b92a  
    6969        SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation
    7070
    71         var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator]]']); // step 7
     71        var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 7
    7272
    73         SLOT.set(result, '[[UnderlyingIterator]]', iterated); // step 8
     73        SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 8
    7474
    7575        return result; // step 9
  • imaps-frontend/node_modules/es-iterator-helpers/Iterator.prototype.take/implementation.js

    rd565449 r0c6b92a  
    7777        SLOT.set(closure, '[[CloseIfAbrupt]]', closeIfAbrupt); // for the userland implementation
    7878
    79         var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterator]]']); // step 7
     79        var result = CreateIteratorFromClosure(closure, 'Iterator Helper', iterHelperProto, ['[[UnderlyingIterators]]']); // step 7
    8080
    81         SLOT.set(result, '[[UnderlyingIterator]]', iterated); // step 8
     81        SLOT.set(result, '[[UnderlyingIterators]]', [iterated]); // step 8
    8282
    8383        return result; // step 9
  • imaps-frontend/node_modules/es-iterator-helpers/IteratorHelperPrototype/index.js

    rd565449 r0c6b92a  
    66var SLOT = require('internal-slot');
    77
    8 var CompletionRecord = require('es-abstract/2024/CompletionRecord');
    98var CreateIterResultObject = require('es-abstract/2024/CreateIterResultObject');
    109var GeneratorResume = require('../aos/GeneratorResume');
    1110var GeneratorResumeAbrupt = require('../aos/GeneratorResumeAbrupt');
    12 var IteratorClose = require('es-abstract/2024/IteratorClose');
     11var IteratorCloseAll = require('../aos/IteratorCloseAll');
    1312var NormalCompletion = require('es-abstract/2024/NormalCompletion');
     13var ReturnCompletion = require('../aos/ReturnCompletion');
    1414
    1515var implementation;
     
    2323                        var O = this; // step 1
    2424
    25                         SLOT.assert(O, '[[UnderlyingIterator]]'); // step 2
     25                        SLOT.assert(O, '[[UnderlyingIterators]]'); // step 2
    2626
    2727                        SLOT.assert(O, '[[GeneratorState]]'); // step 3
     
    2929                        if (SLOT.get(O, '[[GeneratorState]]') === 'suspendedStart') { // step 4
    3030                                SLOT.set(O, '[[GeneratorState]]', 'completed'); // step 4.a
    31                                 IteratorClose(SLOT.get(O, '[[UnderlyingIterator]]'), NormalCompletion('unused')); // step 4.c
     31                                IteratorCloseAll(SLOT.get(O, '[[UnderlyingIterators]]'), NormalCompletion('unused')); // step 4.c
    3232                                return CreateIterResultObject(void undefined, true); // step 4.d
    3333                        }
    3434
    35                         var C = new CompletionRecord('return', void undefined); // step 5
     35                        var C = ReturnCompletion(void undefined); // step 5
    3636
    3737                        return GeneratorResumeAbrupt(O, C, 'Iterator Helper'); // step 6
     
    4848        };
    4949        implementation['return'] = function () {
    50                 var C = new CompletionRecord('return', void undefined); // step 1
     50                var C = ReturnCompletion(void undefined); // step 1
    5151                return GeneratorResumeAbrupt(this, C, 'Iterator Helper');
    5252        };
  • imaps-frontend/node_modules/es-iterator-helpers/README.md

    rd565449 r0c6b92a  
    1010An ESnext spec-compliant sync iterator helpers shim/polyfill/replacement that works as far down as ES3.
    1111
    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).
     12This 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/).
    1313
    14 Because the `Iterator.prototype` methods depend on a receiver (the `this` value), the main export in each subdirectory takes the string to operate on as the first argument.
     14Because 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.
    1515
    1616The 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.
     
    2020 - [`Iterator` constructor](https://tc39.es/proposal-iterator-helpers/#sec-iterator-constructor)
    2121 - [`Iterator.prototype`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.prototype)
     22 - [`Iterator.concat`](https://tc39.es/proposal-iterator-sequencing/)
    2223 - [`Iterator.from`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.from)
    2324 - [`Iterator.prototype.constructor`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.constructor)
     
    3839 - node v22, Chrome >= v122: has a [bug](https://issues.chromium.org/issues/336839115)
    3940 - node < v22, Chrome < v122, Safari <= v17.1, Firefox <= v125: not implemented
     41 - all environments lack Iterator.concat
    4042
    4143## Getting started
     
    4648
    4749## Usage/Examples
     50
     51Using explicit imports:
    4852
    4953```js
     
    6872```
    6973
     74Shim using `require`:
     75
    7076```js
    71 require('./auto'); // shim all of the methods
     77require('es-iterator-helpers/auto'); // shim all of the methods
    7278
    73 require('./Iterator.prototype.map/auto'); // shim the “map” method
     79require('es-iterator-helpers/Iterator.prototype.map/auto'); // shim the “map” method
     80```
     81
     82Shim using `import` syntax:
     83
     84[](#preventEval)
     85```js
     86import 'es-iterator-helpers/auto'; // shim all of the methods
     87
     88import 'es-iterator-helpers/Iterator.prototype.map/auto'; // shim the “map” method
    7489```
    7590
  • imaps-frontend/node_modules/es-iterator-helpers/aos/GetIteratorFlattenable.js

    rd565449 r0c6b92a  
    1212var getIteratorMethod = require('es-abstract/helpers/getIteratorMethod');
    1313
     14// https://tc39.es/proposal-iterator-helpers/#sec-getiteratorflattenable
     15
    1416module.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
    1521        if (Type(obj) !== 'Object') {
    16                 if (stringHandling === 'reject-strings' || typeof obj !== 'string') {
     22                if (stringHandling === 'REJECT-STRINGS' || typeof obj !== 'string') {
    1723                        throw new $TypeError('obj must be an Object'); // step 1.a
    1824                }
  • imaps-frontend/node_modules/es-iterator-helpers/index.json

    rd565449 r0c6b92a  
    11[
    22        "Iterator",
     3        "Iterator.concat",
    34        "Iterator.from",
     5        "Iterator.zip",
     6        "Iterator.zipKeyed",
    47        "Iterator.prototype",
    58        "Iterator.prototype.constructor",
  • imaps-frontend/node_modules/es-iterator-helpers/package.json

    rd565449 r0c6b92a  
    11{
    22        "name": "es-iterator-helpers",
    3         "version": "1.0.19",
     3        "version": "1.2.0",
    44        "description": "An ESnext spec-compliant iterator helpers shim/polyfill/replacement that works as far down as ES3.",
    55        "main": "index.json",
     
    1818                "./Iterator.prototype/implementation": "./Iterator.prototype/implementation.js",
    1919                "./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",
    2025                "./Iterator.from": "./Iterator.from/index.js",
    2126                "./Iterator.from/auto": "./Iterator.from/auto.js",
     
    2328                "./Iterator.from/implementation": "./Iterator.from/implementation.js",
    2429                "./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",
    2540                "./Iterator.prototype.constructor": "./Iterator.prototype.constructor/index.js",
    2641                "./Iterator.prototype.constructor/auto": "./Iterator.prototype.constructor/auto.js",
     
    89104                "prepublishOnly": "safe-publish-latest",
    90105                "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",
    92107                "lint": "eslint --ext=js,mjs .",
    93108                "postlint": "evalmd README.md",
     
    95110                "test": "npm run tests-only",
    96111                "tests-only": "nyc tape 'test/**/*.js'",
    97                 "posttest": "aud --production",
     112                "posttest": "npx npm@'>=10.2' audit --production",
    98113                "version": "auto-changelog && git add CHANGELOG.md",
    99114                "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
     
    139154                "function-bind": "^1.1.2",
    140155                "get-intrinsic": "^1.2.4",
    141                 "globalthis": "^1.0.3",
     156                "globalthis": "^1.0.4",
     157                "gopd": "^1.0.1",
    142158                "has-property-descriptors": "^1.0.2",
    143159                "has-proto": "^1.0.3",
    144160                "has-symbols": "^1.0.3",
    145161                "internal-slot": "^1.0.7",
    146                 "iterator.prototype": "^1.1.2",
     162                "iterator.prototype": "^1.1.3",
    147163                "safe-array-concat": "^1.1.2"
    148164        },
    149165        "devDependencies": {
    150                 "@es-shims/api": "^2.4.2",
    151                 "@ljharb/eslint-config": "^21.1.0",
    152                 "aud": "^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",
    155171                "eslint": "=8.8.0",
    156                 "eslint-plugin-import": "^2.29.1",
     172                "eslint-plugin-import": "^2.31.0",
    157173                "evalmd": "^0.0.19",
    158174                "for-each": "^0.3.3",
     
    163179                "iterate-iterator": "^1.0.2",
    164180                "make-generator-function": "^2.0.0",
    165                 "mock-property": "^1.0.3",
     181                "mock-property": "^1.1.0",
    166182                "npmignore": "^0.3.1",
    167183                "nyc": "^10.3.2",
    168                 "object-inspect": "^1.13.1",
     184                "object-inspect": "^1.13.2",
    169185                "safe-publish-latest": "^2.0.0",
    170                 "tape": "^5.7.5"
     186                "tape": "^5.9.0"
    171187        },
    172188        "auto-changelog": {
  • imaps-frontend/node_modules/es-iterator-helpers/shim.js

    rd565449 r0c6b92a  
    33var shimIterator = require('./Iterator/shim');
    44var shimIteratorFrom = require('./Iterator.from/shim');
     5var shimIteratorConcat = require('./Iterator.concat/shim');
     6var shimZip = require('./Iterator.zip/shim');
     7var shimZipKeyed = require('./Iterator.zipKeyed/shim');
    58var shimIteratorProto = require('./Iterator.prototype/shim');
    69var shimIteratorCtor = require('./Iterator.prototype.constructor/shim');
     
    1922module.exports = function shimIteratorHelpers() {
    2023        shimIterator();
     24        shimIteratorProto();
    2125        shimIteratorFrom();
    22         shimIteratorProto();
     26        shimIteratorConcat();
     27        shimZip();
     28        shimZipKeyed();
    2329        shimIteratorCtor();
    2430        shimIteratorDrop();
  • imaps-frontend/node_modules/es-iterator-helpers/test/Iterator.from.js

    rd565449 r0c6b92a  
    101101                        st.test('real iterators', { skip: !hasSymbols }, function (s2t) {
    102102                                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                                );
    104111
    105112                                s2t.end();
Note: See TracChangeset for help on using the changeset viewer.