mol_dump_lib 0.0.876 → 0.0.878

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.mjs CHANGED
@@ -5957,6 +5957,74 @@ var $;
5957
5957
  $.$mol_file = $mol_file;
5958
5958
  })($ || ($ = {}));
5959
5959
 
5960
+ ;
5961
+ "use strict";
5962
+ var $;
5963
+ (function ($) {
5964
+ let $mol_rest_code;
5965
+ (function ($mol_rest_code) {
5966
+ $mol_rest_code[$mol_rest_code["Continue"] = 100] = "Continue";
5967
+ $mol_rest_code[$mol_rest_code["Switching protocols"] = 101] = "Switching protocols";
5968
+ $mol_rest_code[$mol_rest_code["Processing"] = 102] = "Processing";
5969
+ $mol_rest_code[$mol_rest_code["OK"] = 200] = "OK";
5970
+ $mol_rest_code[$mol_rest_code["Created"] = 201] = "Created";
5971
+ $mol_rest_code[$mol_rest_code["Accepted"] = 202] = "Accepted";
5972
+ $mol_rest_code[$mol_rest_code["Non-Authoritative Information"] = 203] = "Non-Authoritative Information";
5973
+ $mol_rest_code[$mol_rest_code["No Content"] = 204] = "No Content";
5974
+ $mol_rest_code[$mol_rest_code["Reset Content"] = 205] = "Reset Content";
5975
+ $mol_rest_code[$mol_rest_code["Partial Content"] = 206] = "Partial Content";
5976
+ $mol_rest_code[$mol_rest_code["Multi Status"] = 207] = "Multi Status";
5977
+ $mol_rest_code[$mol_rest_code["Already Reported"] = 208] = "Already Reported";
5978
+ $mol_rest_code[$mol_rest_code["IM Used"] = 226] = "IM Used";
5979
+ $mol_rest_code[$mol_rest_code["Multiple Choices"] = 300] = "Multiple Choices";
5980
+ $mol_rest_code[$mol_rest_code["Moved Permanently"] = 301] = "Moved Permanently";
5981
+ $mol_rest_code[$mol_rest_code["Found"] = 302] = "Found";
5982
+ $mol_rest_code[$mol_rest_code["See Other"] = 303] = "See Other";
5983
+ $mol_rest_code[$mol_rest_code["Not Modified"] = 304] = "Not Modified";
5984
+ $mol_rest_code[$mol_rest_code["Use Proxy"] = 305] = "Use Proxy";
5985
+ $mol_rest_code[$mol_rest_code["Temporary Redirect"] = 307] = "Temporary Redirect";
5986
+ $mol_rest_code[$mol_rest_code["Bad Request"] = 400] = "Bad Request";
5987
+ $mol_rest_code[$mol_rest_code["Unauthorized"] = 401] = "Unauthorized";
5988
+ $mol_rest_code[$mol_rest_code["Payment Required"] = 402] = "Payment Required";
5989
+ $mol_rest_code[$mol_rest_code["Forbidden"] = 403] = "Forbidden";
5990
+ $mol_rest_code[$mol_rest_code["Not Found"] = 404] = "Not Found";
5991
+ $mol_rest_code[$mol_rest_code["Method Not Allowed"] = 405] = "Method Not Allowed";
5992
+ $mol_rest_code[$mol_rest_code["Not Acceptable"] = 406] = "Not Acceptable";
5993
+ $mol_rest_code[$mol_rest_code["Proxy Authentication Required"] = 407] = "Proxy Authentication Required";
5994
+ $mol_rest_code[$mol_rest_code["Request Timeout"] = 408] = "Request Timeout";
5995
+ $mol_rest_code[$mol_rest_code["Conflict"] = 409] = "Conflict";
5996
+ $mol_rest_code[$mol_rest_code["Gone"] = 410] = "Gone";
5997
+ $mol_rest_code[$mol_rest_code["Length Required"] = 411] = "Length Required";
5998
+ $mol_rest_code[$mol_rest_code["Precondition Failed"] = 412] = "Precondition Failed";
5999
+ $mol_rest_code[$mol_rest_code["Request Entity Too Large"] = 413] = "Request Entity Too Large";
6000
+ $mol_rest_code[$mol_rest_code["Request URI Too Long"] = 414] = "Request URI Too Long";
6001
+ $mol_rest_code[$mol_rest_code["Unsupported Media Type"] = 415] = "Unsupported Media Type";
6002
+ $mol_rest_code[$mol_rest_code["Requested Range Not Satisfiable"] = 416] = "Requested Range Not Satisfiable";
6003
+ $mol_rest_code[$mol_rest_code["Expectation Failed"] = 417] = "Expectation Failed";
6004
+ $mol_rest_code[$mol_rest_code["Teapot"] = 418] = "Teapot";
6005
+ $mol_rest_code[$mol_rest_code["Unprocessable Entity"] = 422] = "Unprocessable Entity";
6006
+ $mol_rest_code[$mol_rest_code["Locked"] = 423] = "Locked";
6007
+ $mol_rest_code[$mol_rest_code["Failed Dependency"] = 424] = "Failed Dependency";
6008
+ $mol_rest_code[$mol_rest_code["Upgrade Required"] = 426] = "Upgrade Required";
6009
+ $mol_rest_code[$mol_rest_code["Precondition Required"] = 428] = "Precondition Required";
6010
+ $mol_rest_code[$mol_rest_code["Too Many Requests"] = 429] = "Too Many Requests";
6011
+ $mol_rest_code[$mol_rest_code["Request Header Fields Too Large"] = 431] = "Request Header Fields Too Large";
6012
+ $mol_rest_code[$mol_rest_code["Unavailable For Legal Reasons"] = 451] = "Unavailable For Legal Reasons";
6013
+ $mol_rest_code[$mol_rest_code["Internal Server Error"] = 500] = "Internal Server Error";
6014
+ $mol_rest_code[$mol_rest_code["Not Implemented"] = 501] = "Not Implemented";
6015
+ $mol_rest_code[$mol_rest_code["Bad Gateway"] = 502] = "Bad Gateway";
6016
+ $mol_rest_code[$mol_rest_code["Service Unavailable"] = 503] = "Service Unavailable";
6017
+ $mol_rest_code[$mol_rest_code["Gateway Timeout"] = 504] = "Gateway Timeout";
6018
+ $mol_rest_code[$mol_rest_code["HTTP Version Not Supported"] = 505] = "HTTP Version Not Supported";
6019
+ $mol_rest_code[$mol_rest_code["Insufficient Storage"] = 507] = "Insufficient Storage";
6020
+ $mol_rest_code[$mol_rest_code["Loop Detected"] = 508] = "Loop Detected";
6021
+ $mol_rest_code[$mol_rest_code["Not Extended"] = 510] = "Not Extended";
6022
+ $mol_rest_code[$mol_rest_code["Network Authentication Required"] = 511] = "Network Authentication Required";
6023
+ $mol_rest_code[$mol_rest_code["Network Read Timeout Error"] = 598] = "Network Read Timeout Error";
6024
+ $mol_rest_code[$mol_rest_code["Network Connect Timeout Error"] = 599] = "Network Connect Timeout Error";
6025
+ })($mol_rest_code = $.$mol_rest_code || ($.$mol_rest_code = {}));
6026
+ })($ || ($ = {}));
6027
+
5960
6028
  ;
5961
6029
  "use strict";
5962
6030
  var $;
@@ -5976,14 +6044,9 @@ var $;
5976
6044
  "use strict";
5977
6045
  var $;
5978
6046
  (function ($) {
5979
- class $mol_fetch_response extends $mol_object2 {
6047
+ class $mol_fetch_response extends $mol_object {
5980
6048
  native;
5981
6049
  request;
5982
- constructor(native, request) {
5983
- super();
5984
- this.native = native;
5985
- this.request = request;
5986
- }
5987
6050
  status() {
5988
6051
  const types = ['unknown', 'inform', 'success', 'redirect', 'wrong', 'failed'];
5989
6052
  return types[Math.floor(this.native.status / 100)];
@@ -5995,7 +6058,7 @@ var $;
5995
6058
  return this.native.ok;
5996
6059
  }
5997
6060
  message() {
5998
- return this.native.statusText || `HTTP Error ${this.code()}`;
6061
+ return $mol_rest_code[this.code()] || `HTTP Error ${this.code()}`;
5999
6062
  }
6000
6063
  headers() {
6001
6064
  return this.native.headers;
@@ -6048,12 +6111,8 @@ var $;
6048
6111
  $mol_action
6049
6112
  ], $mol_fetch_response.prototype, "html", null);
6050
6113
  $.$mol_fetch_response = $mol_fetch_response;
6051
- class $mol_fetch_request extends $mol_object2 {
6114
+ class $mol_fetch_request extends $mol_object {
6052
6115
  native;
6053
- constructor(native) {
6054
- super();
6055
- this.native = native;
6056
- }
6057
6116
  response_async() {
6058
6117
  const controller = new AbortController();
6059
6118
  let done = false;
@@ -6069,7 +6128,10 @@ var $;
6069
6128
  });
6070
6129
  }
6071
6130
  response() {
6072
- return new this.$.$mol_fetch_response($mol_wire_sync(this).response_async(), this);
6131
+ return this.$.$mol_fetch_response.make({
6132
+ native: $mol_wire_sync(this).response_async(),
6133
+ request: this
6134
+ });
6073
6135
  }
6074
6136
  success() {
6075
6137
  const response = this.response();
@@ -6082,9 +6144,11 @@ var $;
6082
6144
  $mol_action
6083
6145
  ], $mol_fetch_request.prototype, "response", null);
6084
6146
  $.$mol_fetch_request = $mol_fetch_request;
6085
- class $mol_fetch extends $mol_object2 {
6147
+ class $mol_fetch extends $mol_object {
6086
6148
  static request(input, init) {
6087
- return new this.$.$mol_fetch_request(new Request(input, init));
6149
+ return this.$.$mol_fetch_request.make({
6150
+ native: new Request(input, init)
6151
+ });
6088
6152
  }
6089
6153
  static response(input, init) {
6090
6154
  return this.request(input, init).response();