Skip to content

Commit a6beb6b

Browse files
Bump @looker/sdk from 0.2.0-beta.29 to 0.2.0-beta.32 (#647)
* Bump @looker/sdk from 0.2.0-beta.29 to 0.2.0-beta.32 Bumps [@looker/sdk](https://github.com/looker-open-source/sdk-codegen) from 0.2.0-beta.29 to 0.2.0-beta.32. - [Release notes](https://github.com/looker-open-source/sdk-codegen/releases) - [Commits](https://github.com/looker-open-source/sdk-codegen/commits) Signed-off-by: dependabot-preview[bot] <[email protected]> * remove api version from settings Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Daniel Christopher <[email protected]>
1 parent c34927e commit a6beb6b

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

packages/server/looker-sample.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
[Looker]
22

3-
# API version is required. 3.1 and 3.0 are currently supported. 3.1 is the current version. 3.0 is deprecated.
4-
api_version=3.1
5-
63
# Base URL for API. Do not include /api/* in the url
74
base_url=https://<your-looker-endpoint>:19999
85

packages/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"develop": "node-env-run src --exec nodemon | pino-colada"
1717
},
1818
"dependencies": {
19-
"@looker/sdk": "^0.2.0-beta.29",
19+
"@looker/sdk": "^0.2.0-beta.32",
2020
"@types/node-fetch": "^2.5.5",
2121
"dotenv": "^8.2.0",
2222
"node-fetch": "^2.6.0"

packages/server/src/forwardRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const session = new NodeSession(settings)
4646

4747
const forwardRequest = async (req: Request) => {
4848
const endpoint = req.url.replace('/api/', '')
49-
const apiUrl = `${settings.base_url}/api/${settings.api_version}/${endpoint}`
49+
const apiUrl = `${settings.base_url}/api/3.1/${endpoint}`
5050
const sessionHeaders = await session.login()
5151

5252
const response = await fetch(apiUrl, {

packages/www/src/documentation/getting-started/data-fetching.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ To validate that the proxy server is configured correctly it's helpful to query
2121
```js
2222
;() => {
2323
const [user, setUser] = useState()
24-
2524
function fetchUser() {
2625
fetch('/api/user')
2726
.then(response => response.json())
2827
.then(state => setUser(state))
2928
}
30-
3129
return (
3230
<>
3331
<Button onClick={fetchUser}>Fetch User Data</Button>

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,10 +2285,10 @@
22852285
dependencies:
22862286
prettier ">=1.19.1"
22872287

2288-
"@looker/sdk@^0.2.0-beta.29":
2289-
version "0.2.0-beta.29"
2290-
resolved "https://registry.yarnpkg.com/@looker/sdk/-/sdk-0.2.0-beta.29.tgz#2767fd771ec12c322313ce93558e84c0b7b68c90"
2291-
integrity sha512-gzzvnFJj6nuGReljfxIIhiAJkSodTXQsoiYJx31BXaU0JDaaky0P6BlKbYvV7B+41l/+hF/2ZXHzdT8+PL0QNA==
2288+
"@looker/sdk@^0.2.0-beta.32":
2289+
version "0.2.0-beta.32"
2290+
resolved "https://registry.yarnpkg.com/@looker/sdk/-/sdk-0.2.0-beta.32.tgz#8d99e39a048fc9e438d8517af5fe59d790aff9b3"
2291+
integrity sha512-57AKJPJIuMahVVGWvrpaO5WwzvONNpYV/Gyvqd2l9SrNMFJroktsqCjhhOg4txkAVYIufVJ/xTRKkM4DKxAeYQ==
22922292
dependencies:
22932293
"@types/ini" "^1.3.30"
22942294
"@types/node" "^12.12.6"

0 commit comments

Comments
 (0)