New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

push-huawei

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

push-huawei - npm Package Compare versions

Comparing version 0.1.9 to 0.2.0

3

lib/push-huawei.js

@@ -15,2 +15,3 @@ const axios = require('axios');

options.timeout = options.timeout || 300000;
options.tokenCacheTime = options.tokenCacheTime || 3000000;

@@ -136,3 +137,3 @@ if (!options.appId) throw new Error('Huawei AppId 不能为空');

async getToken() {
if (cache.access_token && new Date().getTime() - cache.time < 3600000) {
if (cache.access_token && new Date().getTime() - cache.time < this.options.tokenCacheTime) {
return { access_token: cache.access_token }

@@ -139,0 +140,0 @@ }

{
"name": "push-huawei",
"version": "0.1.9",
"version": "0.2.0",
"description": "push-huawei",

@@ -5,0 +5,0 @@ "main": "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