@azure/core-auth
Advanced tools
Comparing version 1.1.4-alpha.20200930.1 to 1.1.4-alpha.20201215.1
@@ -14,6 +14,7 @@ // Copyright (c) Microsoft Corporation. | ||
// it doesn't actually implement TokenCredential also. | ||
return (credential && | ||
typeof credential.getToken === "function" && | ||
(credential.signRequest === undefined || credential.getToken.length > 0)); | ||
var castCredential = credential; | ||
return (castCredential && | ||
typeof castCredential.getToken === "function" && | ||
(castCredential.signRequest === undefined || castCredential.getToken.length > 0)); | ||
} | ||
//# sourceMappingURL=tokenCredential.js.map |
@@ -61,5 +61,6 @@ 'use strict'; | ||
// it doesn't actually implement TokenCredential also. | ||
return (credential && | ||
typeof credential.getToken === "function" && | ||
(credential.signRequest === undefined || credential.getToken.length > 0)); | ||
var castCredential = credential; | ||
return (castCredential && | ||
typeof castCredential.getToken === "function" && | ||
(castCredential.signRequest === undefined || castCredential.getToken.length > 0)); | ||
} | ||
@@ -66,0 +67,0 @@ |
{ | ||
"name": "@azure/core-auth", | ||
"version": "1.1.4-alpha.20200930.1", | ||
"version": "1.1.4-alpha.20201215.1", | ||
"description": "Provides low-level interfaces and helper methods for authentication in Azure SDK", | ||
@@ -20,3 +20,3 @@ "sdk-type": "client", | ||
"build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", | ||
"build:samples": "cd samples && tsc -p .", | ||
"build:samples": "echo Skipped.", | ||
"build:test": "tsc -p . && rollup -c rollup.test.config.js 2>&1", | ||
@@ -34,3 +34,3 @@ "build:types": "downlevel-dts types/latest types/3.1", | ||
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", | ||
"lint": "eslint package.json api-extractor.json src test --ext .ts -f html -o core-auth-lintReport.html", | ||
"lint": "eslint package.json api-extractor.json src test --ext .ts", | ||
"pack": "npm pack 2>&1", | ||
@@ -88,3 +88,3 @@ "prebuild": "npm run clean", | ||
"downlevel-dts": "~0.4.0", | ||
"eslint": "^6.1.0", | ||
"eslint": "^7.15.0", | ||
"inherits": "^2.0.3", | ||
@@ -99,5 +99,5 @@ "mocha": "^7.1.1", | ||
"rollup-plugin-visualizer": "^4.0.4", | ||
"typescript": "~3.9.3", | ||
"typescript": "4.1.2", | ||
"util": "^0.12.1" | ||
} | ||
} |
@@ -72,3 +72,3 @@ import { AbortSignalLike } from '@azure/abort-controller'; | ||
*/ | ||
export declare function isTokenCredential(credential: any): credential is TokenCredential; | ||
export declare function isTokenCredential(credential: unknown): credential is TokenCredential; | ||
/** | ||
@@ -75,0 +75,0 @@ * Represents a credential defined by a static API key. |
@@ -79,3 +79,3 @@ import { AbortSignalLike } from '@azure/abort-controller'; | ||
*/ | ||
export declare function isTokenCredential(credential: any): credential is TokenCredential; | ||
export declare function isTokenCredential(credential: unknown): credential is TokenCredential; | ||
@@ -82,0 +82,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
28455
329