@social-mail/social-mail-web-server 1.4.984 → 1.4.985
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/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/wwwroot/routes/social-mail/public/dns/zones/index.d.ts.map +1 -1
- package/dist/wwwroot/routes/social-mail/public/dns/zones/index.js +7 -6
- package/dist/wwwroot/routes/social-mail/public/dns/zones/index.js.map +1 -1
- package/package.json +1 -1
- package/src/wwwroot/routes/social-mail/public/dns/zones/index.ts +9 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/wwwroot/routes/social-mail/public/dns/zones/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,0CAA0C,CAAC;AAG5D,OAAO,iBAAiB,MAAM,qDAAqD,CAAC;AAEpF,MAAM,CAAC,OAAO,MAAO,SAAQ,IAAI;IAG7B,EAAE,EAAE,iBAAiB,CAAC;IAEhB,GAAG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/wwwroot/routes/social-mail/public/dns/zones/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,0CAA0C,CAAC;AAG5D,OAAO,iBAAiB,MAAM,qDAAqD,CAAC;AAEpF,MAAM,CAAC,OAAO,MAAO,SAAQ,IAAI;IAG7B,EAAE,EAAE,iBAAiB,CAAC;IAEhB,GAAG;CAuBZ"}
|
|
@@ -19,13 +19,14 @@ export default class default_1 extends Page {
|
|
|
19
19
|
status: 401
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
|
|
22
|
+
const [zoneID] = this.childPath;
|
|
23
|
+
if (!zoneID) {
|
|
24
|
+
const zones = await this.db.hostedZones.asQuery().toArray();
|
|
25
|
+
return this.json(zones);
|
|
26
|
+
}
|
|
27
|
+
const records = await this.db.hostedZoneRecords.where({ zoneID }, (p) => (x) => x.disabled === false && x.zoneID === p.zoneID)
|
|
24
28
|
.toArray();
|
|
25
|
-
return this.json(
|
|
26
|
-
...z,
|
|
27
|
-
records: z.records.map((r) => ({ ...r, zone: void 0 }))
|
|
28
|
-
})));
|
|
29
|
+
return this.json(records);
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/wwwroot/routes/social-mail/public/dns/zones/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,IAAI,MAAM,0CAA0C,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,MAAM,MAAM,4CAA4C,CAAC;AAChE,OAAO,iBAAiB,MAAM,qDAAqD,CAAC;AAEpF,MAAM,CAAC,OAAO,gBAAO,SAAQ,IAAI;IAK7B,KAAK,CAAC,GAAG;QAEL,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,cAAc,EAAE,CAAC;YAChD,OAAO,IAAI,CAAC,OAAO,CAAC;gBAChB,IAAI,EAAE,cAAc;gBACpB,MAAM,EAAE,GAAG;aACd,CAAC,CAAC;QACP,CAAC;QAED,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/wwwroot/routes/social-mail/public/dns/zones/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,IAAI,MAAM,0CAA0C,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,MAAM,MAAM,4CAA4C,CAAC;AAChE,OAAO,iBAAiB,MAAM,qDAAqD,CAAC;AAEpF,MAAM,CAAC,OAAO,gBAAO,SAAQ,IAAI;IAK7B,KAAK,CAAC,GAAG;QAEL,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,cAAc,EAAE,CAAC;YAChD,OAAO,IAAI,CAAC,OAAO,CAAC;gBAChB,IAAI,EAAE,cAAc;gBACpB,MAAM,EAAE,GAAG;aACd,CAAC,CAAC;QACP,CAAC;QAED,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,SAAkB,CAAC;QAEzC,IAAI,CAAC,MAAM,EAAE,CAAC;YAEV,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC;YAC5D,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,KAAK,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,CAAC;aACzH,OAAO,EAAE,CAAC;QAEf,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAE9B,CAAC;CACJ;AAzBG;IADC,MAAM;8BACH,iBAAiB;qCAAC"}
|
package/package.json
CHANGED
|
@@ -17,15 +17,18 @@ export default class extends Page {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const
|
|
20
|
+
const [zoneID] = this.childPath as any[];
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
if (!zoneID) {
|
|
23
|
+
|
|
24
|
+
const zones = await this.db.hostedZones.asQuery().toArray();
|
|
25
|
+
return this.json(zones);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const records = await this.db.hostedZoneRecords.where({ zoneID }, (p) => (x) => x.disabled === false && x.zoneID === p.zoneID)
|
|
23
29
|
.toArray();
|
|
24
30
|
|
|
25
|
-
return this.json(
|
|
26
|
-
... z,
|
|
27
|
-
records: z.records.map((r) => ( { ... r, zone: void 0}))
|
|
28
|
-
})));
|
|
31
|
+
return this.json(records);
|
|
29
32
|
|
|
30
33
|
}
|
|
31
34
|
}
|