New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@inlang/language-tag

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inlang/language-tag - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

dist/interface.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc