@dungarees/bin-audit-comments-domain 0.12.0 → 0.12.2
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/behavior.d.ts +3 -3
- package/behavior.js +1 -1
- package/fake.d.ts +9 -0
- package/fake.js +9 -0
- package/package.json +10 -2
package/behavior.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuditCommentsEvent } from './events.ts';
|
|
2
|
-
import type {
|
|
2
|
+
import type { GitCommands } from '@dungarees/cli-command/service.ts';
|
|
3
3
|
import { type Observable } from 'rxjs';
|
|
4
4
|
export type AuditCommentsFeatureOutput = {
|
|
5
5
|
events$: Observable<AuditCommentsEvent>;
|
|
@@ -11,6 +11,6 @@ export type AuditCommentsBehavior = {
|
|
|
11
11
|
}) => AuditCommentsFeatureOutput;
|
|
12
12
|
};
|
|
13
13
|
export type CreateAuditCommentsBehaviorOptions = {
|
|
14
|
-
|
|
14
|
+
git: GitCommands;
|
|
15
15
|
};
|
|
16
|
-
export declare const createAuditCommentsBehavior: ({
|
|
16
|
+
export declare const createAuditCommentsBehavior: ({ git, }: CreateAuditCommentsBehaviorOptions) => AuditCommentsBehavior;
|
package/behavior.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getAddedComments, getAuditStartEvent, reportAddedComments } from './operations.js';
|
|
2
2
|
import { concat } from 'rxjs';
|
|
3
|
-
export const createAuditCommentsBehavior = ({
|
|
3
|
+
export const createAuditCommentsBehavior = ({ git, }) => {
|
|
4
4
|
const audit = ({ ref, dir }) => {
|
|
5
5
|
const startEvent$ = getAuditStartEvent({ ref });
|
|
6
6
|
const audit$ = getAddedComments({
|
package/fake.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type AuditCommentsBehavior } from './behavior.ts';
|
|
2
|
+
import { type ExecutedCommand, type StubSpawnConfig } from '@dungarees/cli-command/stub.ts';
|
|
3
|
+
export type FakeAuditCommentsWorld = {
|
|
4
|
+
commands?: StubSpawnConfig;
|
|
5
|
+
};
|
|
6
|
+
export type FakeAuditComments = AuditCommentsBehavior & {
|
|
7
|
+
executedCommands: ExecutedCommand[];
|
|
8
|
+
};
|
|
9
|
+
export declare const createFakeAuditComments: ({ commands, }?: FakeAuditCommentsWorld) => FakeAuditComments;
|
package/fake.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createAuditCommentsBehavior } from './behavior.js';
|
|
2
|
+
import { createStubCliCommands, } from '@dungarees/cli-command/stub.ts';
|
|
3
|
+
export const createFakeAuditComments = ({ commands = [], } = {}) => {
|
|
4
|
+
const { executedCommands, git } = createStubCliCommands(commands);
|
|
5
|
+
return {
|
|
6
|
+
...createAuditCommentsBehavior({ git }),
|
|
7
|
+
executedCommands,
|
|
8
|
+
};
|
|
9
|
+
};
|
package/package.json
CHANGED
|
@@ -15,12 +15,16 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@dungarees/rxjs": "*",
|
|
18
|
-
"@dungarees/sub-process": "*",
|
|
19
18
|
"vitest": "^3.0.2"
|
|
20
19
|
},
|
|
21
20
|
"author": "info@productkind.com",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/productkind/monorepo.git",
|
|
24
|
+
"directory": "dungarees/src/bin/audit-comments/domain"
|
|
25
|
+
},
|
|
22
26
|
"license": "MIT",
|
|
23
|
-
"version": "0.12.
|
|
27
|
+
"version": "0.12.2",
|
|
24
28
|
"exports": {
|
|
25
29
|
"./behavior.ts": {
|
|
26
30
|
"import": "./behavior.js",
|
|
@@ -30,6 +34,10 @@
|
|
|
30
34
|
"import": "./events.js",
|
|
31
35
|
"types": "./events.d.ts"
|
|
32
36
|
},
|
|
37
|
+
"./fake.ts": {
|
|
38
|
+
"import": "./fake.js",
|
|
39
|
+
"types": "./fake.d.ts"
|
|
40
|
+
},
|
|
33
41
|
"./judged-files.ts": {
|
|
34
42
|
"import": "./judged-files.js",
|
|
35
43
|
"types": "./judged-files.d.ts"
|