Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vssln-parser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vssln-parser - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

dist/test/ReadFromFileTests.js

4

dist/definitions/index.d.ts

@@ -150,7 +150,7 @@ /// <reference path="../_references.d.ts" />

private text;
private stream;
private input;
private state;
private solution;
private objects;
constructor(stream: ReadableStream, callback: (result: VsSolutionFile) => void);
constructor(input: ReadableStream | string, callback: (result: VsSolutionFile) => void);
private currentState;

@@ -157,0 +157,0 @@ private currentObject;

@@ -8,3 +8,3 @@ ///<reference path="../_references.ts"/>

var Reader = (function () {
function Reader(stream, callback) {
function Reader(input, callback) {
var _this = this;

@@ -29,14 +29,20 @@ this.callback = callback;

var $this = _this;
_this.stream
.pipe(es.split())
.pipe(es.mapSync(function (line) {
_this.stream.pause();
_this.readLine(line);
_this.stream.resume();
}))
.on("end", function () {
$this.stream = null;
if (typeof _this.input === "string") {
var text = _this.input;
text.split(/\r?\n/).forEach(function (line) { return _this.readLine(line); });
$this.callback($this.solution);
$this.callback = null;
});
}
else {
var stream_1 = _this.input;
stream_1
.pipe(es.split())
.pipe(es.mapSync(function (line) {
stream_1.pause();
_this.readLine(line);
stream_1.resume();
}))
.on("end", function () {
$this.callback($this.solution);
});
}
};

@@ -66,4 +72,6 @@ this.readLine = function (line) {

this.text = "";
stream.setEncoding("utf8");
this.stream = stream; //byline(stream, {encoding: 'utf8'});
if (input["setEncoding"]) {
input["setEncoding"]("utf8");
}
this.input = input;
this.solution = {

@@ -128,2 +136,2 @@ projects: []

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx3Q0FBd0M7O0FBSXhDLHdCQUFzQixXQUV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vYmplY3QpO1xyXG4gICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgbnVsbDpcclxuICAgICAgICAgICAgICAgIHRoaXMucG9wKCk7XHJcbiAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgIHRoaXMucmVhZENvbXBsZXhWYWx1ZSh0cmFuc2l0aW9uLCBsaW5lLCBvYmplY3QsIHZlcmIpO1xyXG4gICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgfVxyXG4gICAgfTtcclxuXHJcbiAgICBwcml2YXRlIHJlYWRDb21wbGV4VmFsdWUodHJhbnNpdGlvbjogYW55LCBsaW5lLCBvYmplY3Q6IGFueSwgdmVyYjogc3RyaW5nKSB7XHJcbiAgICAgICAgY29uc3QgbmV3U3RhdGUgPSBHcmFtbWFyW3RyYW5zaXRpb25dO1xyXG4gICAgICAgIGlmIChuZXdTdGF0ZSkge1xyXG4gICAgICAgICAgICBjb25zdCBjaGlsZCA9IFJlYWRlci5jcmVhdGVBbmRBdHRhY2hDaGlsZChuZXdTdGF0ZSwgbGluZSwgb2JqZWN0LCB2ZXJiKTtcclxuICAgICAgICAgICAgdGhpcy5wdXNoKG5ld1N0YXRlLCBjaGlsZCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAvLyBlcnJvciA/XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgc3RhdGljIHJlYWRTaW1wbGVWYWx1ZShzdGF0ZTogYW55LCBsaW5lLCBvYmplY3Q6IGFueSkge1xyXG4gICAgICAgIGNvbnN0IHJlZ2V4ID0gc3RhdGVbXCIqXCJdO1xyXG4gICAgICAgIGlmIChyZWdleCkge1xyXG4gICAgICAgICAgICByZWdleC5sYXN0SW5kZXggPSAwO1xyXG4gICAgICAgICAgICBjb25zdCBtID0gcmVnZXguZXhlYyhsaW5lKTtcclxuICAgICAgICAgICAgaWYgKG0gJiYgbS5sZW5ndGggPiAyKSB7XHJcbiAgICAgICAgICAgICAgICBsZXQga2V5ID0gbVsxXTtcclxuICAgICAgICAgICAgICAgIGlmIChzdGF0ZS5fY2FtZWxDYXNlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAga2V5ID0gY2FtZWxDYXNlKGtleSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICBvYmplY3Rba2V5XSA9IG1bMl07XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIC8vIGVycm9yP1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBwcml2YXRlIHN0YXRpYyBjcmVhdGVBbmRBdHRhY2hDaGlsZChuZXdTdGF0ZTogYW55LCBsaW5lLCBwYXJlbnQ6IGFueSwgdmVyYjogc3RyaW5nKTogYW55IHtcclxuICAgICAgICBpZiAoIW5ld1N0YXRlLl9mYWN0b3J5KSB7XHJcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgY29uc3QgbWF0Y2hlcyA9IG5ld1N0YXRlLl9yZWdleHBcclxuICAgICAgICAgICAgPyB0aGlzLmV4ZWNSZWdleChuZXdTdGF0ZS5fcmVnZXhwLCBsaW5lKVxyXG4gICAgICAgICAgICA6IFtdO1xyXG4gICAgICAgIGNvbnN0IGNoaWxkID0gbmV3U3RhdGUuX2ZhY3RvcnkobWF0Y2hlcyk7XHJcblxyXG4gICAgICAgIGlmIChuZXdTdGF0ZS5fYXR0YWNoKSB7XHJcbiAgICAgICAgICAgIG5ld1N0YXRlLl9hdHRhY2gocGFyZW50LCBjaGlsZCwgbWF0Y2hlcyk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICBwYXJlbnRbdmVyYi50b0xvd2VyQ2FzZS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ZXh0ID0gdGhpcy5pbnB1dCBhcyBzdHJpbmc7XHJcbiAgICAgICAgICAgIHRleHQuc3BsaXQoL1xccj9cXG4vKS5mb3JFYWNoKGxpbmUgPT4gdGhpcy5yZWFkTGluZShsaW5lKSk7XHJcbiAgICAgICAgICAgICR0aGlzLmNhbGxiYWNrKCR0aGlzLnNvbHV0aW9uKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIGNvbnN0IHN0cmVhbSA9IHRoaXMuaW5wdXQgYXMgUmVhZGFibGVTdHJlYW07XHJcbiAgICAgICAgICAgIHN0cmVhbVxyXG4gICAgICAgICAgICAgICAgLnBpcGUoZXMuc3BsaXQoKSlcclxuICAgICAgICAgICAgICAgIC5waXBlKGVzLm1hcFN5bmMobGluZSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgc3RyZWFtLnBhdXNlKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5yZWFkTGluZShsaW5lKTtcclxuICAgICAgICAgICAgICAgICAgICBzdHJlYW0ucmVzdW1lKCk7XHJcbiAgICAgICAgICAgICAgICB9KSlcclxuXHJcbiAgICAgICAgICAgICAgICAvLy5vbihcImRhdGFcIiwgdGhpcy5yZWFkTGluZSlcclxuICAgICAgICAgICAgICAgIC5vbihcImVuZFwiLCAoKSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgJHRoaXMuY2FsbGJhY2soJHRoaXMuc29sdXRpb24pO1xyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfVxyXG4gICAgfTtcclxuXHJcbiAgICBwcml2YXRlIHJlYWRMaW5lID0gbGluZSA9PiB7XHJcbiAgICAgICAgcmVnZXhfbGluZS5sYXN0SW5kZXggPSAwO1xyXG4gICAgICAgIGNvbnN0IG1hdGNoZXMgPSByZWdleF9saW5lLmV4ZWMobGluZSk7XHJcbiAgICAgICAgaWYgKCFtYXRjaGVzIHx8ICFtYXRjaGVzLmxlbmd0aCkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBjb25zdCB2ZXJiID0gbWF0Y2hlc1swXTtcclxuICAgICAgICBjb25zdCBzdGF0ZSA9IHRoaXMuY3VycmVudFN0YXRlKCk7XHJcbiAgICAgICAgY29uc3Qgb2JqZWN0ID0gdGhpcy5jdXJyZW50T2JqZWN0KCk7XHJcbiAgICAgICAgY29uc3QgdHJhbnNpdGlvbiA9IHN0YXRlW3ZlcmIudG9Mb3dlckNhc2UoKV07XHJcblxyXG4gICAgICAgIHN3aXRjaCAodHJhbnNpdGlvbikge1xyXG4gICAgICAgICAgICBjYXNlIHVuZGVmaW5lZDpcclxuICAgICAgICAgICAgICAgIFJlYWRlci5yZWFkU2ltcGxlVmFsdWUoc3RhdGUsIGxpbmUsIG9iamVjdCk7XHJcbiAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgY2FzZSBudWxsOlxyXG4gICAgICAgICAgICAgICAgdGhpcy5wb3AoKTtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgICAgICAgdGhpcy5yZWFkQ29tcGxleFZhbHVlKHRyYW5zaXRpb24sIGxpbmUsIG9iamVjdCwgdmVyYik7XHJcbiAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICB9XHJcbiAgICB9O1xyXG5cclxuICAgIHByaXZhdGUgcmVhZENvbXBsZXhWYWx1ZSh0cmFuc2l0aW9uOiBhbnksIGxpbmUsIG9iamVjdDogYW55LCB2ZXJiOiBzdHJpbmcpIHtcclxuICAgICAgICBjb25zdCBuZXdTdGF0ZSA9IEdyYW1tYXJbdHJhbnNpdGlvbl07XHJcbiAgICAgICAgaWYgKG5ld1N0YXRlKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IGNoaWxkID0gUmVhZGVyLmNyZWF0ZUFuZEF0dGFjaENoaWxkKG5ld1N0YXRlLCBsaW5lLCBvYmplY3QsIHZlcmIpO1xyXG4gICAgICAgICAgICB0aGlzLnB1c2gobmV3U3RhdGUsIGNoaWxkKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIC8vIGVycm9yID9cclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBzdGF0aWMgcmVhZFNpbXBsZVZhbHVlKHN0YXRlOiBhbnksIGxpbmUsIG9iamVjdDogYW55KSB7XHJcbiAgICAgICAgY29uc3QgcmVnZXggPSBzdGF0ZVtcIipcIl07XHJcbiAgICAgICAgaWYgKHJlZ2V4KSB7XHJcbiAgICAgICAgICAgIHJlZ2V4Lmxhc3RJbmRleCA9IDA7XHJcbiAgICAgICAgICAgIGNvbnN0IG0gPSByZWdleC5leGVjKGxpbmUpO1xyXG4gICAgICAgICAgICBpZiAobSAmJiBtLmxlbmd0aCA+IDIpIHtcclxuICAgICAgICAgICAgICAgIGxldCBrZXkgPSBtWzFdO1xyXG4gICAgICAgICAgICAgICAgaWYgKHN0YXRlLl9jYW1lbENhc2UpIHtcclxuICAgICAgICAgICAgICAgICAgICBrZXkgPSBjYW1lbENhc2Uoa2V5KTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIG9iamVjdFtrZXldID0gbVsyXTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgLy8gZXJyb3I/XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgc3RhdGljIGNyZWF0ZUFuZEF0dGFjaENoaWxkKG5ld1N0YXRlOiBhbnksIGxpbmUsIHBhcmVudDogYW55LCB2ZXJiOiBzdHJpbmcpOiBhbnkge1xyXG4gICAgICAgIGlmICghbmV3U3RhdGUuX2ZhY3RvcnkpIHtcclxuICAgICAgICAgICAgcmV0dXJuIG51bGw7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBjb25zdCBtYXRjaGVzID0gbmV3U3RhdGUuX3JlZ2V4cFxyXG4gICAgICAgICAgICA/IHRoaXMuZXhlY1JlZ2V4KG5ld1N0YXRlLl9yZWdleHAsIGxpbmUpXHJcbiAgICAgICAgICAgIDogW107XHJcbiAgICAgICAgY29uc3QgY2hpbGQgPSBuZXdTdGF0ZS5fZmFjdG9yeShtYXRjaGVzKTtcclxuXHJcbiAgICAgICAgaWYgKG5ld1N0YXRlLl9hdHRhY2gpIHtcclxuICAgICAgICAgICAgbmV3U3RhdGUuX2F0dGFjaChwYXJlbnQsIGNoaWxkLCBtYXRjaGVzKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIHBhcmVudFt2ZXJiLnRvTG93ZXJDYXNlKCldID0gY2hpbGQ7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gY2hpbGQ7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBzdGF0aWMgZXhlY1JlZ2V4KHJlZ2V4OiBSZWdFeHAsIGxpbmUpOiBzdHJpbmdbXSB7XHJcbiAgICAgICAgY29uc3QgbWF0Y2hlcyA9IFtdO1xyXG4gICAgICAgIHJlZ2V4Lmxhc3RJbmRleCA9IDA7XHJcblxyXG4gICAgICAgIGZvciAobGV0IG0gPSByZWdleC5leGVjKGxpbmUpOyBtICYmIG0ubGVuZ3RoOyBtID0gcmVnZXguZXhlYyhsaW5lKSkge1xyXG4gICAgICAgICAgICBtYXRjaGVzLnB1c2gobVttLmxlbmd0aCA9PSAxID8gMCA6IDFdKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBtYXRjaGVzO1xyXG4gICAgfVxyXG59Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
{
"name": "vssln-parser",
"description": "Parses Visual Studio Solution (sln) files and returns information about projects and project dependencies.",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "https://github.com/mhusseini/vssln-parser",

@@ -6,0 +6,0 @@ "repository": {

@@ -6,4 +6,5 @@ # vssln-parser

Install package with NPM and add it to your development dependencies:
```npm install vssln-parser --save-dev```
`npm install vssln-parser --save-dev`
## Usage

@@ -28,2 +29,2 @@ ```typescript

## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License)
[MIT License](http://en.wikipedia.org/wiki/MIT_License)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc