schema-markdown 1.0.5 → 1.0.6

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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "schema-markdown",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "description": "Human-friendly schema definition language and schema validator",
6
6
  "keywords": [
7
7
  "schema",
@@ -27,8 +27,8 @@
27
27
  "devDependencies": {
28
28
  "ava": "^4.0.0-rc.1",
29
29
  "c8": "~7.10",
30
- "eslint": "~8.2",
30
+ "eslint": "~8.3",
31
31
  "jsdoc": "~3.6",
32
- "jsdom": "~18.0"
32
+ "jsdom": "~18.1"
33
33
  }
34
34
  }
@@ -58,11 +58,11 @@ function encodeQueryStringHelper(obj, memberFqn = null, keyValues = []) {
58
58
  export function decodeQueryString(paramStr) {
59
59
  // Decode the parameter string key/values
60
60
  const result = [null];
61
- paramStr.split('&').filter((keyValue) => keyValue.length).forEach(
61
+ paramStr.split('&').forEach(
62
62
  (keyValue, ixKeyValue, keyValuesFiltered) => {
63
- const [keyFqn, valueEncoded = null] = keyValue.split('=');
63
+ const [keyFqn, valueEncoded = null] = keyValue.split('=', 2);
64
64
  if (valueEncoded === null) {
65
- // Ignore anchor tags
65
+ // Ignore hash IDs
66
66
  if (ixKeyValue === keyValuesFiltered.length - 1) {
67
67
  return;
68
68
  }