is-language-code 4.0.10 → 4.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-language-code",
3
- "version": "4.0.10",
3
+ "version": "4.0.13",
4
4
  "description": "Is given string a language code (as per IANA)",
5
5
  "keywords": [
6
6
  "check",
@@ -41,15 +41,18 @@
41
41
  "scripts": {
42
42
  "build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
43
43
  "dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
44
- "dts": "rollup -c",
44
+ "devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
45
+ "dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
45
46
  "examples": "node '../../ops/scripts/run-examples.js'",
46
- "lect": "node '../../ops/lect/lect.js'",
47
+ "lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
47
48
  "letspublish": "yarn publish || :",
48
49
  "lint": "eslint . --fix",
49
50
  "perf": "node perf/check.js",
50
51
  "prepare": "echo 'ready'",
52
+ "prettier": "prettier",
53
+ "prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
51
54
  "pretest": "yarn run lect && yarn run build",
52
- "test": "c8 yarn run unit && yarn run examples && yarn run lint",
55
+ "test": "yarn run devtest",
53
56
  "unit": "uvu test"
54
57
  },
55
58
  "engines": {
package/types/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare const version: string;
2
2
  interface Res {
3
- res: boolean;
4
- message: string | null;
3
+ res: boolean;
4
+ message: string | null;
5
5
  }
6
6
  declare function isLangCode(str: string): Res;
7
7