@nsail/stack 0.1.939 → 0.1.952

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.
Files changed (2) hide show
  1. package/dist/mediator.js +1 -1
  2. package/package.json +1 -1
package/dist/mediator.js CHANGED
@@ -48,7 +48,7 @@ export class Mediator {
48
48
  url(message, request) {
49
49
  const values = request;
50
50
  const fields = Object.entries(message.fields);
51
- const path = message.path.replace(/{([^{}:?]+)[^{}]*}/g, (_, token) => {
51
+ const path = message.path.replace(/{\*{0,2}([^{}:?=*]+)[^{}]*}/g, (_, token) => {
52
52
  const name = fields.find(([candidate]) => candidate.toLowerCase() === token.toLowerCase())?.[0] ?? token;
53
53
  return encodeURIComponent(format(values[name]));
54
54
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsail/stack",
3
- "version": "0.1.939",
3
+ "version": "0.1.952",
4
4
  "description": "NSail's vendor-free client half: sends messages from the descriptors an Sdk generates, speaks the catalog, and holds the hooks a page reads with.",
5
5
  "license": "MIT",
6
6
  "repository": {