is-language-code 5.1.3 → 5.2.1
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/CHANGELOG.md +42 -2
- package/LICENSE +1 -1
- package/README.md +3 -7
- package/dist/is-language-code.esm.js +2 -2
- package/dist/is-language-code.umd.js +2 -10
- package/package.json +19 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "is-language-code",
|
|
3
|
-
"version": "5.1
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Is given string a language code (as per IANA)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"check",
|
|
@@ -40,43 +40,39 @@
|
|
|
40
40
|
},
|
|
41
41
|
"types": "types/index.d.ts",
|
|
42
42
|
"scripts": {
|
|
43
|
-
"build": "node
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
|
|
43
|
+
"build": "node ../../ops/scripts/esbuild.js && npm run dts",
|
|
44
|
+
"coverage": "c8 uvu test",
|
|
45
|
+
"dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
|
|
47
46
|
"devtest": "c8 npm run unit && npm run examples && npm run lint",
|
|
48
|
-
"dts": "rollup -c &&
|
|
47
|
+
"dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
|
|
49
48
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
50
|
-
"lect": "node '../../ops/lect/lect.js'
|
|
51
|
-
"
|
|
52
|
-
"lint": "
|
|
49
|
+
"lect": "node '../../ops/lect/lect.js'",
|
|
50
|
+
"lect:check": "node '../../ops/lect/lect.js' --check",
|
|
51
|
+
"lint": "biome lint --error-on-warnings . && npm run typecheck",
|
|
52
|
+
"lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
|
|
53
53
|
"perf": "node perf/check.js",
|
|
54
54
|
"prep": "echo 'ready'",
|
|
55
|
-
"prettier": "
|
|
56
|
-
"prettier:format": "
|
|
57
|
-
"pretest": "npm run lect && npm run build",
|
|
55
|
+
"prettier": "biome format",
|
|
56
|
+
"prettier:format": "biome format --write .",
|
|
57
|
+
"pretest": "npm run lect:check && npm run build",
|
|
58
58
|
"test": "npm run devtest",
|
|
59
|
+
"typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
|
|
59
60
|
"unit": "uvu test"
|
|
60
61
|
},
|
|
61
|
-
"engines": {
|
|
62
|
-
"node": ">=14.18.0"
|
|
63
|
-
},
|
|
64
62
|
"c8": {
|
|
63
|
+
"all": true,
|
|
65
64
|
"check-coverage": true,
|
|
66
|
-
"exclude": [
|
|
67
|
-
|
|
68
|
-
],
|
|
65
|
+
"exclude": ["**/test/**/*.*"],
|
|
66
|
+
"include": ["dist/*.esm.js"],
|
|
69
67
|
"lines": 100
|
|
70
68
|
},
|
|
71
69
|
"lect": {
|
|
72
70
|
"licence": {
|
|
73
|
-
"extras": [
|
|
74
|
-
""
|
|
75
|
-
]
|
|
71
|
+
"extras": [""]
|
|
76
72
|
}
|
|
77
73
|
},
|
|
78
|
-
"
|
|
79
|
-
"
|
|
74
|
+
"engines": {
|
|
75
|
+
"node": ">=18.20.8"
|
|
80
76
|
},
|
|
81
77
|
"publishConfig": {
|
|
82
78
|
"registry": "https://registry.npmjs.org/"
|