@azure/core-amqp 4.3.4-alpha.20241206.2 → 4.3.4-alpha.20241210.1
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/dist/browser/amqpAnnotatedMessage.d.ts.map +1 -1
- package/dist/browser/amqpAnnotatedMessage.js +0 -1
- package/dist/browser/amqpAnnotatedMessage.js.map +1 -1
- package/dist/commonjs/amqpAnnotatedMessage.d.ts.map +1 -1
- package/dist/commonjs/amqpAnnotatedMessage.js +0 -1
- package/dist/commonjs/amqpAnnotatedMessage.js.map +1 -1
- package/dist/esm/amqpAnnotatedMessage.d.ts.map +1 -1
- package/dist/esm/amqpAnnotatedMessage.js +0 -1
- package/dist/esm/amqpAnnotatedMessage.js.map +1 -1
- package/dist/react-native/amqpAnnotatedMessage.d.ts.map +1 -1
- package/dist/react-native/amqpAnnotatedMessage.js +0 -1
- package/dist/react-native/amqpAnnotatedMessage.js.map +1 -1
- package/package.json +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqpAnnotatedMessage.d.ts","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"amqpAnnotatedMessage.d.ts","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC5C;;;OAGG;IACH,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7C;;OAEG;IACH,qBAAqB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC/C;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;CAC1C;AAED;;GAEG;AAEH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;yBACkB,WAAW,GAAG,oBAAoB;IA8BvD;;OAEG;uBACgB,oBAAoB,GAAG,WAAW;CAyBtD,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
/* eslint-disable eqeqeq */
|
|
4
3
|
import { AmqpMessageHeader } from "./messageHeader.js";
|
|
5
4
|
import { AmqpMessageProperties } from "./messageProperties.js";
|
|
6
5
|
import { Constants } from "./util/constants.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqpAnnotatedMessage.js","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"amqpAnnotatedMessage.js","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MA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AC,IAAI,EACd,mBAAmB,EAAE,GAAG,CAAC,kBAAkB,EAC3C,oBAAoB,EAAE,GAAG,CAAC,mBAAmB,EAC7C,sBAAsB,EAAE,GAAG,CAAC,qBAAqB,EACjD,MAAM,EAAE,GAAG,CAAC,MAAM,GACnB,CAAC;QAEF,iGAAiG;QACjG,2FAA2F;QAC3F,8EAA8E;QAC9E,IAAI,MAAA,GAAG,CAAC,MAAM,0CAAE,UAAU,EAAE,CAAC;YAC3B,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC;YAClC,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;YACpD,KAAK,CAAC,aAAa,GAAG,MAAA,KAAK,CAAC,aAAa,mCAAI,IAAI,IAAI,EAAE,CAAC;YACxD,KAAK,CAAC,oBAAoB,GAAG,IAAI,IAAI,CACnC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,GAAG,GAAG,EAAE,SAAS,CAAC,qBAAqB,CAAC,CAC/E,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { AmqpMessageHeader } from \"./messageHeader.js\";\nimport { AmqpMessageProperties } from \"./messageProperties.js\";\nimport type { Message as RheaMessage } from \"rhea-promise\";\nimport { Constants } from \"./util/constants.js\";\n\n/**\n * Describes the AmqpAnnotatedMessage, part of the ServiceBusReceivedMessage(as `amqpAnnotatedMessage` property).\n */\nexport interface AmqpAnnotatedMessage {\n /**\n * Describes the defined set of standard header properties of the message.\n */\n header?: AmqpMessageHeader;\n /**\n * Describes set of footer properties of the message.\n */\n footer?: { [key: string]: any };\n /**\n * A dictionary containing message attributes that will be held in the message header\n */\n messageAnnotations?: { [key: string]: any };\n /**\n * A dictionary used for delivery-specific\n * non-standard properties at the head of the message.\n */\n deliveryAnnotations?: { [key: string]: any };\n /**\n * A dictionary containing application specific message properties.\n */\n applicationProperties?: { [key: string]: any };\n /**\n * Describes the defined set of standard properties of the message.\n */\n properties?: AmqpMessageProperties;\n /**\n * The message body.\n */\n body: any;\n /**\n * The AMQP section where the data was decoded from.\n */\n bodyType?: \"data\" | \"sequence\" | \"value\";\n}\n\n/**\n * Describes the operations that can be performed on(or to get) the AmqpAnnotatedMessage.\n */\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- renaming constant would be a breaking change.\nexport const AmqpAnnotatedMessage = {\n /**\n * Takes RheaMessage(`Message` type from \"rhea\") and returns it in the AmqpAnnotatedMessage format.\n */\n fromRheaMessage(msg: RheaMessage): AmqpAnnotatedMessage {\n const amqpMsg = {\n header: AmqpMessageHeader.fromRheaMessageHeader(msg),\n footer: (msg as any).footer,\n messageAnnotations: msg.message_annotations,\n deliveryAnnotations: msg.delivery_annotations,\n applicationProperties: msg.application_properties,\n properties: AmqpMessageProperties.fromRheaMessageProperties(msg),\n body: msg.body,\n };\n if (msg.absolute_expiry_time) {\n const absoluteExpiryTime = msg.absolute_expiry_time.getTime();\n amqpMsg.properties.absoluteExpiryTime = Math.min(\n absoluteExpiryTime,\n Constants.maxAbsoluteExpiryTime,\n );\n\n // The TTL from the header can be at most approximately 49 days (uint32\n // max value milliseconds) due to the AMQP spec. In order to allow for\n // larger TTLs set by the user, we take the difference of the\n // absolute_expiry_time and the creation_time (if both are set). If either of\n // those properties is not set, we fall back to the TTL from the header.\n if (msg.creation_time) {\n amqpMsg.header.timeToLive =\n amqpMsg.properties.absoluteExpiryTime - msg.creation_time.getTime();\n }\n }\n\n return amqpMsg;\n },\n /**\n * Takes AmqpAnnotatedMessage and returns it in the RheaMessage(`Message` type from \"rhea\") format.\n */\n toRheaMessage(msg: AmqpAnnotatedMessage): RheaMessage {\n const rhMsg = {\n ...AmqpMessageProperties.toRheaMessageProperties(msg.properties || {}),\n ...AmqpMessageHeader.toRheaMessageHeader(msg.header || {}),\n body: msg.body,\n message_annotations: msg.messageAnnotations,\n delivery_annotations: msg.deliveryAnnotations,\n application_properties: msg.applicationProperties,\n footer: msg.footer,\n };\n\n // There is a loss of fidelity in the TTL header if larger than uint32 max value. As a workaround\n // we set the absolute_expiry_time and creation_time on the message based on the TTL. These\n // values are then used to reconstruct the accurate TTL for received messages.\n if (msg.header?.timeToLive) {\n const ttl = msg.header.timeToLive;\n rhMsg.ttl = Math.min(ttl, Constants.maxUint32Value);\n rhMsg.creation_time = rhMsg.creation_time ?? new Date();\n rhMsg.absolute_expiry_time = new Date(\n Math.min(rhMsg.creation_time.getTime() + ttl, Constants.maxAbsoluteExpiryTime),\n );\n }\n\n return rhMsg;\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqpAnnotatedMessage.d.ts","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"amqpAnnotatedMessage.d.ts","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC5C;;;OAGG;IACH,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7C;;OAEG;IACH,qBAAqB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC/C;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;CAC1C;AAED;;GAEG;AAEH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;yBACkB,WAAW,GAAG,oBAAoB;IA8BvD;;OAEG;uBACgB,oBAAoB,GAAG,WAAW;CAyBtD,CAAC"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AmqpAnnotatedMessage = void 0;
|
|
4
4
|
// Copyright (c) Microsoft Corporation.
|
|
5
5
|
// Licensed under the MIT License.
|
|
6
|
-
/* eslint-disable eqeqeq */
|
|
7
6
|
const messageHeader_js_1 = require("./messageHeader.js");
|
|
8
7
|
const messageProperties_js_1 = require("./messageProperties.js");
|
|
9
8
|
const constants_js_1 = require("./util/constants.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqpAnnotatedMessage.js","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"amqpAnnotatedMessage.js","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,yDAAuD;AACvD,iEAA+D;AAE/D,sDAAgD;AAyChD;;GAEG;AACH,4GAA4G;AAC/F,QAAA,oBAAoB,GAAG;IAClC;;OAEG;IACH,eAAe,CAAC,GAAgB;QAC9B,MAAM,OAAO,GAAG;YACd,MAAM,EAAE,oCAAiB,CAAC,qBAAqB,CAAC,GAAG,CAAC;YAC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2F;QAC3F,8EAA8E;QAC9E,IAAI,MAAA,GAAG,CAAC,MAAM,0CAAE,UAAU,EAAE,CAAC;YAC3B,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC;YAClC,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,wBAAS,CAAC,cAAc,CAAC,CAAC;YACpD,KAAK,CAAC,aAAa,GAAG,MAAA,KAAK,CAAC,aAAa,mCAAI,IAAI,IAAI,EAAE,CAAC;YACxD,KAAK,CAAC,oBAAoB,GAAG,IAAI,IAAI,CACnC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,GAAG,GAAG,EAAE,wBAAS,CAAC,qBAAqB,CAAC,CAC/E,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { AmqpMessageHeader } from \"./messageHeader.js\";\nimport { AmqpMessageProperties } from \"./messageProperties.js\";\nimport type { Message as RheaMessage } from \"rhea-promise\";\nimport { Constants } from \"./util/constants.js\";\n\n/**\n * Describes the AmqpAnnotatedMessage, part of the ServiceBusReceivedMessage(as `amqpAnnotatedMessage` property).\n */\nexport interface AmqpAnnotatedMessage {\n /**\n * Describes the defined set of standard header properties of the message.\n */\n header?: AmqpMessageHeader;\n /**\n * Describes set of footer properties of the message.\n */\n footer?: { [key: string]: any };\n /**\n * A dictionary containing message attributes that will be held in the message header\n */\n messageAnnotations?: { [key: string]: any };\n /**\n * A dictionary used for delivery-specific\n * non-standard properties at the head of the message.\n */\n deliveryAnnotations?: { [key: string]: any };\n /**\n * A dictionary containing application specific message properties.\n */\n applicationProperties?: { [key: string]: any };\n /**\n * Describes the defined set of standard properties of the message.\n */\n properties?: AmqpMessageProperties;\n /**\n * The message body.\n */\n body: any;\n /**\n * The AMQP section where the data was decoded from.\n */\n bodyType?: \"data\" | \"sequence\" | \"value\";\n}\n\n/**\n * Describes the operations that can be performed on(or to get) the AmqpAnnotatedMessage.\n */\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- renaming constant would be a breaking change.\nexport const AmqpAnnotatedMessage = {\n /**\n * Takes RheaMessage(`Message` type from \"rhea\") and returns it in the AmqpAnnotatedMessage format.\n */\n fromRheaMessage(msg: RheaMessage): AmqpAnnotatedMessage {\n const amqpMsg = {\n header: AmqpMessageHeader.fromRheaMessageHeader(msg),\n footer: (msg as any).footer,\n messageAnnotations: msg.message_annotations,\n deliveryAnnotations: msg.delivery_annotations,\n applicationProperties: msg.application_properties,\n properties: AmqpMessageProperties.fromRheaMessageProperties(msg),\n body: msg.body,\n };\n if (msg.absolute_expiry_time) {\n const absoluteExpiryTime = msg.absolute_expiry_time.getTime();\n amqpMsg.properties.absoluteExpiryTime = Math.min(\n absoluteExpiryTime,\n Constants.maxAbsoluteExpiryTime,\n );\n\n // The TTL from the header can be at most approximately 49 days (uint32\n // max value milliseconds) due to the AMQP spec. In order to allow for\n // larger TTLs set by the user, we take the difference of the\n // absolute_expiry_time and the creation_time (if both are set). If either of\n // those properties is not set, we fall back to the TTL from the header.\n if (msg.creation_time) {\n amqpMsg.header.timeToLive =\n amqpMsg.properties.absoluteExpiryTime - msg.creation_time.getTime();\n }\n }\n\n return amqpMsg;\n },\n /**\n * Takes AmqpAnnotatedMessage and returns it in the RheaMessage(`Message` type from \"rhea\") format.\n */\n toRheaMessage(msg: AmqpAnnotatedMessage): RheaMessage {\n const rhMsg = {\n ...AmqpMessageProperties.toRheaMessageProperties(msg.properties || {}),\n ...AmqpMessageHeader.toRheaMessageHeader(msg.header || {}),\n body: msg.body,\n message_annotations: msg.messageAnnotations,\n delivery_annotations: msg.deliveryAnnotations,\n application_properties: msg.applicationProperties,\n footer: msg.footer,\n };\n\n // There is a loss of fidelity in the TTL header if larger than uint32 max value. As a workaround\n // we set the absolute_expiry_time and creation_time on the message based on the TTL. These\n // values are then used to reconstruct the accurate TTL for received messages.\n if (msg.header?.timeToLive) {\n const ttl = msg.header.timeToLive;\n rhMsg.ttl = Math.min(ttl, Constants.maxUint32Value);\n rhMsg.creation_time = rhMsg.creation_time ?? new Date();\n rhMsg.absolute_expiry_time = new Date(\n Math.min(rhMsg.creation_time.getTime() + ttl, Constants.maxAbsoluteExpiryTime),\n );\n }\n\n return rhMsg;\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqpAnnotatedMessage.d.ts","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"amqpAnnotatedMessage.d.ts","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC5C;;;OAGG;IACH,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7C;;OAEG;IACH,qBAAqB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC/C;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;CAC1C;AAED;;GAEG;AAEH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;yBACkB,WAAW,GAAG,oBAAoB;IA8BvD;;OAEG;uBACgB,oBAAoB,GAAG,WAAW;CAyBtD,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
/* eslint-disable eqeqeq */
|
|
4
3
|
import { AmqpMessageHeader } from "./messageHeader.js";
|
|
5
4
|
import { AmqpMessageProperties } from "./messageProperties.js";
|
|
6
5
|
import { Constants } from "./util/constants.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqpAnnotatedMessage.js","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"amqpAnnotatedMessage.js","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAyChD;;GAEG;AACH,4GAA4G;AAC5G,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,eAAe,CAAC,GAAgB;QAC9B,MAAM,OAAO,GAAG;YACd,MAAM,EAAE,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,CAAC;YACpD,MAAM,EAAG,GAAW,CAAC,MAAM;YAC3B,kBAAkB,EAAE,GAAG,CAAC,mBAAmB;YAC3C,mBAAmB,EAAE,GAAG,CAAC,oBAAoB;YAC7C,qBAAqB,EAAE,GAAG,CAAC,s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,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;YACpD,KAAK,CAAC,aAAa,GAAG,MAAA,KAAK,CAAC,aAAa,mCAAI,IAAI,IAAI,EAAE,CAAC;YACxD,KAAK,CAAC,oBAAoB,GAAG,IAAI,IAAI,CACnC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,GAAG,GAAG,EAAE,SAAS,CAAC,qBAAqB,CAAC,CAC/E,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { AmqpMessageHeader } from \"./messageHeader.js\";\nimport { AmqpMessageProperties } from \"./messageProperties.js\";\nimport type { Message as RheaMessage } from \"rhea-promise\";\nimport { Constants } from \"./util/constants.js\";\n\n/**\n * Describes the AmqpAnnotatedMessage, part of the ServiceBusReceivedMessage(as `amqpAnnotatedMessage` property).\n */\nexport interface AmqpAnnotatedMessage {\n /**\n * Describes the defined set of standard header properties of the message.\n */\n header?: AmqpMessageHeader;\n /**\n * Describes set of footer properties of the message.\n */\n footer?: { [key: string]: any };\n /**\n * A dictionary containing message attributes that will be held in the message header\n */\n messageAnnotations?: { [key: string]: any };\n /**\n * A dictionary used for delivery-specific\n * non-standard properties at the head of the message.\n */\n deliveryAnnotations?: { [key: string]: any };\n /**\n * A dictionary containing application specific message properties.\n */\n applicationProperties?: { [key: string]: any };\n /**\n * Describes the defined set of standard properties of the message.\n */\n properties?: AmqpMessageProperties;\n /**\n * The message body.\n */\n body: any;\n /**\n * The AMQP section where the data was decoded from.\n */\n bodyType?: \"data\" | \"sequence\" | \"value\";\n}\n\n/**\n * Describes the operations that can be performed on(or to get) the AmqpAnnotatedMessage.\n */\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- renaming constant would be a breaking change.\nexport const AmqpAnnotatedMessage = {\n /**\n * Takes RheaMessage(`Message` type from \"rhea\") and returns it in the AmqpAnnotatedMessage format.\n */\n fromRheaMessage(msg: RheaMessage): AmqpAnnotatedMessage {\n const amqpMsg = {\n header: AmqpMessageHeader.fromRheaMessageHeader(msg),\n footer: (msg as any).footer,\n messageAnnotations: msg.message_annotations,\n deliveryAnnotations: msg.delivery_annotations,\n applicationProperties: msg.application_properties,\n properties: AmqpMessageProperties.fromRheaMessageProperties(msg),\n body: msg.body,\n };\n if (msg.absolute_expiry_time) {\n const absoluteExpiryTime = msg.absolute_expiry_time.getTime();\n amqpMsg.properties.absoluteExpiryTime = Math.min(\n absoluteExpiryTime,\n Constants.maxAbsoluteExpiryTime,\n );\n\n // The TTL from the header can be at most approximately 49 days (uint32\n // max value milliseconds) due to the AMQP spec. In order to allow for\n // larger TTLs set by the user, we take the difference of the\n // absolute_expiry_time and the creation_time (if both are set). If either of\n // those properties is not set, we fall back to the TTL from the header.\n if (msg.creation_time) {\n amqpMsg.header.timeToLive =\n amqpMsg.properties.absoluteExpiryTime - msg.creation_time.getTime();\n }\n }\n\n return amqpMsg;\n },\n /**\n * Takes AmqpAnnotatedMessage and returns it in the RheaMessage(`Message` type from \"rhea\") format.\n */\n toRheaMessage(msg: AmqpAnnotatedMessage): RheaMessage {\n const rhMsg = {\n ...AmqpMessageProperties.toRheaMessageProperties(msg.properties || {}),\n ...AmqpMessageHeader.toRheaMessageHeader(msg.header || {}),\n body: msg.body,\n message_annotations: msg.messageAnnotations,\n delivery_annotations: msg.deliveryAnnotations,\n application_properties: msg.applicationProperties,\n footer: msg.footer,\n };\n\n // There is a loss of fidelity in the TTL header if larger than uint32 max value. As a workaround\n // we set the absolute_expiry_time and creation_time on the message based on the TTL. These\n // values are then used to reconstruct the accurate TTL for received messages.\n if (msg.header?.timeToLive) {\n const ttl = msg.header.timeToLive;\n rhMsg.ttl = Math.min(ttl, Constants.maxUint32Value);\n rhMsg.creation_time = rhMsg.creation_time ?? new Date();\n rhMsg.absolute_expiry_time = new Date(\n Math.min(rhMsg.creation_time.getTime() + ttl, Constants.maxAbsoluteExpiryTime),\n );\n }\n\n return rhMsg;\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqpAnnotatedMessage.d.ts","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"amqpAnnotatedMessage.d.ts","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC5C;;;OAGG;IACH,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7C;;OAEG;IACH,qBAAqB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC/C;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;CAC1C;AAED;;GAEG;AAEH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;yBACkB,WAAW,GAAG,oBAAoB;IA8BvD;;OAEG;uBACgB,oBAAoB,GAAG,WAAW;CAyBtD,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
/* eslint-disable eqeqeq */
|
|
4
3
|
import { AmqpMessageHeader } from "./messageHeader.js";
|
|
5
4
|
import { AmqpMessageProperties } from "./messageProperties.js";
|
|
6
5
|
import { Constants } from "./util/constants.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqpAnnotatedMessage.js","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"amqpAnnotatedMessage.js","sourceRoot":"","sources":["../../src/amqpAnnotatedMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAyChD;;GAEG;AACH,4GAA4G;AAC5G,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,eAAe,CAAC,GAAgB;QAC9B,MAAM,OAAO,GAAG;YACd,MAAM,EAAE,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,CAAC;YACpD,MAAM,EAAG,GAAW,CAAC,MAAM;YAC3B,kBAAkB,EAAE,GAAG,CAAC,mBAAmB;YAC3C,mBAAmB,EAAE,GAAG,CAAC,oBAAoB;YAC7C,qBAAqB,EAAE,GAAG,CAAC,sBAAsB;YACjD,UAAU,EAAE,qBAAqB,CAAC,yBAAyB,CAAC,GAAG,CAAC;YAChE,IAAI,EAAE,GAAG,CAAC,IAAI;SACf,CAAC;QACF,IAAI,GAAG,CAAC,oBAAoB,EAAE,CAAC;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I,EAAE,CAAC;YACxD,KAAK,CAAC,oBAAoB,GAAG,IAAI,IAAI,CACnC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,GAAG,GAAG,EAAE,SAAS,CAAC,qBAAqB,CAAC,CAC/E,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { AmqpMessageHeader } from \"./messageHeader.js\";\nimport { AmqpMessageProperties } from \"./messageProperties.js\";\nimport type { Message as RheaMessage } from \"rhea-promise\";\nimport { Constants } from \"./util/constants.js\";\n\n/**\n * Describes the AmqpAnnotatedMessage, part of the ServiceBusReceivedMessage(as `amqpAnnotatedMessage` property).\n */\nexport interface AmqpAnnotatedMessage {\n /**\n * Describes the defined set of standard header properties of the message.\n */\n header?: AmqpMessageHeader;\n /**\n * Describes set of footer properties of the message.\n */\n footer?: { [key: string]: any };\n /**\n * A dictionary containing message attributes that will be held in the message header\n */\n messageAnnotations?: { [key: string]: any };\n /**\n * A dictionary used for delivery-specific\n * non-standard properties at the head of the message.\n */\n deliveryAnnotations?: { [key: string]: any };\n /**\n * A dictionary containing application specific message properties.\n */\n applicationProperties?: { [key: string]: any };\n /**\n * Describes the defined set of standard properties of the message.\n */\n properties?: AmqpMessageProperties;\n /**\n * The message body.\n */\n body: any;\n /**\n * The AMQP section where the data was decoded from.\n */\n bodyType?: \"data\" | \"sequence\" | \"value\";\n}\n\n/**\n * Describes the operations that can be performed on(or to get) the AmqpAnnotatedMessage.\n */\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- renaming constant would be a breaking change.\nexport const AmqpAnnotatedMessage = {\n /**\n * Takes RheaMessage(`Message` type from \"rhea\") and returns it in the AmqpAnnotatedMessage format.\n */\n fromRheaMessage(msg: RheaMessage): AmqpAnnotatedMessage {\n const amqpMsg = {\n header: AmqpMessageHeader.fromRheaMessageHeader(msg),\n footer: (msg as any).footer,\n messageAnnotations: msg.message_annotations,\n deliveryAnnotations: msg.delivery_annotations,\n applicationProperties: msg.application_properties,\n properties: AmqpMessageProperties.fromRheaMessageProperties(msg),\n body: msg.body,\n };\n if (msg.absolute_expiry_time) {\n const absoluteExpiryTime = msg.absolute_expiry_time.getTime();\n amqpMsg.properties.absoluteExpiryTime = Math.min(\n absoluteExpiryTime,\n Constants.maxAbsoluteExpiryTime,\n );\n\n // The TTL from the header can be at most approximately 49 days (uint32\n // max value milliseconds) due to the AMQP spec. In order to allow for\n // larger TTLs set by the user, we take the difference of the\n // absolute_expiry_time and the creation_time (if both are set). If either of\n // those properties is not set, we fall back to the TTL from the header.\n if (msg.creation_time) {\n amqpMsg.header.timeToLive =\n amqpMsg.properties.absoluteExpiryTime - msg.creation_time.getTime();\n }\n }\n\n return amqpMsg;\n },\n /**\n * Takes AmqpAnnotatedMessage and returns it in the RheaMessage(`Message` type from \"rhea\") format.\n */\n toRheaMessage(msg: AmqpAnnotatedMessage): RheaMessage {\n const rhMsg = {\n ...AmqpMessageProperties.toRheaMessageProperties(msg.properties || {}),\n ...AmqpMessageHeader.toRheaMessageHeader(msg.header || {}),\n body: msg.body,\n message_annotations: msg.messageAnnotations,\n delivery_annotations: msg.deliveryAnnotations,\n application_properties: msg.applicationProperties,\n footer: msg.footer,\n };\n\n // There is a loss of fidelity in the TTL header if larger than uint32 max value. As a workaround\n // we set the absolute_expiry_time and creation_time on the message based on the TTL. These\n // values are then used to reconstruct the accurate TTL for received messages.\n if (msg.header?.timeToLive) {\n const ttl = msg.header.timeToLive;\n rhMsg.ttl = Math.min(ttl, Constants.maxUint32Value);\n rhMsg.creation_time = rhMsg.creation_time ?? new Date();\n rhMsg.absolute_expiry_time = new Date(\n Math.min(rhMsg.creation_time.getTime() + ttl, Constants.maxAbsoluteExpiryTime),\n );\n }\n\n return rhMsg;\n },\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/core-amqp",
|
|
3
3
|
"sdk-type": "client",
|
|
4
|
-
"version": "4.3.4-alpha.
|
|
4
|
+
"version": "4.3.4-alpha.20241210.1",
|
|
5
5
|
"description": "Common library for amqp based azure sdks like @azure/event-hubs.",
|
|
6
6
|
"author": "Microsoft Corporation",
|
|
7
7
|
"license": "MIT",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
55
55
|
"integration-test:browser": "echo skipped",
|
|
56
56
|
"integration-test:node": "echo skipped",
|
|
57
|
-
"lint": "eslint package.json api-extractor.json src test",
|
|
58
|
-
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
|
|
57
|
+
"lint": "eslint README.md package.json api-extractor.json src test",
|
|
58
|
+
"lint:fix": "eslint README.md package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
|
|
59
59
|
"pack": "npm pack 2>&1",
|
|
60
60
|
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run bundle && npm run unit-test:browser && npm run integration-test",
|
|
61
61
|
"test:browser": "npm run clean && npm run unit-test:browser && npm run integration-test:browser",
|
|
@@ -119,7 +119,8 @@
|
|
|
119
119
|
"browser",
|
|
120
120
|
"react-native"
|
|
121
121
|
],
|
|
122
|
-
"selfLink": false
|
|
122
|
+
"selfLink": false,
|
|
123
|
+
"project": "./tsconfig.src.json"
|
|
123
124
|
},
|
|
124
125
|
"module": "./dist/esm/index.js"
|
|
125
126
|
}
|