@intlayer/types
Advanced tools
@@ -19,3 +19,6 @@ import { DeclaredLocales, LocalesValues } from "./module_augmentation.js"; | ||
| type Fill = boolean | string | Partial<Record<DeclaredLocales, boolean | string>>; | ||
| type LocalDictionaryId = `${Dictionary['key']}::${Dictionary['location']}::${Dictionary['filePath'] | Dictionary['id']}`; | ||
| type DictionaryId = string; | ||
| type DictionaryKey = string; | ||
| type DictionaryLocation = 'remote' | 'local' | 'plugin'; | ||
| type LocalDictionaryId = `${DictionaryKey}::${Dictionary['location']}::${Dictionary['filePath'] | DictionaryId}`; | ||
| type Dictionary<ContentType = undefined, FetchableNode = false> = { | ||
@@ -33,3 +36,3 @@ /** | ||
| */ | ||
| id?: string; | ||
| id?: DictionaryId; | ||
| /** | ||
@@ -67,3 +70,3 @@ * _Auto generated by the intlayer, do not modify it_ | ||
| */ | ||
| key: string; | ||
| key: DictionaryKey; | ||
| /** | ||
@@ -217,3 +220,3 @@ * The title of the dictionary. Helps to identify the dictionary in the editor, and the CMS. | ||
| */ | ||
| location?: 'remote' | 'local' | 'plugin'; | ||
| location?: DictionaryLocation; | ||
| /** | ||
@@ -297,3 +300,3 @@ * The content of the dictionary. | ||
| //#endregion | ||
| export { ContentNode, Dictionary, Fill, GetSubPath, LocalDictionaryId, TypedNode }; | ||
| export { ContentNode, Dictionary, DictionaryId, DictionaryKey, DictionaryLocation, Fill, GetSubPath, LocalDictionaryId, TypedNode }; | ||
| //# sourceMappingURL=dictionary.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../src/dictionary.ts"],"sourcesContent":[],"mappings":";;;;KAGK,QAAA;KAEA,aAAA;EAFA,QAAA,EAGO,QAHC,GAAA,GAGa,QAHb,EAAA;AAAA,CAAA;AAMI,UAAA,SAAS,CAAA,aAA+B,SAAA,CAAA,SAAA,aAAa,CAAA,CAAG;KAEpE,oBAEY,CAAA,UAAA,CAAA,GAAA,CAAA,IAAA,CAAA,EAAA,GAAA,EA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CF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAsCI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4EF,sCAEL,oBAAoB,aAAa,iBAAiB;;KAG5C,mBAAmB,uCAC3B,gBAAgB,IACd,WAAW,EAAE,IAAI,gBAEnB,gBAAgB,IACd,EAAE,KACF"} |
| import { Locale, locales_d_exports } from "./locales.js"; | ||
| import { DeclaredLocales, DictionaryKeys, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, LocalesValues, RequiredLocales, StrictModeLocaleMap } from "./module_augmentation.js"; | ||
| import { NodeType, TypedNodeModel, formatNodeType } from "./nodeType.js"; | ||
| import { ContentNode, Dictionary, Fill, GetSubPath, LocalDictionaryId, TypedNode } from "./dictionary.js"; | ||
| import { ContentNode, Dictionary, DictionaryId, DictionaryKey, DictionaryLocation, Fill, GetSubPath, LocalDictionaryId, TypedNode } from "./dictionary.js"; | ||
| import { MergedDictionaryOutput, MergedDictionaryResult, Plugin, UnmergedDictionaryOutput, UnmergedDictionaryResult } from "./plugin.js"; | ||
| import { AiConfig, BaseContentConfig, BaseDerivedConfig, BuildConfig, ContentConfig, CookiesAttributes, CustomIntlayerConfig, DictionaryConfig, EditorConfig, InternationalizationConfig, IntlayerConfig, LogConfig, LogFunctions, PatternsContentConfig, RoutingConfig, StorageAttributes, StrictMode } from "./config.js"; | ||
| import { ArrayNode, ConditionNode, EnumerationNode, FileNode, GenderNode, InsertionNode, KeyPath, MarkdownNode, NestedNode, ObjectNode, ReactNode, TranslationNode } from "./keyPath.js"; | ||
| export { AiConfig, ArrayNode, BaseContentConfig, BaseDerivedConfig, BuildConfig, ConditionNode, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryKeys, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, EditorConfig, EnumerationNode, FileNode, Fill, GenderNode, GetSubPath, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, type Locale, locales_d_exports as Locales, LocalesValues, LogConfig, LogFunctions, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NestedNode, NodeType, ObjectNode, PatternsContentConfig, Plugin, ReactNode, RequiredLocales, RoutingConfig, StorageAttributes, StrictMode, StrictModeLocaleMap, TranslationNode, TypedNode, TypedNodeModel, UnmergedDictionaryOutput, UnmergedDictionaryResult, formatNodeType }; | ||
| export { AiConfig, ArrayNode, BaseContentConfig, BaseDerivedConfig, BuildConfig, ConditionNode, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryId, DictionaryKey, DictionaryKeys, DictionaryLocation, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, EditorConfig, EnumerationNode, FileNode, Fill, GenderNode, GetSubPath, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, type Locale, locales_d_exports as Locales, LocalesValues, LogConfig, LogFunctions, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NestedNode, NodeType, ObjectNode, PatternsContentConfig, Plugin, ReactNode, RequiredLocales, RoutingConfig, StorageAttributes, StrictMode, StrictModeLocaleMap, TranslationNode, TypedNode, TypedNodeModel, UnmergedDictionaryOutput, UnmergedDictionaryResult, formatNodeType }; |
+10
-7
| { | ||
| "name": "@intlayer/types", | ||
| "version": "7.0.9-canary.0", | ||
| "version": "7.0.9-canary.1", | ||
| "private": false, | ||
@@ -73,2 +73,5 @@ "description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.", | ||
| "prepublish": "cp -f ../../../README.md ./README.md", | ||
| "publish": "bun publish --access public", | ||
| "publish:canary": "bun publish --tag canary --access public", | ||
| "publish:latest": "bun publish --tag latest --access public", | ||
| "test": "vitest run", | ||
@@ -79,10 +82,10 @@ "test:watch": "vitest", | ||
| "devDependencies": { | ||
| "@types/node": "24.10.0", | ||
| "@utils/ts-config": "7.0.9-canary.0", | ||
| "@utils/ts-config-types": "7.0.9-canary.0", | ||
| "@utils/tsdown-config": "7.0.9-canary.0", | ||
| "@types/node": "24.10.1", | ||
| "@utils/ts-config": "1.0.4", | ||
| "@utils/ts-config-types": "1.0.4", | ||
| "@utils/tsdown-config": "1.0.4", | ||
| "rimraf": "6.1.0", | ||
| "tsdown": "0.16.0", | ||
| "tsdown": "0.16.4", | ||
| "typescript": "5.9.3", | ||
| "vitest": "4.0.7" | ||
| "vitest": "4.0.8" | ||
| }, | ||
@@ -89,0 +92,0 @@ "engines": { |
+2
-1
@@ -174,4 +174,5 @@ <p align="center"> | ||
| <ul> | ||
| <li><a href="https://intlayer.org/doc/environment/nextjs" rel=''>Intlayer with Next.js 15</a> | ||
| <li><a href="https://intlayer.org/doc/environment/nextjs" rel=''>Intlayer with Next.js 16</a> | ||
| <ul> | ||
| <li><a href="https://intlayer.org/doc/environment/nextjs/15" rel=''>Next.js 15</a></li> | ||
| <li><a href="https://intlayer.org/doc/environment/nextjs/14" rel=''>Next.js 14 (App Router)</a></li> | ||
@@ -178,0 +179,0 @@ <li><a href="https://intlayer.org/doc/environment/nextjs/next-with-Page-Router" rel=''>Next.js Page Router</a></li> |
Network access
Supply chain riskThis module accesses the network.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
289390
0.21%4743
0.06%278
0.36%