Socket
Socket
Sign inDemoInstall

@angular/tsc-wrapped

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/tsc-wrapped - npm Package Compare versions

Comparing version 4.1.0-beta.0 to 4.1.0-beta.1

2

package.json
{
"name": "@angular/tsc-wrapped",
"version": "4.1.0-beta.0",
"version": "4.1.0-beta.1",
"description": "Wraps the tsc CLI, allowing extensions.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/angular/angular/tree/master/tools/tsc-wrapped",

@@ -436,5 +436,7 @@ "use strict";

// path.normalize() preserves leading '../' but not './'. This adds it back.
return "." + path.sep + normalPath;
normalPath = "." + path.sep + normalPath;
}
return normalPath;
// Replace windows path delimiters with forward-slashes. Otherwise the paths are not
// TypeScript compatible when building the bundle.
return normalPath.replace(/\\/g, '/');
}

@@ -441,0 +443,0 @@ return importName;

@@ -61,2 +61,11 @@ /**

});
it('should not output windows paths in metadata', function () {
var host = new MockStringBundlerHost('/', {
'index.ts': "\n export * from './exports/test';\n ",
'exports': { 'test.ts': "export class TestExport {}" }
});
var bundler = new bundler_1.MetadataBundler('/index', undefined, host);
var result = bundler.getMetadataBundle();
expect(result.metadata.origins).toEqual({ 'TestExport': './exports/test' });
});
it('should convert re-exported to the export', function () {

@@ -63,0 +72,0 @@ var host = new MockStringBundlerHost('/', {

@@ -55,3 +55,5 @@ "use strict";

function open(directory, fileName) {
var names = fileName.split('/');
// Path might be normalized by the current node environment. But it could also happen that this
// path directly comes from the compiler in POSIX format. Support both separators for development.
var names = fileName.split(/[\\/]/);
var current = directory;

@@ -58,0 +60,0 @@ if (names.length && names[0] === '')

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