electrodb 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docker/dynamodb/shared-local-instance.db +0 -0
- package/package.json +3 -2
- package/src/entity.js +2 -1
- package/.travis.yml +0 -15
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electrodb",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"coverage:local:coveralls": "npm run test:init && nyc npm run test:unit && nyc report --reporter=text-lcov | coveralls",
|
|
13
13
|
"coverage:local:html": "npm run test:init && nyc npm run test:unit && nyc report --reporter=html",
|
|
14
14
|
"build:browser": "browserify playground/browser.js -o playground/bundle.js",
|
|
15
|
-
"build": "sh buildbrowser.sh"
|
|
15
|
+
"build": "sh buildbrowser.sh",
|
|
16
|
+
"start:containers": "docker compose up -d"
|
|
16
17
|
},
|
|
17
18
|
"repository": {
|
|
18
19
|
"type": "git",
|
package/src/entity.js
CHANGED
|
@@ -1969,7 +1969,8 @@ class Entity {
|
|
|
1969
1969
|
let operation = ItemOperations.set;
|
|
1970
1970
|
const name = this.model.schema.translationForRetrieval[field];
|
|
1971
1971
|
if (name) {
|
|
1972
|
-
|
|
1972
|
+
const attribute = this.model.schema.attributes[name];
|
|
1973
|
+
if (this.model.schema.readOnlyAttributes.has(name) && (!attribute || !attribute.indexes || attribute.indexes.length === 0)) {
|
|
1973
1974
|
operation = ItemOperations.ifNotExists;
|
|
1974
1975
|
}
|
|
1975
1976
|
}
|
package/.travis.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
language: node_js
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
- docker
|
|
5
|
-
|
|
6
|
-
before_install:
|
|
7
|
-
- docker pull amazon/dynamodb-local
|
|
8
|
-
- docker run -p 8000:8000 --name dynamodb -d amazon/dynamodb-local
|
|
9
|
-
- docker ps -a
|
|
10
|
-
|
|
11
|
-
node_js:
|
|
12
|
-
- '16'
|
|
13
|
-
|
|
14
|
-
script:
|
|
15
|
-
- npm run coverage:local:coveralls
|