Skip to content

Commit

Permalink
fix: do not leak secrets than you
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Sep 18, 2023
1 parent 45b2d57 commit aff0365
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion build/remove-zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export async function cleanZod(filePath: string) {
// if (path.parentPath.node === null) {
// return
// }
console.log('AAAAA')
console.log({ type: path.parentPath.type, path: path.parentPath })
path.parentPath.replaceWith(babelParser.parseExpression('undefined'))
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,6 @@ export class PubPub {
throw new Error('Invalid pub slug, should be of the form pub/slug')
}

console.log({ testUrl })
const pageData = await this.hacks.getPageData(testUrl, 'view-data')

const initialDocKey = pageData.pubData.initialDocKey
Expand Down
7 changes: 3 additions & 4 deletions test/test.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ beforeAll(async () => {
})

afterAll(async () => {
server.close()
server?.close()
})

describe('PubPub', () => {
Expand All @@ -39,7 +39,7 @@ describe('PubPub', () => {
}))
})

it('should be able to return something ', async () => {
it('should be able to return something through normal api calls', async () => {
const res = await fetch(`${TEST_URL}/api/pubs/many`, {
method: 'POST',
headers: {
Expand All @@ -56,7 +56,7 @@ describe('PubPub', () => {

const json = await res.json()

console.log(json)
expect(json).toBeDefined()
})

it('should be able to get pubs', async () => {
Expand Down Expand Up @@ -134,7 +134,6 @@ describe('PubPub', () => {
description: 'This is a test description',
})

console.log(modded)
expect(modded).toHaveProperty('description')
}, 10000)

Expand Down
8 changes: 0 additions & 8 deletions test/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,13 @@ export async function setupSDK({
email?: string
password?: string
}) {
console.log({
url,
communityId,
email,
password,
})

const pubpub = new PubPub(communityId, url)

await pubpub.login(email, password)

expect(pubpub.loggedIn).toBeTruthy()

const { body } = await pubpub.pub.create()
console.log(body)

return {
pubpub,
Expand Down

0 comments on commit aff0365

Please sign in to comment.