UNPKG

@jswork/jzyunqi-interceptors

Version:

Interceptors for jzyunqi/yw.

28 lines (27 loc) 876 B
"use strict"; /*! * 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 */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var next_1 = __importDefault(require("@jswork/next")); require("@jswork/next-deep-each"); function removeSpecial(options) { var data = options.data; if (!data || typeof data !== 'object') return options; next_1.default.deepEach(data, function (key, value, target) { if (typeof key === 'string' && key.startsWith('__') && key.endsWith('__')) { delete target[key]; } }); return options; } exports.default = removeSpecial;