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

@travetto/manifest

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/manifest - npm Package Compare versions

Comparing version 3.0.0-rc.7 to 3.0.0-rc.8

21

bin/context.js

@@ -26,2 +26,19 @@ // @ts-check

/**
* Get module name from a given file
* @param {string} file
* @return {Promise<string|void>}
*/
async function $getModuleFromFile(file) {
let dir = path.dirname(file);
let prev;
while (dir !== prev && !(await fs.stat(path.resolve(dir, 'package.json')).catch(() => false))) {
prev = dir;
dir = path.dirname(dir);
}
try {
return (await $getPkg(dir)).name;
} catch { }
}
/**
* Get workspace root

@@ -64,2 +81,6 @@ * @return {Promise<string>}

if (!folder && process.env.TRV_MODULE) {
// If module is actually a file, try to detect
if (/[.](t|j)s$/.test(process.env.TRV_MODULE)) {
process.env.TRV_MODULE = await $getModuleFromFile(process.env.TRV_MODULE) ?? process.env.TRV_MODULE;
}
const req = createRequire(`${workspacePath}/node_modules`);

@@ -66,0 +87,0 @@ try {

2

package.json
{
"name": "@travetto/manifest",
"version": "3.0.0-rc.7",
"version": "3.0.0-rc.8",
"description": "Manifest support",

@@ -5,0 +5,0 @@ "keywords": [

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