Socket
Socket
Sign inDemoInstall

@angular/language-service

Package Overview
Dependencies
Maintainers
1
Versions
812
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/language-service - npm Package Compare versions

Comparing version 4.0.0-beta.1 to 4.0.0-beta.2

2

package.json
{
"name": "@angular/language-service",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"description": "Angular 2 - language services",

@@ -5,0 +5,0 @@ "main": "bundles/language-service.umd.js",

@@ -33,2 +33,15 @@ /**

import { BuiltinType } from './types';
// In TypeScript 2.1 these flags moved
// These helpers work for both 2.0 and 2.1.
var isPrivate = ts.ModifierFlags ?
(function (node) {
return !!(ts.getCombinedModifierFlags(node) & ts.ModifierFlags.Private);
}) :
(function (node) { return !!(node.flags & ts.NodeFlags.Private); });
var isReferenceType = ts.ObjectFlags ?
(function (type) {
return !!(type.flags & ts.TypeFlags.Object &&
type.objectFlags & ts.ObjectFlags.Reference);
}) :
(function (type) { return !!(type.flags & ts.TypeFlags.Reference); });
/**

@@ -115,3 +128,3 @@ * Create a `LanguageServiceHost`

var directiveNormalizer = new DirectiveNormalizer(resourceLoader, urlResolver, htmlParser, config);
result = this._resolver = new CompileMetadataResolver(moduleResolver, directiveResolver, pipeResolver, new SummaryResolver(), elementSchemaRegistry, directiveNormalizer, this.reflector, function (error, type) { return _this.collectError(error, type && type.filePath); });
result = this._resolver = new CompileMetadataResolver(moduleResolver, directiveResolver, pipeResolver, new SummaryResolver(), elementSchemaRegistry, directiveNormalizer, this._staticSymbolCache, this.reflector, function (error, type) { return _this.collectError(error, type && type.filePath); });
}

@@ -375,3 +388,4 @@ return result;

loadSummary: function (filePath) { return null; },
isSourceFile: function (sourceFilePath) { return true; }
isSourceFile: function (sourceFilePath) { return true; },
getOutputFileName: function (sourceFilePath) { return null; }
}, this._staticSymbolCache);

@@ -640,3 +654,3 @@ result = this._staticSymbolResolver = new StaticSymbolResolver(this.reflectorHost, this._staticSymbolCache, summaryResolver, function (e, filePath) { return _this.collectError(e, filePath); });

var type_1 = this.checker.getTypeAtLocation(parameter.type);
if (type_1.symbol.name == 'TemplateRef' && type_1.flags & ts.TypeFlags.Reference) {
if (type_1.symbol.name == 'TemplateRef' && isReferenceType(type_1)) {
var typeReference = type_1;

@@ -793,3 +807,3 @@ if (typeReference.typeArguments.length === 1) {

// Symbols that are not explicitly made private are public.
return !(getDeclarationFlagsFromSymbol(this.symbol) & ts.NodeFlags.Private);
return !isSymbolPrivate(this.symbol);
},

@@ -1159,6 +1173,4 @@ enumerable: true,

}
function getDeclarationFlagsFromSymbol(s) {
return s.valueDeclaration ?
getCombinedNodeFlags(s.valueDeclaration) :
s.flags & ts.SymbolFlags.Prototype ? ts.NodeFlags.Public | ts.NodeFlags.Static : 0;
function isSymbolPrivate(s) {
return s.valueDeclaration && isPrivate(s.valueDeclaration);
}

@@ -1165,0 +1177,0 @@ function getBuiltinTypeFromTs(kind, context) {

@@ -12,3 +12,3 @@ /**

*/
export var VERSION = new Version('4.0.0-beta.1');
export var VERSION = new Version('4.0.0-beta.2');
//# sourceMappingURL=version.js.map

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

[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.1"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.1"]}}}]
[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.2"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.2"]}}}]

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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