mediawiki/extensions/AdvancedSearch (REL1_35)

sourcepatches
$ date
--- stdout ---
Thu Mar 23 19:33:57 UTC 2023

--- end ---
$ git clone file:///srv/git/mediawiki-extensions-AdvancedSearch.git repo --depth=1 -b REL1_35
--- stderr ---
Cloning into 'repo'...
--- stdout ---

--- end ---
$ git config user.name libraryupgrader
--- stdout ---

--- end ---
$ git config user.email tools.libraryupgrader@tools.wmflabs.org
--- stdout ---

--- end ---
$ git submodule update --init
--- stdout ---

--- end ---
$ grr init
--- stdout ---
Installed commit-msg hook.

--- end ---
$ git show-ref refs/heads/REL1_35
--- stdout ---
886bb6d723ea99537477f1db152199322543946e refs/heads/REL1_35

--- end ---
$ /usr/bin/npm audit --json --legacy-peer-deps
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {
    "ejs": {
      "name": "ejs",
      "severity": "critical",
      "isDirect": false,
      "via": [
        {
          "source": 1089270,
          "name": "ejs",
          "dependency": "ejs",
          "title": "ejs template injection vulnerability",
          "url": "https://github.com/advisories/GHSA-phwq-j96m-2c2q",
          "severity": "critical",
          "cwe": [
            "CWE-74"
          ],
          "cvss": {
            "score": 9.8,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
          },
          "range": "<3.1.7"
        }
      ],
      "effects": [
        "webdriverio"
      ],
      "range": "<3.1.7",
      "nodes": [
        "node_modules/ejs"
      ],
      "fixAvailable": {
        "name": "webdriverio",
        "version": "8.6.7",
        "isSemVerMajor": true
      }
    },
    "json5": {
      "name": "json5",
      "severity": "high",
      "isDirect": false,
      "via": [
        {
          "source": 1091148,
          "name": "json5",
          "dependency": "json5",
          "title": "Prototype Pollution in JSON5 via Parse Method",
          "url": "https://github.com/advisories/GHSA-9c47-m6qq-7p4h",
          "severity": "high",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 7.1,
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H"
          },
          "range": ">=2.0.0 <2.2.2"
        }
      ],
      "effects": [],
      "range": "2.0.0 - 2.2.1",
      "nodes": [
        "node_modules/json5"
      ],
      "fixAvailable": true
    },
    "minimist": {
      "name": "minimist",
      "severity": "critical",
      "isDirect": false,
      "via": [
        {
          "source": 1090098,
          "name": "minimist",
          "dependency": "minimist",
          "title": "Prototype Pollution in minimist",
          "url": "https://github.com/advisories/GHSA-vh95-rmgr-6w4m",
          "severity": "moderate",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 5.6,
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
          },
          "range": "<0.2.1"
        },
        {
          "source": 1091172,
          "name": "minimist",
          "dependency": "minimist",
          "title": "Prototype Pollution in minimist",
          "url": "https://github.com/advisories/GHSA-xvch-5gv4-984h",
          "severity": "critical",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 9.8,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
          },
          "range": "<0.2.4"
        }
      ],
      "effects": [
        "optimist"
      ],
      "range": "<=0.2.3",
      "nodes": [
        "node_modules/minimist"
      ],
      "fixAvailable": true
    },
    "optimist": {
      "name": "optimist",
      "severity": "critical",
      "isDirect": false,
      "via": [
        "minimist"
      ],
      "effects": [],
      "range": ">=0.6.0",
      "nodes": [
        "node_modules/optimist"
      ],
      "fixAvailable": true
    },
    "qs": {
      "name": "qs",
      "severity": "high",
      "isDirect": false,
      "via": [
        {
          "source": 1090135,
          "name": "qs",
          "dependency": "qs",
          "title": "qs vulnerable to Prototype Pollution",
          "url": "https://github.com/advisories/GHSA-hrpp-h998-j3pp",
          "severity": "high",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 7.5,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
          },
          "range": ">=6.5.0 <6.5.3"
        }
      ],
      "effects": [],
      "range": "6.5.0 - 6.5.2",
      "nodes": [
        "node_modules/qs"
      ],
      "fixAvailable": true
    },
    "request": {
      "name": "request",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        {
          "source": 1091459,
          "name": "request",
          "dependency": "request",
          "title": "Server-Side Request Forgery in Request",
          "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
          "severity": "moderate",
          "cwe": [
            "CWE-918"
          ],
          "cvss": {
            "score": 6.1,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
          },
          "range": "<=2.88.2"
        }
      ],
      "effects": [
        "webdriverio"
      ],
      "range": "*",
      "nodes": [
        "node_modules/request"
      ],
      "fixAvailable": {
        "name": "webdriverio",
        "version": "8.6.7",
        "isSemVerMajor": true
      }
    },
    "webdriverio": {
      "name": "webdriverio",
      "severity": "critical",
      "isDirect": true,
      "via": [
        "ejs",
        "optimist",
        "request"
      ],
      "effects": [],
      "range": "<=4.14.4",
      "nodes": [
        "node_modules/webdriverio"
      ],
      "fixAvailable": {
        "name": "webdriverio",
        "version": "8.6.7",
        "isSemVerMajor": true
      }
    }
  },
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 1,
      "high": 2,
      "critical": 4,
      "total": 7
    },
    "dependencies": {
      "prod": 1,
      "dev": 833,
      "optional": 0,
      "peer": 0,
      "peerOptional": 0,
      "total": 833
    }
  }
}

--- end ---
$ /usr/bin/composer install
--- stderr ---
No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 34 installs, 0 updates, 0 removals
  - Locking composer/semver (1.7.2)
  - Locking composer/spdx-licenses (1.5.7)
  - Locking composer/xdebug-handler (1.4.6)
  - Locking doctrine/deprecations (v1.0.0)
  - Locking felixfbecker/advanced-json-rpc (v3.2.1)
  - Locking mediawiki/mediawiki-codesniffer (v38.0.0)
  - Locking mediawiki/mediawiki-phan-config (0.10.2)
  - Locking mediawiki/minus-x (1.1.0)
  - Locking mediawiki/phan-taint-check-plugin (3.0.2)
  - Locking microsoft/tolerant-php-parser (v0.0.20)
  - Locking netresearch/jsonmapper (v2.1.0)
  - Locking phan/phan (2.6.1)
  - Locking php-parallel-lint/php-console-color (v0.3)
  - Locking php-parallel-lint/php-console-highlighter (v0.5)
  - Locking php-parallel-lint/php-parallel-lint (v1.2.0)
  - Locking phpdocumentor/reflection-common (2.2.0)
  - Locking phpdocumentor/reflection-docblock (5.3.0)
  - Locking phpdocumentor/type-resolver (1.7.0)
  - Locking phpstan/phpdoc-parser (1.16.1)
  - Locking psr/container (1.1.2)
  - Locking psr/log (1.1.4)
  - Locking sabre/event (5.1.4)
  - Locking squizlabs/php_codesniffer (3.6.1)
  - Locking symfony/console (v5.4.21)
  - Locking symfony/deprecation-contracts (v2.5.2)
  - Locking symfony/polyfill-ctype (v1.27.0)
  - Locking symfony/polyfill-intl-grapheme (v1.27.0)
  - Locking symfony/polyfill-intl-normalizer (v1.27.0)
  - Locking symfony/polyfill-mbstring (v1.27.0)
  - Locking symfony/polyfill-php73 (v1.27.0)
  - Locking symfony/polyfill-php80 (v1.27.0)
  - Locking symfony/service-contracts (v2.5.2)
  - Locking symfony/string (v5.4.21)
  - Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 34 installs, 0 updates, 0 removals
    0 [>---------------------------]    0 [->--------------------------]    0 [--->------------------------]  - Installing squizlabs/php_codesniffer (3.6.1): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
  - Installing composer/spdx-licenses (1.5.7): Extracting archive
  - Installing composer/semver (1.7.2): Extracting archive
  - Installing mediawiki/mediawiki-codesniffer (v38.0.0): Extracting archive
  - Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
  - Installing symfony/string (v5.4.21): Extracting archive
  - Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing symfony/service-contracts (v2.5.2): Extracting archive
  - Installing symfony/polyfill-php73 (v1.27.0): Extracting archive
  - Installing symfony/console (v5.4.21): Extracting archive
  - Installing sabre/event (5.1.4): Extracting archive
  - Installing netresearch/jsonmapper (v2.1.0): Extracting archive
  - Installing microsoft/tolerant-php-parser (v0.0.20): Extracting archive
  - Installing webmozart/assert (1.11.0): Extracting archive
  - Installing phpstan/phpdoc-parser (1.16.1): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing doctrine/deprecations (v1.0.0): Extracting archive
  - Installing phpdocumentor/type-resolver (1.7.0): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing composer/xdebug-handler (1.4.6): Extracting archive
  - Installing phan/phan (2.6.1): Extracting archive
  - Installing mediawiki/phan-taint-check-plugin (3.0.2): Extracting archive
  - Installing mediawiki/mediawiki-phan-config (0.10.2): Extracting archive
  - Installing mediawiki/minus-x (1.1.0): Extracting archive
  - Installing php-parallel-lint/php-console-color (v0.3): Extracting archive
  - Installing php-parallel-lint/php-console-highlighter (v0.5): Extracting archive
  - Installing php-parallel-lint/php-parallel-lint (v1.2.0): Extracting archive
  0/25 [>---------------------------]   0%
  9/25 [==========>-----------------]  36%
 19/25 [=====================>------]  76%
 25/25 [============================] 100%4 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
13 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
--- stdout ---

--- end ---
$ /usr/bin/npm audit --json --legacy-peer-deps
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {
    "ejs": {
      "name": "ejs",
      "severity": "critical",
      "isDirect": false,
      "via": [
        {
          "source": 1089270,
          "name": "ejs",
          "dependency": "ejs",
          "title": "ejs template injection vulnerability",
          "url": "https://github.com/advisories/GHSA-phwq-j96m-2c2q",
          "severity": "critical",
          "cwe": [
            "CWE-74"
          ],
          "cvss": {
            "score": 9.8,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
          },
          "range": "<3.1.7"
        }
      ],
      "effects": [
        "webdriverio"
      ],
      "range": "<3.1.7",
      "nodes": [
        "node_modules/ejs"
      ],
      "fixAvailable": {
        "name": "webdriverio",
        "version": "8.6.7",
        "isSemVerMajor": true
      }
    },
    "json5": {
      "name": "json5",
      "severity": "high",
      "isDirect": false,
      "via": [
        {
          "source": 1091148,
          "name": "json5",
          "dependency": "json5",
          "title": "Prototype Pollution in JSON5 via Parse Method",
          "url": "https://github.com/advisories/GHSA-9c47-m6qq-7p4h",
          "severity": "high",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 7.1,
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H"
          },
          "range": ">=2.0.0 <2.2.2"
        }
      ],
      "effects": [],
      "range": "2.0.0 - 2.2.1",
      "nodes": [
        "node_modules/json5"
      ],
      "fixAvailable": true
    },
    "minimist": {
      "name": "minimist",
      "severity": "critical",
      "isDirect": false,
      "via": [
        {
          "source": 1090098,
          "name": "minimist",
          "dependency": "minimist",
          "title": "Prototype Pollution in minimist",
          "url": "https://github.com/advisories/GHSA-vh95-rmgr-6w4m",
          "severity": "moderate",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 5.6,
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
          },
          "range": "<0.2.1"
        },
        {
          "source": 1091172,
          "name": "minimist",
          "dependency": "minimist",
          "title": "Prototype Pollution in minimist",
          "url": "https://github.com/advisories/GHSA-xvch-5gv4-984h",
          "severity": "critical",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 9.8,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
          },
          "range": "<0.2.4"
        }
      ],
      "effects": [
        "optimist"
      ],
      "range": "<=0.2.3",
      "nodes": [
        "node_modules/minimist"
      ],
      "fixAvailable": true
    },
    "optimist": {
      "name": "optimist",
      "severity": "critical",
      "isDirect": false,
      "via": [
        "minimist"
      ],
      "effects": [],
      "range": ">=0.6.0",
      "nodes": [
        "node_modules/optimist"
      ],
      "fixAvailable": true
    },
    "qs": {
      "name": "qs",
      "severity": "high",
      "isDirect": false,
      "via": [
        {
          "source": 1090135,
          "name": "qs",
          "dependency": "qs",
          "title": "qs vulnerable to Prototype Pollution",
          "url": "https://github.com/advisories/GHSA-hrpp-h998-j3pp",
          "severity": "high",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 7.5,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
          },
          "range": ">=6.5.0 <6.5.3"
        }
      ],
      "effects": [],
      "range": "6.5.0 - 6.5.2",
      "nodes": [
        "node_modules/qs"
      ],
      "fixAvailable": true
    },
    "request": {
      "name": "request",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        {
          "source": 1091459,
          "name": "request",
          "dependency": "request",
          "title": "Server-Side Request Forgery in Request",
          "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
          "severity": "moderate",
          "cwe": [
            "CWE-918"
          ],
          "cvss": {
            "score": 6.1,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
          },
          "range": "<=2.88.2"
        }
      ],
      "effects": [
        "webdriverio"
      ],
      "range": "*",
      "nodes": [
        "node_modules/request"
      ],
      "fixAvailable": {
        "name": "webdriverio",
        "version": "8.6.7",
        "isSemVerMajor": true
      }
    },
    "webdriverio": {
      "name": "webdriverio",
      "severity": "critical",
      "isDirect": true,
      "via": [
        "ejs",
        "optimist",
        "request"
      ],
      "effects": [],
      "range": "<=4.14.4",
      "nodes": [
        "node_modules/webdriverio"
      ],
      "fixAvailable": {
        "name": "webdriverio",
        "version": "8.6.7",
        "isSemVerMajor": true
      }
    }
  },
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 1,
      "high": 2,
      "critical": 4,
      "total": 7
    },
    "dependencies": {
      "prod": 1,
      "dev": 833,
      "optional": 0,
      "peer": 0,
      "peerOptional": 0,
      "total": 833
    }
  }
}

--- end ---
Attempting to npm audit fix
$ /usr/bin/npm audit fix --dry-run --only=dev --json --legacy-peer-deps
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
--- stdout ---
{
  "added": 874,
  "removed": 0,
  "changed": 0,
  "audited": 875,
  "funding": 83,
  "audit": {
    "auditReportVersion": 2,
    "vulnerabilities": {
      "ejs": {
        "name": "ejs",
        "severity": "critical",
        "isDirect": false,
        "via": [
          {
            "source": 1089270,
            "name": "ejs",
            "dependency": "ejs",
            "title": "ejs template injection vulnerability",
            "url": "https://github.com/advisories/GHSA-phwq-j96m-2c2q",
            "severity": "critical",
            "cwe": [
              "CWE-74"
            ],
            "cvss": {
              "score": 9.8,
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
            },
            "range": "<3.1.7"
          }
        ],
        "effects": [
          "webdriverio"
        ],
        "range": "<3.1.7",
        "nodes": [
          "node_modules/ejs"
        ],
        "fixAvailable": {
          "name": "webdriverio",
          "version": "8.6.7",
          "isSemVerMajor": true
        }
      },
      "json5": {
        "name": "json5",
        "severity": "high",
        "isDirect": false,
        "via": [
          {
            "source": 1091148,
            "name": "json5",
            "dependency": "json5",
            "title": "Prototype Pollution in JSON5 via Parse Method",
            "url": "https://github.com/advisories/GHSA-9c47-m6qq-7p4h",
            "severity": "high",
            "cwe": [
              "CWE-1321"
            ],
            "cvss": {
              "score": 7.1,
              "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H"
            },
            "range": ">=2.0.0 <2.2.2"
          }
        ],
        "effects": [],
        "range": "2.0.0 - 2.2.1",
        "nodes": [
          ""
        ],
        "fixAvailable": true
      },
      "minimist": {
        "name": "minimist",
        "severity": "critical",
        "isDirect": false,
        "via": [
          {
            "source": 1090098,
            "name": "minimist",
            "dependency": "minimist",
            "title": "Prototype Pollution in minimist",
            "url": "https://github.com/advisories/GHSA-vh95-rmgr-6w4m",
            "severity": "moderate",
            "cwe": [
              "CWE-1321"
            ],
            "cvss": {
              "score": 5.6,
              "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
            },
            "range": "<0.2.1"
          },
          {
            "source": 1091172,
            "name": "minimist",
            "dependency": "minimist",
            "title": "Prototype Pollution in minimist",
            "url": "https://github.com/advisories/GHSA-xvch-5gv4-984h",
            "severity": "critical",
            "cwe": [
              "CWE-1321"
            ],
            "cvss": {
              "score": 9.8,
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
            },
            "range": "<0.2.4"
          }
        ],
        "effects": [
          "optimist"
        ],
        "range": "<=0.2.3",
        "nodes": [
          "node_modules/minimist"
        ],
        "fixAvailable": true
      },
      "optimist": {
        "name": "optimist",
        "severity": "critical",
        "isDirect": false,
        "via": [
          "minimist"
        ],
        "effects": [],
        "range": ">=0.6.0",
        "nodes": [
          "node_modules/optimist"
        ],
        "fixAvailable": true
      },
      "qs": {
        "name": "qs",
        "severity": "high",
        "isDirect": false,
        "via": [
          {
            "source": 1090135,
            "name": "qs",
            "dependency": "qs",
            "title": "qs vulnerable to Prototype Pollution",
            "url": "https://github.com/advisories/GHSA-hrpp-h998-j3pp",
            "severity": "high",
            "cwe": [
              "CWE-1321"
            ],
            "cvss": {
              "score": 7.5,
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
            },
            "range": ">=6.5.0 <6.5.3"
          }
        ],
        "effects": [],
        "range": "6.5.0 - 6.5.2",
        "nodes": [
          ""
        ],
        "fixAvailable": true
      },
      "request": {
        "name": "request",
        "severity": "moderate",
        "isDirect": false,
        "via": [
          {
            "source": 1091459,
            "name": "request",
            "dependency": "request",
            "title": "Server-Side Request Forgery in Request",
            "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
            "severity": "moderate",
            "cwe": [
              "CWE-918"
            ],
            "cvss": {
              "score": 6.1,
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
            },
            "range": "<=2.88.2"
          }
        ],
        "effects": [
          "webdriverio"
        ],
        "range": "*",
        "nodes": [
          "",
          "node_modules/request"
        ],
        "fixAvailable": {
          "name": "webdriverio",
          "version": "8.6.7",
          "isSemVerMajor": true
        }
      },
      "webdriverio": {
        "name": "webdriverio",
        "severity": "critical",
        "isDirect": true,
        "via": [
          "ejs",
          "optimist",
          "request"
        ],
        "effects": [],
        "range": "<=4.14.4",
        "nodes": [
          "node_modules/webdriverio"
        ],
        "fixAvailable": {
          "name": "webdriverio",
          "version": "8.6.7",
          "isSemVerMajor": true
        }
      }
    },
    "metadata": {
      "vulnerabilities": {
        "info": 0,
        "low": 0,
        "moderate": 1,
        "high": 2,
        "critical": 4,
        "total": 7
      },
      "dependencies": {
        "prod": 1,
        "dev": 874,
        "optional": 0,
        "peer": 0,
        "peerOptional": 0,
        "total": 874
      }
    }
  }
}

--- end ---
{"added": 874, "removed": 0, "changed": 0, "audited": 875, "funding": 83, "audit": {"auditReportVersion": 2, "vulnerabilities": {"ejs": {"name": "ejs", "severity": "critical", "isDirect": false, "via": [{"source": 1089270, "name": "ejs", "dependency": "ejs", "title": "ejs template injection vulnerability", "url": "https://github.com/advisories/GHSA-phwq-j96m-2c2q", "severity": "critical", "cwe": ["CWE-74"], "cvss": {"score": 9.8, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "range": "<3.1.7"}], "effects": ["webdriverio"], "range": "<3.1.7", "nodes": ["node_modules/ejs"], "fixAvailable": {"name": "webdriverio", "version": "8.6.7", "isSemVerMajor": true}}, "json5": {"name": "json5", "severity": "high", "isDirect": false, "via": [{"source": 1091148, "name": "json5", "dependency": "json5", "title": "Prototype Pollution in JSON5 via Parse Method", "url": "https://github.com/advisories/GHSA-9c47-m6qq-7p4h", "severity": "high", "cwe": ["CWE-1321"], "cvss": {"score": 7.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H"}, "range": ">=2.0.0 <2.2.2"}], "effects": [], "range": "2.0.0 - 2.2.1", "nodes": [""], "fixAvailable": true}, "minimist": {"name": "minimist", "severity": "critical", "isDirect": false, "via": [{"source": 1090098, "name": "minimist", "dependency": "minimist", "title": "Prototype Pollution in minimist", "url": "https://github.com/advisories/GHSA-vh95-rmgr-6w4m", "severity": "moderate", "cwe": ["CWE-1321"], "cvss": {"score": 5.6, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"}, "range": "<0.2.1"}, {"source": 1091172, "name": "minimist", "dependency": "minimist", "title": "Prototype Pollution in minimist", "url": "https://github.com/advisories/GHSA-xvch-5gv4-984h", "severity": "critical", "cwe": ["CWE-1321"], "cvss": {"score": 9.8, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "range": "<0.2.4"}], "effects": ["optimist"], "range": "<=0.2.3", "nodes": ["node_modules/minimist"], "fixAvailable": true}, "optimist": {"name": "optimist", "severity": "critical", "isDirect": false, "via": ["minimist"], "effects": [], "range": ">=0.6.0", "nodes": ["node_modules/optimist"], "fixAvailable": true}, "qs": {"name": "qs", "severity": "high", "isDirect": false, "via": [{"source": 1090135, "name": "qs", "dependency": "qs", "title": "qs vulnerable to Prototype Pollution", "url": "https://github.com/advisories/GHSA-hrpp-h998-j3pp", "severity": "high", "cwe": ["CWE-1321"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}, "range": ">=6.5.0 <6.5.3"}], "effects": [], "range": "6.5.0 - 6.5.2", "nodes": [""], "fixAvailable": true}, "request": {"name": "request", "severity": "moderate", "isDirect": false, "via": [{"source": 1091459, "name": "request", "dependency": "request", "title": "Server-Side Request Forgery in Request", "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6", "severity": "moderate", "cwe": ["CWE-918"], "cvss": {"score": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}, "range": "<=2.88.2"}], "effects": ["webdriverio"], "range": "*", "nodes": ["", "node_modules/request"], "fixAvailable": {"name": "webdriverio", "version": "8.6.7", "isSemVerMajor": true}}, "webdriverio": {"name": "webdriverio", "severity": "critical", "isDirect": true, "via": ["ejs", "optimist", "request"], "effects": [], "range": "<=4.14.4", "nodes": ["node_modules/webdriverio"], "fixAvailable": {"name": "webdriverio", "version": "8.6.7", "isSemVerMajor": true}}}, "metadata": {"vulnerabilities": {"info": 0, "low": 0, "moderate": 1, "high": 2, "critical": 4, "total": 7}, "dependencies": {"prod": 1, "dev": 874, "optional": 0, "peer": 0, "peerOptional": 0, "total": 874}}}}
$ /usr/bin/npm audit fix --only=dev --legacy-peer-deps
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
npm WARN deprecated @stylelint/postcss-markdown@0.36.2: Use the original unforked package instead: postcss-markdown
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated har-validator@5.1.3: this library is no longer supported
npm WARN deprecated date-format@0.0.2: 0.x is no longer supported. Please upgrade to 4.x or higher.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated samsam@1.3.0: This package has been deprecated in favour of @sinonjs/samsam
npm WARN deprecated uuid@3.3.2: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated source-map-resolve@0.5.2: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated webdriverio@4.13.2: outdated version, please use @next
npm WARN deprecated core-js@2.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 127
npm ERR! path /src/repo/node_modules/fibers
npm ERR! command failed
npm ERR! command sh /tmp/install-cf05f089.sh
npm ERR! make: Entering directory '/src/repo/node_modules/fibers/build'
npm ERR!   CXX(target) Release/obj.target/fibers/src/fibers.o
npm ERR! make: Leaving directory '/src/repo/node_modules/fibers/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.17.1 | linux | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/src/repo/node_modules/fibers/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/cache/node-gyp/16.17.1/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/cache/node-gyp/16.17.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/cache/node-gyp/16.17.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/src/repo/node_modules/fibers',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/fibers.cc:68:2: error: ‘Handle’ does not name a type
npm ERR!    68 |  Handle<String> NewLatin1String(Isolate* isolate, const char* string) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:72:2: error: ‘Handle’ does not name a type
npm ERR!    72 |  Handle<String> NewLatin1Symbol(Isolate* isolate, const char* string) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:94:2: error: ‘Handle’ does not name a type
npm ERR!    94 |  Handle<Object> NewInstance(Isolate* isolate, Local<Function> fn, int argc, Local<Value> argv[]) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:104:2: error: ‘Handle’ does not name a type
npm ERR!   104 |  Handle<Number> ToNumber(Local<Value> value) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:114:50: error: ‘Handle’ has not been declared
npm ERR!   114 |  Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) {
npm ERR!       |                                                  ^~~~~~
npm ERR! ../src/fibers.cc:114:56: error: expected ‘,’ or ‘...’ before ‘<’ token
npm ERR!   114 |  Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) {
npm ERR!       |                                                        ^
npm ERR! ../src/fibers.cc: In function ‘v8::Local<v8::Value> uni::GetStackTrace(uni::TryCatch*, int)’:
npm ERR! ../src/fibers.cc:115:32: error: ‘context’ was not declared in this scope; did you mean ‘setcontext’?
npm ERR!   115 |   return try_catch->StackTrace(context).ToLocalChecked();
npm ERR!       |                                ^~~~~~~
npm ERR!       |                                setcontext
npm ERR! ../src/fibers.cc: At global scope:
npm ERR! ../src/fibers.cc:127:39: error: ‘Handle’ has not been declared
npm ERR!   127 |  void fixStackLimit(Isolate* isolate, Handle<Context> context) {
npm ERR!       |                                       ^~~~~~
npm ERR! ../src/fibers.cc:127:45: error: expected ‘,’ or ‘...’ before ‘<’ token
npm ERR!   127 |  void fixStackLimit(Isolate* isolate, Handle<Context> context) {
npm ERR!       |                                             ^
npm ERR! ../src/fibers.cc: In function ‘void uni::fixStackLimit(v8::Isolate*, int)’:
npm ERR! ../src/fibers.cc:128:19: error: ‘context’ was not declared in this scope; did you mean ‘setcontext’?
npm ERR!   128 |   Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
npm ERR!       |                   ^~~~~~~
npm ERR!       |                   setcontext
npm ERR! ../src/fibers.cc:128:33: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!   128 |   Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
npm ERR!       |                                 ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc: At global scope:
npm ERR! ../src/fibers.cc:149:58: error: ‘Handle’ has not been declared
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |                                                          ^~~~~~
npm ERR! ../src/fibers.cc:149:64: error: expected ‘,’ or ‘...’ before ‘<’ token
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |                                                                ^
npm ERR! ../src/fibers.cc: In function ‘void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’:
npm ERR! ../src/fibers.cc:150:29: error: ‘handle’ was not declared in this scope
npm ERR!   150 |   persistent.Reset(isolate, handle);
npm ERR!       |                             ^~~~~~
npm ERR! ../src/fibers.cc: At global scope:
npm ERR! ../src/fibers.cc:162:7: error: variable or field ‘SetInternalPointer’ declared void
npm ERR!   162 |  void SetInternalPointer(Handle<T> handle, int index, void* val) {
npm ERR!       |       ^~~~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:162:26: error: ‘Handle’ was not declared in this scope
npm ERR!   162 |  void SetInternalPointer(Handle<T> handle, int index, void* val) {
npm ERR!       |                          ^~~~~~
npm ERR! ../src/fibers.cc:162:34: error: expected primary-expression before ‘>’ token
npm ERR!   162 |  void SetInternalPointer(Handle<T> handle, int index, void* val) {
npm ERR!       |                                  ^
npm ERR! ../src/fibers.cc:162:36: error: ‘handle’ was not declared in this scope
npm ERR!   162 |  void SetInternalPointer(Handle<T> handle, int index, void* val) {
npm ERR!       |                                    ^~~~~~
npm ERR! ../src/fibers.cc:162:44: error: expected primary-expression before ‘int’
npm ERR!   162 |  void SetInternalPointer(Handle<T> handle, int index, void* val) {
npm ERR!       |                                            ^~~
npm ERR! ../src/fibers.cc:162:55: error: expected primary-expression before ‘void’
npm ERR!   162 |  void SetInternalPointer(Handle<T> handle, int index, void* val) {
npm ERR!       |                                                       ^~~~
npm ERR! ../src/fibers.cc:166:27: error: ‘Handle’ was not declared in this scope
npm ERR!   166 |  void* GetInternalPointer(Handle<T> handle, int index) {
npm ERR!       |                           ^~~~~~
npm ERR! ../src/fibers.cc:166:35: error: expected primary-expression before ‘>’ token
npm ERR!   166 |  void* GetInternalPointer(Handle<T> handle, int index) {
npm ERR!       |                                   ^
npm ERR! ../src/fibers.cc:166:37: error: ‘handle’ was not declared in this scope
npm ERR!   166 |  void* GetInternalPointer(Handle<T> handle, int index) {
npm ERR!       |                                     ^~~~~~
npm ERR! ../src/fibers.cc:166:45: error: expected primary-expression before ‘int’
npm ERR!   166 |  void* GetInternalPointer(Handle<T> handle, int index) {
npm ERR!       |                                             ^~~
npm ERR! ../src/fibers.cc:166:54: error: expression list treated as compound expression in initializer [-fpermissive]
npm ERR!   166 |  void* GetInternalPointer(Handle<T> handle, int index) {
npm ERR!       |                                                      ^
npm ERR! ../src/fibers.cc:166:55: error: expected ‘;’ before ‘{’ token
npm ERR!   166 |  void* GetInternalPointer(Handle<T> handle, int index) {
npm ERR!       |                                                       ^~
npm ERR!       |                                                       ;
npm ERR! ../src/fibers.cc:171:2: error: ‘Handle’ does not name a type
npm ERR!   171 |  Handle<T> Deref(Isolate* isolate, Persistent<T>& handle) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:176:7: error: variable or field ‘Return’ declared void
npm ERR!   176 |  void Return(Handle<T> handle, const Arguments& args) {
npm ERR!       |       ^~~~~~
npm ERR! ../src/fibers.cc:176:14: error: ‘Handle’ was not declared in this scope
npm ERR!   176 |  void Return(Handle<T> handle, const Arguments& args) {
npm ERR!       |              ^~~~~~
npm ERR! ../src/fibers.cc:176:22: error: expected primary-expression before ‘>’ token
npm ERR!   176 |  void Return(Handle<T> handle, const Arguments& args) {
npm ERR!       |                      ^
npm ERR! ../src/fibers.cc:176:24: error: ‘handle’ was not declared in this scope
npm ERR!   176 |  void Return(Handle<T> handle, const Arguments& args) {
npm ERR!       |                        ^~~~~~
npm ERR! ../src/fibers.cc:176:32: error: expected primary-expression before ‘const’
npm ERR!   176 |  void Return(Handle<T> handle, const Arguments& args) {
npm ERR!       |                                ^~~~~
npm ERR! ../src/fibers.cc:180:7: error: variable or field ‘Return’ declared void
npm ERR!   180 |  void Return(Handle<T> handle, GetterCallbackInfo info) {
npm ERR!       |       ^~~~~~
npm ERR! ../src/fibers.cc:180:14: error: ‘Handle’ was not declared in this scope
npm ERR!   180 |  void Return(Handle<T> handle, GetterCallbackInfo info) {
npm ERR!       |              ^~~~~~
npm ERR! ../src/fibers.cc:180:22: error: expected primary-expression before ‘>’ token
npm ERR!   180 |  void Return(Handle<T> handle, GetterCallbackInfo info) {
npm ERR!       |                      ^
npm ERR! ../src/fibers.cc:180:24: error: ‘handle’ was not declared in this scope
npm ERR!   180 |  void Return(Handle<T> handle, GetterCallbackInfo info) {
npm ERR!       |                        ^~~~~~
npm ERR! ../src/fibers.cc:180:51: error: expected primary-expression before ‘info’
npm ERR!   180 |  void Return(Handle<T> handle, GetterCallbackInfo info) {
npm ERR!       |                                                   ^~~~
npm ERR! ../src/fibers.cc:188:2: error: ‘Handle’ does not name a type
npm ERR!   188 |  Handle<Value> ThrowException(Isolate* isolate, Handle<Value> exception) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:192:2: error: ‘Handle’ does not name a type
npm ERR!   192 |  Handle<Context> GetCurrentContext(Isolate* isolate) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:196:2: error: ‘Handle’ does not name a type
npm ERR!   196 |  Handle<Primitive> Undefined(Isolate* isolate) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:200:2: error: ‘Handle’ does not name a type
npm ERR!   200 |  Handle<Boolean> NewBoolean(Isolate* isolate, bool value) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:204:2: error: ‘Handle’ does not name a type
npm ERR!   204 |  Handle<Number> NewNumber(Isolate* isolate, double value) {
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:208:2: error: ‘Handle’ does not name a type
npm ERR!   208 |  Handle<FunctionTemplate> NewFunctionTemplate(
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc:218:2: error: ‘Handle’ does not name a type
npm ERR!   218 |  Handle<Signature> NewSignature(
npm ERR!       |  ^~~~~~
npm ERR! ../src/fibers.cc: In function ‘void uni::SetAccessor(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&))’:
npm ERR! ../src/fibers.cc:341:59: warning: cast between incompatible function types from ‘uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’} to ‘v8::AccessorNameGetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’} [-Wcast-function-type]
npm ERR!   341 |   object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
npm ERR!       |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:341:95: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} to ‘v8::AccessorNameSetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} [-Wcast-function-type]
npm ERR!   341 |   object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
npm ERR!       |                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc: At global scope:
npm ERR! ../src/fibers.cc:408:17: error: expected ‘;’ at end of member declaration
npm ERR!   408 |   static Fiber& Unwrap(Handle<Object> handle) {
npm ERR!       |                 ^~~~~~
npm ERR!       |                       ;
npm ERR! ../src/fibers.cc:408:30: error: expected ‘)’ before ‘<’ token
npm ERR!   408 |   static Fiber& Unwrap(Handle<Object> handle) {
npm ERR!       |                       ~      ^
npm ERR!       |                              )
npm ERR! ../src/fibers.cc:414:15: error: expected ‘)’ before ‘<’ token
npm ERR!   414 |   Fiber(Handle<Object> handle, Handle<Function> cb, Handle<Context> v8_context) :
npm ERR!       |        ~      ^
npm ERR!       |               )
npm ERR! ../src/fibers.cc:680:3: error: ‘Handle’ does not name a type
npm ERR!   680 |   Handle<Value> ReturnYielded() {
npm ERR!       |   ^~~~~~
npm ERR! ../src/fibers.cc:842:20: error: ‘Handle’ has not been declared
npm ERR!   842 |   static void Init(Handle<Object> target) {
npm ERR!       |                    ^~~~~~
npm ERR! ../src/fibers.cc:842:26: error: expected ‘,’ or ‘...’ before ‘<’ token
npm ERR!   842 |   static void Init(Handle<Object> target) {
npm ERR!       |                          ^
npm ERR! In file included from ../src/fibers.cc:3:
npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::WeakCallback(void*)’:
npm ERR! ../src/fibers.cc:458:23: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!   458 |    assert(that.handle.IsNearDeath());
npm ERR!       |                       ^~~~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::DestroyOrphans()’:
npm ERR! ../src/fibers.cc:495:22: error: ‘Deref’ is not a member of ‘uni’
npm ERR!   495 |      auto stack(uni::Deref(that.isolate, fatal_stack));
npm ERR!       |                      ^~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::New(const Arguments&)’:
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:517:5: note: in expansion of macro ‘THROW’
npm ERR!   517 |     THROW(Exception::TypeError, "Fiber expects 1 argument");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:517:5: note: in expansion of macro ‘THROW’
npm ERR!   517 |     THROW(Exception::TypeError, "Fiber expects 1 argument");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:519:5: note: in expansion of macro ‘THROW’
npm ERR!   519 |     THROW(Exception::TypeError, "Fiber expects a function");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:519:5: note: in expansion of macro ‘THROW’
npm ERR!   519 |     THROW(Exception::TypeError, "Fiber expects a function");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:521:5: error: ‘Handle’ was not declared in this scope; did you mean ‘handle’?
npm ERR!   521 |     Handle<Value> argv[1] = { args[0] };
npm ERR!       |     ^~~~~~
npm ERR!       |     handle
npm ERR! ../src/fibers.cc:521:17: error: expected primary-expression before ‘>’ token
npm ERR!   521 |     Handle<Value> argv[1] = { args[0] };
npm ERR!       |                 ^
npm ERR! ../src/fibers.cc:521:19: error: ‘argv’ was not declared in this scope; did you mean ‘args’?
npm ERR!   521 |     Handle<Value> argv[1] = { args[0] };
npm ERR!       |                   ^~~~
npm ERR!       |                   args
npm ERR! ../src/fibers.cc:522:29: error: ‘NewInstance’ is not a member of ‘uni’
npm ERR!   522 |     return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
npm ERR!       |                             ^~~~~~~~~~~
npm ERR! ../src/fibers.cc:522:69: error: ‘Deref’ is not a member of ‘uni’
npm ERR!   522 |     return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
npm ERR!       |                                                                     ^~~~~
npm ERR! ../src/fibers.cc:525:4: error: ‘Handle’ was not declared in this scope; did you mean ‘handle’?
npm ERR!   525 |    Handle<Function> fn = Handle<Function>::Cast(args[0]);
npm ERR!       |    ^~~~~~
npm ERR!       |    handle
npm ERR! ../src/fibers.cc:525:19: error: expected primary-expression before ‘>’ token
npm ERR!   525 |    Handle<Function> fn = Handle<Function>::Cast(args[0]);
npm ERR!       |                   ^
npm ERR! ../src/fibers.cc:525:21: error: ‘fn’ was not declared in this scope
npm ERR!   525 |    Handle<Function> fn = Handle<Function>::Cast(args[0]);
npm ERR!       |                     ^~
npm ERR! ../src/fibers.cc:525:41: error: expected primary-expression before ‘>’ token
npm ERR!   525 |    Handle<Function> fn = Handle<Function>::Cast(args[0]);
npm ERR!       |                                         ^
npm ERR! ../src/fibers.cc:525:44: error: ‘::Cast’ has not been declared
npm ERR!   525 |    Handle<Function> fn = Handle<Function>::Cast(args[0]);
npm ERR!       |                                            ^~~~
npm ERR! ../src/fibers.cc:526:36: error: ‘GetCurrentContext’ is not a member of ‘uni’
npm ERR!   526 |    new Fiber(args.This(), fn, uni::GetCurrentContext(Isolate::GetCurrent()));
npm ERR!       |                                    ^~~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:527:40: error: no matching function for call to ‘Return(v8::Local<v8::Object>, const Arguments&)’
npm ERR!   527 |    return uni::Return(args.This(), args);
npm ERR!       |                                        ^
npm ERR! ../src/fibers.cc:184:7: note: candidate: ‘template<class T> void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo)’
npm ERR!   184 |  void Return(Persistent<T>& handle, GetterCallbackInfo info) {
npm ERR!       |       ^~~~~~
npm ERR! ../src/fibers.cc:184:7: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:527:40: note:   ‘v8::Local<v8::Object>’ is not derived from ‘v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >’
npm ERR!   527 |    return uni::Return(args.This(), args);
npm ERR!       |                                        ^
npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Run(const Arguments&)’:
npm ERR! ../src/fibers.cc:535:38: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
npm ERR!   535 |    Fiber& that = Unwrap(args.Holder());
npm ERR!       |                                      ^
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:541:5: note: in expansion of macro ‘THROW’
npm ERR!   541 |     THROW(Exception::Error, "This Fiber is already running");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:541:5: note: in expansion of macro ‘THROW’
npm ERR!   541 |     THROW(Exception::Error, "This Fiber is already running");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:543:5: note: in expansion of macro ‘THROW’
npm ERR!   543 |     THROW(Exception::TypeError, "run() excepts 1 or no arguments");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:543:5: note: in expansion of macro ‘THROW’
npm ERR!   543 |     THROW(Exception::TypeError, "run() excepts 1 or no arguments");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:554:6: note: in expansion of macro ‘THROW’
npm ERR!   554 |      THROW(Exception::RangeError, "Out of memory");
npm ERR!       |      ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:554:6: note: in expansion of macro ‘THROW’
npm ERR!   554 |      THROW(Exception::RangeError, "Out of memory");
npm ERR!       |      ^~~~~
npm ERR! ../src/fibers.cc:564:52: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
npm ERR!   564 |      uni::Reset(that.isolate, that.yielded, args[0]);
npm ERR!       |                                                    ^
npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |       ^~~~~
npm ERR! ../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:564:51: note:   cannot convert ‘(& args)->v8::FunctionCallbackInfo<v8::Value>::operator[](0)’ (type ‘v8::Local<v8::Value>’) to type ‘int’
npm ERR!   564 |      uni::Reset(that.isolate, that.yielded, args[0]);
npm ERR!       |                                             ~~~~~~^
npm ERR! ../src/fibers.cc:566:57: error: ‘Undefined’ is not a member of ‘uni’; did you mean ‘v8::Undefined’?
npm ERR!   566 |      uni::Reset<Value>(that.isolate, that.yielded, uni::Undefined(that.isolate));
npm ERR!       |                                                         ^~~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:12510:18: note: ‘v8::Undefined’ declared here
npm ERR! 12510 | Local<Primitive> Undefined(Isolate* isolate) {
npm ERR!       |                  ^~~~~~~~~
npm ERR! ../src/fibers.cc:570:28: error: ‘class Fiber’ has no member named ‘ReturnYielded’
npm ERR!   570 |    return uni::Return(that.ReturnYielded(), args);
npm ERR!       |                            ^~~~~~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::ThrowInto(const Arguments&)’:
npm ERR! ../src/fibers.cc:577:38: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
npm ERR!   577 |    Fiber& that = Unwrap(args.Holder());
npm ERR!       |                                      ^
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:580:5: note: in expansion of macro ‘THROW’
npm ERR!   580 |     THROW(Exception::Error, "This Fiber is not yielding");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:580:5: note: in expansion of macro ‘THROW’
npm ERR!   580 |     THROW(Exception::Error, "This Fiber is not yielding");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:582:56: error: ‘Undefined’ is not a member of ‘uni’; did you mean ‘v8::Undefined’?
npm ERR!   582 |     uni::Reset<Value>(that.isolate, that.yielded, uni::Undefined(that.isolate));
npm ERR!       |                                                        ^~~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:12510:18: note: ‘v8::Undefined’ declared here
npm ERR! 12510 | Local<Primitive> Undefined(Isolate* isolate) {
npm ERR!       |                  ^~~~~~~~~
npm ERR! ../src/fibers.cc:584:51: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
npm ERR!   584 |     uni::Reset(that.isolate, that.yielded, args[0]);
npm ERR!       |                                                   ^
npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |       ^~~~~
npm ERR! ../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:584:50: note:   cannot convert ‘(& args)->v8::FunctionCallbackInfo<v8::Value>::operator[](0)’ (type ‘v8::Local<v8::Value>’) to type ‘int’
npm ERR!   584 |     uni::Reset(that.isolate, that.yielded, args[0]);
npm ERR!       |                                            ~~~~~~^
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:586:5: note: in expansion of macro ‘THROW’
npm ERR!   586 |     THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:586:5: note: in expansion of macro ‘THROW’
npm ERR!   586 |     THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:590:28: error: ‘class Fiber’ has no member named ‘ReturnYielded’
npm ERR!   590 |    return uni::Return(that.ReturnYielded(), args);
npm ERR!       |                            ^~~~~~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Reset(const Arguments&)’:
npm ERR! ../src/fibers.cc:598:38: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
npm ERR!   598 |    Fiber& that = Unwrap(args.Holder());
npm ERR!       |                                      ^
npm ERR! ../src/fibers.cc:601:29: error: ‘Undefined’ is not a member of ‘uni’; did you mean ‘v8::Undefined’?
npm ERR!   601 |     return uni::Return(uni::Undefined(that.isolate), args);
npm ERR!       |                             ^~~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:12510:18: note: ‘v8::Undefined’ declared here
npm ERR! 12510 | Local<Primitive> Undefined(Isolate* isolate) {
npm ERR!       |                  ^~~~~~~~~
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:603:5: note: in expansion of macro ‘THROW’
npm ERR!   603 |     THROW(Exception::Error, "This Fiber is not yielding");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:603:5: note: in expansion of macro ‘THROW’
npm ERR!   603 |     THROW(Exception::Error, "This Fiber is not yielding");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:605:5: note: in expansion of macro ‘THROW’
npm ERR!   605 |     THROW(Exception::TypeError, "reset() expects no arguments");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:605:5: note: in expansion of macro ‘THROW’
npm ERR!   605 |     THROW(Exception::TypeError, "reset() expects no arguments");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:613:4: error: ‘Handle’ was not declared in this scope; did you mean ‘handle’?
npm ERR!   613 |    Handle<Value> val = uni::Deref(that.isolate, that.yielded);
npm ERR!       |    ^~~~~~
npm ERR!       |    handle
npm ERR! ../src/fibers.cc:613:16: error: expected primary-expression before ‘>’ token
npm ERR!   613 |    Handle<Value> val = uni::Deref(that.isolate, that.yielded);
npm ERR!       |                ^
npm ERR! ../src/fibers.cc:613:18: error: ‘val’ was not declared in this scope
npm ERR!   613 |    Handle<Value> val = uni::Deref(that.isolate, that.yielded);
npm ERR!       |                  ^~~
npm ERR! ../src/fibers.cc:613:29: error: ‘Deref’ is not a member of ‘uni’
npm ERR!   613 |    Handle<Value> val = uni::Deref(that.isolate, that.yielded);
npm ERR!       |                             ^~~~~
npm ERR! ../src/fibers.cc:616:29: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!   616 |     return uni::Return(uni::ThrowException(that.isolate, val), args);
npm ERR!       |                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc: In member function ‘void Fiber::UnwindStack()’:
npm ERR! ../src/fibers.cc:635:4: error: ‘Handle’ was not declared in this scope; did you mean ‘handle’?
npm ERR!   635 |    Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
npm ERR!       |    ^~~~~~
npm ERR!       |    handle
npm ERR! ../src/fibers.cc:635:16: error: expected primary-expression before ‘>’ token
npm ERR!   635 |    Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
npm ERR!       |                ^
npm ERR! ../src/fibers.cc:635:59: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!   635 |    Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
npm ERR!       |                                                           ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:636:64: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Persistent<v8::Value>&)’
npm ERR!   636 |    uni::Reset(isolate, this->zombie_exception, zombie_exception);
npm ERR!       |                                                                ^
npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |       ^~~~~
npm ERR! ../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:636:48: note:   cannot convert ‘((Fiber*)this)->Fiber::zombie_exception’ (type ‘v8::Persistent<v8::Value>’) to type ‘int’
npm ERR!   636 |    uni::Reset(isolate, this->zombie_exception, zombie_exception);
npm ERR!       |                                                ^~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:637:49: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Persistent<v8::Value>&)’
npm ERR!   637 |    uni::Reset(isolate, yielded, zombie_exception);
npm ERR!       |                                                 ^
npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |       ^~~~~
npm ERR! ../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:637:33: note:   cannot convert ‘((Fiber*)this)->Fiber::zombie_exception’ (type ‘v8::Persistent<v8::Value>’) to type ‘int’
npm ERR!   637 |    uni::Reset(isolate, yielded, zombie_exception);
npm ERR!       |                                 ^~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:650:46: error: ‘Undefined’ is not a member of ‘uni’; did you mean ‘v8::Undefined’?
npm ERR!   650 |     uni::Reset<Value>(isolate, yielded, uni::Undefined(isolate));
npm ERR!       |                                              ^~~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:12510:18: note: ‘v8::Undefined’ declared here
npm ERR! 12510 | Local<Primitive> Undefined(Isolate* isolate) {
npm ERR!       |                  ^~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::RunFiber(void**)’:
npm ERR! ../src/fibers.cc:712:5: error: ‘Handle’ was not declared in this scope; did you mean ‘handle’?
npm ERR!   712 |     Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
npm ERR!       |     ^~~~~~
npm ERR!       |     handle
npm ERR! ../src/fibers.cc:712:19: error: expected primary-expression before ‘>’ token
npm ERR!   712 |     Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
npm ERR!       |                   ^
npm ERR! ../src/fibers.cc:712:21: error: invalid use of member ‘Fiber::v8_context’ in static member function
npm ERR!   712 |     Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
npm ERR!       |                     ^~~~~~~~~~
npm ERR! ../src/fibers.cc:397:23: note: declared here
npm ERR!   397 |   Persistent<Context> v8_context;
npm ERR!       |                       ^~~~~~~~~~
npm ERR! ../src/fibers.cc:712:39: error: ‘Deref’ is not a member of ‘uni’
npm ERR!   712 |     Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
npm ERR!       |                                       ^~~~~
npm ERR! ../src/fibers.cc:713:5: error: invalid use of member ‘Fiber::v8_context’ in static member function
npm ERR!   713 |     v8_context->Enter();
npm ERR!       |     ^~~~~~~~~~
npm ERR! ../src/fibers.cc:397:23: note: declared here
npm ERR!   397 |   Persistent<Context> v8_context;
npm ERR!       |                       ^~~~~~~~~~
npm ERR! ../src/fibers.cc:715:38: error: invalid use of member ‘Fiber::v8_context’ in static member function
npm ERR!   715 |     uni::fixStackLimit(that.isolate, v8_context);
npm ERR!       |                                      ^~~~~~~~~~
npm ERR! ../src/fibers.cc:397:23: note: declared here
npm ERR!   397 |   Persistent<Context> v8_context;
npm ERR!       |                       ^~~~~~~~~~
npm ERR! ../src/fibers.cc:717:17: error: expected primary-expression before ‘>’ token
npm ERR!   717 |     Handle<Value> yielded;
npm ERR!       |                 ^
npm ERR! ../src/fibers.cc:717:19: error: invalid use of member ‘Fiber::yielded’ in static member function
npm ERR!   717 |     Handle<Value> yielded;
npm ERR!       |                   ^~~~~~~
npm ERR! ../src/fibers.cc:399:21: note: declared here
npm ERR!   399 |   Persistent<Value> yielded;
npm ERR!       |                     ^~~~~~~
npm ERR! ../src/fibers.cc:719:18: error: expected primary-expression before ‘>’ token
npm ERR!   719 |      Handle<Value> argv[1] = { (*args)[0] };
npm ERR!       |                  ^
npm ERR! ../src/fibers.cc:719:20: error: ‘argv’ was not declared in this scope; did you mean ‘args’?
npm ERR!   719 |      Handle<Value> argv[1] = { (*args)[0] };
npm ERR!       |                    ^~~~
npm ERR!       |                    args
npm ERR! ../src/fibers.cc:720:6: error: invalid use of member ‘Fiber::yielded’ in static member function
npm ERR!   720 |      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
npm ERR!       |      ^~~~~~~
npm ERR! ../src/fibers.cc:399:21: note: declared here
npm ERR!   399 |   Persistent<Value> yielded;
npm ERR!       |                     ^~~~~~~
npm ERR! ../src/fibers.cc:720:21: error: ‘Deref’ is not a member of ‘uni’
npm ERR!   720 |      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
npm ERR!       |                     ^~~~~
npm ERR! ../src/fibers.cc:720:56: error: invalid use of member ‘Fiber::v8_context’ in static member function
npm ERR!   720 |      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
npm ERR!       |                                                        ^~~~~~~~~~
npm ERR! ../src/fibers.cc:397:23: note: declared here
npm ERR!   397 |   Persistent<Context> v8_context;
npm ERR!       |                       ^~~~~~~~~~
npm ERR! ../src/fibers.cc:722:6: error: invalid use of member ‘Fiber::yielded’ in static member function
npm ERR!   722 |      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
npm ERR!       |      ^~~~~~~
npm ERR! ../src/fibers.cc:399:21: note: declared here
npm ERR!   399 |   Persistent<Value> yielded;
npm ERR!       |                     ^~~~~~~
npm ERR! ../src/fibers.cc:722:21: error: ‘Deref’ is not a member of ‘uni’
npm ERR!   722 |      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
npm ERR!       |                     ^~~~~
npm ERR! ../src/fibers.cc:722:56: error: invalid use of member ‘Fiber::v8_context’ in static member function
npm ERR!   722 |      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
npm ERR!       |                                                        ^~~~~~~~~~
npm ERR! ../src/fibers.cc:397:23: note: declared here
npm ERR!   397 |   Persistent<Context> v8_context;
npm ERR!       |                       ^~~~~~~~~~
npm ERR! ../src/fibers.cc:726:66: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
npm ERR!   726 |      uni::Reset(that.isolate, that.yielded, try_catch.Exception());
npm ERR!       |                                                                  ^
npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |       ^~~~~
npm ERR! ../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:726:64: note:   cannot convert ‘try_catch.uni::TryCatch::<anonymous>.v8::TryCatch::Exception()’ (type ‘v8::Local<v8::Value>’) to type ‘int’
npm ERR!   726 |      uni::Reset(that.isolate, that.yielded, try_catch.Exception());
npm ERR!       |                                             ~~~~~~~~~~~~~~~~~~~^~
npm ERR! ../src/fibers.cc:728:50: error: ‘Deref’ is not a member of ‘uni’
npm ERR!   728 |      if (that.zombie && !that.resetting && !uni::Deref(that.isolate, that.yielded)->StrictEquals(uni::Deref(that.isolate, that.zombie_exception))) {
npm ERR!       |                                                  ^~~~~
npm ERR! ../src/fibers.cc:728:103: error: ‘Deref’ is not a member of ‘uni’
npm ERR!   728 |      if (that.zombie && !that.resetting && !uni::Deref(that.isolate, that.yielded)->StrictEquals(uni::Deref(that.isolate, that.zombie_exception))) {
npm ERR!       |                                                                                                       ^~~~~
npm ERR! ../src/fibers.cc:730:76: error: invalid use of member ‘Fiber::v8_context’ in static member function
npm ERR!   730 |       uni::Reset(that.isolate, fatal_stack, uni::GetStackTrace(&try_catch, v8_context));
npm ERR!       |                                                                            ^~~~~~~~~~
npm ERR! ../src/fibers.cc:397:23: note: declared here
npm ERR!   397 |   Persistent<Context> v8_context;
npm ERR!       |                       ^~~~~~~~~~
npm ERR! ../src/fibers.cc:733:45: error: invalid use of member ‘Fiber::yielded’ in static member function
npm ERR!   733 |      uni::Reset(that.isolate, that.yielded, yielded);
npm ERR!       |                                             ^~~~~~~
npm ERR! ../src/fibers.cc:399:21: note: declared here
npm ERR!   399 |   Persistent<Value> yielded;
npm ERR!       |                     ^~~~~~~
npm ERR! ../src/fibers.cc:748:5: error: invalid use of member ‘Fiber::v8_context’ in static member function
npm ERR!   748 |     v8_context->Exit();
npm ERR!       |     ^~~~~~~~~~
npm ERR! ../src/fibers.cc:397:23: note: declared here
npm ERR!   397 |   Persistent<Context> v8_context;
npm ERR!       |                       ^~~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Yield_(const Arguments&)’:
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:763:5: note: in expansion of macro ‘THROW’
npm ERR!   763 |     THROW(Exception::Error, "yield() called with no fiber running");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:763:5: note: in expansion of macro ‘THROW’
npm ERR!   763 |     THROW(Exception::Error, "yield() called with no fiber running");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:769:29: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!   769 |     return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
npm ERR!       |                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:769:63: error: ‘Deref’ is not a member of ‘uni’
npm ERR!   769 |     return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
npm ERR!       |                                                               ^~~~~
npm ERR! ../src/fibers.cc:771:60: error: cannot convert ‘v8::Local<v8::Primitive>’ to ‘int’
npm ERR!   771 |     uni::Reset<Value>(that.isolate, that.yielded, Undefined(that.isolate));
npm ERR!       |                                                   ~~~~~~~~~^~~~~~~~~~~~~~
npm ERR!       |                                                            |
npm ERR!       |                                                            v8::Local<v8::Primitive>
npm ERR! ../src/fibers.cc:149:58: note:   initializing argument 3 of ‘void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int) [with T = v8::Value]’
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |                                                          ^~~~~~
npm ERR! ../src/fibers.cc:773:51: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
npm ERR!   773 |     uni::Reset(that.isolate, that.yielded, args[0]);
npm ERR!       |                                                   ^
npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |       ^~~~~
npm ERR! ../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:773:50: note:   cannot convert ‘(& args)->v8::FunctionCallbackInfo<v8::Value>::operator[](0)’ (type ‘v8::Local<v8::Value>’) to type ‘int’
npm ERR!   773 |     uni::Reset(that.isolate, that.yielded, args[0]);
npm ERR!       |                                            ~~~~~~^
npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                             ^~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:775:5: note: in expansion of macro ‘THROW’
npm ERR!   775 |     THROW(Exception::TypeError, "yield() expects 1 or no arguments");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
npm ERR!    10 | #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
npm ERR!       |                                                                                          ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:775:5: note: in expansion of macro ‘THROW’
npm ERR!   775 |     THROW(Exception::TypeError, "yield() expects 1 or no arguments");
npm ERR!       |     ^~~~~
npm ERR! ../src/fibers.cc:798:28: error: ‘class Fiber’ has no member named ‘ReturnYielded’
npm ERR!   798 |    return uni::Return(that.ReturnYielded(), args);
npm ERR!       |                            ^~~~~~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetStarted(v8::Local<v8::String>, const GetterCallbackInfo&)’:
npm ERR! ../src/fibers.cc:806:29: error: ‘Undefined’ is not a member of ‘uni’; did you mean ‘v8::Undefined’?
npm ERR!   806 |     return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
npm ERR!       |                             ^~~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:328:27: note: ‘v8::Undefined’ declared here
npm ERR!   328 |   friend Local<Primitive> Undefined(Isolate* isolate);
npm ERR!       |                           ^~~~~~~~~
npm ERR! ../src/fibers.cc:808:36: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
npm ERR!   808 |    Fiber& that = Unwrap(info.This());
npm ERR!       |                                    ^
npm ERR! ../src/fibers.cc:809:28: error: ‘NewBoolean’ is not a member of ‘uni’
npm ERR!   809 |    return uni::Return(uni::NewBoolean(that.isolate, that.started), info);
npm ERR!       |                            ^~~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetCurrent(v8::Local<v8::String>, const GetterCallbackInfo&)’:
npm ERR! ../src/fibers.cc:816:29: error: ‘Undefined’ is not a member of ‘uni’; did you mean ‘v8::Undefined’?
npm ERR!   816 |     return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
npm ERR!       |                             ^~~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:328:27: note: ‘v8::Undefined’ declared here
npm ERR!   328 |   friend Local<Primitive> Undefined(Isolate* isolate);
npm ERR!       |                           ^~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetPoolSize(v8::Local<v8::String>, const GetterCallbackInfo&)’:
npm ERR! ../src/fibers.cc:824:28: error: ‘NewNumber’ is not a member of ‘uni’
npm ERR!   824 |    return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::pool_size), info);
npm ERR!       |                            ^~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::SetPoolSize(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)’:
npm ERR! ../src/fibers.cc:828:32: error: ‘ToNumber’ is not a member of ‘uni’
npm ERR!   828 |    Coroutine::pool_size = uni::ToNumber(value)->Value();
npm ERR!       |                                ^~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetFibersCreated(v8::Local<v8::String>, const GetterCallbackInfo&)’:
npm ERR! ../src/fibers.cc:835:28: error: ‘NewNumber’ is not a member of ‘uni’
npm ERR!   835 |    return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::coroutines_created()), info);
npm ERR!       |                            ^~~~~~~~~
npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::Init(int)’:
npm ERR! ../src/fibers.cc:853:4: error: ‘Handle’ was not declared in this scope; did you mean ‘handle’?
npm ERR!   853 |    Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
npm ERR!       |    ^~~~~~
npm ERR!       |    handle
npm ERR! ../src/fibers.cc:853:27: error: expected primary-expression before ‘>’ token
npm ERR!   853 |    Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
npm ERR!       |                           ^
npm ERR! ../src/fibers.cc:853:41: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
npm ERR!   853 |    Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
npm ERR!       |                                         ^~~~~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:854:41: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::FunctionTemplate>&, v8::Persistent<v8::FunctionTemplate>&)’
npm ERR!   854 |    uni::Reset(isolate, Fiber::tmpl, tmpl);
npm ERR!       |                                         ^
npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
npm ERR!   149 |  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
npm ERR!       |       ^~~~~
npm ERR! ../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:854:37: note:   cannot convert ‘Fiber::tmpl’ (type ‘v8::Persistent<v8::FunctionTemplate>’) to type ‘int’
npm ERR!   854 |    uni::Reset(isolate, Fiber::tmpl, tmpl);
npm ERR!       |                                     ^~~~
npm ERR! ../src/fibers.cc:855:8: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
npm ERR!   855 |    tmpl->SetClassName(uni::NewLatin1Symbol(isolate, "Fiber"));
npm ERR!       |        ^~
npm ERR! ../src/fibers.cc:855:28: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   855 |    tmpl->SetClassName(uni::NewLatin1Symbol(isolate, "Fiber"));
npm ERR!       |                            ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:859:20: error: expected primary-expression before ‘>’ token
npm ERR!   859 |    Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
npm ERR!       |                    ^
npm ERR! ../src/fibers.cc:859:22: error: ‘sig’ was not declared in this scope; did you mean ‘sig_t’?
npm ERR!   859 |    Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
npm ERR!       |                      ^~~
npm ERR!       |                      sig_t
npm ERR! ../src/fibers.cc:859:33: error: ‘NewSignature’ is not a member of ‘uni’
npm ERR!   859 |    Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
npm ERR!       |                                 ^~~~~~~~~~~~
npm ERR! ../src/fibers.cc:860:8: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
npm ERR!   860 |    tmpl->InstanceTemplate()->SetInternalFieldCount(1);
npm ERR!       |        ^~
npm ERR! ../src/fibers.cc:863:25: error: expected primary-expression before ‘>’ token
npm ERR!   863 |    Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
npm ERR!       |                         ^
npm ERR! ../src/fibers.cc:863:27: error: ‘proto’ was not declared in this scope
npm ERR!   863 |    Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
npm ERR!       |                           ^~~~~
npm ERR! ../src/fibers.cc:863:39: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
npm ERR!   863 |    Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
npm ERR!       |                                       ^~
npm ERR! ../src/fibers.cc:864:20: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   864 |    proto->Set(uni::NewLatin1Symbol(isolate, "reset"),
npm ERR!       |                    ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:865:10: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
npm ERR!   865 |     uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
npm ERR!       |          ^~~~~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:865:58: error: expected primary-expression before ‘>’ token
npm ERR!   865 |     uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
npm ERR!       |                                                          ^
npm ERR! ../src/fibers.cc:865:60: error: expected primary-expression before ‘)’ token
npm ERR!   865 |     uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
npm ERR!       |                                                            ^
npm ERR! ../src/fibers.cc:866:20: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   866 |    proto->Set(uni::NewLatin1Symbol(isolate, "run"),
npm ERR!       |                    ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:867:10: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
npm ERR!   867 |     uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
npm ERR!       |          ^~~~~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:867:56: error: expected primary-expression before ‘>’ token
npm ERR!   867 |     uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
npm ERR!       |                                                        ^
npm ERR! ../src/fibers.cc:867:58: error: expected primary-expression before ‘)’ token
npm ERR!   867 |     uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
npm ERR!       |                                                          ^
npm ERR! ../src/fibers.cc:868:20: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   868 |    proto->Set(uni::NewLatin1Symbol(isolate, "throwInto"),
npm ERR!       |                    ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:869:10: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
npm ERR!   869 |     uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
npm ERR!       |          ^~~~~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:869:62: error: expected primary-expression before ‘>’ token
npm ERR!   869 |     uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
npm ERR!       |                                                              ^
npm ERR! ../src/fibers.cc:869:64: error: expected primary-expression before ‘)’ token
npm ERR!   869 |     uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
npm ERR!       |                                                                ^
npm ERR! ../src/fibers.cc:870:28: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   870 |    proto->SetAccessor(uni::NewLatin1Symbol(isolate, "started"), GetStarted);
npm ERR!       |                            ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:873:19: error: expected primary-expression before ‘>’ token
npm ERR!   873 |    Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
npm ERR!       |                   ^
npm ERR! ../src/fibers.cc:873:21: error: ‘yield’ was not declared in this scope; did you mean ‘yielded’?
npm ERR!   873 |    Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
npm ERR!       |                     ^~~~~
npm ERR!       |                     yielded
npm ERR! ../src/fibers.cc:873:34: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
npm ERR!   873 |    Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
npm ERR!       |                                  ^~~~~~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:874:17: error: expected primary-expression before ‘>’ token
npm ERR!   874 |    Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
npm ERR!       |                 ^
npm ERR! ../src/fibers.cc:874:19: error: ‘sym_yield’ was not declared in this scope; did you mean ‘sched_yield’?
npm ERR!   874 |    Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
npm ERR!       |                   ^~~~~~~~~
npm ERR!       |                   sched_yield
npm ERR! ../src/fibers.cc:874:36: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   874 |    Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
npm ERR!       |                                    ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:875:4: error: ‘target’ was not declared in this scope
npm ERR!   875 |    target->Set(sym_yield, yield);
npm ERR!       |    ^~~~~~
npm ERR! ../src/fibers.cc:878:19: error: expected primary-expression before ‘>’ token
npm ERR!   878 |    Handle<Function> fn = tmpl->GetFunction();
npm ERR!       |                   ^
npm ERR! ../src/fibers.cc:878:21: error: ‘fn’ was not declared in this scope
npm ERR!   878 |    Handle<Function> fn = tmpl->GetFunction();
npm ERR!       |                     ^~
npm ERR! ../src/fibers.cc:878:30: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
npm ERR!   878 |    Handle<Function> fn = tmpl->GetFunction();
npm ERR!       |                              ^~
npm ERR! ../src/fibers.cc:880:39: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   880 |    uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "current"), GetCurrent);
npm ERR!       |                                       ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:881:39: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   881 |    uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "poolSize"), GetPoolSize, SetPoolSize);
npm ERR!       |                                       ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:882:39: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   882 |    uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "fibersCreated"), GetFibersCreated);
npm ERR!       |                                       ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc:885:21: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
npm ERR!   885 |    target->Set(uni::NewLatin1Symbol(isolate, "Fiber"), fn);
npm ERR!       |                     ^~~~~~~~~~~~~~~
npm ERR! ../src/fibers.cc: At global scope:
npm ERR! ../src/fibers.cc:901:6: error: variable or field ‘init’ declared void
npm ERR!   901 | void init(Handle<Object> target) {
npm ERR!       |      ^~~~
npm ERR! ../src/fibers.cc:901:11: error: ‘Handle’ was not declared in this scope
npm ERR!   901 | void init(Handle<Object> target) {
npm ERR!       |           ^~~~~~
npm ERR! ../src/fibers.cc:901:24: error: expected primary-expression before ‘>’ token
npm ERR!   901 | void init(Handle<Object> target) {
npm ERR!       |                        ^
npm ERR! ../src/fibers.cc:901:26: error: ‘target’ was not declared in this scope
npm ERR!   901 | void init(Handle<Object> target) {
npm ERR!       |                          ^~~~~~
npm ERR! In file included from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! ../src/fibers.cc:916:21: error: ‘init’ was not declared in this scope; did you mean ‘int’?
npm ERR!   916 | NODE_MODULE(fibers, init)
npm ERR!       |                     ^~~~
npm ERR! /cache/node-gyp/16.17.1/include/node/node.h:859:36: note: in definition of macro ‘NODE_MODULE_X’
npm ERR!   859 |       (node::addon_register_func) (regfunc),                          \
npm ERR!       |                                    ^~~~~~~
npm ERR! ../src/fibers.cc:916:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!   916 | NODE_MODULE(fibers, init)
npm ERR!       | ^~~~~~~~~~~
npm ERR! ../src/fibers.cc: In instantiation of ‘void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo) [with T = v8::Object; uni::GetterCallbackInfo = v8::PropertyCallbackInfo<v8::Value>]’:
npm ERR! ../src/fibers.cc:814:45:   required from here
npm ERR! ../src/fibers.cc:185:28: error: no matching function for call to ‘v8::ReturnValue<v8::Value>::Set(v8::Persistent<v8::Object>&)’
npm ERR!   185 |   info.GetReturnValue().Set(handle);
npm ERR!       |   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:4529:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(const v8::Global<S>&) [with S = S; T = v8::Value]’
npm ERR!  4529 |   V8_INLINE void Set(const Global<S>& handle);
npm ERR!       |                  ^~~
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:4529:18: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:185:28: note:   ‘v8::Persistent<v8::Object>’ is not derived from ‘const v8::Global<T>’
npm ERR!   185 |   info.GetReturnValue().Set(handle);
npm ERR!       |   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:4531:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(const v8::BasicTracedReference<S>&) [with S = S; T = v8::Value]’
npm ERR!  4531 |   V8_INLINE void Set(const BasicTracedReference<S>& handle);
npm ERR!       |                  ^~~
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:4531:18: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:185:28: note:   ‘v8::Persistent<v8::Object>’ is not derived from ‘const v8::BasicTracedReference<T>’
npm ERR!   185 |   info.GetReturnValue().Set(handle);
npm ERR!       |   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:4533:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(v8::Local<S>) [with S = S; T = v8::Value]’
npm ERR!  4533 |   V8_INLINE void Set(const Local<S> handle);
npm ERR!       |                  ^~~
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:4533:18: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:185:28: note:   ‘v8::Persistent<v8::Object>’ is not derived from ‘v8::Local<T>’
npm ERR!   185 |   info.GetReturnValue().Set(handle);
npm ERR!       |   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
npm ERR! In file included from /cache/node-gyp/16.17.1/include/node/node.h:73,
npm ERR!                  from ../src/coroutine.h:1,
npm ERR!                  from ../src/fibers.cc:1:
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:11664:6: note: candidate: ‘void v8::ReturnValue<T>::Set(bool) [with T = v8::Value]’
npm ERR! 11664 | void ReturnValue<T>::Set(bool value) {
npm ERR!       |      ^~~~~~~~~~~~~~
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:11664:31: note:   no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘bool’
npm ERR! 11664 | void ReturnValue<T>::Set(bool value) {
npm ERR!       |                          ~~~~~^~~~~
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:11635:6: note: candidate: ‘void v8::ReturnValue<T>::Set(double) [with T = v8::Value]’
npm ERR! 11635 | void ReturnValue<T>::Set(double i) {
npm ERR!       |      ^~~~~~~~~~~~~~
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:11635:33: note:   no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘double’
npm ERR! 11635 | void ReturnValue<T>::Set(double i) {
npm ERR!       |                          ~~~~~~~^
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:11641:6: note: candidate: ‘void v8::ReturnValue<T>::Set(int32_t) [with T = v8::Value; int32_t = int]’
npm ERR! 11641 | void ReturnValue<T>::Set(int32_t i) {
npm ERR!       |      ^~~~~~~~~~~~~~
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:11641:34: note:   no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘int32_t’ {aka ‘int’}
npm ERR! 11641 | void ReturnValue<T>::Set(int32_t i) {
npm ERR!       |                          ~~~~~~~~^
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:11652:6: note: candidate: ‘void v8::ReturnValue<T>::Set(uint32_t) [with T = v8::Value; uint32_t = unsigned int]’
npm ERR! 11652 | void ReturnValue<T>::Set(uint32_t i) {
npm ERR!       |      ^~~~~~~~~~~~~~
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:11652:35: note:   no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘uint32_t’ {aka ‘unsigned int’}
npm ERR! 11652 | void ReturnValue<T>::Set(uint32_t i) {
npm ERR!       |                          ~~~~~~~~~^
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:4548:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(S*) [with S = S; T = v8::Value]’
npm ERR!  4548 |   V8_INLINE void Set(S* whatever);
npm ERR!       |                  ^~~
npm ERR! /cache/node-gyp/16.17.1/include/node/v8.h:4548:18: note:   template argument deduction/substitution failed:
npm ERR! ../src/fibers.cc:185:28: note:   mismatched types ‘S*’ and ‘v8::Persistent<v8::Object>’
npm ERR!   185 |   info.GetReturnValue().Set(handle);
npm ERR!       |   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
npm ERR! make: *** [fibers.target.mk:125: Release/obj.target/fibers/src/fibers.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 4.19.0-23-amd64
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
npm ERR! gyp ERR! cwd /src/repo/node_modules/fibers
npm ERR! gyp ERR! node -v v16.17.1
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok 
npm ERR! node-gyp exited with code: 1
npm ERR! Please make sure you are using a supported platform and node version. If you
npm ERR! would like to compile fibers on this machine please make sure you have setup your
npm ERR! build environment--
npm ERR! Windows + OS X instructions here: https://github.com/nodejs/node-gyp
npm ERR! Ubuntu users please run: `sudo apt-get install g++ build-essential`
npm ERR! RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'` 
npm ERR! Alpine users please run: `sudo apk add python make g++`
npm ERR! /tmp/install-cf05f089.sh: 1: nodejs: not found

npm ERR! A complete log of this run can be found in:
npm ERR!     /cache/_logs/2023-03-23T19_34_05_793Z-debug-0.log
--- stdout ---

--- end ---
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json

--- end ---
Verifying that tests still pass
$ /usr/bin/npm ci --legacy-peer-deps
--- stderr ---
npm ERR! code EUSAGE
npm ERR! 
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR! 
npm ERR! Missing: wdio-junit-reporter@0.4.4 from lock file
npm ERR! Missing: wdio-mediawiki@0.4.0 from lock file
npm ERR! Missing: wdio-mocha-framework@0.6.4 from lock file
npm ERR! Missing: wdio-spec-reporter@0.1.5 from lock file
npm ERR! Missing: junit-report-builder@1.3.3 from lock file
npm ERR! Missing: date-format@0.0.2 from lock file
npm ERR! Missing: xmlbuilder@10.1.1 from lock file
npm ERR! Missing: mwbot@1.0.10 from lock file
npm ERR! Missing: bluebird@3.7.2 from lock file
npm ERR! Missing: semlog@0.6.10 from lock file
npm ERR! Missing: chalk@1.1.3 from lock file
npm ERR! Missing: prettyjson@1.2.5 from lock file
npm ERR! Missing: colors@1.4.0 from lock file
npm ERR! Missing: minimist@1.2.8 from lock file
npm ERR! Missing: mocha@5.2.0 from lock file
npm ERR! Missing: wdio-sync@0.7.3 from lock file
npm ERR! Missing: browser-stdout@1.3.1 from lock file
npm ERR! Missing: commander@2.15.1 from lock file
npm ERR! Missing: debug@3.1.0 from lock file
npm ERR! Missing: glob@7.1.2 from lock file
npm ERR! Missing: growl@1.10.5 from lock file
npm ERR! Missing: he@1.1.1 from lock file
npm ERR! Missing: minimatch@3.0.4 from lock file
npm ERR! Missing: mkdirp@0.5.1 from lock file
npm ERR! Missing: supports-color@5.4.0 from lock file
npm ERR! Missing: humanize-duration@3.15.3 from lock file
npm ERR! Missing: fibers@3.1.1 from lock file
npm ERR! Missing: object.assign@4.1.4 from lock file
npm ERR! Missing: detect-libc@1.0.3 from lock file
npm ERR! Missing: call-bind@1.0.2 from lock file
npm ERR! Missing: define-properties@1.2.0 from lock file
npm ERR! Missing: has-symbols@1.0.3 from lock file
npm ERR! Missing: object-keys@1.1.1 from lock file
npm ERR! Missing: get-intrinsic@1.2.0 from lock file
npm ERR! Missing: has-property-descriptors@1.0.0 from lock file
npm ERR! Missing: ms@2.0.0 from lock file
npm ERR! Missing: minimist@0.0.8 from lock file
npm ERR! Missing: ansi-styles@2.2.1 from lock file
npm ERR! Missing: has-ansi@2.0.0 from lock file
npm ERR! Missing: strip-ansi@3.0.1 from lock file
npm ERR! Missing: supports-color@2.0.0 from lock file
npm ERR! Missing: ansi-regex@2.1.1 from lock file
npm ERR! Missing: ansi-regex@2.1.1 from lock file
npm ERR! 
npm ERR! Clean install a project
npm ERR! 
npm ERR! Usage:
npm ERR! npm ci
npm ERR! 
npm ERR! Options:
npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts]
npm ERR! [--script-shell <script-shell>]
npm ERR! 
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR! 
npm ERR! Run "npm help ci" for more info

npm ERR! A complete log of this run can be found in:
npm ERR!     /cache/_logs/2023-03-23T19_34_13_909Z-debug-0.log
--- stdout ---

--- end ---
Traceback (most recent call last):
  File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 1400, in main
    libup.run(args.repo, args.output, args.branch)
  File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 1344, in run
    self.npm_audit_fix(new_npm_audit)
  File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 241, in npm_audit_fix
    self.check_call(['npm', 'ci', '--legacy-peer-deps'])
  File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/shell2.py", line 54, in check_call
    res.check_returncode()
  File "/usr/lib/python3.9/subprocess.py", line 460, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['/usr/bin/npm', 'ci', '--legacy-peer-deps']' returned non-zero exit status 1.

composer dependencies

Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.