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

@travetto/base

Package Overview
Dependencies
Maintainers
1
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/base - npm Package Compare versions

Comparing version 0.0.37 to 0.0.38

2

package.json

@@ -22,3 +22,3 @@ {

"scripts": {},
"version": "0.0.37"
"version": "0.0.38"
}

@@ -51,3 +51,3 @@ import * as path from 'path';

export function bulkRequire(globs: string | string[], base?: string, exclude?: (name: string) => boolean) {
export function bulkRequire<T = any>(globs: string | string[], base?: string, exclude?: (name: string) => boolean): T[] {
return bulkFindSync(globs, base, exclude)

@@ -54,0 +54,0 @@ .map(require)

@@ -6,2 +6,11 @@ import { AppEnv } from './env';

const initializers =
bulkRequire<{ init: Function, priority?: number }>(
'*/src/startup.ts',
`${process.cwd()}/node_modules/@travetto`,
x => x.includes('/base/')
)
.map(x => ({ priority: 100, ...x }))
.sort((a, b) => a.priority - b.priority);
export function init() {

@@ -26,5 +35,5 @@

for (const startup of bulkRequire('*/src/startup.ts', `${process.cwd()}/node_modules/@travetto`, x => x.includes('/base/'))) {
for (const startup of initializers) {
startup.init();
}
}
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