files.com 1.2.107 → 1.2.108
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 +2 -2
- package/_VERSION +1 -1
- package/lib/Files.js +1 -1
- package/package.json +1 -1
- package/shared/normalization_for_comparison_test_data.json +1 -1
- package/src/Files.js +1 -1
- package/test/integration/src/index.js +7 -7
package/README.md
CHANGED
@@ -256,9 +256,9 @@ try {
|
|
256
256
|
}
|
257
257
|
catch(err) {
|
258
258
|
if (err instanceof FilesErrors.NotAuthenticatedError) {
|
259
|
-
console.log("Authorization Error
|
259
|
+
console.log("Authorization Error Occurred (" + err.constructor.name + "): " + err.error);
|
260
260
|
} else if (err instanceof FilesErrors.FilesError) {
|
261
|
-
console.log("Unknown Error
|
261
|
+
console.log("Unknown Error Occurred (" + err.constructor.name + "): " + err.error);
|
262
262
|
} else {
|
263
263
|
throw err;
|
264
264
|
}
|
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.108
|
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.108';
|
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
@@ -14,7 +14,7 @@
|
|
14
14
|
[ "a/b/c.txt\r", "a/b/c.txt" ],
|
15
15
|
[ " space_at_beginning", " space_at_beginning"],
|
16
16
|
[ "space_at_end ", "space_at_end"],
|
17
|
-
[ "tab\
|
17
|
+
[ "tab\tseparated", "tab\tseparated"],
|
18
18
|
[ "<title>hello</hello>", "<title>hello</hello>"],
|
19
19
|
[ "안녕하세요", "안녕하세요" ],
|
20
20
|
[ "こんにちは", "こんにちは" ],
|
package/src/Files.js
CHANGED
@@ -82,7 +82,7 @@ const testSuite = async () => {
|
|
82
82
|
invariant(file.display_name === displayName, 'Uploaded file response object should have the same display_name as the file we uploaded')
|
83
83
|
|
84
84
|
const foundFile = await File.find(destinationPath)
|
85
|
-
|
85
|
+
|
86
86
|
invariant(foundFile.path === destinationPath, 'Found file should have the same path as the file we uploaded')
|
87
87
|
invariant(foundFile.display_name === displayName, 'Found file should have the same display_name as the file we uploaded')
|
88
88
|
invariant(typeof foundFile.getDownloadUri() === 'undefined', 'Found file should not have a download uri yet')
|
@@ -211,7 +211,7 @@ const testSuite = async () => {
|
|
211
211
|
const auto = await ApiKey.list({ user_id: 0 })
|
212
212
|
|
213
213
|
invariant(JSON.stringify(manual.attributes) === JSON.stringify(auto.attributes), 'Manual and auto session API key lists should match')
|
214
|
-
|
214
|
+
|
215
215
|
await Session.destroy()
|
216
216
|
|
217
217
|
Files.setSessionId(null)
|
@@ -244,19 +244,19 @@ const testSuite = async () => {
|
|
244
244
|
const testUserListAndUpdate = async () => {
|
245
245
|
const allUsers = await User.all()
|
246
246
|
const firstUser = allUsers[0]
|
247
|
-
|
247
|
+
|
248
248
|
const oldName = firstUser.name
|
249
249
|
const newName = `edited name - ${Math.random()}`
|
250
|
-
|
250
|
+
|
251
251
|
firstUser.setName(newName)
|
252
252
|
await firstUser.save()
|
253
|
-
|
253
|
+
|
254
254
|
const updatedUser = await User.find(firstUser.id)
|
255
|
-
|
255
|
+
|
256
256
|
invariant(updatedUser.isLoaded(), 'updated user should be loaded')
|
257
257
|
invariant(oldName !== newName, 'old name should not equal new name')
|
258
258
|
invariant(updatedUser.name === newName, 'updated user name should match new name')
|
259
|
-
|
259
|
+
|
260
260
|
Logger.info('***** testUserListAndUpdate() succeeded! *****');
|
261
261
|
}
|
262
262
|
|