Skip to content

feat/nodejs_sanitize_lockfile#665

Open
hsjobeki wants to merge 7 commits intonix-community:mainfrom
hsjobeki:feat/cleanup-v3
Open

feat/nodejs_sanitize_lockfile#665
hsjobeki wants to merge 7 commits intonix-community:mainfrom
hsjobeki:feat/cleanup-v3

Conversation

@hsjobeki
Copy link
Copy Markdown
Contributor

@hsjobeki hsjobeki commented Sep 11, 2023

Adds checks for invalid lockfiles.

Cleanup some comments and variable naming stuff

Comment thread lib/internal/nodejsLockUtils.nix Outdated
Comment thread modules/dream2nix/nodejs-package-lock-v3/default.nix Outdated
@hsjobeki hsjobeki changed the title WIP: feat/cleanup v3 feat/nodejs_sanitize_lockfile Oct 13, 2023
@hsjobeki hsjobeki requested a review from DavHau October 13, 2023 08:28
else findEntry packageLock (stripPath currentPath) search;
in {
inherit findEntry stripPath;
inherit findEntry stripPath sanitizeLockfile;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sanitizeLockFile -> ensureLockFileVersion?

# isOptional = pent: pent.optional or false;
# isInBundle = pent: pent.inBundle or false;
# hasInstallScript = pent: pent.hasInstallScript or false;
# getBin = pent: pent.bin or {};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these be removed?

@DavHau DavHau added the nodejs label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants