Open Michael-Stade opened 9 months ago
Thank you for your report. I need clarification about your changes. Please let me know the older version and what you replaced it with. Better yet, please submit a PR (even if you directly update the files in the esm6 folder).
@kum-deepak Because the token I created didn't got accepted, here what I did: In rx-stomp project: file esm6/rx-stomp-rpc.js:
import { filter, first, Observable } from 'rxjs'; //import { v4 as uuid } from 'uuid';
/**
make rx-stomp-rpc ESM conform #549 */function uuid(options, buf, offset) { var i = buf && offset || 0;
if (typeof(options) == 'string') { buf = options === 'binary' ? new Array(16) : null; options = null; } options = options || {};
var rnds = options.random || (options.rng || rng)();
// Per 4.4, set bits for version and clock_seq_hi_and_reserved
rnds[6] = (rnds[6] & 0x0f) | 0x40;
rnds[8] = (rnds[8] & 0x3f) | 0x80;
// Copy bytes to buffer, if provided if (buf) { for (var ii = 0; ii < 16; ++ii) { buf[i + ii] = rnds[ii]; } }
return buf || bytesToUuid(rnds); }
Including @stomp into an Angular17 project is leading to following warning: