@dxtmisha/functional-basic 1.1.6 → 1.1.8

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/dist/library.js CHANGED
@@ -151,7 +151,7 @@ function se() {
151
151
  return s() && location.href.startsWith("data:");
152
152
  }
153
153
  //#endregion
154
- //#region \0@oxc-project+runtime@0.127.0/helpers/typeof.js
154
+ //#region \0@oxc-project+runtime@0.128.0/helpers/typeof.js
155
155
  function S(e) {
156
156
  "@babel/helpers - typeof";
157
157
  return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -161,7 +161,7 @@ function S(e) {
161
161
  }, S(e);
162
162
  }
163
163
  //#endregion
164
- //#region \0@oxc-project+runtime@0.127.0/helpers/toPrimitive.js
164
+ //#region \0@oxc-project+runtime@0.128.0/helpers/toPrimitive.js
165
165
  function ce(e, t) {
166
166
  if (S(e) != "object" || !e) return e;
167
167
  var n = e[Symbol.toPrimitive];
@@ -173,13 +173,13 @@ function ce(e, t) {
173
173
  return (t === "string" ? String : Number)(e);
174
174
  }
175
175
  //#endregion
176
- //#region \0@oxc-project+runtime@0.127.0/helpers/toPropertyKey.js
176
+ //#region \0@oxc-project+runtime@0.128.0/helpers/toPropertyKey.js
177
177
  function le(e) {
178
178
  var t = ce(e, "string");
179
179
  return S(t) == "symbol" ? t : t + "";
180
180
  }
181
181
  //#endregion
182
- //#region \0@oxc-project+runtime@0.127.0/helpers/defineProperty.js
182
+ //#region \0@oxc-project+runtime@0.128.0/helpers/defineProperty.js
183
183
  function C(e, t, n) {
184
184
  return (t = le(t)) in e ? Object.defineProperty(e, t, {
185
185
  value: n,
@@ -1553,7 +1553,7 @@ var Le = "d-response-loading", Re = class {
1553
1553
  this.getItem().setOrigin(e);
1554
1554
  }
1555
1555
  static setConfig(e) {
1556
- e && n(e) && (e.urlRoot && this.setUrl(e.urlRoot), e.headers && this.setHeaders(e.headers), e.requestDefault && this.setRequestDefault(e.requestDefault), e.preparation && this.setPreparation(e.preparation), e.end && this.setEnd(e.end), e.timeout && this.setTimeout(e.timeout), e.origin && this.setOrigin(e.origin));
1556
+ e && n(e) && (e.urlRoot && this.setUrl(e.urlRoot), e.headers && this.setHeaders(e.headers), e.requestDefault && this.setRequestDefault(e.requestDefault), e.preparation && this.setPreparation(e.preparation), e.end && this.setEnd(e.end), e.timeout && this.setTimeout(e.timeout), e.devMode && this.getResponse().setDevMode(e.devMode), e.origin && this.setOrigin(e.origin));
1557
1557
  }
1558
1558
  static async request(e) {
1559
1559
  return this.getItem().request(e);
@@ -62,6 +62,8 @@ export type ApiConfig = {
62
62
  end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
63
63
  /** Timeout for the request in milliseconds/ Таймаут запроса в миллисекундах */
64
64
  timeout?: number;
65
+ /** Enable development logging/ Включить логирование разработки */
66
+ devMode?: boolean;
65
67
  };
66
68
  /**
67
69
  * Shape of API response data wrapper/ Структура обёртки данных ответа API
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional-basic",
3
3
  "private": false,
4
- "version": "1.1.6",
4
+ "version": "1.1.8",
5
5
  "type": "module",
6
6
  "description": "Foundational utility library for modern web development — HTTP client, geolocation, i18n, SEO meta tags, caching, storage, DOM utilities, and more. Framework-agnostic, zero dependencies, TypeScript-first.",
7
7
  "keywords": [
@@ -60,6 +60,8 @@
60
60
  "files": [
61
61
  "dist",
62
62
  "ai-description.txt",
63
+ "ai-doc.ru.txt",
64
+ "ai-doc.txt",
63
65
  "ai-types.txt",
64
66
  "CHANGELOG.md",
65
67
  "LICENSE",