zapier-platform-core 12.0.1 → 12.0.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "zapier-platform-core",
3
- "version": "12.0.1",
3
+ "version": "12.0.2",
4
4
  "description": "The core SDK for CLI apps in the Zapier Developer Platform.",
5
5
  "repository": "zapier/zapier-platform",
6
6
  "homepage": "https://platform.zapier.com/",
@@ -50,7 +50,7 @@
50
50
  "node-fetch": "2.6.7",
51
51
  "oauth-sign": "0.9.0",
52
52
  "semver": "7.3.5",
53
- "zapier-platform-schema": "12.0.1"
53
+ "zapier-platform-schema": "12.0.2"
54
54
  },
55
55
  "devDependencies": {
56
56
  "adm-zip": "0.5.5",
@@ -64,6 +64,11 @@ const recurseReplaceBank = (obj, bank = {}) => {
64
64
 
65
65
  Object.keys(bank).forEach((key) => {
66
66
  const matchesKey = matchesKeyRegexMap[key];
67
+ // RegExp.test modifies internal state of the regex object
68
+ // since we're re-using regexes, we have to reset that state between calls
69
+ // or the second time in a row that the key should match, it misses instead
70
+ // see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex
71
+ matchesKey.lastIndex = 0;
67
72
  if (!matchesKey.test(maybeChangedString)) {
68
73
  return;
69
74
  }