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

@wltech/hooks

Package Overview
Dependencies
Maintainers
0
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wltech/hooks - npm Package Compare versions

Comparing version 0.1.47 to 0.1.48-alpha.49

src/useDownloadFIle/index.ts

2

package.json
{
"name": "@wltech/hooks",
"version": "0.1.47",
"version": "0.1.48-alpha.49",
"private": false,

@@ -5,0 +5,0 @@ "description": "",

@@ -0,0 +0,0 @@ # Vue 3 + TypeScript + Vite

@@ -0,0 +0,0 @@ import path from "path";

@@ -0,0 +0,0 @@ export * from "./useCopy";

@@ -0,0 +0,0 @@ declare module "*.vue" {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { TTargetAttr } from "./type";

@@ -0,0 +0,0 @@ /**

@@ -296,3 +296,2 @@ /**

sdkParams: params,
resultKeys: ["localId"],
});

@@ -419,2 +418,32 @@ }

}
// 获取用户定位
getWxLocation() {
return new Promise(function (resolve, reject) {
wx?.getLocation({
type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
success: function (res) {
resolve({
latitude: res.latitude,
longitude: res.longitude,
speed: res.speed, // 速度,以米/每秒计
accuracy: res.accuracy, // 位置精度
});
},
cancel: function () {
reject("定位失败,请重新获取并允许定位");
},
fail: function () {
reject("定位失败,请检查您设备权限后重新尝试");
},
});
wx?.error(function (err) {
console.log(3);
// config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。
reject(`wxjsapi-error: ${err}`);
});
});
}
openWxLocation(obj: any) {
wx?.openLocation(obj);
}
// 设置过期时间

@@ -421,0 +450,0 @@ static setExpireTime(time: number) {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ import { resolve } from "path";

Sorry, the diff of this file is not supported yet

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