@rive-app/webgl2 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 +1 -1
- package/rive.js +5 -3
- package/rive.js.map +1 -1
package/package.json
CHANGED
package/rive.js
CHANGED
|
@@ -3520,7 +3520,7 @@ Yd();
|
|
|
3520
3520
|
/* 2 */
|
|
3521
3521
|
/***/ ((module) => {
|
|
3522
3522
|
|
|
3523
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.15.
|
|
3523
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.15.4","description":"Rive\'s webgl2 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)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3524
3524
|
|
|
3525
3525
|
/***/ }),
|
|
3526
3526
|
/* 3 */
|
|
@@ -4007,8 +4007,10 @@ var RuntimeLoader = /** @class */ (function () {
|
|
|
4007
4007
|
}
|
|
4008
4008
|
})
|
|
4009
4009
|
.catch(function () {
|
|
4010
|
-
// In case unpkg fails or
|
|
4011
|
-
|
|
4010
|
+
// In case unpkg fails, or the wasm was not supported, we try to load the fallback module from jsdelivr.
|
|
4011
|
+
// This `rive_fallback.wasm` is compiled to support older architecture.
|
|
4012
|
+
// TODO: (Gordon): preemptively test browser support and load the correct wasm file. Then use jsdelvr only if unpkg fails.
|
|
4013
|
+
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");
|
|
4012
4014
|
if (RuntimeLoader.wasmURL.toLowerCase() !== backupJsdelivrUrl) {
|
|
4013
4015
|
console.warn("Failed to load WASM from ".concat(RuntimeLoader.wasmURL, ", trying jsdelivr as a backup"));
|
|
4014
4016
|
RuntimeLoader.setWasmUrl(backupJsdelivrUrl);
|