nuxt-tiff-provider 0.3.2 → 0.4.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.md +3 -1
- package/dist/module.d.mts +2 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -2
- package/dist/runtime/register.client.js +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -34,13 +34,15 @@ export default defineNuxtConfig({
|
|
|
34
34
|
autoRegister: true, // false → call registerTiffServiceWorker() yourself
|
|
35
35
|
retryRacedImages: true, // re-fetch images that raced the SW on first load
|
|
36
36
|
paramPrefix: 'tp', // query-param namespace + interception marker
|
|
37
|
+
ignoreNativeTiff: false, // true → transcode in Safari too, skip native passthrough
|
|
37
38
|
},
|
|
38
39
|
})
|
|
39
40
|
```
|
|
40
41
|
|
|
41
42
|
## Notes
|
|
42
43
|
|
|
43
|
-
- Safari paints TIFF natively; the SW detects this and passes through.
|
|
44
|
+
- Safari paints TIFF natively; the SW detects this and passes through. Set
|
|
45
|
+
`ignoreNativeTiff: true` to transcode there too.
|
|
44
46
|
- First cold visit: images requested before the SW took control are re-fetched
|
|
45
47
|
automatically once it does (disable with `retryRacedImages: false`).
|
|
46
48
|
- Already run your own Service Worker? Set `autoRegister: false` and
|
package/dist/module.d.mts
CHANGED
|
@@ -15,6 +15,8 @@ interface ModuleOptions {
|
|
|
15
15
|
retryRacedImages: boolean;
|
|
16
16
|
/** Query-param namespace for modifiers and the interception marker. Default 'tp'. */
|
|
17
17
|
paramPrefix: string;
|
|
18
|
+
/** Transcode in the SW even where TIFF is native (Safari). Default false. */
|
|
19
|
+
ignoreNativeTiff: boolean;
|
|
18
20
|
}
|
|
19
21
|
declare const module$1: nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
20
22
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -17,7 +17,8 @@ const module$1 = defineNuxtModule({
|
|
|
17
17
|
scope: "/",
|
|
18
18
|
autoRegister: true,
|
|
19
19
|
retryRacedImages: true,
|
|
20
|
-
paramPrefix: "tp"
|
|
20
|
+
paramPrefix: "tp",
|
|
21
|
+
ignoreNativeTiff: false
|
|
21
22
|
},
|
|
22
23
|
async setup(options, nuxt) {
|
|
23
24
|
const resolver = createResolver(import.meta.url);
|
|
@@ -63,7 +64,8 @@ const module$1 = defineNuxtModule({
|
|
|
63
64
|
quality: options.quality,
|
|
64
65
|
scope: options.scope,
|
|
65
66
|
retryRacedImages: options.retryRacedImages,
|
|
66
|
-
paramPrefix: options.paramPrefix
|
|
67
|
+
paramPrefix: options.paramPrefix,
|
|
68
|
+
ignoreNativeTiff: options.ignoreNativeTiff
|
|
67
69
|
}
|
|
68
70
|
);
|
|
69
71
|
if (options.autoRegister) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-tiff-provider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Nuxt module: render TIFFs via @nuxt/image off the main thread in a Service Worker.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@nuxt/image": "^1.11.0",
|
|
39
39
|
"@nuxt/kit": "^4.0.0",
|
|
40
40
|
"defu": "^6.1.0",
|
|
41
|
-
"@tiff-provider/core": "0.
|
|
41
|
+
"@tiff-provider/core": "0.4.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@nuxt/module-builder": "^1.0.0",
|