pricing4ts
Version:
 Pricing4TS is a TypeScript-based toolkit designed to enhance the server-side functionality of a pricing-driven SaaS by enabling the seamless integration of pricing plans into the application logic. T
13 lines (8 loc) • 407 B
text/typescript
// deno-lint-ignore-file no-explicit-any
import { calculateNextVersion } from '../../version-manager';
export default function v30Tov31Updater(extractedPricing: any): any {
const nextVersion = calculateNextVersion(extractedPricing.syntaxVersion);
extractedPricing.syntaxVersion = nextVersion!;
// No more actions are needed, since only the variables field is extended
return extractedPricing;
}