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