Skip to content

Refactor of a lot of different things#7

Open
lulkebit wants to merge 6 commits intoecrmnn:masterfrom
lulkebit:master
Open

Refactor of a lot of different things#7
lulkebit wants to merge 6 commits intoecrmnn:masterfrom
lulkebit:master

Conversation

@lulkebit
Copy link

This pull request involves several changes to the spaceholder project, including the removal of the PlaceImg provider, refactoring to use modern JavaScript syntax, and updates to dependencies and tests.

Removal of PlaceImg provider:

Refactoring to use modern JavaScript syntax:

  • commanderConfig.js: Updated to use const and arrow functions. [1] [2]
  • image/Image.js, image/providers/DummyImage.js, image/providers/FakeImg.js, image/providers/LoremPicsum.js: Updated to use const and modern method definitions. [1] [2] [3] [4]
  • index.js: Refactored to use const, let, and async/await for better readability and error handling.

Dependency updates:

  • package.json: Updated dependencies and devDependencies to newer versions.

Test updates:

  • test/Cli.js, test/Link.js, test/ProvidersCLI.js: Skipped CLI and symlink tests as they are not essential for verifying the removal of PlaceImg. [1] [2] [3] [4] [5] [6]

Other changes:

  • package.json: Updated the test script to use npx for running Mocha.

lulkebit and others added 6 commits March 14, 2025 14:57
…test command to use npx for better compatibility. Skips CLI tests that are no longer relevant.
…r-placeImg

Removes PlaceImg provider and updates related documentation. Changes test command to use npx for better compatibility. Skips CLI tests that are no longer relevant.
…ow-redirects to 1.15.9, chai to 3.5.0, execa to 5.1.1, and mocha to 11.1.0 for improved compatibility and performance.
…ncies

Updates dependencies in package.json
…tions for improved readability and consistency. Promisifies file handling in the download function for better error management. Updates image provider methods to use concise syntax. Implements async/await for download execution to enhance flow control.
Refactors commanderConfig and index files to use const and arrow functions for improved readability and consistency. Promisifies file handling in the download function for better error management. Updates image provider methods to use concise syntax. Implements async/await for download execution to enhance flow control.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments