@teambit/stash 1.0.226 → 1.0.228
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +21 -95
- package/package.json +8 -8
- package/tsconfig.json +19 -1
- package/dist/index.d.ts +0 -4
- package/dist/stash-data.d.ts +0 -23
- package/dist/stash-files.d.ts +0 -13
- package/dist/stash.aspect.d.ts +0 -2
- package/dist/stash.cmd.d.ts +0 -56
- package/dist/stash.main.runtime.d.ts +0 -29
- /package/dist/{preview-1712632644937.js → preview-1712805335812.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.component/stash@1.0.
|
|
3
|
+
<testsuite name="teambit.component/stash@1.0.228" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -48,11 +48,7 @@
|
|
|
48
48
|
"line": 23,
|
|
49
49
|
"character": 34
|
|
50
50
|
},
|
|
51
|
-
"name": "Workspace"
|
|
52
|
-
"componentId": {
|
|
53
|
-
"scope": "teambit.workspace",
|
|
54
|
-
"name": "workspace"
|
|
55
|
-
}
|
|
51
|
+
"name": "Workspace"
|
|
56
52
|
},
|
|
57
53
|
"isOptional": false,
|
|
58
54
|
"isSpread": false
|
|
@@ -72,11 +68,7 @@
|
|
|
72
68
|
"line": 23,
|
|
73
69
|
"character": 63
|
|
74
70
|
},
|
|
75
|
-
"name": "CheckoutMain"
|
|
76
|
-
"componentId": {
|
|
77
|
-
"scope": "teambit.component",
|
|
78
|
-
"name": "checkout"
|
|
79
|
-
}
|
|
71
|
+
"name": "CheckoutMain"
|
|
80
72
|
},
|
|
81
73
|
"isOptional": false,
|
|
82
74
|
"isSpread": false
|
|
@@ -96,11 +88,7 @@
|
|
|
96
88
|
"line": 23,
|
|
97
89
|
"character": 95
|
|
98
90
|
},
|
|
99
|
-
"name": "SnappingMain"
|
|
100
|
-
"componentId": {
|
|
101
|
-
"scope": "teambit.component",
|
|
102
|
-
"name": "snapping"
|
|
103
|
-
}
|
|
91
|
+
"name": "SnappingMain"
|
|
104
92
|
},
|
|
105
93
|
"isOptional": false,
|
|
106
94
|
"isSpread": false
|
|
@@ -212,11 +200,7 @@
|
|
|
212
200
|
"line": 27,
|
|
213
201
|
"character": 72
|
|
214
202
|
},
|
|
215
|
-
"name": "ComponentID"
|
|
216
|
-
"componentId": {
|
|
217
|
-
"scope": "teambit.component",
|
|
218
|
-
"name": "component"
|
|
219
|
-
}
|
|
203
|
+
"name": "ComponentID"
|
|
220
204
|
}
|
|
221
205
|
}
|
|
222
206
|
]
|
|
@@ -258,8 +242,7 @@
|
|
|
258
242
|
"line": 66,
|
|
259
243
|
"character": 25
|
|
260
244
|
},
|
|
261
|
-
"name": "ListResult"
|
|
262
|
-
"internalFilePath": "stash.main.runtime.ts"
|
|
245
|
+
"name": "ListResult"
|
|
263
246
|
}
|
|
264
247
|
}
|
|
265
248
|
]
|
|
@@ -293,11 +276,7 @@
|
|
|
293
276
|
"line": 80,
|
|
294
277
|
"character": 35
|
|
295
278
|
},
|
|
296
|
-
"name": "CheckoutProps"
|
|
297
|
-
"componentId": {
|
|
298
|
-
"scope": "teambit.component",
|
|
299
|
-
"name": "checkout"
|
|
300
|
-
}
|
|
279
|
+
"name": "CheckoutProps"
|
|
301
280
|
},
|
|
302
281
|
"isOptional": true,
|
|
303
282
|
"defaultValue": "{}",
|
|
@@ -433,11 +412,7 @@
|
|
|
433
412
|
"line": 128,
|
|
434
413
|
"character": 64
|
|
435
414
|
},
|
|
436
|
-
"name": "CLIMain"
|
|
437
|
-
"componentId": {
|
|
438
|
-
"scope": "teambit.harmony",
|
|
439
|
-
"name": "cli"
|
|
440
|
-
}
|
|
415
|
+
"name": "CLIMain"
|
|
441
416
|
},
|
|
442
417
|
{
|
|
443
418
|
"__schema": "TypeRefSchema",
|
|
@@ -446,11 +421,7 @@
|
|
|
446
421
|
"line": 128,
|
|
447
422
|
"character": 73
|
|
448
423
|
},
|
|
449
|
-
"name": "Workspace"
|
|
450
|
-
"componentId": {
|
|
451
|
-
"scope": "teambit.workspace",
|
|
452
|
-
"name": "workspace"
|
|
453
|
-
}
|
|
424
|
+
"name": "Workspace"
|
|
454
425
|
},
|
|
455
426
|
{
|
|
456
427
|
"__schema": "TypeRefSchema",
|
|
@@ -459,11 +430,7 @@
|
|
|
459
430
|
"line": 128,
|
|
460
431
|
"character": 84
|
|
461
432
|
},
|
|
462
|
-
"name": "CheckoutMain"
|
|
463
|
-
"componentId": {
|
|
464
|
-
"scope": "teambit.component",
|
|
465
|
-
"name": "checkout"
|
|
466
|
-
}
|
|
433
|
+
"name": "CheckoutMain"
|
|
467
434
|
},
|
|
468
435
|
{
|
|
469
436
|
"__schema": "TypeRefSchema",
|
|
@@ -472,11 +439,7 @@
|
|
|
472
439
|
"line": 128,
|
|
473
440
|
"character": 98
|
|
474
441
|
},
|
|
475
|
-
"name": "SnappingMain"
|
|
476
|
-
"componentId": {
|
|
477
|
-
"scope": "teambit.component",
|
|
478
|
-
"name": "snapping"
|
|
479
|
-
}
|
|
442
|
+
"name": "SnappingMain"
|
|
480
443
|
}
|
|
481
444
|
]
|
|
482
445
|
},
|
|
@@ -585,11 +548,7 @@
|
|
|
585
548
|
"line": 23,
|
|
586
549
|
"character": 34
|
|
587
550
|
},
|
|
588
|
-
"name": "Workspace"
|
|
589
|
-
"componentId": {
|
|
590
|
-
"scope": "teambit.workspace",
|
|
591
|
-
"name": "workspace"
|
|
592
|
-
}
|
|
551
|
+
"name": "Workspace"
|
|
593
552
|
},
|
|
594
553
|
"isOptional": false,
|
|
595
554
|
"isSpread": false
|
|
@@ -609,11 +568,7 @@
|
|
|
609
568
|
"line": 23,
|
|
610
569
|
"character": 63
|
|
611
570
|
},
|
|
612
|
-
"name": "CheckoutMain"
|
|
613
|
-
"componentId": {
|
|
614
|
-
"scope": "teambit.component",
|
|
615
|
-
"name": "checkout"
|
|
616
|
-
}
|
|
571
|
+
"name": "CheckoutMain"
|
|
617
572
|
},
|
|
618
573
|
"isOptional": false,
|
|
619
574
|
"isSpread": false
|
|
@@ -633,11 +588,7 @@
|
|
|
633
588
|
"line": 23,
|
|
634
589
|
"character": 95
|
|
635
590
|
},
|
|
636
|
-
"name": "SnappingMain"
|
|
637
|
-
"componentId": {
|
|
638
|
-
"scope": "teambit.component",
|
|
639
|
-
"name": "snapping"
|
|
640
|
-
}
|
|
591
|
+
"name": "SnappingMain"
|
|
641
592
|
},
|
|
642
593
|
"isOptional": false,
|
|
643
594
|
"isSpread": false
|
|
@@ -749,11 +700,7 @@
|
|
|
749
700
|
"line": 27,
|
|
750
701
|
"character": 72
|
|
751
702
|
},
|
|
752
|
-
"name": "ComponentID"
|
|
753
|
-
"componentId": {
|
|
754
|
-
"scope": "teambit.component",
|
|
755
|
-
"name": "component"
|
|
756
|
-
}
|
|
703
|
+
"name": "ComponentID"
|
|
757
704
|
}
|
|
758
705
|
}
|
|
759
706
|
]
|
|
@@ -795,8 +742,7 @@
|
|
|
795
742
|
"line": 66,
|
|
796
743
|
"character": 25
|
|
797
744
|
},
|
|
798
|
-
"name": "ListResult"
|
|
799
|
-
"internalFilePath": "stash.main.runtime.ts"
|
|
745
|
+
"name": "ListResult"
|
|
800
746
|
}
|
|
801
747
|
}
|
|
802
748
|
]
|
|
@@ -830,11 +776,7 @@
|
|
|
830
776
|
"line": 80,
|
|
831
777
|
"character": 35
|
|
832
778
|
},
|
|
833
|
-
"name": "CheckoutProps"
|
|
834
|
-
"componentId": {
|
|
835
|
-
"scope": "teambit.component",
|
|
836
|
-
"name": "checkout"
|
|
837
|
-
}
|
|
779
|
+
"name": "CheckoutProps"
|
|
838
780
|
},
|
|
839
781
|
"isOptional": true,
|
|
840
782
|
"defaultValue": "{}",
|
|
@@ -970,11 +912,7 @@
|
|
|
970
912
|
"line": 128,
|
|
971
913
|
"character": 64
|
|
972
914
|
},
|
|
973
|
-
"name": "CLIMain"
|
|
974
|
-
"componentId": {
|
|
975
|
-
"scope": "teambit.harmony",
|
|
976
|
-
"name": "cli"
|
|
977
|
-
}
|
|
915
|
+
"name": "CLIMain"
|
|
978
916
|
},
|
|
979
917
|
{
|
|
980
918
|
"__schema": "TypeRefSchema",
|
|
@@ -983,11 +921,7 @@
|
|
|
983
921
|
"line": 128,
|
|
984
922
|
"character": 73
|
|
985
923
|
},
|
|
986
|
-
"name": "Workspace"
|
|
987
|
-
"componentId": {
|
|
988
|
-
"scope": "teambit.workspace",
|
|
989
|
-
"name": "workspace"
|
|
990
|
-
}
|
|
924
|
+
"name": "Workspace"
|
|
991
925
|
},
|
|
992
926
|
{
|
|
993
927
|
"__schema": "TypeRefSchema",
|
|
@@ -996,11 +930,7 @@
|
|
|
996
930
|
"line": 128,
|
|
997
931
|
"character": 84
|
|
998
932
|
},
|
|
999
|
-
"name": "CheckoutMain"
|
|
1000
|
-
"componentId": {
|
|
1001
|
-
"scope": "teambit.component",
|
|
1002
|
-
"name": "checkout"
|
|
1003
|
-
}
|
|
933
|
+
"name": "CheckoutMain"
|
|
1004
934
|
},
|
|
1005
935
|
{
|
|
1006
936
|
"__schema": "TypeRefSchema",
|
|
@@ -1009,11 +939,7 @@
|
|
|
1009
939
|
"line": 128,
|
|
1010
940
|
"character": 98
|
|
1011
941
|
},
|
|
1012
|
-
"name": "SnappingMain"
|
|
1013
|
-
"componentId": {
|
|
1014
|
-
"scope": "teambit.component",
|
|
1015
|
-
"name": "snapping"
|
|
1016
|
-
}
|
|
942
|
+
"name": "SnappingMain"
|
|
1017
943
|
}
|
|
1018
944
|
]
|
|
1019
945
|
},
|
|
@@ -1192,7 +1118,7 @@
|
|
|
1192
1118
|
"componentId": {
|
|
1193
1119
|
"scope": "teambit.component",
|
|
1194
1120
|
"name": "stash",
|
|
1195
|
-
"version": "1.0.
|
|
1121
|
+
"version": "1.0.228"
|
|
1196
1122
|
},
|
|
1197
1123
|
"taggedModuleExports": []
|
|
1198
1124
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/stash",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.228",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/stash",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "stash",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.228"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
"@teambit/component-id": "1.2.0",
|
|
17
17
|
"@teambit/harmony": "0.4.6",
|
|
18
18
|
"@teambit/bit-error": "0.0.404",
|
|
19
|
-
"@teambit/workspace": "1.0.
|
|
20
|
-
"@teambit/checkout": "1.0.
|
|
21
|
-
"@teambit/cli": "0.0.
|
|
22
|
-
"@teambit/component": "1.0.
|
|
23
|
-
"@teambit/snapping": "1.0.
|
|
19
|
+
"@teambit/workspace": "1.0.228",
|
|
20
|
+
"@teambit/checkout": "1.0.228",
|
|
21
|
+
"@teambit/cli": "0.0.861",
|
|
22
|
+
"@teambit/component": "1.0.228",
|
|
23
|
+
"@teambit/snapping": "1.0.228"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/fs-extra": "9.0.7",
|
|
27
27
|
"@types/lodash": "4.14.165",
|
|
28
28
|
"@types/mocha": "9.1.0",
|
|
29
29
|
"chai": "4.3.0",
|
|
30
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
30
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.30"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@teambit/legacy": "1.0.624"
|
package/tsconfig.json
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
23
|
+
"noImplicitAny": false,
|
|
24
|
+
"composite": true
|
|
24
25
|
},
|
|
25
26
|
"exclude": [
|
|
26
27
|
"artifacts",
|
|
@@ -35,5 +36,22 @@
|
|
|
35
36
|
"include": [
|
|
36
37
|
"**/*",
|
|
37
38
|
"**/*.json"
|
|
39
|
+
],
|
|
40
|
+
"references": [
|
|
41
|
+
{
|
|
42
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.228"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_checkout@1.0.228"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.228"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_snapping@1.0.228"
|
|
55
|
+
}
|
|
38
56
|
]
|
|
39
57
|
}
|
package/dist/index.d.ts
DELETED
package/dist/stash-data.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentID, ComponentIdObj } from '@teambit/component-id';
|
|
2
|
-
export type StashCompData = {
|
|
3
|
-
id: ComponentID;
|
|
4
|
-
hash: string;
|
|
5
|
-
};
|
|
6
|
-
export type StashCompDataWithIdObj = {
|
|
7
|
-
id: ComponentIdObj;
|
|
8
|
-
hash: string;
|
|
9
|
-
};
|
|
10
|
-
export type StashMetadata = {
|
|
11
|
-
message?: string;
|
|
12
|
-
};
|
|
13
|
-
export type StashDataObj = {
|
|
14
|
-
metadata: StashMetadata;
|
|
15
|
-
stashCompsData: StashCompDataWithIdObj[];
|
|
16
|
-
};
|
|
17
|
-
export declare class StashData {
|
|
18
|
-
readonly metadata: StashMetadata;
|
|
19
|
-
readonly stashCompsData: StashCompData[];
|
|
20
|
-
constructor(metadata: StashMetadata, stashCompsData: StashCompData[]);
|
|
21
|
-
toObject(): StashDataObj;
|
|
22
|
-
static fromObject(obj: Record<string, any>): Promise<StashData>;
|
|
23
|
-
}
|
package/dist/stash-files.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Workspace } from '@teambit/workspace';
|
|
2
|
-
import { StashData } from './stash-data';
|
|
3
|
-
export declare class StashFiles {
|
|
4
|
-
private workspace;
|
|
5
|
-
constructor(workspace: Workspace);
|
|
6
|
-
getPath(): string;
|
|
7
|
-
getStashFiles(): Promise<string[]>;
|
|
8
|
-
getLatestStashFile(): Promise<string | undefined>;
|
|
9
|
-
getNextStashFileName(): Promise<string>;
|
|
10
|
-
deleteStashFile(filename: string): Promise<void>;
|
|
11
|
-
saveStashData(stashData: StashData): Promise<void>;
|
|
12
|
-
getStashData(filename: string): Promise<StashData>;
|
|
13
|
-
}
|
package/dist/stash.aspect.d.ts
DELETED
package/dist/stash.cmd.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { MergeStrategy } from '@teambit/legacy/dist/consumer/versions-ops/merge-version';
|
|
2
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
|
3
|
-
import { StashMain } from './stash.main.runtime';
|
|
4
|
-
export declare class StashSaveCmd implements Command {
|
|
5
|
-
private stash;
|
|
6
|
-
name: string;
|
|
7
|
-
alias: string;
|
|
8
|
-
description: string;
|
|
9
|
-
group: string;
|
|
10
|
-
options: CommandOptions;
|
|
11
|
-
loader: boolean;
|
|
12
|
-
constructor(stash: StashMain);
|
|
13
|
-
report(_arg: any, { pattern, message, }: {
|
|
14
|
-
pattern?: string;
|
|
15
|
-
message?: string;
|
|
16
|
-
}): Promise<string>;
|
|
17
|
-
}
|
|
18
|
-
export declare class StashListCmd implements Command {
|
|
19
|
-
private stash;
|
|
20
|
-
name: string;
|
|
21
|
-
description: string;
|
|
22
|
-
group: string;
|
|
23
|
-
options: CommandOptions;
|
|
24
|
-
loader: boolean;
|
|
25
|
-
constructor(stash: StashMain);
|
|
26
|
-
report(): Promise<string>;
|
|
27
|
-
}
|
|
28
|
-
type StashLoadOpts = {
|
|
29
|
-
autoMergeResolve?: MergeStrategy;
|
|
30
|
-
manual?: boolean;
|
|
31
|
-
forceOurs?: boolean;
|
|
32
|
-
forceTheirs?: boolean;
|
|
33
|
-
};
|
|
34
|
-
export declare class StashLoadCmd implements Command {
|
|
35
|
-
private stash;
|
|
36
|
-
name: string;
|
|
37
|
-
alias: string;
|
|
38
|
-
description: string;
|
|
39
|
-
group: string;
|
|
40
|
-
options: CommandOptions;
|
|
41
|
-
loader: boolean;
|
|
42
|
-
constructor(stash: StashMain);
|
|
43
|
-
report([stashId]: [string], { autoMergeResolve, forceOurs, forceTheirs, manual }: StashLoadOpts): Promise<string>;
|
|
44
|
-
}
|
|
45
|
-
export declare class StashCmd implements Command {
|
|
46
|
-
private stash;
|
|
47
|
-
name: string;
|
|
48
|
-
description: string;
|
|
49
|
-
group: string;
|
|
50
|
-
options: CommandOptions;
|
|
51
|
-
loader: boolean;
|
|
52
|
-
commands: Command[];
|
|
53
|
-
constructor(stash: StashMain);
|
|
54
|
-
report([unrecognizedSubcommand]: [string]): Promise<string>;
|
|
55
|
-
}
|
|
56
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Workspace } from '@teambit/workspace';
|
|
2
|
-
import { SnappingMain } from '@teambit/snapping';
|
|
3
|
-
import { ComponentID } from '@teambit/component';
|
|
4
|
-
import { CLIMain } from '@teambit/cli';
|
|
5
|
-
import { CheckoutMain, CheckoutProps } from '@teambit/checkout';
|
|
6
|
-
type ListResult = {
|
|
7
|
-
id: string;
|
|
8
|
-
message?: string;
|
|
9
|
-
components: string[];
|
|
10
|
-
};
|
|
11
|
-
export declare class StashMain {
|
|
12
|
-
private workspace;
|
|
13
|
-
private checkout;
|
|
14
|
-
private snapping;
|
|
15
|
-
private stashFiles;
|
|
16
|
-
constructor(workspace: Workspace, checkout: CheckoutMain, snapping: SnappingMain);
|
|
17
|
-
save(options: {
|
|
18
|
-
message?: string;
|
|
19
|
-
pattern?: string;
|
|
20
|
-
}): Promise<ComponentID[]>;
|
|
21
|
-
list(): Promise<ListResult[]>;
|
|
22
|
-
loadLatest(checkoutProps?: CheckoutProps, stashId?: string): Promise<ComponentID[]>;
|
|
23
|
-
private addComponentDataToRepo;
|
|
24
|
-
static slots: never[];
|
|
25
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
|
26
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
27
|
-
static provider([cli, workspace, checkout, snapping]: [CLIMain, Workspace, CheckoutMain, SnappingMain]): Promise<StashMain>;
|
|
28
|
-
}
|
|
29
|
-
export default StashMain;
|
|
File without changes
|