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

electrodb

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrodb - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

13

CHANGELOG.md

@@ -67,10 +67,17 @@ # Changelog

### [1.3.2] = 2021-08-11
### [1.3.2] - 2021-08-11
### Fixed
- Newly added method `parse()` had critical typo. Method now has an improved api, and appropriate tests [[read more]](./README.md#parse)
### [1.4.0] = 2021-08-22
### [1.4.0] - 2021-08-22
### Added
- Added support for choosing the case ElectroDB will use when modeling a Partition or Sort Key. [[read more]](./README.md#using-electrodb-with-existing-data)
- Added support for indexes to use fields that are shared with attribute fields. This should help users leverage ElectroDB with existing tables. [[read more]](./README.md#using-electrodb-with-existing-data)
- Added Query Option `ignoreOwnership` to bypass ElectroDB checks/interrogations for ownership of an item before returning it. [[read more]](./README.md#query-options)
- Added Query Option `ignoreOwnership` to bypass ElectroDB checks/interrogations for ownership of an item before returning it. [[read more]](./README.md#query-options)
### [1.4.1] - 2021-08-25
### Added
- Typedef support for RegExp validation on string attributes
### Fixed
- RegExp validation issue resulting in undefined (but not required) values being tested.
{
"name": "electrodb",
"version": "1.4.0",
"version": "1.4.1",
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -335,4 +335,7 @@ const { CastTypes, ValueTypes, KeyCasing, AttributeTypes, AttributeMutationMethods, AttributeWildCard, PathTypes, TraverserIndexes } = require("./types");

return (val) => {
if (val === undefined) {
return [true, ""];
}
let isValid = definition.test(val);
let reason = isValid ? "" : `Invalid value for attribute "${this.path}": Failed user defined regex`;
let reason = isValid ? "" : `Invalid value for attribute "${this.path}": Failed model defined regex`;
return [isValid, reason];

@@ -339,0 +342,0 @@ };

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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