@byhealth/native-app-jssdk
Advanced tools
Comparing version 2.2.0-beta.2 to 2.2.0-beta.3
@@ -36,3 +36,3 @@ "use strict"; | ||
nativeBridge_1.default('getAPPVersion', createCallback_1.default(resolve)); | ||
setTimeout(function () { return reject(unsupported('getAPPVersion')); }, 500); | ||
setTimeout(function () { return reject(unsupported('getAPPVersion', false)); }, 500); | ||
}); | ||
@@ -258,4 +258,11 @@ } | ||
*/ | ||
function unsupported(api) { | ||
throw new TypeError("Native webview does not support '" + api + "' API"); | ||
function unsupported(api, isThrow) { | ||
if (isThrow === void 0) { isThrow = true; } | ||
var error = new TypeError("Native webview does not support '" + api + "' API"); | ||
if (isThrow) { | ||
throw error; | ||
} | ||
else { | ||
return error; | ||
} | ||
} |
@@ -22,3 +22,3 @@ /* | ||
nativeBridge('getAPPVersion', createCallback(resolve)); | ||
setTimeout(function () { return reject(unsupported('getAPPVersion')); }, 500); | ||
setTimeout(function () { return reject(unsupported('getAPPVersion', false)); }, 500); | ||
}); | ||
@@ -219,5 +219,12 @@ } | ||
*/ | ||
function unsupported(api) { | ||
throw new TypeError("Native webview does not support '" + api + "' API"); | ||
function unsupported(api, isThrow) { | ||
if (isThrow === void 0) { isThrow = true; } | ||
var error = new TypeError("Native webview does not support '" + api + "' API"); | ||
if (isThrow) { | ||
throw error; | ||
} | ||
else { | ||
return error; | ||
} | ||
} | ||
export { NativeView }; |
{ | ||
"name": "@byhealth/native-app-jssdk", | ||
"version": "2.2.0-beta.2", | ||
"version": "2.2.0-beta.3", | ||
"description": "By-Health Native App Jssdk.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84972
1927