mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-06 04:20:58 +00:00
chore: add error logging for failed createCheckout
This commit is contained in:
43
example/package-lock.json
generated
43
example/package-lock.json
generated
@@ -10,7 +10,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@convex-dev/polar": "file:..",
|
"@convex-dev/polar": "file:..",
|
||||||
"@polar-sh/checkout": "^0.1.11",
|
"@polar-sh/checkout": "^0.1.11",
|
||||||
"@polar-sh/sdk": "^0.32.16",
|
"@polar-sh/sdk": "^0.34.9",
|
||||||
"@radix-ui/react-dialog": "^1.1.6",
|
"@radix-ui/react-dialog": "^1.1.6",
|
||||||
"@radix-ui/react-icons": "^1.3.2",
|
"@radix-ui/react-icons": "^1.3.2",
|
||||||
"@radix-ui/react-separator": "^1.1.1",
|
"@radix-ui/react-separator": "^1.1.1",
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
},
|
},
|
||||||
"..": {
|
"..": {
|
||||||
"name": "@convex-dev/polar",
|
"name": "@convex-dev/polar",
|
||||||
"version": "0.5.0",
|
"version": "0.6.1",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
@@ -1189,6 +1189,26 @@
|
|||||||
"react": "^18 || ^19"
|
"react": "^18 || ^19"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@polar-sh/checkout/node_modules/@polar-sh/sdk": {
|
||||||
|
"version": "0.32.16",
|
||||||
|
"resolved": "https://registry.npmjs.org/@polar-sh/sdk/-/sdk-0.32.16.tgz",
|
||||||
|
"integrity": "sha512-s+FvSJieNv9KcXGFNSbVzXpTY/hW8oYk8soa3Ow7NgWw/dY+pJ1py+qv+hNwxIuEmlHlpBIBHJVYQqPI9lLzCA==",
|
||||||
|
"dependencies": {
|
||||||
|
"standardwebhooks": "^1.0.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"mcp": "bin/mcp-server.js"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
||||||
|
"zod": ">= 3"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@modelcontextprotocol/sdk": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@polar-sh/checkout/node_modules/@polar-sh/ui": {
|
"node_modules/@polar-sh/checkout/node_modules/@polar-sh/ui": {
|
||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@polar-sh/ui/-/ui-0.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@polar-sh/ui/-/ui-0.1.1.tgz",
|
||||||
@@ -1287,18 +1307,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@polar-sh/sdk": {
|
"node_modules/@polar-sh/sdk": {
|
||||||
"version": "0.32.16",
|
"version": "0.34.9",
|
||||||
"resolved": "https://registry.npmjs.org/@polar-sh/sdk/-/sdk-0.32.16.tgz",
|
"resolved": "https://registry.npmjs.org/@polar-sh/sdk/-/sdk-0.34.9.tgz",
|
||||||
"integrity": "sha512-s+FvSJieNv9KcXGFNSbVzXpTY/hW8oYk8soa3Ow7NgWw/dY+pJ1py+qv+hNwxIuEmlHlpBIBHJVYQqPI9lLzCA==",
|
"integrity": "sha512-+kzQ3IlO67+/eSC4kmbZbmqdPjmvAr8zjTsavyx/u5lqwrerutvhpDzCCBQMlFnEVgeXArF+Rf6FQKkqKrgpxA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"standardwebhooks": "^1.0.0"
|
"standardwebhooks": "^1.0.0",
|
||||||
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"mcp": "bin/mcp-server.js"
|
"mcp": "bin/mcp-server.js"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0"
|
||||||
"zod": ">= 3"
|
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@modelcontextprotocol/sdk": {
|
"@modelcontextprotocol/sdk": {
|
||||||
@@ -7658,11 +7678,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/zod": {
|
"node_modules/zod": {
|
||||||
"version": "3.24.2",
|
"version": "3.25.76",
|
||||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz",
|
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
|
||||||
"integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==",
|
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/colinhacks"
|
"url": "https://github.com/sponsors/colinhacks"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@convex-dev/polar": "file:..",
|
"@convex-dev/polar": "file:..",
|
||||||
"@polar-sh/checkout": "^0.1.11",
|
"@polar-sh/checkout": "^0.1.11",
|
||||||
"@polar-sh/sdk": "^0.32.16",
|
"@polar-sh/sdk": "^0.34.9",
|
||||||
"@radix-ui/react-dialog": "^1.1.6",
|
"@radix-ui/react-dialog": "^1.1.6",
|
||||||
"@radix-ui/react-icons": "^1.3.2",
|
"@radix-ui/react-icons": "^1.3.2",
|
||||||
"@radix-ui/react-separator": "^1.1.1",
|
"@radix-ui/react-separator": "^1.1.1",
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ export class Polar<
|
|||||||
: { products: productIds }),
|
: { products: productIds }),
|
||||||
});
|
});
|
||||||
if (!checkout.value) {
|
if (!checkout.value) {
|
||||||
|
console.error(checkout);
|
||||||
throw new Error("Checkout not created");
|
throw new Error("Checkout not created");
|
||||||
}
|
}
|
||||||
return checkout.value;
|
return checkout.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user