Skip to content

Commit 0762613

Browse files
authored
Add HAR Generator plugin. Closes #328 (#331)
* Add HAR Generator plugin. Closes #328 Closes #328 * Update version to v1.7.1 * Fixed incorrect package version
1 parent 0f72c6a commit 0762613

File tree

6 files changed

+42
-4
lines changed

6 files changed

+42
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
> **Note**: odd version numbers, for example, `0.13.0`, are not included in this changelog. They are used to test the new features and fixes before the final release.
99
10-
## [1.7.0] - Unreleased
10+
## [1.7.1] - Unreleased
1111

1212
### Changed:
1313

1414
- Snippets: All snippets that reference schemas updated to use `v1.3.0` schema
15+
- Snippets: Added `devproxy-plugin-har-generator` - HarGeneratorPlugin instance
16+
- Snippets: Added `devproxy-plugin-har-generator-config` - HarGeneratorPlugin config section
1517

1618
## [1.6.0] - 2025-10-13
1719

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ See [Dev Proxy MCP Server](https://github.com/dev-proxy-tools/mcp) for more info
136136
| `devproxy-plugin-graph-random-error-config` | GraphRandomErrorPlugin config section |
137137
| `devproxy-plugin-graph-sdk-guidance` | GraphSdkGuidancePlugin instance |
138138
| `devproxy-plugin-graph-select-guidance` | GraphSdkGuidancePlugin instance |
139+
| `devproxy-plugin-har-generator` | HarGeneratorPlugin instance |
140+
| `devproxy-plugin-har-generator-config` | HarGeneratorPlugin config section |
139141
| `devproxy-plugin-http-file-generator` | HttpFileGeneratorPlugin instance |
140142
| `devproxy-plugin-http-file-generator-config` | HttpFileGeneratorPlugin config section |
141143
| `devproxy-plugin-latency` | LatencyPlugin instance |

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dev-proxy-toolkit",
33
"displayName": "Dev Proxy Toolkit",
44
"description": "Makes it easy to create and update Dev Proxy configuration files.",
5-
"version": "1.7.0",
5+
"version": "1.7.1",
66
"publisher": "garrytrinder",
77
"engines": {
88
"vscode": "^1.101.0"

src/constants.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ export const pluginSnippets: PluginSnippets = {
104104
GraphSelectGuidancePlugin: {
105105
instance: 'devproxy-plugin-graph-select-guidance',
106106
},
107+
HarGeneratorPlugin: {
108+
instance: 'devproxy-plugin-har-generator',
109+
config: {
110+
name: 'devproxy-plugin-har-generator-config',
111+
required: false,
112+
}
113+
},
107114
HttpFileGeneratorPlugin: {
108115
instance: 'devproxy-plugin-http-file-generator',
109116
config: {
@@ -302,6 +309,10 @@ export const pluginDocs: PluginDocs = {
302309
name: 'Graph Select Guidance Plugin',
303310
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/graphselectguidanceplugin',
304311
},
312+
HarGeneratorPlugin: {
313+
name: 'HAR Generator Plugin',
314+
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/hargeneratorplugin',
315+
},
305316
HttpFileGeneratorPlugin: {
306317
name: 'HTTP File Generator Plugin',
307318
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/httpfilegeneratorplugin',

src/snippets/json-snippets.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,29 @@
663663
],
664664
"description": "GraphSdkGuidancePlugin instance"
665665
},
666+
"HarGeneratorPlugin": {
667+
"prefix": "devproxy-plugin-har-generator",
668+
"body": [
669+
"{",
670+
"\t\"name\": \"HarGeneratorPlugin\",",
671+
"\t\"enabled\": true,",
672+
"\t\"pluginPath\": \"~appFolder/plugins/DevProxy.Plugins.dll\",",
673+
"\t\"configSection\": \"harGeneratorPlugin\"",
674+
"}"
675+
],
676+
"description": "HarGeneratorPlugin instance"
677+
},
678+
"HarGeneratorPluginConfig": {
679+
"prefix": "devproxy-plugin-har-generator-config",
680+
"body": [
681+
"\"harGeneratorPlugin\": {",
682+
"\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.3.0/hargeneratorplugin.schema.json\",",
683+
"\t\"includeSensitiveInformation\": false,",
684+
"\t\"includeResponse\": true",
685+
"}"
686+
],
687+
"description": "HarGeneratorPlugin config section"
688+
},
666689
"HttpFileGeneratorPlugin": {
667690
"prefix": "devproxy-plugin-http-file-generator",
668691
"body": [

0 commit comments

Comments
 (0)