electrodb
Advanced tools
Comparing version 2.3.4 to 2.3.5
{ | ||
"name": "electrodb", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ // # Errors: | ||
section = section || "unknown-error-5001"; | ||
return `https://github.com/tywalch/electrodb#${section}`; | ||
return `https://electrodb.dev/en/reference/errors/#${section}`; | ||
} | ||
@@ -13,0 +13,0 @@ |
@@ -342,2 +342,5 @@ const {AttributeTypes, ItemOperations, AttributeProxySymbol, BuilderTypes} = require("./types"); | ||
for (let path of Object.keys(record)) { | ||
if (record[path] === undefined) { | ||
continue; | ||
} | ||
const value = record[path]; | ||
@@ -344,0 +347,0 @@ const parts = u.parseJSONPath(path); |
@@ -241,3 +241,3 @@ const { CastTypes, ValueTypes, KeyCasing, AttributeTypes, AttributeMutationMethods, AttributeWildCard, PathTypes, TableIndex, ItemOperations } = require("./types"); | ||
return (value) => { | ||
if ([AttributeTypes.string, AttributeTypes.enum].includes(this.type)) { | ||
if ([AttributeTypes.string, AttributeTypes.enum].includes(this.type) && value !== undefined) { | ||
value = `${prefix}${value}${postfix}`; | ||
@@ -462,3 +462,3 @@ } | ||
case AttributeTypes.enum: | ||
case AttributeTypes.enumSet: | ||
// case AttributeTypes.enumSet: | ||
// isTyped = this.enumArray.every(enumValue => { | ||
@@ -465,0 +465,0 @@ // const val = Array.isArray(value) ? value : [value]; |
@@ -158,3 +158,3 @@ const { Entity } = require("./entity"); | ||
if (modelVersion !== this._modelVersion) { | ||
throw new e.ElectroError(e.ErrorCodes.InvalidJoin, "Invalid instance: Valid instances to join include Models and Entity instances. Additionally, all models must be in the same format (v1 vs beta). Review https://github.com/tywalch/electrodb#version-v1-migration for more detail."); | ||
throw new e.ElectroError(e.ErrorCodes.InvalidJoin, "Invalid instance: Valid instances to join include Models and Entity instances."); | ||
} else if (modelVersion === ModelVersions.beta) { | ||
@@ -161,0 +161,0 @@ instance = applyBetaModelOverrides(instance, this._modelOverrides); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
394863
10139