Skip to content

Release/1.12.0 #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 78 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
c88d556
Testing JS github action package json module
bparmar-splunk Mar 11, 2022
4e1701b
List command & action module removed
bparmar-splunk Mar 11, 2022
804d859
Node v8 removed
bparmar-splunk Mar 11, 2022
d3c4b36
Mustache dependency added
bparmar-splunk Mar 11, 2022
fa5bfe4
Dependency and method of mustache js changed
bparmar-splunk Mar 14, 2022
5efe5c1
Test workflow modified
bparmar-splunk Mar 14, 2022
9156109
Sequence of test workflow changed
bparmar-splunk Mar 14, 2022
a4b8414
Docs generation and zipping added
bparmar-splunk Mar 14, 2022
2d55d5b
Github workflow files modified
bparmar-splunk Mar 14, 2022
c2b4303
Node v8 enabled on Test yml file
bparmar-splunk Mar 14, 2022
5152fff
Merge pull request #148 from splunk/DVPL-10799
bparmar-splunk Mar 16, 2022
2c0ecb2
Update cli.js
ashah-splunk Apr 8, 2022
6a011cd
removed examples directory
akaila-splunk Apr 11, 2022
2c68efd
Added cmdline.js file for test cases and removed examples test cases
akaila-splunk Apr 11, 2022
7fd6d92
Updated README.md file and removed examples references
akaila-splunk Apr 11, 2022
5955e37
updated compiled files
ashah-splunk Apr 13, 2022
b8f07e2
[DVPL-10898] Remove node_modules from repo
Mar 31, 2022
0db108d
Merge pull request #150 from splunk/master
ashah-splunk Apr 18, 2022
8debed5
Added 'User-Agent' header for the REST API calls
akaila-splunk Apr 19, 2022
01fc45f
node module changes
ashah-splunk Apr 21, 2022
d1c858f
node modules
ashah-splunk Apr 22, 2022
814838b
node modules
ashah-splunk Apr 22, 2022
303dee6
Update package-lock.json
ashah-splunk Apr 25, 2022
ff0ade6
Update package-lock.json
ashah-splunk Apr 25, 2022
ed024d3
node modules
ashah-splunk Apr 25, 2022
fabce0f
node modules
ashah-splunk Apr 25, 2022
9941ca8
node modules
ashah-splunk Apr 25, 2022
3beadf1
removed lib/modularinputs directory
akaila-splunk Apr 26, 2022
35b4780
removed modularinputs test cases
akaila-splunk Apr 26, 2022
dfb0d8d
Updated README.md file and removed modularinputs references
akaila-splunk Apr 26, 2022
4d17a09
Revert "node modules"
ashah-splunk Apr 27, 2022
e6dce4e
Revert "node modules"
ashah-splunk Apr 27, 2022
a6a7553
Revert "node modules"
ashah-splunk Apr 27, 2022
09c63fd
Revert "Update package-lock.json"
ashah-splunk Apr 27, 2022
08627a4
Revert "Update package-lock.json"
ashah-splunk Apr 27, 2022
1d8966d
Revert "node modules"
ashah-splunk Apr 27, 2022
29342c5
Revert "node modules"
ashah-splunk Apr 27, 2022
8742819
Revert "node module changes"
ashah-splunk Apr 27, 2022
b4160fd
Update README.md
ashah-splunk Apr 27, 2022
590b01a
Added "Splunk-Client" as the new header
ashah-splunk Apr 28, 2022
7202fec
Merge pull request #149 from splunk/compile-fix
ashah-splunk Apr 29, 2022
793a971
Merge branch 'develop' into DVPL-10513
ashah-splunk Apr 29, 2022
7a51d09
compiled files updated with user agent change
ashah-splunk Apr 29, 2022
9323b02
Merge pull request #151 from splunk/DVPL-10513
ashah-splunk Apr 29, 2022
7c34147
Merge branch 'develop' into DVPL-10779
akaila-splunk Apr 29, 2022
cbbacd2
Update cli.js
akaila-splunk Apr 29, 2022
b2f8000
Updated a compiled files
akaila-splunk Apr 29, 2022
7b05a22
[DVPL-10898] Re-implement getting Version and new unit test
Apr 29, 2022
7f3d2b2
added assets directory for the docs
akaila-splunk May 2, 2022
62978bc
Merge pull request #152 from splunk/DVPL-10779
ashah-splunk May 13, 2022
c697c63
Merge branch 'develop' into DVPL-11009
ashah-splunk May 13, 2022
37a1dc0
compiled files updated
ashah-splunk May 13, 2022
56dd574
changed assets path
ashah-splunk May 13, 2022
e25facc
static assets directory
ashah-splunk May 13, 2022
e5313f7
Update cli.js
ashah-splunk May 13, 2022
82fe596
Merge branch 'develop' into DVPL-11058
ashah-splunk May 13, 2022
ab48fa9
Update cli.js
ashah-splunk May 13, 2022
87e7cd2
Merge pull request #153 from splunk/DVPL-11009
ashah-splunk May 19, 2022
52e4472
Merge pull request #154 from splunk/DVPL-11058
ashah-splunk May 19, 2022
7e752b8
Search API jobs v2 (/results_preview, /results, /events) allows searc…
Jun 7, 2022
2201f4a
Update test job - post processing with search params
Jun 8, 2022
933bd3f
added create method for StoragePasswords
akaila-splunk Jun 13, 2022
37cb4ec
Revert "added create method for StoragePasswords"
akaila-splunk Jun 13, 2022
7736bb9
Take changes from develop
fantavlik Jun 13, 2022
3ad4307
Merge commit '37cb4ecb2bf433c3d217f9bc230a6cb26a69655a' into DVPL-108…
fantavlik Jun 13, 2022
986a367
Regenerate front-end files
fantavlik Jun 13, 2022
7aaba04
Revert node_modules removal for now
fantavlik Jun 13, 2022
fbc802e
Add back node_modules for now
fantavlik Jun 13, 2022
5d78a2a
Add back missing node_modules
fantavlik Jun 13, 2022
5ef4bb2
Take package-lock from develop
fantavlik Jun 13, 2022
a5e528e
Restore missing node_modules files
fantavlik Jun 13, 2022
70e57f5
Revert some testing changes from b8f07e2d
fantavlik Jun 15, 2022
1706753
Undo cmdline change related to examples removal
fantavlik Jun 15, 2022
8fbd62e
Update generated test files
fantavlik Jun 15, 2022
c4ac350
Update generated client files
fantavlik Jun 15, 2022
5f1df1d
Update test matrix to test 8.2 and latest (currently 9.0) and update …
fantavlik Jun 16, 2022
721a9ff
Merge pull request #157 from splunk/DVPL-10898-develop
fantavlik Jun 16, 2022
f32fb4e
release 1.12.0 version changes
akaila-splunk Jun 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added 'User-Agent' header for the REST API calls
  • Loading branch information
akaila-splunk committed Apr 19, 2022
commit 8debed5140526c34436ed94e3d1566e0391014cb
3 changes: 2 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
headers: {
"Content-Length": req.headers["content-length"] || 0,
"Content-Type": req.headers["content-type"] || '',
"Authorization": req.headers["authorization"] || ''
"Authorization": req.headers["authorization"] || '',
"User-Agent": "splunk-sdk-javascript/" + SDK_VERSION
},
followAllRedirects: true,
body: body || '',
Expand Down
3 changes: 3 additions & 0 deletions lib/platform/node/node_http.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
var needle = require('needle');
var Http = require('../../http');
var utils = require('../../utils');
var SDK_VERSION = require('../../../package.json').version;

var root = exports || this;

Expand All @@ -40,6 +41,7 @@

// Get the byte-length of the content, which adjusts for multi-byte characters
request_options.headers["Content-Length"] = Buffer.byteLength(request_options.body, "utf8");
request_options.headers["User-Agent"] = "splunk-sdk-javascript/" + SDK_VERSION;

if(message.query && ["xml", "csv"].includes(message.query.output_mode)){
request_options.parse_response = false;
Expand Down Expand Up @@ -100,6 +102,7 @@

// Get the byte-length of the content, which adjusts for multi-byte characters
request_options.headers["Content-Length"] = Buffer.byteLength(request_options.body, "utf8");
request_options.headers["User-Agent"] = "splunk-sdk-javascript/" + SDK_VERSION;

var that = this;
var response = needle(request_options.method, request_options.url, request_options.body, request_options);
Expand Down