snyk-nuget-plugin 1.23.2 → 1.23.5
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/errors/invalid-folder-format-error.js +13 -0
- package/dist/errors/invalid-folder-format-error.js.map +1 -0
- package/dist/nuget-parser/dependency.js +7 -1
- package/dist/nuget-parser/dependency.js.map +1 -1
- package/dist/nuget-parser/nuspec-parser.js +36 -16
- package/dist/nuget-parser/nuspec-parser.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidFolderFormatError = void 0;
|
|
4
|
+
class InvalidFolderFormatError extends Error {
|
|
5
|
+
constructor(...args) {
|
|
6
|
+
super(...args);
|
|
7
|
+
this.code = 422;
|
|
8
|
+
this.name = 'InvalidFolderFormat';
|
|
9
|
+
Error.captureStackTrace(this, InvalidFolderFormatError);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.InvalidFolderFormatError = InvalidFolderFormatError;
|
|
13
|
+
//# sourceMappingURL=invalid-folder-format-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-folder-format-error.js","sourceRoot":"","sources":["../../lib/errors/invalid-folder-format-error.ts"],"names":[],"mappings":";;;AAAA,MAAa,wBAAyB,SAAQ,KAAK;IAIjD,YAAmB,GAAG,IAAI;QACxB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAJV,SAAI,GAAG,GAAG,CAAC;QACX,SAAI,GAAG,qBAAqB,CAAC;QAIlC,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,4DAQC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fromPackagesConfigEntry = exports.fromFolderName = exports.cloneShallow = void 0;
|
|
4
4
|
const debugModule = require("debug");
|
|
5
|
+
const invalid_folder_format_error_1 = require("../errors/invalid-folder-format-error");
|
|
5
6
|
const debug = debugModule('snyk');
|
|
6
7
|
function cloneShallow(dep) {
|
|
7
8
|
// clone, without the dependencies
|
|
@@ -13,7 +14,12 @@ function cloneShallow(dep) {
|
|
|
13
14
|
}
|
|
14
15
|
exports.cloneShallow = cloneShallow;
|
|
15
16
|
function extractFromDotVersionNotation(expression) {
|
|
16
|
-
const
|
|
17
|
+
const regexParseResult = /(?=\S+)(?=\.{1})((\.\d+)+((-?\w+\.?\d*)|(\+?[0-9a-f]{5,40}))?)/.exec(expression);
|
|
18
|
+
if (regexParseResult == null) {
|
|
19
|
+
debug(`Failed to extract version from the folder: ${expression}. This is not supposed to happen and should be reported - the folders should always be in the form of [FolderName].[semantic version]`);
|
|
20
|
+
throw new invalid_folder_format_error_1.InvalidFolderFormatError(`Tried to parse package version from a folder name but failed. I received: ${expression}`);
|
|
21
|
+
}
|
|
22
|
+
const versionRef = regexParseResult[0];
|
|
17
23
|
const name = expression.split(versionRef)[0];
|
|
18
24
|
return {
|
|
19
25
|
name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependency.js","sourceRoot":"","sources":["../../lib/nuget-parser/dependency.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AACrC,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAQlC,SAAgB,YAAY,CAAC,GAAe;IAC1C,kCAAkC;IAClC,OAAO;QACL,YAAY,EAAE,EAAE;QAChB,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,OAAO,EAAE,GAAG,CAAC,OAAO;KACrB,CAAC;AACJ,CAAC;AAPD,oCAOC;AAED,SAAS,6BAA6B,CAAC,UAAU;IAC/C,MAAM,
|
|
1
|
+
{"version":3,"file":"dependency.js","sourceRoot":"","sources":["../../lib/nuget-parser/dependency.ts"],"names":[],"mappings":";;;AAAA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O;QACL,YAAY,EAAE,EAAE;QAChB,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE;QACnB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO;KAC5B,CAAC;AACJ,CAAC;AAbD,0DAaC"}
|
|
@@ -50,15 +50,19 @@ 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) {
|
|
57
61
|
var _a;
|
|
58
|
-
const parsedNuspec = await parseXML.parseStringPromise(nuspecContent
|
|
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,mCAA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