grpc-dc 0.47.0 → 0.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grpc-dc",
3
- "version": "0.47.0",
3
+ "version": "0.47.1",
4
4
  "description": "gRPC in the browser over WebRTC DataChannels: dependency-free generated gRPC clients & servers for JavaScript \u2014 no grpc-web proxy, no external runtime",
5
5
  "keywords": [
6
6
  "grpc",
@@ -362,9 +362,9 @@ function baseName(name) {
362
362
  function parseParams(parameter) {
363
363
  const params = {};
364
364
  if (!parameter) return params;
365
- for (const part of parameter.split(/[,:]/)) {
365
+ for (const part of parameter.replace(/::/g, '\u0001').split(/[,:]/)) {
366
366
  const i = part.indexOf('=');
367
- if (i >= 0) params[part.slice(0, i)] = part.slice(i + 1);
367
+ if (i >= 0) params[part.slice(0, i)] = part.slice(i + 1).replace(/\u0001/g, '::');
368
368
  }
369
369
  return params;
370
370
  }