@asyncapi/generator 1.8.12 → 1.8.16

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.
@@ -0,0 +1,2 @@
1
+ #we need to explicitly exclude them as some are commit to the repo
2
+ sonar.exclusions=test/test-project/node_modules/@asyncapi/html-template/**/*
@@ -68,9 +68,7 @@ function getParamSuggestion(wrongParam, configParams) {
68
68
  const sortInt = (a, b) => {
69
69
  return a[0] - b[0];
70
70
  };
71
- const arr = Object.keys(configParams).map(param => [levenshtein(wrongParam, param), param]);
72
-
73
- return arr.sort(sortInt)[0][1];
71
+ return Object.keys(configParams).map(param => [levenshtein(wrongParam, param), param]).sort(sortInt)[0][1];
74
72
  }
75
73
 
76
74
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asyncapi/generator",
3
- "version": "1.8.12",
3
+ "version": "1.8.16",
4
4
  "description": "The AsyncAPI generator. It can generate documentation, code, anything!",
5
5
  "main": "./lib/generator.js",
6
6
  "bin": {
@@ -48,10 +48,10 @@
48
48
  "license": "Apache-2.0",
49
49
  "homepage": "https://github.com/asyncapi/generator",
50
50
  "dependencies": {
51
- "@asyncapi/avro-schema-parser": "^0.5.0",
52
- "@asyncapi/generator-react-sdk": "^0.2.13",
51
+ "@asyncapi/avro-schema-parser": "^0.6.0",
52
+ "@asyncapi/generator-react-sdk": "^0.2.16",
53
53
  "@asyncapi/openapi-schema-parser": "^2.0.1",
54
- "@asyncapi/parser": "^1.9.1",
54
+ "@asyncapi/parser": "^1.10.1",
55
55
  "@asyncapi/raml-dt-schema-parser": "^2.0.1",
56
56
  "@npmcli/arborist": "^2.2.4",
57
57
  "ajv": "^6.10.2",