@hasna/shortlinks 0.2.1 → 0.2.2
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/cli/index.js +2 -2
- package/dist/index.js +2 -2
- package/dist/mcp/index.js +2 -2
- package/dist/serve/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -10761,7 +10761,7 @@ class CloudShortlinksStore {
|
|
|
10761
10761
|
const domain = await this.getDomain(hostnameOrId);
|
|
10762
10762
|
if (!domain)
|
|
10763
10763
|
throw new Error("Domain not found.");
|
|
10764
|
-
await this.
|
|
10764
|
+
await this.transport.del(`/domains/${enc(domain.hostname)}`);
|
|
10765
10765
|
return domain;
|
|
10766
10766
|
}
|
|
10767
10767
|
async createLink(input) {
|
|
@@ -10815,7 +10815,7 @@ class CloudShortlinksStore {
|
|
|
10815
10815
|
const link = maybeSlug ? await this.getLink(domainOrSlug, maybeSlug) : await this.getLink(domainOrSlug);
|
|
10816
10816
|
if (!link)
|
|
10817
10817
|
throw new Error("Link not found.");
|
|
10818
|
-
await this.
|
|
10818
|
+
await this.transport.del(`/links/${enc(link.slug)}`, undefined, maybeSlug ? { query: { domain: domainOrSlug } } : {});
|
|
10819
10819
|
return link;
|
|
10820
10820
|
}
|
|
10821
10821
|
async recordClick(_link, _input = {}) {
|
package/dist/index.js
CHANGED
|
@@ -7659,7 +7659,7 @@ class CloudShortlinksStore {
|
|
|
7659
7659
|
const domain = await this.getDomain(hostnameOrId);
|
|
7660
7660
|
if (!domain)
|
|
7661
7661
|
throw new Error("Domain not found.");
|
|
7662
|
-
await this.
|
|
7662
|
+
await this.transport.del(`/domains/${enc(domain.hostname)}`);
|
|
7663
7663
|
return domain;
|
|
7664
7664
|
}
|
|
7665
7665
|
async createLink(input) {
|
|
@@ -7713,7 +7713,7 @@ class CloudShortlinksStore {
|
|
|
7713
7713
|
const link = maybeSlug ? await this.getLink(domainOrSlug, maybeSlug) : await this.getLink(domainOrSlug);
|
|
7714
7714
|
if (!link)
|
|
7715
7715
|
throw new Error("Link not found.");
|
|
7716
|
-
await this.
|
|
7716
|
+
await this.transport.del(`/links/${enc(link.slug)}`, undefined, maybeSlug ? { query: { domain: domainOrSlug } } : {});
|
|
7717
7717
|
return link;
|
|
7718
7718
|
}
|
|
7719
7719
|
async recordClick(_link, _input = {}) {
|
package/dist/mcp/index.js
CHANGED
|
@@ -6501,7 +6501,7 @@ class CloudShortlinksStore {
|
|
|
6501
6501
|
const domain = await this.getDomain(hostnameOrId);
|
|
6502
6502
|
if (!domain)
|
|
6503
6503
|
throw new Error("Domain not found.");
|
|
6504
|
-
await this.
|
|
6504
|
+
await this.transport.del(`/domains/${enc(domain.hostname)}`);
|
|
6505
6505
|
return domain;
|
|
6506
6506
|
}
|
|
6507
6507
|
async createLink(input) {
|
|
@@ -6555,7 +6555,7 @@ class CloudShortlinksStore {
|
|
|
6555
6555
|
const link = maybeSlug ? await this.getLink(domainOrSlug, maybeSlug) : await this.getLink(domainOrSlug);
|
|
6556
6556
|
if (!link)
|
|
6557
6557
|
throw new Error("Link not found.");
|
|
6558
|
-
await this.
|
|
6558
|
+
await this.transport.del(`/links/${enc(link.slug)}`, undefined, maybeSlug ? { query: { domain: domainOrSlug } } : {});
|
|
6559
6559
|
return link;
|
|
6560
6560
|
}
|
|
6561
6561
|
async recordClick(_link, _input = {}) {
|
package/dist/serve/index.js
CHANGED
|
@@ -4943,7 +4943,7 @@ var require_lib2 = __commonJS((exports, module) => {
|
|
|
4943
4943
|
var require_package = __commonJS((exports, module) => {
|
|
4944
4944
|
module.exports = {
|
|
4945
4945
|
name: "@hasna/shortlinks",
|
|
4946
|
-
version: "0.2.
|
|
4946
|
+
version: "0.2.2",
|
|
4947
4947
|
description: "Shortlink manager for custom domains and click tracking, with local SQLite or self-hosted cloud (/v1 API + bearer key) storage and Cloudflare setup helpers",
|
|
4948
4948
|
type: "module",
|
|
4949
4949
|
main: "dist/index.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/shortlinks",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Shortlink manager for custom domains and click tracking, with local SQLite or self-hosted cloud (/v1 API + bearer key) storage and Cloudflare setup helpers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|