@rive-app/canvas 2.15.3 → 2.15.4
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/package.json +2 -1
- package/rive.js +5 -3
- package/rive.js.map +1 -1
- package/rive_fallback.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rive-app/canvas",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.4",
|
|
4
4
|
"description": "Rive's canvas based web api.",
|
|
5
5
|
"main": "rive.js",
|
|
6
6
|
"homepage": "https://rive.app",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"rive.js",
|
|
26
26
|
"rive.js.map",
|
|
27
27
|
"rive.wasm",
|
|
28
|
+
"rive_fallback.wasm",
|
|
28
29
|
"rive.d.ts",
|
|
29
30
|
"rive_advanced.mjs.d.ts"
|
|
30
31
|
],
|
package/rive.js
CHANGED
|
@@ -3353,7 +3353,7 @@ Zd();
|
|
|
3353
3353
|
/* 2 */
|
|
3354
3354
|
/***/ ((module) => {
|
|
3355
3355
|
|
|
3356
|
-
module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.15.
|
|
3356
|
+
module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.15.4","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3357
3357
|
|
|
3358
3358
|
/***/ }),
|
|
3359
3359
|
/* 3 */
|
|
@@ -3840,8 +3840,10 @@ var RuntimeLoader = /** @class */ (function () {
|
|
|
3840
3840
|
}
|
|
3841
3841
|
})
|
|
3842
3842
|
.catch(function () {
|
|
3843
|
-
// In case unpkg fails or
|
|
3844
|
-
|
|
3843
|
+
// In case unpkg fails, or the wasm was not supported, we try to load the fallback module from jsdelivr.
|
|
3844
|
+
// This `rive_fallback.wasm` is compiled to support older architecture.
|
|
3845
|
+
// TODO: (Gordon): preemptively test browser support and load the correct wasm file. Then use jsdelvr only if unpkg fails.
|
|
3846
|
+
var backupJsdelivrUrl = "https://cdn.jsdelivr.net/npm/".concat(package_json__WEBPACK_IMPORTED_MODULE_1__.name, "@").concat(package_json__WEBPACK_IMPORTED_MODULE_1__.version, "/rive_fallback.wasm");
|
|
3845
3847
|
if (RuntimeLoader.wasmURL.toLowerCase() !== backupJsdelivrUrl) {
|
|
3846
3848
|
console.warn("Failed to load WASM from ".concat(RuntimeLoader.wasmURL, ", trying jsdelivr as a backup"));
|
|
3847
3849
|
RuntimeLoader.setWasmUrl(backupJsdelivrUrl);
|