@darraghor/nest-backend-libs 1.35.1 → 1.37.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.
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  rm -rf $1/src
3
3
  rm -rf $1/dist
4
- npx @openapitools/openapi-generator-cli generate -i ./open-api/swagger.json -g typescript-fetch -o $1 --additional-properties=typescriptThreePlus=true,withInterfaces=true,npmName=shared-api-client,supportsES6=true,modelPropertyNaming=original,enumPropertyNaming=original
4
+ npx @openapitools/openapi-generator-cli generate -i ./open-api/swagger.json -g typescript-fetch -o $1 --additional-properties=typescriptThreePlus=true,withInterfaces=true,npmName=$4,supportsES6=true,modelPropertyNaming=original,enumPropertyNaming=original
5
5
  cp ./node_modules/@darraghor/nest-backend-libs/dist/open-api-generation/api-client-templates/api-client-ts-config-template.json $1/tsconfig.json
6
6
  cp ./node_modules/@darraghor/nest-backend-libs/dist/open-api-generation/api-client-templates/package-json-template.json $1/package.json
7
7
  cd $1
@@ -24,7 +24,8 @@ let CliCommandService = class CliCommandService {
24
24
  this.logger = logger;
25
25
  }
26
26
  async execAsPromised(command, commandArguments, cwd, shell) {
27
- this.logger.warn(`Executing cli command ${command} in ${cwd}. Note: Do NOT allow user input for this function as inputs are not sanitised or checked and a hacker could take over your system.`);
27
+ this.logger.warn(`Executing cli command '${command}' in '${cwd}'`);
28
+ this.logger.warn("Note: Do NOT allow user input as parameters for 'execAsPromised' as inputs are not sanitised and a hacker could take over your system.");
28
29
  const result = await execPromise(`${command} ${commandArguments.join(" ")}`, {
29
30
  shell: shell || "/bin/bash",
30
31
  cwd,
@@ -1 +1 @@
1
- {"version":3,"file":"CliCommandService.js","sourceRoot":"","sources":["../../src/runningCommandLine/CliCommandService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0C;AAC1C,iDAAmC;AACnC,gDAAgD;AAChD,gDAAwB;AACxB,oFAA4D;AAE5D,MAAM,WAAW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C;QACF,MAAM,MAAM,GAAG,MAAM,WAAW,CAC5B,GAAG,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAC1C;YACI,KAAK,EAAE,KAAK,IAAI,WAAW;YAC3B,GAAG;SACN,CACJ,CAAC;QAEF,OAAO,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;CACJ,CAAA;AAtBY,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAE4B,2BAAiB;GAD7C,iBAAiB,CAsB7B;AAtBY,8CAAiB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darraghor/nest-backend-libs",
3
- "version": "1.35.1",
3
+ "version": "1.37.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Some helpers for personal projects in nestjs",
6
6
  "homepage": "https://github.com/darraghoriordan/nest-backend-libs",