@ethnolib/language-chooser-react-hook 0.0.5 → 0.0.6

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 (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +5 -10
package/index.mjs CHANGED
@@ -294126,7 +294126,7 @@ const Yh = (u) => {
294126
294126
  function ea(X) {
294127
294127
  vt(X.iso639_3_code, y == null ? void 0 : y.iso639_3_code) ? (h(void 0), k(void 0), M()) : (h(X), k(
294128
294128
  // If there is only one script option for this language, automatically select it
294129
- X.scripts.length == 1 ? X.scripts[0] : void 0
294129
+ X.scripts.length === 1 ? X.scripts[0] : void 0
294130
294130
  ), C({
294131
294131
  displayName: ni(
294132
294132
  X.autonym || X.exonym || ""
package/package.json CHANGED
@@ -3,18 +3,18 @@
3
3
  "description": "A React hook providing the logic for a language chooser",
4
4
  "author": "SIL Global",
5
5
  "license": "MIT",
6
- "version": "0.0.5",
6
+ "version": "0.0.6",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "scripts": {
10
10
  "typecheck": "tsc",
11
11
  "prebuild": "npm run typecheck",
12
12
  "build": "nx vite:build",
13
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
13
+ "lint": "eslint .",
14
14
  "test": "nx vite:test --config vitest.config.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@ethnolib/find-language": "0.0.9",
17
+ "@ethnolib/find-language": "0.0.10",
18
18
  "fuse.js": "^7.0.0",
19
19
  "iso-15924": "^3.2.0",
20
20
  "iso-3166": "^4.3.0"
@@ -23,17 +23,12 @@
23
23
  "@types/lodash": "^4.17.7",
24
24
  "@types/react": "^17",
25
25
  "@types/react-dom": "^17",
26
- "@typescript-eslint/eslint-plugin": "^6.14.0",
27
- "@typescript-eslint/parser": "^6.14.0",
28
26
  "@vitejs/plugin-react": "^4.2.1",
29
- "eslint": "^8.55.0",
30
- "eslint-plugin-react-hooks": "^4.6.0",
31
- "eslint-plugin-react-refresh": "^0.4.5",
32
27
  "typescript": "^5.2.2",
33
28
  "vite-plugin-dts": "^4.2.1"
34
29
  },
35
- "// We've tested with 18 and have no reason to believe it won't work with higher versions": "",
30
+ "// We've tested with 18.18 and have no reason to believe it won't work with higher versions": "",
36
31
  "engines": {
37
- "node": ">=18.0.0"
32
+ "node": ">=18.18"
38
33
  }
39
34
  }