You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@charlietango/react-docs-net

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@charlietango/react-docs-net - npm Package Compare versions

Comparing version

to
4.1.0

18

lib/helpers.js

@@ -27,2 +27,13 @@ //

function getGenerics(name ) {
const match = name.match(/<(.+)>/);
if (match) {
return match[1].split(',').map(type => {
if (type.endsWith('Types')) return typesName(type);
return modelName(type);
});
}
return undefined;
}
function cleanName(name ) {

@@ -34,4 +45,7 @@ const clean = name.replace('ViewModel', '').replace(/(Model|Types)$/, '');

function modelName(name ) {
if (name.endsWith('Types')) return typesName(name);
return cleanName(name) + 'ViewModel';
const generics = getGenerics(name);
const append = generics ? `<${generics.join(', ')}>` : '';
if (name.endsWith('Types')) return typesName(name) + append;
return cleanName(name) + 'ViewModel' + append;
}

@@ -38,0 +52,0 @@

4

lib/models/view-model.js

@@ -111,3 +111,5 @@ //

${comment(model.description, 4)}
public ${flags.isStatic ? 'static' : 'partial'} class ${modelName(name)}
public ${flags.isStatic ? 'static' : 'partial'} class ${modelName(
model.displayName || name
)}
{

@@ -114,0 +116,0 @@ ${propsResult.output}

{
"name": "@charlietango/react-docs-net",
"description": "Package and publish a NuGet package to a custom feed.",
"version": "4.0.0",
"version": "4.1.0",
"main": "lib/index.js",

@@ -43,3 +43,3 @@ "bin": {

},
"gitHead": "7ca6453f1040e5d00872382d441f575ade18a441"
"gitHead": "db216ed70a80686b76a61524b88b064b8bd84770"
}

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.