You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Ensure that prerelease composed entirely of [label, sequence] pairs
112
+
version.prerelease.forEach((elem,idx,arr)=>{
113
+
constnext: string|number|undefined=arr[idx+1];
114
+
if(typeofelem==='string'){
115
+
if(!Object.keys(releaseLabels).includes(elem)){
116
+
validationErrors.push(
117
+
`Label ${elem} is not one of ${Object.keys(releaseLabels).join(
118
+
',',
119
+
)}`,
120
+
);
121
+
}
122
+
if(next===undefined||!Number.isInteger(next)){
123
+
validationErrors.push(
124
+
`Label ${elem} must be followed by a positive integer`,
125
+
);
126
+
}
127
+
}
128
+
});
129
+
130
+
if(validationErrors.length>0){
100
131
thrownewError(
101
132
`Unable to map prerelease identifier (in: ${assemblyVersion}) components to python: ${inspect(
102
133
version.prerelease,
103
-
)}. The format should be 'X.Y.Z-label.sequence', where sequence is a positive integer, and label is "dev", "pre", "alpha", beta", or "rc"`,
134
+
)}. The format should be 'X.Y.Z-[label.sequence][.post.sequence][.(dev|pre).sequence]', where sequence is a positive integer and label is one of ${inspect(
0 commit comments