Updates
This commit is contained in:
parent
87c7b4a83b
commit
285d3b8369
@ -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") {
|
||||
|
2
dist/client/fetch/index.js
vendored
2
dist/client/fetch/index.js
vendored
@ -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 {
|
||||
|
@ -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[]} */
|
||||
|
@ -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[] = [];
|
||||
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user