@yawlabs/lemonsqueezy-mcp 0.10.12 → 0.10.13
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/index.js +14 -5
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -6,7 +6,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
|
|
9
|
+
try {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw mod = 0, e;
|
|
13
|
+
}
|
|
10
14
|
};
|
|
11
15
|
var __export = (target, all) => {
|
|
12
16
|
for (var name in all)
|
|
@@ -21603,12 +21607,13 @@ function decorateError(error2, requestId) {
|
|
|
21603
21607
|
return requestId ? `${error2} (request_id: ${requestId})` : error2;
|
|
21604
21608
|
}
|
|
21605
21609
|
function formatTimeoutMessage(err, fallbackElapsedMs) {
|
|
21610
|
+
const plural = (n) => `${n} attempt${n === 1 ? "" : "s"}`;
|
|
21606
21611
|
if (isRetryTimeoutError(err)) {
|
|
21607
21612
|
const seconds2 = Math.max(1, Math.round(err.elapsedMs / 1e3));
|
|
21608
|
-
return `Request timed out after ${seconds2}s (${err.attempts}
|
|
21613
|
+
return `Request timed out after ${seconds2}s (${plural(err.attempts)})`;
|
|
21609
21614
|
}
|
|
21610
21615
|
const seconds = Math.max(1, Math.round(fallbackElapsedMs / 1e3));
|
|
21611
|
-
return `Request timed out after ${seconds}s (1
|
|
21616
|
+
return `Request timed out after ${seconds}s (${plural(1)})`;
|
|
21612
21617
|
}
|
|
21613
21618
|
async function apiRequest(method, path, body) {
|
|
21614
21619
|
const start = Date.now();
|
|
@@ -23737,7 +23742,7 @@ function readAuditLogResource(uri) {
|
|
|
23737
23742
|
}
|
|
23738
23743
|
|
|
23739
23744
|
// src/index.ts
|
|
23740
|
-
var version2 = true ? "0.10.
|
|
23745
|
+
var version2 = true ? "0.10.13" : (await null).createRequire(import.meta.url)("../package.json").version;
|
|
23741
23746
|
var subcommand = process.argv[2];
|
|
23742
23747
|
if (subcommand === "version" || subcommand === "--version") {
|
|
23743
23748
|
console.log(version2);
|
|
@@ -23790,5 +23795,9 @@ server.resource(
|
|
|
23790
23795
|
async (uri) => readAuditLogResource(uri)
|
|
23791
23796
|
);
|
|
23792
23797
|
var transport = new StdioServerTransport();
|
|
23793
|
-
|
|
23798
|
+
server.connect(transport).catch((err) => {
|
|
23799
|
+
process.stderr.write(`lemonsqueezy-mcp: ${err instanceof Error ? err.message : String(err)}
|
|
23800
|
+
`);
|
|
23801
|
+
process.exit(1);
|
|
23802
|
+
});
|
|
23794
23803
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yawlabs/lemonsqueezy-mcp",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.13",
|
|
4
4
|
"mcpName": "io.github.YawLabs/lemonsqueezy-mcp",
|
|
5
5
|
"description": "LemonSqueezy MCP server for managing your store from AI assistants",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build": "tsc && node build.mjs",
|
|
33
33
|
"dev": "tsc --watch",
|
|
34
34
|
"start": "node dist/index.js",
|
|
35
|
-
"test": "npm run build && node --test dist/**/*.test.js",
|
|
35
|
+
"test": "npm run build && node --test \"dist/**/*.test.js\"",
|
|
36
36
|
"test:integration": "npm run build && node --test dist/integration/*.test.js",
|
|
37
37
|
"lint": "biome check src/",
|
|
38
38
|
"lint:fix": "biome check --write src/",
|
|
@@ -40,19 +40,19 @@
|
|
|
40
40
|
"check:containerfile": "node scripts/sync-containerfile.mjs --check",
|
|
41
41
|
"prepublishOnly": "npm run build"
|
|
42
42
|
},
|
|
43
|
-
"dependencies": {},
|
|
44
43
|
"overrides": {
|
|
45
44
|
"hono": "^4.12.14"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
47
|
"@biomejs/biome": "^2.4.12",
|
|
49
48
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
50
|
-
"@types/node": "^
|
|
51
|
-
"esbuild": "^0.28.
|
|
52
|
-
"
|
|
49
|
+
"@types/node": "^26.1.1",
|
|
50
|
+
"esbuild": "^0.28.1",
|
|
51
|
+
"postject": "^1.0.0-alpha.6",
|
|
52
|
+
"typescript": "^7.0.2",
|
|
53
53
|
"zod": "^4.3.6"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
|
-
"node": ">=
|
|
56
|
+
"node": ">=22"
|
|
57
57
|
}
|
|
58
58
|
}
|