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; } as FetchHeader;
if (csrf && csrfValue) { if (csrf && csrfValue) {
finalHeaders[`'${csrfValue.replace(/\"/g, "")}'`] = "true"; finalHeaders[`${csrfValue.replace(/\"/g, "")}`] = "true";
} }
if (typeof options === "string") { if (typeof options === "string") {

View File

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

View File

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

View File

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

View File

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