@nemigo/dadata 1.0.0 → 1.2.0

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/suggs.js CHANGED
@@ -25,10 +25,10 @@ export class DaDataSuggsAPI {
25
25
  signal,
26
26
  });
27
27
  const result = await response.json();
28
- if (result && typeof result === "object") {
29
- if ("suggestions" in result && Array.isArray(result.suggestions)) {
30
- return deepCleanArray(result.suggestions);
31
- }
28
+ // biome-ignore format : ухудшение читаемости
29
+ if (result && typeof result === "object"
30
+ && "suggestions" in result && Array.isArray(result.suggestions)) {
31
+ return deepCleanArray(result.suggestions);
32
32
  }
33
33
  throw new Error("Invalid result", { cause: { endpoint, request, result } });
34
34
  }
package/dist/types.d.ts CHANGED
@@ -505,7 +505,7 @@ export interface DaDataAddress {
505
505
  /**
506
506
  * Часовой пояс
507
507
  *
508
- * @examle "UTC+5"
508
+ * @example "UTC+5"
509
509
  */
510
510
  timezone?: string;
511
511
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nemigo/dadata",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Vlad Logvin",
@@ -8,14 +8,12 @@
8
8
  },
9
9
  "type": "module",
10
10
  "scripts": {
11
- "build": "svelte-package && rimraf .svelte-kit",
12
- "check": "tsc --noemit",
13
- "eslint": "eslint ./",
14
- "eslint:fix": "eslint --fix ./",
15
- "lint": "biome lint",
16
- "lint:fix": "biome lint --fix --unsafe",
17
- "lint:fix:unsafe": "biome lint --fix --unsafe",
18
- "format": "biome check --write --linter-enabled=false"
11
+ "build": "bunx --bun svelte-package && bunx --bun rimraf .svelte-kit",
12
+ "check": "bunx --bun tsc --noemit",
13
+ "eslint": "bunx --bun eslint ./",
14
+ "oxlint": "bunx --bun oxlint --config .././../oxlintrc.jsonc --ignore-path ../configs/.eslint.ignore ./",
15
+ "bilint": "bunx --bun biome lint",
16
+ "format": "bunx --bun biome check --write --linter-enabled=false"
19
17
  },
20
18
  "exports": {
21
19
  "./cleaner": {
@@ -36,10 +34,10 @@
36
34
  }
37
35
  },
38
36
  "peerDependencies": {
39
- "@nemigo/helpers": ">=2.0.0"
37
+ "@nemigo/helpers": ">=2.2.0"
40
38
  },
41
39
  "devDependencies": {
42
- "@nemigo/configs": "2.0.0",
43
- "@nemigo/helpers": "2.0.0"
40
+ "@nemigo/configs": "2.2.0",
41
+ "@nemigo/helpers": "2.2.0"
44
42
  }
45
43
  }