Skip to content

Commit ce0e49c

Browse files
Th fix bundle issue (#92)
* fixed bundle inflate issue * remove import
1 parent 84d4dbb commit ce0e49c

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

keeperapi/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

keeperapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@keeper-security/keeperapi",
33
"description": "Keeper API Javascript SDK",
4-
"version": "16.0.89",
4+
"version": "16.0.90",
55
"browser": "dist/index.es.js",
66
"main": "dist/index.cjs.js",
77
"types": "dist/node/index.d.ts",

keeperapi/src/auth.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {KeyWrapper, platform} from "./platform";
1212
import {
1313
generateEncryptionKey,
1414
generateUidBytes,
15-
hasYubikeyChannel,
1615
normal64,
1716
normal64Bytes,
1817
resolvablePromise,
@@ -1374,3 +1373,5 @@ function chooseErrorMessage(loginState: Authentication.LoginState){
13741373
}
13751374
}
13761375

1376+
const hasYubikeyChannel = (channels: Authentication.ITwoFactorChannelInfo[]): boolean =>
1377+
!!channels.find(({challenge, channelType}) => challenge && (channelType === Authentication.TwoFactorChannelType.TWO_FA_CT_U2F || channelType === Authentication.TwoFactorChannelType.TWO_FA_CT_WEBAUTHN))

keeperapi/src/utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {KeyWrapper, LogOptions, Platform, platform} from "./platform";
22
import type {KeeperHost, TransmissionKey} from './configuration';
33
import { AllowedNumbers } from "./transmissionKeys";
4-
import {Authentication} from "./proto";
54

65
export const log = (message: string, options: LogOptions = 'default') => {
76
platform.log(message, options)
@@ -170,5 +169,4 @@ export function resolvablePromise(): { promise: Promise<void>, resolve: () => vo
170169
}
171170
}
172171

173-
export const hasYubikeyChannel = (channels: Authentication.ITwoFactorChannelInfo[]): boolean =>
174-
!!channels.find(({challenge, channelType}) => challenge && (channelType === Authentication.TwoFactorChannelType.TWO_FA_CT_U2F || channelType === Authentication.TwoFactorChannelType.TWO_FA_CT_WEBAUTHN))
172+

0 commit comments

Comments
 (0)