@dxtmisha/functional-basic 1.2.5 → 1.2.7

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
@@ -1205,11 +1205,11 @@ var Oe = class {
1205
1205
  findItem(e, t, n) {
1206
1206
  for (let i of this.storage) {
1207
1207
  var r;
1208
- if (!(i.method !== e || !this.isUrl(t.url, i.url)) && ((r = i.validation) != null && r.call(i, t) || n && i.code && i.code === n || i.status && i.status === t.status)) return i;
1208
+ if (!(!i.method.includes(e) || !this.isUrl(t.url, i.url)) && ((r = i.validation) != null && r.call(i, t) || n && i.code && i.code === n || i.status && i.status === t.status)) return i;
1209
1209
  }
1210
1210
  }
1211
1211
  isUrl(e, t) {
1212
- return t instanceof RegExp ? t.test(e) : e === t;
1212
+ return t instanceof RegExp ? t.test(e) : e.includes(t);
1213
1213
  }
1214
1214
  async getBody(e) {
1215
1215
  try {
@@ -184,7 +184,7 @@ export type ApiHydrationList = ApiHydrationItem[];
184
184
  /**
185
185
  * Item for API error storage/ Элемент для хранилища ошибок API
186
186
  */
187
- export type ApiErrorStorageItem = {
187
+ export type ApiErrorStorageItem = Record<string, any> & {
188
188
  /** URL string or RegExp to match request URL/ Строка URL или RegExp для сопоставления URL */
189
189
  url: string | RegExp;
190
190
  /** HTTP method/ HTTP метод */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional-basic",
3
3
  "private": false,
4
- "version": "1.2.5",
4
+ "version": "1.2.7",
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": [