Socket
Socket
Sign inDemoInstall

snyk-paket-parser

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-paket-parser - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

19

dist/dependencies-parser.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lodash_1 = require("lodash");
const line_parser_1 = require("./line-parser");

@@ -87,3 +86,3 @@ const COMMENTS = ['#', '//'];

for (const line of lines) {
const isComment = !!COMMENTS.find((comment) => lodash_1.startsWith(line.data, comment));
const isComment = !!COMMENTS.find((comment) => line.data.startsWith(comment));
// Ignore commented lines.

@@ -93,3 +92,3 @@ if (isComment) {

}
if (lodash_1.startsWith(line.data, `${GROUP} `)) {
if (line.data.startsWith(`${GROUP} `)) {
result.push(group);

@@ -103,21 +102,21 @@ group = {

}
else if (lodash_1.startsWith(line.data, `${SOURCE} `)) {
else if (line.data.startsWith(`${SOURCE} `)) {
group.sources.push(parseSource(line.data));
}
else if (lodash_1.startsWith(line.data, `${GITHUB} `)) {
else if (line.data.startsWith(`${GITHUB} `)) {
group.dependencies.push(parseGithub(line.data));
}
else if (lodash_1.startsWith(line.data, `${NUGET} `)) {
else if (line.data.startsWith(`${NUGET} `)) {
group.dependencies.push(parseNuget(line.data));
}
else if (lodash_1.startsWith(line.data, `${CLITOOL} `)) {
else if (line.data.startsWith(`${CLITOOL} `)) {
// TODO
}
else if (lodash_1.startsWith(line.data, `${GIT} `)) {
else if (line.data.startsWith(`${GIT} `)) {
// TODO
}
else if (lodash_1.startsWith(line.data, `${GIST} `)) {
else if (line.data.startsWith(`${GIST} `)) {
// TODO
}
else if (lodash_1.startsWith(line.data, `${HTTP} `)) {
else if (line.data.startsWith(`${HTTP} `)) {
// TODO

@@ -124,0 +123,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lodash_1 = require("lodash");
const line_parser_1 = require("./line-parser");

@@ -62,3 +61,3 @@ const REPOSITORY_TYPES = ['HTTP', 'GIST', 'GIT', 'NUGET', 'GITHUB']; // naming convention in paket's standard parser

if (line.indentation === 0) { // group or group option
if (lodash_1.startsWith(upperCaseLine, GROUP)) {
if (upperCaseLine.startsWith(GROUP)) {
result.groups.push(group);

@@ -85,3 +84,3 @@ depContext = {};

else if (line.indentation === 1) { // remote or specs
if (lodash_1.startsWith(upperCaseLine, REMOTE)) {
if (upperCaseLine.startsWith(REMOTE)) {
const remote = line.data.substring(REMOTE.length + ':'.length).trim();

@@ -93,3 +92,3 @@ if (remote) {

}
else if (lodash_1.startsWith(upperCaseLine, SPECS)) {
else if (upperCaseLine.startsWith(SPECS)) {
// TODO: for now we add the specs as boolean in meta

@@ -96,0 +95,0 @@ group.specs = true;

@@ -28,7 +28,5 @@ {

"dependencies": {
"lodash": "4.17.11",
"tslib": "^1.9.3"
},
"devDependencies": {
"@types/lodash": "^4.14.116",
"@types/node": "^4.0.47",

@@ -42,3 +40,3 @@ "ts-node": "7.0.0",

},
"version": "1.3.0"
"version": "1.3.1"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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