files.com 1.0.469 → 1.0.470
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 +13 -10
- package/_VERSION +1 -1
- package/lib/Files.js +1 -1
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/test.sh +0 -1
package/README.md
CHANGED
@@ -16,10 +16,12 @@ or
|
|
16
16
|
|
17
17
|
### Import and initialize
|
18
18
|
|
19
|
-
|
19
|
+
```js
|
20
|
+
import Files from "files.com/lib/Files.js";
|
20
21
|
|
21
|
-
|
22
|
-
|
22
|
+
// set your subdomain or custom domain
|
23
|
+
Files.setBaseUrl("https://MY-SUBDOMAIN.files.com");
|
24
|
+
```
|
23
25
|
|
24
26
|
#### `require()` vs. `import`
|
25
27
|
|
@@ -27,11 +29,13 @@ The examples provided in the documentation here use the newer ES6 `import` synta
|
|
27
29
|
instead use the older CommonJS module syntax with `require()`, ensure that `.default`
|
28
30
|
is included. For example:
|
29
31
|
|
30
|
-
|
31
|
-
|
32
|
+
```js
|
33
|
+
const Files = require("files.com/lib/Files.js").default;
|
34
|
+
const User = require("files.com/lib/models/User.js").default;
|
32
35
|
|
33
|
-
|
34
|
-
|
36
|
+
// destructure to directly assign a named export
|
37
|
+
const { LogLevel } = require("files.com/lib/Logger.js").default;
|
38
|
+
```
|
35
39
|
|
36
40
|
### Authentication
|
37
41
|
|
@@ -169,11 +173,10 @@ For related documentation see [Case Sensitivity Documentation](https://www.files
|
|
169
173
|
|
170
174
|
### Additional Object Documentation
|
171
175
|
|
172
|
-
Additional docs are available at https://developers.files.com
|
176
|
+
Additional docs are available at <https://developers.files.com>
|
173
177
|
|
174
178
|
## Getting Support
|
175
179
|
|
176
180
|
The Files.com team is happy to help with any SDK Integration challenges you may face.
|
177
181
|
|
178
|
-
Just email support@files.com and we'll get the process started.
|
179
|
-
|
182
|
+
Just email <support@files.com> and we'll get the process started.
|
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.470
|
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.0.
|
14
|
+
var version = '1.0.470';
|
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
package/src/Files.js
CHANGED