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

@travetto/registry

Package Overview
Dependencies
Maintainers
1
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/registry - npm Package Compare versions

Comparing version 0.0.50 to 0.1.1

6

package.json

@@ -7,4 +7,4 @@ {

"dependencies": {
"@travetto/base": "^0.0.162",
"@travetto/compiler": "^0.0.48",
"@travetto/base": "^0.1.1",
"@travetto/compiler": "^0.1.1",
"string-hash": "^1.1.3"

@@ -29,3 +29,3 @@ },

"scripts": {},
"version": "0.0.50"
"version": "0.1.1"
}

@@ -7,2 +7,3 @@ declare global {

__methodHashes?: { [key: string]: any };
__abstract: boolean;
}

@@ -9,0 +10,0 @@ }

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

import { deepAssign } from '@travetto/base';
import { Util } from '@travetto/base';

@@ -84,3 +84,3 @@ import { Registry } from './registry';

const conf = this.getOrCreatePending(cls);
deepAssign(conf, pconfig);
Util.deepAssign(conf, pconfig);
}

@@ -90,3 +90,3 @@

const conf = this.getOrCreatePendingMethod(cls, method);
deepAssign(conf, pconfig);
Util.deepAssign(conf, pconfig);
}

@@ -93,0 +93,0 @@

import { EventEmitter } from 'events';
import { Compiler } from '@travetto/compiler';
import { findAppFiles } from '@travetto/base';
import { AppEnv } from '@travetto/base/src/env';
import { ScanApp } from '@travetto/base';
import { Env } from '@travetto/base/src/env';

@@ -78,4 +78,4 @@ import { Class } from '../model/types';

async init() {
if (!AppEnv.test) {
const entries = await findAppFiles('.ts', f =>
if (!Env.test) {
const entries = await ScanApp.findFiles('.ts', f =>
f.startsWith('src/') &&

@@ -82,0 +82,0 @@ Compiler.presenceManager.validFile(f));

import * as ts from 'typescript';
import * as path from 'path';
import { AppEnv } from '@travetto/base/src/env';
import { Env } from '@travetto/base/src/env';
import { TransformUtil, State } from '@travetto/compiler';

@@ -47,2 +47,4 @@

const isAbstract = (node.modifiers! || []).filter(x => x.kind === ts.SyntaxKind.AbstractKeyword).length > 0;
const ret = ts.updateClassDeclaration(node,

@@ -62,2 +64,3 @@ ts.createNodeArray(

createStaticField('__methodHashes', TransformUtil.extendObjectLiteral(hashes)),
createStaticField('__abstract', TransformUtil.fromLiteral(isAbstract)),
...node.members

@@ -86,4 +89,4 @@ ])

if (fileRoot.includes(AppEnv.cwd)) {
fileRoot = fileRoot.split(AppEnv.cwd)[1].replace(/^[\\\/]+/, '');
if (fileRoot.includes(Env.cwd)) {
fileRoot = fileRoot.split(Env.cwd)[1].replace(/^[\\\/]+/, '');
ns = '@app';

@@ -90,0 +93,0 @@ if (fileRoot.startsWith('node_modules')) {

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