kewisch / sepa.js

Create and validate SEPA XML transactions
http://kewisch.github.io/sepa.js
Other
86 stars 61 forks source link

Provide UMD module that includes xmldom #47

Open kewisch opened 1 year ago

kewisch commented 1 year ago

Hi Phillip,

Thank you for your quick response. I would like to use your library in a tool we use to build a back office application: www.retool.comhttp://www.retool.com

I tried your unpkg link, but Retool does not like it:

[Graphical user interface, text, application, email Description automatically generated]

In Retool it is not possible to use require() and everything should be riding in one package. Here is the response to a similar question:

“For JS library imports we support files that contain the entire library. The link you tried has imports to other files and so that won’t work.”

I don’t know how to do that (put it all one package). Here is an example of another library that had the same problem trying to get it to run in Retool.com (the Question and the Answer to the solution:

Q: Trying to load this module following the instructions in the docs: @.***/index.min.js But I’m not able to call it in a Retool JS query or JS transformer. Any thoughts?

CONTENT: /**

A: You need to use @.***/dist/shortid-2.2.13.min.js which has all code in one package.

My question to you is if you know how to get sepa-xml into one package like above, I guess you have the experience to do this quite quickly.

Thank you so much for your time, Teele Horstra

Originally posted by @teeleh in https://github.com/kewisch/sepa.js/issues/44#issuecomment-1403718283

kewisch commented 1 year ago

Indeed I am using xmldom, though only in a node environment. @teeleh does retool run node, or is it a browser thing? It shouldn't be too difficult to package xmldom in a dist file, though I'm not sure when I'll get around to doing this.

teeleh commented 1 year ago

It is a browser thing and they don’t like includes (they refuse to run or use them, as all is strictly sandboxed). If I can make a donation to jump your work queue let me know 😉

From: Philipp Kewisch @.> Reply to: "kewisch/sepa.js" @.> Date: Wednesday, 25 January 2023 at 15:52 To: "kewisch/sepa.js" @.> Cc: Teele Horstra | YARD @.>, Mention @.***> Subject: Re: [kewisch/sepa.js] Provide UMD module that includes xmldom (Issue #47)

Indeed I am using xmldom, though only in a node environment. Does retool run node, or is it a browser thing? It shouldn't be too difficult to package xmldom in a dist file, though I'm not sure when I'll get around to doing this.

— Reply to this email directly, view it on GitHubhttps://github.com/kewisch/sepa.js/issues/47#issuecomment-1403742077, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC4NF6ZBTQCJJH2PUUYRHEDWUE42XANCNFSM6AAAAAAUGNGIFE. You are receiving this because you were mentioned.Message ID: @.***>