react-server-dom-webpack 19.2.7 → 19.2.9

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.
@@ -11,12 +11,17 @@
11
11
  "use strict";
12
12
  var ReactDOM = require("react-dom"),
13
13
  React = require("react"),
14
+ hasOwnProperty = Object.prototype.hasOwnProperty,
14
15
  channel = new MessageChannel(),
15
16
  taskQueue = [];
16
17
  channel.port1.onmessage = function () {
17
18
  var task = taskQueue.shift();
18
19
  task && task();
19
20
  };
21
+ var supportsArrayBufferDetached = hasOwnProperty.call(
22
+ ArrayBuffer.prototype,
23
+ "detached"
24
+ );
20
25
  function scheduleWork(callback) {
21
26
  taskQueue.push(callback);
22
27
  channel.port2.postMessage(null);
@@ -38,28 +43,30 @@ var LocalPromise = Promise,
38
43
  currentView = null,
39
44
  writtenBytes = 0;
40
45
  function writeChunkAndReturn(destination, chunk) {
41
- if (0 !== chunk.byteLength)
42
- if (2048 < chunk.byteLength)
43
- 0 < writtenBytes &&
44
- (destination.enqueue(
45
- new Uint8Array(currentView.buffer, 0, writtenBytes)
46
- ),
47
- (currentView = new Uint8Array(2048)),
48
- (writtenBytes = 0)),
49
- destination.enqueue(chunk);
50
- else {
51
- var allowableBytes = currentView.length - writtenBytes;
52
- allowableBytes < chunk.byteLength &&
53
- (0 === allowableBytes
54
- ? destination.enqueue(currentView)
55
- : (currentView.set(chunk.subarray(0, allowableBytes), writtenBytes),
56
- destination.enqueue(currentView),
57
- (chunk = chunk.subarray(allowableBytes))),
58
- (currentView = new Uint8Array(2048)),
59
- (writtenBytes = 0));
60
- currentView.set(chunk, writtenBytes);
61
- writtenBytes += chunk.byteLength;
62
- }
46
+ if (0 === chunk.byteLength) {
47
+ if (supportsArrayBufferDetached && chunk.buffer.detached)
48
+ throw Error(
49
+ "Cannot transport a detached buffer. This usually happens when trying to transport multiple buffer-spanning views on the same underyling buffer. Either reuse the exact same view by identity or copy the underlying buffer manually via `view.slice()`."
50
+ );
51
+ } else if (2048 < chunk.byteLength)
52
+ 0 < writtenBytes &&
53
+ (destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes)),
54
+ (currentView = new Uint8Array(2048)),
55
+ (writtenBytes = 0)),
56
+ destination.enqueue(chunk);
57
+ else {
58
+ var allowableBytes = currentView.length - writtenBytes;
59
+ allowableBytes < chunk.byteLength &&
60
+ (0 === allowableBytes
61
+ ? destination.enqueue(currentView)
62
+ : (currentView.set(chunk.subarray(0, allowableBytes), writtenBytes),
63
+ destination.enqueue(currentView),
64
+ (chunk = chunk.subarray(allowableBytes))),
65
+ (currentView = new Uint8Array(2048)),
66
+ (writtenBytes = 0));
67
+ currentView.set(chunk, writtenBytes);
68
+ writtenBytes += chunk.byteLength;
69
+ }
63
70
  return !0;
64
71
  }
65
72
  var textEncoder = new TextEncoder();
@@ -823,8 +830,7 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
823
830
  "\n " + str + "\n " + objectOrArray)
824
831
  : "\n " + str;
825
832
  }
826
- var hasOwnProperty = Object.prototype.hasOwnProperty,
827
- ObjectPrototype$1 = Object.prototype,
833
+ var ObjectPrototype$1 = Object.prototype,
828
834
  stringify = JSON.stringify;
829
835
  function defaultErrorHandler(error) {
830
836
  console.error(error);
@@ -1052,7 +1058,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
1052
1058
  erroredTask(request, streamTask, reason),
1053
1059
  enqueueFlush(request),
1054
1060
  "function" === typeof iterator.throw &&
1055
- iterator.throw(reason).then(error, error));
1061
+ iterator.throw(reason).then(noop, noop));
1056
1062
  }
1057
1063
  function abortIterable() {
1058
1064
  if (0 === streamTask.status) {
@@ -1066,7 +1072,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
1066
1072
  : (erroredTask(request, streamTask, signal.reason),
1067
1073
  enqueueFlush(request));
1068
1074
  "function" === typeof iterator.throw &&
1069
- iterator.throw(reason).then(error, error);
1075
+ iterator.throw(reason).then(noop, noop);
1070
1076
  }
1071
1077
  }
1072
1078
  iterable = iterable === iterator;
@@ -1845,12 +1851,28 @@ function emitModelChunk(request, id, json) {
1845
1851
  }
1846
1852
  function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
1847
1853
  debug ? request.pendingDebugChunks++ : request.pendingChunks++;
1848
- debug = new Uint8Array(
1849
- typedArray.buffer,
1850
- typedArray.byteOffset,
1851
- typedArray.byteLength
1852
- );
1853
- typedArray = 2048 < typedArray.byteLength ? debug.slice() : debug;
1854
+ a: {
1855
+ debug = new Uint8Array(
1856
+ typedArray.buffer,
1857
+ typedArray.byteOffset,
1858
+ typedArray.byteLength
1859
+ );
1860
+ if (2048 < typedArray.byteLength) {
1861
+ if (
1862
+ 0 !== typedArray.byteOffset ||
1863
+ typedArray.byteLength !== typedArray.buffer.byteLength ||
1864
+ typedArray.buffer.resizable
1865
+ ) {
1866
+ typedArray = debug.slice();
1867
+ break a;
1868
+ }
1869
+ if (!supportsArrayBufferDetached) {
1870
+ typedArray = debug.slice();
1871
+ break a;
1872
+ }
1873
+ }
1874
+ typedArray = debug;
1875
+ }
1854
1876
  debug = typedArray.byteLength;
1855
1877
  id = id.toString(16) + ":" + tag + debug.toString(16) + ",";
1856
1878
  id = stringToChunk(id);
@@ -2252,6 +2274,38 @@ __webpack_require__.u = function (chunkId) {
2252
2274
  ? flightChunk
2253
2275
  : webpackGetChunkFilename(chunkId);
2254
2276
  };
2277
+ function appendBackingEntry(backingStore, value, key) {
2278
+ var prefix = backingStore.prefix;
2279
+ if (key.startsWith(prefix)) {
2280
+ switch (key[prefix.length]) {
2281
+ case "_":
2282
+ prefix = backingStore.referencedEntries;
2283
+ null === prefix && (prefix = backingStore.referencedEntries = []);
2284
+ prefix.push([key, value]);
2285
+ return;
2286
+ case "S":
2287
+ "string" === typeof value &&
2288
+ ((prefix = backingStore.streamChunks),
2289
+ null === prefix && (prefix = backingStore.streamChunks = new Map()),
2290
+ (backingStore = prefix.get(key)),
2291
+ void 0 === backingStore
2292
+ ? prefix.set(key, [value])
2293
+ : backingStore.push(value));
2294
+ return;
2295
+ }
2296
+ "string" === typeof value
2297
+ ? ((prefix = backingStore.stringChunks),
2298
+ null === prefix && (prefix = backingStore.stringChunks = new Map()),
2299
+ prefix.set(key, value))
2300
+ : ((prefix = backingStore.blobs),
2301
+ null === prefix && (prefix = backingStore.blobs = new Map()),
2302
+ prefix.set(key, value));
2303
+ }
2304
+ }
2305
+ function getBackingBlob(backingStore, key) {
2306
+ backingStore = backingStore.blobs;
2307
+ return null === backingStore ? void 0 : backingStore.get(key);
2308
+ }
2255
2309
  var RESPONSE_SYMBOL = Symbol();
2256
2310
  function ReactPromise(status, value, reason) {
2257
2311
  this.status = status;
@@ -2623,15 +2677,18 @@ function reportGlobalError(response, error) {
2623
2677
  function getChunk(response, id) {
2624
2678
  var chunks = response._chunks,
2625
2679
  chunk = chunks.get(id);
2626
- chunk ||
2627
- ((chunk = response._formData.data.get(response._prefix + id)),
2628
- (chunk =
2680
+ if (!chunk) {
2681
+ chunk = response._prefix;
2682
+ var stringChunks = response._formData.stringChunks;
2683
+ chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
2684
+ chunk =
2629
2685
  "string" === typeof chunk
2630
2686
  ? createResolvedModelChunk(response, chunk, id)
2631
2687
  : response._closed
2632
2688
  ? new ReactPromise("rejected", null, response._closedReason)
2633
- : new ReactPromise("pending", null, null)),
2634
- chunks.set(id, chunk));
2689
+ : new ReactPromise("pending", null, null);
2690
+ chunks.set(id, chunk);
2691
+ }
2635
2692
  return chunk;
2636
2693
  }
2637
2694
  function fulfillReference(response, reference, value, arrayRoot) {
@@ -2862,7 +2919,7 @@ function parseTypedArray(
2862
2919
  Error("Already initialized typed array.")
2863
2920
  )
2864
2921
  );
2865
- reference = response._formData.data.get(key).arrayBuffer();
2922
+ reference = getBackingBlob(response._formData, key).arrayBuffer();
2866
2923
  if (initializingHandler) {
2867
2924
  var handler = initializingHandler;
2868
2925
  handler.deps++;
@@ -2906,13 +2963,15 @@ function resolveStream(response, id, stream, controller) {
2906
2963
  var chunks = response._chunks;
2907
2964
  stream = new ReactPromise("fulfilled", stream, controller);
2908
2965
  chunks.set(id, stream);
2909
- response = response._formData.data.getAll(response._prefix + id);
2910
- for (id = 0; id < response.length; id++)
2911
- (chunks = response[id]),
2912
- "string" === typeof chunks &&
2913
- ("C" === chunks[0]
2966
+ chunks = response._prefix;
2967
+ response = response._formData.streamChunks;
2968
+ id = null === response ? void 0 : response.get(chunks + "S" + id);
2969
+ if (void 0 !== id)
2970
+ for (response = 0; response < id.length; response++)
2971
+ (chunks = id[response]),
2972
+ "C" === chunks[0]
2914
2973
  ? controller.close("C" === chunks ? '"$undefined"' : chunks.slice(1))
2915
- : controller.enqueueModel(chunks));
2974
+ : controller.enqueueModel(chunks);
2916
2975
  }
2917
2976
  function parseReadableStream(response, reference, type) {
2918
2977
  function enqueue(value) {
@@ -3078,7 +3137,14 @@ function parseAsyncIterable(response, reference, iterator) {
3078
3137
  });
3079
3138
  return iterator;
3080
3139
  }
3081
- function parseModelString(response, obj, key, value, reference, arrayRoot) {
3140
+ function parseModelString(
3141
+ response,
3142
+ obj,
3143
+ key$jscomp$0,
3144
+ value,
3145
+ reference,
3146
+ arrayRoot
3147
+ ) {
3082
3148
  if ("$" === value[0]) {
3083
3149
  switch (value[1]) {
3084
3150
  case "$":
@@ -3096,7 +3162,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3096
3162
  response,
3097
3163
  arrayRoot,
3098
3164
  obj,
3099
- key,
3165
+ key$jscomp$0,
3100
3166
  null,
3101
3167
  loadServerReference$1
3102
3168
  )
@@ -3113,43 +3179,55 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3113
3179
  case "Q":
3114
3180
  return (
3115
3181
  (arrayRoot = value.slice(2)),
3116
- getOutlinedModel(response, arrayRoot, obj, key, null, createMap)
3182
+ getOutlinedModel(
3183
+ response,
3184
+ arrayRoot,
3185
+ obj,
3186
+ key$jscomp$0,
3187
+ null,
3188
+ createMap
3189
+ )
3117
3190
  );
3118
3191
  case "W":
3119
3192
  return (
3120
3193
  (arrayRoot = value.slice(2)),
3121
- getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
3194
+ getOutlinedModel(
3195
+ response,
3196
+ arrayRoot,
3197
+ obj,
3198
+ key$jscomp$0,
3199
+ null,
3200
+ createSet
3201
+ )
3122
3202
  );
3123
3203
  case "K":
3124
- key = value.slice(2);
3125
- obj = response._prefix + "_";
3126
- key = obj + key + "_";
3127
- arrayRoot = new FormData();
3128
- for (response = response._formData; ; ) {
3129
- value = response.keys;
3130
- null === value &&
3131
- ((value = response.keys = Array.from(response.data.keys())),
3132
- (response.keyPointer = 0));
3133
- value = value[response.keyPointer];
3134
- if (void 0 === value) break;
3135
- if (value.startsWith(key)) {
3136
- reference = response.data.getAll(value);
3137
- for (
3138
- var referencedFormDataKey = value.slice(key.length), i = 0;
3139
- i < reference.length;
3140
- i++
3141
- )
3142
- arrayRoot.append(referencedFormDataKey, reference[i]);
3143
- response.data.delete(value);
3144
- response.keyPointer++;
3145
- } else if (value.startsWith(obj)) break;
3146
- else response.keyPointer++;
3204
+ obj = value.slice(2);
3205
+ obj = response._prefix + "_" + obj + "_";
3206
+ response = response._formData;
3207
+ key$jscomp$0 = new FormData();
3208
+ arrayRoot = response.referencedEntries;
3209
+ if (null !== arrayRoot) {
3210
+ for (value = response.keyPointer; value < arrayRoot.length; ) {
3211
+ reference = arrayRoot[value];
3212
+ var key = reference[0];
3213
+ if (!key.startsWith(obj)) break;
3214
+ key$jscomp$0.append(key.slice(obj.length), reference[1]);
3215
+ value++;
3216
+ }
3217
+ response.keyPointer = value;
3147
3218
  }
3148
- return arrayRoot;
3219
+ return key$jscomp$0;
3149
3220
  case "i":
3150
3221
  return (
3151
3222
  (arrayRoot = value.slice(2)),
3152
- getOutlinedModel(response, arrayRoot, obj, key, null, extractIterator)
3223
+ getOutlinedModel(
3224
+ response,
3225
+ arrayRoot,
3226
+ obj,
3227
+ key$jscomp$0,
3228
+ null,
3229
+ extractIterator
3230
+ )
3153
3231
  );
3154
3232
  case "I":
3155
3233
  return Infinity;
@@ -3178,7 +3256,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3178
3256
  ArrayBuffer,
3179
3257
  1,
3180
3258
  obj,
3181
- key,
3259
+ key$jscomp$0,
3182
3260
  arrayRoot
3183
3261
  );
3184
3262
  case "O":
@@ -3188,7 +3266,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3188
3266
  Int8Array,
3189
3267
  1,
3190
3268
  obj,
3191
- key,
3269
+ key$jscomp$0,
3192
3270
  arrayRoot
3193
3271
  );
3194
3272
  case "o":
@@ -3198,7 +3276,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3198
3276
  Uint8Array,
3199
3277
  1,
3200
3278
  obj,
3201
- key,
3279
+ key$jscomp$0,
3202
3280
  arrayRoot
3203
3281
  );
3204
3282
  case "U":
@@ -3208,7 +3286,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3208
3286
  Uint8ClampedArray,
3209
3287
  1,
3210
3288
  obj,
3211
- key,
3289
+ key$jscomp$0,
3212
3290
  arrayRoot
3213
3291
  );
3214
3292
  case "S":
@@ -3218,7 +3296,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3218
3296
  Int16Array,
3219
3297
  2,
3220
3298
  obj,
3221
- key,
3299
+ key$jscomp$0,
3222
3300
  arrayRoot
3223
3301
  );
3224
3302
  case "s":
@@ -3228,7 +3306,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3228
3306
  Uint16Array,
3229
3307
  2,
3230
3308
  obj,
3231
- key,
3309
+ key$jscomp$0,
3232
3310
  arrayRoot
3233
3311
  );
3234
3312
  case "L":
@@ -3238,7 +3316,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3238
3316
  Int32Array,
3239
3317
  4,
3240
3318
  obj,
3241
- key,
3319
+ key$jscomp$0,
3242
3320
  arrayRoot
3243
3321
  );
3244
3322
  case "l":
@@ -3248,7 +3326,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3248
3326
  Uint32Array,
3249
3327
  4,
3250
3328
  obj,
3251
- key,
3329
+ key$jscomp$0,
3252
3330
  arrayRoot
3253
3331
  );
3254
3332
  case "G":
@@ -3258,7 +3336,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3258
3336
  Float32Array,
3259
3337
  4,
3260
3338
  obj,
3261
- key,
3339
+ key$jscomp$0,
3262
3340
  arrayRoot
3263
3341
  );
3264
3342
  case "g":
@@ -3268,7 +3346,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3268
3346
  Float64Array,
3269
3347
  8,
3270
3348
  obj,
3271
- key,
3349
+ key$jscomp$0,
3272
3350
  arrayRoot
3273
3351
  );
3274
3352
  case "M":
@@ -3278,7 +3356,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3278
3356
  BigInt64Array,
3279
3357
  8,
3280
3358
  obj,
3281
- key,
3359
+ key$jscomp$0,
3282
3360
  arrayRoot
3283
3361
  );
3284
3362
  case "m":
@@ -3288,7 +3366,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3288
3366
  BigUint64Array,
3289
3367
  8,
3290
3368
  obj,
3291
- key,
3369
+ key$jscomp$0,
3292
3370
  arrayRoot
3293
3371
  );
3294
3372
  case "V":
@@ -3298,13 +3376,13 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3298
3376
  DataView,
3299
3377
  1,
3300
3378
  obj,
3301
- key,
3379
+ key$jscomp$0,
3302
3380
  arrayRoot
3303
3381
  );
3304
3382
  case "B":
3305
3383
  return (
3306
3384
  (obj = parseInt(value.slice(2), 16)),
3307
- response._formData.data.get(response._prefix + obj)
3385
+ getBackingBlob(response._formData, response._prefix + obj)
3308
3386
  );
3309
3387
  case "R":
3310
3388
  return parseReadableStream(response, value, void 0);
@@ -3316,7 +3394,14 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
3316
3394
  return parseAsyncIterable(response, value, !0);
3317
3395
  }
3318
3396
  value = value.slice(1);
3319
- return getOutlinedModel(response, value, obj, key, arrayRoot, createModel);
3397
+ return getOutlinedModel(
3398
+ response,
3399
+ value,
3400
+ obj,
3401
+ key$jscomp$0,
3402
+ arrayRoot,
3403
+ createModel
3404
+ );
3320
3405
  }
3321
3406
  null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);
3322
3407
  return value;
@@ -3328,11 +3413,20 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
3328
3413
  : new FormData(),
3329
3414
  arraySizeLimit =
3330
3415
  4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
3331
- chunks = new Map();
3416
+ chunks = new Map(),
3417
+ backingStore = {
3418
+ prefix: formFieldPrefix,
3419
+ referencedEntries: null,
3420
+ keyPointer: 0,
3421
+ stringChunks: null,
3422
+ streamChunks: null,
3423
+ blobs: null
3424
+ };
3425
+ backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
3332
3426
  return {
3333
3427
  _bundlerConfig: bundlerConfig,
3334
3428
  _prefix: formFieldPrefix,
3335
- _formData: { data: backingFormData, keyPointer: -1, keys: null },
3429
+ _formData: backingStore,
3336
3430
  _chunks: chunks,
3337
3431
  _closed: !1,
3338
3432
  _closedReason: null,
@@ -3396,44 +3490,41 @@ exports.createTemporaryReferenceSet = function () {
3396
3490
  };
3397
3491
  exports.decodeAction = function (body, serverManifest) {
3398
3492
  var formData = new FormData(),
3399
- action = null,
3400
- seenActions = new Set();
3493
+ maybeActionKey = null;
3401
3494
  body.forEach(function (value, key) {
3402
3495
  key.startsWith("$ACTION_")
3403
3496
  ? key.startsWith("$ACTION_REF_")
3404
- ? seenActions.has(key) ||
3405
- (seenActions.add(key),
3406
- (value = "$ACTION_" + key.slice(12) + ":"),
3407
- (value = decodeBoundActionMetaData(body, serverManifest, value)),
3408
- (action = loadServerReference(serverManifest, value)))
3409
- : key.startsWith("$ACTION_ID_") &&
3410
- !seenActions.has(key) &&
3411
- (seenActions.add(key),
3412
- (value = key.slice(11)),
3413
- (action = loadServerReference(serverManifest, {
3414
- id: value,
3415
- bound: null
3416
- })))
3497
+ ? (maybeActionKey = key)
3498
+ : key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
3417
3499
  : formData.append(key, value);
3418
3500
  });
3419
- return null === action
3420
- ? null
3421
- : action.then(function (fn) {
3422
- return fn.bind(null, formData);
3423
- });
3501
+ if (null === maybeActionKey) return null;
3502
+ var actionKey = maybeActionKey,
3503
+ action = null;
3504
+ if (actionKey.startsWith("$ACTION_REF_"))
3505
+ (actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
3506
+ (body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
3507
+ (action = loadServerReference(serverManifest, body));
3508
+ else if (actionKey.startsWith("$ACTION_ID_"))
3509
+ (body = actionKey.slice(11)),
3510
+ (action = loadServerReference(serverManifest, { id: body, bound: null }));
3511
+ else throw Error("Cannot handle action key. This is a bug in React.");
3512
+ return action.then(function (fn) {
3513
+ return fn.bind(null, formData);
3514
+ });
3424
3515
  };
3425
3516
  exports.decodeFormState = function (actionResult, body, serverManifest) {
3426
3517
  var keyPath = body.get("$ACTION_KEY");
3427
3518
  if ("string" !== typeof keyPath) return Promise.resolve(null);
3428
- var metaData = null;
3519
+ var actionKey = null;
3429
3520
  body.forEach(function (value, key) {
3430
- key.startsWith("$ACTION_REF_") &&
3431
- ((value = "$ACTION_" + key.slice(12) + ":"),
3432
- (metaData = decodeBoundActionMetaData(body, serverManifest, value)));
3521
+ key.startsWith("$ACTION_REF_") && (actionKey = key);
3433
3522
  });
3434
- if (null === metaData) return Promise.resolve(null);
3435
- var referenceId = metaData.id;
3436
- return Promise.resolve(metaData.bound).then(function (bound) {
3523
+ if (null === actionKey) return Promise.resolve(null);
3524
+ var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
3525
+ body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
3526
+ var referenceId = body.id;
3527
+ return Promise.resolve(body.bound).then(function (bound) {
3437
3528
  return null === bound
3438
3529
  ? null
3439
3530
  : [actionResult, keyPath, referenceId, bound.length - 1];