@diia-inhouse/genproto 3.3.1 → 4.0.0

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/LICENCE.md CHANGED
@@ -18,40 +18,40 @@ or has expressed by any other means his willingness to license under the EUPL.
18
18
 
19
19
  In this Licence, the following terms have the following meaning:
20
20
 
21
- - ‘The Licence’: this Licence.
21
+ - ‘The Licence’: this Licence.
22
22
 
23
- - ‘The Original Work’: the work or software distributed or communicated by the
24
- Licensor under this Licence, available as Source Code and also as Executable
25
- Code as the case may be.
23
+ - ‘The Original Work’: the work or software distributed or communicated by the
24
+ Licensor under this Licence, available as Source Code and also as Executable
25
+ Code as the case may be.
26
26
 
27
- - ‘Derivative Works’: the works or software that could be created by the
28
- Licensee, based upon the Original Work or modifications thereof. This Licence
29
- does not define the extent of modification or dependence on the Original Work
30
- required in order to classify a work as a Derivative Work; this extent is
31
- determined by copyright law applicable in the country mentioned in Article 15.
27
+ - ‘Derivative Works’: the works or software that could be created by the
28
+ Licensee, based upon the Original Work or modifications thereof. This Licence
29
+ does not define the extent of modification or dependence on the Original Work
30
+ required in order to classify a work as a Derivative Work; this extent is
31
+ determined by copyright law applicable in the country mentioned in Article 15.
32
32
 
33
- - ‘The Work’: the Original Work or its Derivative Works.
33
+ - ‘The Work’: the Original Work or its Derivative Works.
34
34
 
35
- - ‘The Source Code’: the human-readable form of the Work which is the most
36
- convenient for people to study and modify.
35
+ - ‘The Source Code’: the human-readable form of the Work which is the most
36
+ convenient for people to study and modify.
37
37
 
38
- - ‘The Executable Code’: any code which has generally been compiled and which is
39
- meant to be interpreted by a computer as a program.
38
+ - ‘The Executable Code’: any code which has generally been compiled and which is
39
+ meant to be interpreted by a computer as a program.
40
40
 
41
- - ‘The Licensor’: the natural or legal person that distributes or communicates
42
- the Work under the Licence.
41
+ - ‘The Licensor’: the natural or legal person that distributes or communicates
42
+ the Work under the Licence.
43
43
 
44
- - ‘Contributor(s)’: any natural or legal person who modifies the Work under the
45
- Licence, or otherwise contributes to the creation of a Derivative Work.
44
+ - ‘Contributor(s)’: any natural or legal person who modifies the Work under the
45
+ Licence, or otherwise contributes to the creation of a Derivative Work.
46
46
 
47
- - ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
48
- the Work under the terms of the Licence.
47
+ - ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
48
+ the Work under the terms of the Licence.
49
49
 
50
- - ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
51
- renting, distributing, communicating, transmitting, or otherwise making
52
- available, online or offline, copies of the Work or providing access to its
53
- essential functionalities at the disposal of any other natural or legal
54
- person.
50
+ - ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
51
+ renting, distributing, communicating, transmitting, or otherwise making
52
+ available, online or offline, copies of the Work or providing access to its
53
+ essential functionalities at the disposal of any other natural or legal
54
+ person.
55
55
 
56
56
  2. Scope of the rights granted by the Licence
57
57
 
@@ -59,15 +59,15 @@ The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
59
59
  sublicensable licence to do the following, for the duration of copyright vested
60
60
  in the Original Work:
61
61
 
62
- - use the Work in any circumstance and for all usage,
63
- - reproduce the Work,
64
- - modify the Work, and make Derivative Works based upon the Work,
65
- - communicate to the public, including the right to make available or display
66
- the Work or copies thereof to the public and perform publicly, as the case may
67
- be, the Work,
68
- - distribute the Work or copies thereof,
69
- - lend and rent the Work or copies thereof,
70
- - sublicense rights in the Work or copies thereof.
62
+ - use the Work in any circumstance and for all usage,
63
+ - reproduce the Work,
64
+ - modify the Work, and make Derivative Works based upon the Work,
65
+ - communicate to the public, including the right to make available or display
66
+ the Work or copies thereof to the public and perform publicly, as the case may
67
+ be, the Work,
68
+ - distribute the Work or copies thereof,
69
+ - lend and rent the Work or copies thereof,
70
+ - sublicense rights in the Work or copies thereof.
71
71
 
72
72
  Those rights can be exercised on any media, supports and formats, whether now
73
73
  known or later invented, as far as the applicable law permits so.
@@ -240,43 +240,43 @@ their choice.
240
240
 
241
241
  Without prejudice to specific agreement between parties,
242
242
 
243
- - any litigation resulting from the interpretation of this License, arising
244
- between the European Union institutions, bodies, offices or agencies, as a
245
- Licensor, and any Licensee, will be subject to the jurisdiction of the Court
246
- of Justice of the European Union, as laid down in article 272 of the Treaty on
247
- the Functioning of the European Union,
243
+ - any litigation resulting from the interpretation of this License, arising
244
+ between the European Union institutions, bodies, offices or agencies, as a
245
+ Licensor, and any Licensee, will be subject to the jurisdiction of the Court
246
+ of Justice of the European Union, as laid down in article 272 of the Treaty on
247
+ the Functioning of the European Union,
248
248
 
249
- - any litigation arising between other parties and resulting from the
250
- interpretation of this License, will be subject to the exclusive jurisdiction
251
- of the competent court where the Licensor resides or conducts its primary
252
- business.
249
+ - any litigation arising between other parties and resulting from the
250
+ interpretation of this License, will be subject to the exclusive jurisdiction
251
+ of the competent court where the Licensor resides or conducts its primary
252
+ business.
253
253
 
254
254
  15. Applicable Law
255
255
 
256
256
  Without prejudice to specific agreement between parties,
257
257
 
258
- - this Licence shall be governed by the law of the European Union Member State
259
- where the Licensor has his seat, resides or has his registered office,
258
+ - this Licence shall be governed by the law of the European Union Member State
259
+ where the Licensor has his seat, resides or has his registered office,
260
260
 
261
- - this licence shall be governed by Belgian law if the Licensor has no seat,
262
- residence or registered office inside a European Union Member State.
261
+ - this licence shall be governed by Belgian law if the Licensor has no seat,
262
+ residence or registered office inside a European Union Member State.
263
263
 
264
264
  Appendix
265
265
 
266
266
  ‘Compatible Licences’ according to Article 5 EUPL are:
267
267
 
268
- - GNU General Public License (GPL) v. 2, v. 3
269
- - GNU Affero General Public License (AGPL) v. 3
270
- - Open Software License (OSL) v. 2.1, v. 3.0
271
- - Eclipse Public License (EPL) v. 1.0
272
- - CeCILL v. 2.0, v. 2.1
273
- - Mozilla Public Licence (MPL) v. 2
274
- - GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
275
- - Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
276
- works other than software
277
- - European Union Public Licence (EUPL) v. 1.1, v. 1.2
278
- - Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
279
- Reciprocity (LiLiQ-R+).
268
+ - GNU General Public License (GPL) v. 2, v. 3
269
+ - GNU Affero General Public License (AGPL) v. 3
270
+ - Open Software License (OSL) v. 2.1, v. 3.0
271
+ - Eclipse Public License (EPL) v. 1.0
272
+ - CeCILL v. 2.0, v. 2.1
273
+ - Mozilla Public Licence (MPL) v. 2
274
+ - GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
275
+ - Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
276
+ works other than software
277
+ - European Union Public Licence (EUPL) v. 1.1, v. 1.2
278
+ - Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
279
+ Reciprocity (LiLiQ-R+).
280
280
 
281
281
  The European Commission may update this Appendix to later versions of the above
282
282
  licences without producing a new version of the EUPL, as long as they provide
@@ -1,19 +1,13 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CommandBuilder = exports.Platform = void 0;
7
- const node_fs_1 = __importDefault(require("node:fs"));
8
- const node_path_1 = __importDefault(require("node:path"));
9
- const glob_1 = require("glob");
10
- var Platform;
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { glob } from 'glob';
4
+ export var Platform;
11
5
  (function (Platform) {
12
6
  Platform["ts"] = "ts";
13
7
  Platform["java"] = "java";
14
8
  Platform["python"] = "python";
15
- })(Platform || (exports.Platform = Platform = {}));
16
- class CommandBuilder {
9
+ })(Platform || (Platform = {}));
10
+ export class CommandBuilder {
17
11
  logger;
18
12
  generateClient;
19
13
  rootDir;
@@ -28,14 +22,14 @@ class CommandBuilder {
28
22
  }
29
23
  async iPath() {
30
24
  let iPath = '';
31
- const protoFiles = await (0, glob_1.glob)(`${this.rootDir}/**/*.proto`, { ignore: '**/node_modules/**' });
25
+ const protoFiles = await glob(`${this.rootDir}/**/*.proto`, { ignore: '**/node_modules/**' });
32
26
  if (protoFiles.length > 0) {
33
- iPath += ' ' + protoFiles.join(' ');
27
+ iPath += ` ${protoFiles.join(' ')}`;
34
28
  }
35
29
  return iPath.trim();
36
30
  }
37
31
  async externalImports(dependenciesPattern, subpaths, platform) {
38
- let files = await (0, glob_1.glob)(dependenciesPattern);
32
+ let files = await glob(dependenciesPattern);
39
33
  if (!files) {
40
34
  return {};
41
35
  }
@@ -49,12 +43,11 @@ class CommandBuilder {
49
43
  });
50
44
  }
51
45
  return files.reduce?.((acc, value) => {
52
- const ext = node_path_1.default.extname(value);
46
+ const ext = path.extname(value);
53
47
  if (ext !== '.proto') {
54
48
  return acc;
55
49
  }
56
- // eslint-disable-next-line security/detect-non-literal-fs-filename
57
- const contents = node_fs_1.default.readFileSync(value); // nosemgrep: eslint.detect-non-literal-fs-filename
50
+ const contents = fs.readFileSync(value); // nosemgrep: eslint.detect-non-literal-fs-filename
58
51
  if (!contents.includes('package ua.gov.diia')) {
59
52
  return acc;
60
53
  }
@@ -69,5 +62,4 @@ class CommandBuilder {
69
62
  }, {});
70
63
  }
71
64
  }
72
- exports.CommandBuilder = CommandBuilder;
73
65
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAwB;AACxB,0DAA4B;AAE5B,+BAA2B;AAI3B,IAAY,QAIX;AAJD,WAAY,QAAQ;IAChB,qBAAS,CAAA;IACT,yBAAa,CAAA;IACb,6BAAiB,CAAA;AACrB,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,MAAsB,cAAc;IAET;IACA;IACA;IACA;IACA;IALvB,YACuB,MAAc,EACd,cAAuB,EACvB,OAAe,EACf,SAAiB,EACjB,UAAoB;QAJpB,WAAM,GAAN,MAAM,CAAQ;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AC,QAAQ,CAAC,QAAQ,CAAC,CAAC;iBAC9E,IAAI,CAAC,GAAG,CAAC,CAAA;YAEd,OAAO,EAAE,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAA;QAC7E,CAAC,EAAE,EAAE,CAAC,CAAA;IACV,CAAC;CAKJ"}
@@ -1,7 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const index_1 = require("./index");
4
- class JavaCommandBuilder extends index_1.CommandBuilder {
1
+ import { CommandBuilder } from './index.js';
2
+ export default class JavaCommandBuilder extends CommandBuilder {
5
3
  async protocCommand() {
6
4
  const command = [
7
5
  'protoc',
@@ -15,5 +13,4 @@ class JavaCommandBuilder extends index_1.CommandBuilder {
15
13
  }
16
14
  async postProcess() { }
17
15
  }
18
- exports.default = JavaCommandBuilder;
19
16
  //# sourceMappingURL=javaCommandBuilder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"javaCommandBuilder.js","sourceRoot":"","sources":["../../src/command/javaCommandBuilder.ts"],"names":[],"mappings":";;AAAA,mCAAwC;AAExC,MAAqB,kBAAmB,SAAQ,sBAAc;IAC1D,KAAK,CAAC,aAAa;QACf,MAAM,OAAO,GAAG;YACZ,QAAQ;YACR,sCAAsC;YACtC,cAAc,IAAI,CAAC,SAAS,EAAE;YAC9B,mDAAmD;YACnD,QAAQ,IAAI,CAAC,OAAO,IAAI,MAAM,IAAI,CAAC,KAAK,EAAE,EAAE;SAC/C,CAAA;QAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;QAEpC,OAAO,OAAO,CAAA;IAClB,CAAC;IAED,KAAK,CAAC,WAAW,KAAmB,CAAC;CACxC;AAhBD,qCAgBC"}
1
+ {"version":3,"file":"javaCommandBuilder.js","sourceRoot":"","sources":["../../src/command/javaCommandBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,cAAc;IAC1D,KAAK,CAAC,aAAa;QACf,MAAM,OAAO,GAAG;YACZ,QAAQ;YACR,sCAAsC;YACtC,cAAc,IAAI,CAAC,SAAS,EAAE;YAC9B,mDAAmD;YACnD,QAAQ,IAAI,CAAC,OAAO,IAAI,MAAM,IAAI,CAAC,KAAK,EAAE,EAAE;SAC/C,CAAA;QAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;QAEpC,OAAO,OAAO,CAAA;IAClB,CAAC;IAED,KAAK,CAAC,WAAW,KAAmB,CAAC;CACxC"}
@@ -1,21 +1,15 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- /* eslint-disable security/detect-non-literal-fs-filename */
7
- const node_events_1 = require("node:events");
8
- const node_fs_1 = require("node:fs");
9
- const promises_1 = __importDefault(require("node:fs/promises"));
10
- const node_path_1 = __importDefault(require("node:path"));
11
- const promises_2 = require("node:stream/promises");
12
- const glob_1 = require("glob");
13
- const lodash_1 = require("lodash");
14
- const index_1 = require("./index");
15
- // import "designSystem/molecules/attentionIconMessageMlc.proto";
16
- const importRegex = /import "(?<path>[^"]+)";/;
17
- const slashPrefix = /^\/+/;
18
- class PythonCommandBuilder extends index_1.CommandBuilder {
1
+ import { once } from 'node:events';
2
+ import { createWriteStream, existsSync } from 'node:fs';
3
+ import fsPromises from 'node:fs/promises';
4
+ import path from 'node:path';
5
+ import { finished } from 'node:stream/promises';
6
+ import { glob } from 'glob';
7
+ import snakeCase from 'lodash/snakeCase.js';
8
+ import { CommandBuilder } from './index.js';
9
+ export default class PythonCommandBuilder extends CommandBuilder {
10
+ // import "designSystem/molecules/attentionIconMessageMlc.proto";
11
+ static importRegex = /import "(?<path>[^"]+)";/;
12
+ static slashPrefix = /^\/+/;
19
13
  cardinalDependencies = {
20
14
  'node_modules/@diia-inhouse/types/dist/proto': 'types_proto',
21
15
  'node_modules/@diia-inhouse/design-system/dist/proto': 'design_system_proto',
@@ -32,8 +26,8 @@ class PythonCommandBuilder extends index_1.CommandBuilder {
32
26
  '--proto_path=node_modules/protobufjs/google',
33
27
  '--proto_path=/usr/local/include',
34
28
  ...Object.keys(this.cardinalDependencies)
35
- .filter((path) => (0, node_fs_1.existsSync)(path)) // nosemgrep: eslint.detect-non-literal-fs-filename
36
- .map((path) => `--proto_path=${path}`),
29
+ .filter((depPath) => existsSync(depPath)) // nosemgrep: eslint.detect-non-literal-fs-filename
30
+ .map((depPath) => `--proto_path=${depPath}`),
37
31
  ];
38
32
  for (const protoPath of this.protoPaths) {
39
33
  command.push(`--proto_path ${protoPath}`);
@@ -59,21 +53,21 @@ class PythonCommandBuilder extends index_1.CommandBuilder {
59
53
  const mapping = {};
60
54
  let replaceRules = [];
61
55
  for (const dep in this.cardinalDependencies) {
62
- const files = await (0, glob_1.glob)(dep + protoPattern);
56
+ const files = await glob(dep + protoPattern);
63
57
  for (const file of files) {
64
- const res = file.replace(dep, '').replace(slashPrefix, '');
58
+ const res = file.replace(dep, '').replace(PythonCommandBuilder.slashPrefix, '');
65
59
  mapping[res] = this.cardinalDependencies[dep];
66
60
  this.logger.log(`I'm putting ${res} as ${dep} for later mapping`);
67
61
  }
68
62
  }
69
- const localProtos = await (0, glob_1.glob)('proto' + protoPattern);
63
+ const localProtos = await glob(`proto${protoPattern}`);
70
64
  const rulesTasks = [];
71
65
  for (const localProto of localProtos) {
72
66
  rulesTasks.push(replaceRulesTask(localProto, mapping, this.outputDir, this.logger));
73
67
  }
74
68
  const rules = await Promise.all(rulesTasks);
75
69
  replaceRules = [...new Map(rules.flat().map((rule) => [rule.regex.source, rule])).values()];
76
- const generatedFiles = await (0, glob_1.glob)(this.outputDir + '/**/*.py');
70
+ const generatedFiles = await glob(`${this.outputDir}/**/*.py`);
77
71
  const tasks = [];
78
72
  for (const generatedFile of generatedFiles) {
79
73
  tasks.push(fileMapper(generatedFile, replaceRules, this.logger));
@@ -81,7 +75,6 @@ class PythonCommandBuilder extends index_1.CommandBuilder {
81
75
  await Promise.all(tasks);
82
76
  }
83
77
  }
84
- exports.default = PythonCommandBuilder;
85
78
  function doubleInnerUnderscores(str) {
86
79
  return str.replaceAll(/([\da-z])_(?=[\da-z])/gi, '$1__');
87
80
  }
@@ -89,19 +82,19 @@ function escapeRegex(str) {
89
82
  return str.replaceAll(/[$()*+.?[\\\]^{|}]/g, String.raw `\$&`);
90
83
  }
91
84
  async function touchFilesInTree(dirPath, fileName, logger) {
92
- const entries = await promises_1.default.readdir(dirPath, { withFileTypes: true }); // nosemgrep: eslint.detect-non-literal-fs-filename
93
- const targetFile = node_path_1.default.join(dirPath, fileName); // nosemgrep: eslint.detect-non-literal-fs-filename
85
+ const entries = await fsPromises.readdir(dirPath, { withFileTypes: true }); // nosemgrep: eslint.detect-non-literal-fs-filename
86
+ const targetFile = path.join(dirPath, fileName); // nosemgrep: eslint.detect-non-literal-fs-filename
94
87
  try {
95
- const handle = await promises_1.default.open(targetFile, 'a'); // nosemgrep: eslint.detect-non-literal-fs-filename
88
+ const handle = await fsPromises.open(targetFile, 'a'); // nosemgrep: eslint.detect-non-literal-fs-filename
96
89
  await handle.utimes(new Date(), new Date()); // nosemgrep: eslint.detect-non-literal-fs-filename
97
90
  await handle.close();
98
91
  }
99
92
  catch (err) {
100
- logger.log(`Could not touch file in ${dirPath}: ${err instanceof Error ? err.message : err}`);
93
+ logger.log(`Could not touch file in ${dirPath}: ${err instanceof Error ? err.message : String(err)}`);
101
94
  }
102
95
  for (const entry of entries) {
103
96
  if (entry.isDirectory()) {
104
- const fullPath = node_path_1.default.join(dirPath, entry.name); // nosemgrep: eslint.detect-non-literal-fs-filename
97
+ const fullPath = path.join(dirPath, entry.name); // nosemgrep: eslint.detect-non-literal-fs-filename
105
98
  await touchFilesInTree(fullPath, fileName, logger);
106
99
  }
107
100
  }
@@ -110,13 +103,12 @@ async function replaceRulesTask(localProto, mapping, outputDir, logger) {
110
103
  const replaceRules = [];
111
104
  let handle;
112
105
  try {
113
- handle = await promises_1.default.open(localProto); // nosemgrep: eslint.detect-non-literal-fs-filename
114
- const protoDirname = node_path_1.default.dirname(localProto);
115
- const protoFilename = node_path_1.default.basename(localProto, '.proto');
116
- const protoFilenameSnake = (0, lodash_1.snakeCase)(protoFilename);
106
+ handle = await fsPromises.open(localProto); // nosemgrep: eslint.detect-non-literal-fs-filename
107
+ const protoDirname = path.dirname(localProto);
108
+ const protoFilename = path.basename(localProto, '.proto');
109
+ const protoFilenameSnake = snakeCase(protoFilename);
117
110
  const protoFilenameSnakeImportAlies = doubleInnerUnderscores(protoFilenameSnake);
118
111
  if (protoDirname === 'proto') {
119
- // eslint-disable-next-line security/detect-non-literal-regexp
120
112
  const rootImportRegex = new RegExp(// nosemgrep: eslint.detect-non-literal-regexp
121
113
  `^${escapeRegex(`import ${protoFilenameSnake}_pb2 as ${protoFilenameSnakeImportAlies}__pb2`)}`);
122
114
  replaceRules.push({
@@ -125,21 +117,20 @@ async function replaceRulesTask(localProto, mapping, outputDir, logger) {
125
117
  });
126
118
  }
127
119
  for await (const line of handle.readLines()) {
128
- const result = importRegex.exec(line);
120
+ const result = PythonCommandBuilder.importRegex.exec(line);
129
121
  const importPath = result?.groups?.path;
130
122
  if (importPath === undefined) {
131
123
  continue;
132
124
  }
133
- const dirpath = node_path_1.default.dirname(importPath);
134
- const fileName = node_path_1.default.basename(importPath, '.proto');
125
+ const dirpath = path.dirname(importPath);
126
+ const fileName = path.basename(importPath, '.proto');
135
127
  if (dirpath === '.') {
136
128
  const depname = mapping[importPath];
137
129
  if (depname === undefined) {
138
- logger.log(`Looking for ${importPath} in mapper, received ${depname}. Skipping the mapper.`);
130
+ logger.log(`Looking for ${importPath} in mapper, received undefined. Skipping the mapper.`);
139
131
  continue;
140
132
  }
141
133
  logger.log(`I'm looking for ${fileName} (${fileName}) to map as "import ${fileName}_pb2"`);
142
- // eslint-disable-next-line security/detect-non-literal-regexp
143
134
  const flatImportRegex = new RegExp(`^${escapeRegex(`import ${fileName}_pb2`)}`); // nosemgrep: eslint.detect-non-literal-regexp
144
135
  replaceRules.push({
145
136
  regex: flatImportRegex,
@@ -149,12 +140,11 @@ async function replaceRulesTask(localProto, mapping, outputDir, logger) {
149
140
  else {
150
141
  const depname = mapping[importPath];
151
142
  if (depname === undefined) {
152
- logger.log(`Looking for ${importPath} in mapper, received ${depname}. Skipping the mapper.`);
143
+ logger.log(`Looking for ${importPath} in mapper, received undefined. Skipping the mapper.`);
153
144
  continue;
154
145
  }
155
146
  const importName = dirpath.replaceAll('/', '.');
156
147
  logger.log(`I'm looking for ${fileName} (${fileName}) to map as "from ${importName} import ${fileName}_pb2"`);
157
- // eslint-disable-next-line security/detect-non-literal-regexp
158
148
  const nestedImportRegex = new RegExp(`^${escapeRegex(`from ${importName} import ${fileName}_pb2`)}`); // nosemgrep: eslint.detect-non-literal-regexp
159
149
  replaceRules.push({
160
150
  regex: nestedImportRegex,
@@ -175,16 +165,16 @@ async function fileMapper(generatedFile, replaceRules, logger) {
175
165
  let wstream;
176
166
  let isOk = false;
177
167
  try {
178
- handle = await promises_1.default.open(generatedFile); // nosemgrep: eslint.detect-non-literal-fs-filename
179
- wstream = (0, node_fs_1.createWriteStream)(generatedFile + '.new'); // nosemgrep: eslint.detect-non-literal-fs-filename
168
+ handle = await fsPromises.open(generatedFile); // nosemgrep: eslint.detect-non-literal-fs-filename
169
+ wstream = createWriteStream(`${generatedFile}.new`); // nosemgrep: eslint.detect-non-literal-fs-filename
180
170
  for await (const line of handle.readLines()) {
181
171
  let mutableLine = line;
182
172
  for (const rule of replaceRules) {
183
173
  mutableLine = mutableLine.replace(rule.regex, rule.to);
184
174
  }
185
- const writeOk = wstream.write(mutableLine + '\n');
175
+ const writeOk = wstream.write(`${mutableLine}\n`);
186
176
  if (!writeOk) {
187
- await (0, node_events_1.once)(wstream, 'drain');
177
+ await once(wstream, 'drain');
188
178
  }
189
179
  }
190
180
  isOk = true;
@@ -195,23 +185,23 @@ async function fileMapper(generatedFile, replaceRules, logger) {
195
185
  }
196
186
  if (wstream) {
197
187
  wstream.end();
198
- await (0, promises_2.finished)(wstream);
188
+ await finished(wstream);
199
189
  // nosemgrep: eslint.detect-non-literal-fs-filename
200
- if (!isOk && (0, node_fs_1.existsSync)(generatedFile + '.new')) {
201
- await promises_1.default.unlink(generatedFile + '.new'); // nosemgrep: eslint.detect-non-literal-fs-filename
190
+ if (!isOk && existsSync(`${generatedFile}.new`)) {
191
+ await fsPromises.unlink(`${generatedFile}.new`); // nosemgrep: eslint.detect-non-literal-fs-filename
202
192
  }
203
193
  }
204
194
  }
205
195
  try {
206
- await promises_1.default.rename(generatedFile + '.new', generatedFile); // nosemgrep: eslint.detect-non-literal-fs-filename
196
+ await fsPromises.rename(`${generatedFile}.new`, generatedFile); // nosemgrep: eslint.detect-non-literal-fs-filename
207
197
  logger.log('Update successful!');
208
198
  }
209
199
  catch (err) {
210
200
  // nosemgrep: eslint.detect-non-literal-fs-filename
211
- if ((0, node_fs_1.existsSync)(generatedFile + '.new')) {
212
- await promises_1.default.unlink(generatedFile + '.new'); // nosemgrep: eslint.detect-non-literal-fs-filename
201
+ if (existsSync(`${generatedFile}.new`)) {
202
+ await fsPromises.unlink(`${generatedFile}.new`); // nosemgrep: eslint.detect-non-literal-fs-filename
213
203
  }
214
- logger.log(`Final swap failed: ${err}`);
204
+ logger.log(`Final swap failed: ${err instanceof Error ? err.message : String(err)}`);
215
205
  throw err;
216
206
  }
217
207
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pythonCommandBuilder.js","sourceRoot":"","sources":["../../src/command/pythonCommandBuilder.ts"],"names":[],"mappings":";;;;;AAAA,4DAA4D;AAC5D,6CAAkC;AAClC,qCAAoE;AACpE,gEAAyC;AACzC,0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