@inlang/language-tag
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -5,3 +5,3 @@ import { type Static } from "@sinclair/typebox"; | ||
* | ||
* Contains only max 2 letter tags for now. Will be extended in the future. | ||
* // TODO: add (regex) validation | ||
* | ||
@@ -8,0 +8,0 @@ * @see https://www.ietf.org/rfc/bcp/bcp47.txt |
import { Type } from "@sinclair/typebox"; | ||
import { languageTagRegex } from "./internal_registry.js"; | ||
export const LanguageTag = Type.String({ pattern: languageTagRegex }); | ||
export const LanguageTag = Type.String(); |
{ | ||
"name": "@inlang/language-tag", | ||
"type": "module", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"license": "Apache-2.0", | ||
@@ -17,5 +17,5 @@ "publishConfig": { | ||
"scripts": { | ||
"build": "node ./buildTagRegistry.js && npx prettier ./src --write && tsc --build", | ||
"build": "tsc --build", | ||
"dev": "tsc --watch", | ||
"test": "tsc --noEmit", | ||
"test": "tsc --noEmit && vitest run --passWithNoTests", | ||
"lint": "eslint ./src --fix", | ||
@@ -30,4 +30,5 @@ "format": "prettier ./src --write", | ||
"tsd": "0.28.1", | ||
"typescript": "5.2.2" | ||
"typescript": "5.2.2", | ||
"vitest": "0.34.4" | ||
} | ||
} |
import { Type, type Static } from "@sinclair/typebox" | ||
import { languageTagRegex } from "./internal_registry.js" | ||
@@ -7,3 +6,3 @@ /** | ||
* | ||
* Contains only max 2 letter tags for now. Will be extended in the future. | ||
* // TODO: add (regex) validation | ||
* | ||
@@ -14,2 +13,2 @@ * @see https://www.ietf.org/rfc/bcp/bcp47.txt | ||
export type LanguageTag = Static<typeof LanguageTag> | ||
export const LanguageTag = Type.String({ pattern: languageTagRegex }) | ||
export const LanguageTag = Type.String() |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2216
3
10
27
1