Add `install` recipe as alias to `build` and `dist`
This commit is contained in:
parent
c1efb0d2b4
commit
d9c41f62cf
4
Makefile
4
Makefile
|
@ -174,7 +174,6 @@ logo/conversejs-filled%.png:: logo/conversejs-filled.svg
|
|||
src/headless/dist/converse-headless.min.js: src webpack.common.js node_modules @converse/headless
|
||||
npm run headless
|
||||
|
||||
|
||||
.PHONY: dist
|
||||
dist:: build
|
||||
|
||||
|
@ -182,6 +181,9 @@ dist:: build
|
|||
build:: node_modules
|
||||
npm run dev && npm run build && make dist/website.css && make dist/website.min.css
|
||||
|
||||
.PHONY: install
|
||||
install:: build
|
||||
|
||||
.PHONY: cdn
|
||||
cdn:: node_modules
|
||||
npm run cdn
|
||||
|
|
|
@ -886,8 +886,9 @@ export const api = _converse.api = {
|
|||
promise = new Promise((resolve, reject) => _converse.connection.sendIQ(stanza, resolve, reject, timeout));
|
||||
promise.catch(e => {
|
||||
if (e === null) {
|
||||
const el = isElement(stanza) ? stanza : stanza.nodeTree;
|
||||
throw new TimeoutError(`Timeout error after ${timeout}ms for the following IQ stanza: ${el}`);
|
||||
throw new TimeoutError(
|
||||
`Timeout error after ${timeout}ms for the following IQ stanza: ${Strophe.serialize(stanza)}`
|
||||
);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue