mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: bump @babel dependencies (#27632)
This fixes: ``` Run npm audit --omit dev # npm audit report @babel/traverse <7.23.2 Severity: critical Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code - https://github.com/advisories/GHSA-[6](https://github.com/microsoft/playwright/actions/runs/6535308689/job/17744452034?pr=27631#step:10:7)[7](https://github.com/microsoft/playwright/actions/runs/6535308689/job/17744452034?pr=27631#step:10:8)hx-6x53-jw[9](https://github.com/microsoft/playwright/actions/runs/6535308689/job/17744452034?pr=27631#step:10:10)2 fix available via `npm audit fix` node_modules/@babel/traverse 1 critical severity vulnerability To address all issues, run: npm audit fix Error: Process completed with exit code 1. ```
This commit is contained in:
parent
86ce598dfa
commit
0a49c3dbb9
666
package-lock.json
generated
666
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -51,17 +51,17 @@
|
||||
],
|
||||
"devDependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@babel/cli": "^7.19.3",
|
||||
"@babel/cli": "^7.23.0",
|
||||
"@babel/code-frame": "^7.22.13",
|
||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
||||
"@babel/plugin-proposal-logical-assignment-operators": "^7.18.9",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
|
||||
"@babel/plugin-transform-typescript": "^7.20.2",
|
||||
"@babel/preset-react": "^7.18.6",
|
||||
"@types/babel__core": "^7.20.0",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
|
||||
"@babel/plugin-transform-typescript": "^7.22.15",
|
||||
"@babel/preset-react": "^7.22.15",
|
||||
"@types/babel__core": "^7.20.2",
|
||||
"@types/codemirror": "^5.60.7",
|
||||
"@types/formidable": "^2.0.4",
|
||||
"@types/node": "^16.18.34",
|
||||
|
||||
@ -8,7 +8,7 @@ This project incorporates components from the projects listed below. The origina
|
||||
- @babel/code-frame@7.22.13 (https://github.com/babel/babel)
|
||||
- @babel/code-frame@7.22.5 (https://github.com/babel/babel)
|
||||
- @babel/compat-data@7.22.20 (https://github.com/babel/babel)
|
||||
- @babel/core@7.23.0 (https://github.com/babel/babel)
|
||||
- @babel/core@7.23.2 (https://github.com/babel/babel)
|
||||
- @babel/generator@7.23.0 (https://github.com/babel/babel)
|
||||
- @babel/helper-annotate-as-pure@7.22.5 (https://github.com/babel/babel)
|
||||
- @babel/helper-compilation-targets@7.22.15 (https://github.com/babel/babel)
|
||||
@ -29,11 +29,11 @@ This project incorporates components from the projects listed below. The origina
|
||||
- @babel/helper-validator-identifier@7.22.20 (https://github.com/babel/babel)
|
||||
- @babel/helper-validator-identifier@7.22.5 (https://github.com/babel/babel)
|
||||
- @babel/helper-validator-option@7.22.15 (https://github.com/babel/babel)
|
||||
- @babel/helpers@7.23.1 (https://github.com/babel/babel)
|
||||
- @babel/helpers@7.23.2 (https://github.com/babel/babel)
|
||||
- @babel/highlight@7.22.20 (https://github.com/babel/babel)
|
||||
- @babel/highlight@7.22.5 (https://github.com/babel/babel)
|
||||
- @babel/parser@7.23.0 (https://github.com/babel/babel)
|
||||
- @babel/plugin-proposal-decorators@7.23.0 (https://github.com/babel/babel)
|
||||
- @babel/plugin-proposal-decorators@7.23.2 (https://github.com/babel/babel)
|
||||
- @babel/plugin-syntax-async-generators@7.8.4 (https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-async-generators)
|
||||
- @babel/plugin-syntax-class-static-block@7.14.5 (https://github.com/babel/babel)
|
||||
- @babel/plugin-syntax-decorators@7.22.10 (https://github.com/babel/babel)
|
||||
@ -63,9 +63,9 @@ This project incorporates components from the projects listed below. The origina
|
||||
- @babel/plugin-transform-private-property-in-object@7.22.11 (https://github.com/babel/babel)
|
||||
- @babel/plugin-transform-react-jsx@7.22.15 (https://github.com/babel/babel)
|
||||
- @babel/plugin-transform-typescript@7.22.15 (https://github.com/babel/babel)
|
||||
- @babel/preset-typescript@7.23.0 (https://github.com/babel/babel)
|
||||
- @babel/preset-typescript@7.23.2 (https://github.com/babel/babel)
|
||||
- @babel/template@7.22.15 (https://github.com/babel/babel)
|
||||
- @babel/traverse@7.23.0 (https://github.com/babel/babel)
|
||||
- @babel/traverse@7.23.2 (https://github.com/babel/babel)
|
||||
- @babel/types@7.23.0 (https://github.com/babel/babel)
|
||||
- @jest/expect-utils@29.5.0 (https://github.com/facebook/jest)
|
||||
- @jest/schemas@29.4.3 (https://github.com/facebook/jest)
|
||||
@ -441,7 +441,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/compat-data@7.22.20 AND INFORMATION
|
||||
|
||||
%% @babel/core@7.23.0 NOTICES AND INFORMATION BEGIN HERE
|
||||
%% @babel/core@7.23.2 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
MIT License
|
||||
|
||||
@ -466,7 +466,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/core@7.23.0 AND INFORMATION
|
||||
END OF @babel/core@7.23.2 AND INFORMATION
|
||||
|
||||
%% @babel/generator@7.23.0 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
@ -1008,7 +1008,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/helper-validator-option@7.22.15 AND INFORMATION
|
||||
|
||||
%% @babel/helpers@7.23.1 NOTICES AND INFORMATION BEGIN HERE
|
||||
%% @babel/helpers@7.23.2 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
MIT License
|
||||
|
||||
@ -1033,7 +1033,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/helpers@7.23.1 AND INFORMATION
|
||||
END OF @babel/helpers@7.23.2 AND INFORMATION
|
||||
|
||||
%% @babel/highlight@7.22.20 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
@ -1113,7 +1113,7 @@ THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/parser@7.23.0 AND INFORMATION
|
||||
|
||||
%% @babel/plugin-proposal-decorators@7.23.0 NOTICES AND INFORMATION BEGIN HERE
|
||||
%% @babel/plugin-proposal-decorators@7.23.2 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
MIT License
|
||||
|
||||
@ -1138,7 +1138,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/plugin-proposal-decorators@7.23.0 AND INFORMATION
|
||||
END OF @babel/plugin-proposal-decorators@7.23.2 AND INFORMATION
|
||||
|
||||
%% @babel/plugin-syntax-async-generators@7.8.4 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
@ -1923,7 +1923,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/plugin-transform-typescript@7.22.15 AND INFORMATION
|
||||
|
||||
%% @babel/preset-typescript@7.23.0 NOTICES AND INFORMATION BEGIN HERE
|
||||
%% @babel/preset-typescript@7.23.2 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
MIT License
|
||||
|
||||
@ -1948,7 +1948,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/preset-typescript@7.23.0 AND INFORMATION
|
||||
END OF @babel/preset-typescript@7.23.2 AND INFORMATION
|
||||
|
||||
%% @babel/template@7.22.15 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
@ -1977,7 +1977,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/template@7.22.15 AND INFORMATION
|
||||
|
||||
%% @babel/traverse@7.23.0 NOTICES AND INFORMATION BEGIN HERE
|
||||
%% @babel/traverse@7.23.2 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
MIT License
|
||||
|
||||
@ -2002,7 +2002,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
=========================================
|
||||
END OF @babel/traverse@7.23.0 AND INFORMATION
|
||||
END OF @babel/traverse@7.23.2 AND INFORMATION
|
||||
|
||||
%% @babel/types@7.23.0 NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
|
||||
86
packages/playwright/bundles/babel/package-lock.json
generated
86
packages/playwright/bundles/babel/package-lock.json
generated
@ -9,10 +9,10 @@
|
||||
"version": "0.0.1",
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.22.13",
|
||||
"@babel/core": "^7.23.0",
|
||||
"@babel/core": "^7.23.2",
|
||||
"@babel/helper-plugin-utils": "^7.22.5",
|
||||
"@babel/parser": "^7.23.0",
|
||||
"@babel/plugin-proposal-decorators": "^7.23.0",
|
||||
"@babel/plugin-proposal-decorators": "^7.23.2",
|
||||
"@babel/plugin-syntax-async-generators": "^7.8.4",
|
||||
"@babel/plugin-syntax-import-assertions": "^7.22.5",
|
||||
"@babel/plugin-syntax-json-strings": "^7.8.3",
|
||||
@ -30,13 +30,13 @@
|
||||
"@babel/plugin-transform-private-methods": "^7.22.5",
|
||||
"@babel/plugin-transform-private-property-in-object": "^7.22.11",
|
||||
"@babel/plugin-transform-react-jsx": "^7.22.15",
|
||||
"@babel/preset-typescript": "^7.23.0"
|
||||
"@babel/preset-typescript": "^7.23.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/babel__code-frame": "^7.0.3",
|
||||
"@types/babel__core": "^7.20.0",
|
||||
"@types/babel__helper-plugin-utils": "^7.10.0",
|
||||
"@types/babel__traverse": "^7.20.0"
|
||||
"@types/babel__code-frame": "^7.0.4",
|
||||
"@types/babel__core": "^7.20.2",
|
||||
"@types/babel__helper-plugin-utils": "^7.10.1",
|
||||
"@types/babel__traverse": "^7.20.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@ampproject/remapping": {
|
||||
@ -72,19 +72,19 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/core": {
|
||||
"version": "7.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz",
|
||||
"integrity": "sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.2.tgz",
|
||||
"integrity": "sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==",
|
||||
"dependencies": {
|
||||
"@ampproject/remapping": "^2.2.0",
|
||||
"@babel/code-frame": "^7.22.13",
|
||||
"@babel/generator": "^7.23.0",
|
||||
"@babel/helper-compilation-targets": "^7.22.15",
|
||||
"@babel/helper-module-transforms": "^7.23.0",
|
||||
"@babel/helpers": "^7.23.0",
|
||||
"@babel/helpers": "^7.23.2",
|
||||
"@babel/parser": "^7.23.0",
|
||||
"@babel/template": "^7.22.15",
|
||||
"@babel/traverse": "^7.23.0",
|
||||
"@babel/traverse": "^7.23.2",
|
||||
"@babel/types": "^7.23.0",
|
||||
"convert-source-map": "^2.0.0",
|
||||
"debug": "^4.1.0",
|
||||
@ -326,12 +326,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/helpers": {
|
||||
"version": "7.23.1",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.1.tgz",
|
||||
"integrity": "sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.2.tgz",
|
||||
"integrity": "sha512-lzchcp8SjTSVe/fPmLwtWVBFC7+Tbn8LGHDVfDp9JGxpAY5opSaEFgt8UQvrnECWOTdji2mOWMz1rOhkHscmGQ==",
|
||||
"dependencies": {
|
||||
"@babel/template": "^7.22.15",
|
||||
"@babel/traverse": "^7.23.0",
|
||||
"@babel/traverse": "^7.23.2",
|
||||
"@babel/types": "^7.23.0"
|
||||
},
|
||||
"engines": {
|
||||
@ -363,9 +363,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/plugin-proposal-decorators": {
|
||||
"version": "7.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.0.tgz",
|
||||
"integrity": "sha512-kYsT+f5ARWF6AdFmqoEEp+hpqxEB8vGmRWfw2aj78M2vTwS2uHW91EF58iFm1Z9U8Y/RrLu2XKJn46P9ca1b0w==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.2.tgz",
|
||||
"integrity": "sha512-eR0gJQc830fJVGz37oKLvt9W9uUIQSAovUl0e9sJ3YeO09dlcoBVYD3CLrjCj4qHdXmfiyTyFt8yeQYSN5fxLg==",
|
||||
"dependencies": {
|
||||
"@babel/helper-create-class-features-plugin": "^7.22.15",
|
||||
"@babel/helper-plugin-utils": "^7.22.5",
|
||||
@ -780,9 +780,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/preset-typescript": {
|
||||
"version": "7.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.0.tgz",
|
||||
"integrity": "sha512-6P6VVa/NM/VlAYj5s2Aq/gdVg8FSENCg3wlZ6Qau9AcPaoF5LbN1nyGlR9DTRIw9PpxI94e+ReydsJHcjwAweg==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.2.tgz",
|
||||
"integrity": "sha512-u4UJc1XsS1GhIGteM8rnGiIvf9rJpiVgMEeCnwlLA7WJPC+jcXWJAGxYmeqs5hOZD8BbAfnV5ezBOxQbb4OUxA==",
|
||||
"dependencies": {
|
||||
"@babel/helper-plugin-utils": "^7.22.5",
|
||||
"@babel/helper-validator-option": "^7.22.15",
|
||||
@ -811,9 +811,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/traverse": {
|
||||
"version": "7.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.0.tgz",
|
||||
"integrity": "sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz",
|
||||
"integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==",
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.22.13",
|
||||
"@babel/generator": "^7.23.0",
|
||||
@ -1232,19 +1232,19 @@
|
||||
"integrity": "sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw=="
|
||||
},
|
||||
"@babel/core": {
|
||||
"version": "7.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz",
|
||||
"integrity": "sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.2.tgz",
|
||||
"integrity": "sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==",
|
||||
"requires": {
|
||||
"@ampproject/remapping": "^2.2.0",
|
||||
"@babel/code-frame": "^7.22.13",
|
||||
"@babel/generator": "^7.23.0",
|
||||
"@babel/helper-compilation-targets": "^7.22.15",
|
||||
"@babel/helper-module-transforms": "^7.23.0",
|
||||
"@babel/helpers": "^7.23.0",
|
||||
"@babel/helpers": "^7.23.2",
|
||||
"@babel/parser": "^7.23.0",
|
||||
"@babel/template": "^7.22.15",
|
||||
"@babel/traverse": "^7.23.0",
|
||||
"@babel/traverse": "^7.23.2",
|
||||
"@babel/types": "^7.23.0",
|
||||
"convert-source-map": "^2.0.0",
|
||||
"debug": "^4.1.0",
|
||||
@ -1413,12 +1413,12 @@
|
||||
"integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA=="
|
||||
},
|
||||
"@babel/helpers": {
|
||||
"version": "7.23.1",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.1.tgz",
|
||||
"integrity": "sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.2.tgz",
|
||||
"integrity": "sha512-lzchcp8SjTSVe/fPmLwtWVBFC7+Tbn8LGHDVfDp9JGxpAY5opSaEFgt8UQvrnECWOTdji2mOWMz1rOhkHscmGQ==",
|
||||
"requires": {
|
||||
"@babel/template": "^7.22.15",
|
||||
"@babel/traverse": "^7.23.0",
|
||||
"@babel/traverse": "^7.23.2",
|
||||
"@babel/types": "^7.23.0"
|
||||
}
|
||||
},
|
||||
@ -1438,9 +1438,9 @@
|
||||
"integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw=="
|
||||
},
|
||||
"@babel/plugin-proposal-decorators": {
|
||||
"version": "7.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.0.tgz",
|
||||
"integrity": "sha512-kYsT+f5ARWF6AdFmqoEEp+hpqxEB8vGmRWfw2aj78M2vTwS2uHW91EF58iFm1Z9U8Y/RrLu2XKJn46P9ca1b0w==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.2.tgz",
|
||||
"integrity": "sha512-eR0gJQc830fJVGz37oKLvt9W9uUIQSAovUl0e9sJ3YeO09dlcoBVYD3CLrjCj4qHdXmfiyTyFt8yeQYSN5fxLg==",
|
||||
"requires": {
|
||||
"@babel/helper-create-class-features-plugin": "^7.22.15",
|
||||
"@babel/helper-plugin-utils": "^7.22.5",
|
||||
@ -1705,9 +1705,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/preset-typescript": {
|
||||
"version": "7.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.0.tgz",
|
||||
"integrity": "sha512-6P6VVa/NM/VlAYj5s2Aq/gdVg8FSENCg3wlZ6Qau9AcPaoF5LbN1nyGlR9DTRIw9PpxI94e+ReydsJHcjwAweg==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.2.tgz",
|
||||
"integrity": "sha512-u4UJc1XsS1GhIGteM8rnGiIvf9rJpiVgMEeCnwlLA7WJPC+jcXWJAGxYmeqs5hOZD8BbAfnV5ezBOxQbb4OUxA==",
|
||||
"requires": {
|
||||
"@babel/helper-plugin-utils": "^7.22.5",
|
||||
"@babel/helper-validator-option": "^7.22.15",
|
||||
@ -1727,9 +1727,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/traverse": {
|
||||
"version": "7.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.0.tgz",
|
||||
"integrity": "sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz",
|
||||
"integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==",
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.22.13",
|
||||
"@babel/generator": "^7.23.0",
|
||||
|
||||
@ -10,10 +10,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.22.13",
|
||||
"@babel/core": "^7.23.0",
|
||||
"@babel/core": "^7.23.2",
|
||||
"@babel/helper-plugin-utils": "^7.22.5",
|
||||
"@babel/parser": "^7.23.0",
|
||||
"@babel/plugin-proposal-decorators": "^7.23.0",
|
||||
"@babel/plugin-proposal-decorators": "^7.23.2",
|
||||
"@babel/plugin-syntax-async-generators": "^7.8.4",
|
||||
"@babel/plugin-syntax-import-assertions": "^7.22.5",
|
||||
"@babel/plugin-syntax-json-strings": "^7.8.3",
|
||||
@ -31,12 +31,12 @@
|
||||
"@babel/plugin-transform-private-methods": "^7.22.5",
|
||||
"@babel/plugin-transform-private-property-in-object": "^7.22.11",
|
||||
"@babel/plugin-transform-react-jsx": "^7.22.15",
|
||||
"@babel/preset-typescript": "^7.23.0"
|
||||
"@babel/preset-typescript": "^7.23.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/babel__code-frame": "^7.0.3",
|
||||
"@types/babel__core": "^7.20.0",
|
||||
"@types/babel__helper-plugin-utils": "^7.10.0",
|
||||
"@types/babel__code-frame": "^7.0.4",
|
||||
"@types/babel__core": "^7.20.2",
|
||||
"@types/babel__helper-plugin-utils": "^7.10.1",
|
||||
"@types/babel__traverse": "^7.20.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,8 +14,8 @@
|
||||
"vue-router": "^4.1.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.16",
|
||||
"@babel/eslint-parser": "^7.12.16",
|
||||
"@babel/core": "^7.23.2",
|
||||
"@babel/eslint-parser": "^7.22.15",
|
||||
"@vue/cli-plugin-babel": "~5.0.0",
|
||||
"@vue/cli-plugin-eslint": "~5.0.0",
|
||||
"@vue/cli-plugin-router": "~5.0.0",
|
||||
|
||||
@ -14,8 +14,8 @@
|
||||
"vue-router": "^3.6.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.16",
|
||||
"@babel/eslint-parser": "^7.12.16",
|
||||
"@babel/core": "^7.23.2",
|
||||
"@babel/eslint-parser": "^7.22.15",
|
||||
"@vue/cli-plugin-babel": "~5.0.0",
|
||||
"@vue/cli-plugin-eslint": "~5.0.0",
|
||||
"@vue/cli-service": "~5.0.0",
|
||||
|
||||
@ -46,7 +46,7 @@ export function assertEqual(value1, value2) {
|
||||
|
||||
// NOTE: this is exact formula from SSIM.js and it DOES NOT include alpha.
|
||||
// We use it to better compare with original SSIM implementation.
|
||||
export function grayChannel(image: PNG) {
|
||||
export function grayChannel(image: any) {
|
||||
const width = image.width;
|
||||
const height = image.height;
|
||||
const gray = new Uint8Array(image.width * image.height);
|
||||
|
||||
@ -33,7 +33,7 @@ export class VideoPlayer {
|
||||
frames: number;
|
||||
videoWidth: number;
|
||||
videoHeight: number;
|
||||
cache = new Map<number, PNG>();
|
||||
cache = new Map<number, any>();
|
||||
|
||||
constructor(fileName: string) {
|
||||
this.fileName = fileName;
|
||||
@ -56,7 +56,7 @@ export class VideoPlayer {
|
||||
this.videoHeight = parseInt(resolutionMatch![2], 10);
|
||||
}
|
||||
|
||||
seekFirstNonEmptyFrame(offset?: { x: number, y: number }): PNG | undefined {
|
||||
seekFirstNonEmptyFrame(offset?: { x: number, y: number }): any | undefined {
|
||||
for (let f = 1; f <= this.frames; ++f) {
|
||||
const frame = this.frame(f, offset);
|
||||
let hasColor = false;
|
||||
@ -71,11 +71,11 @@ export class VideoPlayer {
|
||||
}
|
||||
}
|
||||
|
||||
seekLastFrame(offset?: { x: number, y: number }): PNG {
|
||||
seekLastFrame(offset?: { x: number, y: number }): any {
|
||||
return this.frame(this.frames, offset);
|
||||
}
|
||||
|
||||
frame(frame: number, offset = { x: 10, y: 10 }): PNG {
|
||||
frame(frame: number, offset = { x: 10, y: 10 }): any {
|
||||
if (!this.cache.has(frame)) {
|
||||
const gap = '0'.repeat(3 - String(frame).length);
|
||||
const buffer = fs.readFileSync(`${this.fileName}-${gap}${frame}.png`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user