Skip to content

Commit

Permalink
rename packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Dec 16, 2023
1 parent 041fa0d commit 3c10849
Show file tree
Hide file tree
Showing 66 changed files with 8 additions and 60 deletions.
3 changes: 1 addition & 2 deletions packages/controlflow/src/retry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import relaycache from '@nostrwatch/relaycache'
import relaycache from '@nostrwatch/nwcache'
import { capitalize, loadConfig } from "@nostrwatch/utils"

const rcache = relaycache(process.env.NWCACHE_PATH)
Expand All @@ -16,7 +16,6 @@ export class RetryManager {
this.retries = []
this.config = config?.[caller]?.[action]
}


cacheId(url){
return `${capitalize(this.caller)}:${url}`
Expand Down
4 changes: 2 additions & 2 deletions packages/nocapd/src/daemon.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import schedule from 'node-schedule'

import relaycache from '@nostrwatch/relaycache'
import { NocapdQueue, BullMQ, Scheduler } from '@nostrwatch/controlflow'
import relaycache from '@nostrwatch/nwcache'
import { NocapdQueue, BullMQ } from '@nostrwatch/controlflow'
import { RedisConnectionDetails } from '@nostrwatch/utils'

import { NocapdQueues } from './classes/NocapdQueues.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/nocapd/src/managers/welcome.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import { WorkerManager } from '../classes/WorkerManager.js'
import { ParseSelect, RelayRecord } from '@nostrwatch/relaycache'
import { ParseSelect, RelayRecord } from '@nostrwatch/nwcache'
const parseSelect = ParseSelect(RelayRecord, "Relay")

export class WelcomeManager extends WorkerManager {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@nostrwatch/relaycache",
"name": "@nostrwatch/nwcache",
"version": "0.0.1",
"type": "module",
"main": "index.js",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
51 changes: 0 additions & 51 deletions packages/relaydb/sandbox.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/seed/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const relaysFromEvents = async (opts) => {
}

export const relaysOnlineFromCache = async (opts) => {
const { default: nwcache } = await import("@nostrwatch/relaycache")
const { default: nwcache } = await import("@nostrwatch/nwcache")
const $nwcache = nwcache(process.env.NWCACHE_PATH)
return $nwcache.relay.get.online('url').map( relay => relay.url )
}
Expand Down
2 changes: 1 addition & 1 deletion packages/seed/src/nwcache.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import rcache from '@nostrwatch/relaycache'
import rcache from '@nostrwatch/nwcache'
import config from './config.js'

let $rcache
Expand Down
2 changes: 1 addition & 1 deletion packages/trawler/src/relaydb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import rcache from '@nostrwatch/relaycache'
import rcache from '@nostrwatch/nwcache'
import config from "./config.js"

let $rcache
Expand Down

0 comments on commit 3c10849

Please sign in to comment.