-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump webdav to ^4 #1184
Bump webdav to ^4 #1184
Conversation
Does the client API stay the same? That's nice! |
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Yes and no, I had to adapt a few hacks we do as well as their new esm export. |
@@ -41,9 +42,10 @@ webpackConfig.module.rules = Object.values(webpackRules) | |||
webpackConfig.plugins.push( | |||
// patch webdav/dist/request.js | |||
new webpack.NormalModuleReplacementPlugin( | |||
/request.js/, | |||
/request(\.js)?/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oof, I didn't know about this. :'D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could make it upstream, but perry-mitchell/webdav-client#179
function(resource) { | ||
if (resource.context.indexOf('webdav/dist') > -1) { | ||
if (resource.context.indexOf('webdav') > -1) { | ||
console.debug('Patched request for webdav', basename(resource.contextInfo.issuer)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to work on latest master, though :S I've put a direct throw Error into patchedRequest and it never gets thrown?
Removed unused service since 3 years...
https://github.com/nextcloud/photos/pull/4/files#diff-239342c3890dc7339f0c87a00179a78c0502d3f74b5b387f18fd2e00cb19d194L57
Webdav 3 is deprecated and don't receive updates anymore