appwrite-utils
Advanced tools
Comparing version 0.1.24 to 0.1.25
@@ -19,6 +19,9 @@ import { stringAttributeSchema } from "../schemas/stringAttribute.js"; | ||
} | ||
else { | ||
else if (attribute.default !== null) { | ||
attributeToParse.xdefault = attribute.default; | ||
delete attributeToParse.default; | ||
} | ||
else { | ||
delete attributeToParse.default; | ||
} | ||
} | ||
@@ -25,0 +28,0 @@ if (attributeToParse.type === "string" && |
{ | ||
"name": "appwrite-utils", | ||
"module": "dist/index.js", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -27,5 +27,7 @@ import { ID, IndexType, Permission } from "node-appwrite"; | ||
delete attributeToParse.default; | ||
} else { | ||
} else if (attribute.default !== null) { | ||
attributeToParse.xdefault = attribute.default; | ||
delete attributeToParse.default; | ||
} else { | ||
delete attributeToParse.default; | ||
} | ||
@@ -32,0 +34,0 @@ } |
322733
8488