querysub 0.269.0 → 0.270.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -323,6 +323,7 @@ export function getSpecFromModule(module: NodeJS.Module): LoadFunctionSpec | und
|
|
|
323
323
|
async function getModuleFromSpecBase(
|
|
324
324
|
spec: LoadFunctionSpec
|
|
325
325
|
): Promise<NodeJS.Module> {
|
|
326
|
+
console.log(blue(`Loading module for ${JSON.stringify(spec)}`));
|
|
326
327
|
// Register ourself as overlapping, to prevent ambient modules from being set in this way.
|
|
327
328
|
registerSpec(module.filename, "overlapping");
|
|
328
329
|
|
|
@@ -801,6 +801,8 @@ export class Querysub {
|
|
|
801
801
|
let existingRecords = await getRecords("A", getDomain());
|
|
802
802
|
if (ip !== "127.0.0.1") {
|
|
803
803
|
let validRecords: string[] = [];
|
|
804
|
+
// Ignore ourself, we want OTHER records.
|
|
805
|
+
existingRecords = existingRecords.filter(x => x !== ip);
|
|
804
806
|
await Promise.all(existingRecords.map(async (record) => {
|
|
805
807
|
let isListening = await timeoutToUndefined(timeInSecond * 10, testTCPIsListening(record, 443));
|
|
806
808
|
if (isListening) {
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
Bug, if we refresh immediately after an update, we get into a state where we know we should be using a new hash, but the lookup for the hashes is cached, so we think the server doesn't exist,
|
|
2
|
-
- Hopefully it's just that we're using the cache we received from the server. If it's actually being cached in Cloudflare, that's annoying and I think we just need to fall back if we see the live hash has been updated recently. Although I don't think we're storing the timestamps so that's annoying.
|
|
3
|
-
|
|
4
|
-
7) verify manually refreshing removes the message
|
|
5
|
-
|
|
6
1
|
8) Use a special service for the HTTP bootstrapper, and then have 2 others that are on other ports
|
|
7
2
|
--bootstraponly is added, and should work?
|
|
8
3
|
|
|
@@ -95,6 +95,8 @@ export function getSyncedController<T extends SocketRegistered>(
|
|
|
95
95
|
*/
|
|
96
96
|
reads?: { [key in keyof T["nodes"][""]]?: string[]; };
|
|
97
97
|
writes?: { [key in keyof T["nodes"][""]]?: string[]; };
|
|
98
|
+
// TODO: Add a flag to give timeouts, so values are automatically refreshed every once in a while, so pages don't get too stale?
|
|
99
|
+
// - BUT with a "softRefresh", so we don't trigger a re-render, we only update it if it is accessed again!
|
|
98
100
|
}
|
|
99
101
|
): {
|
|
100
102
|
(nodeId: string): {
|