cozy-client 60.5.0 → 60.7.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/dist/CozyClient.js +1 -1
- package/dist/models/note.js +4 -1
- package/package.json +4 -4
- package/types/models/note.d.ts +1 -0
package/dist/CozyClient.js
CHANGED
|
@@ -3126,7 +3126,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
3126
3126
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
3127
3127
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
3128
3128
|
|
|
3129
|
-
CozyClient.version = "60.
|
|
3129
|
+
CozyClient.version = "60.7.0";
|
|
3130
3130
|
|
|
3131
3131
|
_microee.default.mixin(CozyClient);
|
|
3132
3132
|
|
package/dist/models/note.js
CHANGED
|
@@ -47,6 +47,7 @@ var generateUrlForNote = function generateUrlForNote(notesAppUrl, file) {
|
|
|
47
47
|
* @param {object} file io.cozy.file object
|
|
48
48
|
* @param {object} options Options
|
|
49
49
|
* @param {string} [options.pathname] Pathname to use in the URL
|
|
50
|
+
* @param {string} [options.driveId] Shared drive ID used to fetched the URL
|
|
50
51
|
* @returns {Promise<string>} url
|
|
51
52
|
*/
|
|
52
53
|
|
|
@@ -75,7 +76,9 @@ var fetchURL = /*#__PURE__*/function () {
|
|
|
75
76
|
case 0:
|
|
76
77
|
options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
|
|
77
78
|
_context.next = 3;
|
|
78
|
-
return client.getStackClient().collection('io.cozy.notes'
|
|
79
|
+
return client.getStackClient().collection('io.cozy.notes', {
|
|
80
|
+
driveId: options.driveId
|
|
81
|
+
}).fetchURL({
|
|
79
82
|
_id: file.id
|
|
80
83
|
});
|
|
81
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "60.
|
|
3
|
+
"version": "60.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@types/jest": "^26.0.20",
|
|
20
20
|
"@types/lodash": "^4.14.170",
|
|
21
21
|
"btoa": "^1.2.1",
|
|
22
|
-
"cozy-stack-client": "^60.
|
|
23
|
-
"date-fns": "2.
|
|
22
|
+
"cozy-stack-client": "^60.6.0",
|
|
23
|
+
"date-fns": "^2.30.0",
|
|
24
24
|
"fast-deep-equal": "^3.1.3",
|
|
25
25
|
"json-stable-stringify": "^1.0.1",
|
|
26
26
|
"lodash": "^4.17.13",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"react-native-ios11-devicecheck": "^0.0.3"
|
|
75
75
|
},
|
|
76
76
|
"sideEffects": false,
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "ae6370141fba7d3377499a3d0876604ee064c949"
|
|
78
78
|
}
|
package/types/models/note.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export function generatePrivateUrl(notesAppUrl: string, file: object, options?:
|
|
|
2
2
|
export function generateUrlForNote(notesAppUrl: any, file: any): string;
|
|
3
3
|
export function fetchURL(client: object, file: object, options?: {
|
|
4
4
|
pathname: string;
|
|
5
|
+
driveId: string;
|
|
5
6
|
}): Promise<string>;
|