@azure/eventgrid
Advanced tools
Comparing version 3.0.0-alpha.20210310.1 to 3.0.0-alpha.20210316.1
@@ -8,3 +8,2 @@ // Copyright (c) Microsoft Corporation. | ||
import { parseAndWrap, validateEventGridEvent, validateCloudEventEvent } from "./util"; | ||
import { systemDeserializers } from "./systemEventDecoders"; | ||
const serializer = createSerializer(); | ||
@@ -21,3 +20,2 @@ /** | ||
* and returned as an instance of the `Uint8Array` type. | ||
* - The `data` payload from system events is converted to match the interfaces this library defines. | ||
*/ | ||
@@ -32,5 +30,2 @@ export class EventGridDeserializer { | ||
const deserialized = serializer.deserialize(EventGridEventMapper, o, ""); | ||
if (systemDeserializers[deserialized.eventType]) { | ||
deserialized.data = yield systemDeserializers[deserialized.eventType](deserialized.data); | ||
} | ||
events.push(deserialized); | ||
@@ -77,10 +72,6 @@ } | ||
if (!(deserialized.dataBase64 instanceof Uint8Array)) { | ||
throw new TypeError("event data_base64 property is invalid"); | ||
throw new TypeError("event data_base64 property is not an instance of Uint8Array"); | ||
} | ||
modelEvent.data = deserialized.dataBase64; | ||
} | ||
// If a decoder is registered, apply it to the data. | ||
if (systemDeserializers[modelEvent.type]) { | ||
modelEvent.data = yield systemDeserializers[modelEvent.type](modelEvent.data); | ||
} | ||
// Build the "extensionsAttributes" property bag by removing all known top level properties. | ||
@@ -87,0 +78,0 @@ const extensionAttributes = Object.assign({}, deserialized); |
@@ -1,9 +0,2 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export {}; | ||
//# sourceMappingURL=index.js.map |
@@ -5,5 +5,5 @@ // Copyright (c) Microsoft Corporation. | ||
export { EventGridPublisherClient } from "./eventGridClient"; | ||
export { generateSharedAccessSignature } from "./generateSharedAccessSignature"; | ||
export { EventGridDeserializer } from "./consumer"; | ||
export { generateSharedAccessSignature } from "./generateSharedAccessSignature"; | ||
export { isSystemEvent } from "./predicates"; | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ { | ||
"description": "An isomorphic client library for the Azure Event Grid service.", | ||
"version": "3.0.0-alpha.20210310.1", | ||
"version": "3.0.0-alpha.20210316.1", | ||
"keywords": [ | ||
@@ -82,5 +82,5 @@ "node", | ||
"@azure/core-auth": "^1.2.0", | ||
"@azure/core-client": "dev", | ||
"@azure/core-rest-pipeline": "dev", | ||
"@azure/core-tracing": "dev", | ||
"@azure/core-client": "1.0.0-beta.2", | ||
"@azure/core-rest-pipeline": "1.0.0-beta.2", | ||
"@azure/core-tracing": "^1.0.0-alpha", | ||
"@azure/logger": "^1.0.0", | ||
@@ -92,6 +92,6 @@ "@opentelemetry/api": "^0.10.2", | ||
"devDependencies": { | ||
"@azure/dev-tool": "^1.0.0", | ||
"@azure/eslint-plugin-azure-sdk": "^3.0.0", | ||
"@azure/dev-tool": "^1.0.0-alpha", | ||
"@azure/eslint-plugin-azure-sdk": "^3.0.0-alpha", | ||
"@azure/service-bus": "^7.0.0", | ||
"@azure/test-utils-recorder": "^1.0.0", | ||
"@azure/test-utils-recorder": "^1.0.0-alpha", | ||
"@microsoft/api-extractor": "7.7.11", | ||
@@ -114,3 +114,3 @@ "@rollup/plugin-commonjs": "11.0.2", | ||
"eslint": "^7.15.0", | ||
"karma": "^5.1.0", | ||
"karma": "^6.2.0", | ||
"karma-chrome-launcher": "^3.0.0", | ||
@@ -117,0 +117,0 @@ "karma-coverage": "^2.0.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
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
Sorry, the diff of this file is too big to display
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
1319629
16297
47
+ Added@azure/abort-controller@1.1.0(transitive)
+ Added@azure/core-asynciterator-polyfill@1.0.2(transitive)
+ Added@azure/core-client@1.0.0-beta.2(transitive)
+ Added@azure/core-rest-pipeline@1.0.0-beta.2(transitive)
+ Added@azure/core-tracing@1.0.0-preview.10(transitive)
+ Added@opencensus/web-types@0.0.7(transitive)
+ Addedagent-base@6.0.2(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@3.0.2(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
- Removed@azure/core-client@1.9.3-alpha.20241212.2(transitive)
- Removed@azure/core-rest-pipeline@1.18.11.18.2-alpha.20241212.2(transitive)
- Removed@azure/core-tracing@1.2.1-alpha.20241212.2(transitive)
- Removedagent-base@7.1.3(transitive)
- Removedhttp-proxy-agent@7.0.2(transitive)
- Removedhttps-proxy-agent@7.0.6(transitive)