@aiam/ciba 0.8.9 → 0.9.0

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.
Files changed (2) hide show
  1. package/ciba.mjs +2 -2
  2. package/package.json +1 -1
package/ciba.mjs CHANGED
@@ -656,7 +656,7 @@ const tokenCmd = defineCommand({
656
656
  ...outputArgs,
657
657
  },
658
658
  async run({ args }) {
659
- const tokenScript = join(_dirname(_fileURLToPath(import.meta.url)), 'token.mjs');
659
+ const tokenScript = join(_pkgDir, "token.mjs");
660
660
  const argv = [tokenScript];
661
661
  if (args.resource) argv.push('--resource', args.resource);
662
662
  if (args.json) argv.push('--json');
@@ -677,7 +677,7 @@ const refreshCmd = defineCommand({
677
677
  async run({ args }) {
678
678
  // refresh writes to device-doc requests and returns immediately.
679
679
  // token.mjs will pick up the new token when it arrives.
680
- const tokenScript = join(_dirname(_fileURLToPath(import.meta.url)), 'token.mjs');
680
+ const tokenScript = join(_pkgDir, "token.mjs");
681
681
  const argv = [tokenScript, '--refresh'];
682
682
  if (args.resource) argv.push('--resource', args.resource);
683
683
  if (args.json) argv.push('--json');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiam/ciba",
3
- "version": "0.8.9",
3
+ "version": "0.9.0",
4
4
  "description": "OAuth 2.0 Device Authorization Grant CLI with cross-device push approval (Yjs sync, ECDH-encrypted token delivery, persistent device id)",
5
5
  "type": "module",
6
6
  "bin": {