akamai-edgegrid 4.0.0 → 4.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release notes
2
2
 
3
+ ## 4.0.1 (Mar 4, 2026)
4
+
5
+ ### Features/Enhancements
6
+
7
+ * Updated various dependencies.
3
8
 
4
9
  ## 4.0.0 (Dec 4, 2025)
5
10
 
package/LICENSE CHANGED
@@ -176,7 +176,7 @@ 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 2025 Akamai Technologies, Inc. All rights reserved.
179
+ Copyright 2026 Akamai Technologies, Inc. All rights reserved.
180
180
 
181
181
  Licensed under the Apache License, Version 2.0 (the "License");
182
182
  you may not use these files except in compliance with the License.
package/README.md CHANGED
@@ -14,7 +14,7 @@ You can find the most up-to-date package in [NPM](https://www.npmjs.com/package/
14
14
 
15
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
16
 
17
- 1. [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials).
17
+ 1. [Create authentication credentials](https://techdocs.akamai.com/developer/docs/edgegrid).
18
18
 
19
19
  2. Place your credentials in an EdgeGrid file `~/.edgerc`, in the `[default]` section.
20
20
 
@@ -171,69 +171,60 @@ eg.auth({
171
171
  ### Logging
172
172
  The library supports configurable logging through the `enableLogging()` method.
173
173
 
174
- - `enableLogging()`
175
- - Enable with Environment Variables:
176
- - `AKAMAI_LOG_LEVEL` (Default: 'info')
177
- - Valid values:
178
- - 'error'
179
- - 'warn'
180
- - 'info'
181
- - 'debug'
182
- - 'fatal'
183
- - 'trace'
184
-
185
- - `AKAMAI_LOG_PRETTY` (Default: 'false')
186
- - Valid values: 'true' or 'false'
174
+ - Enable logging with environment variables.
175
+ - `AKAMAI_LOG_LEVEL`. Sets the verbosity level of the emitted log messages. Valid values are `error`, `warn`, `info`, `debug`, `fatal`, and `trace`. Default to `info.`
176
+ - `AKAMAI_LOG_PRETTY`. Controls whether the log output is formatted in a human-friendly way. Valid values are `true` or `false`. Defaults to `false`.
187
177
 
188
- ```javascript
189
- const edgeGrid = require('akamai-edgegrid');
178
+ ```javascript
179
+ const edgeGrid = require('akamai-edgegrid');
190
180
 
191
- // Set environment variables before enabling
192
- process.env.AKAMAI_LOG_LEVEL = 'debug';
193
- process.env.AKAMAI_LOG_PRETTY = 'true';
181
+ // Set environment variables before enabling logging
182
+ process.env.AKAMAI_LOG_LEVEL = 'debug';
183
+ process.env.AKAMAI_LOG_PRETTY = 'true';
194
184
 
195
- var eg = new EdgeGrid({
196
- path: '/path/to/.edgerc',
197
- section: '<section-header>'
198
- });
199
- eg.enableLogging(true);
200
- ```
185
+ var eg = new EdgeGrid({
186
+ path: '/path/to/.edgerc',
187
+ section: '<section-header>'
188
+ });
189
+ eg.enableLogging(true);
190
+ ```
201
191
 
202
- - Disable Logging:
203
- ```javascript
204
- const edgeGrid = require('akamai-edgegrid');
205
- var eg = new EdgeGrid({
206
- path: '/path/to/.edgerc',
207
- section: '<section-header>'
208
- });
209
- eg.enableLogging(false);
210
- ```
192
+ - Disable logging.
211
193
 
212
- - Custom Logger:
213
- - You can also pass a custom logger object to enableLogging. The object must have info, debug, error and warn methods.
214
- - If you pass an object that does not implement the required info, debug, error and warn methods, an error will be thrown.
194
+ ```javascript
195
+ const edgeGrid = require('akamai-edgegrid');
196
+ var eg = new EdgeGrid({
197
+ path: '/path/to/.edgerc',
198
+ section: '<section-header>'
199
+ });
200
+ eg.enableLogging(false);
201
+ ```
215
202
 
216
- ```javascript
217
- const edgeGrid = require('akamai-edgegrid');
218
- //custom logger
219
- const logger = {
220
- info: (msg, ...args) => console.log('INFO:', msg, ...args),
221
- debug: (msg, ...args) => console.log('DEBUG:', msg, ...args),
222
- error: (msg, ...args) => console.error('ERROR:', msg, ...args),
223
- warn: (msg, ...args) => console.warn('WARN:', msg, ...args)
224
- };
203
+ - Add a custom logger.
204
+ - You can also pass a custom logger object to the `enableLogging()` method. The object must have the `info`, `debug`, `error`, and `warn` methods.
205
+ - If you pass a logger object that doesn't implement the required methods, you'll get an error.
225
206
 
226
- var eg = new EdgeGrid({
227
- path: '/path/to/.edgerc',
228
- section: '<section-header>'
229
- });
207
+ ```javascript
208
+ const edgeGrid = require('akamai-edgegrid');
209
+ // custom logger
210
+ const logger = {
211
+ info: (msg, ...args) => console.log('INFO:', msg, ...args),
212
+ debug: (msg, ...args) => console.log('DEBUG:', msg, ...args),
213
+ error: (msg, ...args) => console.error('ERROR:', msg, ...args),
214
+ warn: (msg, ...args) => console.warn('WARN:', msg, ...args)
215
+ };
216
+
217
+ var eg = new EdgeGrid({
218
+ path: '/path/to/.edgerc',
219
+ section: '<section-header>'
220
+ });
230
221
 
231
- eg.enableLogging(logger); // Pass the custom logger
222
+ eg.enableLogging(logger); // Pass the custom logger
223
+
224
+ logger.info('Using custom logger for logging.');
225
+ logger.error('An error occurred!');
226
+ ```
232
227
 
233
- logger.info('Using custom logger for logging.');
234
- logger.error('An error occurred!');
235
- ```
236
-
237
228
  ### Proxy
238
229
 
239
230
  To use edgegrid with proxy, you can configure it with one of these methods:
@@ -275,7 +266,7 @@ To report an issue or make a suggestion, create a new [GitHub issue](https://git
275
266
 
276
267
  ## License
277
268
 
278
- Copyright 2025 Akamai Technologies, Inc. All rights reserved.
269
+ Copyright 2026 Akamai Technologies, Inc. All rights reserved.
279
270
 
280
271
  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.
281
272
 
package/npm.log ADDED
@@ -0,0 +1,76 @@
1
+
2
+ added 395 packages, and audited 396 packages in 3s
3
+
4
+ 73 packages are looking for funding
5
+ run `npm fund` for details
6
+
7
+ 10 vulnerabilities (1 low, 9 high)
8
+
9
+ To address issues that do not require attention, run:
10
+ npm audit fix
11
+
12
+ To address all issues (including breaking changes), run:
13
+ npm audit fix --force
14
+
15
+ Run `npm audit` for details.
16
+ # npm audit report
17
+
18
+ axios 1.0.0 - 1.13.4
19
+ Severity: high
20
+ Axios is Vulnerable to Denial of Service via __proto__ Key in mergeConfig - https://github.com/advisories/GHSA-43fc-jf86-j433
21
+ fix available via `npm audit fix`
22
+ node_modules/axios
23
+
24
+ diff 6.0.0 - 8.0.2
25
+ jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch - https://github.com/advisories/GHSA-73rr-hh4g-fpgx
26
+ fix available via `npm audit fix`
27
+ node_modules/diff
28
+ mocha >=1.10.0
29
+ Depends on vulnerable versions of diff
30
+ Depends on vulnerable versions of glob
31
+ Depends on vulnerable versions of minimatch
32
+ node_modules/mocha
33
+
34
+ minimatch <10.2.1
35
+ Severity: high
36
+ minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern - https://github.com/advisories/GHSA-3ppc-4f35-3m26
37
+ fix available via `npm audit fix --force`
38
+ Will install nyc@10.1.2, which is a breaking change
39
+ node_modules/minimatch
40
+ node_modules/nyc/node_modules/minimatch
41
+ node_modules/rimraf/node_modules/minimatch
42
+ node_modules/test-exclude/node_modules/minimatch
43
+ glob 3.0.0 - 10.5.0
44
+ Depends on vulnerable versions of minimatch
45
+ node_modules/glob
46
+ node_modules/nyc/node_modules/glob
47
+ node_modules/rimraf/node_modules/glob
48
+ node_modules/test-exclude/node_modules/glob
49
+ nyc *
50
+ Depends on vulnerable versions of glob
51
+ Depends on vulnerable versions of istanbul-lib-processinfo
52
+ Depends on vulnerable versions of rimraf
53
+ Depends on vulnerable versions of spawn-wrap
54
+ Depends on vulnerable versions of test-exclude
55
+ node_modules/nyc
56
+ rimraf 2.3.0 - 3.0.2 || 4.2.0 - 5.0.10
57
+ Depends on vulnerable versions of glob
58
+ node_modules/rimraf
59
+ istanbul-lib-processinfo *
60
+ Depends on vulnerable versions of rimraf
61
+ node_modules/istanbul-lib-processinfo
62
+ spawn-wrap >=0.0.1
63
+ Depends on vulnerable versions of rimraf
64
+ node_modules/spawn-wrap
65
+ test-exclude 4.2.2 || >=5.0.0
66
+ Depends on vulnerable versions of glob
67
+ Depends on vulnerable versions of minimatch
68
+ node_modules/test-exclude
69
+
70
+ 10 vulnerabilities (1 low, 9 high)
71
+
72
+ To address issues that do not require attention, run:
73
+ npm audit fix
74
+
75
+ To address all issues (including breaking changes), run:
76
+ npm audit fix --force
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akamai-edgegrid",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Authentication handler for the Akamai OPEN EdgeGrid Authentication scheme in Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,7 +29,7 @@
29
29
  "mocha": "^11.0.1",
30
30
  "mocha-junit-reporter": "^2.1.0",
31
31
  "nock": "^14.0.6",
32
- "nyc": "^17.0.0",
32
+ "nyc": "^18.0.0",
33
33
  "pino-pretty": "^13.0.0",
34
34
  "tsd": "^0.33.0"
35
35
  }