pgaultier / yii2-webpack

Yii2 Webpack2 asset management
Other
106 stars 17 forks source link

Update npm dependency versions #7

Open springimport opened 6 years ago

springimport commented 6 years ago

Generated package.json.

{
    "name": "project",
    "version": "1.0.0",
    "description": "Description",
    "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
    },
    "author": "Author",
    "license": "proprietary",
    "devDependencies": {
        "@types\/node": "^7.0.11",
        "assets-webpack-plugin": "^3.5.1",
        "clean-webpack-plugin": "^0.1.16",
        "compression-webpack-plugin": "^0.3.2",
        "css-loader": "^0.27.3",
        "extract-text-webpack-plugin": "^2.1.0",
        "file-loader": "^0.10.1",
        "less": "^2.7.2",
        "less-loader": "^4.0.2",
        "node-sass": "^4.5.1",
        "sass-loader": "^6.0.3",
        "source-map-loader": "^0.2.0",
        "style-loader": "^0.14.1",
        "ts-loader": "^2.0.2",
        "typescript": "^2.2.1",
        "webpack": "^2.2.1",
        "yargs": "^7.0.2"
    }
}
npm install

``` > node-zopfli@2.0.2 install /var/www/project/node_modules/node-zopfli > node-pre-gyp install --fallback-to-build node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@2.0.2 and node@9.11.2 (node-v59 ABI, glibc) (falling back to source compile with node-gyp) make: entry to the catalog «/var/www/project/node_modules/node-zopfli/build» CXX(target) Release/obj.target/zopfli/src/zopfli-binding.o ../src/zopfli-binding.cc: In member function ‘virtual void nodezopfli::CompressWorker::HandleOKCallback()’: ../src/zopfli-binding.cc:137:27: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local*) const’ is deprecated [-Wdeprecated-declarations] callback->Call(2, argv); ^ In file included from ../src/zopfli-binding.h:5:0, from ../src/zopfli-binding.cc:3: ../../nan/nan.h:1618:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ CXX(target) Release/obj.target/zopfli/src/png/zopflipng.o CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/blocksplitter.o CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/cache.o CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/deflate.o ../zopfli/src/zopfli/deflate.c: In function ‘OptimizeHuffmanForRle’: ../zopfli/src/zopfli/deflate.c:452:16: warning: argument 1 value ‘18446744073709551612’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] good_for_rle = (int*)malloc(length * sizeof(int)); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../zopfli/src/zopfli/lz77.h:28:0, from ../zopfli/src/zopfli/deflate.h:28, from ../zopfli/src/zopfli/deflate.c:20: /usr/include/stdlib.h:424:14: note: in a call to allocation function ‘malloc’ declared here extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur; ^~~~~~ CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/gzip_container.o CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/hash.o CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/katajainen.o CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/lz77.o In file included from ../zopfli/src/zopfli/lz77.c:21:0: ../zopfli/src/zopfli/symbols.h:231:12: warning: ‘ZopfliGetDistSymbolExtraBits’ defined but not used [-Wunused-function] static int ZopfliGetDistSymbolExtraBits(int s) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../zopfli/src/zopfli/symbols.h:222:12: warning: ‘ZopfliGetLengthSymbolExtraBits’ defined but not used [-Wunused-function] static int ZopfliGetLengthSymbolExtraBits(int s) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../zopfli/src/zopfli/symbols.h:161:12: warning: ‘ZopfliGetLengthExtraBitsValue’ defined but not used [-Wunused-function] static int ZopfliGetLengthExtraBitsValue(int l) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../zopfli/src/zopfli/symbols.h:138:12: warning: ‘ZopfliGetLengthExtraBits’ defined but not used [-Wunused-function] static int ZopfliGetLengthExtraBits(int l) { ^~~~~~~~~~~~~~~~~~~~~~~~ ../zopfli/src/zopfli/symbols.h:61:12: warning: ‘ZopfliGetDistExtraBitsValue’ defined but not used [-Wunused-function] static int ZopfliGetDistExtraBitsValue(int dist) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../zopfli/src/zopfli/symbols.h:38:12: warning: ‘ZopfliGetDistExtraBits’ defined but not used [-Wunused-function] static int ZopfliGetDistExtraBits(int dist) { ^~~~~~~~~~~~~~~~~~~~~~ CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/squeeze.o In file included from ../zopfli/src/zopfli/squeeze.c:28:0: ../zopfli/src/zopfli/symbols.h:231:12: warning: ‘ZopfliGetDistSymbolExtraBits’ defined but not used [-Wunused-function] static int ZopfliGetDistSymbolExtraBits(int s) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../zopfli/src/zopfli/symbols.h:222:12: warning: ‘ZopfliGetLengthSymbolExtraBits’ defined but not used [-Wunused-function] static int ZopfliGetLengthSymbolExtraBits(int s) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../zopfli/src/zopfli/symbols.h:161:12: warning: ‘ZopfliGetLengthExtraBitsValue’ defined but not used [-Wunused-function] static int ZopfliGetLengthExtraBitsValue(int l) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../zopfli/src/zopfli/symbols.h:61:12: warning: ‘ZopfliGetDistExtraBitsValue’ defined but not used [-Wunused-function] static int ZopfliGetDistExtraBitsValue(int dist) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~ CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/tree.o CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/util.o CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/zlib_container.o CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/zopfli_lib.o CXX(target) Release/obj.target/zopfli/zopfli/src/zopflipng/zopflipng_lib.o CXX(target) Release/obj.target/zopfli/zopfli/src/zopflipng/lodepng/lodepng.o CXX(target) Release/obj.target/zopfli/zopfli/src/zopflipng/lodepng/lodepng_util.o SOLINK_MODULE(target) Release/obj.target/zopfli.node COPY Release/zopfli.node COPY /var/www/project/node_modules/node-zopfli/lib/binding/node-v59-linux-x64/zopfli.node TOUCH Release/obj.target/action_after_build.stamp make: exit from the catalog «/var/www/project/node_modules/node-zopfli/build» > node-sass@4.9.0 install /var/www/project/node_modules/node-sass > node scripts/install.js Cached binary found at /home/user/.npm/node-sass/4.9.0/linux-x64-59_binding.node > node-sass@4.9.0 postinstall /var/www/project/node_modules/node-sass > node scripts/build.js Binary found at /var/www/project/node_modules/node-sass/vendor/linux-x64-59/binding.node Testing binary Binary is fine npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN project@1.0.0 No repository field. npm WARN project@1.0.0 license should be a valid SPDX license expression npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) added 615 packages from 578 contributors and audited 3671 packages in 15.428s found 21 moderate severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details ```


Well, let's try to fix it:

npm audit fix --force

``` npm WARN using --force I sure hope you know what you are doing. > fsevents@1.2.4 install /var/www/project/node_modules/fsevents > node install npm WARN project@1.0.0 No repository field. npm WARN project@1.0.0 license should be a valid SPDX license expression + compression-webpack-plugin@1.1.11 + less@3.0.4 added 120 packages from 95 contributors, removed 14 packages and updated 3 packages in 5.745s fixed 12 of 21 vulnerabilities in 3671 scanned packages 9 vulnerabilities required manual review and could not be updated 2 package updates for 12 vulns involved breaking changes (installed due to `--force` option) ```

New package.json

{
    "name": "project",
    "version": "1.0.0",
    "description": "Description",
    "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
    },
    "author": "Author",
    "license": "proprietary",
    "devDependencies": {
        "@types/node": "^7.0.11",
        "assets-webpack-plugin": "^3.5.1",
        "clean-webpack-plugin": "^0.1.16",
        "compression-webpack-plugin": "^1.1.11",
        "css-loader": "^0.27.3",
        "extract-text-webpack-plugin": "^2.1.0",
        "file-loader": "^0.10.1",
        "less": "^3.0.4",
        "less-loader": "^4.0.2",
        "node-sass": "^4.5.1",
        "sass-loader": "^6.0.3",
        "source-map-loader": "^0.2.0",
        "style-loader": "^0.14.1",
        "ts-loader": "^2.0.2",
        "typescript": "^2.2.1",
        "webpack": "^2.2.1",
        "yargs": "^7.0.2"
    }
}

Additional info

Q A
Yii version 2.0.15.1
PHP version 7.1 x64
NPM version 6.1.0
Operating system Ubuntu 17.10