uniwind-pro 1.0.0-beta.8 → 1.0.0-beta.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uniwind-pro",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0-beta.9",
4
4
  "type": "module",
5
5
  "description": "Uniwind Pro CLI",
6
6
  "keywords": [
@@ -2,7 +2,6 @@ import { Chalk } from 'chalk'
2
2
  import { mkdirSync, symlinkSync, existsSync } from 'node:fs'
3
3
  import { dirname, join, resolve } from 'node:path'
4
4
  import { fileURLToPath } from 'node:url'
5
- import { keyring } from '@zowe/secrets-for-zowe-sdk'
6
5
  import { UNIWIND_AUTH_TOKEN, SERVICE, UNIWIND_WEB_URL, HELP_EMAIL } from '../consts.js'
7
6
  import { downloadFromCI, downloadFromCLI } from './install.js'
8
7
 
@@ -50,6 +49,7 @@ const main = async () => {
50
49
  return await downloadFromCI(maybeCICDToken)
51
50
  }
52
51
 
52
+ const { keyring } = await import('@zowe/secrets-for-zowe-sdk')
53
53
  const matchingCredentials = await keyring.findCredentials(SERVICE)
54
54
 
55
55
  if (matchingCredentials.length !== 0) {
@@ -1,6 +1,5 @@
1
1
  import chalk from 'chalk'
2
2
  import { readFileSync, mkdirSync, readdirSync, cpSync, rmSync, existsSync } from 'node:fs'
3
- import { keyring } from '@zowe/secrets-for-zowe-sdk'
4
3
  import { join, dirname } from 'node:path'
5
4
  import { fileURLToPath } from 'node:url'
6
5
  import { pipeline } from 'node:stream'
@@ -122,6 +121,7 @@ export const downloadFromCLI = async ({ account: handle, password: token }) => {
122
121
  }
123
122
 
124
123
  if (response.status === 401) {
124
+ const { keyring } = await import('@zowe/secrets-for-zowe-sdk')
125
125
  await keyring.deleteCredentials(SERVICE)
126
126
  }
127
127