@travetto/compiler
Advanced tools
Comparing version 0.6.0-rc.6 to 0.6.0-rc.7
@@ -13,3 +13,3 @@ { | ||
"dependencies": { | ||
"@travetto/base": "^0.6.0-rc.6", | ||
"@travetto/base": "^0.6.0-rc.7", | ||
"@types/source-map-support": "^0.4.1", | ||
@@ -43,4 +43,4 @@ "source-map-support": "^0.5.9" | ||
}, | ||
"version": "0.6.0-rc.6", | ||
"gitHead": "bd75ad4c3ad1d7304459386555c156a933b1dc91" | ||
"version": "0.6.0-rc.7", | ||
"gitHead": "f6187b2484b4ccf15e37009495e94f77b42d4b51" | ||
} |
import { EventEmitter } from 'events'; | ||
import { Env, FsUtil, AppCache } from '@travetto/base/bootstrap'; | ||
import { ScanApp } from '@travetto/base'; | ||
import { FsUtil, AppCache } from '@travetto/boot'; | ||
import { Env, ScanApp } from '@travetto/base'; | ||
@@ -95,3 +95,3 @@ import { TransformerManager } from './transformers'; | ||
const file = tsf.replace(`${Env.cwd}/`, ''); | ||
if (tsf.includes('/extension/')) { | ||
if (tsf.includes('/extension/')) { // If errored out on extension loading | ||
console.debug(`Ignoring load for ${file}:`, e.message.split(' from ')[0]); | ||
@@ -98,0 +98,0 @@ } else if (Env.watch) { |
/// <reference types="node" /> | ||
import { AppError } from '@travetto/base'; | ||
import { Env } from '@travetto/base/bootstrap'; | ||
import { Env, AppError } from '@travetto/base'; | ||
@@ -36,3 +35,3 @@ import { RetargettingHandler } from './proxy'; | ||
if (!Env.watch || p.includes('/extension/')) { | ||
if (!Env.watch || p.includes('/extension/')) { // Do not build proxy if an extension, let error bubble up | ||
throw e; | ||
@@ -39,0 +38,0 @@ } |
import * as path from 'path'; | ||
import { Watcher, ScanApp, Shutdown } from '@travetto/base'; | ||
import { ScanEntry, Env, ScanHandler, FsUtil } from '@travetto/base/bootstrap'; | ||
import { | ||
ScanEntry, Env, ScanHandler, | ||
Watcher, ScanApp, Shutdown | ||
} from '@travetto/base'; | ||
import { FsUtil } from '@travetto/boot'; | ||
@@ -79,3 +82,3 @@ export interface Listener { | ||
init() { | ||
const SRC_RE = FsUtil.appRootMatcher(this.rootPaths); | ||
const SRC_RE = Env.appRootMatcher(this.rootPaths); | ||
@@ -97,3 +100,3 @@ const rootFiles = ScanApp.findFiles('.ts', x => SRC_RE.test(x) && this.validFile(x)) // Only watch own files | ||
} | ||
}, 1000); | ||
}, 50); // FIXME: 1000 og | ||
} | ||
@@ -100,0 +103,0 @@ } |
import * as ts from 'typescript'; | ||
import * as sourcemap from 'source-map-support'; | ||
import { FileCache, Env, FsUtil } from '@travetto/base/bootstrap'; | ||
import { AppError, Util } from '@travetto/base'; | ||
import { FileCache, RegisterUtil } from '@travetto/boot'; | ||
import { Env, AppError, Util } from '@travetto/base'; | ||
@@ -55,3 +55,3 @@ import { CompilerUtil } from './util'; | ||
const content = FsUtil.prepareTranspile(fileName); | ||
const content = RegisterUtil.prepareTranspile(fileName); | ||
@@ -58,0 +58,0 @@ let hash = 0; |
import * as ts from 'typescript'; | ||
import { dirname, } from 'path'; | ||
import { Env, AppInfo, FsUtil } from '@travetto/base/bootstrap'; | ||
import { Util } from '@travetto/base'; | ||
import { FsUtil, RegisterUtil } from '@travetto/boot'; | ||
import { Env, AppInfo, Util } from '@travetto/base'; | ||
@@ -85,3 +85,3 @@ export type Import = { path: string, ident: ts.Identifier }; | ||
if (file.fileName.includes('/extension/')) { | ||
return file; | ||
return file; // Swallow missing extensions | ||
} else { | ||
@@ -227,3 +227,3 @@ const out = new Error(`${err.message} in ${file.fileName.replace(`${Env.cwd}/`, '')}`); | ||
if (process.env.TRV_FRAMEWORK_DEV) { | ||
path = FsUtil.resolveFrameworkDevFile(path); | ||
path = RegisterUtil.resolveFrameworkDevFile(path); | ||
} | ||
@@ -230,0 +230,0 @@ |
import * as ts from 'typescript'; | ||
import { Env } from '@travetto/base/bootstrap'; | ||
import { Env } from '@travetto/base'; | ||
@@ -4,0 +4,0 @@ export class CompilerUtil { |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
41294
16
1040
1
Updated@travetto/base@^0.6.0-rc.7