VERSION

VERSION: string

Source: index.ts:122

The SDK version string. Resolves to the loader-injected runtime version (window.__NEXT_SDK_VERSION__) when the loader sets it, otherwise the build-time version baked in at compile.

Type

string

Example

CODE
import { VERSION } from '@next-commerce/campaign-cart';
console.log(VERSION); // "0.4.30"