File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { build , emptyDir } from "https://deno.land/x/dnt@0.32.0 /mod.ts" ;
1+ import { build , emptyDir } from "https://deno.land/x/dnt@0.32.1 /mod.ts" ;
22import { version } from "../version.ts" ;
33
44await emptyDir ( "./npm" ) ;
@@ -8,7 +8,7 @@ await build({
88 outDir : "./npm" ,
99 shims : {
1010 deno : true , // Required for `Deno.test`, `Deno.env`, etc.
11- domException : true , // deno.land/std@0.166.0 /async/delay.ts relies on DOMException
11+ domException : true , // https:// deno.land/std/async/delay.ts relies on DOMException
1212 undici : true , // Required for `fetch`
1313 } ,
1414 package : {
Original file line number Diff line number Diff line change 1- import { configSync } from "https://deno.land/std@0.166 .0/dotenv/mod.ts" ;
1+ import { loadSync } from "https://deno.land/std@0.170 .0/dotenv/mod.ts" ;
22import {
33 afterAll ,
44 afterEach ,
55 beforeAll ,
66 describe ,
77 it ,
8- } from "https://deno.land/std@0.166 .0/testing/bdd.ts" ;
9- import { delay } from "https://deno.land/std@0.166 .0/async/delay.ts" ;
8+ } from "https://deno.land/std@0.170 .0/testing/bdd.ts" ;
9+ import { delay } from "https://deno.land/std@0.170 .0/async/delay.ts" ;
1010import {
1111 assertSpyCallArg ,
1212 assertSpyCalls ,
1313 spy ,
1414 Stub ,
1515 stub ,
16- } from "https://deno.land/std@0.166 .0/testing/mock.ts" ;
16+ } from "https://deno.land/std@0.170 .0/testing/mock.ts" ;
1717import {
1818 assert ,
1919 assertArrayIncludes ,
2020 assertEquals ,
2121 assertRejects ,
2222 assertStringIncludes ,
23- } from "https://deno.land/std@0.166 .0/testing/asserts.ts" ;
23+ } from "https://deno.land/std@0.170 .0/testing/asserts.ts" ;
2424import { _internals } from "../../src/utils.ts" ;
2525import { MissingApiKeyError } from "../../src/errors.ts" ;
2626import {
@@ -31,7 +31,7 @@ import {
3131} from "../../src/serpapi.ts" ;
3232import { config } from "../../src/config.ts" ;
3333
34- configSync ( { export : true } ) ;
34+ loadSync ( { export : true } ) ;
3535const SERPAPI_TEST_KEY = Deno . env . get ( "SERPAPI_TEST_KEY" ) ?? "" ;
3636const HAS_API_KEY = SERPAPI_TEST_KEY . length > 0 ;
3737const BASE_URL = Deno . env . get ( "ENV_TYPE" ) === "local"
Original file line number Diff line number Diff line change 1- import { configSync } from "https://deno.land/std@0.166 .0/dotenv/mod.ts" ;
1+ import { loadSync } from "https://deno.land/std@0.170 .0/dotenv/mod.ts" ;
22import {
33 afterAll ,
44 afterEach ,
55 beforeAll ,
66 describe ,
77 it ,
8- } from "https://deno.land/std@0.166 .0/testing/bdd.ts" ;
8+ } from "https://deno.land/std@0.170 .0/testing/bdd.ts" ;
99import {
1010 assertEquals ,
1111 assertInstanceOf ,
1212 assertRejects ,
13- } from "https://deno.land/std@0.166 .0/testing/asserts.ts" ;
14- import { Stub , stub } from "https://deno.land/std@0.166 .0/testing/mock.ts" ;
13+ } from "https://deno.land/std@0.170 .0/testing/asserts.ts" ;
14+ import { Stub , stub } from "https://deno.land/std@0.170 .0/testing/mock.ts" ;
1515import { InvalidTimeoutError , MissingApiKeyError } from "../src/errors.ts" ;
1616import { getAccount , getLocations } from "../src/serpapi.ts" ;
1717import { _internals } from "../src/utils.ts" ;
1818import { config } from "../src/config.ts" ;
1919
20- configSync ( { export : true } ) ;
20+ loadSync ( { export : true } ) ;
2121const SERPAPI_TEST_KEY = Deno . env . get ( "SERPAPI_TEST_KEY" ) ?? "" ;
2222const HAS_API_KEY = SERPAPI_TEST_KEY . length > 0 ;
2323const BASE_URL = Deno . env . get ( "ENV_TYPE" ) === "local"
Original file line number Diff line number Diff line change 1- import { configSync } from "https://deno.land/std@0.166 .0/dotenv/mod.ts" ;
1+ import { loadSync } from "https://deno.land/std@0.170 .0/dotenv/mod.ts" ;
22import {
33 afterAll ,
44 afterEach ,
55 beforeAll ,
66 describe ,
77 it ,
8- } from "https://deno.land/std@0.166 .0/testing/bdd.ts" ;
8+ } from "https://deno.land/std@0.170 .0/testing/bdd.ts" ;
99import {
1010 assertSpyCalls ,
1111 resolvesNext ,
1212 Stub ,
1313 stub ,
14- } from "https://deno.land/std@0.166 .0/testing/mock.ts" ;
14+ } from "https://deno.land/std@0.170 .0/testing/mock.ts" ;
1515import {
1616 assertEquals ,
1717 assertMatch ,
1818 assertRejects ,
1919 assertThrows ,
20- } from "https://deno.land/std@0.166 .0/testing/asserts.ts" ;
20+ } from "https://deno.land/std@0.170 .0/testing/asserts.ts" ;
2121import {
2222 _internals ,
2323 buildUrl ,
@@ -28,7 +28,7 @@ import {
2828import { config } from "../src/config.ts" ;
2929import { InvalidTimeoutError , MissingApiKeyError } from "../src/errors.ts" ;
3030
31- configSync ( { export : true } ) ;
31+ loadSync ( { export : true } ) ;
3232const BASE_URL = Deno . env . get ( "ENV_TYPE" ) === "local"
3333 ? "http://localhost:3000"
3434 : "https://serpapi.com" ;
You can’t perform that action at this time.
0 commit comments