This commit is contained in:
Benjamin Toby 2025-01-14 08:01:19 +01:00
parent 87c7b4a83b
commit 285d3b8369
5 changed files with 3 additions and 8 deletions

View File

@ -46,7 +46,7 @@ export default async function fetchApi(
} as FetchHeader;
if (csrf && csrfValue) {
finalHeaders[`'${csrfValue.replace(/\"/g, "")}'`] = "true";
finalHeaders[`${csrfValue.replace(/\"/g, "")}`] = "true";
}
if (typeof options === "string") {

View File

@ -27,7 +27,7 @@ localStorageCSRFKey) {
"Content-Type": "application/json",
};
if (csrf && csrfValue) {
finalHeaders[`'${csrfValue.replace(/\"/g, "")}'`] = "true";
finalHeaders[`${csrfValue.replace(/\"/g, "")}`] = "true";
}
if (typeof options === "string") {
try {

View File

@ -11,8 +11,6 @@ const serverError_1 = __importDefault(require("./serverError"));
function grabSchemaFieldsFromData({ data, fields, excludeData, excludeFields, }) {
var _a;
try {
const possibleFields = require("../../data/possibleFields.json");
const dataTypes = require("../../data/dataTypes.json");
/** @type {DSQL_FieldSchemaType[]} */
const finalFields = [];
/** @type {string[]} */

View File

@ -18,9 +18,6 @@ export default function grabSchemaFieldsFromData({
excludeFields,
}: Param): DSQL_FieldSchemaType[] {
try {
const possibleFields = require("../../data/possibleFields.json");
const dataTypes = require("../../data/dataTypes.json");
/** @type {DSQL_FieldSchemaType[]} */
const finalFields: DSQL_FieldSchemaType[] = [];

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "3.4.4",
"version": "3.4.5",
"description": "Cloud-based SQL data management tool",
"main": "dist/index.js",
"bin": {