@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.
@@ -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.4",
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;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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 DEBUG_NAME = 'relative-ci:agent';
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(DEBUG_NAME);
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":";;;;;;;;AAEA,MAAM,UAAU,GAAG,mBAAmB;AAEtC,IAAI,YAAY;AAEA,SAAA,KAAK,CAAC,GAAG,IAAoB,EAAA;IAC3C,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,YAAY,GAAGA,yBAAQ,CAAC,UAAU,CAAC;;AAGrC,IAAA,YAAY,CAAC,GAAG,IAAI,CAAC;AACvB;;;;"}
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
@@ -9,6 +9,7 @@ var round = require('./utils/round.js');
9
9
 
10
10
 
11
11
 
12
+ exports.AGENT_DEBUG_NAME = debug.AGENT_DEBUG_NAME;
12
13
  exports.debug = debug.debug;
13
14
  exports.formatFileSize = fileSize.formatFileSize;
14
15
  exports.logResponse = logResponse.logResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -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.4",
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';
@@ -1,13 +1,13 @@
1
1
  import getDebug from 'debug';
2
2
 
3
- const DEBUG_NAME = 'relative-ci:agent';
3
+ const AGENT_DEBUG_NAME = 'relative-ci:agent';
4
4
  let debugLoggler;
5
5
  function debug(...args) {
6
6
  if (!debugLoggler) {
7
- debugLoggler = getDebug(DEBUG_NAME);
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":";;AAEA,MAAM,UAAU,GAAG,mBAAmB;AAEtC,IAAI,YAAY;AAEA,SAAA,KAAK,CAAC,GAAG,IAAoB,EAAA;IAC3C,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,YAAY,GAAG,QAAQ,CAAC,UAAU,CAAC;;AAGrC,IAAA,YAAY,CAAC,GAAG,IAAI,CAAC;AACvB;;;;"}
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
@@ -1,4 +1,4 @@
1
- export { debug } from './utils/debug.js';
1
+ export { AGENT_DEBUG_NAME, debug } from './utils/debug.js';
2
2
  export { formatFileSize } from './utils/file-size.js';
3
3
  export { logResponse } from './utils/log-response.js';
4
4
  export { logger } from './utils/logger.js';
@@ -62,12 +62,12 @@ export type PluginArgs = {
62
62
  };
63
63
  export type PluginConfig = {
64
64
  /**
65
- * Absolute path for debug payload filepath
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 or GitHub Action event data
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;
@@ -1 +1,2 @@
1
+ export declare const AGENT_DEBUG_NAME = "relative-ci:agent";
1
2
  export declare function debug(...args: Array<unknown>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relative-ci/core",
3
- "version": "5.0.0-rc.4",
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": "b032887d184c511dacf3b381a2ff263fb2636c6c"
101
+ "gitHead": "576d825f721edfe24515dca3d38adcedb2794211"
102
102
  }