files.com 1.2.180 → 1.2.181

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 CHANGED
@@ -546,6 +546,24 @@ Error
546
546
  | `SiteConfiguration_TrialLockedError`| `SiteConfigurationError` |
547
547
  | `SiteConfiguration_UserRequestsEnabledRequiredError`| `SiteConfigurationError` |
548
548
 
549
+ ## Case Sensitivity
550
+
551
+ The Files.com API compares files and paths in a case-insensitive manner.
552
+ For related documentation see [Case Sensitivity Documentation](https://www.files.com/docs/files-and-folders/file-system-semantics/case-sensitivity).
553
+
554
+ The `pathNormalizer.same` function in the Files.com SDK is designed to help you determine if two paths on
555
+ your native file system would be considered the same on Files.com. This is particularly important
556
+ when handling errors related to duplicate file names and when developing tools for folder
557
+ synchronization.
558
+
559
+ ```javascript title="Compare Case-Insensitive Files and Paths"
560
+ import { pathNormalizer } from 'files.com/lib/utils.js';
561
+
562
+ if (pathNormalizer.same('Fïłèńämê.Txt', 'filename.txt')) {
563
+ // the paths are the same
564
+ }
565
+ ```
566
+
549
567
  ## Examples
550
568
 
551
569
  ### Upload
@@ -661,18 +679,6 @@ const folder = new File({ path: 'path/to/folder' });
661
679
  await folder.delete({ recursive: true });
662
680
  ```
663
681
 
664
- ### Comparing Case-Insensitive Files and Paths
665
-
666
- For related documentation see [Case Sensitivity Documentation](https://www.files.com/docs/files-and-folders/file-system-semantics/case-sensitivity).
667
-
668
- ```javascript
669
- import { pathNormalizer } from 'files.com/lib/utils.js';
670
-
671
- if (pathNormalizer.same('Fïłèńämê.Txt', 'filename.txt')) {
672
- // the paths are the same
673
- }
674
- ```
675
-
676
682
  ## Mock Server
677
683
 
678
684
  Files.com publishes a Files.com API server, which is useful for testing your use of the Files.com
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.180
1
+ 1.2.181
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.180';
14
+ var version = '1.2.181';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.180",
3
+ "version": "1.2.181",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.180'
8
+ const version = '1.2.181'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO