Skip to content

Commit

Permalink
Merge pull request #774 from Emurgo/dependabot/npm_and_yarn/babel/pre…
Browse files Browse the repository at this point in the history
…set-env-7.5.0

Bump @babel/preset-env from 7.4.5 to 7.5.0
  • Loading branch information
SebastienGllmt committed Jul 13, 2019
2 parents 99bb66e + f257618 commit 3734a38
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 64 deletions.
10 changes: 5 additions & 5 deletions app/components/wallet/transactions/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,26 +88,26 @@ const messages = defineMessages({
});

const assuranceLevelTranslations = defineMessages({
[assuranceLevels.LOW]: {
low: {
id: 'wallet.transaction.assuranceLevel.low',
defaultMessage: '!!!low',
},
[assuranceLevels.MEDIUM]: {
medium: {
id: 'wallet.transaction.assuranceLevel.medium',
defaultMessage: '!!!medium',
},
[assuranceLevels.HIGH]: {
high: {
id: 'wallet.transaction.assuranceLevel.high',
defaultMessage: '!!!high',
},
});

const stateTranslations = defineMessages({
[transactionStates.PENDING]: {
pending: {
id: 'wallet.transaction.state.pending',
defaultMessage: '!!!pending',
},
[transactionStates.FAILED]: {
failed: {
id: 'wallet.transaction.state.failed',
defaultMessage: '!!!failed',
},
Expand Down
5 changes: 3 additions & 2 deletions app/stores/toplevel/ProfileStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export default class ProfileStore extends Store {
};

getThemeVars = ({ theme }: { theme: string }) => {
if (theme) return require(`../../themes/prebuilt/${theme}.js`);
if (theme) return require(`../../themes/prebuilt/${theme}.js`).default;
return require(`../../themes/prebuilt/${ProfileStore.getDefaultTheme()}.js`); // default
};

Expand All @@ -381,7 +381,8 @@ export default class ProfileStore extends Store {
// ========== Terms of Use ========== //

@computed get termsOfUse(): string {
return require(`../../i18n/locales/terms-of-use/${environment.API}/${this.currentLocale}.md`);
const API = environment.API;
return require(`../../i18n/locales/terms-of-use/${API}/${this.currentLocale}.md`);
}

@computed get hasLoadedTermsOfUseAcceptance(): boolean {
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function(api) {
"@babel/preset-env",
{
"corejs": 2,
"modules": "commonjs",
"modules": api.env('jest') ? "commonjs" : 'auto',
"useBuiltIns": "entry"
}
],
Expand Down
128 changes: 73 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@babel/plugin-proposal-export-namespace-from": "7.5.2",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-transform-runtime": "7.5.0",
"@babel/preset-env": "7.4.5",
"@babel/preset-env": "7.5.0",
"@babel/preset-flow": "7.0.0",
"@babel/preset-react": "7.0.0",
"@babel/register": "7.4.4",
Expand Down

0 comments on commit 3734a38

Please sign in to comment.