@fnlb-project/stanza
Version:
Modern XMPP in the browser, with a JSON API
29 lines (28 loc) • 1.03 kB
JavaScript
;
// ====================================================================
// XEP-0131: Stanza Headers and Internet Metadata
// --------------------------------------------------------------------
// Source: https://xmpp.org/extensions/xep-0131.html
// Version: 1.2 (2006-07-12)
// ====================================================================
Object.defineProperty(exports, "__esModule", { value: true });
const jxt_1 = require("../jxt");
const Namespaces_1 = require("../Namespaces");
const Protocol = [
(0, jxt_1.extendMessage)({
headers: (0, jxt_1.splicePath)(Namespaces_1.NS_SHIM, 'headers', 'header', true)
}),
(0, jxt_1.extendPresence)({
headers: (0, jxt_1.splicePath)(Namespaces_1.NS_SHIM, 'headers', 'header', true)
}),
{
element: 'header',
fields: {
name: (0, jxt_1.attribute)('name'),
value: (0, jxt_1.text)()
},
namespace: Namespaces_1.NS_SHIM,
path: 'header'
}
];
exports.default = Protocol;