@dxtmisha/functional-basic 1.2.6 → 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.
Files changed (2) hide show
  1. package/dist/library.js +2 -2
  2. package/package.json +1 -1
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 {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional-basic",
3
3
  "private": false,
4
- "version": "1.2.6",
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": [