@relative-ci/core 5.0.0-rc.4 → 5.0.0-rc.6
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/cjs/env/load.js +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/utils/debug.js +3 -2
- package/lib/cjs/utils/debug.js.map +1 -1
- package/lib/cjs/utils.js +1 -0
- package/lib/cjs/utils.js.map +1 -1
- package/lib/esm/env/load.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/utils/debug.js +3 -3
- package/lib/esm/utils/debug.js.map +1 -1
- package/lib/esm/utils.js +1 -1
- package/lib/types/constants.d.ts +2 -2
- package/lib/types/utils/debug.d.ts +1 -0
- package/package.json +2 -2
package/lib/cjs/env/load.js
CHANGED
|
@@ -24,7 +24,7 @@ async function loadEnv(args, config = {}, logger$1 = logger.logger) {
|
|
|
24
24
|
debug.debug('RELATIVE_CI env', maskObjectProperty.maskObjectProperties(agentEnv$1, ['key']));
|
|
25
25
|
const params = {
|
|
26
26
|
isCi: ciEnv$1.isCi,
|
|
27
|
-
agentVersion: "5.0.0-rc.
|
|
27
|
+
agentVersion: "5.0.0-rc.6",
|
|
28
28
|
agentType: args.agentType,
|
|
29
29
|
key: agentEnv$1.key,
|
|
30
30
|
endpoint: agentEnv$1.endpoint || constants.DEFAULT_ENDPOINT,
|
package/lib/cjs/index.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.validateWebpackStats = validateWebpackStats.validateWebpackStats;
|
|
|
18
18
|
exports.DEFAULT_ENDPOINT = constants.DEFAULT_ENDPOINT;
|
|
19
19
|
exports.MASK = constants.MASK;
|
|
20
20
|
exports.SOURCE_WEBPACK_STATS = constants.SOURCE_WEBPACK_STATS;
|
|
21
|
+
exports.AGENT_DEBUG_NAME = debug.AGENT_DEBUG_NAME;
|
|
21
22
|
exports.debug = debug.debug;
|
|
22
23
|
exports.formatFileSize = fileSize.formatFileSize;
|
|
23
24
|
exports.logResponse = logResponse.logResponse;
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/utils/debug.js
CHANGED
|
@@ -6,14 +6,15 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
6
6
|
|
|
7
7
|
var getDebug__default = /*#__PURE__*/_interopDefault(getDebug);
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const AGENT_DEBUG_NAME = 'relative-ci:agent';
|
|
10
10
|
let debugLoggler;
|
|
11
11
|
function debug(...args) {
|
|
12
12
|
if (!debugLoggler) {
|
|
13
|
-
debugLoggler = getDebug__default.default(
|
|
13
|
+
debugLoggler = getDebug__default.default(AGENT_DEBUG_NAME);
|
|
14
14
|
}
|
|
15
15
|
debugLoggler(...args);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
exports.AGENT_DEBUG_NAME = AGENT_DEBUG_NAME;
|
|
18
19
|
exports.debug = debug;
|
|
19
20
|
//# sourceMappingURL=debug.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sources":["../../../../src/utils/debug.ts"],"sourcesContent":[null],"names":["getDebug"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"debug.js","sources":["../../../../src/utils/debug.ts"],"sourcesContent":[null],"names":["getDebug"],"mappings":";;;;;;;;AAEO,MAAM,gBAAgB,GAAG;AAEhC,IAAI,YAAY;AAEA,SAAA,KAAK,CAAC,GAAG,IAAoB,EAAA;IAC3C,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,YAAY,GAAGA,yBAAQ,CAAC,gBAAgB,CAAC;;AAG3C,IAAA,YAAY,CAAC,GAAG,IAAI,CAAC;AACvB;;;;;"}
|
package/lib/cjs/utils.js
CHANGED
package/lib/cjs/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/lib/esm/env/load.js
CHANGED
|
@@ -22,7 +22,7 @@ async function loadEnv(args, config = {}, logger$1 = logger) {
|
|
|
22
22
|
debug('RELATIVE_CI env', maskObjectProperties(agentEnv, ['key']));
|
|
23
23
|
const params = {
|
|
24
24
|
isCi: ciEnv.isCi,
|
|
25
|
-
agentVersion: "5.0.0-rc.
|
|
25
|
+
agentVersion: "5.0.0-rc.6",
|
|
26
26
|
agentType: args.agentType,
|
|
27
27
|
key: agentEnv.key,
|
|
28
28
|
endpoint: agentEnv.endpoint || DEFAULT_ENDPOINT,
|
package/lib/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { filterArtifacts } from './artifacts/filter-artifacts.js';
|
|
2
2
|
export { validateWebpackStats } from './artifacts/validate-webpack-stats.js';
|
|
3
3
|
export { DEFAULT_ENDPOINT, MASK, SOURCE_WEBPACK_STATS } from './constants.js';
|
|
4
|
-
export { debug } from './utils/debug.js';
|
|
4
|
+
export { AGENT_DEBUG_NAME, debug } from './utils/debug.js';
|
|
5
5
|
export { formatFileSize } from './utils/file-size.js';
|
|
6
6
|
export { logResponse } from './utils/log-response.js';
|
|
7
7
|
export { logger } from './utils/logger.js';
|
package/lib/esm/utils/debug.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import getDebug from 'debug';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const AGENT_DEBUG_NAME = 'relative-ci:agent';
|
|
4
4
|
let debugLoggler;
|
|
5
5
|
function debug(...args) {
|
|
6
6
|
if (!debugLoggler) {
|
|
7
|
-
debugLoggler = getDebug(
|
|
7
|
+
debugLoggler = getDebug(AGENT_DEBUG_NAME);
|
|
8
8
|
}
|
|
9
9
|
debugLoggler(...args);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export { debug };
|
|
12
|
+
export { AGENT_DEBUG_NAME, debug };
|
|
13
13
|
//# sourceMappingURL=debug.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sources":["../../../../src/utils/debug.ts"],"sourcesContent":[null],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"debug.js","sources":["../../../../src/utils/debug.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEO,MAAM,gBAAgB,GAAG;AAEhC,IAAI,YAAY;AAEA,SAAA,KAAK,CAAC,GAAG,IAAoB,EAAA;IAC3C,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,YAAY,GAAG,QAAQ,CAAC,gBAAgB,CAAC;;AAG3C,IAAA,YAAY,CAAC,GAAG,IAAI,CAAC;AACvB;;;;"}
|
package/lib/esm/utils.js
CHANGED
package/lib/types/constants.d.ts
CHANGED
|
@@ -62,12 +62,12 @@ export type PluginArgs = {
|
|
|
62
62
|
};
|
|
63
63
|
export type PluginConfig = {
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Relative path for debug payload filepath
|
|
66
66
|
* Default: `undefined`.
|
|
67
67
|
*/
|
|
68
68
|
payloadFilepath?: string;
|
|
69
69
|
/**
|
|
70
|
-
* Read commit message from the git logs
|
|
70
|
+
* Read commit message from the git logs, GitHub Action event data or GitHub API
|
|
71
71
|
* Default: `true`.
|
|
72
72
|
*/
|
|
73
73
|
includeCommitMessage?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relative-ci/core",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.6",
|
|
4
4
|
"description": "RelativeCI agent core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"fs-extra": "11.3.0",
|
|
99
99
|
"lodash": "4.17.21"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "576d825f721edfe24515dca3d38adcedb2794211"
|
|
102
102
|
}
|