
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@wocker/utils
Advanced tools
npm i @wocker/utils
In version 2.0.0, we've renamed some core prompt functions to improve clarity and consistency across the API. These changes will require updates to your code if you're migrating from v1.x.
| Old Name (v1.x) | New Name (v2.0.0) | Description |
|---|---|---|
promptText | promptInput | Prompts the user for text input |
promptConfig | Removed | Function has been removed |
promptGroup | Removed | Function has been removed |
If you're upgrading from version 1.x to 2.0.0, you'll need to update your imports and function calls for promptText:
// Old usage (v1.x)
import {promptText} from "@wocker/utils";
const name = await promptText({
message: "Enter your name"
});
// New usage (v2.0.0)
import {promptInput} from "@wocker/utils";
const name = await promptInput({
message: "Enter your name"
});
We decided to rename the promptText function to promptInput to:
The promptConfig and promptGroup functions have been removed as they are no longer supported in the new version.
If you're using a large codebase with many occurrences of the old function name, you can use the following search and replace operation:
promptText with promptInputpromptConfig and promptGroup as these functions are no longer availableThe function signatures and return types remain the same, only the name of promptText has changed. All other functionality works exactly as before.
For any issues or questions regarding this migration, please open an issue on our GitHub repository.
FAQs
Utils for @wocker
We found that @wocker/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.