Skip to content

Commit

Permalink
Merge branch 'master' into navi
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 16, 2023
2 parents 2d60c3d + 23f96f5 commit cba1be3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "git",
"url": "git+https://github.com/graphhopper/graphhopper-maps.git"
},
"version": "0.6",
"version": "0.7.navi",
"license": "Apache-2.0",
"scripts": {
"format": "prettier --write \"src/**/*.{css,ts,tsx,html}\" \"test/**/*.{js,ts,jsx,tsx}\" \"jest.config.js\" \"webpack.*.js\" \"config.js\"",
Expand Down
3 changes: 2 additions & 1 deletion src/api/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export class ApiImpl implements Api {
mode: 'cors',
body: JSON.stringify(completeRequest),
headers: {
Accept: 'application/json',
'User-Agent': `GraphHopperMaps/${SOURCE_VERSION}`,
'Accept': 'application/json',
'Content-Type': 'application/json',
},
})
Expand Down
1 change: 1 addition & 0 deletions src/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ declare module 'react-responsive' {

// defined by webpack
declare const GIT_SHA: string
declare const SOURCE_VERSION: string
1 change: 1 addition & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ module.exports = {
}),
new webpack.DefinePlugin({
GIT_SHA: JSON.stringify(gitSHA),
SOURCE_VERSION: package.version
}),
],

Expand Down

0 comments on commit cba1be3

Please sign in to comment.