Skip to content

Commit

Permalink
feat: Add cozy-pouch-link module
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldoppea committed Aug 26, 2024
1 parent 3fd3714 commit 8c64abb
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 0 deletions.
10 changes: 10 additions & 0 deletions __tests__/jestSetupFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,13 @@ jest.mock('../src/core/tools/env', () => ({

jest.mock('../src/pouchdb/pouchdb', () => ({}))
jest.mock('react-native-quick-websql', () => ({}))

class mockPouchLink {
constructor() {}
}

jest.mock('cozy-pouch-link', () => {
return jest.fn().mockImplementation(() => {
return new mockPouchLink()
})
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"cozy-intent": "^2.22.0",
"cozy-logger": "^1.10.0",
"cozy-minilog": "3.3.1",
"cozy-pouch-link": "^48.5.0",
"date-fns": "2.29.3",
"events": "^3.3.0",
"html-entities": "^2.3.3",
Expand Down
114 changes: 114 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8303,6 +8303,31 @@ cosmiconfig@^7.0.1:
path-type "^4.0.0"
yaml "^1.10.0"

cozy-client@^48.11.1:
version "48.11.1"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-48.11.1.tgz#2223b3f63d64abf608fea82a64caff35a3b8e265"
integrity sha512-o2dv7BqLW++It4iLppPxEQAYfGHAHwzx7dXDKnAATW5bbMpEwVQ3D1hfLCiPqlACWPA6cImrU0xSfaDHVuxyWQ==
dependencies:
"@cozy/minilog" "1.0.0"
"@types/jest" "^26.0.20"
"@types/lodash" "^4.14.170"
btoa "^1.2.1"
cozy-stack-client "^48.9.0"
date-fns "2.29.3"
json-stable-stringify "^1.0.1"
lodash "^4.17.13"
microee "^0.0.6"
node-fetch "^2.6.1"
node-polyglot "2.4.2"
open "7.4.2"
prop-types "^15.6.2"
react-redux "^7.2.0"
redux "3 || 4"
redux-thunk "^2.3.0"
server-destroy "^1.0.1"
sift "^6.0.0"
url-search-params-polyfill "^8.0.0"

cozy-client@^48.5.0:
version "48.5.0"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-48.5.0.tgz#c030ac3578466550cb30b545818aac9d5331eaa8"
Expand Down Expand Up @@ -8379,6 +8404,15 @@ [email protected], cozy-minilog@^3.3.1:
dependencies:
microee "0.0.6"

cozy-pouch-link@^48.5.0:
version "48.11.1"
resolved "https://registry.yarnpkg.com/cozy-pouch-link/-/cozy-pouch-link-48.11.1.tgz#e3a4588039d08415748dde638f454a1853e14591"
integrity sha512-Gj6r5pb9WhOTxcdriUGDJJTfWur+TZDGziD7IqW35LQPMd1kyAspldc1T5AxZN+Rla8D8pi44vVeEuf02tkd3Q==
dependencies:
cozy-client "^48.11.1"
pouchdb-browser "^7.2.2"
pouchdb-find "^7.2.2"

cozy-stack-client@^48.5.0:
version "48.5.0"
resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-48.5.0.tgz#017f4c1ebcf7fdf9261aaa40ce4ea263421806d1"
Expand All @@ -8388,6 +8422,15 @@ cozy-stack-client@^48.5.0:
mime "^2.4.0"
qs "^6.7.0"

cozy-stack-client@^48.9.0:
version "48.9.0"
resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-48.9.0.tgz#169703eee523a2f739ab25f1702363bdc932b062"
integrity sha512-KZCtzd84b+ck1LxfLTbxED4TCNvcX0YM1QM3uymPq76MHovypOVtxJTMqfQnCSKPxoQGlU+ZbZ420Ap5XAyhRA==
dependencies:
detect-node "^2.0.4"
mime "^2.4.0"
qs "^6.7.0"

[email protected]:
version "1.2.0"
resolved "https://registry.yarnpkg.com/cozy-tsconfig/-/cozy-tsconfig-1.2.0.tgz#17e61f960f139fae4d26cbac2254b9ab632b269e"
Expand Down Expand Up @@ -16401,6 +16444,20 @@ postinstall-postinstall@^2.1.0:
resolved "https://registry.yarnpkg.com/postinstall-postinstall/-/postinstall-postinstall-2.1.0.tgz#4f7f77441ef539d1512c40bd04c71b06a4704ca3"
integrity sha512-7hQX6ZlZXIoRiWNrbMQaLzUUfH+sSx39u8EJ9HYuDc1kLo9IXKWjM5RSquZN1ad5GnH8CGFM78fsAAQi3OKEEQ==

[email protected]:
version "7.3.1"
resolved "https://registry.yarnpkg.com/pouchdb-abstract-mapreduce/-/pouchdb-abstract-mapreduce-7.3.1.tgz#96ff4a0f41cbe273f3f52fde003b719005a2093c"
integrity sha512-0zKXVFBvrfc1KnN0ggrB762JDmZnUpePHywo9Bq3Jy+L1FnoG7fXM5luFfvv5/T0gEw+ZTIwoocZECMnESBI9w==
dependencies:
pouchdb-binary-utils "7.3.1"
pouchdb-collate "7.3.1"
pouchdb-collections "7.3.1"
pouchdb-errors "7.3.1"
pouchdb-fetch "7.3.1"
pouchdb-mapreduce-utils "7.3.1"
pouchdb-md5 "7.3.1"
pouchdb-utils "7.3.1"

[email protected]:
version "8.0.1"
resolved "https://registry.yarnpkg.com/pouchdb-abstract-mapreduce/-/pouchdb-abstract-mapreduce-8.0.1.tgz#f45aa1424fdd272a76ceb5722a53b38c10a0ca81"
Expand Down Expand Up @@ -16458,6 +16515,18 @@ [email protected]:
dependencies:
buffer-from "1.1.2"

pouchdb-browser@^7.2.2:
version "7.3.1"
resolved "https://registry.yarnpkg.com/pouchdb-browser/-/pouchdb-browser-7.3.1.tgz#6b2f9f35f42d2c83fc205de5e0403c0aae7046aa"
integrity sha512-qZ8awkXl/woBHvEVqNHjDtwPDA7A9v4ItHtX1y1eVpKel4mlYqnIJ8K6pRcFUZmVaHinJW8K3uS32eHC1q0yOA==
dependencies:
argsarray "0.0.1"
immediate "3.3.0"
inherits "2.0.4"
spark-md5 "3.0.2"
uuid "8.3.2"
vuvuzela "1.0.3"

[email protected]:
version "8.0.1"
resolved "https://registry.yarnpkg.com/pouchdb-changes-filter/-/pouchdb-changes-filter-8.0.1.tgz#691b71b209dda12e950672ce44de2680606a98e4"
Expand All @@ -16475,6 +16544,11 @@ [email protected]:
pouchdb-collate "8.0.1"
pouchdb-utils "8.0.1"

[email protected]:
version "7.3.1"
resolved "https://registry.yarnpkg.com/pouchdb-collate/-/pouchdb-collate-7.3.1.tgz#19d7b87dd173d1c765da8cc9987c5aa9eb24f11f"
integrity sha512-o4gyGqDMLMSNzf6EDTr3eHaH/JRMoqRhdc+eV+oA8u00nTBtr9wD+jypVe2LbgKLJ4NWqx2qVkXiTiQdUFtsLQ==

[email protected]:
version "8.0.1"
resolved "https://registry.yarnpkg.com/pouchdb-collate/-/pouchdb-collate-8.0.1.tgz#14b6ad9330d2831fd8ef135de680060366502a1b"
Expand Down Expand Up @@ -16515,6 +16589,15 @@ [email protected]:
resolved "https://registry.yarnpkg.com/pouchdb-errors/-/pouchdb-errors-8.0.1.tgz#d57afd57e07490d8d0b4ef19c10bfc85dbf27ae5"
integrity sha512-H+ZsQxcG/JV3Tn29gnM6c9+lRPCN91ZYOkoIICsLjVRYgOTzN1AvNUD/G5JCB+81aI/u3fxZec0LEaZh6g6NHA==

[email protected]:
version "7.3.1"
resolved "https://registry.yarnpkg.com/pouchdb-fetch/-/pouchdb-fetch-7.3.1.tgz#d54b1807be0f0a5d4b6d06e416c7d54952bbc348"
integrity sha512-205xAtvdHRPQ4fp1h9+RmT9oQabo9gafuPmWsS9aEl3ER54WbY8Vaj1JHZGbU4KtMTYvW7H5088zLS7Nrusuag==
dependencies:
abort-controller "3.0.0"
fetch-cookie "0.11.0"
node-fetch "2.6.7"

[email protected]:
version "8.0.1"
resolved "https://registry.yarnpkg.com/pouchdb-fetch/-/pouchdb-fetch-8.0.1.tgz#30a27a45eb24c20f346a04d906ba82bca5a3a525"
Expand All @@ -16524,6 +16607,19 @@ [email protected]:
fetch-cookie "0.11.0"
node-fetch "2.6.7"

pouchdb-find@^7.2.2:
version "7.3.1"
resolved "https://registry.yarnpkg.com/pouchdb-find/-/pouchdb-find-7.3.1.tgz#07a633d5ee2bd731dae9f991281cd25212088d29"
integrity sha512-AeqUfAVY1c7IFaY36BRT0vIz9r4VTKq/YOWTmiqndOZUQ/pDGxyO2fNFal6NN3PyYww0JijlD377cPvhnrhJVA==
dependencies:
pouchdb-abstract-mapreduce "7.3.1"
pouchdb-collate "7.3.1"
pouchdb-errors "7.3.1"
pouchdb-fetch "7.3.1"
pouchdb-md5 "7.3.1"
pouchdb-selector-core "7.3.1"
pouchdb-utils "7.3.1"

[email protected]:
version "8.0.1"
resolved "https://registry.yarnpkg.com/pouchdb-generate-replication-id/-/pouchdb-generate-replication-id-8.0.1.tgz#2c473bdb7f5e5bc08337b3042841f186bf3d0b2b"
Expand All @@ -16539,6 +16635,16 @@ pouchdb-json@^7.2.2:
dependencies:
vuvuzela "1.0.3"

[email protected]:
version "7.3.1"
resolved "https://registry.yarnpkg.com/pouchdb-mapreduce-utils/-/pouchdb-mapreduce-utils-7.3.1.tgz#f0ac2c8400fbedb705e9226082453ac7d3f2a066"
integrity sha512-oUMcq82+4pTGQ6dtrhgORHOVHZSr6w/5tFIUGlv7RABIDvJarL4snMawADjlpiEwPdiQ/ESG8Fqt8cxqvqsIgg==
dependencies:
argsarray "0.0.1"
inherits "2.0.4"
pouchdb-collections "7.3.1"
pouchdb-utils "7.3.1"

[email protected]:
version "8.0.1"
resolved "https://registry.yarnpkg.com/pouchdb-mapreduce-utils/-/pouchdb-mapreduce-utils-8.0.1.tgz#a8acb1542aaf63a007b60f7a281dbbb94b49fcab"
Expand Down Expand Up @@ -16594,6 +16700,14 @@ pouchdb-replication@^8.0.1:
pouchdb-generate-replication-id "8.0.1"
pouchdb-utils "8.0.1"

[email protected]:
version "7.3.1"
resolved "https://registry.yarnpkg.com/pouchdb-selector-core/-/pouchdb-selector-core-7.3.1.tgz#08245662de3d61f16ab8dae2b56ef622935b3fb3"
integrity sha512-HBX+nNGXcaL9z0uNpwSMRq2GNZd3EZXW+fe9rJHS0hvJohjZL7aRJLoaXfEdHPRTNW+CpjM3Rny60eGekQdI/w==
dependencies:
pouchdb-collate "7.3.1"
pouchdb-utils "7.3.1"

[email protected]:
version "8.0.1"
resolved "https://registry.yarnpkg.com/pouchdb-selector-core/-/pouchdb-selector-core-8.0.1.tgz#d52119b79bd34b69c27f4596dbb9e16373bbd92e"
Expand Down

0 comments on commit 8c64abb

Please sign in to comment.