mediawiki/services/parsoid (main)

sourcepatches
From dcbdc89a7626701d9fbed2b91354d1a189a7ec53 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Sat, 18 Dec 2021 02:51:10 +0000
Subject: [PATCH] [DNM] there are no updates

Change-Id: Ibc27aad3ed7c024649539bdc394451e3bc0c10de
---
 .eslintrc.json |  35 +++++++++--------
 composer.json  |  21 +++++-----
 package.json   | 102 ++++++++++++++++++++++++-------------------------
 3 files changed, 82 insertions(+), 76 deletions(-)

diff --git a/.eslintrc.json b/.eslintrc.json
index 7225f3d..afd9cc3 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,4 +1,5 @@
 {
+	"root": true,
 	"extends": [
 		"wikimedia/server",
 		"wikimedia/jsdoc"
@@ -7,18 +8,27 @@
 		"ecmaVersion": 2017
 	},
 	"rules": {
-		"indent": ["error", "tab", {
-			"SwitchCase": 1,
-			"MemberExpression": "off",
-			"CallExpression": { "arguments": "off" },
-			"flatTernaryExpressions": true
-		}],
-		"one-var": ["error", { "initialized": "never" }],
-
+		"indent": [
+			"error",
+			"tab",
+			{
+				"SwitchCase": 1,
+				"MemberExpression": "off",
+				"CallExpression": {
+					"arguments": "off"
+				},
+				"flatTernaryExpressions": true
+			}
+		],
+		"one-var": [
+			"error",
+			{
+				"initialized": "never"
+			}
+		],
 		"no-restricted-properties": "off",
 		"no-restricted-syntax": "off",
 		"node/no-deprecated-api": "off",
-
 		"array-bracket-spacing": "off",
 		"arrow-parens": "off",
 		"camelcase": "off",
@@ -41,7 +51,6 @@
 		"quotes": "off",
 		"space-before-function-paren": "off",
 		"space-in-parens": "off",
-
 		"consistent-this": "off",
 		"default-case": "off",
 		"eol-last": "off",
@@ -55,10 +64,8 @@
 		"strict": "off",
 		"vars-on-top": "off",
 		"wrap-iife": "off",
-
 		"prefer-arrow-callback": "off",
 		"prefer-template": "off",
-
 		"no-console": "off",
 		"no-control-regex": "off",
 		"no-invalid-this": "off",
@@ -72,11 +79,8 @@
 		"no-useless-concat": "off",
 		"no-useless-escape": "off",
 		"no-var": "off",
-
 		"no-buffer-constructor": "warn",
-
 		"no-process-exit": "off",
-
 		"jsdoc/check-alignment": "off",
 		"jsdoc/check-param-names": "off",
 		"jsdoc/check-tag-names": "off",
@@ -88,7 +92,6 @@
 		"jsdoc/require-returns": "off",
 		"jsdoc/require-returns-check": "off",
 		"no-shadow": "off",
-
 		"node/no-missing-require": "off"
 	},
 	"overrides": [
diff --git a/composer.json b/composer.json
index 7ee516f..76989e6 100644
--- a/composer.json
+++ b/composer.json
@@ -41,23 +41,25 @@
 		"ext-json": "*"
 	},
 	"require-dev": {
-		"php-parallel-lint/php-console-highlighter": "0.5.0",
-		"php-parallel-lint/php-parallel-lint": "1.3.1",
-		"monolog/monolog": "^2.2.0",
+		"composer/composer": "^2.1.9",
+		"ext-curl": "*",
 		"mediawiki/mediawiki-codesniffer": "38.0.0",
 		"mediawiki/mediawiki-phan-config": "0.11.0",
 		"mediawiki/minus-x": "1.1.1",
+		"monolog/monolog": "^2.2.0",
+		"ockcyp/covers-validator": "1.3.3",
+		"php-parallel-lint/php-console-highlighter": "0.5.0",
+		"php-parallel-lint/php-parallel-lint": "1.3.1",
 		"phpunit/phpunit": "^8.5",
 		"sebastian/diff": "^3.0.2",
 		"wikimedia/alea": "^0.9.3",
 		"wikimedia/langconv": "^0.4.2",
-		"wikimedia/testing-access-wrapper": "~1.0",
-		"ext-curl": "*",
-		"ockcyp/covers-validator": "1.3.3",
-		"composer/composer": "^2.1.9"
+		"wikimedia/testing-access-wrapper": "~1.0"
 	},
 	"autoload": {
-		"files": [ "DomImpl.php" ],
+		"files": [
+			"DomImpl.php"
+		],
 		"psr-4": {
 			"Wikimedia\\Parsoid\\": "src"
 		}
@@ -96,7 +98,8 @@
 		"parserTests-ucs2": "php bin/parserTests.php --wt2html --wt2wt --html2wt --html2html --selser true --quiet --knownFailures true --offsetType ucs2",
 		"phpunit": "phpunit",
 		"toolcheck": "bin/toolcheck.php.sh",
-		"nodeNameCheck": "bin/nodenamecheck.sh"
+		"nodeNameCheck": "bin/nodenamecheck.sh",
+		"phpcs": "phpcs -sp --cache"
 	},
 	"config": {
 		"process-timeout": 0,
diff --git a/package.json b/package.json
index 2e68355..e5e9417 100644
--- a/package.json
+++ b/package.json
@@ -1,53 +1,53 @@
 {
-  "name": "parsoid",
-  "description": "A bidirectional runtime wikitext parser. Converts back and forth between wikitext and HTML/XML DOM with RDFa.",
-  "version": "0.11.0",
-  "license": "GPL-2.0+",
-  "dependencies": {
-    "babybird": "0.0.1",
-    "connect-busboy": "^0.0.2",
-    "core-js": "^2.5.6",
-    "domino": "^2.1.0",
-    "entities": "^1.1.1",
-    "express": "^4.16.3",
-    "js-yaml": "^3.13.1",
-    "pn": "^1.1.0",
-    "prfun": "^2.1.5",
-    "request": "^2.87.0",
-    "semver": "^6.1.0",
-    "service-runner": "git+https://github.com/wikimedia/service-runner.git#yarg",
-    "simplediff": "^0.1.1",
-    "wikimedia-langconv": "^0.1.0",
-    "wikipeg": "^2.0.6",
-    "yargs": "^16.2.0"
-  },
-  "devDependencies": {
-    "api-testing": "^1.2.0",
-    "chai": "^4.1.2",
-    "colors": "^1.2.4",
-    "eslint": "^7.32.0",
-    "eslint-config-wikimedia": "^0.20.0",
-    "mocha": "git+https://github.com/arlolra/mocha.git#fix-ansi-regex",
-    "nock": "^9.2.5"
-  },
-  "scripts": {
-    "eslint": "eslint --cache --ext .js,.json .",
-    "eslint-fix": "eslint --cache --ext .js,.json --fix .",
-    "regen-php-tokenizer": "bin/inspectTokenizer.js --source --php -o src/Wt2Html/Grammar.php",
-    "regen-php-tokenizer-trace": "bin/inspectTokenizer.js --source --php -o src/Wt2Html/Grammar.php --trace",
-    "regen-php-tests-tokenizer": "node_modules/wikipeg/bin/wikipeg --php --class-name Grammar src/ParserTests/Grammar.pegphp src/ParserTests/Grammar.php",
-    "api-testing": "mocha tests/api-testing",
-    "test": "npm run eslint"
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/wikimedia/parsoid.git"
-  },
-  "deploy": {
-    "target": "debian",
-    "node": "6.9.1",
-    "dependencies": {
-      "_all": []
-    }
-  }
+	"name": "parsoid",
+	"description": "A bidirectional runtime wikitext parser. Converts back and forth between wikitext and HTML/XML DOM with RDFa.",
+	"version": "0.11.0",
+	"license": "GPL-2.0+",
+	"dependencies": {
+		"babybird": "0.0.1",
+		"connect-busboy": "^0.0.2",
+		"core-js": "^2.5.6",
+		"domino": "^2.1.0",
+		"entities": "^1.1.1",
+		"express": "^4.16.3",
+		"js-yaml": "^3.13.1",
+		"pn": "^1.1.0",
+		"prfun": "^2.1.5",
+		"request": "^2.87.0",
+		"semver": "^6.1.0",
+		"service-runner": "git+https://github.com/wikimedia/service-runner.git#yarg",
+		"simplediff": "^0.1.1",
+		"wikimedia-langconv": "^0.1.0",
+		"wikipeg": "^2.0.6",
+		"yargs": "^16.2.0"
+	},
+	"devDependencies": {
+		"api-testing": "^1.2.0",
+		"chai": "^4.1.2",
+		"colors": "^1.2.4",
+		"eslint": "^7.32.0",
+		"eslint-config-wikimedia": "^0.20.0",
+		"mocha": "git+https://github.com/arlolra/mocha.git#fix-ansi-regex",
+		"nock": "^9.2.5"
+	},
+	"scripts": {
+		"eslint": "eslint --cache --ext .js,.json .",
+		"eslint-fix": "eslint --cache --ext .js,.json --fix .",
+		"regen-php-tokenizer": "bin/inspectTokenizer.js --source --php -o src/Wt2Html/Grammar.php",
+		"regen-php-tokenizer-trace": "bin/inspectTokenizer.js --source --php -o src/Wt2Html/Grammar.php --trace",
+		"regen-php-tests-tokenizer": "node_modules/wikipeg/bin/wikipeg --php --class-name Grammar src/ParserTests/Grammar.pegphp src/ParserTests/Grammar.php",
+		"api-testing": "mocha tests/api-testing",
+		"test": "npm run eslint"
+	},
+	"repository": {
+		"type": "git",
+		"url": "https://github.com/wikimedia/parsoid.git"
+	},
+	"deploy": {
+		"target": "debian",
+		"node": "6.9.1",
+		"dependencies": {
+			"_all": []
+		}
+	}
 }
-- 
2.20.1

$ date
Sat Dec 18 02:49:45 UTC 2021

$ git clone file:///srv/git/mediawiki-services-parsoid.git repo --depth=1 -b master
Cloning into 'repo'...

$ git config user.name libraryupgrader

$ git config user.email tools.libraryupgrader@tools.wmflabs.org

$ git submodule update --init

$ grr init
Installed commit-msg hook.

$ git show-ref refs/heads/master
78e6001312e2c2884793bba284f207d49676bda5 refs/heads/master

$ composer install
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 87 installs, 0 updates, 0 removals
  - Installing liuggio/statsd-php-client (v1.0.18): Downloading (connecting...)Downloading (100%)         
  - Installing wikimedia/zest-css (2.0.2): Loading from cache
  - Installing wikimedia/utfnormal (3.0.2): Loading from cache
  - Installing wikimedia/remex-html (3.0.1): Loading from cache
  - Installing wikimedia/idle-dom (v0.10.0): Loading from cache
  - Installing wikimedia/dodo (v0.4.0): Loading from cache
  - Installing wikimedia/at-ease (v2.1.0): Loading from cache
  - Installing wikimedia/ip-set (3.0.0): Loading from cache
  - Installing wikimedia/base-convert (v2.0.1): Loading from cache
  - Installing wikimedia/ip-utils (3.0.2): Loading from cache
  - Installing psr/container (1.1.1): Loading from cache
  - Installing wikimedia/object-factory (v3.0.2): Loading from cache
  - Installing wikimedia/scoped-callback (v3.0.0): Loading from cache
  - Installing wikimedia/wikipeg (2.0.6): Loading from cache
  - Installing php-parallel-lint/php-console-color (v0.3): Loading from cache
  - Installing php-parallel-lint/php-console-highlighter (v0.5): Loading from cache
  - Installing php-parallel-lint/php-parallel-lint (v1.3.1): Loading from cache
  - Installing squizlabs/php_codesniffer (3.6.1): Loading from cache
  - Installing composer/spdx-licenses (1.5.6): Loading from cache
  - Installing composer/semver (3.2.6): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (v38.0.0): Loading from cache
  - Installing tysonandre/var_representation_polyfill (0.1.1): Loading from cache
  - Installing symfony/polyfill-php80 (v1.23.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.23.1): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.23.0): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.23.1): Loading from cache
  - Installing symfony/polyfill-ctype (v1.23.0): Loading from cache
  - Installing symfony/string (v5.4.0): Loading from cache
  - Installing symfony/deprecation-contracts (v2.5.0): Loading from cache
  - Installing symfony/service-contracts (v2.5.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.23.0): Loading from cache
  - Installing symfony/console (v5.4.1): Loading from cache
  - Installing psr/log (1.1.4): Loading from cache
  - Installing sabre/event (5.1.4): Loading from cache
  - Installing netresearch/jsonmapper (v4.0.0): Loading from cache
  - Installing microsoft/tolerant-php-parser (v0.1.1): Loading from cache
  - Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
  - Installing webmozart/assert (1.10.0): Loading from cache
  - Installing phpdocumentor/type-resolver (1.5.1): Loading from cache
  - Installing phpdocumentor/reflection-docblock (5.3.0): Loading from cache
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Loading from cache
  - Installing composer/pcre (1.0.0): Loading from cache
  - Installing composer/xdebug-handler (2.0.3): Loading from cache
  - Installing phan/phan (5.2.0): Loading from cache
  - Installing mediawiki/phan-taint-check-plugin (3.3.2): Loading from cache
  - Installing mediawiki/mediawiki-phan-config (0.11.0): Loading from cache
  - Installing mediawiki/minus-x (1.1.1): Loading from cache
  - Installing wikimedia/alea (0.9.3): Loading from cache
  - Installing wikimedia/assert (v0.5.0): Loading from cache
  - Installing wikimedia/langconv (0.4.2): Loading from cache
  - Installing wikimedia/testing-access-wrapper (1.0.0): Loading from cache
  - Installing sebastian/version (2.0.1): Loading from cache
  - Installing sebastian/type (1.1.4): Loading from cache
  - Installing sebastian/resource-operations (2.0.2): Loading from cache
  - Installing sebastian/recursion-context (3.0.1): Loading from cache
  - Installing sebastian/object-reflector (1.1.2): Loading from cache
  - Installing sebastian/object-enumerator (3.0.4): Loading from cache
  - Installing sebastian/global-state (3.0.1): Loading from cache
  - Installing sebastian/exporter (3.1.4): Loading from cache
  - Installing sebastian/environment (4.2.4): Loading from cache
  - Installing sebastian/diff (3.0.3): Loading from cache
  - Installing sebastian/comparator (3.0.3): Loading from cache
  - Installing phpunit/php-timer (2.1.3): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/php-file-iterator (2.0.5): Loading from cache
  - Installing theseer/tokenizer (1.2.1): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.2): Loading from cache
  - Installing phpunit/php-token-stream (4.0.4): Loading from cache
  - Installing phpunit/php-code-coverage (7.0.15): Loading from cache
  - Installing doctrine/instantiator (1.4.0): Loading from cache
  - Installing phpspec/prophecy (v1.15.0): Loading from cache
  - Installing myclabs/deep-copy (1.10.2): Loading from cache
  - Installing phar-io/version (3.1.0): Loading from cache
  - Installing phar-io/manifest (2.0.3): Loading from cache
  - Installing phpunit/phpunit (8.5.21): Loading from cache
  - Installing ockcyp/covers-validator (v1.3.3): Loading from cache
  - Installing monolog/monolog (2.3.5): Loading from cache
  - Installing react/promise (v2.8.0): Loading from cache
  - Installing symfony/process (v5.4.0): Loading from cache
  - Installing symfony/finder (v5.4.0): Loading from cache
  - Installing symfony/filesystem (v5.4.0): Loading from cache
  - Installing seld/phar-utils (1.2.0): Loading from cache
  - Installing seld/jsonlint (1.8.3): Loading from cache
  - Installing justinrainbow/json-schema (5.2.11): Loading from cache
  - Installing composer/metadata-minifier (1.0.0): Loading from cache
  - Installing composer/ca-bundle (1.3.1): Loading from cache
  - Installing composer/composer (2.1.14): Loading from cache
tysonandre/var_representation_polyfill suggests installing ext-var_representation (*)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
phan/phan suggests installing ext-ast (Needed for parsing ASTs (unless --use-fallback-parser is used). 1.0.1+ is needed, 1.0.14+ is recommended.)
phan/phan suggests installing ext-var_representation (Suggested for converting values to strings in issue messages)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.7.2)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0.0)
phpunit/phpunit suggests installing ext-soap (*)
phpunit/phpunit suggests installing ext-xdebug (*)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing elasticsearch/elasticsearch (Allow sending log messages to an Elasticsearch server via official client)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongodb (Allow sending log messages to a MongoDB server (via driver))
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server (via library))
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files
41 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Attempting to npm audit fix
$ npm audit fix --only=dev

> core-js@3.18.2 postinstall /src/repo/node_modules/eslint-plugin-compat/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js:
> https://opencollective.com/core-js 
> https://patreon.com/zloirock 
> https://paypal.me/zloirock 
> bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 259 packages from 211 contributors in 7.424s

50 packages are looking for funding
  run `npm fund` for details

fixed 0 of 1 vulnerability in 457 scanned packages

$ npm audit fix --only=dev
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

up to date in 2.187s

50 packages are looking for funding
  run `npm fund` for details

fixed 0 of 1 vulnerability in 457 scanned packages

$ npm audit fix --only=dev
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

up to date in 2.068s

50 packages are looking for funding
  run `npm fund` for details

fixed 0 of 1 vulnerability in 457 scanned packages

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

Verifying that tests still pass
$ npm ci
npm WARN prepare removing existing node_modules/ before installation

> unix-dgram@2.0.4 install /src/repo/node_modules/unix-dgram
> node-gyp rebuild

make: Entering directory '/src/repo/node_modules/unix-dgram/build'
  CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
In file included from ../../nan/nan.h:58,
                 from ../src/unix_dgram.cc:5:
/cache/node-gyp/10.24.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/cache/node-gyp/10.24.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(unix_dgram, Initialize)
 ^~~~~~~~~~~
In file included from /cache/node-gyp/10.24.0/include/node/node.h:63,
                 from ../../nan/nan.h:58,
                 from ../src/unix_dgram.cc:5:
/cache/node-gyp/10.24.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/cache/node-gyp/10.24.0/include/node/node_object_wrap.h:84:78:   required from here
/cache/node-gyp/10.24.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                reinterpret_cast<Callback>(callback), type);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/node-gyp/10.24.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/cache/node-gyp/10.24.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
  COPY Release/unix_dgram.node
make: Leaving directory '/src/repo/node_modules/unix-dgram/build'

> heapdump@0.3.15 install /src/repo/node_modules/heapdump
> node-gyp rebuild

make: Entering directory '/src/repo/node_modules/heapdump/build'
  CXX(target) Release/obj.target/addon/src/heapdump.o
In file included from ../src/heapdump.cc:15:
/cache/node-gyp/10.24.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/cache/node-gyp/10.24.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/heapdump.cc:136:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(addon, Initialize)
 ^~~~~~~~~~~
In file included from /cache/node-gyp/10.24.0/include/node/node.h:63,
                 from ../src/heapdump.cc:15:
/cache/node-gyp/10.24.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/cache/node-gyp/10.24.0/include/node/node_object_wrap.h:84:78:   required from here
/cache/node-gyp/10.24.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                reinterpret_cast<Callback>(callback), type);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/node-gyp/10.24.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/cache/node-gyp/10.24.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/addon.node
  COPY Release/addon.node
make: Leaving directory '/src/repo/node_modules/heapdump/build'

> dtrace-provider@0.8.8 install /src/repo/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

make: Entering directory '/src/repo/node_modules/dtrace-provider/build'
  TOUCH Release/obj.target/DTraceProviderStub.stamp
make: Leaving directory '/src/repo/node_modules/dtrace-provider/build'

> core-js@2.6.11 postinstall /src/repo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> core-js@3.18.2 postinstall /src/repo/node_modules/eslint-plugin-compat/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

added 456 packages in 17.459s

$ npm test

> parsoid@0.11.0 test /src/repo
> npm run eslint


> parsoid@0.11.0 eslint /src/repo
> eslint --cache --ext .js,.json .


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

$ git add .

$ git commit -F /tmp/tmppki__ojy
[master dcbdc89] [DNM] there are no updates
 3 files changed, 84 insertions(+), 78 deletions(-)
 rewrite package.json (99%)

$ git format-patch HEAD~1 --stdout
From dcbdc89a7626701d9fbed2b91354d1a189a7ec53 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Sat, 18 Dec 2021 02:51:10 +0000
Subject: [PATCH] [DNM] there are no updates

Change-Id: Ibc27aad3ed7c024649539bdc394451e3bc0c10de
---
 .eslintrc.json |  35 +++++++++--------
 composer.json  |  21 +++++-----
 package.json   | 102 ++++++++++++++++++++++++-------------------------
 3 files changed, 82 insertions(+), 76 deletions(-)

diff --git a/.eslintrc.json b/.eslintrc.json
index 7225f3d..afd9cc3 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,4 +1,5 @@
 {
+	"root": true,
 	"extends": [
 		"wikimedia/server",
 		"wikimedia/jsdoc"
@@ -7,18 +8,27 @@
 		"ecmaVersion": 2017
 	},
 	"rules": {
-		"indent": ["error", "tab", {
-			"SwitchCase": 1,
-			"MemberExpression": "off",
-			"CallExpression": { "arguments": "off" },
-			"flatTernaryExpressions": true
-		}],
-		"one-var": ["error", { "initialized": "never" }],
-
+		"indent": [
+			"error",
+			"tab",
+			{
+				"SwitchCase": 1,
+				"MemberExpression": "off",
+				"CallExpression": {
+					"arguments": "off"
+				},
+				"flatTernaryExpressions": true
+			}
+		],
+		"one-var": [
+			"error",
+			{
+				"initialized": "never"
+			}
+		],
 		"no-restricted-properties": "off",
 		"no-restricted-syntax": "off",
 		"node/no-deprecated-api": "off",
-
 		"array-bracket-spacing": "off",
 		"arrow-parens": "off",
 		"camelcase": "off",
@@ -41,7 +51,6 @@
 		"quotes": "off",
 		"space-before-function-paren": "off",
 		"space-in-parens": "off",
-
 		"consistent-this": "off",
 		"default-case": "off",
 		"eol-last": "off",
@@ -55,10 +64,8 @@
 		"strict": "off",
 		"vars-on-top": "off",
 		"wrap-iife": "off",
-
 		"prefer-arrow-callback": "off",
 		"prefer-template": "off",
-
 		"no-console": "off",
 		"no-control-regex": "off",
 		"no-invalid-this": "off",
@@ -72,11 +79,8 @@
 		"no-useless-concat": "off",
 		"no-useless-escape": "off",
 		"no-var": "off",
-
 		"no-buffer-constructor": "warn",
-
 		"no-process-exit": "off",
-
 		"jsdoc/check-alignment": "off",
 		"jsdoc/check-param-names": "off",
 		"jsdoc/check-tag-names": "off",
@@ -88,7 +92,6 @@
 		"jsdoc/require-returns": "off",
 		"jsdoc/require-returns-check": "off",
 		"no-shadow": "off",
-
 		"node/no-missing-require": "off"
 	},
 	"overrides": [
diff --git a/composer.json b/composer.json
index 7ee516f..76989e6 100644
--- a/composer.json
+++ b/composer.json
@@ -41,23 +41,25 @@
 		"ext-json": "*"
 	},
 	"require-dev": {
-		"php-parallel-lint/php-console-highlighter": "0.5.0",
-		"php-parallel-lint/php-parallel-lint": "1.3.1",
-		"monolog/monolog": "^2.2.0",
+		"composer/composer": "^2.1.9",
+		"ext-curl": "*",
 		"mediawiki/mediawiki-codesniffer": "38.0.0",
 		"mediawiki/mediawiki-phan-config": "0.11.0",
 		"mediawiki/minus-x": "1.1.1",
+		"monolog/monolog": "^2.2.0",
+		"ockcyp/covers-validator": "1.3.3",
+		"php-parallel-lint/php-console-highlighter": "0.5.0",
+		"php-parallel-lint/php-parallel-lint": "1.3.1",
 		"phpunit/phpunit": "^8.5",
 		"sebastian/diff": "^3.0.2",
 		"wikimedia/alea": "^0.9.3",
 		"wikimedia/langconv": "^0.4.2",
-		"wikimedia/testing-access-wrapper": "~1.0",
-		"ext-curl": "*",
-		"ockcyp/covers-validator": "1.3.3",
-		"composer/composer": "^2.1.9"
+		"wikimedia/testing-access-wrapper": "~1.0"
 	},
 	"autoload": {
-		"files": [ "DomImpl.php" ],
+		"files": [
+			"DomImpl.php"
+		],
 		"psr-4": {
 			"Wikimedia\\Parsoid\\": "src"
 		}
@@ -96,7 +98,8 @@
 		"parserTests-ucs2": "php bin/parserTests.php --wt2html --wt2wt --html2wt --html2html --selser true --quiet --knownFailures true --offsetType ucs2",
 		"phpunit": "phpunit",
 		"toolcheck": "bin/toolcheck.php.sh",
-		"nodeNameCheck": "bin/nodenamecheck.sh"
+		"nodeNameCheck": "bin/nodenamecheck.sh",
+		"phpcs": "phpcs -sp --cache"
 	},
 	"config": {
 		"process-timeout": 0,
diff --git a/package.json b/package.json
index 2e68355..e5e9417 100644
--- a/package.json
+++ b/package.json
@@ -1,53 +1,53 @@
 {
-  "name": "parsoid",
-  "description": "A bidirectional runtime wikitext parser. Converts back and forth between wikitext and HTML/XML DOM with RDFa.",
-  "version": "0.11.0",
-  "license": "GPL-2.0+",
-  "dependencies": {
-    "babybird": "0.0.1",
-    "connect-busboy": "^0.0.2",
-    "core-js": "^2.5.6",
-    "domino": "^2.1.0",
-    "entities": "^1.1.1",
-    "express": "^4.16.3",
-    "js-yaml": "^3.13.1",
-    "pn": "^1.1.0",
-    "prfun": "^2.1.5",
-    "request": "^2.87.0",
-    "semver": "^6.1.0",
-    "service-runner": "git+https://github.com/wikimedia/service-runner.git#yarg",
-    "simplediff": "^0.1.1",
-    "wikimedia-langconv": "^0.1.0",
-    "wikipeg": "^2.0.6",
-    "yargs": "^16.2.0"
-  },
-  "devDependencies": {
-    "api-testing": "^1.2.0",
-    "chai": "^4.1.2",
-    "colors": "^1.2.4",
-    "eslint": "^7.32.0",
-    "eslint-config-wikimedia": "^0.20.0",
-    "mocha": "git+https://github.com/arlolra/mocha.git#fix-ansi-regex",
-    "nock": "^9.2.5"
-  },
-  "scripts": {
-    "eslint": "eslint --cache --ext .js,.json .",
-    "eslint-fix": "eslint --cache --ext .js,.json --fix .",
-    "regen-php-tokenizer": "bin/inspectTokenizer.js --source --php -o src/Wt2Html/Grammar.php",
-    "regen-php-tokenizer-trace": "bin/inspectTokenizer.js --source --php -o src/Wt2Html/Grammar.php --trace",
-    "regen-php-tests-tokenizer": "node_modules/wikipeg/bin/wikipeg --php --class-name Grammar src/ParserTests/Grammar.pegphp src/ParserTests/Grammar.php",
-    "api-testing": "mocha tests/api-testing",
-    "test": "npm run eslint"
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/wikimedia/parsoid.git"
-  },
-  "deploy": {
-    "target": "debian",
-    "node": "6.9.1",
-    "dependencies": {
-      "_all": []
-    }
-  }
+	"name": "parsoid",
+	"description": "A bidirectional runtime wikitext parser. Converts back and forth between wikitext and HTML/XML DOM with RDFa.",
+	"version": "0.11.0",
+	"license": "GPL-2.0+",
+	"dependencies": {
+		"babybird": "0.0.1",
+		"connect-busboy": "^0.0.2",
+		"core-js": "^2.5.6",
+		"domino": "^2.1.0",
+		"entities": "^1.1.1",
+		"express": "^4.16.3",
+		"js-yaml": "^3.13.1",
+		"pn": "^1.1.0",
+		"prfun": "^2.1.5",
+		"request": "^2.87.0",
+		"semver": "^6.1.0",
+		"service-runner": "git+https://github.com/wikimedia/service-runner.git#yarg",
+		"simplediff": "^0.1.1",
+		"wikimedia-langconv": "^0.1.0",
+		"wikipeg": "^2.0.6",
+		"yargs": "^16.2.0"
+	},
+	"devDependencies": {
+		"api-testing": "^1.2.0",
+		"chai": "^4.1.2",
+		"colors": "^1.2.4",
+		"eslint": "^7.32.0",
+		"eslint-config-wikimedia": "^0.20.0",
+		"mocha": "git+https://github.com/arlolra/mocha.git#fix-ansi-regex",
+		"nock": "^9.2.5"
+	},
+	"scripts": {
+		"eslint": "eslint --cache --ext .js,.json .",
+		"eslint-fix": "eslint --cache --ext .js,.json --fix .",
+		"regen-php-tokenizer": "bin/inspectTokenizer.js --source --php -o src/Wt2Html/Grammar.php",
+		"regen-php-tokenizer-trace": "bin/inspectTokenizer.js --source --php -o src/Wt2Html/Grammar.php --trace",
+		"regen-php-tests-tokenizer": "node_modules/wikipeg/bin/wikipeg --php --class-name Grammar src/ParserTests/Grammar.pegphp src/ParserTests/Grammar.php",
+		"api-testing": "mocha tests/api-testing",
+		"test": "npm run eslint"
+	},
+	"repository": {
+		"type": "git",
+		"url": "https://github.com/wikimedia/parsoid.git"
+	},
+	"deploy": {
+		"target": "debian",
+		"node": "6.9.1",
+		"dependencies": {
+			"_all": []
+		}
+	}
 }
-- 
2.20.1

composer dependencies

Dependencies
Development dependencies

npm dependencies

Dependencies
Development dependencies

Logs

Source code is licensed under the AGPL.