Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@eik/common

Package Overview
Dependencies
Maintainers
5
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eik/common - npm Package Compare versions

Comparing version
5.1.22
to
5.1.23
+10
-0
CHANGELOG.md

@@ -0,1 +1,11 @@

## [5.1.23](https://github.com/eik-lib/common/compare/v5.1.22...v5.1.23) (2026-03-27)
### Bug Fixes
* performance-related refactor (reduced regex compilation) ([761f602](https://github.com/eik-lib/common/commit/761f6023de751fae7da15cee285eeb571b8fb684))
* regression after --fix ([9a8bc89](https://github.com/eik-lib/common/commit/9a8bc894c2b1a5bacd91258782ceb373ee46c9b2))
* remove is-glob ([c98a99b](https://github.com/eik-lib/common/commit/c98a99ba6d5374bd1433d29152f842f207a38d02))
* replace glob with tinyglobby ([9c6fe05](https://github.com/eik-lib/common/commit/9c6fe051e948b285f79d45abcf1f829c7950055f))
## [5.1.22](https://github.com/eik-lib/common/compare/v5.1.21...v5.1.22) (2026-02-19)

@@ -2,0 +12,0 @@

+2
-1

@@ -52,2 +52,3 @@ /**

// @ts-ignore
// eslint-disable-next-line e18e/prefer-spread-syntax
this.map = [].concat(this[_config]["import-map"] || []);

@@ -141,3 +142,3 @@ }

// @ts-ignore
const filesArray = Array.from(files);
const filesArray = [...files];
if (filesArray.length === 0) {

@@ -144,0 +145,0 @@ throw new NoFilesMatchedError(source);

@@ -67,7 +67,3 @@ import { readFileSync, writeFileSync } from "node:fs";

const eikJSON = loadJSONFromDisk(join(configRootDir, "eik.json"));
if (
pkgJSON != null &&
Object.prototype.hasOwnProperty.call(pkgJSON, "eik") &&
eikJSON != null
) {
if (pkgJSON != null && Object.hasOwn(pkgJSON, "eik") && eikJSON != null) {
throw new MultipleConfigSourcesError();

@@ -74,0 +70,0 @@ }

import { extname, join, isAbsolute, basename, sep, normalize } from "node:path";
import isGlob from "is-glob";
import { glob } from "glob";
import { glob, isDynamicPattern } from "tinyglobby";
import {

@@ -25,3 +24,3 @@ removeTrailingSlash,

if (segment === "") continue;
if (isGlob(segment)) break;
if (isDynamicPattern(segment)) break;
segmentsToKeep.push(segment);

@@ -57,3 +56,6 @@ }

// append glob if folder
if (extname(pattern) === "" && isGlob(ensurePosix(pattern)) === false) {
if (
extname(pattern) === "" &&
isDynamicPattern(ensurePosix(pattern)) === false
) {
pattern = `${pattern}${sep}**${sep}*`;

@@ -78,3 +80,3 @@ }

cwd: basePath,
nodir: true,
onlyFiles: true,
});

@@ -81,0 +83,0 @@

@@ -0,1 +1,3 @@

const aliasRe = /^[0-9]+$/;
/**

@@ -8,3 +10,3 @@ * Checks that a value is a valid alias value.

export const alias = (value) => {
if (/^[0-9]+$/.test(value)) {
if (aliasRe.test(value)) {
return value;

@@ -11,0 +13,0 @@ }

@@ -0,1 +1,3 @@

const orgRe = /^[a-zA-Z0-9_-]+$/;
/**

@@ -8,3 +10,3 @@ * Checks that a value is a valid organisation name.

export const org = (value) => {
if (/^[a-zA-Z0-9_-]+$/.test(value)) {
if (orgRe.test(value)) {
return value.toLowerCase();

@@ -11,0 +13,0 @@ }

{
"name": "@eik/common",
"version": "5.1.22",
"version": "5.1.23",
"description": "Common utilities for Eik modules",

@@ -40,6 +40,5 @@ "main": "lib/index.js",

"ajv-formats": "3.0.1",
"glob": "13.0.6",
"is-glob": "4.0.3",
"mime-types": "3.0.2",
"semver": "7.7.4",
"tinyglobby": "0.2.15",
"validate-npm-package-name": "7.0.2"

@@ -49,6 +48,6 @@ },

"@babel/plugin-syntax-import-assertions": "7.28.6",
"@eik/eslint-config": "1.0.25",
"@eik/eslint-config": "2.0.0",
"@eik/prettier-config": "1.0.1",
"@eik/semantic-release-config": "1.0.12",
"@eik/typescript-config": "1.0.0",
"@eik/semantic-release-config": "1.0.14",
"@eik/typescript-config": "1.0.1",
"@semantic-release/changelog": "6.0.3",

@@ -59,5 +58,5 @@ "@semantic-release/git": "10.0.1",

"@types/validate-npm-package-name": "4.0.2",
"eslint": "9.39.2",
"eslint": "9.39.3",
"express": "5.2.1",
"fastify": "5.7.4",
"fastify": "5.8.3",
"json-schema-to-typescript": "15.0.4",

@@ -64,0 +63,0 @@ "npm-run-all2": "8.0.4",