yach-jsapi
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -58,3 +58,4 @@ import './entry/index'; | ||
version: string; | ||
platform: string; | ||
}; | ||
export default yy; |
@@ -11,5 +11,5 @@ "use strict"; | ||
var e = getUA(), i = /Yach/i.test(e), a = /iPhone|iPad|iPod|iOS/i.test(e) && i, t = /Android/i.test(e) && i, d = /YachPc/i.test(e); | ||
var v, l, o; | ||
// i && (o = e.match(/Yach\/[a-zA-Z0-9.-]+/)); | ||
// v=(o[0]||'').split('/')[1]||''; | ||
var v, l, o = []; | ||
i && (o = e.match(/Yach\/[a-zA-Z0-9.-]+/) || []); | ||
v = (o[0] || '').split('/')[1] || ''; | ||
var p = a ? sdkLib_1.ENV_ENUM.ios : t ? sdkLib_1.ENV_ENUM.android : d ? sdkLib_1.ENV_ENUM.pc : sdkLib_1.ENV_ENUM.notInYach; | ||
@@ -19,3 +19,3 @@ "undefined" != typeof navigator && (l = navigator.language || "*"); | ||
platform: p, | ||
version: undefined, | ||
version: v, | ||
language: l | ||
@@ -22,0 +22,0 @@ }; |
@@ -21,2 +21,3 @@ "use strict"; | ||
env: env, | ||
platform: env.platform, | ||
config: function (config) { | ||
@@ -23,0 +24,0 @@ if (config === void 0) { config = {}; } |
@@ -7,2 +7,8 @@ export declare enum ENV_ENUM { | ||
} | ||
export declare enum ERROR_CODE { | ||
cancel = "-1", | ||
not_exist = "1", | ||
no_permission = "7", | ||
jsapi_internal_error = "22" | ||
} | ||
export interface IENV { | ||
@@ -51,2 +57,3 @@ /** current platform (iOS or Android or PC or NotInDingTalk) */ | ||
version: string; | ||
platform: string; | ||
} | ||
@@ -53,0 +60,0 @@ /** all platform map */ |
{ | ||
"name": "yach-jsapi", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/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
50412
1507