@intlayer/chokidar 4.1.8 → 4.1.10
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/checkDictionaryChanges.cjs +41 -0
- package/dist/cjs/checkDictionaryChanges.cjs.map +1 -0
- package/dist/cjs/index.cjs +3 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/checkDictionaryChanges.mjs +17 -0
- package/dist/esm/checkDictionaryChanges.mjs.map +1 -0
- package/dist/esm/index.mjs +2 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/checkDictionaryChanges.d.ts +3 -0
- package/dist/types/checkDictionaryChanges.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var checkDictionaryChanges_exports = {};
|
|
20
|
+
__export(checkDictionaryChanges_exports, {
|
|
21
|
+
checkDictionaryChanges: () => checkDictionaryChanges
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(checkDictionaryChanges_exports);
|
|
24
|
+
var import_api = require("@intlayer/api");
|
|
25
|
+
var import_buildIntlayerDictionary = require('./transpiler/declaration_file_to_dictionary/intlayer_dictionary/buildIntlayerDictionary.cjs');
|
|
26
|
+
const writeDictionary = async (dictionary) => {
|
|
27
|
+
await (0, import_buildIntlayerDictionary.buildIntlayerDictionary)([dictionary]);
|
|
28
|
+
};
|
|
29
|
+
const checkDictionaryChanges = () => {
|
|
30
|
+
const eventSource = new import_api.IntlayerEventListener();
|
|
31
|
+
eventSource.initialize();
|
|
32
|
+
eventSource.onDictionaryAdded = writeDictionary;
|
|
33
|
+
eventSource.onDictionaryChange = writeDictionary;
|
|
34
|
+
eventSource.onDictionaryDeleted = writeDictionary;
|
|
35
|
+
return eventSource;
|
|
36
|
+
};
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
checkDictionaryChanges
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=checkDictionaryChanges.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/checkDictionaryChanges.ts"],"sourcesContent":["import { IntlayerEventListener } from '@intlayer/api';\n// @ts-ignore: @intlayer/backend is not built yet\nimport { DictionaryAPI } from '@intlayer/backend';\nimport { buildIntlayerDictionary } from './transpiler/declaration_file_to_dictionary/intlayer_dictionary/buildIntlayerDictionary';\n\nconst writeDictionary = async (dictionary: DictionaryAPI) => {\n await buildIntlayerDictionary([dictionary]);\n};\n\nexport const checkDictionaryChanges = () => {\n const eventSource = new IntlayerEventListener();\n\n eventSource.initialize();\n\n eventSource.onDictionaryAdded = writeDictionary;\n eventSource.onDictionaryChange = writeDictionary;\n eventSource.onDictionaryDeleted = writeDictionary;\n\n return eventSource;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAsC;AAGtC,qCAAwC;AAExC,MAAM,kBAAkB,OAAO,eAA8B;AAC3D,YAAM,wDAAwB,CAAC,UAAU,CAAC;AAC5C;AAEO,MAAM,yBAAyB,MAAM;AAC1C,QAAM,cAAc,IAAI,iCAAsB;AAE9C,cAAY,WAAW;AAEvB,cAAY,oBAAoB;AAChC,cAAY,qBAAqB;AACjC,cAAY,sBAAsB;AAElC,SAAO;AACT;","names":[]}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var index_exports = {};
|
|
|
20
20
|
__export(index_exports, {
|
|
21
21
|
buildAndWatchIntlayer: () => import_watcher.buildAndWatchIntlayer,
|
|
22
22
|
buildDictionary: () => import_declaration_file_to_dictionary.buildDictionary,
|
|
23
|
+
checkDictionaryChanges: () => import_checkDictionaryChanges.checkDictionaryChanges,
|
|
23
24
|
createDictionaryList: () => import_createDictionaryList.createDictionaryList,
|
|
24
25
|
createModuleAugmentation: () => import_createModuleAugmentation.createModuleAugmentation,
|
|
25
26
|
fetchDistantDictionaries: () => import_fetchDistantDictionaries.fetchDistantDictionaries,
|
|
@@ -38,10 +39,12 @@ var import_createDictionaryList = require('./transpiler/dictionary_to_main/creat
|
|
|
38
39
|
var import_createModuleAugmentation = require('./transpiler/dictionary_to_type/createModuleAugmentation.cjs');
|
|
39
40
|
var import_fetchDistantDictionaries = require('./fetchDistantDictionaries.cjs');
|
|
40
41
|
var import_loadDictionaries = require('./loadDictionaries/index.cjs');
|
|
42
|
+
var import_checkDictionaryChanges = require('./checkDictionaryChanges.cjs');
|
|
41
43
|
// Annotate the CommonJS export names for ESM import in node:
|
|
42
44
|
0 && (module.exports = {
|
|
43
45
|
buildAndWatchIntlayer,
|
|
44
46
|
buildDictionary,
|
|
47
|
+
checkDictionaryChanges,
|
|
45
48
|
createDictionaryList,
|
|
46
49
|
createModuleAugmentation,
|
|
47
50
|
fetchDistantDictionaries,
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n watch,\n prepareIntlayer,\n handleAdditionalContentDeclarationFile,\n handleContentDeclarationFileChange,\n buildAndWatchIntlayer,\n} from './chokidar/watcher';\nexport { buildDictionary } from './transpiler/declaration_file_to_dictionary/index';\nexport { createDictionaryList } from './transpiler/dictionary_to_main/createDictionaryList';\nexport { createModuleAugmentation } from './transpiler/dictionary_to_type/createModuleAugmentation';\nexport { fetchDistantDictionaries } from './fetchDistantDictionaries';\nexport {\n loadDistantDictionaries,\n loadDictionaries,\n loadLocalDictionaries,\n} from './loadDictionaries/index';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAMO;AACP,4CAAgC;AAChC,kCAAqC;AACrC,sCAAyC;AACzC,sCAAyC;AACzC,8BAIO;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n watch,\n prepareIntlayer,\n handleAdditionalContentDeclarationFile,\n handleContentDeclarationFileChange,\n buildAndWatchIntlayer,\n} from './chokidar/watcher';\nexport { buildDictionary } from './transpiler/declaration_file_to_dictionary/index';\nexport { createDictionaryList } from './transpiler/dictionary_to_main/createDictionaryList';\nexport { createModuleAugmentation } from './transpiler/dictionary_to_type/createModuleAugmentation';\nexport { fetchDistantDictionaries } from './fetchDistantDictionaries';\nexport {\n loadDistantDictionaries,\n loadDictionaries,\n loadLocalDictionaries,\n} from './loadDictionaries/index';\nexport { checkDictionaryChanges } from './checkDictionaryChanges';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAMO;AACP,4CAAgC;AAChC,kCAAqC;AACrC,sCAAyC;AACzC,sCAAyC;AACzC,8BAIO;AACP,oCAAuC;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IntlayerEventListener } from "@intlayer/api";
|
|
2
|
+
import { buildIntlayerDictionary } from "./transpiler/declaration_file_to_dictionary/intlayer_dictionary/buildIntlayerDictionary.mjs";
|
|
3
|
+
const writeDictionary = async (dictionary) => {
|
|
4
|
+
await buildIntlayerDictionary([dictionary]);
|
|
5
|
+
};
|
|
6
|
+
const checkDictionaryChanges = () => {
|
|
7
|
+
const eventSource = new IntlayerEventListener();
|
|
8
|
+
eventSource.initialize();
|
|
9
|
+
eventSource.onDictionaryAdded = writeDictionary;
|
|
10
|
+
eventSource.onDictionaryChange = writeDictionary;
|
|
11
|
+
eventSource.onDictionaryDeleted = writeDictionary;
|
|
12
|
+
return eventSource;
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
checkDictionaryChanges
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=checkDictionaryChanges.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/checkDictionaryChanges.ts"],"sourcesContent":["import { IntlayerEventListener } from '@intlayer/api';\n// @ts-ignore: @intlayer/backend is not built yet\nimport { DictionaryAPI } from '@intlayer/backend';\nimport { buildIntlayerDictionary } from './transpiler/declaration_file_to_dictionary/intlayer_dictionary/buildIntlayerDictionary';\n\nconst writeDictionary = async (dictionary: DictionaryAPI) => {\n await buildIntlayerDictionary([dictionary]);\n};\n\nexport const checkDictionaryChanges = () => {\n const eventSource = new IntlayerEventListener();\n\n eventSource.initialize();\n\n eventSource.onDictionaryAdded = writeDictionary;\n eventSource.onDictionaryChange = writeDictionary;\n eventSource.onDictionaryDeleted = writeDictionary;\n\n return eventSource;\n};\n"],"mappings":"AAAA,SAAS,6BAA6B;AAGtC,SAAS,+BAA+B;AAExC,MAAM,kBAAkB,OAAO,eAA8B;AAC3D,QAAM,wBAAwB,CAAC,UAAU,CAAC;AAC5C;AAEO,MAAM,yBAAyB,MAAM;AAC1C,QAAM,cAAc,IAAI,sBAAsB;AAE9C,cAAY,WAAW;AAEvB,cAAY,oBAAoB;AAChC,cAAY,qBAAqB;AACjC,cAAY,sBAAsB;AAElC,SAAO;AACT;","names":[]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -14,9 +14,11 @@ import {
|
|
|
14
14
|
loadDictionaries,
|
|
15
15
|
loadLocalDictionaries
|
|
16
16
|
} from "./loadDictionaries/index.mjs";
|
|
17
|
+
import { checkDictionaryChanges } from "./checkDictionaryChanges.mjs";
|
|
17
18
|
export {
|
|
18
19
|
buildAndWatchIntlayer,
|
|
19
20
|
buildDictionary,
|
|
21
|
+
checkDictionaryChanges,
|
|
20
22
|
createDictionaryList,
|
|
21
23
|
createModuleAugmentation,
|
|
22
24
|
fetchDistantDictionaries,
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n watch,\n prepareIntlayer,\n handleAdditionalContentDeclarationFile,\n handleContentDeclarationFileChange,\n buildAndWatchIntlayer,\n} from './chokidar/watcher';\nexport { buildDictionary } from './transpiler/declaration_file_to_dictionary/index';\nexport { createDictionaryList } from './transpiler/dictionary_to_main/createDictionaryList';\nexport { createModuleAugmentation } from './transpiler/dictionary_to_type/createModuleAugmentation';\nexport { fetchDistantDictionaries } from './fetchDistantDictionaries';\nexport {\n loadDistantDictionaries,\n loadDictionaries,\n loadLocalDictionaries,\n} from './loadDictionaries/index';\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,gCAAgC;AACzC,SAAS,gCAAgC;AACzC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n watch,\n prepareIntlayer,\n handleAdditionalContentDeclarationFile,\n handleContentDeclarationFileChange,\n buildAndWatchIntlayer,\n} from './chokidar/watcher';\nexport { buildDictionary } from './transpiler/declaration_file_to_dictionary/index';\nexport { createDictionaryList } from './transpiler/dictionary_to_main/createDictionaryList';\nexport { createModuleAugmentation } from './transpiler/dictionary_to_type/createModuleAugmentation';\nexport { fetchDistantDictionaries } from './fetchDistantDictionaries';\nexport {\n loadDistantDictionaries,\n loadDictionaries,\n loadLocalDictionaries,\n} from './loadDictionaries/index';\nexport { checkDictionaryChanges } from './checkDictionaryChanges';\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,gCAAgC;AACzC,SAAS,gCAAgC;AACzC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,8BAA8B;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkDictionaryChanges.d.ts","sourceRoot":"","sources":["../../src/checkDictionaryChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAStD,eAAO,MAAM,sBAAsB,6BAUlC,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export { createDictionaryList } from './transpiler/dictionary_to_main/createDict
|
|
|
4
4
|
export { createModuleAugmentation } from './transpiler/dictionary_to_type/createModuleAugmentation';
|
|
5
5
|
export { fetchDistantDictionaries } from './fetchDistantDictionaries';
|
|
6
6
|
export { loadDistantDictionaries, loadDictionaries, loadLocalDictionaries, } from './loadDictionaries/index';
|
|
7
|
+
export { checkDictionaryChanges } from './checkDictionaryChanges';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,eAAe,EACf,sCAAsC,EACtC,kCAAkC,EAClC,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,eAAe,EACf,sCAAsC,EACtC,kCAAkC,EAClC,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/chokidar",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.10",
|
|
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": [
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
"fast-glob": "^3.3.3",
|
|
64
64
|
"p-limit": "^3.1.0",
|
|
65
65
|
"quicktype-core": "^23.0.170",
|
|
66
|
-
"
|
|
67
|
-
"intlayer": "4.1.
|
|
68
|
-
"@intlayer/
|
|
69
|
-
"@intlayer/api": "4.1.
|
|
66
|
+
"intlayer": "4.1.10",
|
|
67
|
+
"@intlayer/config": "4.1.10",
|
|
68
|
+
"@intlayer/core": "4.1.10",
|
|
69
|
+
"@intlayer/api": "4.1.10"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@changesets/cli": "2.27.
|
|
72
|
+
"@changesets/cli": "2.27.12",
|
|
73
73
|
"@types/crypto-js": "^4.2.2",
|
|
74
74
|
"@types/node": "^22.10.6",
|
|
75
75
|
"@typescript-eslint/parser": "^8.20.0",
|
|
@@ -80,19 +80,19 @@
|
|
|
80
80
|
"tsc-alias": "^1.8.10",
|
|
81
81
|
"tsup": "^8.3.5",
|
|
82
82
|
"typescript": "^5.7.3",
|
|
83
|
-
"@intlayer/backend": "4.1.8",
|
|
84
83
|
"@utils/eslint-config": "1.0.4",
|
|
85
84
|
"@utils/ts-config": "1.0.4",
|
|
85
|
+
"@intlayer/backend": "4.1.10",
|
|
86
86
|
"@utils/ts-config-types": "1.0.4",
|
|
87
87
|
"@utils/tsup-config": "1.0.4"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"fast-glob": "^3.3.3",
|
|
91
91
|
"react": ">=16.0.0",
|
|
92
|
-
"@intlayer/api": "4.1.
|
|
93
|
-
"@intlayer/config": "4.1.
|
|
94
|
-
"@intlayer/core": "4.1.
|
|
95
|
-
"intlayer": "^4.1.
|
|
92
|
+
"@intlayer/api": "4.1.10",
|
|
93
|
+
"@intlayer/config": "4.1.10",
|
|
94
|
+
"@intlayer/core": "4.1.10",
|
|
95
|
+
"intlayer": "^4.1.10"
|
|
96
96
|
},
|
|
97
97
|
"engines": {
|
|
98
98
|
"node": ">=14.18"
|