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 +1 -1
- package/docs/models/File.md +1 -1
- package/docs/models/Folder.md +1 -1
- package/lib/Files.js +1 -1
- package/lib/models/File.js +1 -1
- package/lib/models/Folder.js +1 -1
- package/package.json +1 -1
- package/shared/url_test_data.json +18 -0
- package/src/Files.js +1 -1
- package/src/models/File.js +1 -1
- package/src/models/Folder.js +1 -1
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.4
|
package/docs/models/File.md
CHANGED
@@ -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
|
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/docs/models/Folder.md
CHANGED
@@ -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
|
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.
|
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;
|
package/lib/models/File.js
CHANGED
@@ -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
|
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
|
});
|
package/lib/models/Folder.js
CHANGED
@@ -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
|
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
@@ -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
package/src/models/File.js
CHANGED
@@ -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
|
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 => {
|
package/src/models/Folder.js
CHANGED
@@ -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
|
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 => {
|