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

@after-work.js/utils

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@after-work.js/utils - npm Package Compare versions

Comparing version 6.0.5 to 6.0.6

8

package.json
{
"name": "@after-work.js/utils",
"version": "6.0.5",
"version": "6.0.6",
"publishConfig": {

@@ -27,8 +27,8 @@ "access": "public"

"debug": "4.1.1",
"globby": "9.1.0",
"import-cwd": "2.1.0",
"globby": "10.0.1",
"import-cwd": "3.0.0",
"minimatch": "3.0.4",
"npmlog": "4.1.2"
},
"gitHead": "3249c12780c2f1cd6616098e175d215fd1633b70"
"gitHead": "119ecef9549fd12516c1abc6af434bdb3a23ebc4"
}

@@ -48,3 +48,3 @@ /* eslint max-len: 0, import/no-dynamic-require: 0, global-require: 0 */

packagesPath.forEach((root) => {
packagesPath.forEach(root => {
const { name } = importCwd(`./${root}/package.json`);

@@ -66,3 +66,3 @@ const hasTests = globby.sync(`${root}/**/${testExt}`).length > 0;

const getTestGlob = (argv) => {
const getTestGlob = argv => {
const { testExt, scope } = argv;

@@ -83,3 +83,3 @@ const packagesMap = getPackages(argv);

const getSrcGlob = (argv) => {
const getSrcGlob = argv => {
const { srcExt, scope } = argv;

@@ -149,3 +149,3 @@ const packagesMap = getPackages(argv);

const addDefaults = (argv) => {
const addDefaults = argv => {
// Re-evaluate if it's the default values e.g `testExt` or `srcExt` could be changed

@@ -167,2 +167,14 @@ if (argv.glob === TEST_GLOB) {

const safeGetModule = name => {
let found = importCwd.silent(name);
if (!found) {
try {
found = require(name);
} catch (err) {
found = null;
}
}
return found;
};
const utils = {

@@ -228,13 +240,2 @@ addDefaults,

},
safeGetModule(name) {
let found = importCwd.silent(name);
if (!found) {
try {
found = require(name);
} catch (err) {
found = null;
}
}
return found;
},
coerceBabel(opt) {

@@ -244,5 +245,5 @@ if (opt.enable && opt.core && typeof opt.core === 'string') {

} else if (opt.enable && !opt.core) {
let core = utils.safeGetModule('@babel/core');
let core = safeGetModule('@babel/core');
if (!core) {
core = utils.safeGetModule('babel-core');
core = safeGetModule('babel-core');
if (!core) {

@@ -255,3 +256,3 @@ throw new Error('Can not get babel core module');

if (opt.enable && typeof opt.babelPluginIstanbul === 'string') {
const babelPluginIstanbul = utils.safeGetModule(opt.babelPluginIstanbul);
const babelPluginIstanbul = safeGetModule(opt.babelPluginIstanbul);
opt.babelPluginIstanbul = babelPluginIstanbul

@@ -262,3 +263,3 @@ ? babelPluginIstanbul.default

if (opt.enable && typeof opt.typescript === 'string') {
opt.typescript = utils.safeGetModule(opt.typescript);
opt.typescript = safeGetModule(opt.typescript);
}

@@ -274,3 +275,3 @@ return opt;

.filter(c => c !== undefined)
.map((c) => {
.map(c => {
const parts = c.split(':');

@@ -335,5 +336,5 @@ const columnno = parts.pop();

const deps = this.getDependencies(files, file);
const walk = (currentDeps) => {
const walk = currentDeps => {
all = all.concat(currentDeps);
currentDeps.forEach((d) => {
currentDeps.forEach(d => {
const childDeps = this.getDependencies(files, d);

@@ -340,0 +341,0 @@ walk(childDeps, files, d);

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