@gasket/plugin-elastic-apm 7.0.0-next.34 → 7.0.0-next.37
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/lib/configure.js +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +19 -15
- package/lib/preboot.js +2 -1
- package/package.json +3 -3
package/lib/configure.js
CHANGED
|
@@ -24,7 +24,7 @@ const isActive = (config, env) => {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
/** @type {import('@gasket/core').HookHandler<'configure'>} */
|
|
27
|
-
module.exports =
|
|
27
|
+
module.exports = function configure(gasket, config) {
|
|
28
28
|
config.elasticAPM = config.elasticAPM || {};
|
|
29
29
|
|
|
30
30
|
// eslint-disable-next-line no-process-env
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -4,30 +4,34 @@
|
|
|
4
4
|
const middleware = require('./middleware');
|
|
5
5
|
const preboot = require('./preboot');
|
|
6
6
|
const configure = require('./configure');
|
|
7
|
-
const {
|
|
7
|
+
const {
|
|
8
|
+
name,
|
|
9
|
+
version,
|
|
10
|
+
description,
|
|
11
|
+
devDependencies
|
|
12
|
+
} = require('../package.json');
|
|
8
13
|
|
|
9
14
|
/** @type {import('@gasket/core').Plugin} */
|
|
10
15
|
const plugin = {
|
|
11
16
|
name,
|
|
17
|
+
version,
|
|
18
|
+
description,
|
|
12
19
|
hooks: {
|
|
13
20
|
configure,
|
|
21
|
+
// @ts-expect-error - TODO: will be cleaned up in the apm tune up ticket
|
|
22
|
+
// https://godaddy-corp.atlassian.net/browse/PFX-628
|
|
14
23
|
preboot,
|
|
15
|
-
create
|
|
16
|
-
|
|
17
|
-
after: ['@gasket/plugin-start']
|
|
18
|
-
},
|
|
19
|
-
handler(gasket, { pkg, files }) {
|
|
20
|
-
const generatorDir = `${__dirname}/../generator`;
|
|
24
|
+
create(gasket, { pkg, files }) {
|
|
25
|
+
const generatorDir = `${__dirname}/../generator`;
|
|
21
26
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
pkg.add('dependencies', {
|
|
28
|
+
'elastic-apm-node': devDependencies['elastic-apm-node']
|
|
29
|
+
});
|
|
30
|
+
pkg.add('scripts', {
|
|
31
|
+
start: 'gasket start --require ./setup.js'
|
|
32
|
+
});
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
}
|
|
34
|
+
files.add(`${generatorDir}/*`);
|
|
31
35
|
},
|
|
32
36
|
middleware,
|
|
33
37
|
metadata(gasket, meta) {
|
package/lib/preboot.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/// <reference types="@gasket/plugin-start" />
|
|
2
1
|
/// <reference types="@gasket/plugin-logger" />
|
|
3
2
|
|
|
4
3
|
const { filterSensitiveCookies } = require('./cookies');
|
|
5
4
|
|
|
5
|
+
// @ts-expect-error - TODO: will be cleaned up in the apm tune up ticket
|
|
6
|
+
// https://godaddy-corp.atlassian.net/browse/PFX-628
|
|
6
7
|
/** @type {import('@gasket/core').HookHandler<'preboot'>} */
|
|
7
8
|
module.exports = async function preboot(gasket) {
|
|
8
9
|
const { config, logger, command } = gasket;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gasket/plugin-elastic-apm",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.37",
|
|
4
4
|
"description": "Adds Elastic APM instrumentation to your application",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://github.com/godaddy/gasket/tree/main/packages/gasket-plugin-elastic-apm",
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@gasket/core": "^7.0.0-next.
|
|
45
|
+
"@gasket/core": "^7.0.0-next.37",
|
|
46
46
|
"elastic-apm-node": "^4.4.1",
|
|
47
47
|
"eslint": "^8.56.0",
|
|
48
48
|
"eslint-config-godaddy": "^7.1.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"jest": {
|
|
71
71
|
"testEnvironment": "node"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "5bf71e70be11a36fd53df3ab535a7199c9d0f320"
|
|
74
74
|
}
|