Skip to content

Commit

Permalink
Add minor fixes
Browse files Browse the repository at this point in the history
- Package building error is fixed
- FetchPolicy has been upgraded to `network-only`
  • Loading branch information
pinterid authored and schettn committed Jun 7, 2020
2 parents 26a456b + bc1c3b2 commit b06a8e8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
8 changes: 8 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The snek-client is provided under:

SPDX-License-Identifier: EUPL-1.2

Being under the terms of the European Union Public Licence version 1.2 only,
according with:

LICENSES/preferred/EUPL-1.2
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snek-client",
"version": "0.1.0",
"version": "0.1.1",
"description": "Enoy it.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -9,7 +9,8 @@
"build": "npx tsc"
},
"files": [
"lib"
"lib",
"LICENSES"
],
"repository": {
"type": "git",
Expand All @@ -35,8 +36,5 @@
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@types/js-cookie": "^2.2.6",
"typescript": "^3.8.3"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}
1 change: 1 addition & 0 deletions src/endpoints/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class Apollo implements ApolloEndpoint {
return this.client.query<T>({
query: data,
errorPolicy: "all",
fetchPolicy: "network-only",
variables,
context: {
headers: { ...this.headers, ...headers },
Expand Down
2 changes: 1 addition & 1 deletion src/session/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import SnekTemplate from "../templates/snek/index";
import SnekTasks from "../templates/snek/gql/tasks/index";
//> Interfaces
// Contains the interface for the apollo endpoint
import { ApolloEndpoint } from "../../src/endpoints/index";
import { ApolloEndpoint } from "../endpoints/index";
// Contains basic session interfaces
import { User } from "./index";
//#endregion
Expand Down

0 comments on commit b06a8e8

Please sign in to comment.