akamai-edgegrid 3.5.0 → 3.5.2
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/.github/workflows/test.yml +1 -1
- package/CHANGELOG.md +83 -54
- package/LICENSE +2 -2
- package/README.md +126 -157
- package/examples/README.md +35 -0
- package/examples/create-credentials.js +34 -0
- package/examples/delete-credentials.js +38 -0
- package/examples/get-credentials.js +34 -0
- package/examples/update-credentials.js +43 -0
- package/index.test-d.ts +3 -3
- package/package.json +3 -9
- package/src/api.js +0 -14
- package/src/auth.js +0 -14
- package/src/edgerc.js +0 -14
- package/src/helpers.js +0 -14
- package/src/logger.js +0 -14
- package/test/src/api_test.js +0 -14
- package/test/src/edgerc_test.js +0 -14
- package/test/src/helpers_test.js +0 -14
- package/.nyc_output/428c0002-b763-4ca1-9c5c-2a333768afb9.json +0 -1
- package/.nyc_output/processinfo/428c0002-b763-4ca1-9c5c-2a333768afb9.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,106 +1,135 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Release notes
|
|
2
|
+
|
|
3
|
+
## 3.5.2 (Dec 05, 2024)
|
|
4
|
+
|
|
5
|
+
### Features/Enhancements
|
|
6
|
+
|
|
7
|
+
* Updated various dependencies.
|
|
8
|
+
|
|
9
|
+
## 3.5.1 (Sep 10, 2024)
|
|
10
|
+
|
|
11
|
+
### Features/Enhancements
|
|
12
|
+
|
|
13
|
+
* Updated various dependencies.
|
|
2
14
|
|
|
3
15
|
## 3.5.0 (Jul 02, 2024)
|
|
4
16
|
|
|
5
|
-
|
|
17
|
+
### Features/Enhancements
|
|
6
18
|
|
|
7
|
-
* Updated various dependencies
|
|
19
|
+
* Updated various dependencies.
|
|
8
20
|
|
|
9
|
-
|
|
21
|
+
### Bug fixes
|
|
10
22
|
|
|
11
|
-
* `max_body` is deprecated, ignored and replaced with constant value of 131072 bytes
|
|
23
|
+
* `max_body` is deprecated, ignored and replaced with a constant value of 131072 bytes.
|
|
12
24
|
|
|
13
25
|
## 3.4.5 (Apr 3, 2024)
|
|
14
26
|
|
|
15
|
-
|
|
27
|
+
### Bug fixes
|
|
28
|
+
|
|
16
29
|
* Fixed a bug where the `max_body` parameter was not utilized when generating the authentication header.
|
|
17
|
-
* Implemented support for the `max_body` parameter when the configuration is provided as function parameter.
|
|
30
|
+
* Implemented support for the `max_body` parameter when the configuration is provided as a function parameter.
|
|
18
31
|
|
|
19
|
-
|
|
20
|
-
|
|
32
|
+
### Features/Enhancements
|
|
33
|
+
|
|
34
|
+
* Updated various dependencies.
|
|
21
35
|
|
|
22
36
|
## 3.4.4 (Nov 15, 2023)
|
|
23
37
|
|
|
24
|
-
|
|
25
|
-
|
|
38
|
+
### Features/Enhancements
|
|
39
|
+
|
|
40
|
+
* Updated various dependencies.
|
|
26
41
|
|
|
27
42
|
## 3.4.3 (Oct 23, 2023)
|
|
28
43
|
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
### Features/Enhancements
|
|
45
|
+
|
|
46
|
+
* Updated various dependencies.
|
|
31
47
|
|
|
32
48
|
## 3.4.2 (Sep 12, 2023)
|
|
33
49
|
|
|
34
|
-
|
|
35
|
-
* Don't set the default `''` (empty) body in the requests
|
|
50
|
+
### Bug fixes
|
|
36
51
|
|
|
37
|
-
|
|
38
|
-
|
|
52
|
+
* Don't set the default `''` (empty) body in the requests.
|
|
53
|
+
|
|
54
|
+
### Features/Enhancements
|
|
55
|
+
|
|
56
|
+
* Updated various dependencies.
|
|
39
57
|
|
|
40
58
|
## 3.4.1 (May 09, 2023)
|
|
41
59
|
|
|
42
|
-
|
|
43
|
-
|
|
60
|
+
### Features/Enhancements
|
|
61
|
+
|
|
62
|
+
* Updated various dependencies.
|
|
44
63
|
|
|
45
64
|
## 3.4.0 (Jan 26, 2023)
|
|
46
65
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
* Update various dependencies
|
|
66
|
+
### Features/Enhancements
|
|
67
|
+
|
|
68
|
+
* Added reading of the `max_body` (alias `max-body`) field from `.edgerc` config file with a default value of `131072` ([PR#1](https://github.com/akamai/AkamaiOPEN-edgegrid-node/pull/1)).
|
|
69
|
+
* Added a default Accept header (related to [PR#43](https://github.com/akamai/AkamaiOPEN-edgegrid-node/pull/43) and [I#33](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/33)).
|
|
70
|
+
* Added the README section explaining how to use proxy (related to [PR#35](https://github.com/akamai/AkamaiOPEN-edgegrid-node/pull/35) and [I#59](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/59)).
|
|
71
|
+
* Added the README section explaining how to change request encoding (related to [PR#58](https://github.com/akamai/AkamaiOPEN-edgegrid-node/pull/58)).
|
|
72
|
+
* Updated various dependencies.
|
|
55
73
|
|
|
56
74
|
## 3.3.0 (Nov 08, 2022)
|
|
57
75
|
|
|
58
|
-
|
|
59
|
-
|
|
76
|
+
### Features/Enhancements
|
|
77
|
+
|
|
78
|
+
* Updated various dependencies.
|
|
79
|
+
|
|
80
|
+
### Bug fixes
|
|
60
81
|
|
|
61
|
-
|
|
62
|
-
* Fix adding `User-Agent` header to the request
|
|
82
|
+
* Fixed adding the `User-Agent` header to the request.
|
|
63
83
|
|
|
64
84
|
## 3.2.0 (Apr 26, 2022)
|
|
65
85
|
|
|
66
|
-
|
|
67
|
-
|
|
86
|
+
### Features/Enhancements
|
|
87
|
+
|
|
88
|
+
* Added the Typescript declaration file ([#71](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/71)).
|
|
68
89
|
|
|
69
90
|
## 3.1.4 (Mar 24, 2022)
|
|
70
91
|
|
|
71
|
-
|
|
72
|
-
|
|
92
|
+
### Features/Enhancements
|
|
93
|
+
|
|
94
|
+
* Removed a deprecated `moment` dependency.
|
|
95
|
+
|
|
96
|
+
### Bug fixes
|
|
73
97
|
|
|
74
|
-
|
|
75
|
-
* Fix response when Content-Type is `application/gzip` ([#83](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/83))
|
|
98
|
+
* Fixed the response when Content-Type is `application/gzip` ([#83](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/83)).
|
|
76
99
|
|
|
77
100
|
## 3.1.3 (Feb 22, 2022)
|
|
78
101
|
|
|
79
|
-
|
|
80
|
-
* Update various dependencies
|
|
102
|
+
### Features/Enhancements
|
|
81
103
|
|
|
82
|
-
|
|
83
|
-
|
|
104
|
+
* Updated various dependencies.
|
|
105
|
+
|
|
106
|
+
### Bug fixes
|
|
107
|
+
|
|
108
|
+
* Bumped axios to 0.26.0 to get rid of vulnerability in [follow-redirects](https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-2396346).
|
|
84
109
|
|
|
85
110
|
## 3.1.2 (Nov 3, 2021)
|
|
86
111
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
*
|
|
112
|
+
### Notes
|
|
113
|
+
|
|
114
|
+
* [IMPORTANT] Changed the npm package name from `edgegrid` to `akamai-edgegrid`.
|
|
115
|
+
* Cleaned up `README.md` to include working examples and got rid of inconsistencies.
|
|
90
116
|
|
|
91
117
|
## 3.1.1 (Sep 28, 2021)
|
|
92
118
|
|
|
93
|
-
|
|
94
|
-
|
|
119
|
+
### Bug fixes
|
|
120
|
+
|
|
121
|
+
* Updated the version of axios to 0.21.4 to get rid of the ReDoS vulnerability.
|
|
95
122
|
|
|
96
123
|
## 3.1.0 (Sep 27, 2021)
|
|
97
124
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
*
|
|
125
|
+
### Bug fixes
|
|
126
|
+
|
|
127
|
+
* Fixed support of environment variables ([#27](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/27)).
|
|
128
|
+
* Fixed an error when Tarball exceeds a max-body size ([#33](https://github.com/akamai/cli-edgeworkers/issues/33)).
|
|
129
|
+
|
|
130
|
+
### Features/Enhancements
|
|
101
131
|
|
|
102
|
-
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* Add resolving ~ sign in edgerc path
|
|
132
|
+
* Replaced the `request` package with axios ([#64](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/64)).
|
|
133
|
+
* Fixed code quality issues.
|
|
134
|
+
* Updated the version of mocha.
|
|
135
|
+
* Added a resolving ~ sign in the edgerc path.
|
package/LICENSE
CHANGED
|
@@ -176,10 +176,10 @@ recommend that a file or class name and description of purpose be included on
|
|
|
176
176
|
the same "printed page" as the copyright notice for easier identification within
|
|
177
177
|
third-party archives.
|
|
178
178
|
|
|
179
|
-
Copyright
|
|
179
|
+
Copyright 2024 Akamai Technologies, Inc. All rights reserved.
|
|
180
180
|
|
|
181
181
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
-
you may not use
|
|
182
|
+
you may not use these files except in compliance with the License.
|
|
183
183
|
You may obtain a copy of the License at
|
|
184
184
|
|
|
185
185
|
http://www.apache.org/licenses/LICENSE-2.0
|
package/README.md
CHANGED
|
@@ -2,48 +2,69 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
+
This library implements an Authentication handler for the Akamai EdgeGrid Authentication scheme in Node.js for Node v14 and above.
|
|
5
6
|
|
|
6
|
-
This library implements an Authentication handler for the Akamai EdgeGrid Authentication scheme in Node.js.
|
|
7
|
-
|
|
8
|
-
It’s Akamai’s current and officially supported version of AkamaiOPEN EdgeGrid for Node.js.
|
|
9
7
|
You can find the most up-to-date package in [NPM](https://www.npmjs.com/package/akamai-edgegrid) under `akamai-edgegrid`.
|
|
10
8
|
|
|
11
|
-
> __IMPORTANT:__ Akamai will not maintain the `edgegrid` package in NPM going forward.
|
|
12
|
-
|
|
13
9
|
## Install
|
|
14
10
|
|
|
15
11
|
`npm install --save akamai-edgegrid`
|
|
16
12
|
|
|
17
|
-
##
|
|
13
|
+
## Authentication
|
|
14
|
+
|
|
15
|
+
You can obtain the authentication credentials through an API client. Requests to the API are marked with a timestamp and a signature and are executed immediately.
|
|
16
|
+
|
|
17
|
+
1. [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials).
|
|
18
|
+
|
|
19
|
+
2. Place your credentials in an EdgeGrid file `~/.edgerc`, in the `[default]` section.
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
```
|
|
22
|
+
[default]
|
|
23
|
+
client_secret = C113nt53KR3TN6N90yVuAgICxIRwsObLi0E67/N8eRN=
|
|
24
|
+
host = akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net
|
|
25
|
+
access_token = akab-acc35t0k3nodujqunph3w7hzp7-gtm6ij
|
|
26
|
+
client_token = akab-c113ntt0k3n4qtari252bfxxbsl-yvsdj
|
|
27
|
+
```
|
|
20
28
|
|
|
21
|
-
|
|
29
|
+
3. Use your local `.edgerc` by providing the path to your resource file and credentials' section header.
|
|
22
30
|
|
|
23
|
-
|
|
31
|
+
```javascript
|
|
32
|
+
var eg = new EdgeGrid({
|
|
33
|
+
path: '/path/to/.edgerc',
|
|
34
|
+
section: '<section-header>'
|
|
35
|
+
});
|
|
36
|
+
```
|
|
24
37
|
|
|
25
|
-
|
|
38
|
+
Alternatively, you can hard code your credentials by passing the credential values to the `EdgeGrid()` method.
|
|
26
39
|
|
|
27
|
-
|
|
40
|
+
```javascript
|
|
41
|
+
var clientToken = "akab-c113ntt0k3n4qtari252bfxxbsl-yvsdj",
|
|
42
|
+
clientSecret = "C113nt53KR3TN6N90yVuAgICxIRwsObLi0E67/N8eRN=",
|
|
43
|
+
accessToken = "akab-acc35t0k3nodujqunph3w7hzp7-gtm6ij",
|
|
44
|
+
baseUri = "akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net";
|
|
45
|
+
|
|
46
|
+
var eg = new EdgeGrid(clientToken, clientSecret, accessToken, baseUri);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Use
|
|
50
|
+
|
|
51
|
+
To use the library, provide the path to your `.edgerc`, your credentials section header, and the appropriate endpoint information.
|
|
28
52
|
|
|
29
53
|
```javascript
|
|
30
54
|
var EdgeGrid = require('akamai-edgegrid');
|
|
31
55
|
|
|
32
|
-
var data = 'bodyData';
|
|
33
|
-
|
|
34
|
-
// Supply the path to your .edgerc file and name
|
|
35
|
-
// of the section with authorization to the client
|
|
36
|
-
// you are calling (default section is 'default')
|
|
37
56
|
var eg = new EdgeGrid({
|
|
38
57
|
path: '/path/to/.edgerc',
|
|
39
|
-
section: 'section-
|
|
58
|
+
section: 'section-header'
|
|
40
59
|
});
|
|
41
60
|
|
|
42
61
|
eg.auth({
|
|
43
|
-
path: '/
|
|
62
|
+
path: '/identity-management/v3/user-profile',
|
|
44
63
|
method: 'GET',
|
|
45
|
-
headers: {
|
|
46
|
-
|
|
64
|
+
headers: {
|
|
65
|
+
'Accept': "application/json"
|
|
66
|
+
},
|
|
67
|
+
body: {}
|
|
47
68
|
});
|
|
48
69
|
|
|
49
70
|
eg.send(function(error, response, body) {
|
|
@@ -51,63 +72,48 @@ eg.send(function(error, response, body) {
|
|
|
51
72
|
});
|
|
52
73
|
```
|
|
53
74
|
|
|
54
|
-
An `.edgerc` file contains sections for each of your API client credentials and is usually hosted in your home directory:
|
|
55
|
-
|
|
56
|
-
```plaintext
|
|
57
|
-
[default]
|
|
58
|
-
host = akaa-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.luna.akamaiapis.net/
|
|
59
|
-
client_token = akab-XXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXX
|
|
60
|
-
client_secret = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
|
61
|
-
access_token = akab-XXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXX
|
|
62
|
-
max-body = 131072
|
|
63
|
-
|
|
64
|
-
[section-name]
|
|
65
|
-
host = akaa-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.luna.akamaiapis.net/
|
|
66
|
-
client_token = akab-XXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXX
|
|
67
|
-
client_secret = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
|
68
|
-
access_token = akab-XXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXX
|
|
69
|
-
max-body = 131072
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
### Manual authentication
|
|
73
|
-
|
|
74
|
-
You can also authenticate manually by hard coding your credential values and passing them to the EdgeGrid client:
|
|
75
|
-
|
|
76
|
-
```javascript
|
|
77
|
-
var clientToken = "akab-client-token-xxx-xxxxxxxxxxxxxxxx",
|
|
78
|
-
clientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=",
|
|
79
|
-
accessToken = "akab-access-token-xxx-xxxxxxxxxxxxxxxx",
|
|
80
|
-
baseUri = "https://akaa-baseurl-xxxxxxxxxxx-xxxxxxxxxxxxx.luna.akamaiapis.net/";
|
|
81
|
-
|
|
82
|
-
var eg = new EdgeGrid(clientToken, clientSecret, accessToken, baseUri);
|
|
83
|
-
```
|
|
84
|
-
|
|
85
75
|
### Chaining
|
|
86
76
|
|
|
87
|
-
You can also chain calls
|
|
77
|
+
You can also chain calls by combining the execution of `auth` and `send` methods.
|
|
88
78
|
|
|
89
79
|
```javascript
|
|
90
|
-
...
|
|
91
80
|
eg.auth({
|
|
92
|
-
path: '/
|
|
81
|
+
path: '/identity-management/v3/user-profile',
|
|
93
82
|
method: 'GET',
|
|
94
83
|
headers: {},
|
|
84
|
+
body: {}
|
|
95
85
|
}).send(function (error, response, body) {
|
|
96
86
|
console.log(body);
|
|
97
87
|
});
|
|
98
88
|
```
|
|
99
89
|
|
|
100
|
-
|
|
90
|
+
### Query string parameters
|
|
91
|
+
|
|
92
|
+
When entering query parameters use the `qs` property under the `auth` method. Set up the parameters as name-value pairs in a object.
|
|
93
|
+
|
|
94
|
+
```javascript
|
|
95
|
+
eg.auth({
|
|
96
|
+
path: '/identity-management/v3/user-profile',
|
|
97
|
+
method: 'GET',
|
|
98
|
+
headers: {},
|
|
99
|
+
qs: {
|
|
100
|
+
authGrants: true,
|
|
101
|
+
notifications: true,
|
|
102
|
+
actions: true
|
|
103
|
+
},
|
|
104
|
+
body: {}
|
|
105
|
+
})
|
|
106
|
+
```
|
|
101
107
|
|
|
102
108
|
### Headers
|
|
103
109
|
|
|
104
|
-
Enter request headers as name-value pairs in an object.
|
|
110
|
+
Enter request headers as name-value pairs in an object.
|
|
105
111
|
|
|
106
|
-
> **
|
|
112
|
+
> **Note:** You don't need to include the `Content-Type` and `Content-Length` headers. The authentication layer adds these values.
|
|
107
113
|
|
|
108
114
|
```javascript
|
|
109
115
|
eg.auth({
|
|
110
|
-
path: '/
|
|
116
|
+
path: '/identity-management/v3/user-profile',
|
|
111
117
|
method: 'GET',
|
|
112
118
|
headers: {
|
|
113
119
|
'Accept': "application/json"
|
|
@@ -117,43 +123,30 @@ eg.auth({
|
|
|
117
123
|
|
|
118
124
|
### Body data
|
|
119
125
|
|
|
120
|
-
|
|
126
|
+
Provide the request body as an object or as a POST data formatted string.
|
|
121
127
|
|
|
122
128
|
```javascript
|
|
123
129
|
// Object
|
|
124
130
|
eg.auth({
|
|
125
|
-
path: '/
|
|
126
|
-
method: '
|
|
131
|
+
path: '/identity-management/v3/user-profile/basic-info',
|
|
132
|
+
method: 'PUT',
|
|
133
|
+
headers: {},
|
|
127
134
|
body: {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
135
|
+
contactType: "Billing",
|
|
136
|
+
country: "USA",
|
|
137
|
+
firstName: "John",
|
|
138
|
+
lastName: "Smith",
|
|
139
|
+
phone: "3456788765",
|
|
140
|
+
preferredLanguage: "English",
|
|
141
|
+
sessionTimeOut: 30,
|
|
142
|
+
timeZone: "GMT"
|
|
143
|
+
}
|
|
131
144
|
});
|
|
132
145
|
```
|
|
133
|
-
|
|
134
|
-
### Query string parameters
|
|
135
|
-
|
|
136
|
-
When entering query parameters use the `qs` property under the `auth` method. Set up the parameters as name-value pairs in a object.
|
|
137
|
-
|
|
138
|
-
```javascript
|
|
139
|
-
eg.auth({
|
|
140
|
-
path: '/papi/v1/cpcodes',
|
|
141
|
-
method: 'POST',
|
|
142
|
-
headers: {},
|
|
143
|
-
qs: {
|
|
144
|
-
contractId: "ctr_1234",
|
|
145
|
-
groupId: "grp_1234",
|
|
146
|
-
},
|
|
147
|
-
body: data
|
|
148
|
-
})
|
|
149
|
-
|
|
150
|
-
// Produces request URL similar to:
|
|
151
|
-
// https://akaa-baseurl-xxxxxxxxxxx-xxxxxxxxxxxxx.luna.akamaiapis.net/papi/v1/cpcodes?contractId=ctr_1234&groupId=grp_1234
|
|
152
|
-
```
|
|
153
146
|
|
|
154
147
|
### Encoding
|
|
155
148
|
|
|
156
|
-
When interacting with binary data, such as during retrieval of PDF invoices, `responseType`
|
|
149
|
+
When interacting with binary data, such as during the retrieval of PDF invoices, specify the `responseType` as an `arraybuffer` in the `auth` method call. Omitting the `responseType` will cause an unreadable or blank response.
|
|
157
150
|
|
|
158
151
|
```javascript
|
|
159
152
|
const fs = require('fs');
|
|
@@ -176,95 +169,71 @@ eg.auth({
|
|
|
176
169
|
```
|
|
177
170
|
|
|
178
171
|
### Proxy
|
|
179
|
-
To use edgegrid with proxy, you can configure it with `proxy` field:
|
|
180
172
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
173
|
+
To use edgegrid with proxy, you can configure it with one of these methods:
|
|
174
|
+
|
|
175
|
+
- Add the `proxy` argument to the `EdgeGrid()` method.
|
|
176
|
+
|
|
177
|
+
```javascript
|
|
178
|
+
eg.auth({
|
|
179
|
+
path : `/identity-management/v3/user-profile`,
|
|
180
|
+
method: 'GET',
|
|
181
|
+
proxy: {
|
|
182
|
+
host: 'my.proxy.com',
|
|
183
|
+
protocol: "https",
|
|
184
|
+
port: 3128,
|
|
185
|
+
auth: {
|
|
186
|
+
username: 'my-user',
|
|
187
|
+
password: 'my-password'
|
|
188
|
+
}
|
|
192
189
|
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
```
|
|
190
|
+
}).send((err, response) => {
|
|
191
|
+
if (err) {
|
|
192
|
+
return console.log(err);
|
|
193
|
+
}
|
|
194
|
+
console.log('Success!');
|
|
195
|
+
// Do something with the response
|
|
196
|
+
});
|
|
197
|
+
```
|
|
202
198
|
|
|
203
|
-
|
|
199
|
+
- Set the `HTTPS_PROXY` environment variable.
|
|
204
200
|
|
|
205
|
-
```shell
|
|
206
|
-
$ export
|
|
207
|
-
$ node myapp.js
|
|
208
|
-
```
|
|
201
|
+
```shell
|
|
202
|
+
$ export HTTPS_PROXY=https://username:password@host:port
|
|
203
|
+
$ node myapp.js
|
|
204
|
+
```
|
|
209
205
|
|
|
210
206
|
### Debug
|
|
211
207
|
|
|
212
|
-
|
|
213
|
-
or by setting the `EG_VERBOSE` environment variable. When enabled, EdgeGrid provides
|
|
214
|
-
additional information about the request that's helpful for debugging.
|
|
208
|
+
Enable debugging to get additional information about a request. You can configure this with one of these methods:
|
|
215
209
|
|
|
216
|
-
|
|
210
|
+
- Add the `debug` argument to the `EdgeGrid()` method.
|
|
217
211
|
|
|
218
|
-
```javascript
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
```
|
|
212
|
+
```javascript
|
|
213
|
+
var eg = new EdgeGrid({
|
|
214
|
+
path: '/path/to/.edgerc',
|
|
215
|
+
section: 'section-header'
|
|
216
|
+
debug: true
|
|
217
|
+
});
|
|
218
|
+
```
|
|
226
219
|
|
|
227
|
-
|
|
220
|
+
- Set the `EG_VERBOSE` environment variable.
|
|
221
|
+
|
|
222
|
+
```shell
|
|
223
|
+
$ export EG_VERBOSE=true
|
|
224
|
+
$ node src/main.js
|
|
225
|
+
```
|
|
228
226
|
|
|
229
|
-
```bash
|
|
230
|
-
// Set debug via environment variable
|
|
231
|
-
$ export EG_VERBOSE=true
|
|
232
|
-
$ node src/main.js
|
|
233
227
|
|
|
234
|
-
Starting Request {
|
|
235
|
-
url: 'https://akaa-baseurl-xxxxxxxxxxx-xxxxxxxxxxxxx.luna.akamaiapis.net/papi/v1/groups',
|
|
236
|
-
method: 'get',
|
|
237
|
-
data: '',
|
|
238
|
-
headers: {
|
|
239
|
-
common: { Accept: 'application/json, text/plain, */*' },
|
|
240
|
-
delete: {},
|
|
241
|
-
...
|
|
242
|
-
Response: {
|
|
243
|
-
status: 200,
|
|
244
|
-
statusText: 'OK',
|
|
245
|
-
headers: {
|
|
246
|
-
server: 'nginx',
|
|
247
|
-
'content-type': 'application/json;charset=UTF-8',
|
|
248
|
-
...
|
|
249
|
-
}
|
|
250
|
-
```
|
|
251
228
|
|
|
252
229
|
## Reporting issues
|
|
253
230
|
|
|
254
|
-
To report
|
|
231
|
+
To report an issue or make a suggestion, create a new [GitHub issue](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues).
|
|
255
232
|
|
|
256
233
|
## License
|
|
257
234
|
|
|
258
|
-
Copyright
|
|
259
|
-
|
|
260
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
261
|
-
you may not use this file except in compliance with the License.
|
|
262
|
-
You may obtain a copy of the License at
|
|
235
|
+
Copyright 2024 Akamai Technologies, Inc. All rights reserved.
|
|
263
236
|
|
|
264
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
237
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
265
238
|
|
|
266
|
-
Unless required by applicable law or agreed to in writing, software
|
|
267
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
268
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
269
|
-
See the License for the specific language governing permissions and
|
|
270
|
-
limitations under the License.
|
|
239
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Examples
|
|
2
|
+
|
|
3
|
+
This directory contains executable CRUD examples for Akamai API using the EdgeGrid Node library. API calls used in these examples are available to all users. But, if you find one of the write examples does not work for you, talk with your account's admin about your privilege level.
|
|
4
|
+
|
|
5
|
+
## Run
|
|
6
|
+
|
|
7
|
+
To run any of the files:
|
|
8
|
+
|
|
9
|
+
1. Append the path to your `.edgerc`. The default is set to the home directory.
|
|
10
|
+
2. Provide the section heading for the set of credentials you'd like to use. The default is `default`.
|
|
11
|
+
3. For update and delete operations, replace the dummy `credentialId` with your valid `credentialId`.
|
|
12
|
+
4. Open a Terminal or shell instance and run the .js file.
|
|
13
|
+
|
|
14
|
+
```shell
|
|
15
|
+
$ node examples/<file-name>.js
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Sample files
|
|
19
|
+
|
|
20
|
+
The example in each file contains a call to one of the Identity and Access Management (IAM) API endpoints. See the [IAM API reference](https://techdocs.akamai.com/iam-api/reference/api) doc for more information on each of the calls used.
|
|
21
|
+
|
|
22
|
+
| Operation | Method | Endpoint |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| [`List your API client credentials.`](/examples/get-credentials.js)| `GET` | `/identity-management/v3/api-clients/self/credentials`|
|
|
25
|
+
| [`Create new API client credentials.`](/examples/create-credentials.js) <br /> This is a *quick* client and grants you the default permissions associated with your account. | `POST` | `/identity-management/v3/api-clients/self/credentials` |
|
|
26
|
+
| [`Update your credentials by ID.`](/examples/update-credentials.js) | `PUT` | `/identity-management/v3/api-clients/self/credentials/{credentialId}`|
|
|
27
|
+
| [`Delete your credentials by ID.`](/examples/delete-credentials.js) | `DELETE` | `/identity-management/v3/api-clients/self/credentials/{credentialId}`|
|
|
28
|
+
|
|
29
|
+
Suggested chained call order:
|
|
30
|
+
|
|
31
|
+
1. Get credentials to see your base information.
|
|
32
|
+
2. Create client to create a new set of credentials.
|
|
33
|
+
3. Update credentials to inactivate the newly created set from step 2.
|
|
34
|
+
4. Delete client to delete the inactivated credentials.
|
|
35
|
+
5. Get credentials and verify the credentials are gone (status will be `DELETED`).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This example creates your new API client credentials.
|
|
2
|
+
//
|
|
3
|
+
// To run this example:
|
|
4
|
+
//
|
|
5
|
+
// 1. Specify the path to your `.edgerc` file and the section header of the set of credentials to use.
|
|
6
|
+
//
|
|
7
|
+
// The defaults here expect the `.edgerc` at your home directory and use the credentials under the heading of `default`.
|
|
8
|
+
//
|
|
9
|
+
// 2. Open a Terminal or shell instance and run "node examples/create-credentials.js".
|
|
10
|
+
//
|
|
11
|
+
// A successful call returns a new API client with its `credentialId`. Use this ID in both the update and delete examples.
|
|
12
|
+
//
|
|
13
|
+
// For more information on the call used in this example, see https://techdocs.akamai.com/iam-api/reference/post-self-credentials.
|
|
14
|
+
|
|
15
|
+
var EdgeGrid = require('akamai-edgegrid');
|
|
16
|
+
|
|
17
|
+
var eg = new EdgeGrid({
|
|
18
|
+
path: '~/.edgerc',
|
|
19
|
+
section: 'default',
|
|
20
|
+
debug: true
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
eg.auth({
|
|
24
|
+
path: '/identity-management/v3/api-clients/self/credentials',
|
|
25
|
+
method: 'POST',
|
|
26
|
+
headers: {
|
|
27
|
+
'Accept': "application/json"
|
|
28
|
+
},
|
|
29
|
+
body: {}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
eg.send(function(error, response, body) {
|
|
33
|
+
console.log(body, error);
|
|
34
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This example deletes your API client credentials.
|
|
2
|
+
//
|
|
3
|
+
// To run this example:
|
|
4
|
+
//
|
|
5
|
+
// 1. Specify the path to your `.edgerc` file and the section header of the set of credentials to use.
|
|
6
|
+
//
|
|
7
|
+
// The defaults here expect the `.edgerc` at your home directory and use the credentials under the heading of `default`.
|
|
8
|
+
//
|
|
9
|
+
// 2. Add the `credentialId` from the update example to the path. You can only delete inactive credentials. Sending the request on an active set will return a 400. Use the update credentials example for deactivation.
|
|
10
|
+
//
|
|
11
|
+
// **Important:** Don't use your actual credentials for this operation. Otherwise, you'll block your access to the Akamai APIs.
|
|
12
|
+
//
|
|
13
|
+
// 3. Open a Terminal or shell instance and run "node example/delete-credentials.js".
|
|
14
|
+
//
|
|
15
|
+
// A successful call returns an empty response body.
|
|
16
|
+
//
|
|
17
|
+
// For more information on the call used in this example, see https://techdocs.akamai.com/iam-api/reference/delete-self-credential.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var EdgeGrid = require('akamai-edgegrid');
|
|
21
|
+
|
|
22
|
+
var eg = new EdgeGrid({
|
|
23
|
+
path: '~/.edgerc',
|
|
24
|
+
section: 'default'
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
eg.auth({
|
|
28
|
+
path: '/identity-management/v3/api-clients/self/credentials/123456',
|
|
29
|
+
method: 'DELETE',
|
|
30
|
+
headers: {
|
|
31
|
+
'Accept': "application/json"
|
|
32
|
+
},
|
|
33
|
+
body: {}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
eg.send(function(error, response, body) {
|
|
37
|
+
console.log(body, error);
|
|
38
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This example returns a list of your API client credentials.
|
|
2
|
+
//
|
|
3
|
+
// To run this example:
|
|
4
|
+
//
|
|
5
|
+
// 1. Specify the path to your `.edgerc` file and the section header of the set of credentials to use.
|
|
6
|
+
//
|
|
7
|
+
// The defaults here expect the `.edgerc` at your home directory and use the credentials under the heading of `default`.
|
|
8
|
+
//
|
|
9
|
+
// 2. Open a Terminal or shell instance and run "node example/get-credentials.js".
|
|
10
|
+
//
|
|
11
|
+
// A successful call returns your credentials grouped by `credentialId`.
|
|
12
|
+
//
|
|
13
|
+
// For more information on the call used in this example, see https://techdocs.akamai.com/iam-api/reference/get-self-credentials.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var EdgeGrid = require('akamai-edgegrid');
|
|
17
|
+
|
|
18
|
+
var eg = new EdgeGrid({
|
|
19
|
+
path: '~/.edgerc',
|
|
20
|
+
section: 'default'
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
eg.auth({
|
|
24
|
+
path: '/identity-management/v3/api-clients/self/credentials',
|
|
25
|
+
method: 'GET',
|
|
26
|
+
headers: {
|
|
27
|
+
'Accept': "application/json"
|
|
28
|
+
},
|
|
29
|
+
body: {}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
eg.send(function(error, response, body) {
|
|
33
|
+
console.log(body, error);
|
|
34
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// This example updates the credentials from the create credentials example.
|
|
2
|
+
//
|
|
3
|
+
// To run this example:
|
|
4
|
+
//
|
|
5
|
+
// 1. Specify the path to your `.edgerc` file and the section header of the set of credentials to use.
|
|
6
|
+
//
|
|
7
|
+
// The defaults here expect the `.edgerc` at your home directory and use the credentials under the heading of `default`.
|
|
8
|
+
//
|
|
9
|
+
// 2. Add the `credentialId` for the set of credentials created using the create example as a path parameter.
|
|
10
|
+
//
|
|
11
|
+
// 3. Edit the `expiresOn` date to today's date. Optionally, you can change the `description` value.
|
|
12
|
+
//
|
|
13
|
+
// 4. Open a Terminal or shell instance and run "node example/update-credentials.js".
|
|
14
|
+
//
|
|
15
|
+
// A successful call returns an object with modified credentials.
|
|
16
|
+
//
|
|
17
|
+
// For more information on the call used in this example, see https://techdocs.akamai.com/iam-api/reference/put-self-credential.
|
|
18
|
+
|
|
19
|
+
var EdgeGrid = require('akamai-edgegrid');
|
|
20
|
+
|
|
21
|
+
var eg = new EdgeGrid({
|
|
22
|
+
path: '~/.edgerc',
|
|
23
|
+
section: 'default',
|
|
24
|
+
debug: true
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
eg.auth({
|
|
28
|
+
path: '/identity-management/v3/api-clients/self/credentials/123456',
|
|
29
|
+
method: 'PUT',
|
|
30
|
+
headers: {
|
|
31
|
+
Accept: 'application/json',
|
|
32
|
+
'Content-Type': 'application/json'
|
|
33
|
+
},
|
|
34
|
+
body: {
|
|
35
|
+
description: 'Update this credential',
|
|
36
|
+
status: 'INACTIVE',
|
|
37
|
+
expiresOn: '2024-12-25T22:09:24.000Z' // the date cannot be more than two years out or it will return a 400
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
eg.send(function(error, response, body) {
|
|
42
|
+
console.log(error, body);
|
|
43
|
+
});
|
package/index.test-d.ts
CHANGED
|
@@ -3,16 +3,16 @@ import EdgeGrid = require('.')
|
|
|
3
3
|
|
|
4
4
|
const eg = new EdgeGrid({
|
|
5
5
|
path: '/path/to/.edgerc',
|
|
6
|
-
section: 'section-
|
|
6
|
+
section: 'section-header'
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
expectType<EdgeGrid>(eg)
|
|
10
10
|
|
|
11
11
|
var req = {
|
|
12
|
-
path: '/
|
|
12
|
+
path: '/identity-management/v3/user-profile',
|
|
13
13
|
method: 'GET',
|
|
14
14
|
headers: {},
|
|
15
|
-
body:
|
|
15
|
+
body: {}
|
|
16
16
|
}
|
|
17
17
|
expectType<EdgeGrid>(eg.auth(req))
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "akamai-edgegrid",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "Authentication handler for the Akamai OPEN EdgeGrid Authentication scheme in Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,20 +17,14 @@
|
|
|
17
17
|
"api",
|
|
18
18
|
"edgegrid"
|
|
19
19
|
],
|
|
20
|
-
"author": "Jonathan Bennett",
|
|
21
|
-
"contributors": [
|
|
22
|
-
"Darius Kazemi",
|
|
23
|
-
"Mike Ball",
|
|
24
|
-
"Kyle Tyacke"
|
|
25
|
-
],
|
|
26
20
|
"license": "Apache-2.0",
|
|
27
21
|
"dependencies": {
|
|
28
22
|
"axios": "^1.1.2",
|
|
29
23
|
"log4js": "^6.4.0",
|
|
30
|
-
"uuid": "^
|
|
24
|
+
"uuid": "^10.0.0"
|
|
31
25
|
},
|
|
32
26
|
"devDependencies": {
|
|
33
|
-
"mocha": "^
|
|
27
|
+
"mocha": "^11.0.1",
|
|
34
28
|
"mocha-junit-reporter": "^2.1.0",
|
|
35
29
|
"nock": "^13.2.2",
|
|
36
30
|
"nyc": "^17.0.0",
|
package/src/api.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
// Copyright 2014 Akamai Technologies, Inc. All Rights Reserved
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
1
|
const axios = require('axios'),
|
|
16
2
|
auth = require('./auth'),
|
|
17
3
|
edgerc = require('./edgerc'),
|
package/src/auth.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
// Copyright 2014 Akamai Technologies, Inc. All Rights Reserved
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
1
|
const uuid = require('uuid'),
|
|
16
2
|
helpers = require('./helpers'),
|
|
17
3
|
logger = require('./logger'),
|
package/src/edgerc.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
// Copyright 2014 Akamai Technologies, Inc. All Rights Reserved
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
1
|
const fs = require('fs'),
|
|
16
2
|
logger = require('./logger'),
|
|
17
3
|
helpers = require('./helpers');
|
package/src/helpers.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
// Copyright 2014 Akamai Technologies, Inc. All Rights Reserved
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
1
|
const crypto = require('crypto'),
|
|
16
2
|
logger = require('./logger'),
|
|
17
3
|
path = require('path'),
|
package/src/logger.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
// Copyright 2014 Akamai Technologies, Inc. All Rights Reserved
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
1
|
const log4js = require('log4js'),
|
|
16
2
|
logger = log4js.getLogger();
|
|
17
3
|
|
package/test/src/api_test.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
// Copyright 2014 Akamai Technologies, Inc. All Rights Reserved
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
1
|
const assert = require('assert'),
|
|
16
2
|
nock = require('nock'),
|
|
17
3
|
path = require('path'),
|
package/test/src/edgerc_test.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
// Copyright 2014 Akamai Technologies, Inc. All Rights Reserved
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
1
|
const assert = require('assert'),
|
|
16
2
|
path = require('path'),
|
|
17
3
|
edgerc = require('../../src/edgerc');
|
package/test/src/helpers_test.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
// Copyright 2014 Akamai Technologies, Inc. All Rights Reserved
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
1
|
const assert = require('assert'),
|
|
16
2
|
helpers = require('../../src/helpers'),
|
|
17
3
|
os = require('os');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/auth.js":{"path":"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/auth.js","statementMap":{"0":{"start":{"line":15,"column":13},"end":{"line":15,"column":28}},"1":{"start":{"line":16,"column":14},"end":{"line":16,"column":34}},"2":{"start":{"line":17,"column":13},"end":{"line":17,"column":32}},"3":{"start":{"line":18,"column":10},"end":{"line":18,"column":24}},"4":{"start":{"line":21,"column":26},"end":{"line":26,"column":5}},"5":{"start":{"line":27,"column":22},"end":{"line":27,"column":24}},"6":{"start":{"line":32,"column":4},"end":{"line":34,"column":5}},"7":{"start":{"line":33,"column":8},"end":{"line":33,"column":60}},"8":{"start":{"line":36,"column":4},"end":{"line":36,"column":50}},"9":{"start":{"line":38,"column":4},"end":{"line":38,"column":71}},"10":{"start":{"line":40,"column":4},"end":{"line":40,"column":126}},"11":{"start":{"line":42,"column":4},"end":{"line":42,"column":75}},"12":{"start":{"line":44,"column":4},"end":{"line":44,"column":28}},"13":{"start":{"line":48,"column":19},"end":{"line":48,"column":38}},"14":{"start":{"line":49,"column":4},"end":{"line":55,"column":5}},"15":{"start":{"line":50,"column":32},"end":{"line":50,"column":57}},"16":{"start":{"line":51,"column":8},"end":{"line":53,"column":9}},"17":{"start":{"line":52,"column":12},"end":{"line":52,"column":61}},"18":{"start":{"line":54,"column":8},"end":{"line":54,"column":51}},"19":{"start":{"line":57,"column":4},"end":{"line":57,"column":30}},"20":{"start":{"line":60,"column":0},"end":{"line":75,"column":2}},"21":{"start":{"line":62,"column":8},"end":{"line":62,"column":36}},"22":{"start":{"line":63,"column":8},"end":{"line":63,"column":33}},"23":{"start":{"line":64,"column":8},"end":{"line":64,"column":59}},"24":{"start":{"line":66,"column":8},"end":{"line":68,"column":9}},"25":{"start":{"line":67,"column":12},"end":{"line":67,"column":33}},"26":{"start":{"line":70,"column":8},"end":{"line":70,"column":62}},"27":{"start":{"line":71,"column":8},"end":{"line":71,"column":130}},"28":{"start":{"line":73,"column":8},"end":{"line":73,"column":23}}},"fnMap":{"0":{"name":"makeAuthHeader","decl":{"start":{"line":20,"column":9},"end":{"line":20,"column":23}},"loc":{"start":{"line":20,"column":100},"end":{"line":45,"column":1}},"line":20},"1":{"name":"makeURL","decl":{"start":{"line":47,"column":9},"end":{"line":47,"column":16}},"loc":{"start":{"line":47,"column":45},"end":{"line":58,"column":1}},"line":47},"2":{"name":"(anonymous_2)","decl":{"start":{"line":61,"column":18},"end":{"line":61,"column":19}},"loc":{"start":{"line":61,"column":109},"end":{"line":74,"column":5}},"line":61}},"branchMap":{"0":{"loc":{"start":{"line":49,"column":4},"end":{"line":55,"column":5}},"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":55,"column":5}},{"start":{"line":49,"column":4},"end":{"line":55,"column":5}}],"line":49},"1":{"loc":{"start":{"line":62,"column":18},"end":{"line":62,"column":35}},"type":"binary-expr","locations":[{"start":{"line":62,"column":18},"end":{"line":62,"column":25}},{"start":{"line":62,"column":29},"end":{"line":62,"column":35}}],"line":62},"2":{"loc":{"start":{"line":63,"column":15},"end":{"line":63,"column":32}},"type":"binary-expr","locations":[{"start":{"line":63,"column":15},"end":{"line":63,"column":19}},{"start":{"line":63,"column":23},"end":{"line":63,"column":32}}],"line":63},"3":{"loc":{"start":{"line":64,"column":20},"end":{"line":64,"column":58}},"type":"binary-expr","locations":[{"start":{"line":64,"column":20},"end":{"line":64,"column":29}},{"start":{"line":64,"column":33},"end":{"line":64,"column":58}}],"line":64},"4":{"loc":{"start":{"line":66,"column":8},"end":{"line":68,"column":9}},"type":"if","locations":[{"start":{"line":66,"column":8},"end":{"line":68,"column":9}},{"start":{"line":66,"column":8},"end":{"line":68,"column":9}}],"line":66}},"s":{"0":1,"1":1,"2":1,"3":1,"4":44,"5":44,"6":44,"7":176,"8":44,"9":44,"10":44,"11":44,"12":44,"13":44,"14":44,"15":1,"16":1,"17":2,"18":1,"19":44,"20":1,"21":44,"22":44,"23":44,"24":44,"25":9,"26":44,"27":44,"28":44},"f":{"0":44,"1":44,"2":44},"b":{"0":[1,43],"1":[44,12],"2":[44,32],"3":[44,32],"4":[9,35]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"cbb73404237ac08eead2f96a184b4fdad8855b39","contentHash":"2d06efe8d8dc336f1c5730b9dfc725bb986bed081c50afda59e28d592610f28e"},"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/helpers.js":{"path":"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/helpers.js","statementMap":{"0":{"start":{"line":15,"column":15},"end":{"line":15,"column":32}},"1":{"start":{"line":16,"column":13},"end":{"line":16,"column":32}},"2":{"start":{"line":17,"column":11},"end":{"line":17,"column":26}},"3":{"start":{"line":18,"column":9},"end":{"line":18,"column":22}},"4":{"start":{"line":21,"column":4},"end":{"line":21,"column":43}},"5":{"start":{"line":24,"column":0},"end":{"line":198,"column":2}},"6":{"start":{"line":31,"column":21},"end":{"line":31,"column":41}},"7":{"start":{"line":33,"column":8},"end":{"line":41,"column":20}},"8":{"start":{"line":45,"column":26},"end":{"line":45,"column":28}},"9":{"start":{"line":46,"column":27},"end":{"line":46,"column":45}},"10":{"start":{"line":47,"column":24},"end":{"line":47,"column":116}},"11":{"start":{"line":49,"column":8},"end":{"line":64,"column":9}},"12":{"start":{"line":50,"column":30},"end":{"line":50,"column":32}},"13":{"start":{"line":53,"column":12},"end":{"line":53,"column":82}},"14":{"start":{"line":55,"column":12},"end":{"line":57,"column":13}},"15":{"start":{"line":56,"column":16},"end":{"line":56,"column":103}},"16":{"start":{"line":60,"column":12},"end":{"line":60,"column":57}},"17":{"start":{"line":62,"column":12},"end":{"line":62,"column":39}},"18":{"start":{"line":63,"column":12},"end":{"line":63,"column":40}},"19":{"start":{"line":66,"column":8},"end":{"line":66,"column":56}},"20":{"start":{"line":67,"column":8},"end":{"line":67,"column":66}},"21":{"start":{"line":69,"column":8},"end":{"line":87,"column":9}},"22":{"start":{"line":71,"column":12},"end":{"line":71,"column":69}},"23":{"start":{"line":74,"column":12},"end":{"line":81,"column":13}},"24":{"start":{"line":75,"column":16},"end":{"line":75,"column":107}},"25":{"start":{"line":76,"column":16},"end":{"line":79,"column":70}},"26":{"start":{"line":77,"column":20},"end":{"line":77,"column":66}},"27":{"start":{"line":79,"column":20},"end":{"line":79,"column":70}},"28":{"start":{"line":80,"column":16},"end":{"line":80,"column":82}},"29":{"start":{"line":83,"column":12},"end":{"line":83,"column":56}},"30":{"start":{"line":85,"column":12},"end":{"line":85,"column":58}},"31":{"start":{"line":86,"column":12},"end":{"line":86,"column":67}},"32":{"start":{"line":89,"column":8},"end":{"line":89,"column":27}},"33":{"start":{"line":93,"column":26},"end":{"line":93,"column":46}},"34":{"start":{"line":94,"column":25},"end":{"line":102,"column":13}},"35":{"start":{"line":104,"column":30},"end":{"line":104,"column":62}},"36":{"start":{"line":106,"column":8},"end":{"line":106,"column":64}},"37":{"start":{"line":108,"column":8},"end":{"line":108,"column":29}},"38":{"start":{"line":114,"column":8},"end":{"line":118,"column":9}},"39":{"start":{"line":115,"column":12},"end":{"line":117,"column":13}},"40":{"start":{"line":116,"column":16},"end":{"line":116,"column":32}},"41":{"start":{"line":120,"column":8},"end":{"line":120,"column":17}},"42":{"start":{"line":124,"column":8},"end":{"line":126,"column":9}},"43":{"start":{"line":125,"column":12},"end":{"line":125,"column":57}},"44":{"start":{"line":128,"column":25},"end":{"line":128,"column":48}},"45":{"start":{"line":129,"column":8},"end":{"line":131,"column":9}},"46":{"start":{"line":130,"column":12},"end":{"line":130,"column":78}},"47":{"start":{"line":132,"column":8},"end":{"line":134,"column":9}},"48":{"start":{"line":133,"column":12},"end":{"line":133,"column":123}},"49":{"start":{"line":136,"column":8},"end":{"line":136,"column":46}},"50":{"start":{"line":136,"column":44},"end":{"line":136,"column":45}},"51":{"start":{"line":137,"column":8},"end":{"line":139,"column":9}},"52":{"start":{"line":138,"column":12},"end":{"line":138,"column":56}},"53":{"start":{"line":141,"column":8},"end":{"line":141,"column":23}},"54":{"start":{"line":145,"column":8},"end":{"line":147,"column":37}},"55":{"start":{"line":151,"column":23},"end":{"line":151,"column":63}},"56":{"start":{"line":153,"column":8},"end":{"line":153,"column":39}},"57":{"start":{"line":157,"column":24},"end":{"line":157,"column":56}},"58":{"start":{"line":159,"column":8},"end":{"line":159,"column":29}},"59":{"start":{"line":161,"column":8},"end":{"line":161,"column":40}},"60":{"start":{"line":170,"column":33},"end":{"line":170,"column":35}},"61":{"start":{"line":173,"column":8},"end":{"line":175,"column":9}},"62":{"start":{"line":174,"column":12},"end":{"line":174,"column":102}},"63":{"start":{"line":177,"column":8},"end":{"line":177,"column":43}},"64":{"start":{"line":181,"column":20},"end":{"line":181,"column":66}},"65":{"start":{"line":183,"column":8},"end":{"line":183,"column":50}},"66":{"start":{"line":185,"column":8},"end":{"line":185,"column":19}},"67":{"start":{"line":189,"column":8},"end":{"line":189,"column":126}},"68":{"start":{"line":193,"column":8},"end":{"line":195,"column":9}},"69":{"start":{"line":194,"column":12},"end":{"line":194,"column":62}},"70":{"start":{"line":196,"column":8},"end":{"line":196,"column":24}}},"fnMap":{"0":{"name":"twoDigitNumberPad","decl":{"start":{"line":20,"column":9},"end":{"line":20,"column":26}},"loc":{"start":{"line":20,"column":35},"end":{"line":22,"column":1}},"line":20},"1":{"name":"(anonymous_1)","decl":{"start":{"line":30,"column":21},"end":{"line":30,"column":22}},"loc":{"start":{"line":30,"column":33},"end":{"line":42,"column":5}},"line":30},"2":{"name":"(anonymous_2)","decl":{"start":{"line":44,"column":17},"end":{"line":44,"column":18}},"loc":{"start":{"line":44,"column":45},"end":{"line":90,"column":5}},"line":44},"3":{"name":"(anonymous_3)","decl":{"start":{"line":92,"column":16},"end":{"line":92,"column":17}},"loc":{"start":{"line":92,"column":56},"end":{"line":109,"column":5}},"line":92},"4":{"name":"(anonymous_4)","decl":{"start":{"line":111,"column":13},"end":{"line":111,"column":14}},"loc":{"start":{"line":111,"column":29},"end":{"line":121,"column":5}},"line":111},"5":{"name":"(anonymous_5)","decl":{"start":{"line":123,"column":19},"end":{"line":123,"column":20}},"loc":{"start":{"line":123,"column":38},"end":{"line":142,"column":5}},"line":123},"6":{"name":"(anonymous_6)","decl":{"start":{"line":136,"column":39},"end":{"line":136,"column":40}},"loc":{"start":{"line":136,"column":44},"end":{"line":136,"column":45}},"line":136},"7":{"name":"(anonymous_7)","decl":{"start":{"line":144,"column":16},"end":{"line":144,"column":17}},"loc":{"start":{"line":144,"column":38},"end":{"line":148,"column":5}},"line":144},"8":{"name":"(anonymous_8)","decl":{"start":{"line":150,"column":18},"end":{"line":150,"column":19}},"loc":{"start":{"line":150,"column":34},"end":{"line":154,"column":5}},"line":150},"9":{"name":"(anonymous_9)","decl":{"start":{"line":156,"column":22},"end":{"line":156,"column":23}},"loc":{"start":{"line":156,"column":43},"end":{"line":162,"column":5}},"line":156},"10":{"name":"(anonymous_10)","decl":{"start":{"line":169,"column":25},"end":{"line":169,"column":26}},"loc":{"start":{"line":169,"column":44},"end":{"line":178,"column":5}},"line":169},"11":{"name":"(anonymous_11)","decl":{"start":{"line":180,"column":16},"end":{"line":180,"column":17}},"loc":{"start":{"line":180,"column":51},"end":{"line":186,"column":5}},"line":180},"12":{"name":"(anonymous_12)","decl":{"start":{"line":188,"column":17},"end":{"line":188,"column":18}},"loc":{"start":{"line":188,"column":82},"end":{"line":190,"column":5}},"line":188},"13":{"name":"(anonymous_13)","decl":{"start":{"line":192,"column":17},"end":{"line":192,"column":18}},"loc":{"start":{"line":192,"column":37},"end":{"line":197,"column":5}},"line":192}},"branchMap":{"0":{"loc":{"start":{"line":46,"column":27},"end":{"line":46,"column":45}},"type":"binary-expr","locations":[{"start":{"line":46,"column":27},"end":{"line":46,"column":39}},{"start":{"line":46,"column":43},"end":{"line":46,"column":45}}],"line":46},"1":{"loc":{"start":{"line":47,"column":24},"end":{"line":47,"column":116}},"type":"binary-expr","locations":[{"start":{"line":47,"column":24},"end":{"line":47,"column":58}},{"start":{"line":47,"column":62},"end":{"line":47,"column":116}}],"line":47},"2":{"loc":{"start":{"line":49,"column":8},"end":{"line":64,"column":9}},"type":"if","locations":[{"start":{"line":49,"column":8},"end":{"line":64,"column":9}},{"start":{"line":49,"column":8},"end":{"line":64,"column":9}}],"line":49},"3":{"loc":{"start":{"line":49,"column":12},"end":{"line":49,"column":58}},"type":"binary-expr","locations":[{"start":{"line":49,"column":12},"end":{"line":49,"column":44}},{"start":{"line":49,"column":48},"end":{"line":49,"column":58}}],"line":49},"4":{"loc":{"start":{"line":69,"column":8},"end":{"line":87,"column":9}},"type":"if","locations":[{"start":{"line":69,"column":8},"end":{"line":87,"column":9}},{"start":{"line":69,"column":8},"end":{"line":87,"column":9}}],"line":69},"5":{"loc":{"start":{"line":69,"column":12},"end":{"line":69,"column":64}},"type":"binary-expr","locations":[{"start":{"line":69,"column":12},"end":{"line":69,"column":37}},{"start":{"line":69,"column":41},"end":{"line":69,"column":64}}],"line":69},"6":{"loc":{"start":{"line":74,"column":12},"end":{"line":81,"column":13}},"type":"if","locations":[{"start":{"line":74,"column":12},"end":{"line":81,"column":13}},{"start":{"line":74,"column":12},"end":{"line":81,"column":13}}],"line":74},"7":{"loc":{"start":{"line":76,"column":16},"end":{"line":79,"column":70}},"type":"if","locations":[{"start":{"line":76,"column":16},"end":{"line":79,"column":70}},{"start":{"line":76,"column":16},"end":{"line":79,"column":70}}],"line":76},"8":{"loc":{"start":{"line":115,"column":12},"end":{"line":117,"column":13}},"type":"if","locations":[{"start":{"line":115,"column":12},"end":{"line":117,"column":13}},{"start":{"line":115,"column":12},"end":{"line":117,"column":13}}],"line":115},"9":{"loc":{"start":{"line":124,"column":8},"end":{"line":126,"column":9}},"type":"if","locations":[{"start":{"line":124,"column":8},"end":{"line":126,"column":9}},{"start":{"line":124,"column":8},"end":{"line":126,"column":9}}],"line":124},"10":{"loc":{"start":{"line":129,"column":8},"end":{"line":131,"column":9}},"type":"if","locations":[{"start":{"line":129,"column":8},"end":{"line":131,"column":9}},{"start":{"line":129,"column":8},"end":{"line":131,"column":9}}],"line":129},"11":{"loc":{"start":{"line":129,"column":12},"end":{"line":129,"column":74}},"type":"binary-expr","locations":[{"start":{"line":129,"column":12},"end":{"line":129,"column":37}},{"start":{"line":129,"column":41},"end":{"line":129,"column":74}}],"line":129},"12":{"loc":{"start":{"line":132,"column":8},"end":{"line":134,"column":9}},"type":"if","locations":[{"start":{"line":132,"column":8},"end":{"line":134,"column":9}},{"start":{"line":132,"column":8},"end":{"line":134,"column":9}}],"line":132},"13":{"loc":{"start":{"line":132,"column":12},"end":{"line":132,"column":90}},"type":"binary-expr","locations":[{"start":{"line":132,"column":12},"end":{"line":132,"column":45}},{"start":{"line":132,"column":49},"end":{"line":132,"column":90}}],"line":132},"14":{"loc":{"start":{"line":137,"column":8},"end":{"line":139,"column":9}},"type":"if","locations":[{"start":{"line":137,"column":8},"end":{"line":139,"column":9}},{"start":{"line":137,"column":8},"end":{"line":139,"column":9}}],"line":137},"15":{"loc":{"start":{"line":193,"column":8},"end":{"line":195,"column":9}},"type":"if","locations":[{"start":{"line":193,"column":8},"end":{"line":195,"column":9}},{"start":{"line":193,"column":8},"end":{"line":195,"column":9}}],"line":193}},"s":{"0":1,"1":1,"2":1,"3":1,"4":160,"5":1,"6":32,"7":32,"8":48,"9":48,"10":48,"11":48,"12":1,"13":1,"14":1,"15":200095,"16":1,"17":1,"18":1,"19":48,"20":48,"21":48,"22":11,"23":11,"24":1,"25":1,"26":0,"27":1,"28":1,"29":11,"30":11,"31":11,"32":48,"33":46,"34":46,"35":46,"36":46,"37":46,"38":32,"39":192,"40":144,"41":32,"42":32,"43":22,"44":32,"45":32,"46":3,"47":32,"48":3,"49":32,"50":38,"51":32,"52":10,"53":32,"54":8,"55":12,"56":12,"57":90,"58":90,"59":90,"60":47,"61":47,"62":3,"63":47,"64":45,"65":45,"66":45,"67":44,"68":62,"69":1,"70":61},"f":{"0":160,"1":32,"2":48,"3":46,"4":32,"5":32,"6":38,"7":8,"8":12,"9":90,"10":47,"11":45,"12":44,"13":62},"b":{"0":[48,28],"1":[48,1],"2":[1,47],"3":[48,1],"4":[11,37],"5":[48,13],"6":[1,10],"7":[0,1],"8":[144,48],"9":[22,10],"10":[3,29],"11":[32,3],"12":[3,29],"13":[32,3],"14":[10,22],"15":[1,61]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"66a7ddd94d4e8cc770a8ba8232f875db6158f6ae","contentHash":"1584a04b582932531c3fe34f061ed8ebb3da6173c2ef70e6d686a35195cdf028"},"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/logger.js":{"path":"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/logger.js","statementMap":{"0":{"start":{"line":15,"column":15},"end":{"line":15,"column":32}},"1":{"start":{"line":16,"column":13},"end":{"line":16,"column":31}},"2":{"start":{"line":18,"column":0},"end":{"line":20,"column":1}},"3":{"start":{"line":19,"column":2},"end":{"line":19,"column":37}},"4":{"start":{"line":22,"column":0},"end":{"line":24,"column":1}},"5":{"start":{"line":23,"column":2},"end":{"line":23,"column":35}},"6":{"start":{"line":26,"column":0},"end":{"line":26,"column":24}}},"fnMap":{},"branchMap":{"0":{"loc":{"start":{"line":18,"column":0},"end":{"line":20,"column":1}},"type":"if","locations":[{"start":{"line":18,"column":0},"end":{"line":20,"column":1}},{"start":{"line":18,"column":0},"end":{"line":20,"column":1}}],"line":18},"1":{"loc":{"start":{"line":22,"column":0},"end":{"line":24,"column":1}},"type":"if","locations":[{"start":{"line":22,"column":0},"end":{"line":24,"column":1}},{"start":{"line":22,"column":0},"end":{"line":24,"column":1}}],"line":22}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1},"f":{},"b":{"0":[1,0],"1":[1,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"30003de3d0b980b9021282022d88eaa85c8bbc21","contentHash":"a64583eb8cd9fb94e3c083388d95d7b2169ef0033554fa96bf27c485dadc541b"},"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/edgerc.js":{"path":"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/edgerc.js","statementMap":{"0":{"start":{"line":15,"column":11},"end":{"line":15,"column":24}},"1":{"start":{"line":16,"column":13},"end":{"line":16,"column":32}},"2":{"start":{"line":17,"column":14},"end":{"line":17,"column":34}},"3":{"start":{"line":20,"column":18},"end":{"line":20,"column":31}},"4":{"start":{"line":21,"column":18},"end":{"line":21,"column":20}},"5":{"start":{"line":23,"column":4},"end":{"line":38,"column":7}},"6":{"start":{"line":24,"column":26},"end":{"line":24,"column":43}},"7":{"start":{"line":25,"column":22},"end":{"line":25,"column":72}},"8":{"start":{"line":27,"column":8},"end":{"line":36,"column":9}},"9":{"start":{"line":29,"column":12},"end":{"line":35,"column":15}},"10":{"start":{"line":30,"column":32},"end":{"line":30,"column":58}},"11":{"start":{"line":31,"column":16},"end":{"line":33,"column":17}},"12":{"start":{"line":32,"column":20},"end":{"line":32,"column":39}},"13":{"start":{"line":34,"column":16},"end":{"line":34,"column":31}},"14":{"start":{"line":37,"column":8},"end":{"line":37,"column":23}},"15":{"start":{"line":39,"column":4},"end":{"line":39,"column":19}},"16":{"start":{"line":44,"column":4},"end":{"line":56,"column":5}},"17":{"start":{"line":46,"column":27},"end":{"line":46,"column":29}},"18":{"start":{"line":48,"column":12},"end":{"line":48,"column":81}},"19":{"start":{"line":49,"column":8},"end":{"line":53,"column":11}},"20":{"start":{"line":50,"column":12},"end":{"line":52,"column":13}},"21":{"start":{"line":51,"column":16},"end":{"line":51,"column":54}},"22":{"start":{"line":54,"column":8},"end":{"line":54,"column":75}},"23":{"start":{"line":55,"column":8},"end":{"line":55,"column":18}},"24":{"start":{"line":58,"column":4},"end":{"line":60,"column":5}},"25":{"start":{"line":59,"column":8},"end":{"line":59,"column":22}},"26":{"start":{"line":62,"column":4},"end":{"line":62,"column":43}},"27":{"start":{"line":64,"column":4},"end":{"line":64,"column":18}},"28":{"start":{"line":68,"column":19},"end":{"line":68,"column":21}},"29":{"start":{"line":75,"column":4},"end":{"line":98,"column":7}},"30":{"start":{"line":76,"column":8},"end":{"line":76,"column":31}},"31":{"start":{"line":77,"column":8},"end":{"line":77,"column":46}},"32":{"start":{"line":78,"column":8},"end":{"line":78,"column":36}},"33":{"start":{"line":79,"column":8},"end":{"line":97,"column":9}},"34":{"start":{"line":80,"column":12},"end":{"line":80,"column":42}},"35":{"start":{"line":81,"column":12},"end":{"line":83,"column":13}},"36":{"start":{"line":82,"column":16},"end":{"line":82,"column":43}},"37":{"start":{"line":84,"column":12},"end":{"line":84,"column":46}},"38":{"start":{"line":86,"column":12},"end":{"line":86,"column":86}},"39":{"start":{"line":87,"column":12},"end":{"line":90,"column":13}},"40":{"start":{"line":89,"column":16},"end":{"line":89,"column":70}},"41":{"start":{"line":92,"column":12},"end":{"line":94,"column":13}},"42":{"start":{"line":93,"column":16},"end":{"line":93,"column":76}},"43":{"start":{"line":96,"column":12},"end":{"line":96,"column":45}},"44":{"start":{"line":100,"column":4},"end":{"line":100,"column":35}},"45":{"start":{"line":104,"column":25},"end":{"line":104,"column":82}},"46":{"start":{"line":105,"column":17},"end":{"line":105,"column":104}},"47":{"start":{"line":106,"column":20},"end":{"line":106,"column":22}},"48":{"start":{"line":109,"column":4},"end":{"line":116,"column":5}},"49":{"start":{"line":110,"column":24},"end":{"line":110,"column":36}},"50":{"start":{"line":111,"column":8},"end":{"line":114,"column":9}},"51":{"start":{"line":112,"column":12},"end":{"line":112,"column":69}},"52":{"start":{"line":113,"column":12},"end":{"line":113,"column":21}},"53":{"start":{"line":115,"column":8},"end":{"line":115,"column":65}},"54":{"start":{"line":117,"column":4},"end":{"line":119,"column":5}},"55":{"start":{"line":118,"column":8},"end":{"line":118,"column":18}},"56":{"start":{"line":120,"column":4},"end":{"line":120,"column":66}},"57":{"start":{"line":121,"column":4},"end":{"line":121,"column":38}},"58":{"start":{"line":124,"column":0},"end":{"line":142,"column":2}},"59":{"start":{"line":125,"column":24},"end":{"line":125,"column":41}},"60":{"start":{"line":126,"column":18},"end":{"line":126,"column":38}},"61":{"start":{"line":127,"column":4},"end":{"line":129,"column":5}},"62":{"start":{"line":128,"column":8},"end":{"line":128,"column":23}},"63":{"start":{"line":130,"column":4},"end":{"line":132,"column":5}},"64":{"start":{"line":131,"column":8},"end":{"line":131,"column":123}},"65":{"start":{"line":133,"column":4},"end":{"line":133,"column":37}},"66":{"start":{"line":134,"column":19},"end":{"line":134,"column":63}},"67":{"start":{"line":135,"column":19},"end":{"line":135,"column":50}},"68":{"start":{"line":137,"column":4},"end":{"line":139,"column":5}},"69":{"start":{"line":138,"column":8},"end":{"line":138,"column":119}},"70":{"start":{"line":141,"column":4},"end":{"line":141,"column":30}}},"fnMap":{"0":{"name":"getSection","decl":{"start":{"line":19,"column":9},"end":{"line":19,"column":19}},"loc":{"start":{"line":19,"column":40},"end":{"line":40,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":23,"column":15},"end":{"line":23,"column":16}},"loc":{"start":{"line":23,"column":34},"end":{"line":38,"column":5}},"line":23},"2":{"name":"(anonymous_2)","decl":{"start":{"line":29,"column":50},"end":{"line":29,"column":51}},"loc":{"start":{"line":29,"column":66},"end":{"line":35,"column":13}},"line":29},"3":{"name":"validatedConfig","decl":{"start":{"line":42,"column":9},"end":{"line":42,"column":24}},"loc":{"start":{"line":42,"column":33},"end":{"line":65,"column":1}},"line":42},"4":{"name":"(anonymous_4)","decl":{"start":{"line":49,"column":23},"end":{"line":49,"column":24}},"loc":{"start":{"line":49,"column":40},"end":{"line":53,"column":9}},"line":49},"5":{"name":"buildObj","decl":{"start":{"line":67,"column":9},"end":{"line":67,"column":17}},"loc":{"start":{"line":67,"column":27},"end":{"line":101,"column":1}},"line":67},"6":{"name":"(anonymous_6)","decl":{"start":{"line":75,"column":20},"end":{"line":75,"column":21}},"loc":{"start":{"line":75,"column":38},"end":{"line":98,"column":5}},"line":75},"7":{"name":"readEnv","decl":{"start":{"line":103,"column":9},"end":{"line":103,"column":16}},"loc":{"start":{"line":103,"column":26},"end":{"line":122,"column":1}},"line":103},"8":{"name":"(anonymous_8)","decl":{"start":{"line":124,"column":17},"end":{"line":124,"column":18}},"loc":{"start":{"line":124,"column":39},"end":{"line":142,"column":1}},"line":124}},"branchMap":{"0":{"loc":{"start":{"line":25,"column":22},"end":{"line":25,"column":72}},"type":"binary-expr","locations":[{"start":{"line":25,"column":22},"end":{"line":25,"column":40}},{"start":{"line":25,"column":44},"end":{"line":25,"column":72}}],"line":25},"1":{"loc":{"start":{"line":27,"column":8},"end":{"line":36,"column":9}},"type":"if","locations":[{"start":{"line":27,"column":8},"end":{"line":36,"column":9}},{"start":{"line":27,"column":8},"end":{"line":36,"column":9}}],"line":27},"2":{"loc":{"start":{"line":31,"column":16},"end":{"line":33,"column":17}},"type":"if","locations":[{"start":{"line":31,"column":16},"end":{"line":33,"column":17}},{"start":{"line":31,"column":16},"end":{"line":33,"column":17}}],"line":31},"3":{"loc":{"start":{"line":44,"column":4},"end":{"line":56,"column":5}},"type":"if","locations":[{"start":{"line":44,"column":4},"end":{"line":56,"column":5}},{"start":{"line":44,"column":4},"end":{"line":56,"column":5}}],"line":44},"4":{"loc":{"start":{"line":44,"column":10},"end":{"line":45,"column":51}},"type":"binary-expr","locations":[{"start":{"line":44,"column":10},"end":{"line":44,"column":21}},{"start":{"line":44,"column":25},"end":{"line":44,"column":44}},{"start":{"line":45,"column":8},"end":{"line":45,"column":28}},{"start":{"line":45,"column":32},"end":{"line":45,"column":51}}],"line":44},"5":{"loc":{"start":{"line":50,"column":12},"end":{"line":52,"column":13}},"type":"if","locations":[{"start":{"line":50,"column":12},"end":{"line":52,"column":13}},{"start":{"line":50,"column":12},"end":{"line":52,"column":13}}],"line":50},"6":{"loc":{"start":{"line":58,"column":4},"end":{"line":60,"column":5}},"type":"if","locations":[{"start":{"line":58,"column":4},"end":{"line":60,"column":5}},{"start":{"line":58,"column":4},"end":{"line":60,"column":5}}],"line":58},"7":{"loc":{"start":{"line":79,"column":8},"end":{"line":97,"column":9}},"type":"if","locations":[{"start":{"line":79,"column":8},"end":{"line":97,"column":9}},{"start":{"line":79,"column":8},"end":{"line":97,"column":9}}],"line":79},"8":{"loc":{"start":{"line":79,"column":12},"end":{"line":79,"column":36}},"type":"binary-expr","locations":[{"start":{"line":79,"column":12},"end":{"line":79,"column":22}},{"start":{"line":79,"column":26},"end":{"line":79,"column":36}}],"line":79},"9":{"loc":{"start":{"line":81,"column":12},"end":{"line":83,"column":13}},"type":"if","locations":[{"start":{"line":81,"column":12},"end":{"line":83,"column":13}},{"start":{"line":81,"column":12},"end":{"line":83,"column":13}}],"line":81},"10":{"loc":{"start":{"line":87,"column":12},"end":{"line":90,"column":13}},"type":"if","locations":[{"start":{"line":87,"column":12},"end":{"line":90,"column":13}},{"start":{"line":87,"column":12},"end":{"line":90,"column":13}}],"line":87},"11":{"loc":{"start":{"line":92,"column":12},"end":{"line":94,"column":13}},"type":"if","locations":[{"start":{"line":92,"column":12},"end":{"line":94,"column":13}},{"start":{"line":92,"column":12},"end":{"line":94,"column":13}}],"line":92},"12":{"loc":{"start":{"line":105,"column":17},"end":{"line":105,"column":104}},"type":"cond-expr","locations":[{"start":{"line":105,"column":53},"end":{"line":105,"column":62}},{"start":{"line":105,"column":65},"end":{"line":105,"column":104}}],"line":105},"13":{"loc":{"start":{"line":105,"column":17},"end":{"line":105,"column":50}},"type":"binary-expr","locations":[{"start":{"line":105,"column":17},"end":{"line":105,"column":25}},{"start":{"line":105,"column":29},"end":{"line":105,"column":50}}],"line":105},"14":{"loc":{"start":{"line":111,"column":8},"end":{"line":114,"column":9}},"type":"if","locations":[{"start":{"line":111,"column":8},"end":{"line":114,"column":9}},{"start":{"line":111,"column":8},"end":{"line":114,"column":9}}],"line":111},"15":{"loc":{"start":{"line":117,"column":4},"end":{"line":119,"column":5}},"type":"if","locations":[{"start":{"line":117,"column":4},"end":{"line":119,"column":5}},{"start":{"line":117,"column":4},"end":{"line":119,"column":5}}],"line":117},"16":{"loc":{"start":{"line":125,"column":24},"end":{"line":125,"column":41}},"type":"binary-expr","locations":[{"start":{"line":125,"column":24},"end":{"line":125,"column":28}},{"start":{"line":125,"column":32},"end":{"line":125,"column":41}}],"line":125},"17":{"loc":{"start":{"line":127,"column":4},"end":{"line":129,"column":5}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":129,"column":5}},{"start":{"line":127,"column":4},"end":{"line":129,"column":5}}],"line":127},"18":{"loc":{"start":{"line":130,"column":4},"end":{"line":132,"column":5}},"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":132,"column":5}},{"start":{"line":130,"column":4},"end":{"line":132,"column":5}}],"line":130},"19":{"loc":{"start":{"line":137,"column":4},"end":{"line":139,"column":5}},"type":"if","locations":[{"start":{"line":137,"column":4},"end":{"line":139,"column":5}},{"start":{"line":137,"column":4},"end":{"line":139,"column":5}}],"line":137}},"s":{"0":1,"1":1,"2":1,"3":60,"4":60,"5":60,"6":798,"7":798,"8":798,"9":59,"10":415,"11":415,"12":359,"13":415,"14":798,"15":60,"16":63,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":63,"25":5,"26":58,"27":58,"28":59,"29":59,"30":359,"31":359,"32":359,"33":359,"34":293,"35":293,"36":49,"37":293,"38":293,"39":293,"40":269,"41":293,"42":0,"43":293,"44":59,"45":65,"46":65,"47":65,"48":65,"49":260,"50":260,"51":244,"52":244,"53":16,"54":65,"55":61,"56":4,"57":4,"58":1,"59":65,"60":65,"61":65,"62":4,"63":61,"64":1,"65":60,"66":60,"67":60,"68":60,"69":1,"70":59},"f":{"0":60,"1":798,"2":415,"3":63,"4":0,"5":59,"6":359,"7":65,"8":65},"b":{"0":[798,165],"1":[59,739],"2":[359,56],"3":[0,63],"4":[63,63,63,63],"5":[0,0],"6":[5,58],"7":[293,66],"8":[359,293],"9":[49,244],"10":[269,24],"11":[0,293],"12":[13,52],"13":[65,65],"14":[244,16],"15":[61,4],"16":[65,13],"17":[4,61],"18":[1,60],"19":[1,59]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2275064c58e6fc4be64df3d740cf3e74d251a342","contentHash":"9ffd38a09dd7dab902eb23a794f04aee7092856ceb23b11228d3b2629e7806eb"},"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/api.js":{"path":"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/api.js","statementMap":{"0":{"start":{"line":15,"column":14},"end":{"line":15,"column":30}},"1":{"start":{"line":16,"column":11},"end":{"line":16,"column":28}},"2":{"start":{"line":17,"column":13},"end":{"line":17,"column":32}},"3":{"start":{"line":18,"column":14},"end":{"line":18,"column":34}},"4":{"start":{"line":19,"column":13},"end":{"line":19,"column":32}},"5":{"start":{"line":21,"column":17},"end":{"line":39,"column":1}},"6":{"start":{"line":23,"column":4},"end":{"line":28,"column":5}},"7":{"start":{"line":24,"column":25},"end":{"line":24,"column":37}},"8":{"start":{"line":25,"column":8},"end":{"line":25,"column":43}},"9":{"start":{"line":27,"column":8},"end":{"line":27,"column":94}},"10":{"start":{"line":29,"column":4},"end":{"line":38,"column":5}},"11":{"start":{"line":30,"column":8},"end":{"line":33,"column":11}},"12":{"start":{"line":31,"column":12},"end":{"line":31,"column":53}},"13":{"start":{"line":32,"column":12},"end":{"line":32,"column":27}},"14":{"start":{"line":34,"column":8},"end":{"line":37,"column":11}},"15":{"start":{"line":35,"column":12},"end":{"line":35,"column":47}},"16":{"start":{"line":36,"column":12},"end":{"line":36,"column":28}},"17":{"start":{"line":50,"column":0},"end":{"line":86,"column":2}},"18":{"start":{"line":51,"column":4},"end":{"line":58,"column":7}},"19":{"start":{"line":60,"column":4},"end":{"line":60,"column":53}},"20":{"start":{"line":62,"column":20},"end":{"line":63,"column":118}},"21":{"start":{"line":66,"column":4},"end":{"line":70,"column":5}},"22":{"start":{"line":67,"column":8},"end":{"line":69,"column":9}},"23":{"start":{"line":68,"column":12},"end":{"line":68,"column":48}},"24":{"start":{"line":72,"column":4},"end":{"line":72,"column":24}},"25":{"start":{"line":74,"column":4},"end":{"line":81,"column":6}},"26":{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},"27":{"start":{"line":83,"column":8},"end":{"line":83,"column":53}},"28":{"start":{"line":85,"column":4},"end":{"line":85,"column":16}},"29":{"start":{"line":94,"column":0},"end":{"line":107,"column":2}},"30":{"start":{"line":95,"column":4},"end":{"line":104,"column":7}},"31":{"start":{"line":96,"column":8},"end":{"line":96,"column":64}},"32":{"start":{"line":99,"column":8},"end":{"line":102,"column":9}},"33":{"start":{"line":100,"column":12},"end":{"line":100,"column":59}},"34":{"start":{"line":101,"column":12},"end":{"line":101,"column":19}},"35":{"start":{"line":103,"column":8},"end":{"line":103,"column":24}},"36":{"start":{"line":106,"column":4},"end":{"line":106,"column":16}},"37":{"start":{"line":109,"column":0},"end":{"line":118,"column":2}},"38":{"start":{"line":110,"column":22},"end":{"line":110,"column":55}},"39":{"start":{"line":112,"column":4},"end":{"line":112,"column":46}},"40":{"start":{"line":113,"column":4},"end":{"line":113,"column":33}},"41":{"start":{"line":114,"column":4},"end":{"line":114,"column":62}},"42":{"start":{"line":116,"column":4},"end":{"line":116,"column":28}},"43":{"start":{"line":117,"column":4},"end":{"line":117,"column":24}},"44":{"start":{"line":129,"column":0},"end":{"line":141,"column":2}},"45":{"start":{"line":130,"column":4},"end":{"line":132,"column":5}},"46":{"start":{"line":131,"column":8},"end":{"line":131,"column":59}},"47":{"start":{"line":134,"column":4},"end":{"line":140,"column":6}},"48":{"start":{"line":144,"column":21},"end":{"line":146,"column":5}},"49":{"start":{"line":147,"column":16},"end":{"line":147,"column":20}},"50":{"start":{"line":149,"column":4},"end":{"line":154,"column":7}},"51":{"start":{"line":150,"column":8},"end":{"line":153,"column":9}},"52":{"start":{"line":151,"column":12},"end":{"line":151,"column":46}},"53":{"start":{"line":152,"column":12},"end":{"line":152,"column":26}},"54":{"start":{"line":156,"column":4},"end":{"line":156,"column":17}},"55":{"start":{"line":165,"column":0},"end":{"line":167,"column":2}},"56":{"start":{"line":166,"column":4},"end":{"line":166,"column":48}},"57":{"start":{"line":169,"column":0},"end":{"line":169,"column":26}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":21,"column":17},"end":{"line":21,"column":18}},"loc":{"start":{"line":21,"column":93},"end":{"line":39,"column":1}},"line":21},"1":{"name":"(anonymous_1)","decl":{"start":{"line":30,"column":39},"end":{"line":30,"column":40}},"loc":{"start":{"line":30,"column":50},"end":{"line":33,"column":9}},"line":30},"2":{"name":"(anonymous_2)","decl":{"start":{"line":34,"column":40},"end":{"line":34,"column":41}},"loc":{"start":{"line":34,"column":52},"end":{"line":37,"column":9}},"line":34},"3":{"name":"(anonymous_3)","decl":{"start":{"line":50,"column":26},"end":{"line":50,"column":27}},"loc":{"start":{"line":50,"column":41},"end":{"line":86,"column":1}},"line":50},"4":{"name":"(anonymous_4)","decl":{"start":{"line":94,"column":26},"end":{"line":94,"column":27}},"loc":{"start":{"line":94,"column":46},"end":{"line":107,"column":1}},"line":94},"5":{"name":"(anonymous_5)","decl":{"start":{"line":95,"column":29},"end":{"line":95,"column":30}},"loc":{"start":{"line":95,"column":41},"end":{"line":97,"column":5}},"line":95},"6":{"name":"(anonymous_6)","decl":{"start":{"line":97,"column":13},"end":{"line":97,"column":14}},"loc":{"start":{"line":97,"column":22},"end":{"line":104,"column":5}},"line":97},"7":{"name":"(anonymous_7)","decl":{"start":{"line":109,"column":37},"end":{"line":109,"column":38}},"loc":{"start":{"line":109,"column":63},"end":{"line":118,"column":1}},"line":109},"8":{"name":"(anonymous_8)","decl":{"start":{"line":129,"column":43},"end":{"line":129,"column":44}},"loc":{"start":{"line":129,"column":112},"end":{"line":141,"column":1}},"line":129},"9":{"name":"validatedArgs","decl":{"start":{"line":143,"column":9},"end":{"line":143,"column":22}},"loc":{"start":{"line":143,"column":29},"end":{"line":157,"column":1}},"line":143},"10":{"name":"(anonymous_10)","decl":{"start":{"line":149,"column":21},"end":{"line":149,"column":22}},"loc":{"start":{"line":149,"column":39},"end":{"line":154,"column":5}},"line":149},"11":{"name":"(anonymous_11)","decl":{"start":{"line":165,"column":39},"end":{"line":165,"column":40}},"loc":{"start":{"line":165,"column":54},"end":{"line":167,"column":1}},"line":165}},"branchMap":{"0":{"loc":{"start":{"line":23,"column":4},"end":{"line":28,"column":5}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":28,"column":5}},{"start":{"line":23,"column":4},"end":{"line":28,"column":5}}],"line":23},"1":{"loc":{"start":{"line":29,"column":4},"end":{"line":38,"column":5}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":38,"column":5}},{"start":{"line":29,"column":4},"end":{"line":38,"column":5}}],"line":29},"2":{"loc":{"start":{"line":29,"column":8},"end":{"line":29,"column":99}},"type":"binary-expr","locations":[{"start":{"line":29,"column":8},"end":{"line":29,"column":30}},{"start":{"line":29,"column":34},"end":{"line":29,"column":39}},{"start":{"line":29,"column":44},"end":{"line":29,"column":76}},{"start":{"line":29,"column":80},"end":{"line":29,"column":98}}],"line":29},"3":{"loc":{"start":{"line":62,"column":20},"end":{"line":63,"column":118}},"type":"binary-expr","locations":[{"start":{"line":62,"column":20},"end":{"line":62,"column":50}},{"start":{"line":63,"column":9},"end":{"line":63,"column":59}},{"start":{"line":63,"column":63},"end":{"line":63,"column":117}}],"line":62},"4":{"loc":{"start":{"line":66,"column":4},"end":{"line":70,"column":5}},"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":70,"column":5}},{"start":{"line":66,"column":4},"end":{"line":70,"column":5}}],"line":66},"5":{"loc":{"start":{"line":67,"column":8},"end":{"line":69,"column":9}},"type":"if","locations":[{"start":{"line":67,"column":8},"end":{"line":69,"column":9}},{"start":{"line":67,"column":8},"end":{"line":69,"column":9}}],"line":67},"6":{"loc":{"start":{"line":67,"column":12},"end":{"line":67,"column":55}},"type":"binary-expr","locations":[{"start":{"line":67,"column":12},"end":{"line":67,"column":41}},{"start":{"line":67,"column":45},"end":{"line":67,"column":55}}],"line":67},"7":{"loc":{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},"type":"if","locations":[{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},{"start":{"line":82,"column":4},"end":{"line":84,"column":5}}],"line":82},"8":{"loc":{"start":{"line":82,"column":8},"end":{"line":82,"column":104}},"type":"binary-expr","locations":[{"start":{"line":82,"column":8},"end":{"line":82,"column":52}},{"start":{"line":82,"column":56},"end":{"line":82,"column":104}}],"line":82},"9":{"loc":{"start":{"line":99,"column":8},"end":{"line":102,"column":9}},"type":"if","locations":[{"start":{"line":99,"column":8},"end":{"line":102,"column":9}},{"start":{"line":99,"column":8},"end":{"line":102,"column":9}}],"line":99},"10":{"loc":{"start":{"line":99,"column":12},"end":{"line":99,"column":71}},"type":"binary-expr","locations":[{"start":{"line":99,"column":12},"end":{"line":99,"column":26}},{"start":{"line":99,"column":30},"end":{"line":99,"column":71}}],"line":99},"11":{"loc":{"start":{"line":130,"column":4},"end":{"line":132,"column":5}},"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":132,"column":5}},{"start":{"line":130,"column":4},"end":{"line":132,"column":5}}],"line":130},"12":{"loc":{"start":{"line":138,"column":14},"end":{"line":138,"column":70}},"type":"cond-expr","locations":[{"start":{"line":138,"column":46},"end":{"line":138,"column":50}},{"start":{"line":138,"column":53},"end":{"line":138,"column":70}}],"line":138},"13":{"loc":{"start":{"line":139,"column":18},"end":{"line":139,"column":36}},"type":"binary-expr","locations":[{"start":{"line":139,"column":18},"end":{"line":139,"column":26}},{"start":{"line":139,"column":30},"end":{"line":139,"column":36}}],"line":139},"14":{"loc":{"start":{"line":150,"column":8},"end":{"line":153,"column":9}},"type":"if","locations":[{"start":{"line":150,"column":8},"end":{"line":153,"column":9}},{"start":{"line":150,"column":8},"end":{"line":153,"column":9}}],"line":150}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":115,"7":49,"8":49,"9":66,"10":113,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":1,"18":32,"19":32,"20":32,"21":32,"22":14,"23":6,"24":32,"25":32,"26":32,"27":8,"28":32,"29":1,"30":7,"31":3,"32":4,"33":2,"34":2,"35":2,"36":7,"37":1,"38":2,"39":2,"40":2,"41":2,"42":2,"43":2,"44":1,"45":66,"46":1,"47":65,"48":66,"49":66,"50":66,"51":264,"52":4,"53":4,"54":66,"55":1,"56":49,"57":1},"f":{"0":115,"1":0,"2":0,"3":32,"4":7,"5":3,"6":4,"7":2,"8":66,"9":66,"10":264,"11":49},"b":{"0":[49,66],"1":[0,113],"2":[113,113,113,48],"3":[32,0,0],"4":[14,18],"5":[6,8],"6":[14,6],"7":[8,24],"8":[32,28],"9":[2,2],"10":[4,2],"11":[1,65],"12":[1,64],"13":[65,1],"14":[4,260]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"21c95c59b637c954051c8d1a87ddffde65e80b1c","contentHash":"66e6e4f2800cb6bf1c3d02a2daa9a2e3e5310612a47ba2a53b015876b35fcf38"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":47424,"argv":["/usr/local/Cellar/node/19.3.0/bin/node","/Users/ddzhafar/projects/akamaiopen-edgegrid-node/node_modules/.bin/mocha","--reporter","mocha-junit-reporter","--reporter-options","jenkinsMode=true","--reporter-options","antMode=true","test/test.js","test/src/edgerc_test.js","test/src/api_test.js","test/src/helpers_test.js"],"execArgv":[],"cwd":"/Users/ddzhafar/projects/akamaiopen-edgegrid-node","time":1673875742687,"ppid":47420,"coverageFilename":"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/.nyc_output/428c0002-b763-4ca1-9c5c-2a333768afb9.json","externalId":"","uuid":"428c0002-b763-4ca1-9c5c-2a333768afb9","files":["/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/auth.js","/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/helpers.js","/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/logger.js","/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/edgerc.js","/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/api.js"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"processes":{"428c0002-b763-4ca1-9c5c-2a333768afb9":{"parent":null,"children":[]}},"files":{"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/auth.js":["428c0002-b763-4ca1-9c5c-2a333768afb9"],"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/helpers.js":["428c0002-b763-4ca1-9c5c-2a333768afb9"],"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/logger.js":["428c0002-b763-4ca1-9c5c-2a333768afb9"],"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/edgerc.js":["428c0002-b763-4ca1-9c5c-2a333768afb9"],"/Users/ddzhafar/projects/akamaiopen-edgegrid-node/src/api.js":["428c0002-b763-4ca1-9c5c-2a333768afb9"]},"externalIds":{}}
|