otalk / jxt Goto Github PK
View Code? Open in Web Editor NEWJSON/XML Translation for the Browser
License: MIT License
JSON/XML Translation for the Browser
License: MIT License
how do we do something like
<occupants>
<user affiliation='member'>[email protected]</user>
<user affiliation='member'>[email protected]</user>
</occupants>
from
occupants = [{
affiliation: 'member',
jid: '[email protected]'
}, {
affiliation: 'member',
jid: '[email protected]'
}]
rebuilding stanza.io with jxt upgraded to 1.6 (from 1.4) results in the following error when trying a jingle-interop-demo call:
Uncaught TypeError: Cannot assign to read only property 'transType' of [object Object]
in
exports.extension = function (ChildJXT)'s set function at
child[prop] = value[prop];
Hi,
I'm trying to understand what happened to subMultiExtension from this library when it got moved to here: https://github.com/legastero/stanza/blob/master/src/jxt/Types.ts
Is there some other way I can get the same functionality?
The code looks like
fields: {
test: types.subMultiExtension(NS, 'test', OtherType);
};
https://github.com/otalk/jxt/blob/master/lib/stanza.js#L104
On this line we have: else if (val !== undefined && val !== false && val !== '') , but what if my value is false and i need it?
There are breaking changes related to how to use DOMElement see https://github.com/node-xmpp/ltx/releases/tag/v2.0.0
Also out of curiosity why do you need a DOM compatible API to use ltx?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.