@file-viewer/pptx 3.1.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +3 -30
- package/README.md +3 -30
- package/dist/chart.d.ts +1 -0
- package/dist/chart.js +194 -24
- package/dist/index.d.ts +8 -8
- package/dist/index.js +5 -5
- package/dist/options.d.ts +1 -1
- package/dist/presentation.d.ts +1 -20
- package/dist/presentation.js +0 -39
- package/dist/styles.d.ts +0 -5
- package/dist/styles.js +17 -5
- package/dist/types.d.ts +1 -1
- package/dist/viewer.d.ts +2 -13
- package/dist/viewer.js +6 -27
- package/dist/worker/pptx.worker.js +12 -12
- package/dist/worker-location.d.ts +0 -1
- package/dist/worker-location.js +0 -3
- package/dist/worker.THIRD_PARTY_LICENSES.txt +786 -0
- package/dist/worker.d.ts +1 -2
- package/dist/worker.js +1 -13
- package/package.json +34 -22
package/dist/worker-location.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
/** Distinguish an emitted asset from an untouched dependency-relative URL. */
|
|
2
1
|
export const isResolvedPptxWorkerLocation = (moduleUrl, assetUrl) => {
|
|
3
|
-
// Keep the comparison URL dynamic: a bundler must only rewrite the static
|
|
4
|
-
// new URL reference in worker.ts, not both sides of this comparison.
|
|
5
2
|
const relativePath = ['worker', 'pptx.worker.js'].join('/');
|
|
6
3
|
const dependencyRelativeUrl = new URL(relativePath, moduleUrl);
|
|
7
4
|
return assetUrl.href !== dependencyRelativeUrl.href || /\/dist\/worker\.[cm]?js$/.test(moduleUrl.pathname);
|