Aggiornamento con l'update di ncu -u (dei pacchetti yarn)

This commit is contained in:
Surya Paolo
2024-05-28 01:18:15 +02:00
parent f0952d297d
commit f01021a325
3 changed files with 521 additions and 456 deletions

View File

@@ -27,27 +27,27 @@
"@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/plugin-proposal-json-strings": "^7.18.6", "@babel/plugin-proposal-json-strings": "^7.18.6",
"@babel/plugin-proposal-numeric-separator": "^7.18.6", "@babel/plugin-proposal-numeric-separator": "^7.18.6",
"@cubejs-client/core": "^0.35.0", "@cubejs-client/core": "^0.35.23",
"@quasar/extras": "^1.16.9", "@quasar/extras": "^1.16.11",
"@quasar/quasar-ui-qcalendar": "^4.0.0-beta.19", "@quasar/quasar-ui-qcalendar": "^4.0.0-beta.19",
"@types/leaflet": "^1.9.8", "@types/leaflet": "^1.9.12",
"@vue/compat": "^3.4.21", "@vue/compat": "^3.4.27",
"@vue/compiler-sfc": "^3.4.21", "@vue/compiler-sfc": "^3.4.27",
"@vue/eslint-config-standard": "^7.0.0", "@vue/eslint-config-standard": "^8.0.1",
"@vuelidate/core": "^2.0.3", "@vuelidate/core": "^2.0.3",
"@vuelidate/validators": "^2.0.4", "@vuelidate/validators": "^2.0.4",
"acorn": "^8.11.3", "acorn": "^8.11.3",
"animate.css": "^4.1.1", "animate.css": "^4.1.1",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"axios": "^1.6.8", "axios": "^1.7.2",
"bcryptjs": "^2.4.3", "bcryptjs": "^2.4.3",
"chart.js": "^4.4.2", "chart.js": "^4.4.3",
"core-js": "^3.36.1", "core-js": "^3.37.1",
"crypto-browserify": "^3.12.0", "crypto-browserify": "^3.12.0",
"date-fns": "^3.6.0", "date-fns": "^3.6.0",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"echarts": "5.5.0", "echarts": "5.5.0",
"eslint-plugin-n": "^15.0.0", "eslint-plugin-n": "^17.7.0",
"eslint-plugin-quasar": "^1.1.0", "eslint-plugin-quasar": "^1.1.0",
"graphql": "^16.8.1", "graphql": "^16.8.1",
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
@@ -59,25 +59,25 @@
"localforage": "^1.10.0", "localforage": "^1.10.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"normalize.css": "^8.0.1", "normalize.css": "^8.0.1",
"npm": "^10.5.0", "npm": "^10.8.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"pinia": "^2.1.7", "pinia": "^2.1.7",
"prerender-spa-plugin": "^3.4.0", "prerender-spa-plugin": "^3.4.0",
"quasar": "^2.15.1", "quasar": "^2.16.4",
"quasar-extras": "^2.0.9", "quasar-extras": "^2.0.9",
"register-service-worker": "^1.7.2", "register-service-worker": "^1.7.2",
"typescript-eslint": "^7.3.1", "typescript-eslint": "^7.11.0",
"vee-validate": "^4.12.6", "vee-validate": "^4.12.8",
"vue": "^3.4.21", "vue": "^3.4.27",
"vue-class-component": "^8.0.0-rc.1", "vue-class-component": "^8.0.0-rc.1",
"vue-country-code": "^1.1.3", "vue-country-code": "^1.1.3",
"vue-echarts": "^6.6.9", "vue-echarts": "^6.7.2",
"vue-i18n": "^9.10.2", "vue-i18n": "^9.13.1",
"vue-idb": "^0.2.0", "vue-idb": "^0.2.0",
"vue-image-zoomer": "^2.2.3", "vue-image-zoomer": "^2.3.0",
"vue-loader": "^17.4.2", "vue-loader": "^17.4.2",
"vue-property-decorator": "^10.0.0-rc.3", "vue-property-decorator": "^10.0.0-rc.3",
"vue-router": "^4.3.0", "vue-router": "^4.3.2",
"vue-scroll-reveal": "^2.1.0", "vue-scroll-reveal": "^2.1.0",
"vue-social-sharing": "^4.0.0-alpha4", "vue-social-sharing": "^4.0.0-alpha4",
"vue-svgicon": "^4.0.0-alpha.3", "vue-svgicon": "^4.0.0-alpha.3",
@@ -88,45 +88,45 @@
"vuex-router-sync": "^6.0.0-rc.1" "vuex-router-sync": "^6.0.0-rc.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.24.3", "@babel/core": "^7.24.6",
"@quasar/app-webpack": "^3.12.4", "@quasar/app-webpack": "^3.13.2",
"@types/bcryptjs": "^2.4.6", "@types/bcryptjs": "^2.4.6",
"@types/dotenv": "^8.2.0", "@types/dotenv": "^8.2.0",
"@types/googlemaps": "^3.43.3", "@types/googlemaps": "^3.43.3",
"@types/jest": "^29.5.12", "@types/jest": "^29.5.12",
"@types/js-cookie": "^3.0.6", "@types/js-cookie": "^3.0.6",
"@types/node": "20.11.30", "@types/node": "20.12.12",
"@types/nprogress": "^0.2.3", "@types/nprogress": "^0.2.3",
"@types/vue-tel-input": "^2.1.6", "@types/vue-tel-input": "^2.1.6",
"@types/vuelidate": "^0.7.21", "@types/vuelidate": "^0.7.21",
"@typescript-eslint/eslint-plugin": "^7.3.1", "@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.3.1", "@typescript-eslint/parser": "^7.11.0",
"eslint": "^8.37.0", "eslint": "^9.3.0",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1", "eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.2.0",
"eslint-plugin-vue": "^8.7.1", "eslint-plugin-vue": "^9.26.0",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"html-webpack-plugin": "^5.6.0", "html-webpack-plugin": "^5.6.0",
"http-proxy-middleware": "^2.0.6", "http-proxy-middleware": "^3.0.0",
"jest": "^29.7.0", "jest": "^29.7.0",
"json-loader": "^0.5.7", "json-loader": "^0.5.7",
"node-sass": "^9.0.0", "node-sass": "^9.0.0",
"npm-check-updates": "^16.14.17", "npm-check-updates": "^16.14.20",
"optimize-css-assets-webpack-plugin": "^6.0.1", "optimize-css-assets-webpack-plugin": "^6.0.1",
"parcel": "^2.12.0", "parcel": "^2.12.0",
"postcss": "^8.4.38", "postcss": "^8.4.38",
"postcss-loader": "^8.1.1", "postcss-loader": "^8.1.1",
"sass-loader": "^14.1.1", "sass-loader": "^14.2.1",
"strip-ansi": "=7.1.0", "strip-ansi": "=7.1.0",
"ts-jest": "^29.1.2", "ts-jest": "^29.1.3",
"ts-loader": "^9.5.1", "ts-loader": "^9.5.1",
"typescript": "5.3.2", "typescript": "5.4.5",
"vue-cli-plugin-element-ui": "^1.1.4", "vue-cli-plugin-element-ui": "^1.1.4",
"vueify": "^9.4.1", "vueify": "^9.4.1",
"webpack": "^5.91.0", "webpack": "^5.91.0",
"workbox-webpack-plugin": "^6.5.4" "workbox-webpack-plugin": "^7.1.0"
}, },
"browser": { "browser": {
"crypto": false "crypto": false

View File

@@ -1,3 +1,4 @@
/* eslint-disable import/namespace */
import { cleanupOutdatedCaches, precacheAndRoute } from 'workbox-precaching'; import { cleanupOutdatedCaches, precacheAndRoute } from 'workbox-precaching';
import { registerRoute } from 'workbox-routing'; import { registerRoute } from 'workbox-routing';
import { clientsClaim, setCacheNameDetails, skipWaiting } from 'workbox-core'; import { clientsClaim, setCacheNameDetails, skipWaiting } from 'workbox-core';
@@ -14,16 +15,34 @@ import { ExpirationPlugin } from 'workbox-expiration';
const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
importScripts('https://storage.googleapis.com/workbox-cdn/releases/6.5.4/workbox-sw.js');
self.addEventListener('install', () => self.skipWaiting()); self.addEventListener('install', () => self.skipWaiting());
self.addEventListener('activate', (event) => event.waitUntil(self.clients.claim())); self.addEventListener('activate', (event) => {
// console.log('CLAIM');
//event.waitUntil(self.clients.claim())
event.waitUntil(async () => {
// Check for a new service worker version
const registration = await navigator.serviceWorker.getRegistration();
if (registration && registration.waiting) {
// A new service worker is waiting, trigger a page reload
await registration.waiting.postMessage({ type: 'SKIP_WAITING' });
self.skipWaiting();
}
});
});
const VersioneApp = '1.0.46'; const VersioneApp = '1.0.46';
console.log(' [ VER-' + VersioneApp + ' ] _---------________------ PAO: this is my custom service worker'); console.log(' [ VER-' + VersioneApp + ' ] _---------________------ PAO: this is my custom service worker');
importScripts('js/idb.js', 'js/storage.js', 'js/workbox-sw.js'); importScripts('js/idb.js', 'js/storage.js');
let port = self.location.hostname.startsWith('test') ? 3001 : 3000; let port = self.location.hostname.startsWith('test') ? 3001 : 3000;
console.log('SW- app ver ' + VersioneApp + ' on port ' + port);
// Function helpers // Function helpers
async function writeData(table, data) { async function writeData(table, data) {
@@ -147,8 +166,8 @@ if (workbox) {
}); });
self.addEventListener('fetch', function (event) { self.addEventListener('fetch', function (event) {
console.log('[Service Worker] Fetching something ....', event); // console.log('[Service Worker] Fetching something ....', event);
console.log('event.request.cache=', event.request.cache) // console.log('event.request.cache=', event.request.cache)
if (event.request.cache === 'only-if-cached' && event.request.mode !== 'same-origin') { if (event.request.cache === 'only-if-cached' && event.request.mode !== 'same-origin') {
console.log('SAME ORIGIN!', event); console.log('SAME ORIGIN!', event);
return; return;
@@ -170,12 +189,13 @@ if (workbox) {
if (ENABLE_DYNAMIC_CACHING) { if (ENABLE_DYNAMIC_CACHING) {
const responseToCache = response.clone(); const responseToCache = response.clone();
const cache = await caches.open(DYNAMIC_CACHE) const cache = await caches.open(DYNAMIC_CACHE)
await cache.put(event.request, response.clone()); await cache.put(event.request, responseToCache);
} }
return response; return response;
} catch (e) { } catch (e) {
return ''; console.error('[Service Worker] fetch error', e);
return new Response('fetch error', { status: 500 });
} }
})()); })());
}); });

869
yarn.lock

File diff suppressed because it is too large Load Diff