UNPKG

@jswork/jzyunqi-interceptors

Version:

Interceptors for jzyunqi/yw.

22 lines (21 loc) 604 B
/*! * name: @jswork/jzyunqi-interceptors * description: Interceptors for jzyunqi/yw. * homepage: https://js.work * version: 1.0.12 * date: 2025-03-01 11:46:15 * license: MIT */ import nx from '@jswork/next'; import '@jswork/next-deep-each'; export default function removeSpecial(options) { var data = options.data; if (!data || typeof data !== 'object') return options; nx.deepEach(data, function (key, value, target) { if (typeof key === 'string' && key.startsWith('__') && key.endsWith('__')) { delete target[key]; } }); return options; }