danger 13.0.3 → 13.0.5
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/.release-it.json +5 -1
- package/CHANGELOG.md +5 -0
- package/Dockerfile +2 -2
- package/README.md +3 -3
- package/distribution/ci_source/ci_source_helpers.js +1 -5
- package/distribution/ci_source/ci_source_helpers.js.map +1 -1
- package/distribution/ci_source/providers/index.d.ts +2 -5
- package/distribution/ci_source/providers/index.js +0 -9
- package/distribution/ci_source/providers/index.js.map +1 -1
- package/distribution/commands/danger-runner.js +2 -2
- package/distribution/commands/danger-runner.js.map +1 -1
- package/distribution/platforms/git/gitJSONToGitDSL.js +2 -3
- package/distribution/platforms/git/gitJSONToGitDSL.js.map +1 -1
- package/package.json +1 -5
- package/distribution/ci_source/providers/BuddyBuild.d.ts +0 -25
- package/distribution/ci_source/providers/BuddyBuild.js +0 -64
- package/distribution/ci_source/providers/BuddyBuild.js.map +0 -1
- package/distribution/ci_source/providers/DockerCloud.d.ts +0 -39
- package/distribution/ci_source/providers/DockerCloud.js +0 -98
- package/distribution/ci_source/providers/DockerCloud.js.map +0 -1
- package/distribution/ci_source/providers/Nevercode.d.ts +0 -23
- package/distribution/ci_source/providers/Nevercode.js +0 -70
- package/distribution/ci_source/providers/Nevercode.js.map +0 -1
package/.release-it.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_": "CI will switch the release here to true",
|
|
3
|
-
"github": {
|
|
3
|
+
"github": {
|
|
4
|
+
"release": false,
|
|
5
|
+
"assets": "brew-distribution/*.zip",
|
|
6
|
+
"releaseNotes": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/main/templates/changelog-compact.hbs"
|
|
7
|
+
},
|
|
4
8
|
"git": {
|
|
5
9
|
"requireCleanWorkingDir": false,
|
|
6
10
|
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/main/templates/changelog-compact.hbs"
|
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
|
|
20
20
|
<!-- Your comment above this -->
|
|
21
21
|
|
|
22
|
+
## 13.0.4
|
|
23
|
+
|
|
24
|
+
- Removed some dependencies! [@yoshi-taka]
|
|
25
|
+
- Fixed dockerfile syntax [@SimenB]
|
|
26
|
+
|
|
22
27
|
## 13.0.3
|
|
23
28
|
|
|
24
29
|
- Lots of deploy faff, as we are forced to update node in all the build processing [@orta]
|
package/Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM node:20-slim
|
|
1
|
+
FROM node:20-slim AS base
|
|
2
2
|
|
|
3
3
|
LABEL maintainer="Orta Therox"
|
|
4
4
|
LABEL "com.github.actions.name"="Danger JS Action"
|
|
@@ -8,7 +8,7 @@ LABEL "com.github.actions.color"="blue"
|
|
|
8
8
|
|
|
9
9
|
WORKDIR /usr/src/danger
|
|
10
10
|
|
|
11
|
-
FROM base
|
|
11
|
+
FROM base AS build
|
|
12
12
|
COPY package.json yarn.lock ./
|
|
13
13
|
RUN yarn install
|
|
14
14
|
COPY . .
|
package/README.md
CHANGED
|
@@ -20,9 +20,9 @@ review.
|
|
|
20
20
|
You can use Danger to codify your team's norms, leaving humans to think about harder problems.
|
|
21
21
|
|
|
22
22
|
Danger JS works with GitHub, BitBucket Server, BitBucket Cloud for code review, then with: Travis CI, GitLab CI,
|
|
23
|
-
Semaphore, Circle CI, GitHub Actions, Jenkins,
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
Semaphore, Circle CI, GitHub Actions, Jenkins, Bamboo, Bitrise, surf-build, Codeship, Drone, Buildkite, Buddy.works,
|
|
24
|
+
TeamCity, Visual Studio Team Services, Screwdriver, Concourse, Netlify, CodeBuild, Codefresh, AppCenter, BitBucket
|
|
25
|
+
Pipelines, Cirrus CI, Codemagic or Xcode Cloud.
|
|
26
26
|
|
|
27
27
|
[](https://www.npmjs.com/package/danger)
|
|
28
28
|
[](https://travis-ci.org/danger/danger-js)
|
|
@@ -35,13 +35,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
39
|
exports.getPullRequestIDForBranch = exports.ensureEnvKeysAreInt = exports.ensureEnvKeysExist = void 0;
|
|
43
40
|
var GitHubAPI_1 = require("../platforms/github/GitHubAPI");
|
|
44
|
-
var lodash_find_1 = __importDefault(require("lodash.find"));
|
|
45
41
|
var BitBucketServerAPI_1 = require("../platforms/bitbucket_server/BitBucketServerAPI");
|
|
46
42
|
var BitBucketCloudAPI_1 = require("../platforms/bitbucket_cloud/BitBucketCloudAPI");
|
|
47
43
|
/**
|
|
@@ -107,7 +103,7 @@ function getPullRequestIDForBranch(metadata, env, branch) {
|
|
|
107
103
|
return [4 /*yield*/, api.getPullRequests()];
|
|
108
104
|
case 5:
|
|
109
105
|
prs = (_a.sent());
|
|
110
|
-
prForBranch =
|
|
106
|
+
prForBranch = prs.find(function (pr) { return pr.head.ref === branch; });
|
|
111
107
|
if (prForBranch) {
|
|
112
108
|
return [2 /*return*/, prForBranch.number];
|
|
113
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci_source_helpers.js","sourceRoot":"","sources":["../../source/ci_source/ci_source_helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ci_source_helpers.js","sourceRoot":"","sources":["../../source/ci_source/ci_source_helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAyD;AAEzD,uFAGyD;AAEzD,oFAAoH;AAEpH;;;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AQ,EAAE,IAAA,oDAAgC,EAAC,GAAG,CAAC,CAAC,CAAA;oBACtE,qBAAM,KAAG,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAA;;oBAAjD,QAAM,SAA2C;oBACvD,IAAI,KAAG,CAAC,MAAM,EAAE;wBACd,sBAAO,KAAG,CAAC,CAAC,CAAC,CAAC,EAAE,EAAA;qBACjB;oBACD,sBAAO,CAAC,EAAA;;oBAGJ,KAAK,GAAG,GAAG,CAAC,yBAAyB,CAAC,IAAI,GAAG,CAAC,cAAc,CAAC,CAAA;oBACnE,IAAI,CAAC,KAAK,EAAE;wBACV,sBAAO,CAAC,EAAA;qBACT;oBACK,GAAG,GAAG,IAAI,qBAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;oBAC7B,qBAAM,GAAG,CAAC,eAAe,EAAE,EAAA;;oBAAlC,GAAG,GAAG,CAAC,SAA2B,CAAU;oBAC5C,WAAW,GAAG,GAAG,CAAC,IAAI,CAAC,UAAC,EAAe,IAAK,OAAA,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,MAAM,EAAtB,CAAsB,CAAC,CAAA;oBACzE,IAAI,WAAW,EAAE;wBACf,sBAAO,WAAW,CAAC,MAAM,EAAA;qBAC1B;oBACD,sBAAO,CAAC,EAAA;;;;CACT;AAjCD,8DAiCC"}
|
|
@@ -2,7 +2,6 @@ import { AppCenter } from "./AppCenter";
|
|
|
2
2
|
import { Bamboo } from "./Bamboo";
|
|
3
3
|
import { BitbucketPipelines } from "./BitbucketPipelines";
|
|
4
4
|
import { Bitrise } from "./Bitrise";
|
|
5
|
-
import { BuddyBuild } from "./BuddyBuild";
|
|
6
5
|
import { BuddyWorks } from "./BuddyWorks";
|
|
7
6
|
import { Buildkite } from "./Buildkite";
|
|
8
7
|
import { Circle } from "./Circle";
|
|
@@ -12,14 +11,12 @@ import { Codefresh } from "./Codefresh";
|
|
|
12
11
|
import { Codeship } from "./Codeship";
|
|
13
12
|
import { Codemagic } from "./Codemagic";
|
|
14
13
|
import { Concourse } from "./Concourse";
|
|
15
|
-
import { DockerCloud } from "./DockerCloud";
|
|
16
14
|
import { Drone } from "./Drone";
|
|
17
15
|
import { FakeCI } from "./Fake";
|
|
18
16
|
import { GitHubActions } from "./GitHubActions";
|
|
19
17
|
import { GitLabCI } from "./GitLabCI";
|
|
20
18
|
import { Jenkins } from "./Jenkins";
|
|
21
19
|
import { Netlify } from "./Netlify";
|
|
22
|
-
import { Nevercode } from "./Nevercode";
|
|
23
20
|
import { Screwdriver } from "./Screwdriver";
|
|
24
21
|
import { Semaphore } from "./Semaphore";
|
|
25
22
|
import { Surf } from "./Surf";
|
|
@@ -27,6 +24,6 @@ import { TeamCity } from "./TeamCity";
|
|
|
27
24
|
import { Travis } from "./Travis";
|
|
28
25
|
import { VSTS } from "./VSTS";
|
|
29
26
|
import { XcodeCloud } from "./XcodeCloud";
|
|
30
|
-
declare const providers: (typeof AppCenter | typeof Bamboo | typeof BitbucketPipelines | typeof Bitrise | typeof
|
|
31
|
-
declare const realProviders: (typeof AppCenter | typeof Bamboo | typeof
|
|
27
|
+
declare const providers: (typeof AppCenter | typeof Bamboo | typeof BitbucketPipelines | typeof Bitrise | typeof BuddyWorks | typeof Buildkite | typeof Circle | typeof Cirrus | typeof CodeBuild | typeof Codefresh | typeof Codeship | typeof Codemagic | typeof Concourse | typeof Drone | typeof FakeCI | typeof GitHubActions | typeof GitLabCI | typeof Jenkins | typeof Netlify | typeof Screwdriver | typeof Semaphore | typeof Surf | typeof TeamCity | typeof Travis | typeof VSTS | typeof XcodeCloud)[];
|
|
28
|
+
declare const realProviders: (typeof AppCenter | typeof Bamboo | typeof BuddyWorks | typeof Buildkite | typeof Circle | typeof Cirrus | typeof CodeBuild | typeof Codefresh | typeof Codeship | typeof Codemagic | typeof Concourse | typeof Drone | typeof GitHubActions | typeof GitLabCI | typeof Jenkins | typeof Netlify | typeof Screwdriver | typeof Semaphore | typeof Surf | typeof TeamCity | typeof Travis | typeof VSTS | typeof XcodeCloud)[];
|
|
32
29
|
export { providers, realProviders };
|
|
@@ -5,7 +5,6 @@ var AppCenter_1 = require("./AppCenter");
|
|
|
5
5
|
var Bamboo_1 = require("./Bamboo");
|
|
6
6
|
var BitbucketPipelines_1 = require("./BitbucketPipelines");
|
|
7
7
|
var Bitrise_1 = require("./Bitrise");
|
|
8
|
-
var BuddyBuild_1 = require("./BuddyBuild");
|
|
9
8
|
var BuddyWorks_1 = require("./BuddyWorks");
|
|
10
9
|
var Buildkite_1 = require("./Buildkite");
|
|
11
10
|
var Circle_1 = require("./Circle");
|
|
@@ -15,14 +14,12 @@ var Codefresh_1 = require("./Codefresh");
|
|
|
15
14
|
var Codeship_1 = require("./Codeship");
|
|
16
15
|
var Codemagic_1 = require("./Codemagic");
|
|
17
16
|
var Concourse_1 = require("./Concourse");
|
|
18
|
-
var DockerCloud_1 = require("./DockerCloud");
|
|
19
17
|
var Drone_1 = require("./Drone");
|
|
20
18
|
var Fake_1 = require("./Fake");
|
|
21
19
|
var GitHubActions_1 = require("./GitHubActions");
|
|
22
20
|
var GitLabCI_1 = require("./GitLabCI");
|
|
23
21
|
var Jenkins_1 = require("./Jenkins");
|
|
24
22
|
var Netlify_1 = require("./Netlify");
|
|
25
|
-
var Nevercode_1 = require("./Nevercode");
|
|
26
23
|
var Screwdriver_1 = require("./Screwdriver");
|
|
27
24
|
var Semaphore_1 = require("./Semaphore");
|
|
28
25
|
var Surf_1 = require("./Surf");
|
|
@@ -37,14 +34,11 @@ var providers = [
|
|
|
37
34
|
Travis_1.Travis,
|
|
38
35
|
Circle_1.Circle,
|
|
39
36
|
Semaphore_1.Semaphore,
|
|
40
|
-
Nevercode_1.Nevercode,
|
|
41
37
|
Jenkins_1.Jenkins,
|
|
42
38
|
Surf_1.Surf,
|
|
43
|
-
DockerCloud_1.DockerCloud,
|
|
44
39
|
Codeship_1.Codeship,
|
|
45
40
|
Drone_1.Drone,
|
|
46
41
|
Buildkite_1.Buildkite,
|
|
47
|
-
BuddyBuild_1.BuddyBuild,
|
|
48
42
|
BuddyWorks_1.BuddyWorks,
|
|
49
43
|
VSTS_1.VSTS,
|
|
50
44
|
Bitrise_1.Bitrise,
|
|
@@ -69,14 +63,11 @@ var realProviders = [
|
|
|
69
63
|
Travis_1.Travis,
|
|
70
64
|
Circle_1.Circle,
|
|
71
65
|
Semaphore_1.Semaphore,
|
|
72
|
-
Nevercode_1.Nevercode,
|
|
73
66
|
Jenkins_1.Jenkins,
|
|
74
67
|
Surf_1.Surf,
|
|
75
|
-
DockerCloud_1.DockerCloud,
|
|
76
68
|
Codeship_1.Codeship,
|
|
77
69
|
Drone_1.Drone,
|
|
78
70
|
Buildkite_1.Buildkite,
|
|
79
|
-
BuddyBuild_1.BuddyBuild,
|
|
80
71
|
BuddyWorks_1.BuddyWorks,
|
|
81
72
|
VSTS_1.VSTS,
|
|
82
73
|
TeamCity_1.TeamCity,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/ci_source/providers/index.ts"],"names":[],"mappings":";;;AAAA,yCAAuC;AACvC,mCAAiC;AACjC,2DAAyD;AACzD,qCAAmC;AACnC,2CAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/ci_source/providers/index.ts"],"names":[],"mappings":";;;AAAA,yCAAuC;AACvC,mCAAiC;AACjC,2DAAyD;AACzD,qCAAmC;AACnC,2CAAyC;AACzC,yCAAuC;AACvC,mCAAiC;AACjC,mCAAiC;AACjC,yCAAuC;AACvC,yCAAuC;AACvC,uCAAqC;AACrC,yCAAuC;AACvC,yCAAuC;AACvC,iCAA+B;AAC/B,+BAA+B;AAC/B,iDAA+C;AAC/C,uCAAqC;AACrC,qCAAmC;AACnC,qCAAmC;AACnC,6CAA2C;AAC3C,yCAAuC;AACvC,+BAA6B;AAC7B,uCAAqC;AACrC,mCAAiC;AACjC,+BAA6B;AAC7B,2CAAyC;AAEzC,IAAM,SAAS,GAAG;IAChB,aAAM;IACN,6BAAa;IACb,mBAAQ;IACR,eAAM;IACN,eAAM;IACN,qBAAS;IACT,iBAAO;IACP,WAAI;IACJ,mBAAQ;IACR,aAAK;IACL,qBAAS;IACT,uBAAU;IACV,WAAI;IACJ,iBAAO;IACP,mBAAQ;IACR,yBAAW;IACX,qBAAS;IACT,iBAAO;IACP,qBAAS;IACT,qBAAS;IACT,qBAAS;IACT,uCAAkB;IAClB,eAAM;IACN,eAAM;IACN,qBAAS;IACT,uBAAU;CACX,CAAA;AA6BQ,8BAAS;AA3BlB,qCAAqC;AACrC,IAAM,aAAa,GAAG;IACpB,6BAAa;IACb,mBAAQ;IACR,eAAM;IACN,eAAM;IACN,qBAAS;IACT,iBAAO;IACP,WAAI;IACJ,mBAAQ;IACR,aAAK;IACL,qBAAS;IACT,uBAAU;IACV,WAAI;IACJ,mBAAQ;IACR,yBAAW;IACX,qBAAS;IACT,iBAAO;IACP,qBAAS;IACT,qBAAS;IACT,qBAAS;IACT,eAAM;IACN,eAAM;IACN,qBAAS;IACT,uBAAU;CACX,CAAA;AAEmB,sCAAa"}
|
|
@@ -44,7 +44,7 @@ var sharedDangerfileArgs_1 = __importDefault(require("./utils/sharedDangerfileAr
|
|
|
44
44
|
var node_cleanup_1 = __importDefault(require("node-cleanup"));
|
|
45
45
|
var commander_1 = __importDefault(require("commander"));
|
|
46
46
|
var debug_1 = require("../debug");
|
|
47
|
-
var
|
|
47
|
+
var consumers_1 = __importDefault(require("node:stream/consumers"));
|
|
48
48
|
var chalk_1 = __importDefault(require("chalk"));
|
|
49
49
|
var inline_1 = __importDefault(require("../runner/runners/inline"));
|
|
50
50
|
var fileUtils_1 = require("./utils/fileUtils");
|
|
@@ -134,5 +134,5 @@ var missingDSLTimeout = setTimeout(function () {
|
|
|
134
134
|
}
|
|
135
135
|
}, 10000);
|
|
136
136
|
// Start waiting on STDIN for the DSL
|
|
137
|
-
|
|
137
|
+
consumers_1.default.text(process.stdin).then(run(commander_1.default));
|
|
138
138
|
//# sourceMappingURL=danger-runner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"danger-runner.js","sourceRoot":"","sources":["../../source/commands/danger-runner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sFAAuE;AACvE,8DAAsC;AAEtC,wDAA+B;AAC/B,kCAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"danger-runner.js","sourceRoot":"","sources":["../../source/commands/danger-runner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sFAAuE;AACvE,8DAAsC;AAEtC,wDAA+B;AAC/B,kCAAgC;AAChC,oEAAmD;AACnD,gDAAyB;AAEzB,oEAA6C;AAC7C,+CAAkD;AAClD,yDAAuD;AAGvD,kFAA2D;AAC3D,kDAAyD;AACzD,yBAA2B;AAC3B,yBAAkC;AAClC,6BAA2B;AAC3B,iCAAoC;AAEpC,IAAM,CAAC,GAAG,IAAA,aAAK,EAAC,QAAQ,CAAC,CAAA;AAEzB,4FAA4F;AAC5F,EAAE;AACF,2MAA2M;AAC3M,EAAE;AACF,mGAAmG;AAEnG,mBAAO;KACJ,KAAK,CAAC,WAAW,CAAC;KAClB,WAAW,CACV,6JAA6J,CAC9J;IACD,6CAA6C;IAC7C,8CAA8C;KAC7C,kBAAkB,CAAC,IAAI,CAAC,CAAA;AAE3B,IAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACvC,IAAA,8BAAa,EAAC,mBAAO,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;AAEvC,CAAC,CAAC,qCAA8B,mBAAO,CAAC,IAAI,CAAE,CAAC,CAAA;AAE/C,IAAI,QAAQ,GAAG,KAAK,CAAA;AACpB,IAAI,UAAU,GAAG,EAAS,CAAA;AAE1B,IAAM,GAAG,GAAG,UAAC,MAAiB,IAAK,OAAA,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ff_1 = __importDefault(require("parse-diff"));
|
|
68
68
|
var lodash_includes_1 = __importDefault(require("lodash.includes"));
|
|
69
69
|
var lodash_isobject_1 = __importDefault(require("lodash.isobject"));
|
|
70
|
-
var lodash_keys_1 = __importDefault(require("lodash.keys"));
|
|
71
70
|
var lodash_memoize_1 = __importDefault(require("lodash.memoize"));
|
|
72
71
|
var jsonDiff = __importStar(require("fast-json-patch"));
|
|
73
72
|
var jsonpointer_1 = __importDefault(require("jsonpointer"));
|
|
@@ -173,8 +172,8 @@ var gitJSONToGitDSL = function (gitJSONRep, config) {
|
|
|
173
172
|
// Do the same, but for keys inside an object if they both are objects.
|
|
174
173
|
}
|
|
175
174
|
else if ((0, lodash_isobject_1.default)(afterValue) && (0, lodash_isobject_1.default)(beforeValue)) {
|
|
176
|
-
var beforeKeys_1 =
|
|
177
|
-
var afterKeys_1 =
|
|
175
|
+
var beforeKeys_1 = Object.keys(beforeValue);
|
|
176
|
+
var afterKeys_1 = Object.keys(afterValue);
|
|
178
177
|
diff.added = afterKeys_1.filter(function (o) { return !(0, lodash_includes_1.default)(beforeKeys_1, o); });
|
|
179
178
|
diff.removed = beforeKeys_1.filter(function (o) { return !(0, lodash_includes_1.default)(afterKeys_1, o); });
|
|
180
179
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitJSONToGitDSL.js","sourceRoot":"","sources":["../../../source/platforms/git/gitJSONToGitDSL.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwB;AACxB,0DAAkC;AAElC,oEAAsC;AACtC,oEAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"gitJSONToGitDSL.js","sourceRoot":"","sources":["../../../source/platforms/git/gitJSONToGitDSL.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qC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"version": "13.0.5",
|
|
4
4
|
"description": "Unit tests for Team Culture",
|
|
5
5
|
"main": "distribution/danger.js",
|
|
6
6
|
"typings": "distribution/danger.d.ts",
|
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
"@babel/traverse": "7.16.7",
|
|
102
102
|
"@types/async-retry": "^1.4.1",
|
|
103
103
|
"@types/debug": "0.0.30",
|
|
104
|
-
"@types/get-stdin": "^5.0.1",
|
|
105
104
|
"@types/ini": "^4.1.1",
|
|
106
105
|
"@types/jest": "^28.0.0",
|
|
107
106
|
"@types/json5": "^2.2.0",
|
|
@@ -153,7 +152,6 @@
|
|
|
153
152
|
"core-js": "^3.8.2",
|
|
154
153
|
"debug": "^4.1.1",
|
|
155
154
|
"fast-json-patch": "^3.0.0-1",
|
|
156
|
-
"get-stdin": "^6.0.0",
|
|
157
155
|
"http-proxy-agent": "^5.0.0",
|
|
158
156
|
"https-proxy-agent": "^5.0.1",
|
|
159
157
|
"hyperlinker": "^1.0.0",
|
|
@@ -161,10 +159,8 @@
|
|
|
161
159
|
"json5": "^2.2.3",
|
|
162
160
|
"jsonpointer": "^5.0.0",
|
|
163
161
|
"jsonwebtoken": "^9.0.0",
|
|
164
|
-
"lodash.find": "^4.6.0",
|
|
165
162
|
"lodash.includes": "^4.3.0",
|
|
166
163
|
"lodash.isobject": "^3.0.2",
|
|
167
|
-
"lodash.keys": "^4.0.8",
|
|
168
164
|
"lodash.mapvalues": "^4.6.0",
|
|
169
165
|
"lodash.memoize": "^4.1.2",
|
|
170
166
|
"memfs-or-file-map-to-github-branch": "^1.3.0",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Env, CISource } from "../ci_source";
|
|
2
|
-
/**
|
|
3
|
-
* ### CI Setup
|
|
4
|
-
*
|
|
5
|
-
* Buddybuild has an integration for Danger JS already built-in.
|
|
6
|
-
*
|
|
7
|
-
* ### Token Setup
|
|
8
|
-
*
|
|
9
|
-
* Login to buddybuild and select your app. Go to your *App Settings* and
|
|
10
|
-
* in the *Build Settings* menu on the left, choose *Environment Variables*.
|
|
11
|
-
*
|
|
12
|
-
* #### GitHub
|
|
13
|
-
*
|
|
14
|
-
* Add the `DANGER_GITHUB_API_TOKEN` to your build user's ENV.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
export declare class BuddyBuild implements CISource {
|
|
18
|
-
private readonly env;
|
|
19
|
-
constructor(env: Env);
|
|
20
|
-
get name(): string;
|
|
21
|
-
get isCI(): boolean;
|
|
22
|
-
get isPR(): boolean;
|
|
23
|
-
get pullRequestID(): string;
|
|
24
|
-
get repoSlug(): string;
|
|
25
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuddyBuild = void 0;
|
|
4
|
-
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
5
|
-
/**
|
|
6
|
-
* ### CI Setup
|
|
7
|
-
*
|
|
8
|
-
* Buddybuild has an integration for Danger JS already built-in.
|
|
9
|
-
*
|
|
10
|
-
* ### Token Setup
|
|
11
|
-
*
|
|
12
|
-
* Login to buddybuild and select your app. Go to your *App Settings* and
|
|
13
|
-
* in the *Build Settings* menu on the left, choose *Environment Variables*.
|
|
14
|
-
*
|
|
15
|
-
* #### GitHub
|
|
16
|
-
*
|
|
17
|
-
* Add the `DANGER_GITHUB_API_TOKEN` to your build user's ENV.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
var BuddyBuild = /** @class */ (function () {
|
|
21
|
-
function BuddyBuild(env) {
|
|
22
|
-
this.env = env;
|
|
23
|
-
}
|
|
24
|
-
Object.defineProperty(BuddyBuild.prototype, "name", {
|
|
25
|
-
get: function () {
|
|
26
|
-
return "buddybuild";
|
|
27
|
-
},
|
|
28
|
-
enumerable: false,
|
|
29
|
-
configurable: true
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(BuddyBuild.prototype, "isCI", {
|
|
32
|
-
get: function () {
|
|
33
|
-
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["BUDDYBUILD_BUILD_ID"]);
|
|
34
|
-
},
|
|
35
|
-
enumerable: false,
|
|
36
|
-
configurable: true
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(BuddyBuild.prototype, "isPR", {
|
|
39
|
-
get: function () {
|
|
40
|
-
var mustHave = ["BUDDYBUILD_PULL_REQUEST", "BUDDYBUILD_REPO_SLUG"];
|
|
41
|
-
var mustBeInts = ["BUDDYBUILD_PULL_REQUEST"];
|
|
42
|
-
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) && (0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts);
|
|
43
|
-
},
|
|
44
|
-
enumerable: false,
|
|
45
|
-
configurable: true
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(BuddyBuild.prototype, "pullRequestID", {
|
|
48
|
-
get: function () {
|
|
49
|
-
return this.env.BUDDYBUILD_PULL_REQUEST;
|
|
50
|
-
},
|
|
51
|
-
enumerable: false,
|
|
52
|
-
configurable: true
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(BuddyBuild.prototype, "repoSlug", {
|
|
55
|
-
get: function () {
|
|
56
|
-
return this.env.BUDDYBUILD_REPO_SLUG;
|
|
57
|
-
},
|
|
58
|
-
enumerable: false,
|
|
59
|
-
configurable: true
|
|
60
|
-
});
|
|
61
|
-
return BuddyBuild;
|
|
62
|
-
}());
|
|
63
|
-
exports.BuddyBuild = BuddyBuild;
|
|
64
|
-
//# sourceMappingURL=BuddyBuild.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BuddyBuild.js","sourceRoot":"","sources":["../../../source/ci_source/providers/BuddyBuild.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;;;;GAcG;AACH;IACE,oBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,4BAAI;aAAR;YACE,OAAO,YAAY,CAAA;QACrB,CAAC;;;OAAA;IAED,sBAAI,4BAAI;aAAR;YACE,OAAO,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAA;QAC9D,CAAC;;;OAAA;IAED,sBAAI,4BAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,yBAAyB,EAAE,sBAAsB,CAAC,CAAA;YACpE,IAAM,UAAU,GAAG,CAAC,yBAAyB,CAAC,CAAA;YAC9C,OAAO,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,IAAA,uCAAmB,EAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC5F,CAAC;;;OAAA;IAED,sBAAI,qCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAA;QACzC,CAAC;;;OAAA;IAED,sBAAI,gCAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAA;QACtC,CAAC;;;OAAA;IACH,iBAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,gCAAU"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Env, CISource } from "../ci_source";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* ### CI Setup
|
|
5
|
-
*
|
|
6
|
-
* You'll want to add danger to your existing `Dockerfile.test` (or whatever you
|
|
7
|
-
* have chosen as your `sut` Dockerfile.)
|
|
8
|
-
*
|
|
9
|
-
* ```sh
|
|
10
|
-
* ...
|
|
11
|
-
*
|
|
12
|
-
* CMD [run_command_split]
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* ### Token Setup
|
|
16
|
-
*
|
|
17
|
-
* #### GitHub
|
|
18
|
-
*
|
|
19
|
-
* Your `DANGER_GITHUB_API_TOKEN` will need to be exposed to the `sut` part of your
|
|
20
|
-
* `docker-compose.yml`. This looks similar to:
|
|
21
|
-
*
|
|
22
|
-
* ```
|
|
23
|
-
* sut:
|
|
24
|
-
* ...
|
|
25
|
-
* environment:
|
|
26
|
-
* - DANGER_GITHUB_API_TOKEN=[my_token]
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare class DockerCloud implements CISource {
|
|
30
|
-
private readonly env;
|
|
31
|
-
constructor(env: Env);
|
|
32
|
-
get name(): string;
|
|
33
|
-
get isCI(): boolean;
|
|
34
|
-
get isPR(): boolean;
|
|
35
|
-
private _prParseURL;
|
|
36
|
-
get pullRequestID(): string;
|
|
37
|
-
get repoSlug(): string;
|
|
38
|
-
get repoURL(): string;
|
|
39
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DockerCloud = void 0;
|
|
4
|
-
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* ### CI Setup
|
|
8
|
-
*
|
|
9
|
-
* You'll want to add danger to your existing `Dockerfile.test` (or whatever you
|
|
10
|
-
* have chosen as your `sut` Dockerfile.)
|
|
11
|
-
*
|
|
12
|
-
* ```sh
|
|
13
|
-
* ...
|
|
14
|
-
*
|
|
15
|
-
* CMD [run_command_split]
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* ### Token Setup
|
|
19
|
-
*
|
|
20
|
-
* #### GitHub
|
|
21
|
-
*
|
|
22
|
-
* Your `DANGER_GITHUB_API_TOKEN` will need to be exposed to the `sut` part of your
|
|
23
|
-
* `docker-compose.yml`. This looks similar to:
|
|
24
|
-
*
|
|
25
|
-
* ```
|
|
26
|
-
* sut:
|
|
27
|
-
* ...
|
|
28
|
-
* environment:
|
|
29
|
-
* - DANGER_GITHUB_API_TOKEN=[my_token]
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
var DockerCloud = /** @class */ (function () {
|
|
33
|
-
function DockerCloud(env) {
|
|
34
|
-
this.env = env;
|
|
35
|
-
}
|
|
36
|
-
Object.defineProperty(DockerCloud.prototype, "name", {
|
|
37
|
-
get: function () {
|
|
38
|
-
return "Docker Cloud";
|
|
39
|
-
},
|
|
40
|
-
enumerable: false,
|
|
41
|
-
configurable: true
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(DockerCloud.prototype, "isCI", {
|
|
44
|
-
get: function () {
|
|
45
|
-
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["DOCKER_REPO"]);
|
|
46
|
-
},
|
|
47
|
-
enumerable: false,
|
|
48
|
-
configurable: true
|
|
49
|
-
});
|
|
50
|
-
Object.defineProperty(DockerCloud.prototype, "isPR", {
|
|
51
|
-
get: function () {
|
|
52
|
-
if ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["PULL_REQUEST_URL"])) {
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
var mustHave = ["SOURCE_REPOSITORY_URL", "PULL_REQUEST_URL"];
|
|
56
|
-
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave);
|
|
57
|
-
},
|
|
58
|
-
enumerable: false,
|
|
59
|
-
configurable: true
|
|
60
|
-
});
|
|
61
|
-
DockerCloud.prototype._prParseURL = function () {
|
|
62
|
-
var prUrl = this.env.PULL_REQUEST_URL || "";
|
|
63
|
-
var splitSlug = prUrl.split("/");
|
|
64
|
-
if (splitSlug.length === 7) {
|
|
65
|
-
var owner = splitSlug[3];
|
|
66
|
-
var reponame = splitSlug[4];
|
|
67
|
-
var id = splitSlug[6];
|
|
68
|
-
return { owner: owner, reponame: reponame, id: id };
|
|
69
|
-
}
|
|
70
|
-
return {};
|
|
71
|
-
};
|
|
72
|
-
Object.defineProperty(DockerCloud.prototype, "pullRequestID", {
|
|
73
|
-
get: function () {
|
|
74
|
-
var id = this._prParseURL().id;
|
|
75
|
-
return id || "";
|
|
76
|
-
},
|
|
77
|
-
enumerable: false,
|
|
78
|
-
configurable: true
|
|
79
|
-
});
|
|
80
|
-
Object.defineProperty(DockerCloud.prototype, "repoSlug", {
|
|
81
|
-
get: function () {
|
|
82
|
-
var _a = this._prParseURL(), owner = _a.owner, reponame = _a.reponame;
|
|
83
|
-
return owner && reponame ? "".concat(owner, "/").concat(reponame) : "";
|
|
84
|
-
},
|
|
85
|
-
enumerable: false,
|
|
86
|
-
configurable: true
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(DockerCloud.prototype, "repoURL", {
|
|
89
|
-
get: function () {
|
|
90
|
-
return this.env.SOURCE_REPOSITORY_URL;
|
|
91
|
-
},
|
|
92
|
-
enumerable: false,
|
|
93
|
-
configurable: true
|
|
94
|
-
});
|
|
95
|
-
return DockerCloud;
|
|
96
|
-
}());
|
|
97
|
-
exports.DockerCloud = DockerCloud;
|
|
98
|
-
//# sourceMappingURL=DockerCloud.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DockerCloud.js","sourceRoot":"","sources":["../../../source/ci_source/providers/DockerCloud.ts"],"names":[],"mappings":";;;AACA,0DAAyD;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;IACE,qBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,6BAAI;aAAR;YACE,OAAO,cAAc,CAAA;QACvB,CAAC;;;OAAA;IAED,sBAAI,6BAAI;aAAR;YACE,OAAO,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;QACtD,CAAC;;;OAAA;IAED,sBAAI,6BAAI;aAAR;YACE,IAAI,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE;gBACtD,OAAO,IAAI,CAAA;aACZ;YAED,IAAM,QAAQ,GAAG,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAAA;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ercode.io CI Integration
|
|
4
|
-
*
|
|
5
|
-
* Environment Variables Documented: https://developer.nevercode.io/v1.0/docs/environment-variables-files
|
|
6
|
-
*
|
|
7
|
-
* Note: The company that runs Nevercode is migrating all customers
|
|
8
|
-
* to their new service Codemagic.io in Spring of 2021
|
|
9
|
-
* - billing is migrated through Customer Support
|
|
10
|
-
* - the CI Configuration is managed in your repo instead of in a web-dashboard.
|
|
11
|
-
*
|
|
12
|
-
* TODO @fbartho delete this integration when it's fully offline.
|
|
13
|
-
*/
|
|
14
|
-
export declare class Nevercode implements CISource {
|
|
15
|
-
private readonly env;
|
|
16
|
-
constructor(env: Env);
|
|
17
|
-
get name(): string;
|
|
18
|
-
get isCI(): boolean;
|
|
19
|
-
get isPR(): boolean;
|
|
20
|
-
get pullRequestID(): string;
|
|
21
|
-
get repoSlug(): string;
|
|
22
|
-
get ciRunURL(): string | undefined;
|
|
23
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Nevercode = void 0;
|
|
4
|
-
var ci_source_helpers_1 = require("../ci_source_helpers");
|
|
5
|
-
/**
|
|
6
|
-
* Nevercode.io CI Integration
|
|
7
|
-
*
|
|
8
|
-
* Environment Variables Documented: https://developer.nevercode.io/v1.0/docs/environment-variables-files
|
|
9
|
-
*
|
|
10
|
-
* Note: The company that runs Nevercode is migrating all customers
|
|
11
|
-
* to their new service Codemagic.io in Spring of 2021
|
|
12
|
-
* - billing is migrated through Customer Support
|
|
13
|
-
* - the CI Configuration is managed in your repo instead of in a web-dashboard.
|
|
14
|
-
*
|
|
15
|
-
* TODO @fbartho delete this integration when it's fully offline.
|
|
16
|
-
*/
|
|
17
|
-
var Nevercode = /** @class */ (function () {
|
|
18
|
-
function Nevercode(env) {
|
|
19
|
-
this.env = env;
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(Nevercode.prototype, "name", {
|
|
22
|
-
get: function () {
|
|
23
|
-
return "Nevercode";
|
|
24
|
-
},
|
|
25
|
-
enumerable: false,
|
|
26
|
-
configurable: true
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(Nevercode.prototype, "isCI", {
|
|
29
|
-
get: function () {
|
|
30
|
-
return (0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, ["NEVERCODE"]);
|
|
31
|
-
},
|
|
32
|
-
enumerable: false,
|
|
33
|
-
configurable: true
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(Nevercode.prototype, "isPR", {
|
|
36
|
-
get: function () {
|
|
37
|
-
var mustHave = ["NEVERCODE_PULL_REQUEST", "NEVERCODE_REPO_SLUG"];
|
|
38
|
-
var mustBeInts = ["NEVERCODE_GIT_PROVIDER_PULL_REQUEST", "NEVERCODE_PULL_REQUEST_NUMBER"];
|
|
39
|
-
return ((0, ci_source_helpers_1.ensureEnvKeysExist)(this.env, mustHave) &&
|
|
40
|
-
(0, ci_source_helpers_1.ensureEnvKeysAreInt)(this.env, mustBeInts) &&
|
|
41
|
-
this.env.NEVERCODE_PULL_REQUEST == "true");
|
|
42
|
-
},
|
|
43
|
-
enumerable: false,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(Nevercode.prototype, "pullRequestID", {
|
|
47
|
-
get: function () {
|
|
48
|
-
return this.env.NEVERCODE_PULL_REQUEST_NUMBER;
|
|
49
|
-
},
|
|
50
|
-
enumerable: false,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(Nevercode.prototype, "repoSlug", {
|
|
54
|
-
get: function () {
|
|
55
|
-
return this.env.NEVERCODE_REPO_SLUG;
|
|
56
|
-
},
|
|
57
|
-
enumerable: false,
|
|
58
|
-
configurable: true
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(Nevercode.prototype, "ciRunURL", {
|
|
61
|
-
get: function () {
|
|
62
|
-
return process.env.NEVERCODE_BUILD_URL;
|
|
63
|
-
},
|
|
64
|
-
enumerable: false,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
|
-
return Nevercode;
|
|
68
|
-
}());
|
|
69
|
-
exports.Nevercode = Nevercode;
|
|
70
|
-
//# sourceMappingURL=Nevercode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Nevercode.js","sourceRoot":"","sources":["../../../source/ci_source/providers/Nevercode.ts"],"names":[],"mappings":";;;AACA,0DAA8E;AAE9E;;;;;;;;;;;GAWG;AACH;IACE,mBAA6B,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEzC,sBAAI,2BAAI;aAAR;YACE,OAAO,WAAW,CAAA;QACpB,CAAC;;;OAAA;IAED,sBAAI,2BAAI;aAAR;YACE,OAAO,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;QACpD,CAAC;;;OAAA;IAED,sBAAI,2BAAI;aAAR;YACE,IAAM,QAAQ,GAAG,CAAC,wBAAwB,EAAE,qBAAqB,CAAC,CAAA;YAClE,IAAM,UAAU,GAAG,CAAC,qCAAqC,EAAE,+BAA+B,CAAC,CAAA;YAC3F,OAAO,CACL,IAAA,sCAAkB,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC;gBACtC,IAAA,uCAAmB,EAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC;gBACzC,IAAI,CAAC,GAAG,CAAC,sBAAsB,IAAI,MAAM,CAC1C,CAAA;QACH,CAAC;;;OAAA;IAED,sBAAI,oCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,6BAA6B,CAAA;QAC/C,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAA;QACrC,CAAC;;;OAAA;IAED,sBAAI,+BAAQ;aAAZ;YACE,OAAO,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAA;QACxC,CAAC;;;OAAA;IACH,gBAAC;AAAD,CAAC,AAhCD,IAgCC;AAhCY,8BAAS"}
|