import from core.ts instead of pure.ts whenever possible.
This commit is contained in:
parent
d155bcdcda
commit
1f7378ca49
|
@ -1,4 +1,4 @@
|
||||||
import { Event } from './pure.ts'
|
import { Event } from './core.ts'
|
||||||
|
|
||||||
export type Filter = {
|
export type Filter = {
|
||||||
ids?: string[]
|
ids?: string[]
|
||||||
|
|
2
nip10.ts
2
nip10.ts
|
@ -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 = {
|
||||||
|
|
2
nip42.ts
2
nip42.ts
|
@ -1,4 +1,4 @@
|
||||||
import { EventTemplate } from './pure.ts'
|
import { EventTemplate } from './core.ts'
|
||||||
import { ClientAuth } from './kinds.ts'
|
import { ClientAuth } from './kinds.ts'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
2
pool.ts
2
pool.ts
|
@ -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 }
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 () => {
|
||||||
|
|
2
utils.ts
2
utils.ts
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue