@w6s/cgb-js-sdk
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -28,3 +28,3 @@ "use strict"; | ||
var minateStr = minate < 10 ? "0" + minate : "" + minate; | ||
return year + "-" + monthStr + "-" + dayStr + " " + hourStr + ":" + minateStr; | ||
return year + "." + monthStr + "." + dayStr + " " + hourStr + ":" + minateStr; | ||
}; | ||
@@ -44,8 +44,8 @@ /** | ||
if (data.timeEnable) { | ||
content = content + " " + timeStr; | ||
content = content + "\n\u65F6 \u95F4:" + timeStr; | ||
} | ||
if (data.locationEnable) { | ||
return getLocation_1.default().then(function (res) { | ||
var locationStr = "" + res.city + res.district + res.street + " " + res.longitude.toFixed(2) + "," + res.latitude.toFixed(2); | ||
content = content + " " + locationStr; | ||
var locationStr = "\n\u5730 \u70B9:" + res.city + res.district + res.street + "\n\u7ECF\u7EAC\u5EA6:" + res.longitude.toFixed(2) + "," + res.latitude.toFixed(2); | ||
content = "" + content + locationStr; | ||
var params = { | ||
@@ -52,0 +52,0 @@ content: content, |
@@ -19,3 +19,3 @@ import { CoreOptions } from './types/core'; | ||
/** WorkPlus SDK 版本 */ | ||
export declare const version = "0.0.20"; | ||
export declare const version = "0.0.21"; | ||
export declare const native: {}; | ||
@@ -22,0 +22,0 @@ /** 图像接口 */ |
@@ -83,3 +83,3 @@ "use strict"; | ||
/** WorkPlus SDK 版本 */ | ||
exports.version = '0.0.20'; | ||
exports.version = '0.0.21'; | ||
exports.native = {}; | ||
@@ -86,0 +86,0 @@ /** 图像接口 */ |
{ | ||
"name": "@w6s/cgb-js-sdk", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "CGB JavaScript SDK.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
402780
0