@ai-billing/core 0.0.1-alpha.2 → 0.0.1-alpha.3
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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stripe/index.cjs +2 -1
- package/dist/stripe/index.cjs.map +1 -1
- package/dist/stripe/index.js +1 -1
- package/package.json +15 -4
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -23,7 +24,7 @@ __export(index_exports, {
|
|
|
23
24
|
version: () => version
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(index_exports);
|
|
26
|
-
var version = "0.0.1-alpha.
|
|
27
|
+
var version = "0.0.1-alpha.3";
|
|
27
28
|
var initializeBilling = (config) => {
|
|
28
29
|
return `ai-billing core v${version} initialized for ${config.provider}`;
|
|
29
30
|
};
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { LanguageModelV3 } from '@ai-sdk/provider';\n\ndeclare const __PACKAGE_VERSION__: string;\n\nexport const version = __PACKAGE_VERSION__;\n\nexport type BillingProvider = 'stripe' | 'lemonsqueezy' | 'polar';\nexport type { LanguageModelV3 };\n\nexport interface BillingConfig {\n apiKey: string;\n provider: BillingProvider;\n}\n\nexport const initializeBilling = (config: BillingConfig) => {\n return `ai-billing core v${version} initialized for ${config.provider}`;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,IAAM,UAAU;AAUhB,IAAM,oBAAoB,CAAC,WAA0B;AAC1D,SAAO,oBAAoB,OAAO,oBAAoB,OAAO,QAAQ;AACvE;","names":[]}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { LanguageModelV3 } from '@ai-sdk/provider';\n\ndeclare const __PACKAGE_VERSION__: string;\n\nexport const version = __PACKAGE_VERSION__;\n\nexport type BillingProvider = 'stripe' | 'lemonsqueezy' | 'polar';\nexport type { LanguageModelV3 };\n\nexport interface BillingConfig {\n apiKey: string;\n provider: BillingProvider;\n}\n\nexport const initializeBilling = (config: BillingConfig) => {\n return `ai-billing core v${version} initialized for ${config.provider}`;\n};\n"],"mappings":";AAIO,IAAM,UAAU;AAUhB,IAAM,oBAAoB,CAAC,WAA0B;AAC1D,SAAO,oBAAoB,OAAO,oBAAoB,OAAO,QAAQ;AACvE;","names":[]}
|
package/dist/stripe/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -23,7 +24,7 @@ __export(index_exports, {
|
|
|
23
24
|
version: () => version
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(index_exports);
|
|
26
|
-
var version = "0.0.1-alpha.
|
|
27
|
+
var version = "0.0.1-alpha.3";
|
|
27
28
|
var initializeStripeBilling = () => {
|
|
28
29
|
return `ai-billing core v${version} initialized for stripe`;
|
|
29
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/stripe/index.ts"],"sourcesContent":["declare const __PACKAGE_VERSION__: string;\n\nexport const version = __PACKAGE_VERSION__;\n\nexport const initializeStripeBilling = () => {\n return `ai-billing core v${version} initialized for stripe`;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/stripe/index.ts"],"sourcesContent":["declare const __PACKAGE_VERSION__: string;\n\nexport const version = __PACKAGE_VERSION__;\n\nexport const initializeStripeBilling = () => {\n return `ai-billing core v${version} initialized for stripe`;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,UAAU;AAEhB,IAAM,0BAA0B,MAAM;AAC3C,SAAO,oBAAoB,OAAO;AACpC;","names":[]}
|
package/dist/stripe/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-billing/core",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -39,12 +39,23 @@
|
|
|
39
39
|
"dist"
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"tsup": "^8.
|
|
43
|
-
"typescript": "5.
|
|
44
|
-
"vitest": "^4.1.1"
|
|
42
|
+
"tsup": "^8.5.1",
|
|
43
|
+
"typescript": "5.9.2",
|
|
44
|
+
"vitest": "^4.1.1",
|
|
45
|
+
"@ai-sdk/provider": "^3.0.8",
|
|
46
|
+
"@ai-billing/typescript-config": "0.0.0",
|
|
47
|
+
"@ai-billing/eslint-config": "0.0.1-alpha.0"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@ai-sdk/provider": "^3.0.8"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=20.0.0"
|
|
45
54
|
},
|
|
46
55
|
"scripts": {
|
|
47
56
|
"build": "tsup",
|
|
57
|
+
"check-types": "tsc --noEmit",
|
|
58
|
+
"lint": "eslint .",
|
|
48
59
|
"dev": "tsup --watch",
|
|
49
60
|
"test": "vitest run",
|
|
50
61
|
"test:watch": "vitest"
|