mediawiki/libs/LangConv (main)

sourcepatches
From 0eedc47a69b4124fecb759a86967b639351b1b7b Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Sat, 19 Jun 2021 11:17:00 +0000
Subject: [PATCH] build: Updating glob-parent to 5.1.2

* https://npmjs.com/advisories/1751 (CVE-2020-28469)

Change-Id: I3002e15befc6eb991e0a4dbda670ad026a4bbee7
---
 package-lock.json | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 90c9d35..ed2fbd2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1087,9 +1087,9 @@
 			}
 		},
 		"glob-parent": {
-			"version": "5.1.1",
-			"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
-			"integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
+			"version": "5.1.2",
+			"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+			"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
 			"dev": true,
 			"requires": {
 				"is-glob": "^4.0.1"
-- 
2.20.1

$ date
Sat Jun 19 11:16:02 UTC 2021

$ git clone file:///srv/git/mediawiki-libs-LangConv.git repo --depth=1 -b master
Cloning into 'repo'...
Checking out files:  68% (118/173)   
Checking out files:  69% (120/173)   
Checking out files:  70% (122/173)   
Checking out files:  71% (123/173)   
Checking out files:  72% (125/173)   
Checking out files:  73% (127/173)   
Checking out files:  74% (129/173)   
Checking out files:  75% (130/173)   
Checking out files:  76% (132/173)   
Checking out files:  77% (134/173)   
Checking out files:  78% (135/173)   
Checking out files:  79% (137/173)   
Checking out files:  80% (139/173)   
Checking out files:  81% (141/173)   
Checking out files:  82% (142/173)   
Checking out files:  83% (144/173)   
Checking out files:  84% (146/173)   
Checking out files:  85% (148/173)   
Checking out files:  86% (149/173)   
Checking out files:  87% (151/173)   
Checking out files:  88% (153/173)   
Checking out files:  89% (154/173)   
Checking out files:  90% (156/173)   
Checking out files:  91% (158/173)   
Checking out files:  92% (160/173)   
Checking out files:  93% (161/173)   
Checking out files:  94% (163/173)   
Checking out files:  95% (165/173)   
Checking out files:  96% (167/173)   
Checking out files:  97% (168/173)   
Checking out files:  98% (170/173)   
Checking out files:  99% (172/173)   
Checking out files: 100% (173/173)   
Checking out files: 100% (173/173), done.

$ 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
39397f7bffa4cf144a0ac79fe9b9607b7d1e0334 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: 67 installs, 0 updates, 0 removals
  - Installing squizlabs/php_codesniffer (3.6.0): Loading from cache
  - Installing composer/spdx-licenses (1.5.5): Loading from cache
  - Installing composer/semver (3.2.5): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (v36.0.0): Loading from cache
  - Installing symfony/polyfill-php80 (v1.23.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.23.0): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.23.0): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.23.0): Loading from cache
  - Installing symfony/polyfill-ctype (v1.23.0): Loading from cache
  - Installing symfony/string (v5.3.2): Loading from cache
  - Installing psr/container (1.1.1): Loading from cache
  - Installing symfony/service-contracts (v2.4.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.23.0): Loading from cache
  - Installing symfony/deprecation-contracts (v2.4.0): Loading from cache
  - Installing symfony/console (v5.3.2): Loading from cache
  - Installing psr/log (1.1.4): Loading from cache
  - Installing sabre/event (5.1.2): Loading from cache
  - Installing netresearch/jsonmapper (v3.1.1): Loading from cache
  - Installing microsoft/tolerant-php-parser (v0.0.23): 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.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (5.2.2): Loading from cache
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Loading from cache
  - Installing composer/xdebug-handler (1.4.6): Loading from cache
  - Installing phan/phan (3.2.6): Loading from cache
  - Installing mediawiki/phan-taint-check-plugin (3.2.1): Loading from cache
  - Installing mediawiki/mediawiki-phan-config (0.10.6): Loading from cache
  - Installing mediawiki/minus-x (1.1.1): 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.3): 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.3): Loading from cache
  - Installing theseer/tokenizer (1.2.0): 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.14): Loading from cache
  - Installing doctrine/instantiator (1.4.0): Loading from cache
  - Installing phpspec/prophecy (1.13.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.1): Loading from cache
  - Installing phpunit/phpunit (8.5.16): Loading from cache
  - Installing ockcyp/covers-validator (v1.3.3): 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.0): Loading from cache
  - Installing wikimedia/testing-access-wrapper (1.0.0): Loading from cache
  - Installing wikimedia/assert (v0.5.0): Loading from cache
  - Installing symfony/yaml (v5.3.2): Loading from cache
  - Installing symfony/finder (v5.3.0): Loading from cache
  - Installing symfony/process (v5.3.2): Loading from cache
  - Installing psr/event-dispatcher (1.0.0): Loading from cache
  - Installing symfony/event-dispatcher-contracts (v2.4.0): Loading from cache
  - Installing symfony/event-dispatcher (v5.3.0): Loading from cache
  - Installing phpspec/php-diff (v1.1.3): Loading from cache
  - Installing phpspec/phpspec (6.3.1): Loading from cache
symfony/service-contracts suggests installing symfony/service-implementation
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.8+ is recommended.)
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 (*)
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/event-dispatcher suggests installing symfony/http-kernel
phpspec/phpspec suggests installing phpspec/nyan-formatters (Adds Nyan formatters)
Package sebastian/resource-operations is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files
37 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@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.10.1 postinstall /src/repo/node_modules/eslint-plugin-compat/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

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

added 288 packages from 184 contributors in 11.4s

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

fixed 2 of 2 vulnerabilities in 289 scanned packages

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

up to date in 1.746s

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

fixed 0 of 0 vulnerabilities in 289 scanned packages

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

up to date in 1.697s

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

fixed 0 of 0 vulnerabilities in 289 scanned packages

$ package-lock-lint package-lock.json
0 issues found in: package-lock.json

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

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


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

added 289 packages in 8.201s

$ npm test

> wikimedia-langconv@0.4.1 test /src/repo
> npm run eslint && npm run mocha


> wikimedia-langconv@0.4.1 eslint /src/repo
> eslint lib


/src/repo/lib/FST.js
  44:0  warning  The type 'Utf8Array' is undefined          jsdoc/no-undefined-types
  48:0  warning  The type 'BracketMachine' is undefined     jsdoc/no-undefined-types
  48:0  warning  The type 'ConversionMachine' is undefined  jsdoc/no-undefined-types

/src/repo/lib/ReplacementMachine.js
   15:0  warning  Missing JSDoc @param "baseLanguage" type  jsdoc/require-param-type
   34:2  warning  Missing JSDoc @return declaration         jsdoc/require-returns
   35:0  warning  Missing JSDoc @param "filename" type      jsdoc/require-param-type
   36:0  warning  Missing JSDoc @param "bracket" type       jsdoc/require-param-type
   56:2  warning  Found more than one @return declaration   jsdoc/require-returns
   56:2  warning  Found more than one @return declaration   jsdoc/require-returns-check
   66:0  warning  Missing JSDoc @param "s" type             jsdoc/require-param-type
   67:0  warning  Missing JSDoc @param "destCode" type      jsdoc/require-param-type
   68:0  warning  Missing JSDoc @param "invertCode" type    jsdoc/require-param-type
   99:0  warning  The type 'Node' is undefined              jsdoc/no-undefined-types
  102:0  warning  The type 'Node' is undefined              jsdoc/no-undefined-types
  130:0  warning  The type 'Document' is undefined          jsdoc/no-undefined-types
  138:0  warning  The type 'DocumentFragment' is undefined  jsdoc/no-undefined-types

✖ 16 problems (0 errors, 16 warnings)


> wikimedia-langconv@0.4.1 mocha /src/repo
> mocha --opts tests/mocha/mocha.opts tests/mocha

(node:475) DeprecationWarning: Configuration via mocha.opts is DEPRECATED and will be removed from a future version of Mocha. Use RC files or package.json instead.


  Foma FST verification
    - LANGCONV_TEST_FOMA is not set, skipping

  Language/CRH tests
    ✓ general words, covering more of the alphabet (1) [crh-cyrl]
    ✓ general words, covering more of the alphabet (2) [crh-cyrl]
    ✓ general words, covering more of the alphabet (3) [crh-cyrl]
    ✓ general words, covering more of the alphabet (4) [crh-cyrl]
    ✓ exception words [crh-cyrl]
    ✓ recent problem words, part 1 [crh-cyrl]
    ✓ recent problem words, part 2 [crh-cyrl]
    ✓ recent problem words, part 3 [crh-cyrl]
    ✓ recent problem words, part 4 [crh-cyrl]
    ✓ recent problem words, part 5 [crh-cyrl]
    ✓ recent problem words, part 6 [crh-cyrl]
    ✓ recent problem words, part 7 [crh-cyrl]
    ✓ regex pattern words [crh-cyrl]
    ✓ multi part words [crh-cyrl]
    ✓ affix patterns [crh-cyrl]
    ✓ Roman numerals and quotes, esp. single-letter Roman numerals at the end of a string [crh-cyrl]
    ✓ Roman numerals vs Initials, part 1 - Roman numeral initials without spaces [crh-cyrl]
    ✓ Roman numerals vs Initials, part 2 - Roman numeral initials with spaces [crh-cyrl]
    ✓ ALL CAPS, made up acronyms [crh-cyrl]
    ✓ Many-to-one mappings: many Cyrillic to one Latin [crh-cyrl]
    ✓ Many-to-one mappings: many Latin to one Cyrillic [crh-cyrl]
    ✓ general words, covering more of the alphabet (1) [crh-latn]
    ✓ general words, covering more of the alphabet (2) [crh-latn]
    ✓ general words, covering more of the alphabet (3) [crh-latn]
    ✓ general words, covering more of the alphabet (4) [crh-latn]
    ✓ exception words [crh-latn]
    ✓ recent problem words, part 1 [crh-latn]
    ✓ recent problem words, part 2 [crh-latn]
    ✓ recent problem words, part 3 [crh-latn]
    ✓ recent problem words, part 4 [crh-latn]
    ✓ recent problem words, part 5 [crh-latn]
    ✓ recent problem words, part 6 [crh-latn]
    ✓ recent problem words, part 7 [crh-latn]
    ✓ regex pattern words [crh-latn]
    ✓ multi part words [crh-latn]
    ✓ affix patterns [crh-latn]
    ✓ Roman numerals and quotes, esp. single-letter Roman numerals at the end of a string [crh-latn]
    ✓ Roman numerals vs Initials, part 1 - Roman numeral initials without spaces [crh-latn]
    ✓ Roman numerals vs Initials, part 2 - Roman numeral initials with spaces [crh-latn]
    ✓ ALL CAPS, made up acronyms [crh-latn]
    ✓ Many-to-one mappings: many Cyrillic to one Latin [crh-latn]
    ✓ Many-to-one mappings: many Latin to one Cyrillic [crh-latn]

  LanguageEn tests
    ✓ Converting to Pig Latin [en]
    ✓ Converting from Pig Latin [en]
    ✓ Converting to Pig Latin [en-x-piglatin]
    ✓ Converting from Pig Latin [en-x-piglatin]

  LanguageKu tests
    ✓ Test (1) [ku-arab]
    ✓ Test (3) [ku-arab]
    ✓ Test (1) [ku-latn]
    ✓ Test (2) [ku-latn]
    ✓ Test (3) [ku-latn]

  LanguageSr tests
    ✓ A simple conversion of Latin to Cyrillic [sr-ec]

  LanguageZh tests
    ✓ Plain hant -> hans [zh-cn]
    ✓ Plain hans -> hant [zh-cn]
    ✓ zh-cn specific [zh-cn]
    ✓ zh-hk specific [zh-cn]
    ✓ zh-tw specific [zh-cn]
    ✓ zh-tw overrides zh-hant [zh-cn]
    ✓ zh-hk overrides zh-hant [zh-cn]
    ✓ Plain hant -> hans [zh-sg]
    ✓ Plain hans -> hant [zh-sg]
    ✓ zh-cn specific [zh-sg]
    ✓ zh-hk specific [zh-sg]
    ✓ zh-tw specific [zh-sg]
    ✓ zh-tw overrides zh-hant [zh-sg]
    ✓ zh-hk overrides zh-hant [zh-sg]
    ✓ Plain hant -> hans [zh-my]
    ✓ Plain hans -> hant [zh-my]
    ✓ zh-cn specific [zh-my]
    ✓ zh-hk specific [zh-my]
    ✓ zh-tw specific [zh-my]
    ✓ zh-tw overrides zh-hant [zh-my]
    ✓ zh-hk overrides zh-hant [zh-my]
    ✓ Plain hant -> hans [zh-hans]
    ✓ Plain hans -> hant [zh-hans]
    ✓ zh-cn specific [zh-hans]
    ✓ zh-hk specific [zh-hans]
    ✓ zh-tw specific [zh-hans]
    ✓ zh-tw overrides zh-hant [zh-hans]
    ✓ zh-hk overrides zh-hant [zh-hans]
    ✓ Plain hant -> hans [zh-tw]
    ✓ Plain hans -> hant [zh-tw]
    ✓ zh-cn specific [zh-tw]
    ✓ zh-hk specific [zh-tw]
    ✓ zh-tw specific [zh-tw]
    ✓ zh-tw overrides zh-hant [zh-tw]
    ✓ zh-hk overrides zh-hant [zh-tw]
    ✓ Plain hant -> hans [zh-hk]
    ✓ Plain hans -> hant [zh-hk]
    ✓ zh-cn specific [zh-hk]
    ✓ zh-hk specific [zh-hk]
    ✓ zh-tw specific [zh-hk]
    ✓ zh-tw overrides zh-hant [zh-hk]
    ✓ zh-hk overrides zh-hant [zh-hk]
    ✓ Plain hant -> hans [zh-mo]
    ✓ Plain hans -> hant [zh-mo]
    ✓ zh-cn specific [zh-mo]
    ✓ zh-hk specific [zh-mo]
    ✓ zh-tw specific [zh-mo]
    ✓ zh-tw overrides zh-hant [zh-mo]
    ✓ zh-hk overrides zh-hant [zh-mo]
    ✓ Plain hant -> hans [zh-hant]
    ✓ Plain hans -> hant [zh-hant]
    ✓ zh-cn specific [zh-hant]
    ✓ zh-hk specific [zh-hant]
    ✓ zh-tw specific [zh-hant]
    ✓ zh-tw overrides zh-hant [zh-hant]
    ✓ zh-hk overrides zh-hant [zh-hant]


  108 passing (87ms)
  1 pending


Upgrading n:glob-parent from 5.1.1 -> 5.1.2
$ package-lock-lint package-lock.json
0 issues found in: package-lock.json

$ git add .

$ git commit -F /tmp/tmpuydte3nx
[master 0eedc47] build: Updating glob-parent to 5.1.2
 1 file changed, 3 insertions(+), 3 deletions(-)

$ git format-patch HEAD~1 --stdout
From 0eedc47a69b4124fecb759a86967b639351b1b7b Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Sat, 19 Jun 2021 11:17:00 +0000
Subject: [PATCH] build: Updating glob-parent to 5.1.2

* https://npmjs.com/advisories/1751 (CVE-2020-28469)

Change-Id: I3002e15befc6eb991e0a4dbda670ad026a4bbee7
---
 package-lock.json | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 90c9d35..ed2fbd2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1087,9 +1087,9 @@
 			}
 		},
 		"glob-parent": {
-			"version": "5.1.1",
-			"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
-			"integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
+			"version": "5.1.2",
+			"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+			"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
 			"dev": true,
 			"requires": {
 				"is-glob": "^4.0.1"
-- 
2.20.1

composer dependencies

Dependencies
Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.