New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nx-dotnet/dotnet

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx-dotnet/dotnet - npm Package Compare versions

Comparing version 1.12.0 to 1.13.0

src/lib/utils/language-mappings/cs.d.ts

11

CHANGELOG.md

@@ -0,1 +1,12 @@

# [1.13.0](https://github.com/nx-dotnet/nx-dotnet/compare/v1.12.0...v1.13.0) (2022-07-29)
### Bug Fixes
- **core:** skip-swagger-lib should be true while experimental ([92cd2d8](https://github.com/nx-dotnet/nx-dotnet/commit/92cd2d8a8be554de74091761404be4fa2901f63a))
### Features
- **core:** added pathScheme for project generators ([#464](https://github.com/nx-dotnet/nx-dotnet/issues/464)) ([ded5eb8](https://github.com/nx-dotnet/nx-dotnet/commit/ded5eb8ad789d1cc3e71b729507a50d6146a1ae9))
- **core:** generate typescript models from swagger/openapi project ([#447](https://github.com/nx-dotnet/nx-dotnet/issues/447)) ([cd56d1c](https://github.com/nx-dotnet/nx-dotnet/commit/cd56d1c4e08a632462cc5354f0965ffe8684a9b4))
# [1.12.0](https://github.com/nx-dotnet/nx-dotnet/compare/v1.11.0...v1.12.0) (2022-06-08)

@@ -2,0 +13,0 @@

4

package.json

@@ -20,6 +20,6 @@ {

"homepage": "https://nx-dotnet.com/",
"version": "1.12.0",
"version": "1.13.0",
"typings": "./src/index.d.ts",
"peerDependencies": {
"@nx-dotnet/utils": "1.12.0",
"@nx-dotnet/utils": "1.13.0",
"fast-glob": "3.2.7",

@@ -26,0 +26,0 @@ "rimraf": "^3.0.2",

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseDotnetNewListOutput = void 0;
const language_mappings_1 = require("./language-mappings");
/**

@@ -54,3 +55,3 @@ * Expected input is from running `dotnet new --list`.

// Values end at the beginning of the next column, or the end of the line
const end = columnIndicies[idx + 1] || fieldLine.length;
const end = columnIndicies[idx + 1] || sepLine.length;
return {

@@ -67,15 +68,9 @@ start,

const value = l.slice(field.start, field.end).trim();
// Map field name + value into expected form
if (field.name === 'Short Name') {
obj.shortNames = value.split(',');
}
else if (field.name === 'Template Name' || field.name === 'Templates') {
obj.templateName = value;
}
else if (field.name === 'Language') {
obj.languages = value.replace(/[[\]]/g, '').split(',');
}
else if (field.name === 'Tags') {
obj.tags = value.split('/');
}
const propertyName = language_mappings_1.CombinedFieldMap[field.name];
const mappedValue = fieldMappingFunction(propertyName)(value);
// Typescript doesn't really like this. Its not easy to statically check,
// which is sad. We will ignore it here.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
obj[propertyName] = mappedValue;
return obj;

@@ -85,2 +80,15 @@ }, {}));

exports.parseDotnetNewListOutput = parseDotnetNewListOutput;
function fieldMappingFunction(field) {
const mappedFields = {
shortNames: (value) => value.split(','),
languages: (value) => value.replace(/[[\]]/g, '').split(','),
tags: (value) => value.split('/'),
};
if (!mappedFields[field]) {
return (v) => v;
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return mappedFields[field];
}
//# sourceMappingURL=parse-dotnet-new-list-output.js.map

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