files.com 1.2.2 → 1.2.4

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/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.4
@@ -42,7 +42,7 @@
42
42
  * `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
43
43
  * `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
44
44
  * `region` (string): Region location
45
- * `permissions` (string): A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
45
+ * `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
46
46
  * `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
47
47
  * `is_locked` (boolean): Is this folder locked and unable to be modified?
48
48
  * `download_uri` (string): Link to download file. Provided only in response to a download request.
@@ -42,7 +42,7 @@
42
42
  * `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
43
43
  * `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
44
44
  * `region` (string): Region location
45
- * `permissions` (string): A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
45
+ * `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
46
46
  * `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
47
47
  * `is_locked` (boolean): Is this folder locked and unable to be modified?
48
48
  * `download_uri` (string): Link to download file. Provided only in response to a download request.
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.2';
14
+ var version = '1.2.4';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -239,7 +239,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
239
239
  (0, _defineProperty2.default)(this, "setRegion", function (value) {
240
240
  _this.attributes.region = value;
241
241
  });
242
- // string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
242
+ // string # A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
243
243
  (0, _defineProperty2.default)(this, "getPermissions", function () {
244
244
  return _this.attributes.permissions;
245
245
  });
@@ -105,7 +105,7 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
105
105
  (0, _defineProperty2.default)(this, "setRegion", function (value) {
106
106
  _this.attributes.region = value;
107
107
  });
108
- // string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
108
+ // string # A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
109
109
  (0, _defineProperty2.default)(this, "getPermissions", function () {
110
110
  return _this.attributes.permissions;
111
111
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -0,0 +1,18 @@
1
+ {
2
+ "substitute_urls": [
3
+ "https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=%s&X-Goog-Expires=%s&X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-SignedHeaders=host",
4
+ "https://s3.amazonaws.com/test.example.com/metadata/1234/00000000-0000-0000-0001-00000000?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=%s&X-Amz-Expires=%s",
5
+ "https://filescomtests.blob.core.windows.net/testazureremote/ntie3buw/file-to-download.txt?sp=se=%s"
6
+ ],
7
+ "error_urls": [
8
+ "https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101T120000Z",
9
+ "https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101T120000Z&X-Goog-Date=20220202T120000Z",
10
+ "https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Expires=900&X-Goog-Expires=600",
11
+ "https://filescomtests.blob.core.windows.net/testazureremote/ntie3buw/file-to-download.txt?sp=se=20220101T120000Z&sp=se=20220202T120000Z",
12
+ "https://filescomtests.blob.core.windows.net/testazureremote/ntie3buw/file-to-download.txt?sp=20220101T120000Z",
13
+ "https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101&X-Goog-Expires=900",
14
+ "https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=asdf&X-Goog-Expires=900",
15
+ "https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101T120000Z&&X-Goog-Expires=900",
16
+ "https://s3.amazonaws.com/test.example.com/metadata/1234/00000000-0000-0000-0001-00000000?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=asdf&X-Amz-Expires=900"
17
+ ]
18
+ }
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.2'
8
+ const version = '1.2.4'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -382,7 +382,7 @@ class File {
382
382
  this.attributes.region = value
383
383
  }
384
384
 
385
- // string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
385
+ // string # A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
386
386
  getPermissions = () => this.attributes.permissions
387
387
 
388
388
  setPermissions = value => {
@@ -101,7 +101,7 @@ class Folder {
101
101
  this.attributes.region = value
102
102
  }
103
103
 
104
- // string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
104
+ // string # A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
105
105
  getPermissions = () => this.attributes.permissions
106
106
 
107
107
  setPermissions = value => {