Skip to content

Commit 0a9a91e

Browse files
committed
Updated dependencies and resolved related issues.
1 parent 90a586e commit 0a9a91e

File tree

9 files changed

+7557
-4491
lines changed

9 files changed

+7557
-4491
lines changed

conf/webpack.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const webpackMerge = require('webpack-merge');
1+
const { merge: webpackMerge } = require('webpack-merge');
22
const TerserJSPlugin = require('terser-webpack-plugin');
33
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
44
const commonConf = require('./webpack.common.js');

package-lock.json

+7,492-4,434
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+46-46
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "snapp",
3-
"version": "5.0.0",
3+
"version": "6.0.0",
44
"description": "Snapp! transforms you Snap! projects into standalone executables.",
55
"author": {
66
"name": "Adrian Hintze",
@@ -53,72 +53,72 @@
5353
"postdownload-nw-mac64": "rimraf build/resources/nw/mac64/credits.html && rimraf build/resources/nw/mac64/Contents/Resources/app.icns && rimraf build/resources/nw/mac64/Contents/Resources/Info.plist && rimraf build/resources/nw/mac64/Contents/Resources/en.lproj/InfoPlist.strings"
5454
},
5555
"engines": {
56-
"node": "13.10.1",
57-
"npm": "6.13.7"
56+
"node": "14.13.1",
57+
"npm": "6.14.8"
5858
},
5959
"dependencies": {
60-
"archiver": "3.1.1",
60+
"archiver": "5.0.2",
6161
"body-parser": "1.19.0",
6262
"compression": "1.7.4",
6363
"download-cli": "1.1.1",
6464
"express": "4.17.1",
65-
"mkdirp": "1.0.3",
66-
"mime": "2.4.4",
65+
"mkdirp": "1.0.4",
66+
"mime": "2.4.6",
6767
"move-cli": "1.2.1",
6868
"multer": "1.4.2",
6969
"rimraf": "3.0.2",
7070
"sax": "1.2.4",
7171
"stream-to-array": "2.3.0",
72-
"winston": "3.2.1",
73-
"winston-daily-rotate-file": "4.4.2"
72+
"winston": "3.3.3",
73+
"winston-daily-rotate-file": "4.5.0"
7474
},
7575
"devDependencies": {
76-
"@angular/animations": "9.0.5",
77-
"@angular/common": "9.0.5",
78-
"@angular/compiler": "9.0.5",
79-
"@angular/core": "9.0.5",
80-
"@angular/forms": "9.0.5",
81-
"@angular/platform-browser": "9.0.5",
82-
"@angular/platform-browser-dynamic": "9.0.5",
83-
"@angular/router": "9.0.5",
84-
"@types/archiver": "3.1.0",
76+
"@angular/animations": "10.1.5",
77+
"@angular/common": "10.1.5",
78+
"@angular/compiler": "10.1.5",
79+
"@angular/core": "10.1.5",
80+
"@angular/forms": "10.1.5",
81+
"@angular/platform-browser": "10.1.5",
82+
"@angular/platform-browser-dynamic": "10.1.5",
83+
"@angular/router": "10.1.5",
84+
"@types/archiver": "3.1.1",
8585
"@types/compression": "1.7.0",
86-
"@types/express": "4.17.3",
86+
"@types/express": "4.17.8",
8787
"@types/file-saver": "2.0.1",
88-
"@types/mime": "2.0.1",
89-
"@types/mkdirp": "1.0.0",
90-
"@types/multer": "1.4.2",
91-
"@types/node": "13.9.0",
88+
"@types/mime": "2.0.3",
89+
"@types/mkdirp": "1.0.1",
90+
"@types/multer": "1.4.4",
91+
"@types/node": "13.13.25",
9292
"@types/sax": "1.2.1",
9393
"@types/stream-to-array": "2.3.0",
94-
"@types/xmldoc": "1.1.4",
95-
"angular2-busy": "2.0.4",
94+
"@types/xmldoc": "1.1.5",
95+
"qs-angular2-busy": "0.0.2",
9696
"angular2-template-loader": "0.6.2",
9797
"awesome-typescript-loader": "5.2.1",
98-
"bootstrap": "4.4.1",
99-
"concurrently": "5.1.0",
100-
"copyfiles": "2.2.0",
101-
"core-js": "3.6.4",
102-
"css-loader": "3.4.2",
103-
"file-loader": "5.1.0",
98+
"bootstrap": "4.5.2",
99+
"concurrently": "5.3.0",
100+
"copyfiles": "2.4.0",
101+
"core-js": "3.6.5",
102+
"css-loader": "4.3.0",
103+
"file-loader": "6.1.1",
104104
"file-saver": "2.0.2",
105-
"html-loader": "0.5.5",
106-
"html-webpack-plugin": "3.2.0",
107-
"mini-css-extract-plugin": "0.9.0",
108-
"ngx-modialog": "6.0.0",
109-
"optimize-css-assets-webpack-plugin": "5.0.3",
110-
"raw-loader": "4.0.0",
111-
"rxjs": "6.5.4",
112-
"rxjs-compat": "6.5.4",
113-
"snap-4-snapp-full": "git+https://git@github.com/Rydion/Snap-4-Snapp.git#full-v4.0.0",
114-
"snap-4-snapp-reduced": "git+https://git@github.com/Rydion/Snap-4-Snapp.git#reduced-v4.0.0",
115-
"style-loader": "1.1.3",
105+
"html-loader": "1.3.2",
106+
"html-webpack-plugin": "4.5.0",
107+
"mini-css-extract-plugin": "1.0.0",
108+
"ngx-modialog-7": "9.0.2",
109+
"optimize-css-assets-webpack-plugin": "5.0.4",
110+
"raw-loader": "4.0.2",
111+
"rxjs": "6.6.3",
112+
"rxjs-compat": "6.6.3",
113+
"snap-4-snapp-full": "git+https://git@github.com/Rydion/Snap-4-Snapp.git#6.0.0f",
114+
"snap-4-snapp-reduced": "git+https://git@github.com/Rydion/Snap-4-Snapp.git#6.0.0r",
115+
"style-loader": "2.0.0",
116116
"to-string-loader": "1.1.6",
117-
"typescript": "3.8.3",
118-
"webpack": "4.42.0",
119-
"webpack-cli": "3.3.11",
117+
"typescript": "4.0.3",
118+
"webpack": "5.0.0",
119+
"webpack-cli": "4.0.0",
120120
"webpack-log": "3.0.1",
121-
"webpack-merge": "4.2.2",
122-
"zone.js": "0.10.2"
121+
"webpack-merge": "5.2.0",
122+
"zone.js": "0.11.1"
123123
}
124124
}

src/client/components/about-component/about.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import { Component } from '@angular/core';
1010

11-
import { Modal } from 'ngx-modialog/plugins/bootstrap';
11+
import { Modal } from 'ngx-modialog-7/plugins/bootstrap';
1212

1313
@Component({
1414
selector: 'snapp-about',

src/client/modules/main.module.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
1212
import { FormsModule } from '@angular/forms';
1313
import { HttpClientModule } from '@angular/common/http';
1414

15-
import { BusyModule } from 'angular2-busy';
15+
import { QsAngular2BusyModule } from 'qs-angular2-busy';
1616

17-
import { ModalModule } from 'ngx-modialog';
18-
import { BootstrapModalModule } from 'ngx-modialog/plugins/bootstrap';
17+
import { ModalModule } from 'ngx-modialog-7';
18+
import { BootstrapModalModule } from 'ngx-modialog-7/plugins/bootstrap';
1919

2020
import MainComponent from '../components/main-component/main.component';
2121
import SnapProjectSubmitFormComponent from '../components/snap-project-submit-form-component/snap-project-submit-form.component';
@@ -29,7 +29,7 @@ import { FileDownloadService } from '../services/file-download.service';
2929
BrowserAnimationsModule,
3030
FormsModule,
3131
HttpClientModule,
32-
BusyModule,
32+
QsAngular2BusyModule,
3333
ModalModule.forRoot(),
3434
BootstrapModalModule
3535
],

src/client/polyfills.ts

+8
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ import 'core-js/es/reflect';
1515
import 'core-js/proposals/reflect-metadata';
1616

1717
import 'zone.js/dist/zone';
18+
19+
// workaround for deprecated libraries (ngx-modialog-7)
20+
declare module "@angular/core" {
21+
interface ModuleWithProviders<T = any> {
22+
ngModule: Type<T>;
23+
providers?: Provider[];
24+
}
25+
}

src/client/vendor.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import '@angular/router';
1010
import 'rxjs';
1111

1212
// npm
13-
import 'angular2-busy';
14-
import 'ngx-modialog';
13+
import 'qs-angular2-busy';
14+
import 'ngx-modialog-7';
1515
import 'file-saver';
1616

1717
// CSS
1818
import 'bootstrap/dist/css/bootstrap.css';
19-
import 'angular2-busy/build/style/busy.css';
19+
import 'qs-angular2-busy/styles/busy.css';

src/server/Snapp.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const upload = multer({
6161

6262
const snapProjectUpload = upload.single('project');
6363
const snapProjectUploadMiddleware = (request: express.Request, response: express.Response, next: express.NextFunction) => {
64-
snapProjectUpload(request, response, (error) => {
64+
snapProjectUpload(request, response, (error: any) => {
6565
if (error) {
6666
logger.error({ moduleName, message: 'Error ocurred while uploading project xml.', error });
6767
const { code } = error;

src/server/log/Log.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class Logger {
5252
});
5353

5454
const logger: winston.Logger = winston.createLogger({
55-
level: isProduction ? 'info' : 'silly',
55+
level: isProduction() ? 'info' : 'silly',
5656
format: winston.format.combine(
5757
winston.format.timestamp(),
5858
productionFormat

0 commit comments

Comments
 (0)