openchemlib 9.0.0 → 9.0.1

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.
@@ -69752,7 +69752,7 @@ function getExports($wnd) {
69752
69752
  $sendStats("moduleStartup", "end");
69753
69753
  $gwt && $gwt.permProps && __gwtModuleFunction.__moduleStartupDone($gwt.permProps);
69754
69754
  const toReturn = $wnd["OCL"];
69755
- toReturn.version = "9.0.0";
69755
+ toReturn.version = "9.0.1";
69756
69756
  return toReturn;
69757
69757
  }
69758
69758
  var isBrowserWindow = typeof window !== "undefined" && typeof window.document !== "undefined";
@@ -69801,7 +69801,14 @@ function addRegisterResources(OCL) {
69801
69801
  OCL.Resources.registerFromUrl = async function registerFromUrl(url = getDefaultResourcesUrl()) {
69802
69802
  const request = await fetch(url);
69803
69803
  const resources = await request.json();
69804
- _register(resources);
69804
+ const textEncoder = new TextEncoder();
69805
+ const resourcesAsUint8 = Object.fromEntries(
69806
+ Object.entries(resources).map(([file, contents]) => [
69807
+ file,
69808
+ textEncoder.encode(contents)
69809
+ ])
69810
+ );
69811
+ _register(resourcesAsUint8);
69805
69812
  };
69806
69813
  if (typeof process !== "undefined") {
69807
69814
  let getDefaultResourcesPath2 = function() {
@@ -69887,8 +69894,8 @@ export {
69887
69894
  };
69888
69895
  /**
69889
69896
  * openchemlib - Manipulate molecules
69890
- * @version v9.0.0
69891
- * @date 2025-04-17T15:48:28.546Z
69897
+ * @version v9.0.1
69898
+ * @date 2025-04-28T14:22:13.313Z
69892
69899
  * @link https://github.com/cheminfo/openchemlib-js
69893
69900
  * @license BSD-3-Clause
69894
69901
  */