chore(deps): use `@vueuse/core@10.7.2` and fix moment

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
skjnldsv 2024-02-23 14:12:00 +01:00
parent 7b95811290
commit eb672e89cf
81 changed files with 74 additions and 21 deletions

BIN
dist/3747-3747.js vendored

Binary file not shown.

BIN
dist/3747-3747.js.map vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist/core-common.js vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist/core-login.js vendored

Binary file not shown.

BIN
dist/core-login.js.map vendored

Binary file not shown.

BIN
dist/core-main.js vendored

Binary file not shown.

BIN
dist/core-main.js.map vendored

Binary file not shown.

BIN
dist/core-profile.js vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist/files-init.js vendored

Binary file not shown.

BIN
dist/files-init.js.map vendored

Binary file not shown.

BIN
dist/files-main.js vendored

Binary file not shown.

BIN
dist/files-main.js.map vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist/files-sidebar.js vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

80
package-lock.json generated
View File

@ -24,13 +24,13 @@
"@nextcloud/initial-state": "^2.0.0",
"@nextcloud/l10n": "^2.1.0",
"@nextcloud/logger": "^2.5.0",
"@nextcloud/moment": "^1.2.2",
"@nextcloud/moment": "^1.3.1",
"@nextcloud/password-confirmation": "^5.0.1",
"@nextcloud/paths": "^2.1.0",
"@nextcloud/router": "^2.2.1",
"@nextcloud/sharing": "^0.1.0",
"@nextcloud/upload": "^1.0.5",
"@nextcloud/vue": "^8.7.0",
"@nextcloud/vue": "^8.7.1",
"@skjnldsv/sanitize-svg": "^1.0.2",
"@vueuse/components": "^10.7.2",
"@vueuse/core": "^10.7.2",
@ -101,7 +101,7 @@
"@nextcloud/eslint-config": "^v8.3.0-beta.2",
"@nextcloud/stylelint-config": "^2.4.0",
"@nextcloud/typings": "^1.8.0",
"@nextcloud/webpack-vue-config": "^6.0.0",
"@nextcloud/webpack-vue-config": "^6.0.1",
"@pinia/testing": "^0.1.2",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/user-event": "^14.4.3",
@ -6429,13 +6429,24 @@
}
},
"node_modules/@vueuse/components": {
"version": "10.8.0",
"resolved": "https://registry.npmjs.org/@vueuse/components/-/components-10.8.0.tgz",
"integrity": "sha512-5k/4Cxgt+aoxeHIOWSet6kkHXY+96QuPkJzGpOHaCj9DD0ASBni6L/wHQUWL118Ac9xq5+QQJuK5VvFs/yBAEw==",
"version": "10.7.2",
"resolved": "https://registry.npmjs.org/@vueuse/components/-/components-10.7.2.tgz",
"integrity": "sha512-r39DLLtRo1hEKI/SQzVQjCts7yelwFyUrTxDFi821NdyU3EfQ9GCNNBcMirXcn3IQApFBRKrvTTtQ9cJGrb/+A==",
"dependencies": {
"@vueuse/core": "10.8.0",
"@vueuse/shared": "10.8.0",
"vue-demi": ">=0.14.7"
"@vueuse/core": "10.7.2",
"@vueuse/shared": "10.7.2",
"vue-demi": ">=0.14.6"
}
},
"node_modules/@vueuse/components/node_modules/@vueuse/shared": {
"version": "10.7.2",
"resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.7.2.tgz",
"integrity": "sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==",
"dependencies": {
"vue-demi": ">=0.14.6"
},
"funding": {
"url": "https://github.com/sponsors/antfu"
}
},
"node_modules/@vueuse/components/node_modules/vue-demi": {
@ -6464,14 +6475,25 @@
}
},
"node_modules/@vueuse/core": {
"version": "10.8.0",
"resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.8.0.tgz",
"integrity": "sha512-G9Ok9fjx10TkNIPn8V1dJmK1NcdJCtYmDRyYiTMUyJ1p0Tywc1zmOoCQ2xhHYyz8ULBU4KjIJQ9n+Lrty74iVw==",
"version": "10.7.2",
"resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.7.2.tgz",
"integrity": "sha512-AOyAL2rK0By62Hm+iqQn6Rbu8bfmbgaIMXcE3TSr7BdQ42wnSFlwIdPjInO62onYsEMK/yDMU8C6oGfDAtZ2qQ==",
"dependencies": {
"@types/web-bluetooth": "^0.0.20",
"@vueuse/metadata": "10.8.0",
"@vueuse/shared": "10.8.0",
"vue-demi": ">=0.14.7"
"@vueuse/metadata": "10.7.2",
"@vueuse/shared": "10.7.2",
"vue-demi": ">=0.14.6"
},
"funding": {
"url": "https://github.com/sponsors/antfu"
}
},
"node_modules/@vueuse/core/node_modules/@vueuse/shared": {
"version": "10.7.2",
"resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.7.2.tgz",
"integrity": "sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==",
"dependencies": {
"vue-demi": ">=0.14.6"
},
"funding": {
"url": "https://github.com/sponsors/antfu"
@ -6567,6 +6589,28 @@
}
}
},
"node_modules/@vueuse/integrations/node_modules/@vueuse/core": {
"version": "10.8.0",
"resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.8.0.tgz",
"integrity": "sha512-G9Ok9fjx10TkNIPn8V1dJmK1NcdJCtYmDRyYiTMUyJ1p0Tywc1zmOoCQ2xhHYyz8ULBU4KjIJQ9n+Lrty74iVw==",
"dependencies": {
"@types/web-bluetooth": "^0.0.20",
"@vueuse/metadata": "10.8.0",
"@vueuse/shared": "10.8.0",
"vue-demi": ">=0.14.7"
},
"funding": {
"url": "https://github.com/sponsors/antfu"
}
},
"node_modules/@vueuse/integrations/node_modules/@vueuse/metadata": {
"version": "10.8.0",
"resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.8.0.tgz",
"integrity": "sha512-Nim/Vle5OgXcXhAvGOgkJQXB1Yb+Kq/fMbLuv3YYDYbiQrwr39ljuD4k9fPeq4yUyokYRo2RaNQmbbIMWB/9+w==",
"funding": {
"url": "https://github.com/sponsors/antfu"
}
},
"node_modules/@vueuse/integrations/node_modules/vue-demi": {
"version": "0.14.7",
"resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.7.tgz",
@ -6593,9 +6637,9 @@
}
},
"node_modules/@vueuse/metadata": {
"version": "10.8.0",
"resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.8.0.tgz",
"integrity": "sha512-Nim/Vle5OgXcXhAvGOgkJQXB1Yb+Kq/fMbLuv3YYDYbiQrwr39ljuD4k9fPeq4yUyokYRo2RaNQmbbIMWB/9+w==",
"version": "10.7.2",
"resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.7.2.tgz",
"integrity": "sha512-kCWPb4J2KGrwLtn1eJwaJD742u1k5h6v/St5wFe8Quih90+k2a0JP8BS4Zp34XUuJqS2AxFYMb1wjUL8HfhWsQ==",
"funding": {
"url": "https://github.com/sponsors/antfu"
}

View File

@ -51,13 +51,13 @@
"@nextcloud/initial-state": "^2.0.0",
"@nextcloud/l10n": "^2.1.0",
"@nextcloud/logger": "^2.5.0",
"@nextcloud/moment": "^1.2.2",
"@nextcloud/moment": "^1.3.1",
"@nextcloud/password-confirmation": "^5.0.1",
"@nextcloud/paths": "^2.1.0",
"@nextcloud/router": "^2.2.1",
"@nextcloud/sharing": "^0.1.0",
"@nextcloud/upload": "^1.0.5",
"@nextcloud/vue": "^8.7.0",
"@nextcloud/vue": "^8.7.1",
"@skjnldsv/sanitize-svg": "^1.0.2",
"@vueuse/components": "^10.7.2",
"@vueuse/core": "^10.7.2",
@ -128,7 +128,7 @@
"@nextcloud/eslint-config": "^v8.3.0-beta.2",
"@nextcloud/stylelint-config": "^2.4.0",
"@nextcloud/typings": "^1.8.0",
"@nextcloud/webpack-vue-config": "^6.0.0",
"@nextcloud/webpack-vue-config": "^6.0.1",
"@pinia/testing": "^0.1.2",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/user-event": "^14.4.3",

View File

@ -212,6 +212,15 @@ module.exports = {
// Make appName & appVersion available as a constants for '@nextcloud/vue' components
new webpack.DefinePlugin({ appName: JSON.stringify('Nextcloud') }),
new webpack.DefinePlugin({ appVersion: JSON.stringify(appVersion) }),
// @nextcloud/moment since v1.3.0 uses `moment/min/moment-with-locales.js`
// Which works only in Node.js and is not compatible with Webpack bundling
// It has an unused function `localLocale` that requires locales by invalid relative path `./locale`
// Though it is not used, Webpack tries to resolve it with `require.context` and fails
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment\/min$/,
}),
],
externals: {
OC: 'OC',