@replayio-app-building/netlify-recorder 0.31.0 → 0.33.0
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.js +31 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -229,6 +229,21 @@ function installEnvironmentInterceptor(mode, reads) {
|
|
|
229
229
|
reads.push({ key: prop, value, timestamp: Date.now() });
|
|
230
230
|
}
|
|
231
231
|
return value;
|
|
232
|
+
},
|
|
233
|
+
set(target, prop, value) {
|
|
234
|
+
target[prop] = value;
|
|
235
|
+
return true;
|
|
236
|
+
},
|
|
237
|
+
defineProperty(target, prop, descriptor) {
|
|
238
|
+
if ("value" in descriptor) {
|
|
239
|
+
target[prop] = descriptor.value;
|
|
240
|
+
return true;
|
|
241
|
+
}
|
|
242
|
+
return Reflect.defineProperty(target, prop, descriptor);
|
|
243
|
+
},
|
|
244
|
+
deleteProperty(target, prop) {
|
|
245
|
+
delete target[prop];
|
|
246
|
+
return true;
|
|
232
247
|
}
|
|
233
248
|
});
|
|
234
249
|
} else {
|
|
@@ -242,6 +257,21 @@ function installEnvironmentInterceptor(mode, reads) {
|
|
|
242
257
|
return readMap.get(prop);
|
|
243
258
|
}
|
|
244
259
|
return target[prop];
|
|
260
|
+
},
|
|
261
|
+
set(target, prop, value) {
|
|
262
|
+
target[prop] = value;
|
|
263
|
+
return true;
|
|
264
|
+
},
|
|
265
|
+
defineProperty(target, prop, descriptor) {
|
|
266
|
+
if ("value" in descriptor) {
|
|
267
|
+
target[prop] = descriptor.value;
|
|
268
|
+
return true;
|
|
269
|
+
}
|
|
270
|
+
return Reflect.defineProperty(target, prop, descriptor);
|
|
271
|
+
},
|
|
272
|
+
deleteProperty(target, prop) {
|
|
273
|
+
delete target[prop];
|
|
274
|
+
return true;
|
|
245
275
|
}
|
|
246
276
|
});
|
|
247
277
|
}
|
|
@@ -1112,6 +1142,7 @@ async function ensureRequestRecording(sql, requestId, options) {
|
|
|
1112
1142
|
method: "POST",
|
|
1113
1143
|
headers: { "Content-Type": "application/json" },
|
|
1114
1144
|
body: JSON.stringify({
|
|
1145
|
+
requestId,
|
|
1115
1146
|
blobDataUrl: request.blob_data_url,
|
|
1116
1147
|
handlerPath: request.handler_path,
|
|
1117
1148
|
commitSha: request.commit_sha,
|