Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Commit 344e3cd

Browse files
committed
fix: update babel config to resolve regeneratorRuntime issue.
1 parent 9e7890a commit 344e3cd

File tree

13 files changed

+1709
-1045
lines changed

13 files changed

+1709
-1045
lines changed

Diff for: .idea/dictionaries/coder2000.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/client/.babelrc

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"camel2DashComponentName": false
2323
},
2424
"icons"
25-
]
25+
],
26+
["@babel/plugin-transform-runtime", {
27+
"regenerator": true
28+
}]
2629
]
2730
}

Diff for: packages/client/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"devDependencies": {
1313
"@babel/cli": "^7.8.4",
1414
"@babel/core": "^7.9.6",
15+
"@babel/plugin-transform-runtime": "^7.10.1",
1516
"@babel/preset-env": "^7.9.6",
1617
"@babel/preset-react": "^7.9.4",
1718
"@babel/preset-typescript": "^7.9.0",
@@ -40,6 +41,7 @@
4041
},
4142
"dependencies": {
4243
"@apollo/react-hooks": "^3.1.5",
44+
"@babel/runtime": "^7.10.2",
4345
"@material-ui/core": "^4.10.0",
4446
"@material-ui/icons": "^4.9.1",
4547
"apollo-boost": "^0.4.9",

Diff for: packages/client/src/components/podcast/PodcastCard.tsx

+3-13
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ export function PodcastCard(props: PodcastProps) {
6565
const [anchorElement, setAnchorElement] = useState<null | HTMLElement>(null);
6666
const [visible, setVisible] = useState(true);
6767
const [expanded, setExpanded] = useState(false);
68-
const [deletePodcast] = useMutation<
69-
{ deleteOnePodcast: DeleteResponse },
70-
{ input: DeleteOneInput }
71-
>(DELETE_PODCAST);
68+
const [deletePodcast] = useMutation<{ deleteOnePodcast: DeleteResponse }, { input: DeleteOneInput }>(DELETE_PODCAST);
7269
const classes = useStyles();
7370

7471
const handleCardMenuOpen = (event: React.MouseEvent<HTMLButtonElement>) => {
@@ -109,17 +106,10 @@ export function PodcastCard(props: PodcastProps) {
109106
<CardContent>
110107
<Grid container>
111108
<Grid item xs={2}>
112-
<img
113-
src={podcast.image}
114-
height="150"
115-
width="150"
116-
alt="podcast logo"
117-
/>
109+
<img src={podcast.image} height="150" width="150" alt="podcast logo" />
118110
</Grid>
119111
<Grid item xs={10}>
120-
<Typography variant="body2">
121-
{podcast.description}
122-
</Typography>
112+
<Typography variant="body2">{podcast.description}</Typography>
123113
</Grid>
124114
</Grid>
125115
</CardContent>

Diff for: packages/client/src/components/podcast/PodcastList.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useQuery } from '@apollo/react-hooks';
33
import { gql } from 'apollo-boost';
44
import { Typography } from '@material-ui/core';
55
import { PageInfo, Podcast } from '../../interfaces';
6-
import PodcastCard from './PodcastCard';
6+
import { PodcastCard } from './PodcastCard';
77

88
interface PodcastEdge {
99
node: Podcast;
@@ -61,9 +61,7 @@ export function PodcastList() {
6161
) : (
6262
<>
6363
{data ? (
64-
data.podcasts.edges.map((edge) => (
65-
<PodcastCard podcast={edge.node} />
66-
))
64+
data.podcasts.edges.map((edge) => <PodcastCard podcast={edge.node} key={`podcast-${edge.node.id}`} />)
6765
) : (
6866
<>
6967
<Typography variant="h5">No Podcasts</Typography>

Diff for: packages/server/.graphqlconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Speakrr GraphQL Schema",
3-
"schemaPath": "./schema.gql",
3+
"schemaPath": "./schema.graphql",
44
"extensions": {
55
"endpoints": {
66
"Default GraphQL Endpoint": {

Diff for: packages/server/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,25 @@
2828
"migration:run": "ts-node -r tsconfig-paths/register node_modules/.bin/typeorm migration:run"
2929
},
3030
"dependencies": {
31-
"@nestjs-query/core": "^0.11.6",
32-
"@nestjs-query/query-graphql": "^0.11.6",
33-
"@nestjs-query/query-typeorm": "^0.11.6",
34-
"@nestjs/common": "7.0.13",
31+
"@nestjs-query/core": "^0.11.7",
32+
"@nestjs-query/query-graphql": "^0.11.7",
33+
"@nestjs-query/query-typeorm": "^0.11.7",
34+
"@nestjs/common": "7.1.1",
3535
"@nestjs/config": "^0.5.0",
36-
"@nestjs/core": "7.0.13",
37-
"@nestjs/graphql": "7.3.9",
38-
"@nestjs/platform-express": "^7.1.0",
36+
"@nestjs/core": "7.1.1",
37+
"@nestjs/graphql": "7.4.0",
38+
"@nestjs/platform-express": "^7.1.1",
3939
"@nestjs/schedule": "^0.4.0",
4040
"@nestjs/serve-static": "^2.1.1",
41-
"@nestjs/typeorm": "7.0.0",
42-
"apollo-server-express": "^2.13.1",
41+
"@nestjs/typeorm": "7.1.0",
42+
"apollo-server-express": "^2.14.1",
4343
"class-transformer": "^0.2.3",
4444
"class-validator": "^0.12.2",
4545
"dataloader": "^2.0.0",
4646
"dotenv": "^8.2.0",
4747
"graphql": "^14.0.0",
4848
"graphql-relay": "^0.6.0",
49-
"graphql-tools": "^6.0.1",
49+
"graphql-tools": "^6.0.3",
5050
"nestjs-pino": "^1.2.0",
5151
"pg": "^8.2.1",
5252
"reflect-metadata": "^0.1.13",
@@ -59,7 +59,7 @@
5959
"devDependencies": {
6060
"@nestjs/cli": "^7.2.0",
6161
"@nestjs/schematics": "^7.0.0",
62-
"@nestjs/testing": "^7.1.0",
62+
"@nestjs/testing": "^7.1.1",
6363
"@types/cron": "^1.7.2",
6464
"@types/express": "^4.17.6",
6565
"@types/jest": "25.2.3",
@@ -70,7 +70,7 @@
7070
"pino-pretty": "^4.0.0",
7171
"supertest": "^4.0.2",
7272
"ts-jest": "26.0.0",
73-
"ts-node": "^8.10.1",
73+
"ts-node": "^8.10.2",
7474
"tsconfig-paths": "^3.9.0",
7575
"typescript": "^3.9.3"
7676
},

0 commit comments

Comments
 (0)