mol_plot_all 1.2.330 → 1.2.333

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/web.test.js CHANGED
@@ -2718,6 +2718,9 @@ var $;
2718
2718
  //mol/state/local/local.web.ts
2719
2719
  ;
2720
2720
  "use strict";
2721
+ //mol/charset/encoding/encoding.ts
2722
+ ;
2723
+ "use strict";
2721
2724
  var $;
2722
2725
  (function ($) {
2723
2726
  $mol_test({
@@ -2738,8 +2741,12 @@ var $;
2738
2741
  "use strict";
2739
2742
  var $;
2740
2743
  (function ($) {
2741
- function $mol_charset_decode(value, code = 'utf8') {
2742
- return new TextDecoder(code).decode(value);
2744
+ const decoders = {};
2745
+ function $mol_charset_decode(buffer, encoding = 'utf8') {
2746
+ let decoder = decoders[encoding];
2747
+ if (!decoder)
2748
+ decoder = decoders[encoding] = new TextDecoder(encoding);
2749
+ return decoder.decode(buffer);
2743
2750
  }
2744
2751
  $.$mol_charset_decode = $mol_charset_decode;
2745
2752
  })($ || ($ = {}));