@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 +4 -4
- package/dist/types.d.ts +1 -1
- package/package.json +10 -12
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nemigo/dadata",
|
|
3
|
-
"version": "1.
|
|
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
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
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.
|
|
37
|
+
"@nemigo/helpers": ">=2.2.0"
|
|
40
38
|
},
|
|
41
39
|
"devDependencies": {
|
|
42
|
-
"@nemigo/configs": "2.
|
|
43
|
-
"@nemigo/helpers": "2.
|
|
40
|
+
"@nemigo/configs": "2.2.0",
|
|
41
|
+
"@nemigo/helpers": "2.2.0"
|
|
44
42
|
}
|
|
45
43
|
}
|