wasm-vips 0.0.6 → 0.0.8
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 -2
- package/THIRD-PARTY-NOTICES.md +1 -0
- package/lib/vips-es6.js +234 -1217
- package/lib/vips-es6.worker.mjs +1 -0
- package/lib/vips-heif.wasm +0 -0
- package/lib/vips-jxl.wasm +0 -0
- package/lib/vips-node.js +235 -1214
- package/lib/vips-node.mjs +235 -1214
- package/lib/vips-node.worker.js +1 -1
- package/lib/vips-node.worker.mjs +1 -1
- package/lib/vips-resvg.wasm +0 -0
- package/lib/vips.d.ts +20 -0
- package/lib/vips.js +234 -1218
- package/lib/vips.wasm +0 -0
- package/lib/vips.worker.js +1 -1
- package/package.json +1 -1
- package/versions.json +12 -11
- package/lib/vips-es6.worker.js +0 -1
package/README.md
CHANGED
|
@@ -49,12 +49,13 @@ yarn add wasm-vips
|
|
|
49
49
|
### Browser
|
|
50
50
|
|
|
51
51
|
Requires `vips.js`, `vips.wasm` and `vips.worker.js` to be served from
|
|
52
|
-
the same directory.
|
|
52
|
+
the same directory. Additionally, when using ES6 modules, it's necessary
|
|
53
|
+
to also serve the `vips-es6.js` and `vips-es6.worker.js` files.
|
|
53
54
|
|
|
54
55
|
Since wasm-vips requires [the `SharedArrayBuffer` API](
|
|
55
56
|
https://caniuse.com/sharedarraybuffer), the website needs to opt-in to
|
|
56
57
|
a cross-origin isolated state, by serving the following HTTP headers on
|
|
57
|
-
the main document:
|
|
58
|
+
both the main document and worker script (`*.worker.js`):
|
|
58
59
|
|
|
59
60
|
```http
|
|
60
61
|
Cross-Origin-Embedder-Policy: require-corp
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -8,6 +8,7 @@ used under the terms of the following licences:
|
|
|
8
8
|
| aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) |
|
|
9
9
|
| brotli | MIT Licence |
|
|
10
10
|
| cgif | MIT Licence |
|
|
11
|
+
| emscripten | [MIT Licence](https://github.com/emscripten-core/emscripten/blob/main/LICENSE) |
|
|
11
12
|
| expat | MIT Licence |
|
|
12
13
|
| glib | LGPLv3 |
|
|
13
14
|
| highway | Apache-2.0 License, BSD 3-Clause |
|