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

@travetto/compiler

Package Overview
Dependencies
Maintainers
1
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/compiler - npm Package Compare versions

Comparing version 0.6.0-rc.6 to 0.6.0-rc.7

bin/compile-target.js

6

package.json

@@ -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 {

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