Skip to content

Commit dc1e4d1

Browse files
committed
FIX: use new Notion.createUser method
1 parent 9968682 commit dc1e4d1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
},
6666
"publisher": "neurosity",
6767
"dependencies": {
68-
"@neurosity/notion": "^4.2.1",
68+
"@neurosity/notion": "^4.2.5",
6969
"@sindresorhus/do-not-disturb": "^1.1.0",
7070
"@types/regression": "^2.0.0",
7171
"@types/universal-analytics": "^0.4.3",

src/login.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as vscode from "vscode";
22

3-
import { Notion, NotionUser } from "@neurosity/notion";
3+
import { Notion } from "@neurosity/notion";
44

55
export let notion: any;
66
export let logged_in: boolean = false;
@@ -91,7 +91,7 @@ export function loginFromSavedState(saved_state: any) {
9191
// This try/catch might be able to detect invalid saved state, as
9292
// it will probably throw an error
9393
try {
94-
const user = new NotionUser(
94+
const user = Notion.createUser(
9595
saved_state,
9696
saved_state.stsTokenManager,
9797
saved_state

0 commit comments

Comments
 (0)