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

gscatterjs-core

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gscatterjs-core - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 0.3.0
zh-CN:
1.移除getEnv,因为不是gscatter-js应该提供的功能,开发者可以根据ua自行判断,如果想判断布洛克城,可以在应用配置url上面加上`from=blockcity`来自行判断。
## 0.2.0

@@ -2,0 +6,0 @@ zh-CN:

2

dist/util/blockcityUtil.js
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _BlockcityService=require("../services/BlockcityService"),_i18n=_interopRequireDefault(require("./i18n"));Object.defineProperty(exports,"__esModule",{value:!0}),exports.blockcityGlobalInject=blockcityGlobalInject;function compareVersion(a,b){var c=a.split("."),d=b.split(".");return 1e6*c[0]+1e3*c[1]+parseInt(c[2])<=1e6*d[0]+1e3*d[1]+parseInt(d[2])}function blockcityGlobalInject(){window.isSupportGScatter=function(a){(0,_BlockcityService.getDeviceInfo)(function(b){var c=b.version;// if less than 2.0.3, not support gscatter
compareVersion("2.0.3",c)||a(b)})},window.notSupportGScatterCallback=function(a){alert((0,_i18n.default)("not_support",a.appLanguage))}}
compareVersion("2.0.3",c)||a(b)})},window.notSupportGScatterCallback=window.notSupportGScatterCallback||function(a){alert((0,_i18n.default)("not_support",a.appLanguage))}}
{
"name": "gscatterjs-core",
"version": "0.3.0",
"version": "0.3.1",
"main": "dist/index.js",

@@ -16,3 +16,3 @@ "license": "MIT",

},
"gitHead": "8ef1d8fe213c3736c1f5df8ca78e2cb132d52a2d"
"gitHead": "0e56b707e689e813226783acaa293396cfe08b5f"
}

@@ -21,5 +21,6 @@ import { getDeviceInfo } from '../services/BlockcityService'

window.notSupportGScatterCallback = function (appInfo) {
// allow developer overide
window.notSupportGScatterCallback = window.notSupportGScatterCallback || function (appInfo) {
alert(i18n('not_support', appInfo.appLanguage))
}
}

Sorry, the diff of this file is too big to display

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