@fusion.dev/helix-theme 0.227.0 → 0.229.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-theme",
3
3
  "description": "Theme derivation engine. Computes a complete token set from intent inputs, and measures every text and background pair it solves against its contrast target.",
4
- "version": "0.227.0",
4
+ "version": "0.229.0",
5
5
  "license": "MIT",
6
6
  "author": "Fusion Development Group",
7
7
  "repository": {
@@ -236,15 +236,11 @@ function __wbg_finalize_init(instance, module) {
236
236
 
237
237
  async function __wbg_load(module, imports) {
238
238
  if (typeof Response === 'function' && module instanceof Response) {
239
- if (!module.ok) {
240
- throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
241
- }
242
-
243
239
  if (typeof WebAssembly.instantiateStreaming === 'function') {
244
240
  try {
245
241
  return await WebAssembly.instantiateStreaming(module, imports);
246
242
  } catch (e) {
247
- const validResponse = expectedResponseType(module.type);
243
+ const validResponse = module.ok && expectedResponseType(module.type);
248
244
 
249
245
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
250
246
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
Binary file