@orioro/util 0.14.0 → 0.15.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @orioro/util
2
2
 
3
+ ## 0.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - substitute arrayChunk for lodash-es chunk
8
+
9
+ ## 0.15.0
10
+
11
+ ### Minor Changes
12
+
13
+ - add support for special chars inside string interpolator
14
+
3
15
  ## 0.14.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.js CHANGED
@@ -932,8 +932,10 @@ function debugFn(fnName, fn, logCall, logResult) {
932
932
  }
933
933
 
934
934
  /**
935
- * /\$\{\s*([\w$.]+)\s*\}/g
936
- * ![](docs/resources/interpolation_regexp.png)
935
+ * /\$\{\s*([A-Za-z0-9_$.=#+?@ \/'"-]+)\s*\}/g
936
+ * ![](docs/interpolation_regexp.png)
937
+ *
938
+ * https://regex-vis.com/?r=%2F%5C%24%5C%7B%5Cs*%28%5BA-Za-z0-9_%24.%3D%23%2B%3F%40+%5C%2F%27%22-%5D%2B%29%5Cs*%5C%7D%2Fg
937
939
  *
938
940
  * RegExp used for matching interpolation expressions.
939
941
  * Allows a non-interrupted sequence of alphanumeric chars ([A-Za-z0-9_]),
@@ -954,7 +956,7 @@ function debugFn(fnName, fn, logCall, logResult) {
954
956
  *
955
957
  * @const {RegExp} INTERPOLATION_REGEXP
956
958
  */
957
- var INTERPOLATION_REGEXP = /\$\{\s*([\w$.=\s]+)\s*\}/g;
959
+ var INTERPOLATION_REGEXP = /\$\{\s*([A-Za-z0-9_$.=#+?@ \/'"-]+)\s*\}/g;
958
960
  var DEFAULT_SIGN = '=';
959
961
  function _parsePathExpr(pathExpr) {
960
962
  var splitRes = pathExpr.split(DEFAULT_SIGN);
@@ -1174,7 +1176,7 @@ function batchFn(itemFn) {
1174
1176
  itemFn = timeout ? withTimeout(itemFn, timeout) : itemFn;
1175
1177
  return function batchExec(items) {
1176
1178
  var _this = this;
1177
- var batches = arrayChunk(items, batchSize);
1179
+ var batches = lodashEs.chunk(items, batchSize);
1178
1180
  var promise = new PromiseLikeEventEmitter();
1179
1181
  // const events = new EventEmitter<EventTypes>()
1180
1182
  var progressCount = 0;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { keyBy, get, set } from 'lodash-es';
1
+ import { keyBy, get, set, chunk } from 'lodash-es';
2
2
  import EventEmitter from 'eventemitter3';
3
3
  import copy from 'fast-copy';
4
4
  import traverse from 'traverse';
@@ -930,8 +930,10 @@ function debugFn(fnName, fn, logCall, logResult) {
930
930
  }
931
931
 
932
932
  /**
933
- * /\$\{\s*([\w$.]+)\s*\}/g
934
- * ![](docs/resources/interpolation_regexp.png)
933
+ * /\$\{\s*([A-Za-z0-9_$.=#+?@ \/'"-]+)\s*\}/g
934
+ * ![](docs/interpolation_regexp.png)
935
+ *
936
+ * https://regex-vis.com/?r=%2F%5C%24%5C%7B%5Cs*%28%5BA-Za-z0-9_%24.%3D%23%2B%3F%40+%5C%2F%27%22-%5D%2B%29%5Cs*%5C%7D%2Fg
935
937
  *
936
938
  * RegExp used for matching interpolation expressions.
937
939
  * Allows a non-interrupted sequence of alphanumeric chars ([A-Za-z0-9_]),
@@ -952,7 +954,7 @@ function debugFn(fnName, fn, logCall, logResult) {
952
954
  *
953
955
  * @const {RegExp} INTERPOLATION_REGEXP
954
956
  */
955
- var INTERPOLATION_REGEXP = /\$\{\s*([\w$.=\s]+)\s*\}/g;
957
+ var INTERPOLATION_REGEXP = /\$\{\s*([A-Za-z0-9_$.=#+?@ \/'"-]+)\s*\}/g;
956
958
  var DEFAULT_SIGN = '=';
957
959
  function _parsePathExpr(pathExpr) {
958
960
  var splitRes = pathExpr.split(DEFAULT_SIGN);
@@ -1172,7 +1174,7 @@ function batchFn(itemFn) {
1172
1174
  itemFn = timeout ? withTimeout(itemFn, timeout) : itemFn;
1173
1175
  return function batchExec(items) {
1174
1176
  var _this = this;
1175
- var batches = arrayChunk(items, batchSize);
1177
+ var batches = chunk(items, batchSize);
1176
1178
  var promise = new PromiseLikeEventEmitter();
1177
1179
  // const events = new EventEmitter<EventTypes>()
1178
1180
  var progressCount = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orioro/util",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "packageManager": "yarn@4.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",