@teambit/snapping 1.0.921 → 1.0.923
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/dist/snapping.main.runtime.d.ts +3 -1
- package/dist/snapping.main.runtime.js +5 -1
- package/dist/snapping.main.runtime.js.map +1 -1
- package/dist/snapping.spec.js +34 -0
- package/dist/snapping.spec.js.map +1 -1
- package/dist/version-maker.d.ts +2 -0
- package/dist/version-maker.js +8 -3
- package/dist/version-maker.js.map +1 -1
- package/package.json +35 -35
- /package/dist/{preview-1774534698988.js → preview-1774632282463.js} +0 -0
|
@@ -132,6 +132,7 @@ export declare class SnappingMain {
|
|
|
132
132
|
stagedConfig?: import("@teambit/scope").StagedConfig;
|
|
133
133
|
removedComponents?: ComponentIdList;
|
|
134
134
|
totalComponentsCount?: number;
|
|
135
|
+
batchId: string;
|
|
135
136
|
}>;
|
|
136
137
|
private addAspectsFromConfigObject;
|
|
137
138
|
snapFromScope(snapDataPerCompRaw: SnapDataPerCompRaw[], params: {
|
|
@@ -184,11 +185,12 @@ export declare class SnappingMain {
|
|
|
184
185
|
* used externally. don't make it private.
|
|
185
186
|
*/
|
|
186
187
|
_getPublishedPackages(components: ConsumerComponent[]): PackageIntegritiesByPublishedPackages;
|
|
187
|
-
_addCompToObjects({ source, lane, shouldValidateVersion, addVersionOpts, }: {
|
|
188
|
+
_addCompToObjects({ source, lane, shouldValidateVersion, addVersionOpts, batchId, }: {
|
|
188
189
|
source: ConsumerComponent;
|
|
189
190
|
lane?: Lane;
|
|
190
191
|
shouldValidateVersion?: boolean;
|
|
191
192
|
addVersionOpts?: AddVersionOpts;
|
|
193
|
+
batchId?: string;
|
|
192
194
|
}): Promise<{
|
|
193
195
|
component: ModelComponent;
|
|
194
196
|
version: Version;
|
|
@@ -1030,13 +1030,17 @@ another option, in case this dependency is not in main yet is to remove all refe
|
|
|
1030
1030
|
source,
|
|
1031
1031
|
lane,
|
|
1032
1032
|
shouldValidateVersion = false,
|
|
1033
|
-
addVersionOpts
|
|
1033
|
+
addVersionOpts,
|
|
1034
|
+
batchId
|
|
1034
1035
|
}) {
|
|
1035
1036
|
const {
|
|
1036
1037
|
addedVersionStr,
|
|
1037
1038
|
component,
|
|
1038
1039
|
version
|
|
1039
1040
|
} = await this._addCompFromScopeToObjects(source, lane, addVersionOpts);
|
|
1041
|
+
if (batchId) {
|
|
1042
|
+
version.batchId = batchId;
|
|
1043
|
+
}
|
|
1040
1044
|
const unmergedComponent = this.scope.legacyScope.objects.unmergedComponents.getEntry(component.toComponentId());
|
|
1041
1045
|
if (unmergedComponent) {
|
|
1042
1046
|
if (unmergedComponent.unrelated) {
|