Socket
Socket
Sign inDemoInstall

@auto-it/core

Package Overview
Dependencies
Maintainers
1
Versions
976
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auto-it/core - npm Package Compare versions

Comparing version 7.0.3-canary.5822.1 to 7.0.3

dist/utils/__tests__/try-require.test.d.ts

2

dist/utils/load-plugins.js

@@ -34,5 +34,7 @@ "use strict";

var plugin = try_require_1.default(pluginPath);
// Try importing plugin as a path in CWD
if (!plugin) {
plugin = try_require_1.default(path.join(process.cwd(), pluginPath));
}
// Try importing official plugin
if (!plugin) {

@@ -39,0 +41,0 @@ plugin = try_require_1.default(path.join('@auto-it', pluginPath));

@@ -9,6 +9,18 @@ "use strict";

try {
// Require from CWD
return import_cwd_1.default(tryPath);
}
catch (error) {
return;
// if we try to actually require npm we will import something that is the actual npm API
// not the plugin that we want
if (tryPath === 'npm') {
return;
}
try {
// Require from __dirname. Needed for npx and global installs
return require(tryPath);
}
catch (error) {
return;
}
}

@@ -15,0 +27,0 @@ }

4

package.json
{
"name": "@auto-it/core",
"version": "7.0.3-canary.5822.1+825a598",
"version": "7.0.3",
"description": "Node API for using auto.",

@@ -79,3 +79,3 @@ "main": "dist/auto.js",

},
"gitHead": "825a598a338616e74dc76bb9f1570cef8c33c9f0"
"gitHead": "3229bfdf2e6528e53820f21c2b8bdf93ab95381e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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