files.com 1.0.213 → 1.0.215
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +1 -0
- package/lib/Api.js +8 -2
- package/lib/Errors.js +728 -708
- package/lib/models/ApiKey.js +12 -16
- package/lib/models/File.js +35 -33
- package/lib/models/Session.js +6 -8
- package/lib/models/Site.js +12 -16
- package/package.json +1 -1
- package/src/Api.js +9 -2
- package/src/Errors.js +1 -0
- package/src/models/ApiKey.js +4 -4
- package/src/models/File.js +20 -20
- package/src/models/Session.js +2 -2
- package/src/models/Site.js +4 -4
- package/test/src/index.js +2 -0
package/test/src/index.js
CHANGED
@@ -46,6 +46,7 @@ const testSuite = async () => {
|
|
46
46
|
Files.configureNetwork({
|
47
47
|
autoPaginate: false,
|
48
48
|
})
|
49
|
+
|
49
50
|
const firstPageItems = await Folder.listFor('/', { per_page: 1 })
|
50
51
|
|
51
52
|
assert(firstPageItems.length === 1)
|
@@ -53,6 +54,7 @@ const testSuite = async () => {
|
|
53
54
|
Files.configureNetwork({
|
54
55
|
autoPaginate: true,
|
55
56
|
})
|
57
|
+
|
56
58
|
// note: this test will fail if the root folder has <= 1 file or folder
|
57
59
|
const allPageItems = await Folder.listFor('/', { per_page: 1 })
|
58
60
|
|