Преглед на файлове

ignore objects marked as raw for interceptors

Caleb Porzio преди 1 година
родител
ревизия
815fae3db5
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      packages/alpinejs/src/interceptor.js

+ 1 - 0
packages/alpinejs/src/interceptor.js

@@ -8,6 +8,7 @@ export function initInterceptors(data) {
         Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value, enumerable }]) => {
             // Skip getters.
             if (enumerable === false || value === undefined) return
+            if (typeof value === 'object' && value !== null && value.__v_skip) return
 
             let path = basePath === '' ? key : `${basePath}.${key}`