@azure/functions
Advanced tools
Comparing version 1.0.3 to 1.2.0
@@ -41,2 +41,6 @@ /** | ||
/** | ||
* TraceContext information to enable distributed tracing scenarios. | ||
*/ | ||
traceContext: TraceContext; | ||
/** | ||
* Bindings your function uses, as defined in function.json. | ||
@@ -114,2 +118,29 @@ */ | ||
export declare type HttpMethod = "GET" | "POST" | "DELETE" | "HEAD" | "PATCH" | "PUT" | "OPTIONS" | "TRACE" | "CONNECT"; | ||
/** | ||
* Http response cookie object to "Set-Cookie" | ||
*/ | ||
export interface Cookie { | ||
/** Cookie name */ | ||
name: string; | ||
/** Cookie value */ | ||
value: string; | ||
/** Specifies allowed hosts to receive the cookie */ | ||
domain?: string; | ||
/** Specifies URL path that must exist in the requested URL */ | ||
path?: string; | ||
/** | ||
* NOTE: It is generally recommended that you use maxAge over expires. | ||
* Sets the cookie to expire at a specific date instead of when the client closes. | ||
* This can be a Javascript Date or Unix time in milliseconds. | ||
*/ | ||
expires?: Date | number; | ||
/** Sets the cookie to only be sent with an encrypted request */ | ||
secure?: boolean; | ||
/** Sets the cookie to be inaccessible to JavaScript's Document.cookie API */ | ||
httpOnly?: boolean; | ||
/** Can restrict the cookie to not be sent with cross-site requests */ | ||
sameSite?: "Strict" | "Lax" | undefined; | ||
/** Number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. */ | ||
maxAge?: number; | ||
} | ||
export interface ExecutionContext { | ||
@@ -130,2 +161,15 @@ /** | ||
} | ||
/** | ||
* TraceContext information to enable distributed tracing scenarios. | ||
*/ | ||
export interface TraceContext { | ||
/** Describes the position of the incoming request in its trace graph in a portable, fixed-length format. */ | ||
traceparent: string | null | undefined; | ||
/** Extends traceparent with vendor-specific data. */ | ||
tracestate: string | null | undefined; | ||
/** Holds additional properties being sent as part of request telemetry. */ | ||
attributes: { | ||
[k: string]: string; | ||
} | null | undefined; | ||
} | ||
export interface BindingDefinition { | ||
@@ -132,0 +176,0 @@ /** |
{ | ||
"name": "@azure/functions", | ||
"version": "1.0.3", | ||
"version": "1.2.0", | ||
"description": "Azure Functions types for Typescript", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
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
10141
210