tremendous 2.1.0 → 2.2.0
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 +2 -2
- package/lib/index.js +1 -1
- package/package.json +12 -22
- package/Makefile +0 -24
package/README.md
CHANGED
|
@@ -19,10 +19,10 @@ All API requests require an access token. A sandbox access token is assigned up
|
|
|
19
19
|
var Tremendous = require('tremendous');
|
|
20
20
|
|
|
21
21
|
// Sandbox environment
|
|
22
|
-
var client = new Tremendous("[SANDBOX_ACCESS_TOKEN]", "https://testflight.tremendous.com/api/v2");
|
|
22
|
+
var client = new Tremendous("[SANDBOX_ACCESS_TOKEN]", "https://testflight.tremendous.com/api/v2/");
|
|
23
23
|
|
|
24
24
|
// Production environment
|
|
25
|
-
var client = new Tremendous("[PRODUCTION_ACCESS_TOKEN]", "https://
|
|
25
|
+
var client = new Tremendous("[PRODUCTION_ACCESS_TOKEN]", "https://api.tremendous.com/api/v2/");
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
|
package/lib/index.js
CHANGED
|
@@ -47,7 +47,7 @@ function client(path, method, options, callback) {
|
|
|
47
47
|
url: this.uri + path,
|
|
48
48
|
method: method,
|
|
49
49
|
headers: {
|
|
50
|
-
"User-agent": "Tremendous Node v2.
|
|
50
|
+
"User-agent": "Tremendous Node v2.2.0",
|
|
51
51
|
"authorization": "Bearer " + this.accessToken
|
|
52
52
|
},
|
|
53
53
|
json: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tremendous",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "A node.js client for the Tremendous API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tremendous",
|
|
@@ -8,42 +8,32 @@
|
|
|
8
8
|
],
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git://github.com/
|
|
11
|
+
"url": "git://github.com/tremendous-rewards/tremendous-node.git"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "http://github.com/
|
|
14
|
+
"url": "http://github.com/tremendous-rewards/tremendous-node/issues"
|
|
15
15
|
},
|
|
16
16
|
"licenses": [
|
|
17
17
|
{
|
|
18
18
|
"type": "MIT",
|
|
19
|
-
"url": "https://github.com/
|
|
19
|
+
"url": "https://github.com/tremendous-rewards/tremendous-node/blob/master/LICENSE"
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
22
|
"main": "index.js",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"jsonwebtoken": "
|
|
24
|
+
"jsonwebtoken": "9.0.x",
|
|
25
25
|
"lodash": "4.17.x",
|
|
26
|
-
"request": "2.
|
|
26
|
+
"request": "2.88.x"
|
|
27
27
|
},
|
|
28
|
-
"
|
|
29
|
-
"istanbul": "0.4.x",
|
|
30
|
-
"jscs": "2.7.x",
|
|
31
|
-
"jshint": "2.8.x",
|
|
32
|
-
"mocha": "2.3.x",
|
|
33
|
-
"proxyquire": "1.7.x",
|
|
34
|
-
"xyz": "0.5.x"
|
|
35
|
-
},
|
|
36
|
-
"homepage": "https://github.com/Giftrocket/tremendous-node#readme",
|
|
28
|
+
"homepage": "https://github.com/tremendous-rewards/tremendous-node#readme",
|
|
37
29
|
"scripts": {},
|
|
38
|
-
"
|
|
39
|
-
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=12.0.0",
|
|
32
|
+
"npm": ">=7.0.0"
|
|
33
|
+
},
|
|
40
34
|
"maintainers": [
|
|
41
35
|
" <developers@tremendous.com>"
|
|
42
36
|
],
|
|
43
|
-
"
|
|
44
|
-
"example": "examples",
|
|
45
|
-
"test": "test"
|
|
46
|
-
},
|
|
47
|
-
"author": "Tremendous Developers <developers@tremendous.com> (https://www.tremendous.com/rewards)",
|
|
37
|
+
"author": "Tremendous Developers <developers@tremendous.com> (https://www.tremendous.com)",
|
|
48
38
|
"license": "MIT"
|
|
49
39
|
}
|
package/Makefile
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
REPORTER = spec
|
|
2
|
-
|
|
3
|
-
all: jshint test
|
|
4
|
-
|
|
5
|
-
test:
|
|
6
|
-
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter $(REPORTER) --timeout 3000
|
|
7
|
-
|
|
8
|
-
jshint:
|
|
9
|
-
jshint lib examples test index.js
|
|
10
|
-
|
|
11
|
-
tests: test
|
|
12
|
-
|
|
13
|
-
tap:
|
|
14
|
-
@NODE_ENV=test ./node_modules/.bin/mocha -R tap > results.tap
|
|
15
|
-
|
|
16
|
-
unit:
|
|
17
|
-
@NODE_ENV=test ./node_modules/.bin/mocha --recursive -R xunit > results.xml --timeout 3000
|
|
18
|
-
|
|
19
|
-
skel:
|
|
20
|
-
mkdir examples lib test
|
|
21
|
-
touch index.js
|
|
22
|
-
npm install mocha chai --save-dev
|
|
23
|
-
|
|
24
|
-
.PHONY: test tap unit jshint skel
|