@baidu-map/logistics-encrypt
Advanced tools
Comparing version 1.1.1 to 1.2.1
@@ -0,2 +1,7 @@ | ||
// 刷新authKey的轮训时间 单位毫秒 | ||
export var refreshaAuthKeyTimer = 1000 * 60 * 10; | ||
// 百度云计算auth临时ak过期时间 单位s | ||
export var expirationInSeconds = '1800'; | ||
export var expirationInSeconds = '1800'; | ||
// sts 刷新时间 单位 毫秒 | ||
export var stsRefreshTime = 1000 * 60; |
export * from './core/decryption'; | ||
export * from './core/encryption'; | ||
export * from './core/generateAuthorization'; // 百度签名算法 | ||
export * from './core/generateAuthorization'; // 百度签名算法 | ||
export * from './core/sts'; // bos临时授权 |
@@ -6,5 +6,12 @@ "use strict"; | ||
}); | ||
exports.expirationInSeconds = void 0; | ||
exports.stsRefreshTime = exports.refreshaAuthKeyTimer = exports.expirationInSeconds = void 0; | ||
// 刷新authKey的轮训时间 单位毫秒 | ||
var refreshaAuthKeyTimer = 1000 * 60 * 10; | ||
// 百度云计算auth临时ak过期时间 单位s | ||
exports.refreshaAuthKeyTimer = refreshaAuthKeyTimer; | ||
var expirationInSeconds = '1800'; | ||
exports.expirationInSeconds = expirationInSeconds; | ||
// sts 刷新时间 单位 毫秒 | ||
exports.expirationInSeconds = expirationInSeconds; | ||
var stsRefreshTime = 1000 * 60; | ||
exports.stsRefreshTime = stsRefreshTime; |
@@ -38,2 +38,13 @@ "use strict"; | ||
}); | ||
}); | ||
var _sts = require("./core/sts"); | ||
Object.keys(_sts).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _sts[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _sts[key]; | ||
} | ||
}); | ||
}); |
{ | ||
"name": "@baidu-map/logistics-encrypt", | ||
"version": "1.1.1", | ||
"version": "1.2.1", | ||
"description": "百度地图物流团队加解密算法", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2043375
20
13846