@guidesmiths/license-checker
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,14 @@ # Changelog | ||
### [2.0.1](https://github.com/guidesmiths/license-checker/compare/v2.0.0...v2.0.1) (2022-05-09) | ||
### 🔄 Code Refactoring | ||
* make regex function compatible with node versions prior to v14 ([262e06e](https://github.com/guidesmiths/license-checker/commit/262e06eee46d54240523bcc97b3b0f86798d37d0)) | ||
### 🔧 Others | ||
* update package description ([c3e24a6](https://github.com/guidesmiths/license-checker/commit/c3e24a6edeeb2f0b07bb72eccf0e7b7da100e788)) | ||
## [2.0.0](https://github.com/guidesmiths/license-checker/compare/v1.3.0...v2.0.0) (2022-04-26) | ||
@@ -7,0 +19,0 @@ |
{ | ||
"name": "@guidesmiths/license-checker", | ||
"version": "2.0.0", | ||
"description": "License checker for GuideSmiths projects", | ||
"version": "2.0.1", | ||
"description": "Audit your NPM dependencies and reject any forbidden license.", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "bin": { |
@@ -89,3 +89,3 @@ const fs = require('fs'); | ||
try { | ||
const pattern = /^\/(?<pattern>.+)\/$/.exec(arg)?.groups?.pattern; | ||
const pattern = (/^\/(?<pattern>.+)\/$/.exec(arg) || { groups: {} }).groups.pattern; | ||
return { ...total, valid: [...total.valid, pattern ? new RegExp(pattern) : arg] }; | ||
@@ -92,0 +92,0 @@ } catch (e) { |
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
83467