@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.
@@ -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.toRaw():this._wrap(e):null},`findOne on ${this.name}`)}export{t as default};
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};
@@ -1 +1 @@
1
- import e from"../utils/fillDefaults.js";async function t(t){return t=e(this.schema,t),t.__v!==void 0&&(Number.isNaN(t.__v)?t.__v=0:t.__v+=1),this.client.executeWithRetry(async()=>(await this.mapper.update(t),this._wrap(t)),`update on ${this.name}`)}export{t as default};
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.17.0`,t=`An ODM for ScyllaDB/Cassandra`;export{t as description,e as version};
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.17.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
- "license": "MIT",
9
- "author": "RageStudio",
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",