Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appwrite-utils

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appwrite-utils - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

dist/functions/schema.js

@@ -15,7 +15,3 @@ import { stringAttributeSchema } from "../schemas/stringAttribute.js";

if (attribute.default !== undefined) {
if (attribute.array && attribute.default === null) {
attributeToParse.xdefault = [];
delete attributeToParse.default;
}
else if (attribute.default !== null) {
if (attribute.default !== null) {
attributeToParse.xdefault = attribute.default;

@@ -22,0 +18,0 @@ delete attributeToParse.default;

2

package.json
{
"name": "appwrite-utils",
"module": "dist/index.js",
"version": "0.2.0",
"version": "0.2.1",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "types": "dist/index.d.ts",

@@ -24,6 +24,3 @@ import { ID, IndexType, Permission } from "node-appwrite";

if (attribute.default !== undefined) {
if (attribute.array && attribute.default === null) {
attributeToParse.xdefault = [];
delete attributeToParse.default;
} else if (attribute.default !== null) {
if (attribute.default !== null) {
attributeToParse.xdefault = attribute.default;

@@ -30,0 +27,0 @@ delete attributeToParse.default;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc