Skip to content

Commit

Permalink
import from core.ts instead of pure.ts whenever possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 21, 2023
1 parent 919d293 commit 84f8ae5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion filter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Event } from './pure.ts'
import { Event } from './core.ts'

export type Filter = {
ids?: string[]
Expand Down
2 changes: 1 addition & 1 deletion nip10.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Event } from './pure.ts'
import type { Event } from './core.ts'
import type { EventPointer, ProfilePointer } from './nip19.ts'

export type NIP10Result = {
Expand Down
2 changes: 1 addition & 1 deletion nip42.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventTemplate } from './pure.ts'
import { EventTemplate } from './core.ts'
import { ClientAuth } from './kinds.ts'

/**
Expand Down
2 changes: 1 addition & 1 deletion pool.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Relay, SubscriptionParams, Subscription } from './relay.ts'
import { normalizeURL } from './utils.ts'

import type { Event } from './pure.ts'
import type { Event } from './core.ts'
import { type Filter } from './filter.ts'

export type SubCloser = { close: () => void }
Expand Down
2 changes: 1 addition & 1 deletion references.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { decode, type AddressPointer, type ProfilePointer, type EventPointer } from './nip19.ts'

import type { Event } from './pure.ts'
import type { Event } from './core.ts'

type Reference = {
text: string
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"skipLibCheck": true,
"esModuleInterop": true,
"emitDeclarationOnly": true,
"allowImportingTsExtensions": true,
"outDir": "lib/types",
"resolveJsonModule": true,
"rootDir": ".",
"allowImportingTsExtensions": true,
"types": ["bun-types"]
}
}
2 changes: 1 addition & 1 deletion utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, test, expect } from 'bun:test'
import { buildEvent } from './test-helpers.ts'
import { Queue, insertEventIntoAscendingList, insertEventIntoDescendingList, binarySearch } from './utils.ts'

import type { Event } from './pure.ts'
import type { Event } from './core.ts'

describe('inserting into a desc sorted list of events', () => {
test('insert into an empty list', async () => {
Expand Down
2 changes: 1 addition & 1 deletion utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Event } from './pure.ts'
import type { Event } from './core.ts'

export const utf8Decoder = new TextDecoder('utf-8')
export const utf8Encoder = new TextEncoder()
Expand Down

0 comments on commit 84f8ae5

Please sign in to comment.