@autorest/powershell 3.0.516 → 3.0.517

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.
@@ -72,7 +72,7 @@
72
72
  "powershell/models/model-extensions.ts": "92f57419e2bb8aec5272d62742ad528caebb66f4",
73
73
  "powershell/module/module-class.ts": "c792f01e3bfecb7c22efd953feb175f6b8394c78",
74
74
  "powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
75
- "powershell/package.json": "8908cb2667590c2a8bcf3fc0c45d9868c66a38ea",
75
+ "powershell/package.json": "596b1dd9e1583b7e490041592c33f1ddd7d0eb53",
76
76
  "powershell/plugins/add-azure-completers-v2.ts": "557ce4326318c82f91445490a162f20fa029fed3",
77
77
  "powershell/plugins/create-commands-v2.ts": "0190353c046a386a6458d2394377da59ae271643",
78
78
  "powershell/plugins/cs-namer-v2.ts": "e294a2f5ac3db421d030a3bba8343a3d4a9ea6ab",
@@ -216,7 +216,7 @@
216
216
  "powershell/resources/psruntime/BuildTime/Models/PsHelpMarkdownOutputs.cs": "056be554968d76667c0659d169f674ef5dbb74ed",
217
217
  "powershell/resources/psruntime/BuildTime/Models/PsHelpTypes.cs": "34d832146757eab7d8e1bd3feba5d411577f388a",
218
218
  "powershell/resources/psruntime/BuildTime/Models/PsMarkdownTypes.cs": "04c8ab64ab6269ee2cf7193494425d869bb6b94d",
219
- "powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs": "9d5cfa42acda3a0e411a441f0d826e43bc3379d2",
219
+ "powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs": "0871e8e8889a3cd10b338d3508f8ffdf4ca3e91e",
220
220
  "powershell/resources/psruntime/BuildTime/Models/PsProxyTypes.cs": "d12d48f864b20004aa129623ebd032e8f16cdee2",
221
221
  "powershell/resources/psruntime/BuildTime/PsAttributes.cs": "6e9782492bcc53aec43e807ca6c24969771b772b",
222
222
  "powershell/resources/psruntime/BuildTime/PsExtensions.cs": "a816496e5ec66952ba2f8f3709f665b02e24020a",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/powershell",
3
- "version": "3.0.516",
3
+ "version": "3.0.517",
4
4
  "description": "AutoRest PowerShell Cmdlet Generator",
5
5
  "main": "dist/exports.js",
6
6
  "typings": "dist/exports.d.ts",
@@ -275,7 +275,7 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
275
275
  {
276
276
  sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{");
277
277
  sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false");
278
- sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ $testPlayback = $testPlayback -or ('Microsoft.Message.ClientRuntime.PipelineMock' -eq $_.Target.GetType().FullName) }}");
278
+ sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Message.ClientRuntime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }}");
279
279
  sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{");
280
280
  sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')");
281
281
  sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{");