cozy-client 37.1.0 → 37.2.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
CHANGED
|
@@ -2679,7 +2679,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2679
2679
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2680
2680
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2681
2681
|
|
|
2682
|
-
CozyClient.version = "37.
|
|
2682
|
+
CozyClient.version = "37.2.0";
|
|
2683
2683
|
|
|
2684
2684
|
_microee.default.mixin(CozyClient);
|
|
2685
2685
|
|
|
@@ -80,7 +80,7 @@ var generateWebLink = function generateWebLink(_ref) {
|
|
|
80
80
|
url.host = subDomainType === 'nested' ? "".concat(slug, ".").concat(url.host) : url.host.split('.').map(function (x, i) {
|
|
81
81
|
return i === 0 ? x + '-' + slug : x;
|
|
82
82
|
}).join('.');
|
|
83
|
-
url.pathname = pathname;
|
|
83
|
+
url.pathname = ensureFirstSlash(pathname);
|
|
84
84
|
url.hash = ensureFirstSlash(hash);
|
|
85
85
|
|
|
86
86
|
var _iterator = _createForOfIteratorHelper(searchParams),
|
|
@@ -40,6 +40,18 @@ describe('generateWebLink', () => {
|
|
|
40
40
|
})
|
|
41
41
|
).toEqual(`https://drive.alice.cozy.tools/public/#/files/432432`)
|
|
42
42
|
})
|
|
43
|
+
|
|
44
|
+
it('should handle undefined pathname', () => {
|
|
45
|
+
expect(
|
|
46
|
+
generateWebLink({
|
|
47
|
+
cozyUrl: 'https://alice.cozy.tools',
|
|
48
|
+
pathname: undefined,
|
|
49
|
+
hash: 'files/432432',
|
|
50
|
+
slug: 'drive',
|
|
51
|
+
subDomainType: 'nested'
|
|
52
|
+
})
|
|
53
|
+
).toEqual(`https://drive.alice.cozy.tools/#/files/432432`)
|
|
54
|
+
})
|
|
43
55
|
})
|
|
44
56
|
|
|
45
57
|
describe('deconstructWebLink', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@types/jest": "^26.0.20",
|
|
19
19
|
"@types/lodash": "^4.14.170",
|
|
20
20
|
"btoa": "^1.2.1",
|
|
21
|
-
"cozy-stack-client": "^37.
|
|
21
|
+
"cozy-stack-client": "^37.2.0",
|
|
22
22
|
"date-fns": "2.29.3",
|
|
23
23
|
"json-stable-stringify": "^1.0.1",
|
|
24
24
|
"lodash": "^4.17.13",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
74
74
|
},
|
|
75
75
|
"sideEffects": false,
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "bdb7ef74b3a9c313b260ad3dde9a733de5f33f6f"
|
|
77
77
|
}
|