@revstackhq/core 0.0.0-dev-20260226054346 → 0.0.0-dev-20260226062415
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/define.d.ts +1 -1
- package/dist/engine.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/test.js +1 -1
- package/dist/validator.d.ts +1 -1
- package/package.json +2 -2
package/dist/define.d.ts
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* });
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
import type { FeatureDefInput, PlanDefInput, PlanFeatureValue, AddonDefInput, DiscountDef, RevstackConfig } from "
|
|
43
|
+
import type { FeatureDefInput, PlanDefInput, PlanFeatureValue, AddonDefInput, DiscountDef, RevstackConfig } from "./types";
|
|
44
44
|
/**
|
|
45
45
|
* Define a feature with full type inference.
|
|
46
46
|
* Identity function — returns the input as-is.
|
package/dist/engine.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* const results = engine.checkBatch({ seats: 4, ai_tokens: 12000 });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
import type { CheckResult, PlanDef, AddonDef, SubscriptionStatus } from "
|
|
22
|
+
import type { CheckResult, PlanDef, AddonDef, SubscriptionStatus } from "./types";
|
|
23
23
|
/**
|
|
24
24
|
* The Entitlement Engine — evaluates feature access for a single customer.
|
|
25
25
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export * from "
|
|
3
|
-
export * from "
|
|
4
|
-
export * from "
|
|
1
|
+
export * from "./types";
|
|
2
|
+
export * from "./define";
|
|
3
|
+
export * from "./engine";
|
|
4
|
+
export * from "./validator";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export * from "
|
|
3
|
-
export * from "
|
|
4
|
-
export * from "
|
|
1
|
+
export * from "./types";
|
|
2
|
+
export * from "./define";
|
|
3
|
+
export * from "./engine";
|
|
4
|
+
export * from "./validator";
|
package/dist/test.js
CHANGED
package/dist/validator.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* validateConfig(config); // throws RevstackValidationError if invalid
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
import type { RevstackConfig } from "
|
|
18
|
+
import type { RevstackConfig } from "./types";
|
|
19
19
|
/**
|
|
20
20
|
* Thrown when `validateConfig()` detects one or more invalid business
|
|
21
21
|
* logic rules in a billing configuration.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revstackhq/core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260226062415",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "FSL-1.1-MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "tsc -p tsconfig.json",
|
|
33
|
+
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
|
|
34
34
|
"check-types": "tsc -p tsconfig.json --noEmit",
|
|
35
35
|
"lint": "eslint \"src/**/*.{ts,tsx}\"",
|
|
36
36
|
"test": "vitest run"
|