Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yach-jsapi

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yach-jsapi - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

1

lib/index.d.ts

@@ -58,3 +58,4 @@ import './entry/index';

version: string;
platform: string;
};
export default yy;

8

lib/lib/env.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc