@yamato-daiwa/es-extensions-nodejs 1.9.0-alpha.1 → 1.9.0-alpha.2
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/Distributable/ConsoleApplicationLogger.js +1 -1
- package/Distributable/ConsoleCommandsParser/ConsoleCommandsParser.js +10 -4
- package/Distributable/DateTime/NodeJS_Timer.js +17 -30
- package/Distributable/Errors/FileNotFoundError/FileNotFoundError.js +2 -2
- package/Distributable/Errors/InvalidConsoleCommand/InvalidConsoleCommandError.js +2 -2
- package/Distributable/Errors/PathRefersToDirectoryNotFileError/PathRefersToDirectoryNotFileError.js +2 -2
- package/Distributable/ImprovedPath/ImprovedPath.js +29 -42
- package/Distributable/ObjectDataFilesProcessor/ObjectDataFilesProcessor.js +1 -1
- package/package.json +8 -8
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const es_extensions_1 = require("@yamato-daiwa/es-extensions");
|
|
4
4
|
class ConsoleApplicationLogger {
|
|
5
|
+
static localization = es_extensions_1.loggerLocalization__english;
|
|
5
6
|
static setLocalization(localization) {
|
|
6
7
|
ConsoleApplicationLogger.localization = localization;
|
|
7
8
|
return ConsoleApplicationLogger;
|
|
@@ -411,7 +412,6 @@ class ConsoleApplicationLogger {
|
|
|
411
412
|
return `\x1b[48;2;${colorDefinition.red};${colorDefinition.green};${colorDefinition.blue}m`;
|
|
412
413
|
}
|
|
413
414
|
}
|
|
414
|
-
ConsoleApplicationLogger.localization = es_extensions_1.loggerLocalization__english;
|
|
415
415
|
(function (ConsoleApplicationLogger) {
|
|
416
416
|
let FourBitColours;
|
|
417
417
|
(function (FourBitColours) {
|
|
@@ -8,6 +8,16 @@ const es_extensions_1 = require("@yamato-daiwa/es-extensions");
|
|
|
8
8
|
const InvalidConsoleCommandError_1 = __importDefault(require("../Errors/InvalidConsoleCommand/InvalidConsoleCommandError"));
|
|
9
9
|
const ConsoleCommandsParserLocalization_english_1 = __importDefault(require("./ConsoleCommandsParserLocalization.english"));
|
|
10
10
|
class ConsoleCommandsParser {
|
|
11
|
+
static localization = ConsoleCommandsParserLocalization_english_1.default;
|
|
12
|
+
static MINIMAL_ARGUMENTS_COUNT_IN_VALID_CONSOLE_COMMAND = 2;
|
|
13
|
+
static PARSING_METHOD_INVOCATION_EXPRESSION = "ConsoleCommandsParser.parse(commandLineInterfaceSpecification, argumentsVector)";
|
|
14
|
+
applicationName;
|
|
15
|
+
targetCommandPhrase;
|
|
16
|
+
targetCommandPhraseDescription;
|
|
17
|
+
isTargetCommandPhraseDefault;
|
|
18
|
+
targetCommandOptions;
|
|
19
|
+
targetCommandOptionsWhichHasNotBeenProcessedYet = [];
|
|
20
|
+
targetCommandOptionsSpecification;
|
|
11
21
|
static parse(commandLineInterfaceSpecification, argumentsVector = process.argv) {
|
|
12
22
|
ConsoleCommandsParser.validateCommandLineInterfaceSpecification(commandLineInterfaceSpecification);
|
|
13
23
|
if (!Array.isArray(argumentsVector)) {
|
|
@@ -99,7 +109,6 @@ class ConsoleCommandsParser {
|
|
|
99
109
|
return textSegments.join("");
|
|
100
110
|
}
|
|
101
111
|
constructor({ commandLineInterfaceSpecification, consciouslyInputtedArguments }) {
|
|
102
|
-
this.targetCommandOptionsWhichHasNotBeenProcessedYet = [];
|
|
103
112
|
const helpReference = ConsoleCommandsParser.generateFullHelpReference(commandLineInterfaceSpecification);
|
|
104
113
|
const firstConsciouslyInputtedArgument = consciouslyInputtedArguments[0];
|
|
105
114
|
let defaultCommandPhrase;
|
|
@@ -681,9 +690,6 @@ class ConsoleCommandsParser {
|
|
|
681
690
|
}
|
|
682
691
|
}
|
|
683
692
|
}
|
|
684
|
-
ConsoleCommandsParser.localization = ConsoleCommandsParserLocalization_english_1.default;
|
|
685
|
-
ConsoleCommandsParser.MINIMAL_ARGUMENTS_COUNT_IN_VALID_CONSOLE_COMMAND = 2;
|
|
686
|
-
ConsoleCommandsParser.PARSING_METHOD_INVOCATION_EXPRESSION = "ConsoleCommandsParser.parse(commandLineInterfaceSpecification, argumentsVector)";
|
|
687
693
|
(function (ConsoleCommandsParser) {
|
|
688
694
|
let ParametersTypes;
|
|
689
695
|
(function (ParametersTypes) {
|
|
@@ -1,46 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _NodeJS_Timer_nativeTimeout, _NodeJS_Timer_secondsLeft, _NodeJS_Timer_isActive;
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
const es_extensions_1 = require("@yamato-daiwa/es-extensions");
|
|
16
4
|
class NodeJS_Timer extends es_extensions_1.Timer {
|
|
5
|
+
#nativeTimeout;
|
|
6
|
+
#secondsLeft = this.period__seconds;
|
|
7
|
+
#isActive = false;
|
|
17
8
|
constructor(compoundParameter) {
|
|
18
9
|
super(compoundParameter);
|
|
19
|
-
_NodeJS_Timer_nativeTimeout.set(this, void 0);
|
|
20
|
-
_NodeJS_Timer_secondsLeft.set(this, this.period__seconds);
|
|
21
|
-
_NodeJS_Timer_isActive.set(this, false);
|
|
22
10
|
}
|
|
23
11
|
countDown({ asynchronousCompletion = es_extensions_1.Timer.AsynchronousCompletions.promise } = {}) {
|
|
24
12
|
if (this.isActive) {
|
|
25
13
|
return;
|
|
26
14
|
}
|
|
27
|
-
|
|
15
|
+
this.#isActive = true;
|
|
28
16
|
const promise = new Promise((resolve) => {
|
|
29
|
-
|
|
17
|
+
this.#nativeTimeout = setInterval(() => {
|
|
30
18
|
if (this.mustStop) {
|
|
31
|
-
|
|
32
|
-
window.clearInterval(
|
|
19
|
+
this.#isActive = false;
|
|
20
|
+
window.clearInterval(this.#nativeTimeout);
|
|
33
21
|
resolve(es_extensions_1.Timer.Outcomes.stopped);
|
|
34
22
|
return;
|
|
35
23
|
}
|
|
36
|
-
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
clearInterval(
|
|
24
|
+
this.#secondsLeft = this.#secondsLeft - 1;
|
|
25
|
+
if (this.#secondsLeft === 0) {
|
|
26
|
+
this.#isActive = false;
|
|
27
|
+
this.#secondsLeft = this.period__seconds;
|
|
28
|
+
clearInterval(this.#nativeTimeout);
|
|
41
29
|
resolve(es_extensions_1.Timer.Outcomes.elapsed);
|
|
42
30
|
}
|
|
43
|
-
}, (0, es_extensions_1.secondsToMilliseconds)(1))
|
|
31
|
+
}, (0, es_extensions_1.secondsToMilliseconds)(1));
|
|
44
32
|
});
|
|
45
33
|
if (asynchronousCompletion === es_extensions_1.Timer.AsynchronousCompletions.promise) {
|
|
46
34
|
return promise;
|
|
@@ -58,17 +46,16 @@ class NodeJS_Timer extends es_extensions_1.Timer {
|
|
|
58
46
|
});
|
|
59
47
|
}
|
|
60
48
|
resetAndRestart({ asynchronousCompletion = es_extensions_1.Timer.AsynchronousCompletions.promise } = {}) {
|
|
61
|
-
clearInterval(
|
|
62
|
-
|
|
63
|
-
|
|
49
|
+
clearInterval(this.#nativeTimeout);
|
|
50
|
+
this.#isActive = false;
|
|
51
|
+
this.#secondsLeft = this.period__seconds;
|
|
64
52
|
if (asynchronousCompletion === es_extensions_1.Timer.AsynchronousCompletions.promise) {
|
|
65
53
|
return this.countDown({ asynchronousCompletion: es_extensions_1.Timer.AsynchronousCompletions.promise });
|
|
66
54
|
}
|
|
67
55
|
this.countDown({ asynchronousCompletion: es_extensions_1.Timer.AsynchronousCompletions.callback });
|
|
68
56
|
}
|
|
69
57
|
get isActive() {
|
|
70
|
-
return
|
|
58
|
+
return this.#isActive;
|
|
71
59
|
}
|
|
72
60
|
}
|
|
73
|
-
_NodeJS_Timer_nativeTimeout = new WeakMap(), _NodeJS_Timer_secondsLeft = new WeakMap(), _NodeJS_Timer_isActive = new WeakMap();
|
|
74
61
|
exports.default = NodeJS_Timer;
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const FileNotFoundErrorLocalization_english_1 = __importDefault(require("./FileNotFoundErrorLocalization.english"));
|
|
7
7
|
const es_extensions_1 = require("@yamato-daiwa/es-extensions");
|
|
8
8
|
class FileNotFoundError extends Error {
|
|
9
|
+
static NAME = "FileNotFoundError";
|
|
10
|
+
static localization = FileNotFoundErrorLocalization_english_1.default;
|
|
9
11
|
constructor(constructorParameter) {
|
|
10
12
|
super();
|
|
11
13
|
this.name = FileNotFoundError.NAME;
|
|
@@ -16,6 +18,4 @@ class FileNotFoundError extends Error {
|
|
|
16
18
|
(0, es_extensions_1.insertSubstring)(constructorParameter.messageSpecificPart, { modifier: (messageSpecificPart) => ` ${messageSpecificPart}` });
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
|
-
FileNotFoundError.NAME = "FileNotFoundError";
|
|
20
|
-
FileNotFoundError.localization = FileNotFoundErrorLocalization_english_1.default;
|
|
21
21
|
exports.default = FileNotFoundError;
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const InvalidConsoleCommandErrorLocalization_english_1 = __importDefault(require("./InvalidConsoleCommandErrorLocalization.english"));
|
|
7
7
|
const es_extensions_1 = require("@yamato-daiwa/es-extensions");
|
|
8
8
|
class InvalidConsoleCommandError extends Error {
|
|
9
|
+
static NAME = "InvalidConsoleCommandError";
|
|
10
|
+
static localization = InvalidConsoleCommandErrorLocalization_english_1.default;
|
|
9
11
|
constructor(constructorParameter) {
|
|
10
12
|
super();
|
|
11
13
|
this.name = InvalidConsoleCommandError.NAME;
|
|
@@ -16,6 +18,4 @@ class InvalidConsoleCommandError extends Error {
|
|
|
16
18
|
(0, es_extensions_1.insertSubstring)(constructorParameter.messageSpecificPart, { modifier: (messageSpecificPart) => ` ${messageSpecificPart}` });
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
|
-
InvalidConsoleCommandError.NAME = "InvalidConsoleCommandError";
|
|
20
|
-
InvalidConsoleCommandError.localization = InvalidConsoleCommandErrorLocalization_english_1.default;
|
|
21
21
|
exports.default = InvalidConsoleCommandError;
|
package/Distributable/Errors/PathRefersToDirectoryNotFileError/PathRefersToDirectoryNotFileError.js
CHANGED
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const PathRefersToDirectoryNotFileErrorLocalization_english_1 = __importDefault(require("./PathRefersToDirectoryNotFileErrorLocalization.english"));
|
|
7
7
|
const es_extensions_1 = require("@yamato-daiwa/es-extensions");
|
|
8
8
|
class PathRefersToDirectoryNotFileError extends Error {
|
|
9
|
+
static NAME = "PathRefersToDirectoryNotFileError";
|
|
10
|
+
static localization = PathRefersToDirectoryNotFileErrorLocalization_english_1.default;
|
|
9
11
|
constructor(constructorParameter) {
|
|
10
12
|
super();
|
|
11
13
|
this.name = PathRefersToDirectoryNotFileError.NAME;
|
|
@@ -16,6 +18,4 @@ class PathRefersToDirectoryNotFileError extends Error {
|
|
|
16
18
|
(0, es_extensions_1.insertSubstring)(constructorParameter.messageSpecificPart, { modifier: (messageSpecificPart) => ` ${messageSpecificPart}` });
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
|
-
PathRefersToDirectoryNotFileError.NAME = "PathRefersToDirectoryNotFileError";
|
|
20
|
-
PathRefersToDirectoryNotFileError.localization = PathRefersToDirectoryNotFileErrorLocalization_english_1.default;
|
|
21
21
|
exports.default = PathRefersToDirectoryNotFileError;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
4
|
};
|
|
@@ -158,51 +147,50 @@ class ImprovedPath {
|
|
|
158
147
|
}
|
|
159
148
|
}
|
|
160
149
|
(function (ImprovedPath) {
|
|
161
|
-
var _ParsingResult_rawPath, _ParsingResult_root, _ParsingResult_root__forwardSlashesSeparators, _ParsingResult_directory, _ParsingResult_directory__forwardSlashesSeparators, _ParsingResult_directoryExplodedToPathSegments;
|
|
162
150
|
class ParsingResult {
|
|
151
|
+
#rawPath;
|
|
152
|
+
#root;
|
|
153
|
+
#root__forwardSlashesSeparators;
|
|
154
|
+
#directory;
|
|
155
|
+
#directory__forwardSlashesSeparators;
|
|
156
|
+
#directoryExplodedToPathSegments;
|
|
163
157
|
constructor(namedParameters) {
|
|
164
|
-
|
|
165
|
-
_ParsingResult_root.set(this, void 0);
|
|
166
|
-
_ParsingResult_root__forwardSlashesSeparators.set(this, void 0);
|
|
167
|
-
_ParsingResult_directory.set(this, void 0);
|
|
168
|
-
_ParsingResult_directory__forwardSlashesSeparators.set(this, void 0);
|
|
169
|
-
_ParsingResult_directoryExplodedToPathSegments.set(this, void 0);
|
|
170
|
-
__classPrivateFieldSet(this, _ParsingResult_rawPath, namedParameters.rawPath, "f");
|
|
158
|
+
this.#rawPath = namedParameters.rawPath;
|
|
171
159
|
if (namedParameters.nativeParsedPath.root.length > 0) {
|
|
172
|
-
|
|
173
|
-
|
|
160
|
+
this.#root = namedParameters.nativeParsedPath.root;
|
|
161
|
+
this.#root__forwardSlashesSeparators = (0, es_extensions_1.replaceDoubleBackslashesWithForwardSlashes)(this.#root);
|
|
174
162
|
}
|
|
175
163
|
else {
|
|
176
|
-
|
|
177
|
-
|
|
164
|
+
this.#root = null;
|
|
165
|
+
this.#root__forwardSlashesSeparators = null;
|
|
178
166
|
}
|
|
179
167
|
if (namedParameters.nativeParsedPath.dir.length > 0) {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
...
|
|
184
|
-
...(0, es_extensions_1.splitString)(
|
|
168
|
+
this.#directory = namedParameters.nativeParsedPath.dir;
|
|
169
|
+
this.#directory__forwardSlashesSeparators = (0, es_extensions_1.replaceDoubleBackslashesWithForwardSlashes)(this.#directory);
|
|
170
|
+
this.#directoryExplodedToPathSegments = [
|
|
171
|
+
...this.#directory__forwardSlashesSeparators.startsWith("/") ? ["/"] : [],
|
|
172
|
+
...(0, es_extensions_1.splitString)(this.#directory__forwardSlashesSeparators, "/").
|
|
185
173
|
filter((pathSegment) => pathSegment.length > 0)
|
|
186
|
-
]
|
|
174
|
+
];
|
|
187
175
|
}
|
|
188
176
|
else {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
177
|
+
this.#directory = null;
|
|
178
|
+
this.#directory__forwardSlashesSeparators = null;
|
|
179
|
+
this.#directoryExplodedToPathSegments = [];
|
|
192
180
|
}
|
|
193
181
|
}
|
|
194
182
|
get root() {
|
|
195
|
-
return
|
|
183
|
+
return this.#root;
|
|
196
184
|
}
|
|
197
185
|
get root__forwardSlashesSeparators() {
|
|
198
|
-
return
|
|
186
|
+
return this.#root__forwardSlashesSeparators;
|
|
199
187
|
}
|
|
200
188
|
getRootExpectedToExist(namedParameters) {
|
|
201
189
|
const root = namedParameters?.alwaysForwardSlashesSeparators === true ?
|
|
202
|
-
|
|
190
|
+
this.#root__forwardSlashesSeparators : this.#root;
|
|
203
191
|
if ((0, es_extensions_1.isNull)(root)) {
|
|
204
192
|
es_extensions_1.Logger.throwErrorWithFormattedMessage({
|
|
205
|
-
errorInstance: new es_extensions_1.UnexpectedEventError(`Contrary to expectations, the root is not exists on path '${
|
|
193
|
+
errorInstance: new es_extensions_1.UnexpectedEventError(`Contrary to expectations, the root is not exists on path '${this.#rawPath}'.`),
|
|
206
194
|
title: es_extensions_1.UnexpectedEventError.localization.defaultTitle,
|
|
207
195
|
occurrenceLocation: "ImprovedPath.ParsedPath.getRootExpectedToBeExists(namedParameters)"
|
|
208
196
|
});
|
|
@@ -210,17 +198,17 @@ class ImprovedPath {
|
|
|
210
198
|
return root;
|
|
211
199
|
}
|
|
212
200
|
get directory() {
|
|
213
|
-
return
|
|
201
|
+
return this.#directory;
|
|
214
202
|
}
|
|
215
203
|
get directory__forwardSlashesSeparators() {
|
|
216
|
-
return
|
|
204
|
+
return this.#directory__forwardSlashesSeparators;
|
|
217
205
|
}
|
|
218
206
|
getDirectoryExpectedToExist(namedParameters) {
|
|
219
207
|
const directory = namedParameters?.alwaysForwardSlashesSeparators === true ?
|
|
220
|
-
|
|
208
|
+
this.#directory__forwardSlashesSeparators : this.#directory;
|
|
221
209
|
if ((0, es_extensions_1.isNull)(directory)) {
|
|
222
210
|
es_extensions_1.Logger.throwErrorWithFormattedMessage({
|
|
223
|
-
errorInstance: new es_extensions_1.UnexpectedEventError(`Contrary to expectations, the directory is not exists on path '${
|
|
211
|
+
errorInstance: new es_extensions_1.UnexpectedEventError(`Contrary to expectations, the directory is not exists on path '${this.#rawPath}'.`),
|
|
224
212
|
title: es_extensions_1.UnexpectedEventError.localization.defaultTitle,
|
|
225
213
|
occurrenceLocation: "ImprovedPath.ParsedPath.getDirectoryExpectedToExist(namedParameters)"
|
|
226
214
|
});
|
|
@@ -228,10 +216,9 @@ class ImprovedPath {
|
|
|
228
216
|
return directory;
|
|
229
217
|
}
|
|
230
218
|
get directoryExplodedToPathSegments() {
|
|
231
|
-
return
|
|
219
|
+
return this.#directoryExplodedToPathSegments;
|
|
232
220
|
}
|
|
233
221
|
}
|
|
234
|
-
_ParsingResult_rawPath = new WeakMap(), _ParsingResult_root = new WeakMap(), _ParsingResult_root__forwardSlashesSeparators = new WeakMap(), _ParsingResult_directory = new WeakMap(), _ParsingResult_directory__forwardSlashesSeparators = new WeakMap(), _ParsingResult_directoryExplodedToPathSegments = new WeakMap();
|
|
235
222
|
ImprovedPath.ParsingResult = ParsingResult;
|
|
236
223
|
})(ImprovedPath || (ImprovedPath = {}));
|
|
237
224
|
exports.default = ImprovedPath;
|
|
@@ -14,6 +14,7 @@ const FileNotFoundError_1 = __importDefault(require("../Errors/FileNotFoundError
|
|
|
14
14
|
const PathRefersToDirectoryNotFileError_1 = __importDefault(require("../Errors/PathRefersToDirectoryNotFileError/PathRefersToDirectoryNotFileError"));
|
|
15
15
|
const ObjectDataFilesProcessorLocalization_english_1 = __importDefault(require("./ObjectDataFilesProcessorLocalization.english"));
|
|
16
16
|
class ObjectDataFilesProcessor {
|
|
17
|
+
static localization = ObjectDataFilesProcessorLocalization_english_1.default;
|
|
17
18
|
static processFile(compoundParameter) {
|
|
18
19
|
const filePath = compoundParameter.filePath;
|
|
19
20
|
let dataSchema;
|
|
@@ -216,7 +217,6 @@ class ObjectDataFilesProcessor {
|
|
|
216
217
|
return processingResult.processedData;
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
|
-
ObjectDataFilesProcessor.localization = ObjectDataFilesProcessorLocalization_english_1.default;
|
|
220
220
|
(function (ObjectDataFilesProcessor) {
|
|
221
221
|
let SupportedSchemas;
|
|
222
222
|
(function (SupportedSchemas) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/es-extensions-nodejs",
|
|
3
|
-
"version": "1.9.0-alpha.
|
|
3
|
+
"version": "1.9.0-alpha.2",
|
|
4
4
|
"description": "Additional to @yamato-daiwa/es-extensions functionality for Node.js environment. Helper functions and classes aimed to reduce the routine code. Build-in TypeScript type safety.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nodejs",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"Distributable"
|
|
30
30
|
],
|
|
31
31
|
"engines": {
|
|
32
|
-
"node": ">=
|
|
32
|
+
"node": ">=22.0.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@yamato-daiwa/es-extensions": "1.9.0-alpha.
|
|
35
|
+
"@yamato-daiwa/es-extensions": "1.9.0-alpha.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"dotenv": "17.3.1",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"@types/json5": "0.0.30",
|
|
46
46
|
"@types/node": "22.15.31",
|
|
47
47
|
"@types/yamljs": "0.2.34",
|
|
48
|
-
"@yamato-daiwa/es-extensions": "1.9.0-alpha.
|
|
49
|
-
"@yamato-daiwa/style_guides": "0.
|
|
48
|
+
"@yamato-daiwa/es-extensions": "1.9.0-alpha.2",
|
|
49
|
+
"@yamato-daiwa/style_guides": "0.13.0",
|
|
50
50
|
"rimraf": "6.1.3",
|
|
51
51
|
"tsx": "4.21.0",
|
|
52
|
-
"typescript": "
|
|
52
|
+
"typescript": "6.0.2"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"Check Types": "tsc --noEmit",
|
|
56
56
|
"Lint": "eslint Source Tests",
|
|
57
57
|
"Run Tests": "node --require tsx/cjs --test \"Tests/**/*.test.ts\"",
|
|
58
|
-
"Rebuild Distributable Without Preliminary Cleaning": "tsc",
|
|
59
|
-
"Rebuild Distributable": "rimraf Distributable && tsc",
|
|
58
|
+
"Rebuild Distributable Without Preliminary Cleaning": "tsc -p tsconfig.build.json",
|
|
59
|
+
"Rebuild Distributable": "rimraf Distributable && tsc -p tsconfig.build.json",
|
|
60
60
|
"Rebuild Distributable and Realize Alpha": "npm run \"Rebuild Distributable\" && npm publish --tag alpha",
|
|
61
61
|
"Rebuild Distributable and Realize RC": "npm run \"Rebuild Distributable\" && npm publish --tag rc"
|
|
62
62
|
},
|