appwrite-utils
Advanced tools
Comparing version 0.1.23 to 0.1.24
@@ -15,4 +15,10 @@ import { stringAttributeSchema } from "../schemas/stringAttribute.js"; | ||
if (attribute.default !== undefined) { | ||
attributeToParse.xdefault = attribute.default; | ||
delete attributeToParse.default; | ||
if (attribute.array && attribute.default === null) { | ||
attributeToParse.xdefault = []; | ||
delete attributeToParse.default; | ||
} | ||
else { | ||
attributeToParse.xdefault = attribute.default; | ||
delete attributeToParse.default; | ||
} | ||
} | ||
@@ -19,0 +25,0 @@ if (attributeToParse.type === "string" && |
{ | ||
"name": "appwrite-utils", | ||
"module": "dist/index.js", | ||
"version": "0.1.23", | ||
"version": "0.1.24", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -24,4 +24,9 @@ import { ID, IndexType, Permission } from "node-appwrite"; | ||
if (attribute.default !== undefined) { | ||
attributeToParse.xdefault = attribute.default; | ||
delete attributeToParse.default; | ||
if (attribute.array && attribute.default === null) { | ||
attributeToParse.xdefault = []; | ||
delete attributeToParse.default; | ||
} else { | ||
attributeToParse.xdefault = attribute.default; | ||
delete attributeToParse.default; | ||
} | ||
} | ||
@@ -28,0 +33,0 @@ |
322547
8483