akamai-edgegrid 3.1.2 → 3.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/.github/dependabot.yml +7 -0
- package/.github/workflows/test.yml +22 -0
- package/CHANGELOG.md +21 -0
- package/README.md +10 -7
- package/index.d.ts +33 -0
- package/index.test-d.ts +19 -0
- package/package.json +7 -7
- package/src/api.js +9 -0
- package/src/helpers.js +20 -2
- package/src/logger.js +1 -1
- package/test/src/api_test.js +27 -0
- package/.chglog/CHANGELOG.tpl.md +0 -43
- package/.chglog/config.yml +0 -27
- package/.idea/AkamaiOPEN-edgegrid-node.iml +0 -9
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/jsLibraryMappings.xml +0 -6
- package/.idea/jsLinters/jshint.xml +0 -16
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.nyc_output/20cb1872-3da5-4e78-9ee3-a0145437983e.json +0 -1
- package/.nyc_output/6beee4d5-a8f5-4658-8bfc-a65d3b4cb6fa.json +0 -1
- package/.nyc_output/processinfo/20cb1872-3da5-4e78-9ee3-a0145437983e.json +0 -1
- package/.nyc_output/processinfo/6beee4d5-a8f5-4658-8bfc-a65d3b4cb6fa.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/.travis.yml +0 -5
- package/edgegrid-3.1.0.tgz +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
- push
|
|
5
|
+
- pull_request
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
strategy:
|
|
11
|
+
matrix:
|
|
12
|
+
node: [12, 14, 16]
|
|
13
|
+
name: Test Node ${{ matrix.node }}
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: Setup node
|
|
17
|
+
uses: actions/setup-node@v2
|
|
18
|
+
with:
|
|
19
|
+
node-version: ${{ matrix.node }}
|
|
20
|
+
- run: npm install
|
|
21
|
+
- run: npm run build --if-present
|
|
22
|
+
- run: npm test
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# RELEASE NOTES
|
|
2
2
|
|
|
3
|
+
## 3.2.0 (Apr 26, 2022)
|
|
4
|
+
|
|
5
|
+
#### IMPROVEMENTS:
|
|
6
|
+
* Add Typescript declaration file ([#71](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/71))
|
|
7
|
+
|
|
8
|
+
## 3.1.4 (Mar 24, 2022)
|
|
9
|
+
|
|
10
|
+
#### IMPROVEMENTS:
|
|
11
|
+
* Remove deprecated `moment` dependency
|
|
12
|
+
|
|
13
|
+
#### BUG FIXES
|
|
14
|
+
* Fix response when Content-Type is `application/gzip` ([#83](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/83))
|
|
15
|
+
|
|
16
|
+
## 3.1.3 (Feb 22, 2022)
|
|
17
|
+
|
|
18
|
+
#### IMPROVEMENTS:
|
|
19
|
+
* Update various dependencies
|
|
20
|
+
|
|
21
|
+
#### BUG FIXES
|
|
22
|
+
* Bump axios to 0.26.0 to get rid of vulnerability in [follow-redirects](https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-2396346)
|
|
23
|
+
|
|
3
24
|
## 3.1.2 (Nov 3, 2021)
|
|
4
25
|
|
|
5
26
|
#### NOTES:
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ You can find the most up-to-date package in [NPM](https://www.npmjs.com/package/
|
|
|
9
9
|
|
|
10
10
|
> __IMPORTANT:__ Akamai will not maintain the `edgegrid` package in NPM going forward.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Install
|
|
13
13
|
|
|
14
14
|
`npm install --save akamai-edgegrid`
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ You can find the most up-to-date package in [NPM](https://www.npmjs.com/package/
|
|
|
17
17
|
|
|
18
18
|
### Credentials
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Before you begin, you need to [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials) in [Control Center](https://control.akamai.com).
|
|
21
21
|
|
|
22
22
|
### .edgerc authentication
|
|
23
23
|
|
|
@@ -95,9 +95,14 @@ eg.auth({
|
|
|
95
95
|
console.log(body);
|
|
96
96
|
});
|
|
97
97
|
```
|
|
98
|
+
|
|
99
|
+
This is an example of an API call to [List groups in your property](https://developer.akamai.com/api/core_features/property_manager/v1.html#getgroups). Change the `path` element to reference an endpoint in any of the [Akamai APIs](https://developer.akamai.com/api).
|
|
100
|
+
|
|
98
101
|
### Headers
|
|
99
102
|
|
|
100
|
-
|
|
103
|
+
Enter request headers as name-value pairs in an object.
|
|
104
|
+
|
|
105
|
+
> **NOTE:** You don't need to include the `Content-Type` and `Content-Length` headers. The authentication layer adds these values.
|
|
101
106
|
|
|
102
107
|
```javascript
|
|
103
108
|
eg.auth({
|
|
@@ -111,8 +116,7 @@ eg.auth({
|
|
|
111
116
|
|
|
112
117
|
### Body data
|
|
113
118
|
|
|
114
|
-
|
|
115
|
-
|
|
119
|
+
You can provide the request `body` as either an object or as a POST data form string.
|
|
116
120
|
|
|
117
121
|
```javascript
|
|
118
122
|
// Object
|
|
@@ -128,8 +132,7 @@ eg.auth({
|
|
|
128
132
|
|
|
129
133
|
### Query string parameters
|
|
130
134
|
|
|
131
|
-
|
|
132
|
-
passed to the `auth` method under the `qs` property.
|
|
135
|
+
When entering query parameters use the `qs` property under the `auth` method. Set up the parameters as name-value pairs in a object.
|
|
133
136
|
|
|
134
137
|
```javascript
|
|
135
138
|
eg.auth({
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from "axios";
|
|
2
|
+
|
|
3
|
+
declare class EdgeGrid {
|
|
4
|
+
constructor(clientTokenOrOptions: string | object,
|
|
5
|
+
clientSecret?: string,
|
|
6
|
+
accessToken?: string,
|
|
7
|
+
host?: string,
|
|
8
|
+
debug?: boolean);
|
|
9
|
+
|
|
10
|
+
request: object;
|
|
11
|
+
config: object;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Sends the request and invokes the callback function.
|
|
15
|
+
*
|
|
16
|
+
* @param {Function} callback The callback function.
|
|
17
|
+
* @return EdgeGrid object (self)
|
|
18
|
+
*/
|
|
19
|
+
send(callback: (error: AxiosError, response?: AxiosResponse, body?: string) => void): EdgeGrid;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Builds the request using the properties of the local config Object.
|
|
23
|
+
*
|
|
24
|
+
* @param {Object} req The request Object. Can optionally contain a
|
|
25
|
+
* 'headersToSign' property: An ordered list header names
|
|
26
|
+
* that will be included in the signature. This will be
|
|
27
|
+
* provided by specific APIs.
|
|
28
|
+
* @return EdgeGrid object (self)
|
|
29
|
+
*/
|
|
30
|
+
auth(req: object): EdgeGrid;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export = EdgeGrid;
|
package/index.test-d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { expectType } from 'tsd';
|
|
2
|
+
import EdgeGrid = require('.')
|
|
3
|
+
|
|
4
|
+
const eg = new EdgeGrid({
|
|
5
|
+
path: '/path/to/.edgerc',
|
|
6
|
+
section: 'section-name'
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
expectType<EdgeGrid>(eg)
|
|
10
|
+
|
|
11
|
+
var req = {
|
|
12
|
+
path: '/diagnostic-tools/v1/locations',
|
|
13
|
+
method: 'GET',
|
|
14
|
+
headers: {},
|
|
15
|
+
body: 'bodyData'
|
|
16
|
+
}
|
|
17
|
+
expectType<EdgeGrid>(eg.auth(req))
|
|
18
|
+
|
|
19
|
+
expectType<EdgeGrid>(eg.send((error, resp, body) => console.log(body)))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "akamai-edgegrid",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Authentication handler for the Akamai OPEN EdgeGrid Authentication scheme in Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"axios": "^0.
|
|
28
|
-
"log4js": "^
|
|
29
|
-
"
|
|
30
|
-
"uuid": "^3.0.0"
|
|
27
|
+
"axios": "^0.26.0",
|
|
28
|
+
"log4js": "^6.4.0",
|
|
29
|
+
"uuid": "^8.3.2"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
|
-
"mocha": "^9.
|
|
34
|
-
"nock": "^
|
|
32
|
+
"mocha": "^9.1.3",
|
|
33
|
+
"nock": "^13.2.2",
|
|
34
|
+
"tsd": "^0.20.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/api.js
CHANGED
|
@@ -84,9 +84,18 @@ EdgeGrid.prototype.auth = function (req) {
|
|
|
84
84
|
this.config.access_token,
|
|
85
85
|
this.config.host
|
|
86
86
|
);
|
|
87
|
+
if (req.headers['Accept'] === 'application/gzip') {
|
|
88
|
+
this.request["responseType"] = 'arraybuffer';
|
|
89
|
+
}
|
|
87
90
|
return this;
|
|
88
91
|
};
|
|
89
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Sends the request and invokes the callback function.
|
|
95
|
+
*
|
|
96
|
+
* @param {Function} callback The callback function.
|
|
97
|
+
* @return EdgeGrid object (self)
|
|
98
|
+
*/
|
|
90
99
|
EdgeGrid.prototype.send = function (callback) {
|
|
91
100
|
axios(this.request).then(response => {
|
|
92
101
|
callback(null, response, JSON.stringify(response.data));
|
package/src/helpers.js
CHANGED
|
@@ -13,14 +13,32 @@
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
15
|
const crypto = require('crypto'),
|
|
16
|
-
moment = require('moment'),
|
|
17
16
|
logger = require('./logger'),
|
|
18
17
|
path = require('path'),
|
|
19
18
|
os = require('os');
|
|
20
19
|
|
|
20
|
+
function twoDigitNumberPad(number) {
|
|
21
|
+
return String(number).padStart(2, '0');
|
|
22
|
+
}
|
|
23
|
+
|
|
21
24
|
module.exports = {
|
|
25
|
+
/**
|
|
26
|
+
* Create timestamp with format "yyyyMMddTHH:mm:ss+0000"
|
|
27
|
+
*
|
|
28
|
+
* @see https://developer.akamai.com/legacy/introduction/Client_Auth.html#authorizationheaderfields
|
|
29
|
+
*/
|
|
22
30
|
createTimestamp: function () {
|
|
23
|
-
|
|
31
|
+
const date = new Date(Date.now());
|
|
32
|
+
|
|
33
|
+
return date.getUTCFullYear() +
|
|
34
|
+
twoDigitNumberPad(date.getUTCMonth() + 1) +
|
|
35
|
+
twoDigitNumberPad(date.getUTCDate()) +
|
|
36
|
+
'T' +
|
|
37
|
+
twoDigitNumberPad(date.getUTCHours()) + ':' +
|
|
38
|
+
twoDigitNumberPad(date.getUTCMinutes()) +
|
|
39
|
+
':' +
|
|
40
|
+
twoDigitNumberPad(date.getUTCSeconds()) +
|
|
41
|
+
'+0000';
|
|
24
42
|
},
|
|
25
43
|
|
|
26
44
|
contentHash: function (request, maxBody) {
|
package/src/logger.js
CHANGED
package/test/src/api_test.js
CHANGED
|
@@ -221,6 +221,33 @@ describe('Api', function () {
|
|
|
221
221
|
assert.strictEqual(this.api.request.somethingArbitrary, 'someValue');
|
|
222
222
|
});
|
|
223
223
|
});
|
|
224
|
+
|
|
225
|
+
describe("when gzip response format is expected", function () {
|
|
226
|
+
beforeEach(function () {
|
|
227
|
+
this.api.auth({
|
|
228
|
+
path: '/foo',
|
|
229
|
+
headers: {
|
|
230
|
+
'Accept': `application/gzip`
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
it('adds an Authorization header to the request it is passed', function () {
|
|
236
|
+
assert.strictEqual(typeof this.api.request.headers.Authorization === 'string', true);
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
it('ensures a default GET method', function () {
|
|
240
|
+
assert.strictEqual(this.api.request.method, 'GET');
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
it('ensures a default empty body', function () {
|
|
244
|
+
assert.strictEqual(this.api.request.body, '');
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
it('should return response as buffer', function () {
|
|
248
|
+
assert.strictEqual(this.api.request["responseType"], "arraybuffer");
|
|
249
|
+
});
|
|
250
|
+
});
|
|
224
251
|
});
|
|
225
252
|
|
|
226
253
|
describe('#send', function () {
|
package/.chglog/CHANGELOG.tpl.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{{ if .Versions -}}
|
|
2
|
-
<a name="unreleased"></a>
|
|
3
|
-
## [Unreleased]
|
|
4
|
-
|
|
5
|
-
{{ if .Unreleased.CommitGroups -}}
|
|
6
|
-
{{ range .Unreleased.CommitGroups -}}
|
|
7
|
-
### {{ .Title }}
|
|
8
|
-
{{ range .Commits -}}
|
|
9
|
-
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
|
10
|
-
{{ end }}
|
|
11
|
-
{{ end -}}
|
|
12
|
-
{{ end -}}
|
|
13
|
-
{{ end -}}
|
|
14
|
-
|
|
15
|
-
{{ range .Versions }}
|
|
16
|
-
<a name="{{ .Tag.Name }}"></a>
|
|
17
|
-
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
|
|
18
|
-
{{ range .CommitGroups -}}
|
|
19
|
-
### {{ .Title }}
|
|
20
|
-
{{ range .Commits -}}
|
|
21
|
-
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
|
22
|
-
{{ if .JiraIssue }} {{ .JiraIssue.Description }}
|
|
23
|
-
{{ end }}
|
|
24
|
-
{{ end -}}
|
|
25
|
-
|
|
26
|
-
{{- if .NoteGroups -}}
|
|
27
|
-
{{ range .NoteGroups -}}
|
|
28
|
-
### {{ .Title }}
|
|
29
|
-
{{ range .Notes }}
|
|
30
|
-
{{ .Body }}
|
|
31
|
-
{{ end }}
|
|
32
|
-
{{ end -}}
|
|
33
|
-
{{ end -}}
|
|
34
|
-
{{ end -}}
|
|
35
|
-
|
|
36
|
-
{{- if .Versions }}
|
|
37
|
-
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
|
|
38
|
-
{{ range .Versions -}}
|
|
39
|
-
{{ if .Tag.Previous -}}
|
|
40
|
-
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
|
|
41
|
-
{{ end -}}
|
|
42
|
-
{{ end -}}
|
|
43
|
-
{{ end -}}
|
package/.chglog/config.yml
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
style: github
|
|
2
|
-
template: CHANGELOG.tpl.md
|
|
3
|
-
info:
|
|
4
|
-
title: CHANGELOG
|
|
5
|
-
repository_url: https://git.source.akamai.com:7999/devexp/akamaiopen-edgegrid-node
|
|
6
|
-
options:
|
|
7
|
-
commits:
|
|
8
|
-
# filters:
|
|
9
|
-
# Type:
|
|
10
|
-
# - feat
|
|
11
|
-
# - fix
|
|
12
|
-
# - perf
|
|
13
|
-
# - refactor
|
|
14
|
-
commit_groups:
|
|
15
|
-
# title_maps:
|
|
16
|
-
# feat: Features
|
|
17
|
-
# fix: Bug Fixes
|
|
18
|
-
# perf: Performance Improvements
|
|
19
|
-
# refactor: Code Refactoring
|
|
20
|
-
header:
|
|
21
|
-
pattern: "^((\\w+)\\s.*)$"
|
|
22
|
-
pattern_maps:
|
|
23
|
-
- Subject
|
|
24
|
-
- Type
|
|
25
|
-
notes:
|
|
26
|
-
keywords:
|
|
27
|
-
- BREAKING CHANGE
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="JAVA_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="inheritedJdk" />
|
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
-
</component>
|
|
9
|
-
</module>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="JSHintConfiguration" version="2.10.2" use-config-file="true" use-custom-config-file="true" custom-config-file-path="$PROJECT_DIR$/.jshintrc">
|
|
4
|
-
<option bitwise="true" />
|
|
5
|
-
<option browser="true" />
|
|
6
|
-
<option curly="true" />
|
|
7
|
-
<option eqeqeq="true" />
|
|
8
|
-
<option forin="true" />
|
|
9
|
-
<option maxerr="50" />
|
|
10
|
-
<option noarg="true" />
|
|
11
|
-
<option noempty="true" />
|
|
12
|
-
<option nonew="true" />
|
|
13
|
-
<option strict="true" />
|
|
14
|
-
<option undef="true" />
|
|
15
|
-
</component>
|
|
16
|
-
</project>
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/AkamaiOPEN-edgegrid-node.iml" filepath="$PROJECT_DIR$/.idea/AkamaiOPEN-edgegrid-node.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/src/auth.js":{"path":"/Users/pipiotro/go/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":49,"column":54}},"15":{"start":{"line":49,"column":24},"end":{"line":49,"column":54}},"16":{"start":{"line":51,"column":4},"end":{"line":51,"column":30}},"17":{"start":{"line":54,"column":0},"end":{"line":69,"column":2}},"18":{"start":{"line":56,"column":8},"end":{"line":56,"column":36}},"19":{"start":{"line":57,"column":8},"end":{"line":57,"column":33}},"20":{"start":{"line":58,"column":8},"end":{"line":58,"column":59}},"21":{"start":{"line":60,"column":8},"end":{"line":62,"column":9}},"22":{"start":{"line":61,"column":12},"end":{"line":61,"column":33}},"23":{"start":{"line":64,"column":8},"end":{"line":64,"column":62}},"24":{"start":{"line":65,"column":8},"end":{"line":65,"column":130}},"25":{"start":{"line":67,"column":8},"end":{"line":67,"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":52,"column":1}},"line":47},"2":{"name":"(anonymous_2)","decl":{"start":{"line":55,"column":18},"end":{"line":55,"column":19}},"loc":{"start":{"line":55,"column":109},"end":{"line":68,"column":5}},"line":55}},"branchMap":{"0":{"loc":{"start":{"line":49,"column":4},"end":{"line":49,"column":54}},"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":49,"column":54}},{"start":{"line":49,"column":4},"end":{"line":49,"column":54}}],"line":49},"1":{"loc":{"start":{"line":56,"column":18},"end":{"line":56,"column":35}},"type":"binary-expr","locations":[{"start":{"line":56,"column":18},"end":{"line":56,"column":25}},{"start":{"line":56,"column":29},"end":{"line":56,"column":35}}],"line":56},"2":{"loc":{"start":{"line":57,"column":15},"end":{"line":57,"column":32}},"type":"binary-expr","locations":[{"start":{"line":57,"column":15},"end":{"line":57,"column":19}},{"start":{"line":57,"column":23},"end":{"line":57,"column":32}}],"line":57},"3":{"loc":{"start":{"line":58,"column":20},"end":{"line":58,"column":58}},"type":"binary-expr","locations":[{"start":{"line":58,"column":20},"end":{"line":58,"column":29}},{"start":{"line":58,"column":33},"end":{"line":58,"column":58}}],"line":58},"4":{"loc":{"start":{"line":60,"column":8},"end":{"line":62,"column":9}},"type":"if","locations":[{"start":{"line":60,"column":8},"end":{"line":62,"column":9}},{"start":{"line":60,"column":8},"end":{"line":62,"column":9}}],"line":60}},"s":{"0":1,"1":1,"2":1,"3":1,"4":11,"5":11,"6":11,"7":44,"8":11,"9":11,"10":11,"11":11,"12":11,"13":11,"14":11,"15":1,"16":11,"17":1,"18":11,"19":11,"20":11,"21":11,"22":8,"23":11,"24":11,"25":11},"f":{"0":11,"1":11,"2":11},"b":{"0":[1,10],"1":[11,11],"2":[11,0],"3":[11,0],"4":[8,3]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"72bc628af0480134d75907c8e1db9cf5e8246e37","contentHash":"7e90c6020cd2cdd357b6f37279834bd0dcba53966bc6ff0461951aa28cd47a85"},"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/src/helpers.js":{"path":"/Users/pipiotro/go/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":30}},"2":{"start":{"line":17,"column":10},"end":{"line":17,"column":24}},"3":{"start":{"line":18,"column":13},"end":{"line":18,"column":32}},"4":{"start":{"line":20,"column":0},"end":{"line":148,"column":2}},"5":{"start":{"line":22,"column":8},"end":{"line":22,"column":63}},"6":{"start":{"line":26,"column":26},"end":{"line":26,"column":28}},"7":{"start":{"line":27,"column":27},"end":{"line":27,"column":45}},"8":{"start":{"line":28,"column":24},"end":{"line":28,"column":116}},"9":{"start":{"line":30,"column":8},"end":{"line":45,"column":9}},"10":{"start":{"line":31,"column":30},"end":{"line":31,"column":32}},"11":{"start":{"line":34,"column":12},"end":{"line":34,"column":82}},"12":{"start":{"line":36,"column":12},"end":{"line":38,"column":13}},"13":{"start":{"line":37,"column":16},"end":{"line":37,"column":103}},"14":{"start":{"line":41,"column":12},"end":{"line":41,"column":57}},"15":{"start":{"line":43,"column":12},"end":{"line":43,"column":39}},"16":{"start":{"line":44,"column":12},"end":{"line":44,"column":40}},"17":{"start":{"line":47,"column":8},"end":{"line":47,"column":56}},"18":{"start":{"line":48,"column":8},"end":{"line":48,"column":66}},"19":{"start":{"line":50,"column":8},"end":{"line":65,"column":9}},"20":{"start":{"line":52,"column":12},"end":{"line":52,"column":69}},"21":{"start":{"line":55,"column":12},"end":{"line":59,"column":13}},"22":{"start":{"line":56,"column":16},"end":{"line":56,"column":107}},"23":{"start":{"line":57,"column":16},"end":{"line":57,"column":66}},"24":{"start":{"line":58,"column":16},"end":{"line":58,"column":82}},"25":{"start":{"line":61,"column":12},"end":{"line":61,"column":56}},"26":{"start":{"line":63,"column":12},"end":{"line":63,"column":58}},"27":{"start":{"line":64,"column":12},"end":{"line":64,"column":67}},"28":{"start":{"line":67,"column":8},"end":{"line":67,"column":27}},"29":{"start":{"line":71,"column":26},"end":{"line":71,"column":46}},"30":{"start":{"line":72,"column":25},"end":{"line":80,"column":13}},"31":{"start":{"line":82,"column":30},"end":{"line":82,"column":62}},"32":{"start":{"line":84,"column":8},"end":{"line":84,"column":64}},"33":{"start":{"line":86,"column":8},"end":{"line":86,"column":29}},"34":{"start":{"line":92,"column":8},"end":{"line":96,"column":9}},"35":{"start":{"line":93,"column":12},"end":{"line":95,"column":13}},"36":{"start":{"line":94,"column":16},"end":{"line":94,"column":32}},"37":{"start":{"line":98,"column":8},"end":{"line":98,"column":17}},"38":{"start":{"line":102,"column":8},"end":{"line":104,"column":37}},"39":{"start":{"line":108,"column":23},"end":{"line":108,"column":63}},"40":{"start":{"line":110,"column":8},"end":{"line":110,"column":39}},"41":{"start":{"line":114,"column":24},"end":{"line":114,"column":56}},"42":{"start":{"line":116,"column":8},"end":{"line":116,"column":29}},"43":{"start":{"line":118,"column":8},"end":{"line":118,"column":40}},"44":{"start":{"line":127,"column":33},"end":{"line":127,"column":35}},"45":{"start":{"line":130,"column":8},"end":{"line":132,"column":9}},"46":{"start":{"line":131,"column":12},"end":{"line":131,"column":102}},"47":{"start":{"line":134,"column":8},"end":{"line":134,"column":43}},"48":{"start":{"line":138,"column":20},"end":{"line":138,"column":66}},"49":{"start":{"line":140,"column":8},"end":{"line":140,"column":50}},"50":{"start":{"line":142,"column":8},"end":{"line":142,"column":19}},"51":{"start":{"line":146,"column":8},"end":{"line":146,"column":126}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":21,"column":21},"end":{"line":21,"column":22}},"loc":{"start":{"line":21,"column":33},"end":{"line":23,"column":5}},"line":21},"1":{"name":"(anonymous_1)","decl":{"start":{"line":25,"column":17},"end":{"line":25,"column":18}},"loc":{"start":{"line":25,"column":45},"end":{"line":68,"column":5}},"line":25},"2":{"name":"(anonymous_2)","decl":{"start":{"line":70,"column":16},"end":{"line":70,"column":17}},"loc":{"start":{"line":70,"column":56},"end":{"line":87,"column":5}},"line":70},"3":{"name":"(anonymous_3)","decl":{"start":{"line":89,"column":12},"end":{"line":89,"column":13}},"loc":{"start":{"line":89,"column":28},"end":{"line":99,"column":5}},"line":89},"4":{"name":"(anonymous_4)","decl":{"start":{"line":101,"column":16},"end":{"line":101,"column":17}},"loc":{"start":{"line":101,"column":38},"end":{"line":105,"column":5}},"line":101},"5":{"name":"(anonymous_5)","decl":{"start":{"line":107,"column":18},"end":{"line":107,"column":19}},"loc":{"start":{"line":107,"column":34},"end":{"line":111,"column":5}},"line":107},"6":{"name":"(anonymous_6)","decl":{"start":{"line":113,"column":22},"end":{"line":113,"column":23}},"loc":{"start":{"line":113,"column":43},"end":{"line":119,"column":5}},"line":113},"7":{"name":"(anonymous_7)","decl":{"start":{"line":126,"column":25},"end":{"line":126,"column":26}},"loc":{"start":{"line":126,"column":44},"end":{"line":135,"column":5}},"line":126},"8":{"name":"(anonymous_8)","decl":{"start":{"line":137,"column":16},"end":{"line":137,"column":17}},"loc":{"start":{"line":137,"column":51},"end":{"line":143,"column":5}},"line":137},"9":{"name":"(anonymous_9)","decl":{"start":{"line":145,"column":17},"end":{"line":145,"column":18}},"loc":{"start":{"line":145,"column":82},"end":{"line":147,"column":5}},"line":145}},"branchMap":{"0":{"loc":{"start":{"line":27,"column":27},"end":{"line":27,"column":45}},"type":"binary-expr","locations":[{"start":{"line":27,"column":27},"end":{"line":27,"column":39}},{"start":{"line":27,"column":43},"end":{"line":27,"column":45}}],"line":27},"1":{"loc":{"start":{"line":28,"column":24},"end":{"line":28,"column":116}},"type":"binary-expr","locations":[{"start":{"line":28,"column":24},"end":{"line":28,"column":58}},{"start":{"line":28,"column":62},"end":{"line":28,"column":116}}],"line":28},"2":{"loc":{"start":{"line":30,"column":8},"end":{"line":45,"column":9}},"type":"if","locations":[{"start":{"line":30,"column":8},"end":{"line":45,"column":9}},{"start":{"line":30,"column":8},"end":{"line":45,"column":9}}],"line":30},"3":{"loc":{"start":{"line":30,"column":12},"end":{"line":30,"column":58}},"type":"binary-expr","locations":[{"start":{"line":30,"column":12},"end":{"line":30,"column":44}},{"start":{"line":30,"column":48},"end":{"line":30,"column":58}}],"line":30},"4":{"loc":{"start":{"line":50,"column":8},"end":{"line":65,"column":9}},"type":"if","locations":[{"start":{"line":50,"column":8},"end":{"line":65,"column":9}},{"start":{"line":50,"column":8},"end":{"line":65,"column":9}}],"line":50},"5":{"loc":{"start":{"line":50,"column":12},"end":{"line":50,"column":64}},"type":"binary-expr","locations":[{"start":{"line":50,"column":12},"end":{"line":50,"column":37}},{"start":{"line":50,"column":41},"end":{"line":50,"column":64}}],"line":50},"6":{"loc":{"start":{"line":55,"column":12},"end":{"line":59,"column":13}},"type":"if","locations":[{"start":{"line":55,"column":12},"end":{"line":59,"column":13}},{"start":{"line":55,"column":12},"end":{"line":59,"column":13}}],"line":55},"7":{"loc":{"start":{"line":93,"column":12},"end":{"line":95,"column":13}},"type":"if","locations":[{"start":{"line":93,"column":12},"end":{"line":95,"column":13}},{"start":{"line":93,"column":12},"end":{"line":95,"column":13}}],"line":93}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":0,"6":11,"7":11,"8":11,"9":11,"10":1,"11":1,"12":1,"13":200094,"14":1,"15":1,"16":1,"17":11,"18":11,"19":11,"20":3,"21":3,"22":1,"23":1,"24":1,"25":3,"26":3,"27":3,"28":11,"29":11,"30":11,"31":11,"32":11,"33":11,"34":0,"35":0,"36":0,"37":0,"38":0,"39":3,"40":3,"41":22,"42":22,"43":22,"44":11,"45":11,"46":0,"47":11,"48":11,"49":11,"50":11,"51":11},"f":{"0":0,"1":11,"2":11,"3":0,"4":0,"5":3,"6":22,"7":11,"8":11,"9":11},"b":{"0":[11,7],"1":[11,1],"2":[1,10],"3":[11,1],"4":[3,8],"5":[11,4],"6":[1,2],"7":[0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"cb14b9aa19e997f7d22239f217e5fba033d7be3d","contentHash":"ac2223e4a0b67114ef0dbc560fb7842f0533a99d6e6298c4edbfa239d92bc330"},"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/src/logger.js":{"path":"/Users/pipiotro/go/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":39}},"4":{"start":{"line":22,"column":0},"end":{"line":22,"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}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1},"f":{},"b":{"0":[1,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"944b3cef33b326d1389dfa3b95de122c6453243b","contentHash":"cd8ae0988e7659c52a61a97d2544c3b41ec9a724795061a8d81c05fdb892ebe7"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":89791,"argv":["/usr/local/Cellar/node/15.11.0/bin/node","/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/node_modules/mocha/bin/mocha","--ui","bdd","--reporter","/Applications/IntelliJ IDEA.app/Contents/plugins/NodeJS/js/mocha-intellij/lib/mochaIntellijReporter.js","/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/test/test.js"],"execArgv":[],"cwd":"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node","time":1624975122396,"ppid":89790,"coverageFilename":"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/.nyc_output/20cb1872-3da5-4e78-9ee3-a0145437983e.json","externalId":"","uuid":"20cb1872-3da5-4e78-9ee3-a0145437983e","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":"20cb1872-3da5-4e78-9ee3-a0145437983e","pid":89792,"argv":["/usr/local/Cellar/node/15.11.0/bin/node","/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/node_modules/mocha/bin/_mocha","--ui","bdd","--reporter","/Applications/IntelliJ IDEA.app/Contents/plugins/NodeJS/js/mocha-intellij/lib/mochaIntellijReporter.js","/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/test/test.js"],"execArgv":[],"cwd":"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node","time":1624975122571,"ppid":89791,"coverageFilename":"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/.nyc_output/6beee4d5-a8f5-4658-8bfc-a65d3b4cb6fa.json","externalId":"","uuid":"6beee4d5-a8f5-4658-8bfc-a65d3b4cb6fa","files":["/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/src/auth.js","/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/src/helpers.js","/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/src/logger.js"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"processes":{"20cb1872-3da5-4e78-9ee3-a0145437983e":{"parent":null,"children":["6beee4d5-a8f5-4658-8bfc-a65d3b4cb6fa"]},"6beee4d5-a8f5-4658-8bfc-a65d3b4cb6fa":{"parent":"20cb1872-3da5-4e78-9ee3-a0145437983e","children":[]}},"files":{"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/src/auth.js":["6beee4d5-a8f5-4658-8bfc-a65d3b4cb6fa"],"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/src/helpers.js":["6beee4d5-a8f5-4658-8bfc-a65d3b4cb6fa"],"/Users/pipiotro/go/AkamaiOPEN-edgegrid-node/src/logger.js":["6beee4d5-a8f5-4658-8bfc-a65d3b4cb6fa"]},"externalIds":{}}
|
package/.travis.yml
DELETED
package/edgegrid-3.1.0.tgz
DELETED
|
Binary file
|