Comparing version 2.7.15 to 2.7.16
@@ -37,2 +37,94 @@ | ||
}; | ||
interface AbortSignalLike { | ||
/** | ||
* Indicates if the signal has already been aborted. | ||
*/ | ||
readonly aborted: boolean; | ||
/** | ||
* Add new "abort" event listener, only support "abort" event. | ||
*/ | ||
addEventListener(type: "abort", listener: (this: AbortSignalLike, ev: any) => any, options?: any): void; | ||
/** | ||
* Remove "abort" event listener, only support "abort" event. | ||
*/ | ||
removeEventListener(type: "abort", listener: (this: AbortSignalLike, ev: any) => any, options?: any): void; | ||
} | ||
declare interface AccessToken { | ||
/** | ||
* The access token returned by the authentication service. | ||
*/ | ||
token: string; | ||
/** | ||
* The access token's expiration timestamp in milliseconds, UNIX epoch time. | ||
*/ | ||
expiresOnTimestamp: number; | ||
} | ||
declare interface GetTokenOptions { | ||
/** | ||
* The signal which can be used to abort requests. | ||
*/ | ||
abortSignal?: AbortSignalLike; | ||
/** | ||
* Options used when creating and sending HTTP requests for this operation. | ||
*/ | ||
requestOptions?: { | ||
/** | ||
* The number of milliseconds a request can take before automatically being terminated. | ||
*/ | ||
timeout?: number; | ||
}; | ||
/** | ||
* Options used when tracing is enabled. | ||
*/ | ||
tracingOptions?: { | ||
/** | ||
* Tracing Context for the current request. | ||
*/ | ||
tracingContext?: TracingContext; | ||
}; | ||
/** | ||
* Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints. | ||
*/ | ||
tenantId?: string; | ||
/** | ||
* Claim details to perform the Continuous Access Evaluation authentication flow | ||
*/ | ||
claims?: string; | ||
} | ||
declare interface TokenCredential { | ||
/** | ||
* Gets the token provided by this credential. | ||
* | ||
* This method is called automatically by Azure SDK client libraries. You may call this method | ||
* directly, but you must also handle token caching and token refreshing. | ||
* | ||
* @param scopes - The list of scopes for which the token will have access. | ||
* @param options - The options used to configure any requests this | ||
* TokenCredential implementation might make. | ||
*/ | ||
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>; | ||
} | ||
declare interface TracingContext { | ||
/** | ||
* Get a value from the context. | ||
* | ||
* @param key - key which identifies a context value | ||
*/ | ||
getValue(key: symbol): unknown; | ||
/** | ||
* Create a new context which inherits from this context and has | ||
* the given key set to the given value. | ||
* | ||
* @param key - context key for which to set the value | ||
* @param value - value to set for the given key | ||
*/ | ||
setValue(key: symbol, value: unknown): TracingContext; | ||
/** | ||
* Return a new context which inherits from this context but does | ||
* not contain a value for the given key. | ||
* | ||
* @param key - context key for which to clear a value | ||
*/ | ||
deleteValue(key: symbol): TracingContext; | ||
} | ||
export interface ICacheStorage { | ||
@@ -46,2 +138,3 @@ fetch: (hash: string) => Promise<boolean>; | ||
maxSize?: number; | ||
credential?: TokenCredential; | ||
}; | ||
@@ -48,0 +141,0 @@ export declare type NpmCacheStorageOptions = { |
{ | ||
"name": "lage", | ||
"version": "2.7.15", | ||
"version": "2.7.16", | ||
"repository": { | ||
@@ -26,6 +26,6 @@ "type": "git", | ||
"devDependencies": { | ||
"@lage-run/cli": "^0.17.1", | ||
"@lage-run/scheduler": "^1.2.1", | ||
"backfill-config": "6.4.1", | ||
"dts-bundle-generator": "^7.2.0", | ||
"@lage-run/cli": "^0.17.2", | ||
"@lage-run/scheduler": "^1.2.2", | ||
"backfill-config": "6.4.2", | ||
"dts-bundle-generator": "^9.5.1", | ||
"workspace-tools": "0.36.4", | ||
@@ -32,0 +32,0 @@ "esbuild": "^0.17.18" |
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
15024737
13479