mol_plot_all 1.2.329 → 1.2.332

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/node.test.js CHANGED
@@ -8296,6 +8296,9 @@ var $;
8296
8296
  //mol/state/local/local.ts
8297
8297
  ;
8298
8298
  "use strict";
8299
+ //mol/charset/encoding/encoding.ts
8300
+ ;
8301
+ "use strict";
8299
8302
  var $;
8300
8303
  (function ($) {
8301
8304
  $mol_test({
@@ -8316,8 +8319,12 @@ var $;
8316
8319
  "use strict";
8317
8320
  var $;
8318
8321
  (function ($) {
8319
- function $mol_charset_decode(value, code = 'utf8') {
8320
- return new TextDecoder(code).decode(value);
8322
+ const decoders = {};
8323
+ function $mol_charset_decode(buffer, encoding = 'utf8') {
8324
+ let decoder = decoders[encoding];
8325
+ if (!decoder)
8326
+ decoder = decoders[encoding] = new TextDecoder(encoding);
8327
+ return decoder.decode(buffer);
8321
8328
  }
8322
8329
  $.$mol_charset_decode = $mol_charset_decode;
8323
8330
  })($ || ($ = {}));