snyk-nuget-plugin 1.23.0 → 1.23.4
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.
|
@@ -26,14 +26,14 @@ async function getTargetFrameworksFromProjFile(rootDir) {
|
|
|
26
26
|
reject(new errors_1.FileNotProcessableError(err));
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
const parsedTargetFrameworks = (_b = (_a = parsedCsprojContents === null || parsedCsprojContents === void 0 ? void 0 : parsedCsprojContents.Project) === null || _a === void 0 ? void 0 : _a.PropertyGroup) === null || _b === void 0 ? void 0 : _b.reduce((targetFrameworks, propertyGroup) => {
|
|
29
|
+
const parsedTargetFrameworks = ((_b = (_a = parsedCsprojContents === null || parsedCsprojContents === void 0 ? void 0 : parsedCsprojContents.Project) === null || _a === void 0 ? void 0 : _a.PropertyGroup) === null || _b === void 0 ? void 0 : _b.reduce((targetFrameworks, propertyGroup) => {
|
|
30
30
|
var _a, _b, _c;
|
|
31
31
|
const targetFrameworkSource = ((_a = propertyGroup === null || propertyGroup === void 0 ? void 0 : propertyGroup.TargetFrameworkVersion) === null || _a === void 0 ? void 0 : _a[0]) || ((_b = propertyGroup === null || propertyGroup === void 0 ? void 0 : propertyGroup.TargetFramework) === null || _b === void 0 ? void 0 : _b[0]) || ((_c = propertyGroup === null || propertyGroup === void 0 ? void 0 : propertyGroup.TargetFrameworks) === null || _c === void 0 ? void 0 : _c[0]) ||
|
|
32
32
|
'';
|
|
33
33
|
return targetFrameworks
|
|
34
34
|
.concat(targetFrameworkSource.split(';'))
|
|
35
35
|
.filter(Boolean);
|
|
36
|
-
}, []);
|
|
36
|
+
}, [])) || [];
|
|
37
37
|
if (parsedTargetFrameworks.length < 1) {
|
|
38
38
|
debug('Could not find TargetFrameworkVersion/TargetFramework' +
|
|
39
39
|
'/TargetFrameworks defined in the Project.PropertyGroup field of ' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csproj-parser.js","sourceRoot":"","sources":["../../lib/nuget-parser/csproj-parser.ts"],"names":[],"mappings":";;;AAAA,sCAAuE;AAEvE,yBAAyB;AACzB,6BAA6B;AAC7B,mCAAmC;AACnC,qCAAqC;AAErC,2CAAkD;AAClD,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAE3B,KAAK,UAAU,+BAA+B,CACnD,OAAe;IAEf,OAAO,IAAI,OAAO,CAA8B,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAClE,KAAK,CAAC,mCAAmC,GAAG,OAAO,CAAC,CAAC;QACrD,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;QACpD,IAAI,CAAC,UAAU,EAAE;YACf,KAAK,CAAC,4BAA4B,GAAG,OAAO,GAAG,GAAG,CAAC,CAAC;YACpD,OAAO,CAAC,SAAS,CAAC,CAAC;YACnB,OAAO;SACR;QAED,KAAK,CAAC,kDAAkD,GAAG,UAAU,CAAC,CAAC;QAEvE,MAAM,cAAc,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAEnD,IAAI,gBAAgB,GAAoC,EAAE,CAAC;QAC3D,QAAQ,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,GAAG,EAAE,oBAAoB,EAAE,EAAE;;YACjE,IAAI,GAAG,EAAE;gBACP,MAAM,CAAC,IAAI,gCAAuB,CAAC,GAAG,CAAC,CAAC,CAAC;gBACzC,OAAO;aACR;YAED,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"csproj-parser.js","sourceRoot":"","sources":["../../lib/nuget-parser/csproj-parser.ts"],"names":[],"mappings":";;;AAAA,sCAAuE;AAEvE,yBAAyB;AACzB,6BAA6B;AAC7B,mCAAmC;AACnC,qCAAqC;AAErC,2CAAkD;AAClD,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAE3B,KAAK,UAAU,+BAA+B,CACnD,OAAe;IAEf,OAAO,IAA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EV,IAAI,sBAAsB,CAAC,MAAM,GAAG,CAAC,EAAE;gBACrC,KAAK,CACH,uDAAuD;oBACrD,kEAAkE;oBAClE,mBAAmB,CACtB,CAAC;aACH;YACD,gBAAgB,GAAG,sBAAsB;iBACtC,GAAG,CAAC,+BAAmB,CAAC;iBACxB,MAAM,CAAC,OAAO,CAAC,CAAC;YACnB,IAAI,sBAAsB,CAAC,MAAM,GAAG,CAAC,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;gBACpE,KAAK,CACH,uEAAuE;oBACrE,UAAU,CACb,CAAC;aACH;YACD,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AA1DD,0EA0DC;AAED,SAAS,QAAQ,CAAC,OAAO,EAAE,MAAM;IAC/B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QAC3B,MAAM,IAAI,0BAAiB,CAAC,gBAAgB,GAAG,OAAO,CAAC,CAAC;KACzD;IACD,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAE7C,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YACzB,OAAO,QAAQ,CAAC;SACjB;KACF;AACH,CAAC"}
|
|
@@ -50,7 +50,11 @@ async function loadNuspecFromAsync(dep) {
|
|
|
50
50
|
if (!nuspecZipData) {
|
|
51
51
|
throw new Error(`failed to open nupkg file as an archive from: ${nupkgPath}`);
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
const rawNuspecContent = await nuspecZipData.files[nuspecFile].async('text');
|
|
54
|
+
const encoding = detectNuspecContentEncoding(rawNuspecContent);
|
|
55
|
+
const encodedNuspecContent = Buffer.from(rawNuspecContent).toString(encoding);
|
|
56
|
+
const normalisedNuspecContent = removePotentialUtf16Characters(encodedNuspecContent);
|
|
57
|
+
return normalisedNuspecContent;
|
|
54
58
|
}
|
|
55
59
|
//this is exported for testing, but should not executed directly. Hence the '_' in the name.
|
|
56
60
|
async function _parsedNuspec(nuspecContent, targetFramework, depName) {
|
|
@@ -58,7 +62,7 @@ async function _parsedNuspec(nuspecContent, targetFramework, depName) {
|
|
|
58
62
|
const parsedNuspec = await parseXML.parseStringPromise(nuspecContent);
|
|
59
63
|
let ownDeps = [];
|
|
60
64
|
//note: this will throw if assertion fails
|
|
61
|
-
assertNuspecSchema(parsedNuspec);
|
|
65
|
+
assertNuspecSchema(nuspecContent, parsedNuspec);
|
|
62
66
|
for (const metadata of parsedNuspec.package.metadata) {
|
|
63
67
|
(_a = metadata.dependencies) === null || _a === void 0 ? void 0 : _a.forEach(rawDependency => {
|
|
64
68
|
// Find and add target framework version specific dependencies
|
|
@@ -84,34 +88,30 @@ async function _parsedNuspec(nuspecContent, targetFramework, depName) {
|
|
|
84
88
|
};
|
|
85
89
|
}
|
|
86
90
|
exports._parsedNuspec = _parsedNuspec;
|
|
87
|
-
function assertNuspecSchema(parsedNuspec) {
|
|
91
|
+
function assertNuspecSchema(nuspecContent, parsedNuspec) {
|
|
88
92
|
var _a;
|
|
89
93
|
if (!((_a = parsedNuspec.package) === null || _a === void 0 ? void 0 : _a.metadata)) {
|
|
90
|
-
throw new Error('This is an invalid nuspec file. Package or Metadata xml section is missing. This is a required element. See https://docs.microsoft.com/en-us/nuget/reference/nuspec'
|
|
94
|
+
throw new Error('This is an invalid nuspec file. Package or Metadata xml section is missing. This is a required element. See https://docs.microsoft.com/en-us/nuget/reference/nuspec. The nuspec in question: ' +
|
|
95
|
+
nuspecContent);
|
|
91
96
|
}
|
|
92
97
|
//just in case, this should *not* happen
|
|
93
98
|
if (!Array.isArray(parsedNuspec.package.metadata)) {
|
|
94
|
-
throw new Error('This is an invalid nuspec file; the metadata tag is supposed to be a collection of objects but it is not!'
|
|
99
|
+
throw new Error('This is an invalid nuspec file; the metadata tag is supposed to be a collection of objects but it is not! The nuspec in question: ' +
|
|
100
|
+
nuspecContent);
|
|
95
101
|
}
|
|
96
102
|
for (const metadata of parsedNuspec.package.metadata) {
|
|
97
103
|
//just in case, this shouldn't happen as this would indicate invalid/malformed nuspec file
|
|
98
104
|
if (metadata == null || typeof metadata !== 'object') {
|
|
99
105
|
throw new Error('Expected elements in a "metadata" tag to be objects, but they were ' +
|
|
100
106
|
typeof metadata +
|
|
101
|
-
', this is not supposed to happen and is likely due to malformed nuspec file.'
|
|
107
|
+
', this is not supposed to happen and is likely due to malformed nuspec file. The nuspec in question: ' +
|
|
108
|
+
nuspecContent);
|
|
102
109
|
}
|
|
103
110
|
if (metadata.dependencies) {
|
|
104
111
|
//just in case, error would indicate malformed nuspec
|
|
105
112
|
if (!Array.isArray(metadata.dependencies)) {
|
|
106
|
-
throw new Error('Expected that "dependencies" tag would be an array but it isn\'t. This is not supposed to happen and is likely due to malformed nuspec file!'
|
|
107
|
-
|
|
108
|
-
for (const rawDependency of metadata.dependencies) {
|
|
109
|
-
//just in case, shouldn't happen as this would indicate malformed nuspec format
|
|
110
|
-
if (typeof rawDependency !== 'object') {
|
|
111
|
-
throw new Error('Unexpected dependency value. Expected it to be object but it was ' +
|
|
112
|
-
typeof rawDependency +
|
|
113
|
-
', this is likely a malformed nuspec');
|
|
114
|
-
}
|
|
113
|
+
throw new Error('Expected that "dependencies" tag would be an array but it isn\'t. This is not supposed to happen and is likely due to malformed nuspec file! The nuspec in question: ' +
|
|
114
|
+
nuspecContent);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}
|
|
@@ -170,4 +170,24 @@ function extractDepsFromRaw(rawDependencies) {
|
|
|
170
170
|
});
|
|
171
171
|
return deps;
|
|
172
172
|
}
|
|
173
|
+
var SupportedEncodings;
|
|
174
|
+
(function (SupportedEncodings) {
|
|
175
|
+
SupportedEncodings["UTF8"] = "utf-8";
|
|
176
|
+
SupportedEncodings["UTF16LE"] = "utf-16le";
|
|
177
|
+
})(SupportedEncodings || (SupportedEncodings = {}));
|
|
178
|
+
function detectNuspecContentEncoding(nuspecContent) {
|
|
179
|
+
// 65533 is a code for replacement character that is unique to UTF-16
|
|
180
|
+
// https://www.unicodepedia.com/unicode/specials/fffd/replacement-character/
|
|
181
|
+
if (nuspecContent.charCodeAt(0) === 65533) {
|
|
182
|
+
return SupportedEncodings.UTF16LE;
|
|
183
|
+
}
|
|
184
|
+
return SupportedEncodings.UTF8;
|
|
185
|
+
}
|
|
186
|
+
function removePotentialUtf16Characters(input) {
|
|
187
|
+
return input
|
|
188
|
+
.replace(/\uFFFD/g, '')
|
|
189
|
+
.replace(/\uBFEF/g, '')
|
|
190
|
+
.replace(/\uBDBF/g, '')
|
|
191
|
+
.replace(/\uEFBD/g, '');
|
|
192
|
+
}
|
|
173
193
|
//# sourceMappingURL=nuspec-parser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nuspec-parser.js","sourceRoot":"","sources":["../../lib/nuget-parser/nuspec-parser.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,yBAAyB;AACzB,6BAA6B;AAC7B,mCAAmC;AAEnC,qCAAqC;AAIrC,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAElC,MAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAE9C,KAAK,UAAU,WAAW,CAC/B,GAAmB,EACnB,eAAgC;IAEhC,YAAY;IACZ,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;KACH;IAED,oBAAoB;IACpB,IAAI,CAAC,eAAe,EAAE;QACpB,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;KACH;IAED,MAAM,aAAa,GAAG,MAAM,mBAAmB,CAAC,GAAG,CAAC,CAAC;IACrD,IAAI,a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