@firebase/firestore 3.9.0-canary.04b3edbe8 → 3.9.0-canary.480d7d560

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/dist/index.cjs.js CHANGED
@@ -70,7 +70,7 @@ b.MOCK_USER = new b("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let P = "9.18.0-canary.04b3edbe8";
73
+ let P = "9.18.0-canary.480d7d560";
74
74
 
75
75
  /**
76
76
  * @license
@@ -2185,38 +2185,38 @@ function Bt(t) {
2185
2185
  if (O(e >= 2), 2 === e) return O("" === t.charAt(0) && "" === t.charAt(1)), rt.emptyPath();
2186
2186
  // Escape characters cannot exist past the second-to-last position in the
2187
2187
  // source value.
2188
- const n = e - 2, s = [];
2189
- let i = "";
2190
- for (let r = 0; r < e; ) {
2188
+ const __PRIVATE_lastReasonableEscapeIndex = e - 2, n = [];
2189
+ let s = "";
2190
+ for (let i = 0; i < e; ) {
2191
2191
  // The last two characters of a valid encoded path must be a separator, so
2192
2192
  // there must be an end to this segment.
2193
- const e = t.indexOf("", r);
2194
- (e < 0 || e > n) && $();
2193
+ const e = t.indexOf("", i);
2194
+ (e < 0 || e > __PRIVATE_lastReasonableEscapeIndex) && $();
2195
2195
  switch (t.charAt(e + 1)) {
2196
2196
  case "":
2197
- const n = t.substring(r, e);
2197
+ const r = t.substring(i, e);
2198
2198
  let o;
2199
- 0 === i.length ?
2199
+ 0 === s.length ?
2200
2200
  // Avoid copying for the common case of a segment that excludes \0
2201
2201
  // and \001
2202
- o = n : (i += n, o = i, i = ""), s.push(o);
2202
+ o = r : (s += r, o = s, s = ""), n.push(o);
2203
2203
  break;
2204
2204
 
2205
2205
  case "":
2206
- i += t.substring(r, e), i += "\0";
2206
+ s += t.substring(i, e), s += "\0";
2207
2207
  break;
2208
2208
 
2209
2209
  case "":
2210
2210
  // The escape character can be used in the output to encode itself.
2211
- i += t.substring(r, e + 1);
2211
+ s += t.substring(i, e + 1);
2212
2212
  break;
2213
2213
 
2214
2214
  default:
2215
2215
  $();
2216
2216
  }
2217
- r = e + 2;
2217
+ i = e + 2;
2218
2218
  }
2219
- return new rt(s);
2219
+ return new rt(n);
2220
2220
  }
2221
2221
 
2222
2222
  /**
@@ -20905,9 +20905,9 @@ function xf(t, e) {
20905
20905
  return s = Object.assign({
20906
20906
  useFetchStreams: e
20907
20907
  }, s), r._setSettings(s), r;
20908
- }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(v, "3.9.0-canary.04b3edbe8", t),
20908
+ }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(v, "3.9.0-canary.480d7d560", t),
20909
20909
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
20910
- app.registerVersion(v, "3.9.0-canary.04b3edbe8", "cjs2017");
20910
+ app.registerVersion(v, "3.9.0-canary.480d7d560", "cjs2017");
20911
20911
  }();
20912
20912
 
20913
20913
  exports.AbstractUserDataWriter = kl;