Skip to content

Commit

Permalink
🔥feat: v1.0.4 (only @quipodb/sqlite)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-rajaneesh committed Dec 18, 2022
1 parent af03637 commit 057dfdb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/sqlite/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Sqlite {
const args = KEYS.map((v, i) => (v += ` = (?)`)).join(", ");
const Data = refData[`${this.options.primaryKey}`] ? refData : this.getDocProvider(collectionName, refData);
try {
this.sqlite.prepare(`UPDATE ${collectionName} SET ${args} WHERE ${this.options.primaryKey} = (?)`).run(VALUES, Data[`${this.options.primaryKey}`]);
this.sqlite.prepare(`UPDATE ${collectionName} SET ${args} WHERE ${this.options.primaryKey} = (?)`).run(VALUES, JSON.stringify(Data[`${this.options.primaryKey}`]));
}
catch (error) {
if (this.options.dev)
Expand Down
2 changes: 1 addition & 1 deletion packages/sqlite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Sqlite {
const args = KEYS.map((v, i) => (v += ` = (?)`)).join(", ");
const Data = refData[`${this.options.primaryKey}`] ? refData : this.getDocProvider(collectionName, refData);
try {
this.sqlite.prepare(`UPDATE ${collectionName} SET ${args} WHERE ${this.options.primaryKey} = (?)`).run(VALUES, Data[`${this.options.primaryKey}`]);
this.sqlite.prepare(`UPDATE ${collectionName} SET ${args} WHERE ${this.options.primaryKey} = (?)`).run(VALUES, JSON.stringify(Data[`${this.options.primaryKey}`]));
} catch (error) {
if (this.options.dev) console.log(error);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sqlite/package.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"@quipodb/sqlite","version":"1.0.3","description":"Sqlite provider for this package","type":"module","main":"./dist/index.js","typings":"./dist/index.d.ts","scripts":{"build":"tsc index.ts -t esnext -m esnext -d --allowSyntheticDefaultImports --moduleResolution node --outDir ./dist","publish-beta-public":"npm publish --tag beta --registry=https://registry.npmjs.com","publish-beta-private":"npm publish --tag beta","publish-public":"npm publish --registry=https://registry.npmjs.com --access public","publish-private":"npm publish"},"keywords":["sqlite","quipodb","db","database","provider"],"author":{"name":"Rajaneesh R","email":"rajaneeshr@proton.me","url":"https://r-rajaneesh.vercel.app"},"license":"ISC","dependencies":{"better-sqlite3":"^7.6.2","fs-extra":"^10.1.0"},"devDependencies":{"@types/better-sqlite3":"^7.6.0","@types/fs-extra":"^9.0.13","@types/lodash":"^4.14.182","@types/node":"^18.6.1","typescript":"^4.8.3"}}
{"name":"@quipodb/sqlite","version":"1.0.4","description":"Sqlite provider for this package","type":"module","main":"./dist/index.js","typings":"./dist/index.d.ts","scripts":{"build":"tsc index.ts -t esnext -m esnext -d --allowSyntheticDefaultImports --moduleResolution node --outDir ./dist","publish-beta-public":"npm publish --tag beta --registry=https://registry.npmjs.com","publish-beta-private":"npm publish --tag beta","publish-public":"npm publish --registry=https://registry.npmjs.com --access public","publish-private":"npm publish"},"keywords":["sqlite","quipodb","db","database","provider"],"author":{"name":"Rajaneesh R","email":"rajaneeshr@proton.me","url":"https://r-rajaneesh.vercel.app"},"license":"ISC","dependencies":{"better-sqlite3":"^7.6.2","fs-extra":"^10.1.0"},"devDependencies":{"@types/better-sqlite3":"^7.6.0","@types/fs-extra":"^9.0.13","@types/lodash":"^4.14.182","@types/node":"^18.6.1","typescript":"^4.8.3"}}

0 comments on commit 057dfdb

Please sign in to comment.