Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular/compiler-cli

Package Overview
Dependencies
Maintainers
1
Versions
843
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/compiler-cli - npm Package Compare versions

Comparing version 4.0.0-beta.6 to 4.0.0-beta.7

14

index.js

@@ -12,19 +12,19 @@ "use strict";

*/
var compiler_1 = require('@angular/compiler');
var compiler_1 = require("@angular/compiler");
exports.StaticReflector = compiler_1.StaticReflector;
exports.StaticSymbol = compiler_1.StaticSymbol;
var codegen_1 = require('./src/codegen');
var codegen_1 = require("./src/codegen");
exports.CodeGenerator = codegen_1.CodeGenerator;
var compiler_host_1 = require('./src/compiler_host');
var compiler_host_1 = require("./src/compiler_host");
exports.CompilerHost = compiler_host_1.CompilerHost;
exports.ModuleResolutionHostAdapter = compiler_host_1.ModuleResolutionHostAdapter;
exports.NodeCompilerHostContext = compiler_host_1.NodeCompilerHostContext;
var extractor_1 = require('./src/extractor');
var extractor_1 = require("./src/extractor");
exports.Extractor = extractor_1.Extractor;
__export(require('@angular/tsc-wrapped'));
var version_1 = require('./src/version');
__export(require("@angular/tsc-wrapped"));
var version_1 = require("./src/version");
exports.VERSION = version_1.VERSION;
// TODO(hansl): moving to Angular 4 need to update this API.
var ngtools_api_1 = require('./src/ngtools_api');
var ngtools_api_1 = require("./src/ngtools_api");
exports.__NGTOOLS_PRIVATE_API_2 = ngtools_api_1.NgTools_InternalApi_NG_2;
//# sourceMappingURL=index.js.map
{
"name": "@angular/compiler-cli",
"version": "4.0.0-beta.6",
"version": "4.0.0-beta.7",
"description": "Angular - the compiler CLI for Node.js",

@@ -12,3 +12,3 @@ "main": "index.js",

"dependencies": {
"@angular/tsc-wrapped": "4.0.0-beta.6",
"@angular/tsc-wrapped": "4.0.0-beta.7",
"reflect-metadata": "^0.1.2",

@@ -19,4 +19,4 @@ "minimist": "^1.2.0"

"typescript": "^2.0.2",
"@angular/compiler": "4.0.0-beta.6",
"@angular/core": "4.0.0-beta.6"
"@angular/compiler": "4.0.0-beta.7",
"@angular/core": "4.0.0-beta.7"
},

@@ -23,0 +23,0 @@ "repository": {

@@ -13,6 +13,6 @@ /**

*/
var compiler = require('@angular/compiler');
var fs_1 = require('fs');
var compiler_host_1 = require('./compiler_host');
var path_mapped_compiler_host_1 = require('./path_mapped_compiler_host');
var compiler = require("@angular/compiler");
var fs_1 = require("fs");
var compiler_host_1 = require("./compiler_host");
var path_mapped_compiler_host_1 = require("./path_mapped_compiler_host");
var GENERATED_META_FILES = /\.json$/;

@@ -19,0 +19,0 @@ var PREAMBLE = "/**\n * @fileoverview This file is generated by the Angular template compiler.\n * Do not edit.\n * @suppress {suspiciousCode,uselessCode,missingProperties}\n */\n /* tslint:disable */\n\n";

@@ -14,6 +14,6 @@ /**

};
var tsc_wrapped_1 = require('@angular/tsc-wrapped');
var fs = require('fs');
var path = require('path');
var ts = require('typescript');
var tsc_wrapped_1 = require("@angular/tsc-wrapped");
var fs = require("fs");
var path = require("path");
var ts = require("typescript");
var EXT = /(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/;

@@ -279,7 +279,8 @@ var DTS = /\.d\.ts$/;

function ModuleResolutionHostAdapter(host) {
_super.call(this);
this.host = host;
var _this = _super.call(this) || this;
_this.host = host;
if (host.directoryExists) {
this.directoryExists = function (directoryName) { return host.directoryExists(directoryName); };
_this.directoryExists = function (directoryName) { return host.directoryExists(directoryName); };
}
return _this;
}

@@ -303,3 +304,3 @@ ModuleResolutionHostAdapter.prototype.fileExists = function (fileName) {

function NodeCompilerHostContext() {
_super.apply(this, arguments);
return _super !== null && _super.apply(this, arguments) || this;
}

@@ -306,0 +307,0 @@ NodeCompilerHostContext.prototype.fileExists = function (fileName) {

#!/usr/bin/env node
"use strict";
require('reflect-metadata');
var tsc = require('@angular/tsc-wrapped');
var extractor_1 = require('./extractor');
require("reflect-metadata");
var tsc = require("@angular/tsc-wrapped");
var extractor_1 = require("./extractor");
function extract(ngOptions, cliOptions, program, host) {

@@ -14,3 +14,3 @@ return extractor_1.Extractor.create(ngOptions, program, host).extract(cliOptions.i18nFormat);

var cliOptions = new tsc.I18nExtractionCliOptions(args);
tsc.main(project, cliOptions, extract)
tsc.main(project, cliOptions, extract, { noEmit: true })
.then(function (exitCode) { return process.exit(exitCode); })

@@ -17,0 +17,0 @@ .catch(function (e) {

@@ -13,7 +13,7 @@ /**

// Must be imported first, because angular2 decorators throws on load.
require('reflect-metadata');
var compiler = require('@angular/compiler');
var path = require('path');
var compiler_host_1 = require('./compiler_host');
var path_mapped_compiler_host_1 = require('./path_mapped_compiler_host');
require("reflect-metadata");
var compiler = require("@angular/compiler");
var path = require("path");
var compiler_host_1 = require("./compiler_host");
var path_mapped_compiler_host_1 = require("./path_mapped_compiler_host");
var Extractor = (function () {

@@ -20,0 +20,0 @@ function Extractor(options, ngExtractor, host, ngCompilerHost, program) {

#!/usr/bin/env node
"use strict";
require('reflect-metadata');
var tsc = require('@angular/tsc-wrapped');
var compiler_1 = require('@angular/compiler');
var codegen_1 = require('./codegen');
require("reflect-metadata");
var tsc = require("@angular/tsc-wrapped");
var compiler_1 = require("@angular/compiler");
var codegen_1 = require("./codegen");
function codegen(ngOptions, cliOptions, program, host) {

@@ -15,3 +15,3 @@ return codegen_1.CodeGenerator.create(ngOptions, cliOptions, program, host).codegen();

return tsc.main(project, cliOptions, codegen).then(function () { return 0; }).catch(function (e) {
if (e instanceof tsc.UserError || e instanceof compiler_1.SyntaxError) {
if (e instanceof tsc.UserError || compiler_1.isSyntaxError(e)) {
consoleError(e.message);

@@ -18,0 +18,0 @@ return Promise.resolve(1);

@@ -20,8 +20,8 @@ /**

*/
var compiler_1 = require('@angular/compiler');
var codegen_1 = require('./codegen');
var compiler_host_1 = require('./compiler_host');
var extractor_1 = require('./extractor');
var ngtools_impl_1 = require('./ngtools_impl');
var path_mapped_compiler_host_1 = require('./path_mapped_compiler_host');
var compiler_1 = require("@angular/compiler");
var codegen_1 = require("./codegen");
var compiler_host_1 = require("./compiler_host");
var extractor_1 = require("./extractor");
var ngtools_impl_1 = require("./ngtools_impl");
var path_mapped_compiler_host_1 = require("./path_mapped_compiler_host");
/**

@@ -34,4 +34,5 @@ * A ModuleResolutionHostAdapter that overrides the readResource() method with the one

function CustomLoaderModuleResolutionHostAdapter(_readResource, host) {
_super.call(this, host);
this._readResource = _readResource;
var _this = _super.call(this, host) || this;
_this._readResource = _readResource;
return _this;
}

@@ -38,0 +39,0 @@ CustomLoaderModuleResolutionHostAdapter.prototype.readResource = function (path) { return this._readResource(path); };

@@ -23,4 +23,4 @@ /**

export declare class RouteDef {
path: string;
className: string;
readonly path: string;
readonly className: string;
private constructor(path, className?);

@@ -27,0 +27,0 @@ toString(): string;

@@ -15,4 +15,4 @@ /**

*/
var compiler_1 = require('@angular/compiler');
var core_1 = require('@angular/core');
var compiler_1 = require("@angular/compiler");
var core_1 = require("@angular/core");
var ROUTER_MODULE_PATH = '@angular/router/src/router_config_loader';

@@ -90,3 +90,3 @@ var ROUTER_ROUTES_SYMBOL_NAME = 'ROUTES';

if (map[r] && map[r].absoluteFilePath != route.absoluteFilePath) {
throw new Error(("Duplicated path in loadChildren detected: \"" + r + "\" is used in 2 loadChildren, ") +
throw new Error("Duplicated path in loadChildren detected: \"" + r + "\" is used in 2 loadChildren, " +
("but they point to different modules \"(" + map[r].absoluteFilePath + " and ") +

@@ -93,0 +93,0 @@ ("\"" + route.absoluteFilePath + "\"). Webpack cannot distinguish on context and would fail to ") +

@@ -14,5 +14,5 @@ /**

};
var path = require('path');
var ts = require('typescript');
var compiler_host_1 = require('./compiler_host');
var path = require("path");
var ts = require("typescript");
var compiler_host_1 = require("./compiler_host");
var EXT = /(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/;

@@ -30,3 +30,3 @@ var DTS = /\.d\.ts$/;

function PathMappedCompilerHost(program, options, context) {
_super.call(this, program, options, context);
return _super.call(this, program, options, context) || this;
}

@@ -33,0 +33,0 @@ PathMappedCompilerHost.prototype.getCanonicalFileName = function (fileName) {

@@ -14,7 +14,7 @@ /**

*/
var core_1 = require('@angular/core');
var core_1 = require("@angular/core");
/**
* @stable
*/
exports.VERSION = new core_1.Version('4.0.0-beta.6');
exports.VERSION = new core_1.Version('4.0.0-beta.7');
//# 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.6"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.6"]}}}]
[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.7"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.7"]}}}]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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