@sky.ui.pro/core 0.0.3 → 0.0.5

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/README.md CHANGED
@@ -8,7 +8,7 @@ Requires an active Sky UI Pro subscription. Install alongside `@sky.ui/core` whe
8
8
 
9
9
  ```bash
10
10
  npx sky.ui.pro login
11
- npm install "@sky.ui.pro/core" "@sky.ui/core"
11
+ npm install "@sky.ui.pro/core"
12
12
  ```
13
13
 
14
14
  > Quote scoped names (`"@sky.ui/…"`) — required in PowerShell. See [powershell-scoped-packages.md](../../docs/powershell-scoped-packages.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sky.ui.pro/core",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Sky UI Pro web components — installs full package via postinstall (online license).",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -25,7 +25,7 @@ export function renameProArtifactDeps(deps) {
25
25
  export function hasHydratedExports(manifest) {
26
26
  const exp = manifest?.exports;
27
27
  if (!exp || typeof exp !== "object") return false;
28
- if (exp["./vite"] || exp["./webpack"] || exp["./rollup"]) return true;
28
+ if (exp["./vite"] || exp["./webpack"] || exp["./rollup"] || exp["./license"]) return true;
29
29
  const root = exp["."];
30
30
  if (typeof root === "string") {
31
31
  return root.includes("dist/index") || (root.includes("/dist/") && !root.includes("/stub/"));
package/scripts/token.mjs CHANGED
@@ -80,7 +80,7 @@ export async function validateAccessTokenOnline(token, apiBase) {
80
80
  });
81
81
  const data = await res.json().catch(() => ({}));
82
82
  if (res.ok && data.active) {
83
- return { active: true, status: "active", ...data };
83
+ return { active: true, status: "active", tokenKind: data.tokenKind };
84
84
  }
85
85
  return {
86
86
  active: false,