Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@nfjs/core

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nfjs/core - npm Package Compare versions

Comparing version
1.0.5
to
1.0.6
+7
-6
api/index.js
import fs from "fs/promises";
import path from "path";
import glob from "fast-glob";
import {config} from "../index.js";
import {NFError, NFUnauthorizedError} from "./errors.js"
import { config } from "../index.js";
import { NFError } from "./errors.js"

@@ -41,10 +41,11 @@

const workspaceName = rootPackage.workspaces[i].replace('/*', '/');
paths.forEach((dirPath) => {
for (let dirPath of paths) {
const pkgPath = dirPath.slice(dirPath.indexOf(workspaceName));
const packageJson = JSON.parse(await fs.readFile(path.join(dirPath, 'package.json').replace(/\\/g, '/'), 'utf-8'));
packages.push({
fullpath: dirPath,
path: pkgPath,
moduleName: pkgPath.replace(workspaceName, '').replace('/', '')
moduleName: packageJson.name
});
});
}
}

@@ -290,3 +291,3 @@

static processSyncHooks(name, self, ...args) {
hooks[name]?.forEach( i => i.func.apply(self,args));
hooks[name]?.forEach(i => i.func.apply(self, args));
}

@@ -293,0 +294,0 @@

{
"name": "@nfjs/core",
"version": "1.0.5",
"version": "1.0.6",
"description": "Core",

@@ -5,0 +5,0 @@ "license": "MIT",