1
1
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
2
2
/******/ var __webpack_modules__ = ({
3
3
4
- /***/ 212 :
5
- /***/ (function (__unused_webpack_module, exports, __nccwpck_require__) {
4
+ /***/ 2850 :
5
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
6
6
7
7
"use strict";
8
8
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", { enumerable: true, value: v });
22
- }) : function(o, v) {
23
- o["default"] = v;
24
- });
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule) return mod;
27
- var result = {};
28
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
- __setModuleDefault(result, mod);
30
- return result;
31
- };
32
9
Object.defineProperty(exports, "__esModule", ({ value: true }));
33
- const core = __importStar(__nccwpck_require__(5127));
34
- const dependency_snapshot_action_1 = __nccwpck_require__(8049);
10
+ exports.parseDependents = void 0;
35
11
const processor_1 = __nccwpck_require__(9642);
36
- let parseDependents;
37
- // eslint-disable-next-line prefer-const
38
- parseDependents = function (contents) {
12
+ function parseDependents(contents) {
39
13
const stdoutArr = contents.split('\n');
40
14
const splitStdoutArr = stdoutArr.map(function (line) {
41
15
return line.split(' ');
@@ -71,7 +45,45 @@ parseDependents = function (contents) {
71
45
targetEntry.addDependency(dependencyEntry);
72
46
});
73
47
return entries;
48
+ }
49
+ exports.parseDependents = parseDependents;
50
+
51
+
52
+ /***/ }),
53
+
54
+ /***/ 212:
55
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
56
+
57
+ "use strict";
58
+
59
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
60
+ if (k2 === undefined) k2 = k;
61
+ var desc = Object.getOwnPropertyDescriptor(m, k);
62
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
63
+ desc = { enumerable: true, get: function() { return m[k]; } };
64
+ }
65
+ Object.defineProperty(o, k2, desc);
66
+ }) : (function(o, m, k, k2) {
67
+ if (k2 === undefined) k2 = k;
68
+ o[k2] = m[k];
69
+ }));
70
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
71
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
72
+ }) : function(o, v) {
73
+ o["default"] = v;
74
+ });
75
+ var __importStar = (this && this.__importStar) || function (mod) {
76
+ if (mod && mod.__esModule) return mod;
77
+ var result = {};
78
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
79
+ __setModuleDefault(result, mod);
80
+ return result;
74
81
};
82
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
83
+ const core = __importStar(__nccwpck_require__(5127));
84
+ const dependency_snapshot_action_1 = __nccwpck_require__(8049);
85
+ const go_mod_parser_1 = __nccwpck_require__(2850);
86
+ const parseDependentsFunc = go_mod_parser_1.parseDependents;
75
87
// Set the detector information provided from the action workflow input
76
88
const detector = {
77
89
name: core.getInput('detector-name'),
@@ -81,11 +93,11 @@ const detector = {
81
93
// If provided, set the metadata provided from the action workflow input
82
94
const metadataInput = core.getInput('metadata');
83
95
if (metadataInput.length < 1) {
84
- (0, dependency_snapshot_action_1.run)(parseDependents , { command: 'go mod graph' }, { detector });
96
+ (0, dependency_snapshot_action_1.run)(parseDependentsFunc , { command: 'go mod graph' }, { detector });
85
97
}
86
98
else {
87
99
const metadata = JSON.parse(metadataInput);
88
- (0, dependency_snapshot_action_1.run)(parseDependents , { command: 'go mod graph' }, { metadata, detector });
100
+ (0, dependency_snapshot_action_1.run)(parseDependentsFunc , { command: 'go mod graph' }, { metadata, detector });
89
101
}
90
102
91
103
0 commit comments