@namiml/sdk-core 3.4.0-dev.202604170506 → 3.4.0-dev.202604182042

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
@@ -98,7 +98,7 @@ const {
98
98
  // version — stamped by scripts/version.sh
99
99
  NAMI_SDK_VERSION: exports.NAMI_SDK_VERSION = "3.4.0",
100
100
  // full package version including dev suffix — stamped by scripts/version.sh
101
- NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.0-dev.202604170506",
101
+ NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.0-dev.202604182042",
102
102
  // environments
103
103
  PRODUCTION: exports.PRODUCTION = "production", DEVELOPMENT: exports.DEVELOPMENT = "development",
104
104
  // error messages
@@ -7283,7 +7283,9 @@ function uuidFromSplitPosition(namiCommands) {
7283
7283
 
7284
7284
  const isValidUrl = (label) => {
7285
7285
  try {
7286
- return Boolean(new URL(label));
7286
+ const url = new URL(label);
7287
+ const isHttp = url.protocol === 'http:' || url.protocol === 'https:';
7288
+ return isHttp && !!url.hostname;
7287
7289
  }
7288
7290
  catch {
7289
7291
  return false;
package/dist/index.mjs CHANGED
@@ -96,7 +96,7 @@ const {
96
96
  // version — stamped by scripts/version.sh
97
97
  NAMI_SDK_VERSION = "3.4.0",
98
98
  // full package version including dev suffix — stamped by scripts/version.sh
99
- NAMI_SDK_PACKAGE_VERSION = "3.4.0-dev.202604170506",
99
+ NAMI_SDK_PACKAGE_VERSION = "3.4.0-dev.202604182042",
100
100
  // environments
101
101
  PRODUCTION = "production", DEVELOPMENT = "development",
102
102
  // error messages
@@ -7281,7 +7281,9 @@ function uuidFromSplitPosition(namiCommands) {
7281
7281
 
7282
7282
  const isValidUrl = (label) => {
7283
7283
  try {
7284
- return Boolean(new URL(label));
7284
+ const url = new URL(label);
7285
+ const isHttp = url.protocol === 'http:' || url.protocol === 'https:';
7286
+ return isHttp && !!url.hostname;
7285
7287
  }
7286
7288
  catch {
7287
7289
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@namiml/sdk-core",
3
- "version": "3.4.0-dev.202604170506",
3
+ "version": "3.4.0-dev.202604182042",
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",