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 22 "tasks" : {
33 "npm" : " deno run -A scripts/build_npm.ts"
44 },
5- "exclude" : [" npm" ],
6- "imports" : {
7- "~/" : " ./"
8- }
5+ "exclude" : [" npm" ]
96}
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 {
1717 LessonsResponse ,
1818 PupilFieldsResponse ,
1919} from "../types.ts" ;
20- import { PING_INTERVAL } from "~/src /utils/consts.ts" ;
20+ import { PING_INTERVAL } from ".. /utils/consts.ts" ;
2121
2222/**
2323 * 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 11import type { GetPupilsResponse } from "../types.ts" ;
22
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" ;
66/**
77 * Parent Client
88 */
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" ;
33
44Deno . test ( "Throws when no email is provided" , async ( ) => {
55 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" ;
55
66/**
77 * 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" ;
33
44Deno . test ( "Throws when no student code is provided" , async ( ) => {
55 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" ;
22import { parseCookies } from "./utils.ts" ;
33Deno . test ( "Parses simple cookie" , ( ) => {
44 const cookie =
You can’t perform that action at this time.
0 commit comments