dynamodb-onetable
Advanced tools
Comparing version 0.6.9 to 0.6.10
@@ -68,3 +68,3 @@ "use strict"; | ||
this.uuid = uuid || this.uuid; | ||
this.hidden = hidden || false; | ||
this.hidden = hidden || true; | ||
// Schema models | ||
@@ -71,0 +71,0 @@ this.models = {}; |
@@ -54,3 +54,3 @@ /* | ||
this.uuid = uuid || this.uuid; | ||
this.hidden = hidden || false; | ||
this.hidden = hidden || true; | ||
// Schema models | ||
@@ -57,0 +57,0 @@ this.models = {}; |
{ | ||
"name": "dynamodb-onetable", | ||
"version": "0.6.9", | ||
"version": "0.6.10", | ||
"description": "DynamoDB OneTable", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": "./dist/mjs/index.mjs", | ||
"require": "./dist/cjs/index.cjs" | ||
"import": "./dist/mjs/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
@@ -11,0 +10,0 @@ }, |
@@ -64,2 +64,8 @@ # DynamoDB OneTable | ||
or | ||
```javascript | ||
const {Model, Table} = require('dynamodb-onetable') | ||
``` | ||
Initialize your your Dynamo table instance and define your models via a schema. | ||
@@ -250,3 +256,3 @@ | ||
| logger | `object` | Logging function(tag, message, properties). Tag is data.info|error|trace|exception. | | ||
| hidden | `boolean` | Hide key attributes in Javascript properties. Default false. | | ||
| hidden | `boolean` | Hide key attributes in Javascript properties. Default true. | | ||
| name | `string` | yes | The name of your DynamoDB table | | ||
@@ -253,0 +259,0 @@ | nulls | `boolean` | Store nulls in database attributes. Default false. | |
172838
21
923
No