mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #6038 from jellyfin/renovate/libarchive.js-2.x
Update dependency libarchive.js to v2
This commit is contained in:
commit
ff6cda47e1
5 changed files with 33 additions and 23 deletions
|
@ -5,7 +5,6 @@
|
||||||
"not": [
|
"not": [
|
||||||
"./dist/libraries/pdf.worker.js",
|
"./dist/libraries/pdf.worker.js",
|
||||||
"./dist/libraries/worker-bundle.js",
|
"./dist/libraries/worker-bundle.js",
|
||||||
"./dist/libraries/wasm-gen/libarchive.js",
|
|
||||||
"./dist/serviceworker.js"
|
"./dist/serviceworker.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
32
package-lock.json
generated
32
package-lock.json
generated
|
@ -44,7 +44,7 @@
|
||||||
"jellyfin-apiclient": "1.11.0",
|
"jellyfin-apiclient": "1.11.0",
|
||||||
"jquery": "3.7.1",
|
"jquery": "3.7.1",
|
||||||
"jstree": "3.3.16",
|
"jstree": "3.3.16",
|
||||||
"libarchive.js": "1.3.0",
|
"libarchive.js": "2.0.2",
|
||||||
"lodash-es": "4.17.21",
|
"lodash-es": "4.17.21",
|
||||||
"markdown-it": "14.1.0",
|
"markdown-it": "14.1.0",
|
||||||
"material-design-icons-iconfont": "6.7.0",
|
"material-design-icons-iconfont": "6.7.0",
|
||||||
|
@ -8805,6 +8805,12 @@
|
||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/comlink": {
|
||||||
|
"version": "4.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/comlink/-/comlink-4.4.1.tgz",
|
||||||
|
"integrity": "sha512-+1dlx0aY5Jo1vHy/tSsIGpSkN4tS9rZSW8FIhG0JH/crs9wwweswIo/POr451r7bZww3hFbPAKnTpimzL/mm4Q==",
|
||||||
|
"license": "Apache-2.0"
|
||||||
|
},
|
||||||
"node_modules/commander": {
|
"node_modules/commander": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
|
||||||
|
@ -14969,9 +14975,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/libarchive.js": {
|
"node_modules/libarchive.js": {
|
||||||
"version": "1.3.0",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/libarchive.js/-/libarchive.js-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/libarchive.js/-/libarchive.js-2.0.2.tgz",
|
||||||
"integrity": "sha512-EkQfRXt9DhWwj6BnEA2TNpOf4jTnzSTUPGgE+iFxcdNqjktY8GitbDeHnx8qZA0/IukNyyBUR3oQKRdYkO+HFg=="
|
"integrity": "sha512-JHb+P4suNSjvz/dMdRgOe7JAxluXJeialzSFkKHU5y0ZK+m175drPOaIYW6I9WXSDcPcQ13eCUgMnpgY0ggmoQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"comlink": "^4.4.1"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lie": {
|
"node_modules/lie": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
|
@ -32076,6 +32086,11 @@
|
||||||
"delayed-stream": "~1.0.0"
|
"delayed-stream": "~1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"comlink": {
|
||||||
|
"version": "4.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/comlink/-/comlink-4.4.1.tgz",
|
||||||
|
"integrity": "sha512-+1dlx0aY5Jo1vHy/tSsIGpSkN4tS9rZSW8FIhG0JH/crs9wwweswIo/POr451r7bZww3hFbPAKnTpimzL/mm4Q=="
|
||||||
|
},
|
||||||
"commander": {
|
"commander": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
|
||||||
|
@ -36528,9 +36543,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"libarchive.js": {
|
"libarchive.js": {
|
||||||
"version": "1.3.0",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/libarchive.js/-/libarchive.js-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/libarchive.js/-/libarchive.js-2.0.2.tgz",
|
||||||
"integrity": "sha512-EkQfRXt9DhWwj6BnEA2TNpOf4jTnzSTUPGgE+iFxcdNqjktY8GitbDeHnx8qZA0/IukNyyBUR3oQKRdYkO+HFg=="
|
"integrity": "sha512-JHb+P4suNSjvz/dMdRgOe7JAxluXJeialzSFkKHU5y0ZK+m175drPOaIYW6I9WXSDcPcQ13eCUgMnpgY0ggmoQ==",
|
||||||
|
"requires": {
|
||||||
|
"comlink": "^4.4.1"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"lie": {
|
"lie": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
"jellyfin-apiclient": "1.11.0",
|
"jellyfin-apiclient": "1.11.0",
|
||||||
"jquery": "3.7.1",
|
"jquery": "3.7.1",
|
||||||
"jstree": "3.3.16",
|
"jstree": "3.3.16",
|
||||||
"libarchive.js": "1.3.0",
|
"libarchive.js": "2.0.2",
|
||||||
"lodash-es": "4.17.21",
|
"lodash-es": "4.17.21",
|
||||||
"markdown-it": "14.1.0",
|
"markdown-it": "14.1.0",
|
||||||
"material-design-icons-iconfont": "6.7.0",
|
"material-design-icons-iconfont": "6.7.0",
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// eslint-disable-next-line import/named, import/namespace
|
|
||||||
import { Archive } from 'libarchive.js';
|
import { Archive } from 'libarchive.js';
|
||||||
import loading from '../../components/loading/loading';
|
import loading from '../../components/loading/loading';
|
||||||
import dialogHelper from '../../components/dialogHelper/dialogHelper';
|
import dialogHelper from '../../components/dialogHelper/dialogHelper';
|
||||||
|
|
|
@ -4,12 +4,13 @@ const CopyPlugin = require('copy-webpack-plugin');
|
||||||
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||||
const { DefinePlugin } = require('webpack');
|
const { DefinePlugin, IgnorePlugin } = require('webpack');
|
||||||
const packageJson = require('./package.json');
|
const packageJson = require('./package.json');
|
||||||
|
|
||||||
const Assets = [
|
const Assets = [
|
||||||
'native-promise-only/npo.js',
|
'native-promise-only/npo.js',
|
||||||
'libarchive.js/dist/worker-bundle.js',
|
'libarchive.js/dist/worker-bundle.js',
|
||||||
|
'libarchive.js/dist/libarchive.wasm',
|
||||||
'@jellyfin/libass-wasm/dist/js/default.woff2',
|
'@jellyfin/libass-wasm/dist/js/default.woff2',
|
||||||
'@jellyfin/libass-wasm/dist/js/subtitles-octopus-worker.js',
|
'@jellyfin/libass-wasm/dist/js/subtitles-octopus-worker.js',
|
||||||
'@jellyfin/libass-wasm/dist/js/subtitles-octopus-worker.wasm',
|
'@jellyfin/libass-wasm/dist/js/subtitles-octopus-worker.wasm',
|
||||||
|
@ -17,11 +18,6 @@ const Assets = [
|
||||||
'pdfjs-dist/build/pdf.worker.js'
|
'pdfjs-dist/build/pdf.worker.js'
|
||||||
];
|
];
|
||||||
|
|
||||||
const LibarchiveWasm = [
|
|
||||||
'libarchive.js/dist/wasm-gen/libarchive.js',
|
|
||||||
'libarchive.js/dist/wasm-gen/libarchive.wasm'
|
|
||||||
];
|
|
||||||
|
|
||||||
const DEV_MODE = process.env.NODE_ENV !== 'production';
|
const DEV_MODE = process.env.NODE_ENV !== 'production';
|
||||||
let COMMIT_SHA = '';
|
let COMMIT_SHA = '';
|
||||||
try {
|
try {
|
||||||
|
@ -103,13 +99,11 @@ const config = {
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
new CopyPlugin({
|
// The libarchive.js worker-bundle is copied manually.
|
||||||
patterns: LibarchiveWasm.map(asset => {
|
// If it is automatically bundled, escheck will fail since it uses import.meta.url.
|
||||||
return {
|
new IgnorePlugin({
|
||||||
from: path.resolve(__dirname, `./node_modules/${asset}`),
|
resourceRegExp: /worker-bundle\.js$/,
|
||||||
to: path.resolve(__dirname, './dist/libraries/wasm-gen')
|
contextRegExp: /libarchive.js/
|
||||||
};
|
|
||||||
})
|
|
||||||
}),
|
}),
|
||||||
new ForkTsCheckerWebpackPlugin({
|
new ForkTsCheckerWebpackPlugin({
|
||||||
typescript: {
|
typescript: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue