Skip to content

Commit c161815

Browse files
authored
Merge pull request #2152 from aeternity/dependabot/npm_and_yarn/lodash-4.17.23
chore(deps): bump lodash from 4.17.21 to 4.17.23
2 parents 2f3c8cb + b048ee0 commit c161815

6 files changed

Lines changed: 25 additions & 20 deletions

File tree

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"@types/sinon": "^17.0.4",
116116
"@typescript-eslint/eslint-plugin": "^7.15.0",
117117
"@typescript-eslint/parser": "^7.15.0",
118-
"autorest": "^3.7.1",
118+
"autorest": "^3.7.2",
119119
"babel-loader": "^10.0.0",
120120
"babel-plugin-import-globals": "^2.0.0",
121121
"babel-plugin-transform-import-meta": "^2.3.2",

tooling/autorest/compiler.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ directive:
1515
throw errors even for explained response with not 200 code
1616
https://github.com/Azure/autorest.typescript/issues/463#issuecomment-524203041
1717
18-
version: ^3.7.1
18+
version: 3.7.2
1919
use-extension:
20-
'@autorest/typescript': ^6.0.39
21-
'@autorest/modelerfour': ^4.27.0
20+
'@autorest/typescript': 6.0.55
21+
'@autorest/modelerfour': 4.27.2
2222
# replace with a link to https://github.com/aeternity/aesophia_http/blob/master/config/swagger.yaml
2323
# at specific version after fixing https://github.com/aeternity/aesophia_http/issues/87
2424
input-file: compiler-swagger.yaml

tooling/autorest/middleware.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ directive:
184184
set: middleware
185185
reason: the whole SDK already about aeternity
186186

187-
version: ^3.7.1
187+
version: 3.7.2
188188
use-extension:
189-
'@autorest/typescript': ^6.0.39
190-
'@autorest/modelerfour': ^4.27.0
189+
'@autorest/typescript': 6.0.55
190+
'@autorest/modelerfour': 4.27.2
191191
input-file: middleware-openapi.yaml
192192
output-folder: ../../src/apis/middleware
193193
source-code-folder-path: .

tooling/autorest/node.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ directive:
148148
set: node
149149
reason: the whole SDK already about aeternity
150150

151-
version: ^3.7.1
151+
version: 3.7.2
152152
use-extension:
153-
'@autorest/typescript': ^6.0.39
154-
'@autorest/modelerfour': ^4.27.0
153+
'@autorest/typescript': 6.0.55
154+
'@autorest/modelerfour': 4.27.2
155155
input-file: https://raw.githubusercontent.com/aeternity/aeternity/v7.3.0-rc5/apps/aehttp/priv/oas3.yaml
156156
output-folder: ../../src/apis/node
157157
source-code-folder-path: .

tooling/autorest/postprocessing.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,14 @@ await Promise.all(
132132
/extends PaginatedResponse,(\s+)(\w+) {}/gs,
133133
'extends $2,$1PaginatedResponse {}',
134134
);
135-
const responseRe = /export interface (\w+)\s+extends (\w+),\s+PaginatedResponse {}/s;
136-
while (content.match(responseRe)) {
137-
const [response, responseTypeName, dataTypeName] = content.match(responseRe);
135+
const responseRe = /export interface (\w+)\s+extends\s+(\w+),\s+PaginatedResponse {}/s;
136+
const responseReReversed =
137+
/export interface (\w+)\s+extends\s+PaginatedResponse,\s+(\w+) {}/s;
138+
let matchedResponse;
139+
while (
140+
(matchedResponse = content.match(responseRe) ?? content.match(responseReReversed))
141+
) {
142+
const [response, responseTypeName, dataTypeName] = matchedResponse;
138143
const regExp = new RegExp(
139144
String.raw`export interface ${dataTypeName} {\s+data: (\w+)\[\];\s+}\n\n`,
140145
's',

0 commit comments

Comments
 (0)