Skip to content

Commit 4044fed

Browse files
v1.2.645
[Bot] push changes from Files.com
1 parent fdb1cbe commit 4044fed

5 files changed

Lines changed: 44 additions & 4 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.644
1+
1.2.645

bin/files-cli-ai

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
3+
# Resolve the package path when npm runs this through node_modules/.bin.
4+
script_path=$0
5+
while [ -L "$script_path" ]; do
6+
script_dir=$(CDPATH= cd "$(dirname "$script_path")" && pwd)
7+
link_target=$(readlink "$script_path")
8+
case "$link_target" in
9+
/*) script_path=$link_target ;;
10+
*) script_path=$script_dir/$link_target ;;
11+
esac
12+
done
13+
14+
script_dir=$(CDPATH= cd "$(dirname "$script_path")" && pwd)
15+
package_dir=$(CDPATH= cd "$script_dir/.." && pwd)
16+
17+
FILES_CLI_USER_AGENT_SUFFIX="Files.com AI Assistant"
18+
export FILES_CLI_USER_AGENT_SUFFIX
19+
20+
if [ -n "${FILES_CLI_BINARY:-}" ]; then
21+
exec "$FILES_CLI_BINARY" "$@"
22+
fi
23+
24+
for files_cli_path in \
25+
"/usr/local/go/bin/files-cli" \
26+
"$package_dir/files-cli" \
27+
"$package_dir/bin/files-cli" \
28+
"$package_dir/vendor/files-cli" \
29+
"$package_dir/dist/files-cli"
30+
do
31+
if [ -x "$files_cli_path" ] && [ "$files_cli_path" != "$script_path" ]; then
32+
exec "$files_cli_path" "$@"
33+
fi
34+
done
35+
36+
printf '%s\n' "Unable to find files-cli. Set FILES_CLI_BINARY to the bundled files-cli path." >&2
37+
exit 127

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.644';
15+
var version = '1.2.645';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.2.644",
3+
"version": "1.2.645",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",
@@ -19,6 +19,9 @@
1919
},
2020
"main": "lib/Files.js",
2121
"module": "src/Files.js",
22+
"bin": {
23+
"files-cli-ai": "bin/files-cli-ai"
24+
},
2225
"dependencies": {
2326
"@babel/runtime": "^7.10.3",
2427
"cross-fetch": "^4.0.0",

src/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
88
let language = null
9-
const version = '1.2.644'
9+
const version = '1.2.645'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

0 commit comments

Comments
 (0)