import from core.ts instead of pure.ts whenever possible.

This commit is contained in:
fiatjaf 2023-12-21 16:45:32 -03:00
parent d155bcdcda
commit 1f7378ca49
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1
8 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import { Event } from './pure.ts' import { Event } from './core.ts'
export type Filter = { export type Filter = {
ids?: string[] ids?: string[]

View File

@ -1,4 +1,4 @@
import type { Event } from './pure.ts' import type { Event } from './core.ts'
import type { EventPointer, ProfilePointer } from './nip19.ts' import type { EventPointer, ProfilePointer } from './nip19.ts'
export type NIP10Result = { export type NIP10Result = {

View File

@ -1,4 +1,4 @@
import { EventTemplate } from './pure.ts' import { EventTemplate } from './core.ts'
import { ClientAuth } from './kinds.ts' import { ClientAuth } from './kinds.ts'
/** /**

View File

@ -1,7 +1,7 @@
import { Relay, SubscriptionParams, Subscription } from './relay.ts' import { Relay, SubscriptionParams, Subscription } from './relay.ts'
import { normalizeURL } from './utils.ts' import { normalizeURL } from './utils.ts'
import type { Event } from './pure.ts' import type { Event } from './core.ts'
import { type Filter } from './filter.ts' import { type Filter } from './filter.ts'
export type SubCloser = { close: () => void } export type SubCloser = { close: () => void }

View File

@ -1,6 +1,6 @@
import { decode, type AddressPointer, type ProfilePointer, type EventPointer } from './nip19.ts' 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 = { type Reference = {
text: string text: string

View File

@ -9,10 +9,10 @@
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"allowImportingTsExtensions": true,
"outDir": "lib/types", "outDir": "lib/types",
"resolveJsonModule": true, "resolveJsonModule": true,
"rootDir": ".", "rootDir": ".",
"allowImportingTsExtensions": true,
"types": ["bun-types"] "types": ["bun-types"]
} }
} }

View File

@ -2,7 +2,7 @@ import { describe, test, expect } from 'bun:test'
import { buildEvent } from './test-helpers.ts' import { buildEvent } from './test-helpers.ts'
import { Queue, insertEventIntoAscendingList, insertEventIntoDescendingList, binarySearch } from './utils.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', () => { describe('inserting into a desc sorted list of events', () => {
test('insert into an empty list', async () => { test('insert into an empty list', async () => {

View File

@ -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 utf8Decoder = new TextDecoder('utf-8')
export const utf8Encoder = new TextEncoder() export const utf8Encoder = new TextEncoder()