@namiml/sdk-core 3.4.11-dev.202609120011 → 3.4.11-dev.202609151845
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 +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -106,7 +106,7 @@ const {
|
|
|
106
106
|
// version — stamped by scripts/version.sh
|
|
107
107
|
NAMI_SDK_VERSION: exports.NAMI_SDK_VERSION = "3.4.11",
|
|
108
108
|
// full package version including dev suffix — stamped by scripts/version.sh
|
|
109
|
-
NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.11-dev.
|
|
109
|
+
NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.11-dev.202609151845",
|
|
110
110
|
// environments
|
|
111
111
|
PRODUCTION: exports.PRODUCTION = "production", DEVELOPMENT: exports.DEVELOPMENT = "development",
|
|
112
112
|
// error messages
|
|
@@ -60853,6 +60853,11 @@ class PaywallState extends SimpleEventTarget {
|
|
|
60853
60853
|
};
|
|
60854
60854
|
const initState = paywall.template?.initialState;
|
|
60855
60855
|
state = { ...state, ...initState };
|
|
60856
|
+
// NAM-4244: the Nami app platform id is a per-configuration constant, not paywall data.
|
|
60857
|
+
// Read it once here so `${platform.id}` / `${state.platformId}` conditions resolve without
|
|
60858
|
+
// touching storage on the per-assertion render path. Assigned after the template's
|
|
60859
|
+
// initialState so an authored `platformId` cannot shadow the real one.
|
|
60860
|
+
state.platformId = storageService.getNamiConfig()?.appPlatformID ?? '';
|
|
60856
60861
|
const launch = normalizeLaunchContext(state.launch, context, paywall.sku_menus);
|
|
60857
60862
|
this.filteredSkuMenus = paywall.sku_menus ?? [];
|
|
60858
60863
|
if (launch.productGroups.length) {
|
package/dist/index.mjs
CHANGED
|
@@ -104,7 +104,7 @@ const {
|
|
|
104
104
|
// version — stamped by scripts/version.sh
|
|
105
105
|
NAMI_SDK_VERSION = "3.4.11",
|
|
106
106
|
// full package version including dev suffix — stamped by scripts/version.sh
|
|
107
|
-
NAMI_SDK_PACKAGE_VERSION = "3.4.11-dev.
|
|
107
|
+
NAMI_SDK_PACKAGE_VERSION = "3.4.11-dev.202609151845",
|
|
108
108
|
// environments
|
|
109
109
|
PRODUCTION = "production", DEVELOPMENT = "development",
|
|
110
110
|
// error messages
|
|
@@ -60851,6 +60851,11 @@ class PaywallState extends SimpleEventTarget {
|
|
|
60851
60851
|
};
|
|
60852
60852
|
const initState = paywall.template?.initialState;
|
|
60853
60853
|
state = { ...state, ...initState };
|
|
60854
|
+
// NAM-4244: the Nami app platform id is a per-configuration constant, not paywall data.
|
|
60855
|
+
// Read it once here so `${platform.id}` / `${state.platformId}` conditions resolve without
|
|
60856
|
+
// touching storage on the per-assertion render path. Assigned after the template's
|
|
60857
|
+
// initialState so an authored `platformId` cannot shadow the real one.
|
|
60858
|
+
state.platformId = storageService.getNamiConfig()?.appPlatformID ?? '';
|
|
60854
60859
|
const launch = normalizeLaunchContext(state.launch, context, paywall.sku_menus);
|
|
60855
60860
|
this.filteredSkuMenus = paywall.sku_menus ?? [];
|
|
60856
60861
|
if (launch.productGroups.length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namiml/sdk-core",
|
|
3
|
-
"version": "3.4.11-dev.
|
|
3
|
+
"version": "3.4.11-dev.202609151845",
|
|
4
4
|
"description": "Platform-agnostic core for the Nami SDK — business logic, API, types, and state management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|