@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 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.2";
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
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["declare const __PACKAGE_VERSION__: string;\n\nexport const version = __PACKAGE_VERSION__;\n\nexport type BillingProvider = 'stripe' | 'lemonsqueezy' | 'polar';\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\n// comment for release test\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,UAAU;AAShB,IAAM,oBAAoB,CAAC,WAA0B;AAC1D,SAAO,oBAAoB,OAAO,oBAAoB,OAAO,QAAQ;AACvE;","names":[]}
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
@@ -1,5 +1,8 @@
1
+ export { LanguageModelV3 } from '@ai-sdk/provider';
2
+
1
3
  declare const version: string;
2
4
  type BillingProvider = 'stripe' | 'lemonsqueezy' | 'polar';
5
+
3
6
  interface BillingConfig {
4
7
  apiKey: string;
5
8
  provider: BillingProvider;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
+ export { LanguageModelV3 } from '@ai-sdk/provider';
2
+
1
3
  declare const version: string;
2
4
  type BillingProvider = 'stripe' | 'lemonsqueezy' | 'polar';
5
+
3
6
  interface BillingConfig {
4
7
  apiKey: string;
5
8
  provider: BillingProvider;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- var version = "0.0.1-alpha.2";
2
+ var version = "0.0.1-alpha.3";
3
3
  var initializeBilling = (config) => {
4
4
  return `ai-billing core v${version} initialized for ${config.provider}`;
5
5
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["declare const __PACKAGE_VERSION__: string;\n\nexport const version = __PACKAGE_VERSION__;\n\nexport type BillingProvider = 'stripe' | 'lemonsqueezy' | 'polar';\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\n// comment for release test\n"],"mappings":";AAEO,IAAM,UAAU;AAShB,IAAM,oBAAoB,CAAC,WAA0B;AAC1D,SAAO,oBAAoB,OAAO,oBAAoB,OAAO,QAAQ;AACvE;","names":[]}
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":[]}
@@ -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.2";
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":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,UAAU;AAEhB,IAAM,0BAA0B,MAAM;AAC3C,SAAO,oBAAoB,OAAO;AACpC;","names":[]}
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":[]}
@@ -1,5 +1,5 @@
1
1
  // src/stripe/index.ts
2
- var version = "0.0.1-alpha.2";
2
+ var version = "0.0.1-alpha.3";
3
3
  var initializeStripeBilling = () => {
4
4
  return `ai-billing core v${version} initialized for stripe`;
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-billing/core",
3
- "version": "0.0.1-alpha.2",
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.3.0",
43
- "typescript": "5.8.3",
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"