Skip to content

Commit 2a5a272

Browse files
ackintoshwing328
authored andcommitted
Bump up babel-cli version to fix security alert (#3121)
* Bump up babel version * Update samples bin/javascript-flowtyped-petstore.sh * The dependency `babel-preset-react-app` requires `NODE_ENV` or `BABEL_ENV` * Run `env BABEL_ENV=development npm run build` to update the samples
1 parent 6c98046 commit 2a5a272

16 files changed

Lines changed: 1146 additions & 1181 deletions

File tree

modules/openapi-generator/src/main/resources/Javascript-Flowtyped/README.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Module system
1818
To build an compile the flow typed sources to javascript use:
1919
```
2020
npm install
21-
npm run build
21+
# The dependency `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` environment variables
22+
env BABEL_ENV={YOUR_ENV} npm run build
2223
```
2324

2425
### Publishing
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2-
"presets": ["react-app"],
3-
"plugins": ["transform-flow-strip-types"]
2+
"presets": [
3+
"react-app",
4+
"@babel/preset-flow"
5+
],
6+
"plugins": [
7+
"@babel/plugin-transform-flow-strip-types"
8+
]
49
}

modules/openapi-generator/src/main/resources/Javascript-Flowtyped/package.mustache

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
"portable-fetch": "^3.0.0"
2828
},
2929
"devDependencies": {
30-
"babel-cli": "^6.26.0",
31-
"babel-core": "^6.26.3",
32-
"babel-plugin-transform-flow-strip-types": "^6.22.0",
33-
"babel-preset-react-app": "^3.1.1",
30+
"@babel/cli": "^7.0.0",
31+
"@babel/core": "^7.0.0",
32+
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
33+
"@babel/preset-flow": "^7.0.0",
34+
"babel-preset-react-app": "^7.0.0",
3435
"flow-copy-source": "^1.3.0",
3536
"rimraf": "^2.6.2"
3637
}
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2-
"presets": ["react-app"],
3-
"plugins": ["transform-flow-strip-types"]
2+
"presets": [
3+
"react-app",
4+
"@babel/preset-flow"
5+
],
6+
"plugins": [
7+
"@babel/plugin-transform-flow-strip-types"
8+
]
49
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.0-SNAPSHOT
1+
4.0.2-SNAPSHOT

samples/client/petstore/javascript-flowtyped/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Module system
1818
To build an compile the flow typed sources to javascript use:
1919
```
2020
npm install
21-
npm run build
21+
# The dependency `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` environment variables
22+
env BABEL_ENV={YOUR_ENV} npm run build
2223
```
2324

2425
### Publishing

0 commit comments

Comments
 (0)