@artilleryio/int-commons 2.0.0 → 2.0.1-0a58dd8

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/engine_util.js CHANGED
@@ -606,8 +606,9 @@ function extractRegExp(doc, expr, opts) {
606
606
  if (!match) {
607
607
  return '';
608
608
  }
609
- if (group && match[group]) {
610
- return match[group];
609
+
610
+ if (group && match.groups) {
611
+ return match.groups[group];
611
612
  } else if (match[0]) {
612
613
  return match[0];
613
614
  } else {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  module.exports = {
2
2
  engine_util: require('./engine_util'),
3
3
  jitter: require('./jitter')
4
- }
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artilleryio/int-commons",
3
- "version": "2.0.0",
3
+ "version": "2.0.1-0a58dd8",
4
4
  "main": "./index.js",
5
5
  "dependencies": {
6
6
  "async": "^2.6.4",
@@ -10,5 +10,9 @@
10
10
  "espree": "^9.4.1",
11
11
  "jsonpath-plus": "^7.2.0",
12
12
  "lodash": "^4.17.19"
13
+ },
14
+ "scripts": {
15
+ "lint": "eslint --ext \".js,.ts,.tsx\" .",
16
+ "lint-fix": "npm run lint -- --fix"
13
17
  }
14
- }
18
+ }