@intlayer/chokidar 7.5.11 → 7.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +2 -0
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/init/index.cjs +1 -1
- package/dist/cjs/init/index.cjs.map +1 -1
- package/dist/cjs/utils/buildFilesList.cjs.map +1 -1
- package/dist/cjs/utils/getComponentTransformPattern.cjs +4 -2
- package/dist/cjs/utils/getComponentTransformPattern.cjs.map +1 -1
- package/dist/cjs/utils/getFormatFromExtension.cjs +3 -0
- package/dist/cjs/utils/getFormatFromExtension.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/detectFormatCommand.cjs +21 -17
- package/dist/cjs/writeContentDeclaration/detectFormatCommand.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/index.cjs +2 -0
- package/dist/cjs/writeContentDeclaration/transformJSONFile.cjs +77 -0
- package/dist/cjs/writeContentDeclaration/transformJSONFile.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +10 -0
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +2 -0
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/init/index.mjs +1 -1
- package/dist/esm/init/index.mjs.map +1 -1
- package/dist/esm/utils/buildFilesList.mjs.map +1 -1
- package/dist/esm/utils/getComponentTransformPattern.mjs +4 -2
- package/dist/esm/utils/getComponentTransformPattern.mjs.map +1 -1
- package/dist/esm/utils/getFormatFromExtension.mjs +3 -0
- package/dist/esm/utils/getFormatFromExtension.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/detectFormatCommand.mjs +21 -17
- package/dist/esm/writeContentDeclaration/detectFormatCommand.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/index.mjs +2 -1
- package/dist/esm/writeContentDeclaration/transformJSONFile.mjs +76 -0
- package/dist/esm/writeContentDeclaration/transformJSONFile.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +11 -1
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +1 -1
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
- package/dist/types/formatDictionary.d.ts +15 -15
- package/dist/types/index.d.ts +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -2
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
- package/dist/types/utils/buildFilesList.d.ts.map +1 -1
- package/dist/types/utils/getComponentTransformPattern.d.ts.map +1 -1
- package/dist/types/utils/getFormatFromExtension.d.ts +2 -2
- package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/detectFormatCommand.d.ts +1 -1
- package/dist/types/writeContentDeclaration/detectFormatCommand.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/index.d.ts +2 -1
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts +7 -0
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types0 from "@intlayer/types";
|
|
2
2
|
import { Dictionary } from "@intlayer/types";
|
|
3
3
|
import * as _intlayer_core_messageFormat0 from "@intlayer/core/messageFormat";
|
|
4
4
|
|
|
@@ -9,45 +9,45 @@ declare const formatDictionaryOutput: (dictionary: Dictionary) => Dictionary | {
|
|
|
9
9
|
format: string;
|
|
10
10
|
content: _intlayer_core_messageFormat0.JsonValue;
|
|
11
11
|
$schema?: string;
|
|
12
|
-
id?:
|
|
12
|
+
id?: _intlayer_types0.DictionaryId;
|
|
13
13
|
projectIds?: string[];
|
|
14
|
-
localId?:
|
|
15
|
-
localIds?:
|
|
16
|
-
key:
|
|
14
|
+
localId?: _intlayer_types0.LocalDictionaryId;
|
|
15
|
+
localIds?: _intlayer_types0.LocalDictionaryId[];
|
|
16
|
+
key: _intlayer_types0.DictionaryKey;
|
|
17
17
|
title?: string;
|
|
18
18
|
description?: string;
|
|
19
19
|
versions?: string[];
|
|
20
20
|
version?: string;
|
|
21
21
|
filePath?: string;
|
|
22
22
|
tags?: string[];
|
|
23
|
-
locale?:
|
|
24
|
-
fill?:
|
|
23
|
+
locale?: _intlayer_types0.LocalesValues;
|
|
24
|
+
fill?: _intlayer_types0.Fill;
|
|
25
25
|
filled?: true;
|
|
26
26
|
priority?: number;
|
|
27
27
|
live?: boolean;
|
|
28
|
-
location?:
|
|
28
|
+
location?: _intlayer_types0.DictionaryLocation;
|
|
29
29
|
};
|
|
30
30
|
declare const formatDictionariesOutput: (dictionaries: Dictionary[]) => (Dictionary | {
|
|
31
31
|
format: string;
|
|
32
32
|
content: _intlayer_core_messageFormat0.JsonValue;
|
|
33
33
|
$schema?: string;
|
|
34
|
-
id?:
|
|
34
|
+
id?: _intlayer_types0.DictionaryId;
|
|
35
35
|
projectIds?: string[];
|
|
36
|
-
localId?:
|
|
37
|
-
localIds?:
|
|
38
|
-
key:
|
|
36
|
+
localId?: _intlayer_types0.LocalDictionaryId;
|
|
37
|
+
localIds?: _intlayer_types0.LocalDictionaryId[];
|
|
38
|
+
key: _intlayer_types0.DictionaryKey;
|
|
39
39
|
title?: string;
|
|
40
40
|
description?: string;
|
|
41
41
|
versions?: string[];
|
|
42
42
|
version?: string;
|
|
43
43
|
filePath?: string;
|
|
44
44
|
tags?: string[];
|
|
45
|
-
locale?:
|
|
46
|
-
fill?:
|
|
45
|
+
locale?: _intlayer_types0.LocalesValues;
|
|
46
|
+
fill?: _intlayer_types0.Fill;
|
|
47
47
|
filled?: true;
|
|
48
48
|
priority?: number;
|
|
49
49
|
live?: boolean;
|
|
50
|
-
location?:
|
|
50
|
+
location?: _intlayer_types0.DictionaryLocation;
|
|
51
51
|
})[];
|
|
52
52
|
//#endregion
|
|
53
53
|
export { formatDictionaries, formatDictionariesOutput, formatDictionary, formatDictionaryOutput };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -51,10 +51,10 @@ import { splitTextByLines } from "./utils/splitTextByLine.js";
|
|
|
51
51
|
import { verifyIdenticObjectFormat } from "./utils/verifyIdenticObjectFormat.js";
|
|
52
52
|
import { buildAndWatchIntlayer, watch } from "./watcher.js";
|
|
53
53
|
import { detectExportedComponentName } from "./writeContentDeclaration/detectExportedComponentName.js";
|
|
54
|
+
import { detectFormatCommand } from "./writeContentDeclaration/detectFormatCommand.js";
|
|
54
55
|
import { DictionaryStatus } from "./writeContentDeclaration/dictionaryStatus.js";
|
|
55
56
|
import { transformJSFile } from "./writeContentDeclaration/transformJSFile.js";
|
|
56
57
|
import { writeContentDeclaration } from "./writeContentDeclaration/writeContentDeclaration.js";
|
|
57
58
|
import { writeJSFile } from "./writeContentDeclaration/writeJSFile.js";
|
|
58
59
|
import "./writeContentDeclaration/index.js";
|
|
59
|
-
import { detectFormatCommand } from "./writeContentDeclaration/detectFormatCommand.js";
|
|
60
60
|
export { ATTRIBUTES_TO_EXTRACT, type BuildFilesListOptions, type DictionaryStatus, type DiffMode, type Extension, type Format, type JSONObject, type JsonChunk, type ListGitFilesOptions, type ListGitLinesOptions, type ListProjectsOptions, type PackageName, type ParallelHandle, assembleJSON, buildAndWatchIntlayer, buildDictionary, buildFilesList, chunkJSON, cleanOutputDir, createDictionaryEntryPoint, createModuleAugmentation, createTypes, detectExportedComponentName, detectFormatCommand, extractDictionaryKey, extractIntlayer, fetchDistantDictionaries, formatDictionaries, formatDictionariesOutput, formatDictionary, formatDictionaryOutput, formatLocale, formatPath, generateDictionaryListContent, generateKey, getBuiltDictionariesPath, getBuiltDynamicDictionariesPath, getBuiltFetchDictionariesPath, getBuiltRemoteDictionariesPath, getBuiltUnmergedDictionariesPath, getChunk, getComponentTransformPattern, getComponentTransformPatternSync, getContentDeclarationFileTemplate, getExtensionFromFormat, getFileHash, getFormatFromExtension, getGlobalLimiter, getTaskLimiter, handleAdditionalContentDeclarationFile, handleContentDeclarationFileChange, handleUnlinkedContentDeclarationFile, initIntlayer, isInvalidDictionary, listDictionaries, listDictionariesWithStats, listGitFiles, listGitLines, listProjects, loadContentDeclarations, loadDictionaries, loadLocalDictionaries, loadRemoteDictionaries, pLimit, parallelize, parallelizeGlobal, prepareIntlayer, reconstructFromSingleChunk, reduceDictionaryContent, reduceObjectFormat, resolveObjectPromises, runOnce, runParallel, shouldExtract, sortAlphabetically, splitTextByLines, transformFiles, transformJSFile, verifyIdenticObjectFormat, watch, writeContentDeclaration, writeJSFile };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DictionariesStatus } from "./loadDictionaries.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _intlayer_types22 from "@intlayer/types";
|
|
3
3
|
import { Dictionary } from "@intlayer/types";
|
|
4
4
|
import { DictionaryAPI } from "@intlayer/backend";
|
|
5
5
|
|
|
6
6
|
//#region src/loadDictionaries/loadRemoteDictionaries.d.ts
|
|
7
7
|
declare const formatDistantDictionaries: (dictionaries: (DictionaryAPI | Dictionary)[]) => Dictionary[];
|
|
8
|
-
declare const loadRemoteDictionaries: (configuration?:
|
|
8
|
+
declare const loadRemoteDictionaries: (configuration?: _intlayer_types22.IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: {
|
|
9
9
|
onStartRemoteCheck?: () => void;
|
|
10
10
|
onStopRemoteCheck?: () => void;
|
|
11
11
|
onError?: (error: Error) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadRemoteDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadRemoteDictionaries.ts"],"sourcesContent":[],"mappings":";;;;;;cAUa,2CACI,gBAAgB,kBAC9B;cAOU,yCAsIZ,
|
|
1
|
+
{"version":3,"file":"loadRemoteDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadRemoteDictionaries.ts"],"sourcesContent":[],"mappings":";;;;;;cAUa,2CACI,gBAAgB,kBAC9B;cAOU,yCAsIZ,iBAAA,CArIC,0CAC0B,sCAVK;;EADpB,iBAAA,CAAA,EAAA,GAAA,GAAA,IAOR;EANY,OAAA,CAAA,EAAA,CAAA,KAAA,EAcK,KAdL,EAAA,GAAA,IAAA;CAAgB,EAAA,GAgB9B,OAhB8B,CAgBtB,UAhBsB,EAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFilesList.d.ts","names":[],"sources":["../../../src/utils/buildFilesList.ts"],"sourcesContent":[],"mappings":";;AAMA;
|
|
1
|
+
{"version":3,"file":"buildFilesList.d.ts","names":[],"sources":["../../../src/utils/buildFilesList.ts"],"sourcesContent":[],"mappings":";;AAMA;AA+CA;KA/CY,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+CC,0BAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getComponentTransformPattern.d.ts","names":[],"sources":["../../../src/utils/getComponentTransformPattern.ts"],"sourcesContent":[],"mappings":";;;cAkCa,+CACK,mBACf;
|
|
1
|
+
{"version":3,"file":"getComponentTransformPattern.d.ts","names":[],"sources":["../../../src/utils/getComponentTransformPattern.ts"],"sourcesContent":[],"mappings":";;;cAkCa,+CACK,mBACf;cAqBU,mDACK"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/utils/getFormatFromExtension.d.ts
|
|
2
|
-
type Format = 'ts' | 'cjs' | 'esm' | 'json';
|
|
3
|
-
type Extension = '.ts' | '.tsx' | '.js' | '.jsx' | '.cjs' | '.cjsx' | '.mjs' | '.mjsx' | '.json' | '.json5';
|
|
2
|
+
type Format = 'ts' | 'cjs' | 'esm' | 'json' | 'jsonc' | 'json5';
|
|
3
|
+
type Extension = '.ts' | '.tsx' | '.js' | '.jsx' | '.cjs' | '.cjsx' | '.mjs' | '.mjsx' | '.json' | '.jsonc' | '.json5';
|
|
4
4
|
declare const getFormatFromExtension: (extension: Extension) => Format;
|
|
5
5
|
declare const getExtensionFromFormat: (format: Format) => Extension;
|
|
6
6
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFormatFromExtension.d.ts","names":[],"sources":["../../../src/utils/getFormatFromExtension.ts"],"sourcesContent":[],"mappings":";KAAY,MAAA;AAAA,KACA,SAAA,GADM,KAAA,GAAA,MAAA,GAAA,KAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,MAAA,GAAA,OAAA,GAAA,OAAA,GAAA,QAAA;AACN,
|
|
1
|
+
{"version":3,"file":"getFormatFromExtension.d.ts","names":[],"sources":["../../../src/utils/getFormatFromExtension.ts"],"sourcesContent":[],"mappings":";KAAY,MAAA;AAAA,KACA,SAAA,GADM,KAAA,GAAA,MAAA,GAAA,KAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,MAAA,GAAA,OAAA,GAAA,OAAA,GAAA,QAAA,GAAA,QAAA;AACN,cAaC,sBAbQ,EAAA,CAAA,SAAA,EAa6B,SAb7B,EAAA,GAayC,MAbzC;AAaR,cAmBA,sBAnBqC,EAAA,CAAA,MAAA,EAmBH,MAF9C,EAAA,GAEuD,SAFvD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types";
|
|
2
2
|
|
|
3
3
|
//#region src/writeContentDeclaration/detectFormatCommand.d.ts
|
|
4
|
-
declare const detectFormatCommand: (configuration: IntlayerConfig) => string;
|
|
4
|
+
declare const detectFormatCommand: (configuration: IntlayerConfig, projectRequireProp?: NodeJS.Require) => string;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { detectFormatCommand };
|
|
7
7
|
//# sourceMappingURL=detectFormatCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectFormatCommand.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/detectFormatCommand.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"detectFormatCommand.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/detectFormatCommand.ts"],"sourcesContent":[],"mappings":";;;cAKa,qCACI,qCACM,MAAA,CAAO"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { detectExportedComponentName } from "./detectExportedComponentName.js";
|
|
2
|
+
import { detectFormatCommand } from "./detectFormatCommand.js";
|
|
2
3
|
import { DictionaryStatus } from "./dictionaryStatus.js";
|
|
3
4
|
import { transformJSFile } from "./transformJSFile.js";
|
|
4
5
|
import { writeContentDeclaration } from "./writeContentDeclaration.js";
|
|
5
6
|
import { writeJSFile } from "./writeJSFile.js";
|
|
6
|
-
export { DictionaryStatus, detectExportedComponentName, transformJSFile, writeContentDeclaration, writeJSFile };
|
|
7
|
+
export { DictionaryStatus, detectExportedComponentName, detectFormatCommand, transformJSFile, writeContentDeclaration, writeJSFile };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dictionary } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/writeContentDeclaration/transformJSONFile.d.ts
|
|
4
|
+
declare const transformJSONFile: (fileContent: string, dictionary: Dictionary) => string;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { transformJSONFile };
|
|
7
|
+
//# sourceMappingURL=transformJSONFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformJSONFile.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/transformJSONFile.ts"],"sourcesContent":[],"mappings":";;;cAwGa,qDAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeContentDeclaration.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/writeContentDeclaration.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"writeContentDeclaration.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/writeContentDeclaration.ts"],"sourcesContent":[],"mappings":";;;;KAqHK,8BAAA;;EAAA,UAAA,CAAA,EAEU,aAFV,EAAA;EAUQ,cAAA,CAAA,EAPM,MAON;CACC;AACG,cAFJ,uBAEI,EAAA,CAAA,UAAA,EADH,UACG,EAAA,aAAA,EAAA,cAAA,EAAA,OAAA,CAAA,EACL,8BADK,EAAA,GAEd,OAFc,CAAA;EACL,MAAA,EACS,gBADT;EACS,IAAA,EAAA,MAAA;CAAlB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/chokidar",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.",
|
|
6
6
|
"keywords": [
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@intlayer/api": "7.5.
|
|
79
|
-
"@intlayer/config": "7.5.
|
|
80
|
-
"@intlayer/core": "7.5.
|
|
81
|
-
"@intlayer/dictionaries-entry": "7.5.
|
|
82
|
-
"@intlayer/remote-dictionaries-entry": "7.5.
|
|
83
|
-
"@intlayer/types": "7.5.
|
|
84
|
-
"@intlayer/unmerged-dictionaries-entry": "7.5.
|
|
78
|
+
"@intlayer/api": "7.5.13",
|
|
79
|
+
"@intlayer/config": "7.5.13",
|
|
80
|
+
"@intlayer/core": "7.5.13",
|
|
81
|
+
"@intlayer/dictionaries-entry": "7.5.13",
|
|
82
|
+
"@intlayer/remote-dictionaries-entry": "7.5.13",
|
|
83
|
+
"@intlayer/types": "7.5.13",
|
|
84
|
+
"@intlayer/unmerged-dictionaries-entry": "7.5.13",
|
|
85
85
|
"chokidar": "3.6.0",
|
|
86
86
|
"crypto-js": "4.2.0",
|
|
87
87
|
"defu": "6.1.4",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"vitest": "4.0.16"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@intlayer/svelte-transformer": "7.5.
|
|
105
|
-
"@intlayer/vue-transformer": "7.5.
|
|
104
|
+
"@intlayer/svelte-transformer": "7.5.13",
|
|
105
|
+
"@intlayer/vue-transformer": "7.5.13"
|
|
106
106
|
},
|
|
107
107
|
"peerDependenciesMeta": {
|
|
108
108
|
"@intlayer/svelte-transformer": {
|