@azure/ai-form-recognizer 4.0.0-beta.4 → 4.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -23,7 +23,7 @@ In version 4 (currently beta), this package introduces a full redesign of the Az
23
23
  Install the Azure Form Recognizer client library for JavaScript with `npm`:
24
24
 
25
25
  ```bash
26
- npm install @azure/ai-form-recognizer@4.0.0-beta.3
26
+ npm install @azure/ai-form-recognizer@4.0.0-beta.5
27
27
  ```
28
28
 
29
29
  ## Getting Started
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ const DEFAULT_COGNITIVE_SCOPE = "https://cognitiveservices.azure.com/.default";
39
39
  /**
40
40
  * @internal
41
41
  */
42
- const SDK_VERSION = "4.0.0-beta.4";
42
+ const SDK_VERSION = "4.0.0-beta.5";
43
43
 
44
44
  /*
45
45
  * Copyright (c) Microsoft Corporation.
@@ -2422,7 +2422,7 @@ class GeneratedClient extends coreClient__namespace.ServiceClient {
2422
2422
  const defaults = {
2423
2423
  requestContentType: "application/json; charset=utf-8"
2424
2424
  };
2425
- const packageDetails = `azsdk-js-ai-form-recognizer/4.0.0-beta.4`;
2425
+ const packageDetails = `azsdk-js-ai-form-recognizer/4.0.0-beta.5`;
2426
2426
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2427
2427
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2428
2428
  : `${packageDetails}`;
@@ -2464,7 +2464,7 @@ class GeneratedClient extends coreClient__namespace.ServiceClient {
2464
2464
  if (param.length > 1) {
2465
2465
  const newParams = param[1].split("&").map((item) => {
2466
2466
  if (item.indexOf("api-version") > -1) {
2467
- return item.replace(/(?<==).*$/, apiVersion);
2467
+ return "api-version=" + apiVersion;
2468
2468
  }
2469
2469
  else {
2470
2470
  return item;