@decaf-ts/for-pouch 0.12.1 → 1.0.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/README.md +4 -5
- package/dist/for-pouch.cjs +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/index.js +3 -3
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/package.json +27 -19
package/README.md
CHANGED
|
@@ -13,10 +13,9 @@ This package targets the current PouchDB 9.x plugin line. WebSQL is not included
|
|
|
13
13
|

|
|
14
14
|

|
|
15
15
|
|
|
16
|
-
[](https://github.com/decaf-ts/for-pouch/actions/workflows/jest-coverage.yaml)
|
|
17
17
|
[](https://github.com/decaf-ts/for-pouch/actions/workflows/codeql-analysis.yml)[](https://github.com/decaf-ts/for-pouch/actions/workflows/snyk-analysis.yaml)
|
|
18
|
-
[](https://github.com/decaf-ts/for-pouch/actions/workflows/release-on-tag.yaml)
|
|
18
|
+
[](https://github.com/decaf-ts/for-pouch/actions/workflows/release-on-merge-pr.yml)
|
|
20
19
|
|
|
21
20
|

|
|
22
21
|

|
|
@@ -27,8 +26,8 @@ This package targets the current PouchDB 9.x plugin line. WebSQL is not included
|
|
|
27
26
|

|
|
28
27
|

|
|
29
28
|
|
|
30
|
-

|
|
30
|
+

|
|
32
31
|
|
|
33
32
|
Documentation available [here](https://decaf-ts.github.io/for-pouch/)
|
|
34
33
|
|
package/dist/for-pouch.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e,t;e=this,t=function(e,t,r,o,s,a,i,n,c,d,h,u){"use strict";function l(e){var t=Object.create(null);return e&&Object.keys(e).forEach(r=>{if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}),t.default=e,Object.freeze(t)}var f=l(c),p=l(d),g=l(h);const w="pouch",E="local_dbs";class y extends s.BaseError{constructor(e){super(y.name,e,404)}}class b extends o.CouchDBRepository{constructor(e,t,r=!1){super(e,t,r)}override(e){return super.override(e).for(e)}}async function m(e,t,r,o){try{const t=e.get("UUID");o[r]=t}catch(e){throw new a.UnsupportedError("No User found in context. Please provide a user in the context")}}class C extends o.CouchDBAdapter{constructor(e,t){super(e,w,t),this._pluginsRegistered=!1}registerPlugins(){if(this._pluginsRegistered)return;const e=[f,p,g,...this.config.plugins];for(const t of e)try{n.plugin(t)}catch(e){if(e instanceof Error&&e.message.includes("redefine property"))continue;throw e}this._pluginsRegistered=!0}buildClient(e,t){this.registerPlugins();const{host:r,protocol:o,dbName:a,storagePath:i}=this.config;try{return new n(r?`${o}://${e?`${e?encodeURIComponent(e):""}${e&&t?":"+encodeURIComponent(t):""}@`:""}${r}/${a}`:`${i||E}/${a}`)}catch(e){throw new s.InternalError("Failed to create PouchDB client: "+e)}}getAdminClient(){return this.config.adminUser?(this._adminClient||(this._adminClient=this.buildClient(this.config.adminUser,this.config.adminPassword??this.config.password)),this._adminClient):this.getClient()}getClient(){return this._client||(this._client=this.buildClient(this.config.couchUser??this.config.user,this.config.couchPassword??this.config.password)),this._client}async flags(e,t,o,...s){return this.config.user||(this.config.user=r.randomUUID()),super.flags(e,t,Object.assign({UUID:this.config.user},o),...s)}repository(){return b}async index(...e){const t=this.getAdminClient();try{const r=3,s=o.generateIndexes(e),a=new Set;try{const e=await t.get("_index");(e?.indexes||[]).forEach(e=>{e.name&&a.add(e.name)})}catch{}for(const e of s){const o=e.name??e.ddoc??"index";if(a.has(o))continue;let s=0;for(;;)try{await t.createIndex(e),a.add(o);break}catch(a){if(409===a?.status||"conflict"===a?.error)break;if(500===a?.status){s+=1;const a="_design/"+(e.ddoc??o);try{const e=await t.get(a);await t.remove(a,e._rev)}catch{}if(s>=r)break;await new Promise(e=>setTimeout(e,100*s));continue}throw a}}const i=o.generateViews(e);for(const e of i)try{await t.put(e)}catch(r){if(409!==r?.status&&"conflict"!==r?.error)throw r;{const r=await t.get(e._id);await t.put({...e,_rev:r._rev})}}}catch(e){}}async create(e,t,r,...o){let a;try{a=await this.client.put(r)}catch(e){throw this.parseError(e)}if(!a.ok)throw new s.InternalError(`Failed to insert doc id: ${t} in table ${i.Model.tableName(e)}`);return this.assignMetadata(r,a.rev)}async createAll(e,t,r,...o){let a;try{a=await this.client.bulkDocs(r)}catch(e){throw this.parseError(e)}if(!a.every(e=>e.ok)){const e=a.reduce((e,t,r)=>(t.error&&e.push(`el ${r}: ${t.error}${t.reason?" - "+t.reason:""}`),e),[]);throw new s.InternalError(e.join("\n"))}return this.assignMultipleMetadata(r,a.map(e=>e.rev))}async read(e,t,...r){const o=this.generateId(i.Model.tableName(e),t);let s;try{s=await this.client.get(o)}catch(e){throw this.parseError(e)}return this.assignMetadata(s,s._rev)}async readAll(e,t,...r){const a=i.Model.tableName(e);return(await this.client.bulkGet({docs:t.map(e=>({id:this.generateId(a,e)}))})).results.reduce((e,t)=>(t.docs.forEach(t=>{if(t.error||!t.ok)throw this.parseError(t.error||new s.InternalError("Missing valid response"));const r=Object.assign({},t.ok);e.push(this.assignMetadata(r,t.ok[o.CouchDBKeys.REV]))}),e),[])}async update(e,t,r,...o){let a;try{a=await this.client.put(r)}catch(e){throw this.parseError(e)}if(!a.ok)throw new s.InternalError(`Failed to update doc id: ${t} in table ${i.Model.tableName(e)}`);return this.assignMetadata(r,a.rev)}async updateAll(e,t,r,...o){let a;try{a=await this.client.bulkDocs(r)}catch(e){throw this.parseError(e)}if(!a.every(e=>!e.error)){const e=a.reduce((e,t,r)=>(t.error&&e.push(`el ${r}: ${t.error}${t.reason?" - "+t.reason:""}`),e),[]);throw new s.InternalError(e.join("\n"))}return this.assignMultipleMetadata(r,a.map(e=>e.rev))}async delete(e,t,...r){const o=this.generateId(i.Model.tableName(e),t);let s;try{s=await this.client.get(o),await this.client.remove(o,s._rev)}catch(e){throw this.parseError(e)}return this.assignMetadata(s,s._rev)}async deleteAll(e,t,...r){const{log:a}=this.logCtx(r,this.deleteAll),n=i.Model.tableName(e),c=await this.client.bulkGet({docs:t.map(e=>({id:this.generateId(n,e)}))}),d=c.results.reduce((e,t)=>(t.docs.forEach(t=>{if(t.error)throw this.parseError(t.error||new s.InternalError("Missing valid response"));const r=Object.assign({},t.ok);r[o.CouchDBKeys.DELETED]=!0,e.push(r)}),e),[]);return(await this.client.bulkDocs(d)).forEach(e=>{const t=e.error;t&&a.error(t+"")}),c.results.reduce((e,t)=>(t.docs.forEach(t=>{if(t.error||!t.ok)throw this.parseError(t.error||new s.InternalError("Missing valid response"));const r=Object.assign({},t.ok);e.push(this.assignMetadata(r,t.ok[o.CouchDBKeys.REV]))}),e),[])}async raw(e,t=!0,...r){try{const o=await this.client.find(e);if(o.warning){const{log:e}=await this.logCtx(r,this.raw,!0);e.for(this.raw).warn(o.warning)}return t?o.docs:o}catch(e){throw this.parseError(e)}}async view(e,t,r,...o){try{const o=`${e}/${t}`;return await this.client.query(o,r)}catch(e){throw this.parseError(e)}}parseError(e,t){return C.parseError(e,t)}static parseError(e,t){if(e instanceof s.BaseError)return e;let r;if("string"==typeof e){if(r=e,r.match(/already exist|update conflict/g))return new s.ConflictError(r);if(r.match(/missing|deleted/g))return new s.NotFoundError(r)}else e.status?(r=e.status,t=t||e.message):e.code?(r=e.code,t=t||e.message):e.statusCode?(r=e.statusCode,t=t||e.message):r=e.message;switch(r.toString()){case"401":case"412":case"409":return new s.ConflictError(t);case"404":return new s.NotFoundError(t);case"400":return r.toString().match(/No\sindex\sexists/g)?new y(e):new s.InternalError(e);default:return r.toString().match(/ECONNREFUSED/g)?new a.ConnectionError(e):new s.InternalError(e)}}static decoration(){super.decoration(),u.Decoration.flavouredAs(w).for(a.PersistenceKeys.CREATED_BY).define(s.onCreate(m),u.propMetadata(a.PersistenceKeys.CREATED_BY,{})).apply(),u.Decoration.flavouredAs(w).for(a.PersistenceKeys.UPDATED_BY).define(s.onCreateUpdate(m),u.propMetadata(a.PersistenceKeys.UPDATED_BY,{})).apply()}}a.Adapter.setCurrent(w),C.decoration();const v="##VERSION##",D="##PACKAGE##";u.Metadata.registerLibrary(D,v),e.COMMIT="
|
|
1
|
+
var e,t;e=this,t=function(e,t,r,o,s,a,i,n,c,d,h,u){"use strict";function l(e){var t=Object.create(null);return e&&Object.keys(e).forEach(r=>{if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}),t.default=e,Object.freeze(t)}var f=l(c),p=l(d),g=l(h);const w="pouch",E="local_dbs";class y extends s.BaseError{constructor(e){super(y.name,e,404)}}class b extends o.CouchDBRepository{constructor(e,t,r=!1){super(e,t,r)}override(e){return super.override(e).for(e)}}async function m(e,t,r,o){try{const t=e.get("UUID");o[r]=t}catch(e){throw new a.UnsupportedError("No User found in context. Please provide a user in the context")}}class C extends o.CouchDBAdapter{constructor(e,t){super(e,w,t),this._pluginsRegistered=!1}registerPlugins(){if(this._pluginsRegistered)return;const e=[f,p,g,...this.config.plugins];for(const t of e)try{n.plugin(t)}catch(e){if(e instanceof Error&&e.message.includes("redefine property"))continue;throw e}this._pluginsRegistered=!0}buildClient(e,t){this.registerPlugins();const{host:r,protocol:o,dbName:a,storagePath:i}=this.config;try{return new n(r?`${o}://${e?`${e?encodeURIComponent(e):""}${e&&t?":"+encodeURIComponent(t):""}@`:""}${r}/${a}`:`${i||E}/${a}`)}catch(e){throw new s.InternalError("Failed to create PouchDB client: "+e)}}getAdminClient(){return this.config.adminUser?(this._adminClient||(this._adminClient=this.buildClient(this.config.adminUser,this.config.adminPassword??this.config.password)),this._adminClient):this.getClient()}getClient(){return this._client||(this._client=this.buildClient(this.config.couchUser??this.config.user,this.config.couchPassword??this.config.password)),this._client}async flags(e,t,o,...s){return this.config.user||(this.config.user=r.randomUUID()),super.flags(e,t,Object.assign({UUID:this.config.user},o),...s)}repository(){return b}async index(...e){const t=this.getAdminClient();try{const r=3,s=o.generateIndexes(e),a=new Set;try{const e=await t.get("_index");(e?.indexes||[]).forEach(e=>{e.name&&a.add(e.name)})}catch{}for(const e of s){const o=e.name??e.ddoc??"index";if(a.has(o))continue;let s=0;for(;;)try{await t.createIndex(e),a.add(o);break}catch(a){if(409===a?.status||"conflict"===a?.error)break;if(500===a?.status){s+=1;const a="_design/"+(e.ddoc??o);try{const e=await t.get(a);await t.remove(a,e._rev)}catch{}if(s>=r)break;await new Promise(e=>setTimeout(e,100*s));continue}throw a}}const i=o.generateViews(e);for(const e of i)try{await t.put(e)}catch(r){if(409!==r?.status&&"conflict"!==r?.error)throw r;{const r=await t.get(e._id);await t.put({...e,_rev:r._rev})}}}catch(e){}}async create(e,t,r,...o){let a;try{a=await this.client.put(r)}catch(e){throw this.parseError(e)}if(!a.ok)throw new s.InternalError(`Failed to insert doc id: ${t} in table ${i.Model.tableName(e)}`);return this.assignMetadata(r,a.rev)}async createAll(e,t,r,...o){let a;try{a=await this.client.bulkDocs(r)}catch(e){throw this.parseError(e)}if(!a.every(e=>e.ok)){const e=a.reduce((e,t,r)=>(t.error&&e.push(`el ${r}: ${t.error}${t.reason?" - "+t.reason:""}`),e),[]);throw new s.InternalError(e.join("\n"))}return this.assignMultipleMetadata(r,a.map(e=>e.rev))}async read(e,t,...r){const o=this.generateId(i.Model.tableName(e),t);let s;try{s=await this.client.get(o)}catch(e){throw this.parseError(e)}return this.assignMetadata(s,s._rev)}async readAll(e,t,...r){const a=i.Model.tableName(e);return(await this.client.bulkGet({docs:t.map(e=>({id:this.generateId(a,e)}))})).results.reduce((e,t)=>(t.docs.forEach(t=>{if(t.error||!t.ok)throw this.parseError(t.error||new s.InternalError("Missing valid response"));const r=Object.assign({},t.ok);e.push(this.assignMetadata(r,t.ok[o.CouchDBKeys.REV]))}),e),[])}async update(e,t,r,...o){let a;try{a=await this.client.put(r)}catch(e){throw this.parseError(e)}if(!a.ok)throw new s.InternalError(`Failed to update doc id: ${t} in table ${i.Model.tableName(e)}`);return this.assignMetadata(r,a.rev)}async updateAll(e,t,r,...o){let a;try{a=await this.client.bulkDocs(r)}catch(e){throw this.parseError(e)}if(!a.every(e=>!e.error)){const e=a.reduce((e,t,r)=>(t.error&&e.push(`el ${r}: ${t.error}${t.reason?" - "+t.reason:""}`),e),[]);throw new s.InternalError(e.join("\n"))}return this.assignMultipleMetadata(r,a.map(e=>e.rev))}async delete(e,t,...r){const o=this.generateId(i.Model.tableName(e),t);let s;try{s=await this.client.get(o),await this.client.remove(o,s._rev)}catch(e){throw this.parseError(e)}return this.assignMetadata(s,s._rev)}async deleteAll(e,t,...r){const{log:a}=this.logCtx(r,this.deleteAll),n=i.Model.tableName(e),c=await this.client.bulkGet({docs:t.map(e=>({id:this.generateId(n,e)}))}),d=c.results.reduce((e,t)=>(t.docs.forEach(t=>{if(t.error)throw this.parseError(t.error||new s.InternalError("Missing valid response"));const r=Object.assign({},t.ok);r[o.CouchDBKeys.DELETED]=!0,e.push(r)}),e),[]);return(await this.client.bulkDocs(d)).forEach(e=>{const t=e.error;t&&a.error(t+"")}),c.results.reduce((e,t)=>(t.docs.forEach(t=>{if(t.error||!t.ok)throw this.parseError(t.error||new s.InternalError("Missing valid response"));const r=Object.assign({},t.ok);e.push(this.assignMetadata(r,t.ok[o.CouchDBKeys.REV]))}),e),[])}async raw(e,t=!0,...r){try{const o=await this.client.find(e);if(o.warning){const{log:e}=await this.logCtx(r,this.raw,!0);e.for(this.raw).warn(o.warning)}return t?o.docs:o}catch(e){throw this.parseError(e)}}async view(e,t,r,...o){try{const o=`${e}/${t}`;return await this.client.query(o,r)}catch(e){throw this.parseError(e)}}parseError(e,t){return C.parseError(e,t)}static parseError(e,t){if(e instanceof s.BaseError)return e;let r;if("string"==typeof e){if(r=e,r.match(/already exist|update conflict/g))return new s.ConflictError(r);if(r.match(/missing|deleted/g))return new s.NotFoundError(r)}else e.status?(r=e.status,t=t||e.message):e.code?(r=e.code,t=t||e.message):e.statusCode?(r=e.statusCode,t=t||e.message):r=e.message;switch(r.toString()){case"401":case"412":case"409":return new s.ConflictError(t);case"404":return new s.NotFoundError(t);case"400":return r.toString().match(/No\sindex\sexists/g)?new y(e):new s.InternalError(e);default:return r.toString().match(/ECONNREFUSED/g)?new a.ConnectionError(e):new s.InternalError(e)}}static decoration(){super.decoration(),u.Decoration.flavouredAs(w).for(a.PersistenceKeys.CREATED_BY).define(s.onCreate(m),u.propMetadata(a.PersistenceKeys.CREATED_BY,{})).apply(),u.Decoration.flavouredAs(w).for(a.PersistenceKeys.UPDATED_BY).define(s.onCreateUpdate(m),u.propMetadata(a.PersistenceKeys.UPDATED_BY,{})).apply()}}a.Adapter.setCurrent(w),C.decoration();const v="##VERSION##",D="##PACKAGE##";u.Metadata.registerLibrary(D,v),e.COMMIT="05a0c88",e.DefaultLocalStoragePath=E,e.FULL_VERSION="1.0.0-05a0c88",e.PACKAGE_NAME=D,e.PouchAdapter=C,e.PouchFlavour=w,e.PouchRepository=b,e.VERSION=v,e.createdByOnPouchCreateUpdate=m},"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("reflect-metadata"),require("crypto"),require("@decaf-ts/for-couchdb"),require("@decaf-ts/db-decorators"),require("@decaf-ts/core"),require("@decaf-ts/decorator-validation"),require("pouchdb-core"),require("pouchdb-mapreduce"),require("pouchdb-replication"),require("pouchdb-find"),require("@decaf-ts/decoration")):"function"==typeof define&&define.amd?define(["exports","reflect-metadata","crypto","@decaf-ts/for-couchdb","@decaf-ts/db-decorators","@decaf-ts/core","@decaf-ts/decorator-validation","pouchdb-core","pouchdb-mapreduce","pouchdb-replication","pouchdb-find","@decaf-ts/decoration"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["for-pouch"]={},e.reflectMetadata,e.crypto,e.decafTsForCouchdb,e.decafTsDbDecorators,e.decafTsCore,e.decafTsDecoratorValidation,e.pouchdbCore,e.pouchdbMapreduce,e.pouchdbReplication,e.pouchdbFind,e.decafTsDecoration);
|
|
2
2
|
//# sourceMappingURL=for-pouch.cjs.map
|
package/lib/cjs/index.cjs
CHANGED
|
@@ -34,21 +34,21 @@ __exportStar(require("./adapter.cjs"), exports);
|
|
|
34
34
|
* @const VERSION
|
|
35
35
|
* @memberOf module:for-pouch
|
|
36
36
|
*/
|
|
37
|
-
exports.VERSION = "0.
|
|
37
|
+
exports.VERSION = "1.0.0";
|
|
38
38
|
/**
|
|
39
39
|
* @description Represents the current commit hash of the module build.
|
|
40
40
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
41
41
|
* the placeholder with the actual commit hash at publish time.
|
|
42
42
|
* @const COMMIT
|
|
43
43
|
*/
|
|
44
|
-
exports.COMMIT = "
|
|
44
|
+
exports.COMMIT = "05a0c88";
|
|
45
45
|
/**
|
|
46
46
|
* @description Represents the full version string of the module.
|
|
47
47
|
* @summary Stores the semver version and commit hash for the package.
|
|
48
48
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
49
49
|
* @const FULL_VERSION
|
|
50
50
|
*/
|
|
51
|
-
exports.FULL_VERSION = "0.
|
|
51
|
+
exports.FULL_VERSION = "1.0.0-05a0c88";
|
|
52
52
|
/**
|
|
53
53
|
* @description Package version identifier
|
|
54
54
|
* @summary Stores the current version of the for-pouch package
|
package/lib/esm/index.js
CHANGED
|
@@ -17,21 +17,21 @@ export * from "./adapter.js";
|
|
|
17
17
|
* @const VERSION
|
|
18
18
|
* @memberOf module:for-pouch
|
|
19
19
|
*/
|
|
20
|
-
export const VERSION = "0.
|
|
20
|
+
export const VERSION = "1.0.0";
|
|
21
21
|
/**
|
|
22
22
|
* @description Represents the current commit hash of the module build.
|
|
23
23
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
24
24
|
* the placeholder with the actual commit hash at publish time.
|
|
25
25
|
* @const COMMIT
|
|
26
26
|
*/
|
|
27
|
-
export const COMMIT = "
|
|
27
|
+
export const COMMIT = "05a0c88";
|
|
28
28
|
/**
|
|
29
29
|
* @description Represents the full version string of the module.
|
|
30
30
|
* @summary Stores the semver version and commit hash for the package.
|
|
31
31
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
32
32
|
* @const FULL_VERSION
|
|
33
33
|
*/
|
|
34
|
-
export const FULL_VERSION = "0.
|
|
34
|
+
export const FULL_VERSION = "1.0.0-05a0c88";
|
|
35
35
|
/**
|
|
36
36
|
* @description Package version identifier
|
|
37
37
|
* @summary Stores the current version of the for-pouch package
|
package/lib/types/index.d.cts
CHANGED
|
@@ -13,21 +13,21 @@ export * from "./adapter.d.cts";
|
|
|
13
13
|
* @const VERSION
|
|
14
14
|
* @memberOf module:for-pouch
|
|
15
15
|
*/
|
|
16
|
-
export declare const VERSION = "0.
|
|
16
|
+
export declare const VERSION = "1.0.0";
|
|
17
17
|
/**
|
|
18
18
|
* @description Represents the current commit hash of the module build.
|
|
19
19
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
20
20
|
* the placeholder with the actual commit hash at publish time.
|
|
21
21
|
* @const COMMIT
|
|
22
22
|
*/
|
|
23
|
-
export declare const COMMIT = "
|
|
23
|
+
export declare const COMMIT = "05a0c88";
|
|
24
24
|
/**
|
|
25
25
|
* @description Represents the full version string of the module.
|
|
26
26
|
* @summary Stores the semver version and commit hash for the package.
|
|
27
27
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
28
28
|
* @const FULL_VERSION
|
|
29
29
|
*/
|
|
30
|
-
export declare const FULL_VERSION = "0.
|
|
30
|
+
export declare const FULL_VERSION = "1.0.0-05a0c88";
|
|
31
31
|
/**
|
|
32
32
|
* @description Package version identifier
|
|
33
33
|
* @summary Stores the current version of the for-pouch package
|
package/lib/types/index.d.mts
CHANGED
|
@@ -13,21 +13,21 @@ export * from "./adapter.d.mts";
|
|
|
13
13
|
* @const VERSION
|
|
14
14
|
* @memberOf module:for-pouch
|
|
15
15
|
*/
|
|
16
|
-
export declare const VERSION = "0.
|
|
16
|
+
export declare const VERSION = "1.0.0";
|
|
17
17
|
/**
|
|
18
18
|
* @description Represents the current commit hash of the module build.
|
|
19
19
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
20
20
|
* the placeholder with the actual commit hash at publish time.
|
|
21
21
|
* @const COMMIT
|
|
22
22
|
*/
|
|
23
|
-
export declare const COMMIT = "
|
|
23
|
+
export declare const COMMIT = "05a0c88";
|
|
24
24
|
/**
|
|
25
25
|
* @description Represents the full version string of the module.
|
|
26
26
|
* @summary Stores the semver version and commit hash for the package.
|
|
27
27
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
28
28
|
* @const FULL_VERSION
|
|
29
29
|
*/
|
|
30
|
-
export declare const FULL_VERSION = "0.
|
|
30
|
+
export declare const FULL_VERSION = "1.0.0-05a0c88";
|
|
31
31
|
/**
|
|
32
32
|
* @description Package version identifier
|
|
33
33
|
* @summary Stores the current version of the for-pouch package
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decaf-ts/for-pouch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "decaf-ts persistence adapter for PouchDB",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -91,23 +91,23 @@
|
|
|
91
91
|
"homepage": "https://github.com/decaf-ts/for-pouch#readme",
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@decaf-ts/cli": "^0.14.0",
|
|
94
|
-
"@decaf-ts/for-nano": "^0.
|
|
95
|
-
"@decaf-ts/utils": "^2.0
|
|
94
|
+
"@decaf-ts/for-nano": "^1.0.0",
|
|
95
|
+
"@decaf-ts/utils": "^2.3.0",
|
|
96
96
|
"@types/jest": "^30.0.0",
|
|
97
97
|
"@types/pouchdb": "^6.4.2",
|
|
98
98
|
"@types/pouchdb-core": "^7.0.15",
|
|
99
99
|
"@types/transform-pouch": "^1.0.6",
|
|
100
|
-
"@decaf-ts/for-testing": "^1.
|
|
100
|
+
"@decaf-ts/for-testing": "^1.4.0"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@decaf-ts/
|
|
104
|
-
"@decaf-ts/
|
|
105
|
-
"@decaf-ts/
|
|
106
|
-
"@decaf-ts/
|
|
107
|
-
"@decaf-ts/for-couchdb": "^0.
|
|
108
|
-
"@decaf-ts/injectable-decorators": "^1.
|
|
103
|
+
"@decaf-ts/decoration": "^0.20.2",
|
|
104
|
+
"@decaf-ts/decorator-validation": "^1.26.0",
|
|
105
|
+
"@decaf-ts/core": "^1.0.0",
|
|
106
|
+
"@decaf-ts/db-decorators": "^0.21.0",
|
|
107
|
+
"@decaf-ts/for-couchdb": "^1.0.0",
|
|
108
|
+
"@decaf-ts/injectable-decorators": "^1.22.0",
|
|
109
109
|
"@decaf-ts/logging": "^0.30.3",
|
|
110
|
-
"@decaf-ts/transactional-decorators": "^0.
|
|
110
|
+
"@decaf-ts/transactional-decorators": "^0.15.0",
|
|
111
111
|
"pouchdb-core": "^9.0.0",
|
|
112
112
|
"pouchdb-find": "^9.0.0"
|
|
113
113
|
},
|
|
@@ -121,23 +121,31 @@
|
|
|
121
121
|
"pouchdb-replication": "^9.0.0"
|
|
122
122
|
},
|
|
123
123
|
"overrides": {
|
|
124
|
+
"@decaf-ts/core": "$@decaf-ts/core",
|
|
125
|
+
"@decaf-ts/db-decorators": "$@decaf-ts/db-decorators",
|
|
126
|
+
"@decaf-ts/decoration": "$@decaf-ts/decoration",
|
|
127
|
+
"@decaf-ts/decorator-validation": "$@decaf-ts/decorator-validation",
|
|
128
|
+
"@decaf-ts/injectable-decorators": "$@decaf-ts/injectable-decorators",
|
|
129
|
+
"@decaf-ts/logging": "$@decaf-ts/logging",
|
|
130
|
+
"@decaf-ts/transactional-decorators": "$@decaf-ts/transactional-decorators",
|
|
131
|
+
"@decaf-ts/for-couchdb": "$@decaf-ts/for-couchdb",
|
|
124
132
|
"open": "^11.0.4",
|
|
125
|
-
"glob": "^14.0.
|
|
126
|
-
"minimatch": "^11.0.
|
|
133
|
+
"glob": "^14.0.7",
|
|
134
|
+
"minimatch": "^11.0.10",
|
|
127
135
|
"eslint": {
|
|
128
|
-
"minimatch": "^11.0.
|
|
136
|
+
"minimatch": "^11.0.10"
|
|
129
137
|
},
|
|
130
138
|
"dpdm": {
|
|
131
|
-
"glob": "^14.0.
|
|
132
|
-
"minimatch": "^11.0.
|
|
139
|
+
"glob": "^14.0.7",
|
|
140
|
+
"minimatch": "^11.0.10"
|
|
133
141
|
},
|
|
134
142
|
"typescript-eslint": {
|
|
135
|
-
"minimatch": "^11.0.
|
|
143
|
+
"minimatch": "^11.0.10"
|
|
136
144
|
},
|
|
137
145
|
"test-exclude": {
|
|
138
146
|
".": "^8.0.0",
|
|
139
|
-
"glob": "^14.0.
|
|
140
|
-
"minimatch": "^11.0.
|
|
147
|
+
"glob": "^14.0.7",
|
|
148
|
+
"minimatch": "^11.0.10"
|
|
141
149
|
},
|
|
142
150
|
"uuid": "^11.1.1",
|
|
143
151
|
"brace-expansion": "^5.0.8"
|