MT#63046 Upgrade libs to latest

* Run yarn outdated and run through the list
  to upgrade all libs but @quasar/app-webpack
  and related libs. this will be done in a
  separate commit.
* Remove parseuri because it is not used anywhere
  in fact the project has a custom SIP URI parsing
  implementation in sip-uri-parse.js.
* Remove jwt-decode because it is not used in fact
  JWT decoding is manually implemented using native
  browser functions.
* Updating to glob@11 where the glob.sync() method
  is no longer accessible, but requires to be
  imported directly from globModule.
* Remove eventsource:
  - No Direct Usage: I could not find any direct imports,
    requires, or uses of the eventsource package or
    EventSource APIs in the codebase.
  - Security Updates: The package was updated on
    January 11, 2023, from version 1.1.1 to 2.0.2 as
    part of a security updates (MT#56339).
  - No Indirect Dependencies: The yarn why eventsource
    command confirmed that no other packages depend on
    eventsource.
  - No Build Process Integration: I didn't find any
    references to eventsource in the build config files
    or webpack configurations.
  - No SSE Implementation: While we handle media streams
    for calls, in my 
understanding they use WebRTC or
    similar technologies, not Server-Sent Events which,
    in my understanding, is what eventsource is designed
    for.
* Remove eslint-plugin-standard as it's not longer needed
  by standard and eslint-config-standard.
* Upgrading eslint-plugin-vue required adding
  vue-eslint-parser as a peer dependency and
  required some changes to since new warnings.

Change-Id: I8f582275ae344f0ede7520136deba30c4d94ffd7
master
Debora Crescenzo 2 months ago
parent b503fe95cc
commit bc75777bae

@ -2,8 +2,9 @@
// vim: set filetype=javascript: // vim: set filetype=javascript:
/* eslint-disable */ /* eslint-disable */
'use strict'; 'use strict';
const program = require('commander'); const { Command } = require('commander');
const { reportCommand } = require('./vue-i18n-extract.umd.js'); const { reportCommand } = require('./vue-i18n-extract.umd.js');
const program = new Command();
function increaseDynamic(dummyValue, previous) { function increaseDynamic(dummyValue, previous) {
return previous + 1; return previous + 1;

@ -3,10 +3,10 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('path'), require('is-valid-glob'), require('glob'), require('fs'), require('dot-object'), require('js-yaml')) : typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('path'), require('is-valid-glob'), require('glob'), require('fs'), require('dot-object'), require('js-yaml')) :
typeof define === 'function' && define.amd ? define(['exports', 'path', 'is-valid-glob', 'glob', 'fs', 'dot-object', 'js-yaml'], factory) : typeof define === 'function' && define.amd ? define(['exports', 'path', 'is-valid-glob', 'glob', 'fs', 'dot-object', 'js-yaml'], factory) :
(global = global || self, factory(global.vueI18NExtract = {}, global.path, global.isValidGlob, global.glob, global.fs, global.dotObject, global.jsYaml)); (global = global || self, factory(global.vueI18NExtract = {}, global.path, global.isValidGlob, global.glob, global.fs, global.dotObject, global.jsYaml));
}(this, (function (exports, path, isValidGlob, glob, fs, dot, yaml) { }(this, (function (exports, path, isValidGlob, globModule, fs, dot, yaml) {
path = path && Object.prototype.hasOwnProperty.call(path, 'default') ? path['default'] : path; path = path && Object.prototype.hasOwnProperty.call(path, 'default') ? path['default'] : path;
isValidGlob = isValidGlob && Object.prototype.hasOwnProperty.call(isValidGlob, 'default') ? isValidGlob['default'] : isValidGlob; isValidGlob = isValidGlob && Object.prototype.hasOwnProperty.call(isValidGlob, 'default') ? isValidGlob['default'] : isValidGlob;
glob = glob && Object.prototype.hasOwnProperty.call(glob, 'default') ? glob['default'] : glob; const { globSync } = globModule;
fs = fs && Object.prototype.hasOwnProperty.call(fs, 'default') ? fs['default'] : fs; fs = fs && Object.prototype.hasOwnProperty.call(fs, 'default') ? fs['default'] : fs;
dot = dot && Object.prototype.hasOwnProperty.call(dot, 'default') ? dot['default'] : dot; dot = dot && Object.prototype.hasOwnProperty.call(dot, 'default') ? dot['default'] : dot;
yaml = yaml && Object.prototype.hasOwnProperty.call(yaml, 'default') ? yaml['default'] : yaml; yaml = yaml && Object.prototype.hasOwnProperty.call(yaml, 'default') ? yaml['default'] : yaml;
@ -36,7 +36,7 @@
throw new Error(`vueFiles isn't a valid glob pattern.`); throw new Error(`vueFiles isn't a valid glob pattern.`);
} }
const targetFiles = glob.sync(src); const targetFiles = globSync(src);
if (targetFiles.length === 0) { if (targetFiles.length === 0) {
throw new Error('vueFiles glob has no files.'); throw new Error('vueFiles glob has no files.');
@ -127,7 +127,7 @@
throw new Error(`languageFiles isn't a valid glob pattern.`); throw new Error(`languageFiles isn't a valid glob pattern.`);
} }
const targetFiles = glob.sync(src); const targetFiles = globSync(src);
if (targetFiles.length === 0) { if (targetFiles.length === 0) {
throw new Error('languageFiles glob has no files.'); throw new Error('languageFiles glob has no files.');

@ -28,37 +28,35 @@
}, },
"dependencies": { "dependencies": {
"@quasar/extras": "^1.16.12", "@quasar/extras": "^1.16.12",
"@vuelidate/core": "2.0.2", "@vuelidate/core": "2.0.3",
"@vuelidate/validators": "2.0.2", "@vuelidate/validators": "2.0.4",
"async": "^3.2.2", "async": "^3.2.2",
"axios": "1.8.3", "axios": "1.11.0",
"content-disposition": "^0.5.4", "content-disposition": "^0.5.4",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"crypto-browserify": "3.12.1", "crypto-browserify": "3.12.1",
"decode-uri-component": "^0.4.0", "decode-uri-component": "^0.4.0",
"eslint-plugin-no-relative-import-paths": "1.5.5", "eslint-plugin-no-relative-import-paths": "1.6.1",
"eslint-plugin-unused-imports": "4.1.4", "eslint-plugin-unused-imports": "4.1.4",
"eventsource": "^2.0.2",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"globals": "15.12.0", "jest-junit": "^16.0.0",
"jest-junit": "^11.1.0", "jssip": "3.10.1",
"jssip": "3.8.2", "load-script": "^2.0.0",
"jwt-decode": "^2.2.0",
"load-script": "^1.0.0",
"loader-utils": "^3.2.1", "loader-utils": "^3.2.1",
"lodash": "4.17.21", "lodash": "4.17.21",
"moment": "^2.29.4", "moment": "^2.29.4",
"npm": "^10.9.0", "npm": "^11.5.1",
"path": "0.12.7", "path": "0.12.7",
"qrcode": "1.5.0", "qrcode": "1.5.4",
"quasar": "2.17.0", "quasar": "2.18.2",
"stream-browserify": "^3.0.0", "stream-browserify": "^3.0.0",
"terser": "^5.14.2", "terser": "^5.14.2",
"tiny-emitter": "2.1.0", "tiny-emitter": "2.1.0",
"vue": "3.5.13", "vue": "3.5.18",
"vue-i18n": "11.1.2", "vue-eslint-parser": "10.2.0",
"vue-i18n": "11.1.11",
"vue-resource": "^1.5.1", "vue-resource": "^1.5.1",
"vue-router": "4.5.0", "vue-router": "4.5.1",
"vue-scrollto": "^2.18.2", "vue-scrollto": "^2.18.2",
"vue-simple-password-meter": "1.3.4", "vue-simple-password-meter": "1.3.4",
"vuex": "4.1.0", "vuex": "4.1.0",
@ -66,35 +64,33 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/eslint-parser": "^7.25.7", "@babel/eslint-parser": "^7.25.7",
"@babel/plugin-transform-private-methods": "7.25.7", "@babel/plugin-transform-private-methods": "7.27.1",
"@quasar/app-webpack": "3.15.1", "@quasar/app-webpack": "3.15.1",
"@quasar/cli": "2.4.1", "@quasar/cli": "2.5.0",
"@quasar/quasar-app-extension-testing": "2.2.0", "@quasar/quasar-app-extension-testing": "2.2.0",
"@quasar/quasar-app-extension-testing-unit-jest": "3.0.3", "@quasar/quasar-app-extension-testing-unit-jest": "3.0.3",
"@stylistic/eslint-plugin-js": "2.10.1", "@stylistic/eslint-plugin-js": "4.4.1",
"@vue/test-utils": "2.4.1", "@vue/test-utils": "2.4.6",
"commander": "6.2.1", "commander": "14.0.0",
"decomment": "0.9.4", "decomment": "0.9.5",
"dot-object": "2.1.4", "dot-object": "2.1.5",
"eslint": "9.17.0", "eslint": "9.32.0",
"eslint-config-standard": "17.1.0", "eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.31.0", "eslint-plugin-import": "2.32.0",
"eslint-plugin-jest": "28.9.0", "eslint-plugin-jest": "29.0.1",
"eslint-plugin-n": "17.13.1", "eslint-plugin-n": "17.21.3",
"eslint-plugin-node": "11.1.0", "eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "7.1.0", "eslint-plugin-promise": "7.2.1",
"eslint-plugin-quasar": "1.1.0", "eslint-plugin-quasar": "1.1.0",
"eslint-plugin-standard": "5.0.0", "eslint-plugin-vue": "10.3.0",
"eslint-plugin-vue": "9.30.0",
"eslint-webpack-plugin": "4.2.0", "eslint-webpack-plugin": "4.2.0",
"glob": "7.1.6", "glob": "11.0.3",
"globals": "15.12.0", "globals": "16.3.0",
"is-valid-glob": "1.0.0", "is-valid-glob": "1.0.0",
"jest": "29.7.0", "jest": "30.0.5",
"jest-serializer-vue": "3.1.0", "jest-serializer-vue": "3.1.0",
"js-yaml": "3.14.1", "js-yaml": "4.1.0",
"parseuri": "^0.0.6", "uuid": "11.1.0",
"uuid": "11.0.4",
"vue-wait": "^1.5.3", "vue-wait": "^1.5.3",
"vuelidate": "^0.7.7" "vuelidate": "^0.7.7"
}, },

@ -61,7 +61,6 @@ export default {
props: { props: {
title: { title: {
type: String, type: String,
default: undefined,
required: true required: true
}, },
titleIcon: { titleIcon: {

@ -55,6 +55,7 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
} }
} },
emits: ['input']
} }
</script> </script>

@ -393,7 +393,8 @@ export default {
}, },
phonebookEntryName: { phonebookEntryName: {
type: String, type: String,
required: true required: false,
default: null
}, },
numberInput: { numberInput: {
type: String, type: String,

@ -30,7 +30,7 @@
clearable clearable
:error="v$.password.$errors.length > 0" :error="v$.password.$errors.length > 0"
:error-message="$errMsg(v$.password.$errors)" :error-message="$errMsg(v$.password.$errors)"
:label="passwordLabel" :label="translatedPasswordLabel"
@update:model-value="inputPassword" @update:model-value="inputPassword"
@blur="v$.password.$touch()" @blur="v$.password.$touch()"
@generated="passwordGenerated" @generated="passwordGenerated"
@ -50,7 +50,7 @@
ref="passwordRetype" ref="passwordRetype"
v-model="passwordRetype" v-model="passwordRetype"
v-bind="$attrs" v-bind="$attrs"
:label="passwordConfirmLabel" :label="translatedPasswordConfirmLabel"
:error="v$.passwordRetype.$errors.length > 0" :error="v$.passwordRetype.$errors.length > 0"
:error-message="$errMsg(v$.passwordRetype.$errors)" :error-message="$errMsg(v$.passwordRetype.$errors)"
clearable clearable
@ -91,21 +91,15 @@ export default {
}, },
passwordLabel: { passwordLabel: {
type: String, type: String,
default () { default: undefined
return this.$t('Password')
}
}, },
passwordConfirmLabel: { passwordConfirmLabel: {
type: String, type: String,
default () { default: undefined
return this.$t('Password Retype')
}
}, },
passwordType: { passwordType: {
type: String, type: String,
default () { default: 'web'
return 'web'
}
} }
}, },
emits: ['validation-failed', 'validation-succeeded', 'update:modelValue', 'score'], emits: ['validation-failed', 'validation-succeeded', 'update:modelValue', 'score'],
@ -131,6 +125,12 @@ export default {
...mapGetters('user', [ ...mapGetters('user', [
'passwordRequirements' 'passwordRequirements'
]), ]),
translatedPasswordLabel () {
return this.$t(this.passwordLabel || this.$t('Password'))
},
translatedPasswordConfirmLabel () {
return this.$t(this.passwordConfirmLabel || this.$t('Password Retype'))
},
areValidationsActive () { areValidationsActive () {
const webValidate = this.passwordRequirements?.web_validate || false const webValidate = this.passwordRequirements?.web_validate || false
const sipValidate = this.passwordRequirements?.sip_validate || false const sipValidate = this.passwordRequirements?.sip_validate || false

@ -38,8 +38,8 @@
:selected-key="selectedKey" :selected-key="selectedKey"
:subscriber-map="subscriberMap" :subscriber-map="subscriberMap"
:loading="isDeviceLoading(device.id)" :loading="isDeviceLoading(device.id)"
@closeKeyOverlay="keyOverlayActive = false" @close-key-overlay="keyOverlayActive = false"
@onSave="onSave" @on-save="onSave"
/> />
</div> </div>
<q-resize-observer <q-resize-observer

@ -87,6 +87,7 @@ export default {
} }
} }
}, },
emits: ['cancel'],
data () { data () {
return { return {
formData: this.getDefaultFormData(), formData: this.getDefaultFormData(),

@ -85,6 +85,7 @@ export default {
} }
} }
}, },
emits: ['cancel'],
data () { data () {
return { return {
id: this.$route.params.id, id: this.$route.params.id,

@ -81,6 +81,7 @@ export default {
} }
} }
}, },
emits: ['cancel'],
data () { data () {
return { return {
formData: this.getDefaultFormData(), formData: this.getDefaultFormData(),

@ -184,7 +184,7 @@
:subscribers="subscriberList" :subscribers="subscriberList"
:subscriber-map="subscriberMap" :subscriber-map="subscriberMap"
:device-preferences="true" :device-preferences="true"
@keysChanged="keysSave" @keys-changed="keysSave"
/> />
</div> </div>
</div> </div>
@ -228,6 +228,7 @@ export default {
default: null default: null
} }
}, },
emits: ['model-select-opened'],
data () { data () {
return { return {
changes: null, changes: null,

@ -91,6 +91,7 @@ export default {
} }
} }
}, },
emits: ['cancel'],
data () { data () {
return { return {
formData: this.getDefaultFormData(), formData: this.getDefaultFormData(),

@ -75,6 +75,7 @@ export default {
components: { components: {
CscPageSticky CscPageSticky
}, },
emits: ['cancel'],
data () { data () {
return { return {
id: this.$route.params.id, id: this.$route.params.id,

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save