@azure/eventgrid
Advanced tools
Comparing version 4.4.1-alpha.20210727.1 to 4.4.1-alpha.20210730.2
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
export const SDK_VERSION = "4.4.1"; | ||
export const DEFAULT_API_VERSION = "2018-01-01"; | ||
export const DEFAULT_EVENTGRID_SCOPE = "https://eventgrid.azure.net/.default"; | ||
//# sourceMappingURL=constants.js.map |
@@ -5,3 +5,3 @@ // Copyright (c) Microsoft Corporation. | ||
import { eventGridCredentialPolicy } from "./eventGridAuthenticationPolicy"; | ||
import { SDK_VERSION, DEFAULT_EVENTGRID_SCOPE } from "./constants"; | ||
import { DEFAULT_EVENTGRID_SCOPE } from "./constants"; | ||
import { cloudEventReservedPropertyNames } from "./models"; | ||
@@ -40,14 +40,3 @@ import { GeneratedClient } from "./generated/generatedClient"; | ||
this.inputSchema = inputSchema; | ||
const libInfo = `azsdk-js-eventgrid/${SDK_VERSION}`; | ||
const pipelineOptions = Object.assign({}, options); | ||
if (!pipelineOptions.userAgentOptions) { | ||
pipelineOptions.userAgentOptions = {}; | ||
} | ||
if (pipelineOptions.userAgentOptions.userAgentPrefix) { | ||
pipelineOptions.userAgentOptions.userAgentPrefix = `${pipelineOptions.userAgentOptions.userAgentPrefix} ${libInfo}`; | ||
} | ||
else { | ||
pipelineOptions.userAgentOptions.userAgentPrefix = libInfo; | ||
} | ||
this.client = new GeneratedClient(pipelineOptions); | ||
this.client = new GeneratedClient(options); | ||
const authPolicy = isTokenCredential(credential) | ||
@@ -54,0 +43,0 @@ ? bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_EVENTGRID_SCOPE }) |
@@ -6,3 +6,3 @@ { | ||
"description": "An isomorphic client library for the Azure Event Grid service.", | ||
"version": "4.4.1-alpha.20210727.1", | ||
"version": "4.4.1-alpha.20210730.2", | ||
"keywords": [ | ||
@@ -54,4 +54,4 @@ "node", | ||
{ | ||
"path": "src/constants.ts", | ||
"prefix": "SDK_VERSION" | ||
"path": "src/generated/generatedClientContext.ts", | ||
"prefix": "packageDetails" | ||
} | ||
@@ -58,0 +58,0 @@ ] |
Sorry, the diff of this file is not supported yet
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
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
1433124
17547