Archived
1
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
api-ts-gen/dist/utils/qStringify.js
sup39 33834a89a9 fix FullDate stringify in Axios params
use local timezone instead of UTC in FullDate
2020-05-24 01:23:42 +09:00

15 lines
663 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Qs0 = require("qs");
var options0 = {
filter: function (prefix, value) {
var _a;
var con = value === null || value === void 0 ? void 0 : value.constructor;
// use Class.toString() if defined explicitly (exception: Object, Date)
return (con && con !== Object && con !== Date && ((_a = con.prototype) === null || _a === void 0 ? void 0 : _a.hasOwnProperty('toString'))) ? value.toString() : value;
},
};
function qStringify(obj, options) {
return Qs0.stringify(obj, Object.assign({}, options0, options));
}
exports.qStringify = qStringify;