New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

license-report

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

license-report - npm Package Compare versions

Comparing version 6.7.0 to 6.7.1

7

CHANGELOG.md

@@ -5,8 +5,9 @@ # Changelog

## [6.7.1](https://github.com/kessler/license-report/compare/v6.7.0...v6.7.1) (2024-12-10)
## [6.7.0](https://github.com/kessler/license-report/compare/v6.6.1...v6.7.0) (2024-09-13)
### Features
* use properties of object entries as custom field ([#194](https://github.com/kessler/license-report/issues/194)) ([d9519b2](https://github.com/kessler/license-report/commit/d9519b23d4cdf11c8659c28644eb4fe206df1b5a))
- use properties of object entries as custom field ([#194](https://github.com/kessler/license-report/issues/194)) ([d9519b2](https://github.com/kessler/license-report/commit/d9519b23d4cdf11c8659c28644eb4fe206df1b5a))

@@ -19,3 +20,3 @@ ## [6.6.1](https://github.com/kessler/license-report/compare/v6.6.0...v6.6.1) (2024-08-02)

* change the project from 'default' to named exports ([1e526eb](https://github.com/kessler/license-report/commit/1e526eb2ebd4395a45473e588a6d3e774fc9dd0d))
- change the project from 'default' to named exports ([1e526eb](https://github.com/kessler/license-report/commit/1e526eb2ebd4395a45473e588a6d3e774fc9dd0d))

@@ -22,0 +23,0 @@ ## [6.5.1](https://github.com/ironSource/license-report/compare/v6.5.0...v6.5.1) (2024-04-26)

@@ -54,3 +54,3 @@ import semver from 'semver';

installedFrom =
extractInstalledFrom(installedVersionData) || notAvailableText;
extractInstalledFrom(installedVersionData) ?? notAvailableText;
} else {

@@ -57,0 +57,0 @@ installedFrom = notAvailableText;

@@ -16,7 +16,7 @@ /**

) {
exclusions = exclusions || [];
exclusions = exclusions ?? [];
// iterate over packages and prepare urls before I call the registry
for (let key in packages) {
if (exclusions.indexOf(key) !== -1 || exclusionRegex?.test(key)) {
if (exclusions.includes(key) || exclusionRegex?.test(key)) {
continue;

@@ -23,0 +23,0 @@ }

@@ -9,3 +9,3 @@ /**

if (isObject(packageJSONContent.author)) {
author = packageJSONContent.author.name || '';
author = packageJSONContent.author.name ?? '';
if (packageJSONContent.author.email) {

@@ -12,0 +12,0 @@ if (author.length > 0) {

@@ -28,3 +28,3 @@ import { addPackagesToIndex } from './addPackagesToIndex.js';

if (
(noDepsTypeDefined || inclusions.indexOf('prod') > -1) &&
(noDepsTypeDefined || inclusions.includes('prod')) &&
packageJson.dependencies !== undefined

@@ -41,3 +41,3 @@ ) {

if (
(noDepsTypeDefined || inclusions.indexOf('dev') > -1) &&
(noDepsTypeDefined || inclusions.includes('dev')) &&
packageJson.devDependencies !== undefined

@@ -54,3 +54,3 @@ ) {

if (
(noDepsTypeDefined || inclusions.indexOf('peer') > -1) &&
(noDepsTypeDefined || inclusions.includes('peer')) &&
packageJson.peerDependencies !== undefined

@@ -67,3 +67,3 @@ ) {

if (
(noDepsTypeDefined || inclusions.indexOf('opt') > -1) &&
(noDepsTypeDefined || inclusions.includes('opt')) &&
packageJson.optionalDependencies !== undefined

@@ -70,0 +70,0 @@ ) {

@@ -52,3 +52,3 @@ import path from 'node:path';

}
const npmToken = process.env[config.npmTokenEnvVar] || '';
const npmToken = process.env[config.npmTokenEnvVar] ?? '';
if (npmToken.trim().length > 0) {

@@ -55,0 +55,0 @@ options['headers'] = { Authorization: `Bearer ${npmToken}` };

@@ -38,6 +38,9 @@ import fs from 'node:fs';

const keys = keyPath
.replace(/\[([^[\]]*)\]/g, '.$1.') // change array index to dot separators
.split('.')
.filter(t => t !== ''); // remove empty entries
result = keys.reduce((prevValue, currKey) => prevValue?.[currKey] ?? undefined, obj);
.replace(/\[([^[\]]*)\]/g, '.$1.') // change array index to dot separators
.split('.')
.filter((t) => t !== ''); // remove empty entries
result = keys.reduce(
(prevValue, currKey) => prevValue?.[currKey] ?? undefined,
obj,
);
}

@@ -44,0 +47,0 @@ return result;

{
"name": "license-report",
"version": "6.7.0",
"version": "6.7.1",
"description": "creates a short report about project's dependencies (license, url etc)",

@@ -10,3 +10,4 @@ "main": "index.js",

"release": "commit-and-tag-version -i CHANGELOG.md --same-file",
"lint-commits": "commitlint --from 59f5e4b90d2d --to HEAD --verbose"
"lint-commits": "commitlint --from 59f5e4b90d2d --to HEAD --verbose",
"prepare": "husky"
},

@@ -29,5 +30,5 @@ "bin": {

"@kessler/tableify": "^1.0.2",
"debug": "^4.3.6",
"debug": "^4.4.0",
"eol": "^0.10.0",
"got": "^14.4.2",
"got": "^14.4.5",
"rc": "^1.2.8",

@@ -40,18 +41,18 @@ "semver": "^7.6.3",

"devDependencies": {
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"commit-and-tag-version": "^12.4.2",
"eslint": "^9.9.1",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"commit-and-tag-version": "^12.5.0",
"eslint": "^9.16.0",
"eslint-plugin-chai-expect": "^3.1.0",
"eslint-plugin-jsdoc": "^50.2.2",
"eslint-plugin-jsdoc": "^50.6.0",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-mocha": "^10.5.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-n": "^17.15.0",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-security-node": "^1.1.4",
"husky": "^9.1.5",
"lint-staged": "^15.2.9",
"mocha": "^10.7.3",
"nock": "^13.5.5",
"prettier": "^3.3.3"
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"mocha": "^11.0.1",
"nock": "^13.5.6",
"prettier": "^3.4.2"
},

@@ -74,7 +75,2 @@ "engines": {

},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commit-and-tag-version": {

@@ -81,0 +77,0 @@ "packageFiles": [

@@ -9,3 +9,3 @@ # ANNOUNCEMENT: repository changing ownership

![Version](https://img.shields.io/badge/version-6.7.0-blue.svg?cacheSeconds=2592000)
![Version](https://img.shields.io/badge/version-6.7.1-blue.svg?cacheSeconds=2592000)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/kefranabg/readme-md-generator/blob/master/LICENSE)

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

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