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

@logto/language-kit

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logto/language-kit - npm Package Compare versions

Comparing version 1.0.0-beta.26 to 1.0.0-beta.28

lib/const.cjs

5

lib/const.js

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.languages = void 0;
exports.languages = Object.freeze({
export const languages = Object.freeze({
'af-ZA': 'Afrikaans',

@@ -6,0 +3,0 @@ 'am-ET': 'አማርኛ',

6

lib/index.d.ts

@@ -1,3 +0,3 @@

export * from './const';
export * from './type';
export * from './utility';
export * from './const.js';
export * from './type.js';
export * from './utility.js';

@@ -1,19 +0,3 @@

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./const"), exports);
__exportStar(require("./type"), exports);
__exportStar(require("./utility"), exports);
export * from './const.js';
export * from './type.js';
export * from './utility.js';

@@ -1,2 +0,2 @@

import type { languages } from './const';
import type { languages } from './const.js';
export declare type LanguageTag = keyof typeof languages;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
import { z } from 'zod';
import type { LanguageTag } from './type';
import type { LanguageTag } from './type.js';
export declare const isLanguageTag: (value: unknown) => value is "af-ZA" | "am-ET" | "ar-AR" | "as-IN" | "az-AZ" | "be-BY" | "bg-BG" | "bn-IN" | "br-FR" | "bs-BA" | "ca-ES" | "cb-IQ" | "co-FR" | "cs-CZ" | "cx-PH" | "cy-GB" | "da-DK" | "de" | "de-DE" | "el-GR" | "en" | "en-GB" | "en-US" | "eo-EO" | "es" | "es-ES" | "es-419" | "et-EE" | "eu-ES" | "fa-IR" | "ff-NG" | "fi-FI" | "fo-FO" | "fr" | "fr-CA" | "fr-FR" | "fy-NL" | "ga-IE" | "gl-ES" | "gn-PY" | "gu-IN" | "ha-NG" | "he-IL" | "hi-IN" | "hr-HR" | "ht-HT" | "hu-HU" | "hy-AM" | "id-ID" | "ik-US" | "is-IS" | "it" | "it-IT" | "iu-CA" | "ja" | "ja-JP" | "ja-KS" | "jv-ID" | "ka-GE" | "kk-KZ" | "km-KH" | "kn-IN" | "ko" | "ko-KR" | "ku-TR" | "ky-KG" | "lo-LA" | "lt-LT" | "lv-LV" | "mg-MG" | "mk-MK" | "ml-IN" | "mn-MN" | "mr-IN" | "ms-MY" | "mt-MT" | "my-MM" | "nb-NO" | "ne-NP" | "nl-BE" | "nl-NL" | "nn-NO" | "or-IN" | "pa-IN" | "pl-PL" | "ps-AF" | "pt" | "pt-BR" | "pt-PT" | "ro-RO" | "ru" | "ru-RU" | "rw-RW" | "sc-IT" | "si-LK" | "sk-SK" | "sl-SI" | "sn-ZW" | "sq-AL" | "sr-RS" | "sv-SE" | "sw-KE" | "sy-SY" | "sz-PL" | "ta-IN" | "te-IN" | "tg-TJ" | "th-TH" | "tl-PH" | "tr" | "tr-TR" | "tt-RU" | "tz-MA" | "uk-UA" | "ur-PK" | "uz-UZ" | "vi-VN" | "zh" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-TW" | "zz-TR";
export declare const languageTagGuard: z.ZodType<LanguageTag>;

@@ -1,10 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.languageTagGuard = exports.isLanguageTag = void 0;
const zod_1 = require("zod");
const const_1 = require("./const");
const isLanguageTag = (value) => typeof value === 'string' && value in const_1.languages;
exports.isLanguageTag = isLanguageTag;
exports.languageTagGuard = zod_1.z
import { z } from 'zod';
import { languages } from './const.js';
export const isLanguageTag = (value) => typeof value === 'string' && value in languages;
export const languageTagGuard = z
.any()
.refine((value) => (0, exports.isLanguageTag)(value));
.refine((value) => isLanguageTag(value));
{
"name": "@logto/language-kit",
"version": "1.0.0-beta.26",
"version": "1.0.0-beta.28",
"author": "Silverhand Inc. <contact@silverhand.io>",

@@ -11,4 +11,5 @@ "homepage": "https://github.com/logto-io/toolkit#readme",

"license": "MIT",
"type": "module",
"source": "./src/index.ts",
"main": "./lib/index.js",
"main": "./lib/index.cjs",
"exports": "./lib/index.js",

@@ -21,3 +22,3 @@ "types": "./lib/index.d.ts",

"precommit": "lint-staged",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
"build": "rm -rf lib/ && rollup -c && tsc -p tsconfig.build.json",
"lint": "eslint --ext .ts src",

@@ -37,2 +38,3 @@ "lint:report": "pnpm lint --format json --output-file report.json",

"@jest/types": "^29.0.3",
"@rollup/plugin-typescript": "^10.0.1",
"@silverhand/eslint-config": "1.3.0",

@@ -46,3 +48,5 @@ "@silverhand/ts-config": "1.2.1",

"prettier": "^2.7.1",
"rollup": "^3.6.0",
"ts-jest": "^29.0.1",
"tslib": "^2.4.1",
"typescript": "^4.7.4",

@@ -58,3 +62,3 @@ "zod": "^3.19.1"

},
"gitHead": "2f9b9a98e3b3e28fc54ee64684bb9156a83d3c3b"
"gitHead": "86d65c492079ff1209324355cdc2cf5de638cbc5"
}
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