@lingui/conf
Advanced tools
Comparing version 3.17.2 to 4.0.0-next.0
@@ -1,150 +0,3 @@ | ||
import type { GeneratorOptions } from "@babel/core" | ||
export declare type CatalogFormat = | ||
| "lingui" | ||
| "minimal" | ||
| "po" | ||
| "csv" | ||
| "po-gettext" | ||
export type CatalogFormatOptions = { | ||
origins?: boolean | ||
lineNumbers?: boolean | ||
} | ||
export declare type OrderBy = "messageId" | "origin" | ||
declare type CatalogConfig = { | ||
name?: string | ||
path: string | ||
include: string[] | ||
exclude?: string[] | ||
} | ||
export type LocaleObject = { | ||
[locale: string]: string[] | string | ||
} | ||
export type DefaultLocaleObject = { | ||
default: string | ||
} | ||
export declare type FallbackLocales = LocaleObject | DefaultLocaleObject | ||
declare type CatalogService = { | ||
name: string | ||
apiKey: string | ||
} | ||
declare type ExtractorType = { | ||
match(filename: string): boolean | ||
extract(filename: string, targetDir: string, options?: any): void | ||
} | ||
export declare type LinguiConfig = { | ||
catalogs: CatalogConfig[] | ||
compileNamespace: "es" | "cjs" | "ts" | string | ||
extractBabelOptions: Record<string, unknown> | ||
compilerBabelOptions: GeneratorOptions | ||
fallbackLocales: FallbackLocales | ||
format: CatalogFormat | ||
extractors?: ExtractorType[] | ||
prevFormat: CatalogFormat | ||
formatOptions: CatalogFormatOptions | ||
localeDir: string | ||
locales: string[] | ||
catalogsMergePath: string | ||
orderBy: OrderBy | ||
pseudoLocale: string | ||
rootDir: string | ||
runtimeConfigModule: | ||
| [source: string, identifier?: string] | ||
| { | ||
i18n?: [source: string, identifier?: string] | ||
Trans?: [source: string, identifier?: string] | ||
} | ||
sourceLocale: string | ||
service: CatalogService | ||
} | ||
export declare const defaultConfig: LinguiConfig | ||
export declare function getConfig({ | ||
cwd, | ||
configPath, | ||
skipValidation, | ||
}?: { | ||
cwd?: string | ||
configPath?: string | ||
skipValidation?: boolean | ||
}): LinguiConfig | ||
export declare function makeConfig( | ||
userConfig: Partial<LinguiConfig>, | ||
opts?: { | ||
skipValidation?: boolean | ||
} | ||
): LinguiConfig | ||
export declare const configValidation: { | ||
exampleConfig: { | ||
extractBabelOptions: { | ||
extends: string | ||
rootMode: string | ||
plugins: string[] | ||
presets: string[] | ||
} | ||
compilerBabelOptions: GeneratorOptions | ||
catalogs: CatalogConfig[] | ||
compileNamespace: "es" | "ts" | "cjs" | string | ||
fallbackLocales: FallbackLocales | ||
format: CatalogFormat | ||
formatOptions: CatalogFormatOptions | ||
locales: string[] | ||
orderBy: OrderBy | ||
pseudoLocale: string | ||
rootDir: string | ||
runtimeConfigModule: LinguiConfig["runtimeConfigModule"] | ||
sourceLocale: string | ||
service: CatalogService | ||
} | ||
deprecatedConfig: { | ||
fallbackLocale: ( | ||
config: LinguiConfig & DeprecatedFallbackLanguage | ||
) => string | ||
localeDir: (config: LinguiConfig & DeprecatedLocaleDir) => string | ||
srcPathDirs: (config: LinguiConfig & DeprecatedLocaleDir) => string | ||
srcPathIgnorePatterns: ( | ||
config: LinguiConfig & DeprecatedLocaleDir | ||
) => string | ||
} | ||
comment: string | ||
} | ||
export declare function replaceRootDir( | ||
config: LinguiConfig, | ||
rootDir: string | ||
): LinguiConfig | ||
/** | ||
* Replace fallbackLocale with fallbackLocales | ||
* | ||
* Released in lingui-conf 0.9 | ||
* Remove anytime after 4.x | ||
*/ | ||
declare type DeprecatedFallbackLanguage = { | ||
fallbackLocale: string | null | ||
} | ||
export declare function fallbackLanguageMigration( | ||
config: LinguiConfig & DeprecatedFallbackLanguage | ||
): LinguiConfig | ||
/** | ||
* Replace localeDir, srcPathDirs and srcPathIgnorePatterns with catalogs | ||
* | ||
* Released in @lingui/conf 3.0 | ||
* Remove anytime after 4.x | ||
*/ | ||
declare type DeprecatedLocaleDir = { | ||
localeDir: string | ||
srcPathDirs: string[] | ||
srcPathIgnorePatterns: string[] | ||
} | ||
export declare function catalogMigration( | ||
config: LinguiConfig & DeprecatedLocaleDir | ||
): LinguiConfig | ||
export {} | ||
//# sourceMappingURL=index.d.ts.map | ||
export { makeConfig } from "./makeConfig"; | ||
export { getConfig } from "./getConfig"; | ||
export * from "./types"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.catalogMigration = catalogMigration; | ||
exports.defaultConfig = exports.configValidation = void 0; | ||
exports.fallbackLanguageMigration = fallbackLanguageMigration; | ||
exports.getConfig = getConfig; | ||
exports.makeConfig = makeConfig; | ||
exports.replaceRootDir = replaceRootDir; | ||
var _path = _interopRequireDefault(require("path")); | ||
var _fs = _interopRequireDefault(require("fs")); | ||
var _chalk = _interopRequireDefault(require("chalk")); | ||
var _cosmiconfig = require("cosmiconfig"); | ||
var _jestValidate = require("jest-validate"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// Enforce posix path delimiters internally | ||
const pathJoinPosix = (...values) => _path.default | ||
// normalize double slashes | ||
.join(...values) | ||
// convert platform specific path.sep to posix | ||
.split(_path.default.sep).join("/"); | ||
const defaultConfig = { | ||
catalogs: [{ | ||
path: pathJoinPosix("<rootDir>", "locale", "{locale}", "messages"), | ||
include: ["<rootDir>"], | ||
exclude: ["*/node_modules/*"] | ||
}], | ||
catalogsMergePath: "", | ||
compileNamespace: "cjs", | ||
compilerBabelOptions: { | ||
minified: true, | ||
jsescOption: { | ||
minimal: true | ||
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]; } }; | ||
} | ||
}, | ||
extractBabelOptions: { | ||
plugins: [], | ||
presets: [] | ||
}, | ||
fallbackLocales: {}, | ||
format: "po", | ||
formatOptions: { | ||
origins: true, | ||
lineNumbers: true | ||
}, | ||
locales: [], | ||
orderBy: "messageId", | ||
pseudoLocale: "", | ||
rootDir: ".", | ||
runtimeConfigModule: ["@lingui/core", "i18n"], | ||
sourceLocale: "", | ||
service: { | ||
name: "", | ||
apiKey: "" | ||
} | ||
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); | ||
}; | ||
exports.defaultConfig = defaultConfig; | ||
function configExists(path) { | ||
return path && _fs.default.existsSync(path); | ||
} | ||
function TypeScriptLoader() { | ||
let loaderInstance; | ||
return (filepath, content) => { | ||
if (!loaderInstance) { | ||
const { | ||
TypeScriptLoader | ||
} = require("cosmiconfig-typescript-loader"); | ||
loaderInstance = TypeScriptLoader(); | ||
} | ||
return loaderInstance(filepath, content); | ||
}; | ||
} | ||
function getConfig({ | ||
cwd, | ||
configPath, | ||
skipValidation = false | ||
} = {}) { | ||
const defaultRootDir = cwd || process.cwd(); | ||
const moduleName = "lingui"; | ||
const configExplorer = (0, _cosmiconfig.cosmiconfigSync)(moduleName, { | ||
searchPlaces: ["package.json", `.${moduleName}rc`, `.${moduleName}rc.json`, `.${moduleName}rc.yaml`, `.${moduleName}rc.yml`, `.${moduleName}rc.ts`, `.${moduleName}rc.js`, `${moduleName}.config.ts`, `${moduleName}.config.js`], | ||
loaders: { | ||
".ts": TypeScriptLoader() | ||
} | ||
}); | ||
const result = configExists(configPath) ? configExplorer.load(configPath) : configExplorer.search(defaultRootDir); | ||
const userConfig = result ? result.config : {}; | ||
return makeConfig({ | ||
rootDir: result ? _path.default.dirname(result.filepath) : defaultRootDir, | ||
...userConfig | ||
}, { | ||
skipValidation | ||
}); | ||
} | ||
function makeConfig(userConfig, opts = {}) { | ||
const config = { | ||
...defaultConfig, | ||
...userConfig | ||
}; | ||
if (!opts.skipValidation) { | ||
(0, _jestValidate.validate)(config, configValidation); | ||
return pipe( | ||
// List config migrations from oldest to newest | ||
fallbackLanguageMigration, catalogMigration, | ||
// Custom validation | ||
validateLocales, | ||
// `replaceRootDir` should always be the last | ||
config => replaceRootDir(config, config.rootDir))(config); | ||
} else { | ||
return replaceRootDir(config, config.rootDir); | ||
} | ||
} | ||
const exampleConfig = { | ||
...defaultConfig, | ||
extractors: (0, _jestValidate.multipleValidOptions)([], ["babel"], [{ | ||
match: fileName => false, | ||
extract: (filename, targetDir, options) => {} | ||
}]), | ||
runtimeConfigModule: (0, _jestValidate.multipleValidOptions)({ | ||
i18n: ["@lingui/core", "i18n"], | ||
Trans: ["@lingui/react", "Trans"] | ||
}, ["@lingui/core", "i18n"]), | ||
fallbackLocales: (0, _jestValidate.multipleValidOptions)({}, { | ||
"en-US": "en" | ||
}, { | ||
"en-US": ["en"] | ||
}, { | ||
default: "en" | ||
}, false), | ||
extractBabelOptions: { | ||
extends: "babelconfig.js", | ||
rootMode: "rootmode", | ||
plugins: ["plugin"], | ||
presets: ["preset"], | ||
targets: (0, _jestValidate.multipleValidOptions)({}, "> 0.5%", ["> 0.5%", "not dead"], undefined), | ||
assumptions: (0, _jestValidate.multipleValidOptions)({}, undefined), | ||
browserslistConfigFile: (0, _jestValidate.multipleValidOptions)(true, undefined), | ||
browserslistEnv: (0, _jestValidate.multipleValidOptions)(".browserslistrc", undefined) | ||
} | ||
}; | ||
const deprecatedConfig = { | ||
fallbackLocale: config => ` Option ${_chalk.default.bold("fallbackLocale")} was replaced by ${_chalk.default.bold("fallbackLocales")} | ||
You can find more information here: https://github.com/lingui/js-lingui/issues/791 | ||
@lingui/cli now treats your current configuration as: | ||
{ | ||
${_chalk.default.bold('"fallbackLocales"')}: { | ||
default: ${_chalk.default.bold(`"${config.fallbackLocale}"`)} | ||
} | ||
} | ||
Please update your configuration. | ||
`, | ||
localeDir: config => ` Option ${_chalk.default.bold("localeDir")} is deprecated. Configure source paths using ${_chalk.default.bold("catalogs")} instead. | ||
@lingui/cli now treats your current configuration as: | ||
{ | ||
${_chalk.default.bold('"catalogs"')}: ${JSON.stringify(catalogMigration(config).catalogs, null, 2)} | ||
} | ||
Please update your configuration. | ||
`, | ||
srcPathDirs: config => ` Option ${_chalk.default.bold("srcPathDirs")} is deprecated. Configure source paths using ${_chalk.default.bold("catalogs")} instead. | ||
@lingui/cli now treats your current configuration as: | ||
{ | ||
${_chalk.default.bold('"catalogs"')}: ${JSON.stringify(catalogMigration(config).catalogs, null, 2)} | ||
} | ||
Please update your configuration. | ||
`, | ||
srcPathIgnorePatterns: config => ` Option ${_chalk.default.bold("srcPathIgnorePatterns")} is deprecated. Configure excluded source paths using ${_chalk.default.bold("catalogs")} instead. | ||
@lingui/cli now treats your current configuration as: | ||
{ | ||
${_chalk.default.bold('"catalogs"')}: ${JSON.stringify(catalogMigration(config).catalogs, null, 2)} | ||
} | ||
Please update your configuration. | ||
` | ||
}; | ||
const configValidation = { | ||
exampleConfig, | ||
deprecatedConfig, | ||
comment: "Documentation: https://lingui.dev/ref/conf" | ||
}; | ||
exports.configValidation = configValidation; | ||
function validateLocales(config) { | ||
if (!Array.isArray(config.locales) || !config.locales.length) { | ||
console.error("No locales defined!\n"); | ||
console.error(`Add ${_chalk.default.yellow("'locales'")} to your configuration. See ${_chalk.default.underline("https://lingui.dev/ref/conf#locales")}`); | ||
} | ||
return config; | ||
} | ||
function replaceRootDir(config, rootDir) { | ||
return function replaceDeep(value, rootDir) { | ||
const replace = s => s.replace("<rootDir>", rootDir); | ||
if (value == null) { | ||
return value; | ||
} else if (typeof value === "string") { | ||
return replace(value); | ||
} else if (Array.isArray(value)) { | ||
return value.map(item => replaceDeep(item, rootDir)); | ||
} else if (typeof value === "object") { | ||
Object.keys(value).forEach(key => { | ||
const newKey = replaceDeep(key, rootDir); | ||
value[newKey] = replaceDeep(value[key], rootDir); | ||
if (key !== newKey) delete value[key]; | ||
}); | ||
} | ||
return value; | ||
}(config, rootDir); | ||
} | ||
/** | ||
* Replace fallbackLocale, by the new standard fallbackLocales | ||
* - https://github.com/lingui/js-lingui/issues/791 | ||
* - Remove anytime after 4.x | ||
*/ | ||
function fallbackLanguageMigration(config) { | ||
const { | ||
fallbackLocale, | ||
fallbackLocales | ||
} = config; | ||
if (fallbackLocales === false) return { | ||
...config, | ||
fallbackLocales: null | ||
}; | ||
const DEFAULT_FALLBACK = (fallbackLocales === null || fallbackLocales === void 0 ? void 0 : fallbackLocales.default) || fallbackLocale; | ||
if (DEFAULT_FALLBACK) { | ||
if (!config.fallbackLocales) config.fallbackLocales = {}; | ||
config.fallbackLocales.default = DEFAULT_FALLBACK; | ||
} | ||
if (config.fallbackLocales !== false && !config.fallbackLocales.default) { | ||
config.locales.forEach(locale => { | ||
const fl = getCldrParentLocale(locale.toLowerCase()); | ||
if (fl && !config.fallbackLocales[locale]) { | ||
config.fallbackLocales = { | ||
...config.fallbackLocales, | ||
[locale]: fl | ||
}; | ||
} | ||
}); | ||
} | ||
return config; | ||
} | ||
function getCldrParentLocale(sourceLocale) { | ||
return { | ||
"en-ag": "en", | ||
"en-ai": "en", | ||
"en-au": "en", | ||
"en-bb": "en", | ||
"en-bm": "en", | ||
"en-bs": "en", | ||
"en-bw": "en", | ||
"en-bz": "en", | ||
"en-ca": "en", | ||
"en-cc": "en", | ||
"en-ck": "en", | ||
"en-cm": "en", | ||
"en-cx": "en", | ||
"en-cy": "en", | ||
"en-dg": "en", | ||
"en-dm": "en", | ||
"en-er": "en", | ||
"en-fj": "en", | ||
"en-fk": "en", | ||
"en-fm": "en", | ||
"en-gb": "en", | ||
"en-gd": "en", | ||
"en-gg": "en", | ||
"en-gh": "en", | ||
"en-gi": "en", | ||
"en-gm": "en", | ||
"en-gy": "en", | ||
"en-hk": "en", | ||
"en-ie": "en", | ||
"en-il": "en", | ||
"en-im": "en", | ||
"en-in": "en", | ||
"en-io": "en", | ||
"en-je": "en", | ||
"en-jm": "en", | ||
"en-ke": "en", | ||
"en-ki": "en", | ||
"en-kn": "en", | ||
"en-ky": "en", | ||
"en-lc": "en", | ||
"en-lr": "en", | ||
"en-ls": "en", | ||
"en-mg": "en", | ||
"en-mo": "en", | ||
"en-ms": "en", | ||
"en-mt": "en", | ||
"en-mu": "en", | ||
"en-mw": "en", | ||
"en-my": "en", | ||
"en-na": "en", | ||
"en-nf": "en", | ||
"en-ng": "en", | ||
"en-nr": "en", | ||
"en-nu": "en", | ||
"en-nz": "en", | ||
"en-pg": "en", | ||
"en-ph": "en", | ||
"en-pk": "en", | ||
"en-pn": "en", | ||
"en-pw": "en", | ||
"en-rw": "en", | ||
"en-sb": "en", | ||
"en-sc": "en", | ||
"en-sd": "en", | ||
"en-sg": "en", | ||
"en-sh": "en", | ||
"en-sl": "en", | ||
"en-ss": "en", | ||
"en-sx": "en", | ||
"en-sz": "en", | ||
"en-tc": "en", | ||
"en-tk": "en", | ||
"en-to": "en", | ||
"en-tt": "en", | ||
"en-tv": "en", | ||
"en-tz": "en", | ||
"en-ug": "en", | ||
"en-us": "en", | ||
"en-vc": "en", | ||
"en-vg": "en", | ||
"en-vu": "en", | ||
"en-ws": "en", | ||
"en-za": "en", | ||
"en-zm": "en", | ||
"en-zw": "en", | ||
"en-at": "en", | ||
"en-be": "en", | ||
"en-ch": "en", | ||
"en-de": "en", | ||
"en-dk": "en", | ||
"en-fi": "en", | ||
"en-nl": "en", | ||
"en-se": "en", | ||
"en-si": "en", | ||
"es-ar": "es", | ||
"es-bo": "es", | ||
"es-br": "es", | ||
"es-bz": "es", | ||
"es-cl": "es", | ||
"es-co": "es", | ||
"es-cr": "es", | ||
"es-cu": "es", | ||
"es-do": "es", | ||
"es-ec": "es", | ||
"es-es": "es", | ||
"es-gt": "es", | ||
"es-hn": "es", | ||
"es-mx": "es", | ||
"es-ni": "es", | ||
"es-pa": "es", | ||
"es-pe": "es", | ||
"es-pr": "es", | ||
"es-py": "es", | ||
"es-sv": "es", | ||
"es-us": "es", | ||
"es-uy": "es", | ||
"es-ve": "es", | ||
"pt-ao": "pt", | ||
"pt-ch": "pt", | ||
"pt-cv": "pt", | ||
"pt-fr": "pt", | ||
"pt-gq": "pt", | ||
"pt-gw": "pt", | ||
"pt-lu": "pt", | ||
"pt-mo": "pt", | ||
"pt-mz": "pt", | ||
"pt-pt": "pt", | ||
"pt-st": "pt", | ||
"pt-tl": "pt", | ||
"az-arab": "az", | ||
"az-cyrl": "az", | ||
"blt-latn": "blt", | ||
"bm-nkoo": "bm", | ||
"bs-cyrl": "bs", | ||
"byn-latn": "byn", | ||
"cu-glag": "cu", | ||
"dje-arab": "dje", | ||
"dyo-arab": "dyo", | ||
"en-dsrt": "en", | ||
"en-shaw": "en", | ||
"ff-adlm": "ff", | ||
"ff-arab": "ff", | ||
"ha-arab": "ha", | ||
"hi-latn": "hi", | ||
"iu-latn": "iu", | ||
"kk-arab": "kk", | ||
"ks-deva": "ks", | ||
"ku-arab": "ku", | ||
"ky-arab": "ky", | ||
"ky-latn": "ky", | ||
"ml-arab": "ml", | ||
"mn-mong": "mn", | ||
"mni-mtei": "mni", | ||
"ms-arab": "ms", | ||
"pa-arab": "pa", | ||
"sat-deva": "sat", | ||
"sd-deva": "sd", | ||
"sd-khoj": "sd", | ||
"sd-sind": "sd", | ||
"shi-latn": "shi", | ||
"so-arab": "so", | ||
"sr-latn": "sr", | ||
"sw-arab": "sw", | ||
"tg-arab": "tg", | ||
"ug-cyrl": "ug", | ||
"uz-arab": "uz", | ||
"uz-cyrl": "uz", | ||
"vai-latn": "vai", | ||
"wo-arab": "wo", | ||
"yo-arab": "yo", | ||
"yue-hans": "yue", | ||
"zh-hant": "zh", | ||
"zh-hant-hk": "zh", | ||
"zh-hant-mo": "zh-hant-hk" | ||
}[sourceLocale]; | ||
} | ||
/** | ||
* Replace localeDir, srcPathDirs and srcPathIgnorePatterns with catalogs | ||
* | ||
* Released in @lingui/conf 3.0 | ||
* Remove anytime after 4.x | ||
*/ | ||
function catalogMigration(config) { | ||
let { | ||
localeDir, | ||
srcPathDirs, | ||
srcPathIgnorePatterns, | ||
...newConfig | ||
} = config; | ||
if (localeDir || srcPathDirs || srcPathIgnorePatterns) { | ||
// Replace missing values with default ones | ||
if (localeDir === undefined) localeDir = pathJoinPosix("<rootDir>", "locale", "{locale}", "messages"); | ||
if (srcPathDirs === undefined) srcPathDirs = ["<rootDir>"]; | ||
if (srcPathIgnorePatterns === undefined) srcPathIgnorePatterns = ["**/node_modules/**"]; | ||
let newLocaleDir = localeDir.split(_path.default.sep).join("/"); | ||
if (newLocaleDir.slice(-1) !== _path.default.sep) { | ||
newLocaleDir += "/"; | ||
} | ||
if (!Array.isArray(newConfig.catalogs)) { | ||
newConfig.catalogs = []; | ||
} | ||
newConfig.catalogs.push({ | ||
path: pathJoinPosix(newLocaleDir, "{locale}", "messages"), | ||
include: srcPathDirs, | ||
exclude: srcPathIgnorePatterns | ||
}); | ||
} | ||
return newConfig; | ||
} | ||
const pipe = (...functions) => args => functions.reduce((arg, fn) => fn(arg), args); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getConfig = exports.makeConfig = void 0; | ||
var makeConfig_1 = require("./makeConfig"); | ||
Object.defineProperty(exports, "makeConfig", { enumerable: true, get: function () { return makeConfig_1.makeConfig; } }); | ||
var getConfig_1 = require("./getConfig"); | ||
Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return getConfig_1.getConfig; } }); | ||
__exportStar(require("./types"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@lingui/conf", | ||
"version": "3.17.2", | ||
"version": "4.0.0-next.0", | ||
"sideEffects": false, | ||
@@ -18,11 +18,16 @@ "description": "Get lingui configuration from package.json", | ||
"main": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=16.0.0" | ||
}, | ||
"scripts": { | ||
"build": "rimraf ./build && tsc" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "7.20.12", | ||
"@babel/runtime": "^7.20.13", | ||
"chalk": "^4.1.0", | ||
"cosmiconfig": "^8.0.0", | ||
"cosmiconfig-typescript-loader": "^4.3.0", | ||
"jest-validate": "^26.5.2", | ||
"jest-validate": "^29.4.3", | ||
"jiti": "^1.17.1", | ||
"lodash.get": "^4.4.2" | ||
@@ -33,21 +38,8 @@ }, | ||
"README.md", | ||
"index.js", | ||
"index.d.ts" | ||
"/build" | ||
], | ||
"devDependencies": { | ||
"ts-node": "^10.9.1" | ||
"@lingui/jest-mocks": "^3.0.3" | ||
}, | ||
"peerDependencies": { | ||
"ts-node": ">=10", | ||
"typescript": ">=4" | ||
}, | ||
"peerDependenciesMeta": { | ||
"ts-node": { | ||
"optional": true | ||
}, | ||
"typescript": { | ||
"optional": true | ||
} | ||
}, | ||
"gitHead": "31dcab5a9a8f88bfa8b3a2c7cd12aa2d908a1d80" | ||
"gitHead": "637f5cf6beda9d4ebce4e15cd9fdaa23e404b660" | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7
28
35024
594
2
3
1
+ Added@babel/core@7.20.12
+ Addedjiti@^1.17.1
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/compat-data@7.24.7(transitive)
+ Added@babel/core@7.20.12(transitive)
+ Added@babel/generator@7.24.7(transitive)
+ Added@babel/helper-compilation-targets@7.24.7(transitive)
+ Added@babel/helper-environment-visitor@7.24.7(transitive)
+ Added@babel/helper-function-name@7.24.7(transitive)
+ Added@babel/helper-hoist-variables@7.24.7(transitive)
+ Added@babel/helper-module-imports@7.24.7(transitive)
+ Added@babel/helper-module-transforms@7.24.7(transitive)
+ Added@babel/helper-simple-access@7.24.7(transitive)
+ Added@babel/helper-split-export-declaration@7.24.7(transitive)
+ Added@babel/helper-string-parser@7.24.7(transitive)
+ Added@babel/helper-validator-option@7.24.7(transitive)
+ Added@babel/helpers@7.24.7(transitive)
+ Added@babel/parser@7.24.7(transitive)
+ Added@babel/template@7.24.7(transitive)
+ Added@babel/traverse@7.24.7(transitive)
+ Added@babel/types@7.24.7(transitive)
+ Added@jest/schemas@29.6.3(transitive)
+ Added@jest/types@29.6.3(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@sinclair/typebox@0.27.8(transitive)
+ Added@types/yargs@17.0.32(transitive)
+ Addedansi-styles@5.2.0(transitive)
+ Addedbrowserslist@4.23.1(transitive)
+ Addedcaniuse-lite@1.0.30001640(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addeddebug@4.3.5(transitive)
+ Addedelectron-to-chromium@1.4.816(transitive)
+ Addedescalade@3.1.2(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedjest-get-type@29.6.3(transitive)
+ Addedjest-validate@29.7.0(transitive)
+ Addedjiti@1.21.6(transitive)
+ Addedjsesc@2.5.2(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedms@2.1.2(transitive)
+ Addednode-releases@2.0.14(transitive)
+ Addedpretty-format@29.7.0(transitive)
+ Addedreact-is@18.3.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedto-fast-properties@2.0.0(transitive)
+ Addedupdate-browserslist-db@1.1.0(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedcosmiconfig-typescript-loader@^4.3.0
- Removed@cspotcode/source-map-support@0.8.1(transitive)
- Removed@jest/types@26.6.2(transitive)
- Removed@jridgewell/trace-mapping@0.3.9(transitive)
- Removed@tsconfig/node10@1.0.11(transitive)
- Removed@tsconfig/node12@1.0.11(transitive)
- Removed@tsconfig/node14@1.0.3(transitive)
- Removed@tsconfig/node16@1.0.4(transitive)
- Removed@types/yargs@15.0.19(transitive)
- Removedacorn@8.12.1(transitive)
- Removedacorn-walk@8.3.3(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedarg@4.1.3(transitive)
- Removedcosmiconfig-typescript-loader@4.4.0(transitive)
- Removedcreate-require@1.1.1(transitive)
- Removeddiff@4.0.2(transitive)
- Removedjest-get-type@26.3.0(transitive)
- Removedjest-validate@26.6.2(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedpretty-format@26.6.2(transitive)
- Removedreact-is@17.0.2(transitive)
- Removedts-node@10.9.2(transitive)
- Removedtypescript@5.5.3(transitive)
- Removedv8-compile-cache-lib@3.0.1(transitive)
- Removedyn@3.1.1(transitive)
Updatedjest-validate@^29.4.3