@jswork/jzyunqi-interceptors
Version:
Interceptors for jzyunqi/yw.
25 lines (24 loc) • 777 B
JavaScript
;
/*!
* 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 weibo2res_1 = __importDefault(require("@jswork/weibo2res"));
require("@jswork/next-deep-each");
function weiboNormalize(options) {
// options.data
var target = options.data;
if (typeof target === 'string' && target.includes('sina.com.cn')) {
options.data = (0, weibo2res_1.default)(target);
}
return options;
}
exports.default = weiboNormalize;