Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
FolderOrigin-RevId: /usr/src/app/bi-sdk-js
  • Loading branch information
ismailmustafa authored and bi-ci-bot committed May 15, 2023
1 parent c7870d5 commit f32b923
Show file tree
Hide file tree
Showing 15 changed files with 384 additions and 304 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unpublished

## [2.0.3] - 2023-04-20

### Fixed

- Error during Credential Binding in Safari 15 and earlier.
- Error using WebAuthn in Firefox on Android and iOS.

## [2.0.2] - 2023-04-20

### Added
Expand Down
110 changes: 66 additions & 44 deletions coresdk/dist/bi-core.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions coresdk/lib/kmc/kmc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ export interface InitOutput {
readonly __wbindgen_malloc: (a: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hac28956bd554ad35: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbfecb83208773a15: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19865b07147afc89: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575f466fd3df8cf7: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4691b603d0d1cb19: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h50d3b1eaa155f953: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc71e64e004c44ff0: (a: number, b: number, c: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_exn_store: (a: number) => void;
Expand Down
82 changes: 41 additions & 41 deletions coresdk/lib/kmc/kmc.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions coresdk/lib/kmc/kmc_bg.wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export function kmc_url_type(a: number, b: number): void;
export function __wbindgen_malloc(a: number): number;
export function __wbindgen_realloc(a: number, b: number, c: number): number;
export const __wbindgen_export_2: WebAssembly.Table;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hac28956bd554ad35(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbfecb83208773a15(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19865b07147afc89(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575f466fd3df8cf7(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4691b603d0d1cb19(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h50d3b1eaa155f953(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc71e64e004c44ff0(a: number, b: number, c: number): void;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function __wbindgen_exn_store(a: number): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4415,6 +4415,27 @@ async function getWindowsVersion() {
}
return -1;
}
function getSafariVersion() {
const isSafari = navigator.vendor && navigator.vendor.indexOf("Apple") > -1 && navigator.userAgent && navigator.userAgent.indexOf("CriOS") == -1 && navigator.userAgent.indexOf("FxiOS") == -1;
if (isSafari) {
let versionIndex = navigator.userAgent.indexOf("Version/");
if (versionIndex >= 0) {
let version = parseInt(navigator.userAgent.substring(versionIndex + 8), 10);
return isNaN(version) ? 0 : version;
}
}
return -1;
}
function isMobileFirefox() {
let ua = (navigator.userAgent || "").toLowerCase();
if (ua.indexOf("fxios") >= 0)
return true;
if (ua.indexOf("firefox") < 0)
return false;
if (ua.indexOf("android") >= 0)
return true;
return false;
}
async function getWebAuthnSupport() {
if (window.PublicKeyCredential) {
try {
Expand All @@ -4426,7 +4447,8 @@ async function getWebAuthnSupport() {
}
async function hasWebAuthn() {
const windowsVersion = await getWindowsVersion();
return !!((windowsVersion < 0 || windowsVersion >= 11) && await getWebAuthnSupport());
const safariVersion = getSafariVersion();
return !!((windowsVersion < 0 || windowsVersion >= 11) && (safariVersion < 0 || safariVersion >= 16) && !isMobileFirefox() && await getWebAuthnSupport());
}
function hasSubtleCrypto() {
return !!window.crypto.subtle;
Expand Down
6 changes: 3 additions & 3 deletions coresdk/node_modules/kmc-ffi/kmc.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 41 additions & 41 deletions coresdk/node_modules/kmc-ffi/kmc.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions coresdk/node_modules/kmc-ffi/kmc_bg.wasm.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"Ismail Mustafa <[email protected]>"
],
"dependencies": {
"@beyondidentity/bi-sdk-js": "2.0.2",
"@beyondidentity/bi-sdk-js": "2.0.3",
"bootstrap": "^5.2.0",
"next": "latest",
"next-auth": "latest",
Expand Down
Loading

0 comments on commit f32b923

Please sign in to comment.