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

ng-typeview

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-typeview - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

29

dist/src/controller-parser.js

@@ -312,15 +312,26 @@ "use strict";

function nodeExtractScopeInterface(node) {
if (node.kind === ts.SyntaxKind.InterfaceDeclaration && !nodeIsExported(node)) {
var curIntfInfo = parseScopeInterface(node);
if (curIntfInfo.isSome()) {
scopeInfo = curIntfInfo.map(function (x) { return x[0]; });
scopeTypeParams = curIntfInfo.map(function (x) { return x[1]; });
// so that the viewtest file may compile, we must copy
// in it classes & interfaces that may have been declared
// privately in the controller. We do limit ourselves to
// top-level declarations on which the Scope type declaration
// may depend, that's why we check whether they're under the
// module block. if there is no TS module and declarations are
// toplevel then no need to copy them as they were global anyway.
if (node.parent &&
node.parent.kind === ts.SyntaxKind.ModuleBlock &&
!nodeIsExported(node)) {
if (node.kind === ts.SyntaxKind.InterfaceDeclaration) {
var curIntfInfo = parseScopeInterface(node);
if (curIntfInfo.isSome()) {
scopeInfo = curIntfInfo.map(function (x) { return x[0]; });
scopeTypeParams = curIntfInfo.map(function (x) { return x[1]; });
}
else {
nonExportedDeclarations.push(node.getText());
}
}
else {
if (node.kind === ts.SyntaxKind.ClassDeclaration) {
nonExportedDeclarations.push(node.getText());
}
}
if (node.kind === ts.SyntaxKind.ClassDeclaration && !nodeIsExported(node)) {
nonExportedDeclarations.push(node.getText());
}
if (node.kind === ts.SyntaxKind.ModuleDeclaration) {

@@ -327,0 +338,0 @@ var moduleLevel = node.name.text;

{
"name": "ng-typeview",
"version": "0.0.24",
"version": "0.0.25",
"description": "library to enable type-checking of angular views when using typescript",

@@ -5,0 +5,0 @@ "keywords": [

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