Skip to content

Commit 4c8fbd1

Browse files
author
Shakeel Mohamed
committed
Release 0.10.0
2 parents dfcf6f1 + ac21725 commit 4c8fbd1

File tree

10 files changed

+1667
-113
lines changed

10 files changed

+1667
-113
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
coverage
22
node_modules
33
npm-debug.log
4+
config.json
45
test/config.json
56
.idea
67
docs

.jshintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"trailing" : true, // Prohibit trailing whitespaces. // TODO
7171
"white" : false, // Check against strict whitespace and indentation rules.
7272
"unused" : true,
73-
73+
"indent" : 4,
7474
"globals" : {
7575
/* Mocha */
7676
"describe" : false,
@@ -80,4 +80,4 @@
8080
"after" : false,
8181
"afterEach" : false
8282
}
83-
}
83+
}

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
sudo: required
2+
3+
services:
4+
- docker
5+
6+
notifications:
7+
email: false
8+
9+
before_install:
10+
# Create .splunkrc file with default credentials
11+
- echo host=localhost >> $HOME/.splunkrc
12+
- echo username=admin >> $HOME/.splunkrc
13+
- echo password=changeme >> $HOME/.splunkrc
14+
# Set SPLUNK_HOME
15+
- export SPLUNK_HOME="/opt/splunk"
16+
# Pull docker image
17+
- docker pull splunk/splunk-sdk-travis-ci:$SPLUNK_VERSION
18+
# Add DOCKER to iptables, 1/10 times this is needed, force 0 exit status
19+
- sudo iptables -N DOCKER || true
20+
# Start Docker container
21+
- docker run -p 127.0.0.1:8089:8089 -p 127.0.0.1:8088:8088 -d splunk/splunk-sdk-travis-ci:$SPLUNK_VERSION
22+
# curl Splunk until it returns valid data indicating it has been setup, try 20 times maximum
23+
- for i in `seq 0 20`; do if curl --fail -k https://localhost:8089/services/server/info &> /dev/null; then break; fi; echo $i; sleep 1; done
24+
25+
26+
language: node_js
27+
node_js:
28+
- "8.0"
29+
- "6.0"
30+
- "4.2"
31+
32+
#Splunk versions can be set here
33+
env:
34+
- SPLUNK_VERSION=7.0-sdk
35+
- SPLUNK_VERSION=7.2-sdk
36+
37+
# Test script, should return non 0 exit status if a test fails
38+
script:
39+
npm test

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Splunk logging for JavaScript
22

3+
## v0.10.0
4+
5+
### Breaking changes
6+
7+
* Dropped support for Node.js versions older than 4.0.0.
8+
9+
### Minor changes
10+
11+
* Upgrade version of request to 2.88.0.
12+
313
## v0.9.3
414

515
### Minor changes

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Splunk logging for JavaScript
22

3-
#### Version 0.9.3
3+
#### Version 0.10.0
44

55
This project provides a simple JavaScript interface for logging to HTTP Event Collector in Splunk Enterprise and Splunk Cloud.
66

77
## Requirements
88

9-
* Node.js v0.10 or later.
9+
* Node.js v4 or later.
1010
* Splunk Enterprise 6.3.0 or later, or Splunk Cloud.
1111
* An HTTP Event Collector token from your Splunk Enterprise server.
1212

@@ -32,7 +32,7 @@ See the `examples` folder for usage examples:
3232

3333
### SSL
3434

35-
Note: SSL certificate validation is diabled by default.
35+
Note: SSL certificate validation is disabled by default.
3636
To enable it, set `requestOptions.strictSSL = true` on your `SplunkLogger` instance:
3737

3838
```javascript

0 commit comments

Comments
 (0)