File tree Expand file tree Collapse file tree 8 files changed +16
-19
lines changed Expand file tree Collapse file tree 8 files changed +16
-19
lines changed Original file line number Diff line number Diff line change 2
2
"tasks" : {
3
3
"npm" : " deno run -A scripts/build_npm.ts"
4
4
},
5
- "exclude" : [" npm" ],
6
- "imports" : {
7
- "~/" : " ./"
8
- }
5
+ "exclude" : [" npm" ]
9
6
}
Original file line number Diff line number Diff line change 1
- export * from "~ /src/core/studentClient.ts" ;
2
- export * from "~ /src/core/parentClient.ts" ;
1
+ export * from ". /src/core/studentClient.ts" ;
2
+ export * from ". /src/core/parentClient.ts" ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import type {
17
17
LessonsResponse ,
18
18
PupilFieldsResponse ,
19
19
} from "../types.ts" ;
20
- import { PING_INTERVAL } from "~/src /utils/consts.ts" ;
20
+ import { PING_INTERVAL } from ".. /utils/consts.ts" ;
21
21
22
22
/**
23
23
* Shared client for both parent and student. This is not exported and should not be used directly
Original file line number Diff line number Diff line change 1
1
import type { GetPupilsResponse } from "../types.ts" ;
2
2
3
- import { BaseClient } from "~/src /core/baseClient.ts" ;
4
- import { API_BASE_PARENT , BASE_URL } from "~/src /utils/consts.ts" ;
5
- import { parseCookies } from "~/src /utils/utils.ts" ;
3
+ import { BaseClient } from ".. /core/baseClient.ts" ;
4
+ import { API_BASE_PARENT , BASE_URL } from ".. /utils/consts.ts" ;
5
+ import { parseCookies } from ".. /utils/utils.ts" ;
6
6
/**
7
7
* Parent Client
8
8
*/
Original file line number Diff line number Diff line change 1
- import { assertRejects } from "~ /deps_dev.ts" ;
2
- import { ParentClient } from "~/src /core/parentClient.ts" ;
1
+ import { assertRejects } from "../.. /deps_dev.ts" ;
2
+ import { ParentClient } from ".. /core/parentClient.ts" ;
3
3
4
4
Deno . test ( "Throws when no email is provided" , async ( ) => {
5
5
const client = new ParentClient ( "" , "password" ) ;
Original file line number Diff line number Diff line change 1
- import { API_BASE_STUDENT , BASE_URL } from "~/src /utils/consts.ts" ;
2
- import { BaseClient } from "~/src /core/baseClient.ts" ;
3
- import { parseCookies } from "~/src /utils/utils.ts" ;
4
- import { RewardPurchaseResponse , RewardsResponse } from "~/src /types.ts" ;
1
+ import { API_BASE_STUDENT , BASE_URL } from ".. /utils/consts.ts" ;
2
+ import { BaseClient } from ".. /core/baseClient.ts" ;
3
+ import { parseCookies } from ".. /utils/utils.ts" ;
4
+ import { RewardPurchaseResponse , RewardsResponse } from ".. /types.ts" ;
5
5
6
6
/**
7
7
* Student Client
Original file line number Diff line number Diff line change 1
- import { assertRejects } from "~ /deps_dev.ts" ;
2
- import { StudentClient } from "~/src /core/studentClient.ts" ;
1
+ import { assertRejects } from "../.. /deps_dev.ts" ;
2
+ import { StudentClient } from ".. /core/studentClient.ts" ;
3
3
4
4
Deno . test ( "Throws when no student code is provided" , async ( ) => {
5
5
const client = new StudentClient ( "" ) ;
Original file line number Diff line number Diff line change 1
- import { assertEquals , assertExists } from "~ /deps_dev.ts" ;
1
+ import { assertEquals , assertExists } from "../.. /deps_dev.ts" ;
2
2
import { parseCookies } from "./utils.ts" ;
3
3
Deno . test ( "Parses simple cookie" , ( ) => {
4
4
const cookie =
You can’t perform that action at this time.
0 commit comments