@azure/eventgrid 5.2.0 → 5.2.1-alpha.20240306.2
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.
@@ -20,7 +20,7 @@ export class GeneratedClientContext extends coreClient.ServiceClient {
|
|
20
20
|
const defaults = {
|
21
21
|
requestContentType: "application/json; charset=utf-8"
|
22
22
|
};
|
23
|
-
const packageDetails = `azsdk-js-eventgrid/5.2.
|
23
|
+
const packageDetails = `azsdk-js-eventgrid/5.2.1`;
|
24
24
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
25
25
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
26
26
|
: `${packageDetails}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generatedClientContext.js","sourceRoot":"","sources":["../../../src/generated/generatedClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,gBAAgB;AAChB,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAGlE;;;OAGG;IACH,YAAY,OAAuC;QACjD,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,0BAA0B,CAAC;QAClD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,iBAAiB,GAC/C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,0CAA0C;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { GeneratedClientOptionalParams } from \"./models\";\n\n/** @internal */\nexport class GeneratedClientContext extends coreClient.ServiceClient {\n apiVersion: string;\n\n /**\n * Initializes a new instance of the GeneratedClientContext class.\n * @param options The parameter options\n */\n constructor(options?: GeneratedClientOptionalParams) {\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: GeneratedClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-eventgrid/5.2.
|
1
|
+
{"version":3,"file":"generatedClientContext.js","sourceRoot":"","sources":["../../../src/generated/generatedClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,gBAAgB;AAChB,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAGlE;;;OAGG;IACH,YAAY,OAAuC;QACjD,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,0BAA0B,CAAC;QAClD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,iBAAiB,GAC/C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,0CAA0C;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { GeneratedClientOptionalParams } from \"./models\";\n\n/** @internal */\nexport class GeneratedClientContext extends coreClient.ServiceClient {\n apiVersion: string;\n\n /**\n * Initializes a new instance of the GeneratedClientContext class.\n * @param options The parameter options\n */\n constructor(options?: GeneratedClientOptionalParams) {\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: GeneratedClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-eventgrid/5.2.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"{topicHostname}\"\n };\n super(optionsWithDefaults);\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2018-01-01\";\n }\n}\n"]}
|
package/dist-esm/src/tracing.js
CHANGED
@@ -8,6 +8,6 @@ import { createTracingClient } from "@azure/core-tracing";
|
|
8
8
|
export const tracingClient = createTracingClient({
|
9
9
|
namespace: "Microsoft.Messaging.EventGrid",
|
10
10
|
packageName: "@azure/event-grid",
|
11
|
-
packageVersion: "5.2.
|
11
|
+
packageVersion: "5.2.1",
|
12
12
|
});
|
13
13
|
//# sourceMappingURL=tracing.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,+BAA+B;IAC1C,WAAW,EAAE,mBAAmB;IAChC,cAAc,EAAE,OAAO;CACxB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { createTracingClient } from \"@azure/core-tracing\";\n\n/**\n * A tracing client to handle spans.\n * @internal\n */\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Messaging.EventGrid\",\n packageName: \"@azure/event-grid\",\n packageVersion: \"5.2.
|
1
|
+
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,+BAA+B;IAC1C,WAAW,EAAE,mBAAmB;IAChC,cAAc,EAAE,OAAO;CACxB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { createTracingClient } from \"@azure/core-tracing\";\n\n/**\n * A tracing client to handle spans.\n * @internal\n */\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Messaging.EventGrid\",\n packageName: \"@azure/event-grid\",\n packageVersion: \"5.2.1\",\n});\n"]}
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"sdk-type": "client",
|
4
4
|
"author": "Microsoft Corporation",
|
5
5
|
"description": "An isomorphic client library for the Azure Event Grid service.",
|
6
|
-
"version": "5.2.
|
6
|
+
"version": "5.2.1-alpha.20240306.2",
|
7
7
|
"keywords": [
|
8
8
|
"node",
|
9
9
|
"azure",
|
@@ -70,13 +70,13 @@
|
|
70
70
|
"build:test": "tsc -p . && dev-tool run bundle",
|
71
71
|
"build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local",
|
72
72
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
73
|
-
"clean": "rimraf dist dist-browser dist-esm dist-test temp types *.tgz *.log",
|
73
|
+
"clean": "rimraf --glob dist dist-browser dist-esm dist-test temp types *.tgz *.log",
|
74
74
|
"execute:samples": "dev-tool samples run samples-dev",
|
75
75
|
"extract-api": "tsc -p . && api-extractor run --local",
|
76
76
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
77
77
|
"generate:client": "autorest --typescript ./swagger/README.md && node ./scripts/setPathToEmpty.js",
|
78
78
|
"integration-test:browser": "dev-tool run test:browser",
|
79
|
-
"integration-test:node": "dev-tool run test:node-js
|
79
|
+
"integration-test:node": "dev-tool run test:node-tsx-js -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"",
|
80
80
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
81
81
|
"lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]",
|
82
82
|
"lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js",
|
@@ -85,7 +85,7 @@
|
|
85
85
|
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
|
86
86
|
"test": "npm run clean && npm run build:test && npm run unit-test",
|
87
87
|
"unit-test:browser": "dev-tool run test:browser",
|
88
|
-
"unit-test:node": "dev-tool run test:node-ts
|
88
|
+
"unit-test:node": "dev-tool run test:node-tsx-ts -- --timeout 1200000 'test/**/*.spec.ts'",
|
89
89
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
|
90
90
|
},
|
91
91
|
"sideEffects": false,
|
@@ -100,10 +100,10 @@
|
|
100
100
|
"uuid": "^8.3.0"
|
101
101
|
},
|
102
102
|
"devDependencies": {
|
103
|
-
"@azure/dev-tool": "
|
104
|
-
"@azure/eslint-plugin-azure-sdk": "
|
103
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
104
|
+
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
105
105
|
"@azure/service-bus": "^7.0.0",
|
106
|
-
"@azure/test-utils": "
|
106
|
+
"@azure/test-utils": ">=1.0.0-alpha <1.0.0-alphb",
|
107
107
|
"@azure-tools/test-recorder": "^3.0.0",
|
108
108
|
"@microsoft/api-extractor": "^7.31.1",
|
109
109
|
"@types/chai": "^4.1.6",
|
@@ -112,6 +112,7 @@
|
|
112
112
|
"@types/node": "^18.0.0",
|
113
113
|
"@types/sinon": "^17.0.0",
|
114
114
|
"@types/uuid": "^8.0.0",
|
115
|
+
"c8": "^8.0.0",
|
115
116
|
"chai": "^4.2.0",
|
116
117
|
"chai-as-promised": "^7.1.1",
|
117
118
|
"cross-env": "^7.0.2",
|
@@ -127,12 +128,10 @@
|
|
127
128
|
"karma-mocha-reporter": "^2.2.5",
|
128
129
|
"karma-sourcemap-loader": "^0.3.8",
|
129
130
|
"mocha": "^10.0.0",
|
130
|
-
"
|
131
|
-
"rimraf": "^3.0.0",
|
131
|
+
"rimraf": "^5.0.5",
|
132
132
|
"sinon": "^17.0.0",
|
133
133
|
"source-map-support": "^0.5.9",
|
134
|
-
"
|
135
|
-
"typescript": "~5.3.3"
|
136
|
-
"esm": "^3.2.18"
|
134
|
+
"tsx": "^4.7.1",
|
135
|
+
"typescript": "~5.3.3"
|
137
136
|
}
|
138
137
|
}
|