@cloudbase/node-sdk
Advanced tools
Comparing version 3.3.5 to 3.3.6
{ | ||
"name": "@cloudbase/node-sdk", | ||
"version": "3.3.5", | ||
"version": "3.3.6", | ||
"description": "tencent cloud base server sdk for node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,2 +6,3 @@ import fs from 'fs' | ||
import { OrmClient, OrmRawQueryClient } from '@cloudbase/wx-cloud-client-sdk' | ||
import { ContextInjected, TcbExtendedContext } from '@cloudbase/functions-typings' | ||
@@ -200,14 +201,16 @@ type IKeyValue = Record<string, any> | ||
// @cloudbase/functions-framework 函数上下文 | ||
// @cloudbase/functions-framework 函数上下文,只要求部分字段 | ||
context?: { | ||
eventID: string | ||
extendedContext: { | ||
envId: string | ||
source: string | ||
tmpSecret: { | ||
secretId: string | ||
secretKey: string | ||
token: string | ||
envId: string // 环境 ID | ||
// uin: string // 请求的 UIN | ||
source: string // 请求来源,如 wx | ||
accessToken?: string // 调用请求时的 AccessToken | ||
userId?: string // 请求的用户 ID | ||
tmpSecret?: { // 临时凭证 | ||
secretId: string // secretId | ||
secretKey: string // secretKey | ||
token: string // token | ||
} | ||
wechatContext: Record<string, string> | ||
} | ||
@@ -214,0 +217,0 @@ } |
231299
6476