mol_dump_lib 0.0.876 → 0.0.877

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.js CHANGED
@@ -5976,14 +5976,9 @@ var $;
5976
5976
  "use strict";
5977
5977
  var $;
5978
5978
  (function ($) {
5979
- class $mol_fetch_response extends $mol_object2 {
5979
+ class $mol_fetch_response extends $mol_object {
5980
5980
  native;
5981
5981
  request;
5982
- constructor(native, request) {
5983
- super();
5984
- this.native = native;
5985
- this.request = request;
5986
- }
5987
5982
  status() {
5988
5983
  const types = ['unknown', 'inform', 'success', 'redirect', 'wrong', 'failed'];
5989
5984
  return types[Math.floor(this.native.status / 100)];
@@ -6048,12 +6043,8 @@ var $;
6048
6043
  $mol_action
6049
6044
  ], $mol_fetch_response.prototype, "html", null);
6050
6045
  $.$mol_fetch_response = $mol_fetch_response;
6051
- class $mol_fetch_request extends $mol_object2 {
6046
+ class $mol_fetch_request extends $mol_object {
6052
6047
  native;
6053
- constructor(native) {
6054
- super();
6055
- this.native = native;
6056
- }
6057
6048
  response_async() {
6058
6049
  const controller = new AbortController();
6059
6050
  let done = false;
@@ -6069,7 +6060,10 @@ var $;
6069
6060
  });
6070
6061
  }
6071
6062
  response() {
6072
- return new this.$.$mol_fetch_response($mol_wire_sync(this).response_async(), this);
6063
+ return this.$.$mol_fetch_response.make({
6064
+ native: $mol_wire_sync(this).response_async(),
6065
+ request: this
6066
+ });
6073
6067
  }
6074
6068
  success() {
6075
6069
  const response = this.response();
@@ -6082,9 +6076,11 @@ var $;
6082
6076
  $mol_action
6083
6077
  ], $mol_fetch_request.prototype, "response", null);
6084
6078
  $.$mol_fetch_request = $mol_fetch_request;
6085
- class $mol_fetch extends $mol_object2 {
6079
+ class $mol_fetch extends $mol_object {
6086
6080
  static request(input, init) {
6087
- return new this.$.$mol_fetch_request(new Request(input, init));
6081
+ return this.$.$mol_fetch_request.make({
6082
+ native: new Request(input, init)
6083
+ });
6088
6084
  }
6089
6085
  static response(input, init) {
6090
6086
  return this.request(input, init).response();