cozy-client 26.0.1 → 26.0.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [26.0.2](https://github.com/cozy/cozy-client/compare/v26.0.1...v26.0.2) (2021-11-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Use regex supported by Safari ([1497318](https://github.com/cozy/cozy-client/commit/149731833c1830f4091f9361d717413caac4e664))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [26.0.1](https://github.com/cozy/cozy-client/compare/v26.0.0...v26.0.1) (2021-10-30)
7
18
 
8
19
  **Note:** Version bump only for package cozy-client
@@ -2411,7 +2411,7 @@ var CozyClient = /*#__PURE__*/function () {
2411
2411
  CozyClient.hooks = CozyClient.hooks || {};
2412
2412
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
2413
2413
 
2414
- CozyClient.version = "26.0.1";
2414
+ CozyClient.version = "26.0.2";
2415
2415
 
2416
2416
  _microee.default.mixin(CozyClient);
2417
2417
 
@@ -690,15 +690,14 @@ exports.overrideFileForPath = overrideFileForPath;
690
690
 
691
691
  var generateNewFileNameOnConflict = function generateNewFileNameOnConflict(filenameWithoutExtension) {
692
692
  //Check if the string ends by _1
693
- var regex = new RegExp('(?<=_)([0-9]+)$'); // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Assertions#other_assertions
694
-
693
+ var regex = new RegExp('(_)([0-9]+)$');
695
694
  var matches = filenameWithoutExtension.match(regex);
696
695
 
697
696
  if (matches) {
698
- var versionNumber = parseInt(matches[1]); //increment versionNumber
697
+ var versionNumber = parseInt(matches[2]); //increment versionNumber
699
698
 
700
699
  versionNumber++;
701
- var newFilenameWithoutExtension = filenameWithoutExtension.replace(regex, "".concat(versionNumber));
700
+ var newFilenameWithoutExtension = filenameWithoutExtension.replace(new RegExp('(_)([0-9]+)$'), "_".concat(versionNumber));
702
701
  return newFilenameWithoutExtension;
703
702
  } else {
704
703
  return "".concat(filenameWithoutExtension, "_1");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "26.0.1",
3
+ "version": "26.0.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.node.js",
6
6
  "browser": "dist/index.js",
@@ -68,5 +68,5 @@
68
68
  "react-native-inappbrowser-reborn": "^3.5.1"
69
69
  },
70
70
  "sideEffects": false,
71
- "gitHead": "43eb8e9e1033b9ae7ab75f97656046e5add2a2af"
71
+ "gitHead": "5b04febfcbf2feb307bc8211e94e54739646e322"
72
72
  }