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

@alipay/faas-server-utils

Package Overview
Dependencies
Maintainers
3
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alipay/faas-server-utils - npm Package Compare versions

Comparing version 1.1.17 to 1.1.18-alpha.0

1

lib/alipaycontext.d.ts

@@ -22,2 +22,3 @@ /// <reference types="node" />

SOURCE_APP: string;
CLOUDBASE: Record<string, string>;
rpcCount: number;

@@ -24,0 +25,0 @@ }

2

lib/alipaycontext.js

@@ -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",

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