@alipay/faas-server-utils
Advanced tools
Comparing version 1.1.17 to 1.1.18-alpha.0
@@ -22,2 +22,3 @@ /// <reference types="node" /> | ||
SOURCE_APP: string; | ||
CLOUDBASE: Record<string, string>; | ||
rpcCount: number; | ||
@@ -24,0 +25,0 @@ } |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getAlipayContext=exports.getAlipayContextStorage=void 0;const node_async_hooks_1=require("node:async_hooks"),ALIPAY_CONTEXT_STORAGE=Symbol.for("ALIPAY_FAAS_CONTEXT_STORAGE");function getAlipayContextStorage(){if(!global[ALIPAY_CONTEXT_STORAGE]){const e=new node_async_hooks_1.AsyncLocalStorage;global[ALIPAY_CONTEXT_STORAGE]=e}return global[ALIPAY_CONTEXT_STORAGE]}exports.getAlipayContextStorage=getAlipayContextStorage;function getAlipayContext(){let e=getAlipayContextStorage().getStore();return e||(e={UNIONID:process.env.UNIONID||"",CLIENTIP:process.env.CLIENTIP||"",CLIENTIPV6:process.env.CLIENTIPV6||"",FROM_APPID:process.env.FROM_APPID||"",FROM_OPENID:process.env.FROM_OPENID||"",FROM_UNIONID:process.env.FROM_UNIONID||"",OPEN_DATA_INFO:process.env.OPEN_DATA_INFO||"",USER_AGENT:process.env.USER_AGENT||"",SOURCE_TYPE:process.env.SOURCE_TYPE||"",APPID:process.env.APPID||"",OPENID:process.env.OPENID||"",ENV:process.env.ENV||"",SOURCE:process.env.SOURCE||"",TRACEID:"",RPCID:"0",REQUESTID:"",REQUEST_SOURCE:process.env.REQUEST_SOURCE||"",SOURCE_APP:process.env.SOURCE_APP||"",rpcCount:0}),e}exports.getAlipayContext=getAlipayContext; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getAlipayContext=exports.getAlipayContextStorage=void 0;const node_async_hooks_1=require("node:async_hooks"),ALIPAY_CONTEXT_STORAGE=Symbol.for("ALIPAY_FAAS_CONTEXT_STORAGE");function getAlipayContextStorage(){if(!global[ALIPAY_CONTEXT_STORAGE]){const e=new node_async_hooks_1.AsyncLocalStorage;global[ALIPAY_CONTEXT_STORAGE]=e}return global[ALIPAY_CONTEXT_STORAGE]}exports.getAlipayContextStorage=getAlipayContextStorage;function getAlipayContext(){let e=getAlipayContextStorage().getStore();return e||(e={UNIONID:process.env.UNIONID||"",CLIENTIP:process.env.CLIENTIP||"",CLIENTIPV6:process.env.CLIENTIPV6||"",FROM_APPID:process.env.FROM_APPID||"",FROM_OPENID:process.env.FROM_OPENID||"",FROM_UNIONID:process.env.FROM_UNIONID||"",OPEN_DATA_INFO:process.env.OPEN_DATA_INFO||"",USER_AGENT:process.env.USER_AGENT||"",SOURCE_TYPE:process.env.SOURCE_TYPE||"",APPID:process.env.APPID||"",OPENID:process.env.OPENID||"",ENV:process.env.ENV||"",SOURCE:process.env.SOURCE||"",TRACEID:"",RPCID:"0",REQUESTID:"",REQUEST_SOURCE:process.env.REQUEST_SOURCE||"",SOURCE_APP:process.env.SOURCE_APP||"",CLOUDBASE:process.env.CLOUDBASE?JSON.parse(process.env.CLOUDBASE):{},rpcCount:0}),e}exports.getAlipayContext=getAlipayContext; |
{ | ||
"name": "@alipay/faas-server-utils", | ||
"version": "1.1.17", | ||
"version": "1.1.18-alpha.0", | ||
"description": "云函数 utils", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6334
74
5
18