@feathersjs/client 5.0.0-pre.23 → 5.0.0-pre.24

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0-pre.24](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.23...v5.0.0-pre.24) (2022-06-21)
7
+
8
+ **Note:** Version bump only for package @feathersjs/client
9
+
10
+
11
+
12
+
13
+
6
14
  # [5.0.0-pre.23](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.22...v5.0.0-pre.23) (2022-06-06)
7
15
 
8
16
  **Note:** Version bump only for package @feathersjs/client
package/dist/feathers.js CHANGED
@@ -3803,6 +3803,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
3803
3803
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
3804
3804
  var $replace = bind.call(Function.call, String.prototype.replace);
3805
3805
  var $strSlice = bind.call(Function.call, String.prototype.slice);
3806
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
3806
3807
 
3807
3808
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
3808
3809
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -3858,6 +3859,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
3858
3859
  throw new $TypeError('"allowMissing" argument must be a boolean');
3859
3860
  }
3860
3861
 
3862
+ if ($exec(/^%?[^%]*%?$/g, name) === null) {
3863
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
3864
+ }
3861
3865
  var parts = stringToPath(name);
3862
3866
  var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
3863
3867
 
@@ -5013,7 +5017,7 @@ var stringify = function stringify(
5013
5017
  for (var i = 0; i < valuesArray.length; ++i) {
5014
5018
  valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
5015
5019
  }
5016
- return [formatter(keyValue) + '=' + valuesJoined];
5020
+ return [formatter(keyValue) + (isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
5017
5021
  }
5018
5022
  return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
5019
5023
  }
@@ -5037,6 +5041,8 @@ var stringify = function stringify(
5037
5041
  objKeys = sort ? keys.sort(sort) : keys;
5038
5042
  }
5039
5043
 
5044
+ var adjustedPrefix = generateArrayPrefix === 'comma' && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
5045
+
5040
5046
  for (var j = 0; j < objKeys.length; ++j) {
5041
5047
  var key = objKeys[j];
5042
5048
  var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
@@ -5046,8 +5052,8 @@ var stringify = function stringify(
5046
5052
  }
5047
5053
 
5048
5054
  var keyPrefix = isArray(obj)
5049
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
5050
- : prefix + (allowDots ? '.' + key : '[' + key + ']');
5055
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
5056
+ : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
5051
5057
 
5052
5058
  sideChannel.set(object, step);
5053
5059
  var valueSideChannel = getSideChannel();