mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 05:55:12 +00:00
Update dependencies 🚀 (#6297)
* chore: Update dependencies 🚀 Make everything is up-to-date * chore: Update dependencies 🚀 Good Bye, core-js@2 ! * packaging * Fix test * fix build * fix test * use default reporter * fix mocha is keep running after test * Revert back is-promise https://github.com/then/is-promise/issues/12 * Refresh
This commit is contained in:
parent
cd94d79cbb
commit
f08d7df419
7 changed files with 446 additions and 729 deletions
13
.babelrc
Normal file
13
.babelrc
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"plugins": [
|
||||
[
|
||||
"@babel/plugin-transform-runtime",
|
||||
{
|
||||
"corejs": {
|
||||
"version": 3,
|
||||
"proposals": true
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
|
@ -1,4 +1,7 @@
|
|||
{
|
||||
"extension": ["ts","js","cjs","mjs"],
|
||||
"require": "ts-node/register",
|
||||
"slow": 1000,
|
||||
"timeout": 30000,
|
||||
"slow": 1000
|
||||
"exit": true
|
||||
}
|
||||
|
|
11
gulpfile.ts
11
gulpfile.ts
|
@ -5,7 +5,6 @@
|
|||
import * as fs from 'fs';
|
||||
import * as gulp from 'gulp';
|
||||
import * as ts from 'gulp-typescript';
|
||||
import * as mocha from 'gulp-mocha';
|
||||
import * as rimraf from 'rimraf';
|
||||
import * as rename from 'gulp-rename';
|
||||
const cleanCSS = require('gulp-clean-css');
|
||||
|
@ -93,14 +92,4 @@ gulp.task('build', gulp.parallel(
|
|||
'build:client',
|
||||
));
|
||||
|
||||
gulp.task('mocha', () =>
|
||||
gulp.src('./test/**/*.ts')
|
||||
.pipe(mocha({
|
||||
exit: true,
|
||||
require: 'ts-node/register'
|
||||
} as any))
|
||||
);
|
||||
|
||||
gulp.task('test', gulp.task('mocha'));
|
||||
|
||||
gulp.task('default', gulp.task('build'));
|
||||
|
|
91
package.json
91
package.json
|
@ -24,14 +24,18 @@
|
|||
"clean": "gulp clean",
|
||||
"cleanall": "gulp cleanall",
|
||||
"lint": "tslint 'src/**/*.ts'",
|
||||
"test": "cross-env TS_NODE_FILES=true gulp test",
|
||||
"test": "cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_COMPILER_OPTIONS=\"{\\\"target\\\":\\\"es2017\\\",\\\"module\\\":\\\"commonjs\\\",\\\"typeRoots\\\":[\\\"node_modules/@types\\\",\\\"src/@types\\\"]}\" mocha",
|
||||
"format": "gulp format"
|
||||
},
|
||||
"resolutions": {
|
||||
"https-proxy-agent": "^3.0.0",
|
||||
"lodash": "^4.17.13"
|
||||
"chokidar": "^3.3.1",
|
||||
"constantinople": "^4.0.1",
|
||||
"core-js": "^3.6.5",
|
||||
"lodash": "^4.17.15",
|
||||
"mocha": "^7.1.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-transform-runtime": "7.9.0",
|
||||
"@elastic/elasticsearch": "7.6.1",
|
||||
"@fortawesome/fontawesome-svg-core": "1.2.28",
|
||||
"@fortawesome/free-brands-svg-icons": "5.13.0",
|
||||
|
@ -42,7 +46,8 @@
|
|||
"@koa/cors": "3.0.0",
|
||||
"@koa/multer": "2.0.2",
|
||||
"@koa/router": "8.0.8",
|
||||
"@syuilo/aiscript": "0.6.0",
|
||||
"@sinonjs/fake-timers": "6.0.1",
|
||||
"@syuilo/aiscript": "0.6.1",
|
||||
"@types/bcryptjs": "2.4.2",
|
||||
"@types/bull": "3.12.2",
|
||||
"@types/cbor": "5.0.0",
|
||||
|
@ -50,7 +55,6 @@
|
|||
"@types/double-ended-queue": "2.1.1",
|
||||
"@types/glob": "7.1.1",
|
||||
"@types/gulp": "4.0.6",
|
||||
"@types/gulp-mocha": "0.0.32",
|
||||
"@types/gulp-rename": "0.0.33",
|
||||
"@types/gulp-replace": "0.0.31",
|
||||
"@types/is-url": "1.2.28",
|
||||
|
@ -69,11 +73,10 @@
|
|||
"@types/koa__cors": "3.0.1",
|
||||
"@types/koa__multer": "2.0.1",
|
||||
"@types/koa__router": "8.0.2",
|
||||
"@types/lolex": "5.1.0",
|
||||
"@types/markdown-it": "0.0.9",
|
||||
"@types/markdown-it": "10.0.0",
|
||||
"@types/mocha": "7.0.2",
|
||||
"@types/node": "13.13.0",
|
||||
"@types/node-fetch": "2.5.6",
|
||||
"@types/node": "13.13.2",
|
||||
"@types/node-fetch": "2.5.7",
|
||||
"@types/nodemailer": "6.4.0",
|
||||
"@types/nprogress": "0.2.0",
|
||||
"@types/oauth": "0.9.1",
|
||||
|
@ -87,39 +90,38 @@
|
|||
"@types/redis": "2.8.18",
|
||||
"@types/rename": "1.0.1",
|
||||
"@types/request-stats": "3.0.0",
|
||||
"@types/rimraf": "2.0.3",
|
||||
"@types/rimraf": "3.0.0",
|
||||
"@types/seedrandom": "2.4.28",
|
||||
"@types/sharp": "0.24.0",
|
||||
"@types/showdown": "1.9.3",
|
||||
"@types/sharp": "0.25.0",
|
||||
"@types/sinonjs__fake-timers": "6.0.1",
|
||||
"@types/speakeasy": "2.0.5",
|
||||
"@types/systeminformation": "3.54.1",
|
||||
"@types/tinycolor2": "1.4.2",
|
||||
"@types/tmp": "0.1.0",
|
||||
"@types/uuid": "7.0.2",
|
||||
"@types/uuid": "7.0.3",
|
||||
"@types/web-push": "3.3.0",
|
||||
"@types/webpack": "4.41.10",
|
||||
"@types/webpack": "4.41.12",
|
||||
"@types/webpack-stream": "3.2.10",
|
||||
"@types/websocket": "1.0.0",
|
||||
"@types/ws": "7.2.4",
|
||||
"@typescript-eslint/parser": "2.28.0",
|
||||
"@typescript-eslint/parser": "2.29.0",
|
||||
"abort-controller": "3.0.0",
|
||||
"apexcharts": "3.18.1",
|
||||
"apexcharts": "3.19.0",
|
||||
"autobind-decorator": "2.4.0",
|
||||
"autosize": "4.0.2",
|
||||
"autwh": "0.1.0",
|
||||
"aws-sdk": "2.658.0",
|
||||
"aws-sdk": "2.663.0",
|
||||
"bcryptjs": "2.4.3",
|
||||
"bull": "3.13.0",
|
||||
"cafy": "15.2.1",
|
||||
"cbor": "5.0.2",
|
||||
"chai": "4.2.0",
|
||||
"chalk": "4.0.0",
|
||||
"chart.js": "2.9.3",
|
||||
"cli-highlight": "2.1.4",
|
||||
"commander": "4.1.1",
|
||||
"commander": "5.1.0",
|
||||
"content-disposition": "0.5.3",
|
||||
"core-js": "3.6.5",
|
||||
"crc-32": "1.2.0",
|
||||
"css-loader": "3.5.2",
|
||||
"css-loader": "3.5.3",
|
||||
"cssnano": "4.1.10",
|
||||
"dateformat": "3.0.3",
|
||||
"diskusage": "1.1.3",
|
||||
|
@ -128,20 +130,19 @@
|
|||
"eslint-plugin-vue": "6.2.2",
|
||||
"eventemitter3": "4.0.0",
|
||||
"feed": "4.1.0",
|
||||
"fibers": "4.0.2",
|
||||
"file-type": "14.1.4",
|
||||
"fibers": "5.0.0",
|
||||
"file-type": "14.2.0",
|
||||
"fluent-ffmpeg": "2.1.2",
|
||||
"glob": "7.1.6",
|
||||
"gulp": "4.0.2",
|
||||
"gulp-clean-css": "4.3.0",
|
||||
"gulp-dart-sass": "1.0.1",
|
||||
"gulp-mocha": "7.0.2",
|
||||
"gulp-dart-sass": "1.0.2",
|
||||
"gulp-rename": "2.0.0",
|
||||
"gulp-replace": "1.0.0",
|
||||
"gulp-sourcemaps": "2.6.5",
|
||||
"gulp-terser": "1.2.0",
|
||||
"gulp-tslint": "8.1.4",
|
||||
"gulp-typescript": "5.0.1",
|
||||
"gulp-typescript": "6.0.0-alpha.1",
|
||||
"hard-source-webpack-plugin": "0.13.1",
|
||||
"html-minifier": "4.0.0",
|
||||
"http-proxy-agent": "4.0.1",
|
||||
|
@ -153,7 +154,7 @@
|
|||
"js-yaml": "3.13.1",
|
||||
"jsdom": "16.2.2",
|
||||
"json5": "2.1.3",
|
||||
"json5-loader": "3.0.0",
|
||||
"json5-loader": "4.0.0",
|
||||
"jsrsasign": "8.0.15",
|
||||
"katex": "0.11.1",
|
||||
"koa": "2.11.0",
|
||||
|
@ -167,7 +168,6 @@
|
|||
"koa-slow": "2.1.0",
|
||||
"koa-views": "6.2.1",
|
||||
"langmap": "0.0.16",
|
||||
"lolex": "5.1.2",
|
||||
"lookup-dns-cache": "2.1.0",
|
||||
"markdown-it": "10.0.0",
|
||||
"markdown-it-anchor": "5.2.7",
|
||||
|
@ -175,13 +175,13 @@
|
|||
"moji": "0.5.1",
|
||||
"ms": "2.1.2",
|
||||
"multer": "1.4.2",
|
||||
"nested-property": "1.0.4",
|
||||
"nested-property": "2.0.0",
|
||||
"node-fetch": "2.6.0",
|
||||
"nodemailer": "6.4.6",
|
||||
"nprogress": "0.2.0",
|
||||
"object-assign-deep": "0.4.0",
|
||||
"os-utils": "0.0.14",
|
||||
"parse5": "5.1.1",
|
||||
"parse5": "6.0.0",
|
||||
"parsimmon": "1.13.0",
|
||||
"pg": "8.0.3",
|
||||
"portal-vue": "2.1.7",
|
||||
|
@ -203,37 +203,36 @@
|
|||
"redis": "3.0.2",
|
||||
"redis-lock": "0.1.4",
|
||||
"reflect-metadata": "0.1.13",
|
||||
"regenerator-runtime": "0.13.5",
|
||||
"rename": "1.0.4",
|
||||
"request-stats": "3.0.0",
|
||||
"require-all": "3.0.0",
|
||||
"rimraf": "3.0.2",
|
||||
"rndstr": "1.0.0",
|
||||
"s-age": "1.1.2",
|
||||
"sass": "1.26.3",
|
||||
"sass": "1.26.5",
|
||||
"sass-loader": "8.0.2",
|
||||
"seedrandom": "3.0.5",
|
||||
"sharp": "0.25.2",
|
||||
"showdown": "1.9.1",
|
||||
"showdown-highlightjs-extension": "0.1.2",
|
||||
"speakeasy": "2.0.0",
|
||||
"stringz": "2.1.0",
|
||||
"style-loader": "1.1.4",
|
||||
"style-loader": "1.2.0",
|
||||
"summaly": "2.3.1",
|
||||
"syslog-pro": "1.0.0",
|
||||
"systeminformation": "4.23.3",
|
||||
"systeminformation": "4.23.6",
|
||||
"syuilo-password-strength": "0.0.1",
|
||||
"textarea-caret": "3.1.0",
|
||||
"three": "0.115.0",
|
||||
"tinycolor2": "1.4.1",
|
||||
"tmp": "0.1.0",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.2",
|
||||
"tmp": "0.2.0",
|
||||
"ts-loader": "7.0.1",
|
||||
"ts-node": "8.9.0",
|
||||
"tslint": "6.1.1",
|
||||
"tslint-sonarts": "1.9.0",
|
||||
"typeorm": "0.2.24",
|
||||
"typescript": "3.8.3",
|
||||
"ulid": "2.3.0",
|
||||
"url-loader": "3.0.0",
|
||||
"url-loader": "4.1.0",
|
||||
"uuid": "7.0.3",
|
||||
"v-animate-css": "0.0.3",
|
||||
"v-debounce": "0.1.2",
|
||||
|
@ -241,7 +240,7 @@
|
|||
"vue-color": "2.7.1",
|
||||
"vue-content-loading": "1.6.0",
|
||||
"vue-cropperjs": "4.1.0",
|
||||
"vue-i18n": "8.17.2",
|
||||
"vue-i18n": "8.17.3",
|
||||
"vue-json-pretty": "1.6.3",
|
||||
"vue-loader": "15.9.1",
|
||||
"vue-marquee-text-component": "1.1.1",
|
||||
|
@ -250,20 +249,22 @@
|
|||
"vue-prism-editor": "0.5.1",
|
||||
"vue-router": "3.1.6",
|
||||
"vue-style-loader": "4.1.2",
|
||||
"vue-svg-inline-loader": "1.5.0",
|
||||
"vue-svg-inline-loader-corejs3": "1.5.0",
|
||||
"vue-template-compiler": "2.6.11",
|
||||
"vuedraggable": "2.23.2",
|
||||
"vuex": "3.1.3",
|
||||
"vuex": "3.3.0",
|
||||
"vuex-persistedstate": "3.0.1",
|
||||
"web-push": "3.4.3",
|
||||
"webpack": "5.0.0-beta.15",
|
||||
"webpack-cli": "3.3.11",
|
||||
"websocket": "1.0.31",
|
||||
"ws": "7.2.3",
|
||||
"ws": "7.2.5",
|
||||
"xev": "2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fluent-ffmpeg": "2.1.12",
|
||||
"cross-env": "6.0.3"
|
||||
"@types/chai": "4.2.11",
|
||||
"@types/fluent-ffmpeg": "2.1.14",
|
||||
"chai": "4.2.0",
|
||||
"cross-env": "7.0.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
process.env.NODE_ENV = 'test';
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as lolex from 'lolex';
|
||||
import * as lolex from '@sinonjs/fake-timers';
|
||||
import { async } from './utils';
|
||||
import TestChart from '../src/services/chart/charts/classes/test';
|
||||
import TestGroupedChart from '../src/services/chart/charts/classes/test-grouped';
|
||||
|
@ -51,7 +51,7 @@ describe('Chart', () => {
|
|||
let testChart: TestChart;
|
||||
let testGroupedChart: TestGroupedChart;
|
||||
let testUniqueChart: TestUniqueChart;
|
||||
let clock: lolex.InstalledClock<lolex.Clock>;
|
||||
let clock: lolex.InstalledClock;
|
||||
let connection: Connection;
|
||||
|
||||
before(done => {
|
||||
|
|
|
@ -49,7 +49,7 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
}, {
|
||||
loader: 'vue-svg-inline-loader'
|
||||
loader: 'vue-svg-inline-loader-corejs3'
|
||||
}]
|
||||
}, {
|
||||
test: /\.scss?$/,
|
||||
|
@ -99,7 +99,11 @@ module.exports = {
|
|||
loader: 'url-loader'
|
||||
}, {
|
||||
test: /\.json5$/,
|
||||
loader: 'json5-loader'
|
||||
loader: 'json5-loader',
|
||||
options: {
|
||||
esModule: false,
|
||||
},
|
||||
type: 'javascript/auto'
|
||||
}, {
|
||||
test: /\.ts$/,
|
||||
exclude: /node_modules/,
|
||||
|
|
Loading…
Reference in a new issue