@ragestudio/scylla-odm 0.17.0 → 0.18.0
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/operations/findOne.js +1 -1
- package/operations/update.js +1 -1
- package/package.js +1 -1
- package/package.json +15 -3
package/operations/findOne.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../utils/queryParser.js";async function t(t={},n){return t=e(this,t),this.client.executeWithRetry(async()=>{let e=await this.mapper.get(t,n);return e?n?.raw===!0?e
|
|
1
|
+
import e from"../utils/queryParser.js";async function t(t={},n){return t=e(this,t),this.client.executeWithRetry(async()=>{let e=await this.mapper.get(t,n);return e?n?.raw===!0?e:this._wrap(e):null},`findOne on ${this.name}`)}export{t as default};
|
package/operations/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../utils/fillDefaults.js";async function
|
|
1
|
+
import e from"../utils/fillDefaults.js";import t from"../utils/queryParser.js";async function n(n){return n=e(this.schema,n),n=t(this,n),n.__v!==void 0&&(Number.isNaN(n.__v)?n.__v=0:n.__v+=1),this.client.executeWithRetry(async()=>(await this.mapper.update(n),this._wrap(n)),`update on ${this.name}`)}export{n as default};
|
package/package.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=`0.
|
|
1
|
+
var e=`0.18.0`,t=`An ODM for ScyllaDB/Cassandra`;export{t as description,e as version};
|
package/package.json
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ragestudio/scylla-odm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "An ODM for ScyllaDB/Cassandra",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "RageStudio",
|
|
5
7
|
"repository": {
|
|
6
8
|
"url": "https://git.ragestudio.net/ragestudio/scylla-odm"
|
|
7
9
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://git.ragestudio.net/ragestudio/scylla-odm/issues"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"scylladb",
|
|
15
|
+
"cassandra",
|
|
16
|
+
"odm",
|
|
17
|
+
"database",
|
|
18
|
+
"driver",
|
|
19
|
+
"mapper",
|
|
20
|
+
"typescript"
|
|
21
|
+
],
|
|
10
22
|
"type": "module",
|
|
11
23
|
"types": "./index.d.ts",
|
|
12
24
|
"main": "./index.js",
|