extensionless
Advanced tools
Comparing version 1.4.3 to 1.4.4
{ | ||
"name": "extensionless", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -19,2 +19,4 @@ import {readFile} from 'fs/promises' | ||
let warn = (field, type) => console.warn('⚠️ \x1b[33m%s\x1b[0m', `Warning: The package.json field 'extensionless.${field}' must be ${type}! Using the default value instead...`) | ||
let defaults = { | ||
@@ -26,4 +28,2 @@ lookFor: ['js'] | ||
let warn = (field, type) => console.warn('⚠️ \x1b[33m%s\x1b[0m', `Warning: The package.json field 'extensionless.${field}' must be ${type}! Using the default value instead...`) | ||
Array.isArray(lookFor) && lookFor.length && lookFor.every(a => typeof a === 'string' && /^[a-z]+\w*$/i.test(a)) || ( | ||
@@ -30,0 +30,0 @@ lookFor = defaults.lookFor, warn('lookFor', 'an array of alphanumeric strings') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package