New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@geniusleaduk/functions

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geniusleaduk/functions

functions for creating basic intents

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

��#� �a�d�a�m�s�i�n�t�e�n�t�f�u�n�c�t�i�o�n�s� � ���#� �a�d�a�m�s�i�n�t�e�n�t�f�u�n�c�t�i�o�n�s� � �T�h�i�s� �i�s� �a� �f�i�l�e� �c�o�n�t�a�i�n�i�n�g� �t�h�e� �f�u�n�c�t�i�o�n�s� �u�s�e�d� �f�o�r� �r�u�n�n�i�n�g� �A�P�L� �/� �S�t�a�n�d�a�r�d� �c�a�r�d� �/� �s�p�e�a�k�o�u�t�p�u�t� �/� �a�n�d� �a� �r�a�n�d�o�m� �r�e�p�r�o�m�t�.� �T�h�i�s� �u�s�e�s� �l�i�s�t�s� �d�e�f�i�n�e�d� �a�t� �t�h�e� �t�o�p� �o�f� �t�h�e� �p�a�g�e�.� � �t�h�i�s� �r�e�q�u�i�r�e�s� �a� �l�i�s�t� �c�a�l�l�e�d� �d�i�s�p�l�a�y�L�i�s�t�.�j�s� �w�h�i�c�h� �w�i�l�l� �c�o�n�t�a�i�n� �n�a�m�e�,�t�i�t�l�e�,�U�R�L�,� �d�e�s�c�r�i�p�t�i�o�n�,�s�p�e�a�k�O�u�t�p�u�t�,� �d�o�c�u�m�e�n�t�,� �d�a�t�a�s�o�u�r�c�e�s�.� � �t�h�e� �d�o�c�u�m�e�n�t� �a�n�d� �d�a�t�a�s�o�u�r�c�e�s� �s�h�o�u�l�d� �b�e� �l�i�n�k�e�d� �t�o� �t�h�e� �f�i�l�e� �c�o�n�t�a�i�n�i�n�g� �t�h�e� �a�p�l�d�o�c�u�m�e�n�t� �a�n�d� �a�p�l�d�a�t�a�s�o�u�r�c�e�s� �r�e�s�p�e�c�i�v�l�y�.� � �t�h�e� �a�p�l� �f�i�l�e�s� �s�h�o�u�l�d� �a�l�s�o� �b�e� �d�e�f�i�n�e�d� �a�t� �t�h�e� �t�o�p� �o�f� �y�o�u�r� �l�i�s�t� �f�i�l�e� �s�o� �t�h�a�t� �i�t� �c�a�n� �g�a�t�h�e�r� �t�h�e� �i�n�f�o�r�m�a�t�i�o�n�.� � � � � � � � � � � � �v�a�r� �i�n�t�e�n�t�N�a�m�e� �=� �'�W�H�O�'�;� � � � � � � � � � � � �l�e�t� �r�e�s�p�o�n�s�e�B�u�i�l�d�e�r� �=� �i�n�t�e�n�t�M�e�t�h�o�d�.�c�a�n�D�o�A�P�L�F�u�n�c�t�i�o�n�(�h�a�n�d�l�e�r�I�n�p�u�t�,� �i�n�t�e�n�t�N�a�m�e�)�;� � � � � � � � � � �c�o�n�s�t� �s�p�e�a�k�O�u�t�p�u�t� �=� �i�n�t�e�n�t�M�e�t�h�o�d�.�s�p�e�a�k�O�u�t�p�u�t�F�u�n�c�t�i�o�n�(�i�n�t�e�n�t�N�a�m�e�)�;� � � � � � � � � � �c�o�n�s�t� �r�e�p�r�o�m�p�t�T�e�x�t� �=� �i�n�t�e�n�t�M�e�t�h�o�d�.�r�e�p�r�o�m�p�t�F�u�n�c�t�i�o�n�(�)�;� � � � � � � � � � �t�h�i�s� �i�s� �t�h�e� �c�o�d�e� �t�h�a�t� �c�a�l�l�s� �t�h�e� �f�u�n�c�t�i�o�n�s� �i�n�s�i�d�e� �t�h�i�s� �f�i�l�e�.� � �t�h�e� �i�n�t�e�n�t�N�a�m�e� �s�h�o�u�l�d� �b�e� �t�h�e� �s�a�m�e� �a�s� �t�h�e� �n�a�m�e�:� �u�s�e�d� �i�n� �y�o�u�r� �c�r�e�a�t�e�d� �l�i�s�t�,� �t�h�i�s� �i�s� �h�o�w� �t�h�e� �f�u�n�c�t�i�o�n�s� �l�i�n�k� �t�h�e� �i�n�t�e�n�t� �w�i�t�h� �t�h�e� �c�o�r�r�e�c�t� �i�n�f�o�r�m�a�t�i�o�n� �s�t�o�r�e�d� �i�n� �t�h�e� �l�i�s�t�.� � �t�h�e�n� �t�h�e� �i�n�t�e�n�t� �n�a�m�e� �s�h�o�u�l�d� �b�e� �p�a�s�s�e�d� �i�n�t�o� �t�h�e� �f�u�n�c�t�i�o�n�s� �t�o� �a�l�l�o�w� �t�h�e�m� �t�o� �a�c�c�e�s�s� �t�h�e� �v�a�r�i�a�b�l�e� �c�r�e�a�t�e�d�.� � � � � � � � � � � � �c�o�n�s�t� �r�e�p�r�o�m�p�t�T�e�x�t� �=� �i�n�t�e�n�t�M�e�t�h�o�d�.�r�e�p�r�o�m�p�t�F�u�n�c�t�i�o�n�(�)�;� � � � � � � � � � � � �T�h�e� �r�e�p�r�o�m�p�t� �f�u�n�c�t�i�o�n� �s�h�o�u�l�d� �h�a�v�e� �i�t�s� �o�w�n� �l�i�s�t� �c�a�l�l�e�d� �r�e�p�r�o�m�p�t�L�i�s�t�.�j�s� � �T�h�i�s� �w�i�l�l� �c�o�n�t�a�i�n� �a�l�l� �t�h�e� �d�i�f�f�e�r�e�n�t� �r�e�p�r�o�m�p�t�s� �t�h�a�t� �y�o�u� �w�o�u�l�d� �l�i�k�e� �t�o� �r�e�p�r�o�m�p�t� �t�o� �t�h�e� �u�s�e�r�.� � �T�h�e� �f�u�n�c�t�i�o�n� �w�i�l�l� �l�o�o�k� �t�h�r�o�u�g�h� �t�h�e� �l�i�s�t� �r�a�n�d�o�m�l�y� �s�e�l�e�c�t� �o�n�e� �a�n�d� �r�e�t�u�r�n� �i�t� �t�o� �t�h�e� �u�s�e�r�.� � � � � � � � � � � � �r�e�t�u�r�n� �r�e�s�p�o�n�s�e�B�u�i�l�d�e�r�.�s�p�e�a�k�(�s�p�e�a�k�O�u�t�p�u�t�)�.�r�e�p�r�o�m�p�t�(�r�e�p�r�o�m�p�t�T�e�x�t�)�.�g�e�t�R�e�s�p�o�n�s�e�(�)� � � � � � � � � � � � �T�h�i�s� �i�s� �t�h�e� �r�e�t�u�r�n� �f�u�n�c�t�i�o�n� �u�s�e�d� �t�o� �d�i�s�p�l�a�y� �t�h�e� �i�n�f�o�r�m�a�t�i�o�n� �t�o� �t�h�e� �u�s�e�r�.� � � � � � � � �i�f�(�i�n�t�e�n�t�N�a�m�e� �!�=� �'�L�A�U�N�C�H�'� �&�&� �i�n�t�e�n�t�N�a�m�e� �!�=� �'�H�E�L�P�'�)� � � � � � �{� � � � � � � � � � �A�P�L�D�a�t�a�S�e�t�t�i�n�g�s�(�i�n�t�e�n�t�D�a�t�a�)� � � � � � �}� � � � � � � � �I�n�s�i�d�e� �t�h�e� �i�n�t�e�n�t�F�u�n�c�t�i�o�n� �t�h�e�r�e� �i�s� �t�h�i�s� �i�f� �s�t�a�t�e�m�e�n�t� �w�h�e�n� �r�u�n�n�i�n�g� �t�h�e� �A�P�L� �T�h�i�s� �c�a�n� �b�e� �r�e�m�o�v�e�d� �i�f� �n�e�e�d�e�d�.� � �T�h�i�s� �c�o�d�e� �w�i�l�l� �c�h�e�c�k� �t�o� �s�e�e� �i�f� �t�h�e� �i�n�t�e�n�t�N�a�m�e� �m�a�t�c�h�e�s� �a�n�y� �o�f� �t�h�e� �i�n�t�e�n�t� �n�a�m�e�s� �l�i�s�t�e�d�.� � �I�f� �i�t� �m�a�t�c�h�e�s� �t�h�e�n� �t�h�e� �c�o�d�e� �w�i�l�l� �s�k�i�p� �t�h�e� �f�u�n�c�t�i�o�n� �i�n�s�i�d�e� �w�h�i�c�h� �c�h�a�n�g�e�s� �t�h�e� �d�a�t�a� �i�n�s�i�d�e� �t�h�e� �A�P�L�.� � �T�h�i�s� �i�s� �d�u�e� �t�o� �m�e� �u�s�i�n�g� �2� �d�i�f�f�e�r�e�n�t� �A�P�L�'�s� �i�n� �w�h�i�c�h� �t�h�e� �A�P�L� �f�o�r� �L�A�U�N�C�H� �a�n�d� �H�E�L�P� �d�o� �n�o�t� �n�e�e�d� �i�n�f�o�r�m�a�t�i�o�n� �c�h�a�n�g�e�d�.� � � � � � �f�u�n�c�t�i�o�n� �A�P�L�D�a�t�a�S�e�t�t�i�n�g�s�(�i�n�t�e�n�t�D�a�t�a�)�{� � � � � � � � � � �i�n�t�e�n�t�D�a�t�a�.�d�a�t�a�s�o�u�r�c�e�s�.�d�e�t�a�i�l�I�m�a�g�e�R�i�g�h�t�D�a�t�a�.�i�m�a�g�e�.�s�o�u�r�c�e�s�[�0�]�.�u�r�l� �=� ��$�{�i�n�t�e�n�t�D�a�t�a�.�U�R�L�}��;� � � � � � � � �i�n�t�e�n�t�D�a�t�a�.�d�a�t�a�s�o�u�r�c�e�s�.�d�e�t�a�i�l�I�m�a�g�e�R�i�g�h�t�D�a�t�a�.�t�e�x�t�C�o�n�t�e�n�t�.�l�o�c�a�t�i�o�n�T�e�x�t�.�t�e�x�t� �=� ��$�{�i�n�t�e�n�t�D�a�t�a�.�d�e�s�c�r�i�p�t�i�o�n�}��;� � � � � � � � �i�n�t�e�n�t�D�a�t�a�.�d�a�t�a�s�o�u�r�c�e�s�.�d�e�t�a�i�l�I�m�a�g�e�R�i�g�h�t�D�a�t�a�.�t�e�x�t�C�o�n�t�e�n�t�.�p�r�i�m�a�r�y�T�e�x�t�.�t�e�x�t� �=� ��$�{�i�n�t�e�n�t�D�a�t�a�.�t�i�t�l�e�}��;� � � � �}�;� � � � � � �T�h�i�s� �i�s� �t�h�e� �c�o�d�e� �t�h�a�t� �c�h�a�n�g�e�s� �t�h�e� �d�a�t�a� �i�n�s�i�d�e� �t�h�e� �A�P�L�.� � �a�f�t�e�r� �t�h�e� �=� �a�n�d� �t�h�e� �i�n�t�e�n�t�D�a�t�a�.�d�a�t�a�s�o�u�r�c�e�s� �w�i�l�l� �g�e�t� �t�h�e� �i�n�f�o�r�m�a�t�i�o�n� �f�r�o�m� �i�n�s�i�d�e� �t�h�e� �l�i�s�t� �y�o�u� �h�a�v�e� �c�r�e�a�t�e�d�.� � �t�h�e� �m�i�d�d�l�e� �s�e�c�t�i�o�n� �s�h�o�u�l�d� �b�e� �c�h�a�n�g�e�d� �t�o� �m�a�t�c�h� �t�h�e� �A�P�L� �y�o�u� �a�r�e� �u�s�i�n�g� �s�o� �t�h�a�t� �t�h�e� �c�o�d�e� �w�i�l�l� �c�h�a�n�g�e� �t�h�e� �c�o�r�r�e�c�t� �i�n�f�o�r�m�a�t�i�o�n�.� � � � � � �f�u�n�c�t�i�o�n� �s�p�e�a�k�O�u�t�p�u�t�F�u�n�c�t�i�o�n�(�i�n�t�e�n�t�N�a�m�e�)�{� � � � � � � � �c�o�n�s�t� �i�n�t�e�n�t�D�a�t�a� �=� �h�e�l�p�e�r�M�e�t�h�o�d�.�s�e�a�r�c�h�(�i�n�t�e�n�t�N�a�m�e�,� �d�i�s�p�l�a�y�L�i�s�t�)�;� � � � � � � � �v�a�r� �s�p�e�a�k�O�u�t�p�u�t� �=� �i�n�t�e�n�t�D�a�t�a�.�s�p�e�a�k�O�u�t�p�u�t� � � � � � � � �r�e�t�u�r�n� �s�p�e�a�k�O�u�t�p�u�t�;� � � � �}�;� � � � � � �f�u�n�c�t�i�o�n� �r�e�p�r�o�m�p�t�F�u�n�c�t�i�o�n�(�)�{� � � � � � � � �c�o�n�s�t� �r�e�p�r�o�m�p�t�E�x�i�s�t� �=� �r�e�p�r�o�m�p�t�L�i�s�t�[�M�a�t�h�.�f�l�o�o�r�(�M�a�t�h�.�r�a�n�d�o�m�(�)� �*� �r�e�p�r�o�m�p�t�L�i�s�t�.�l�e�n�g�t�h�)�]�;� � � � � � � � �c�o�n�s�t� �r�e�p�r�o�m�p�t�T�e�x�t� �=� �r�e�p�r�o�m�p�t�E�x�i�s�t�.�d�e�s�c�r�i�p�t�i�o�n�;� � � � � � � � �r�e�t�u�r�n� �r�e�p�r�o�m�p�t�T�e�x�t�;� � � � �}�;� � � � � � �t�h�e�s�e� �l�i�n�e�s� �o�f� �c�o�d�e� �a�r�e� �w�h�a�t� �s�e�l�e�c�t�s� �a�n�d� �d�i�s�p�l�a�y�s� �t�h�e� �i�n�f�o�r�m�a�t�i�o�n� �f�o�r� �t�h�e� �s�p�e�a�k�o�u�t�p�u�t� �a�n�d� �r�e�p�r�o�m�p�t� �r�e�t�u�r�n�s�.� � �t�h�i�s� �i�s� �w�h�e�r�e� �y�o�u� �w�o�u�l�d� �i�n�p�u�t� �a�n�y� �v�o�i�c�e� �c�h�a�n�g�e�s� �y�o�u� �w�a�n�t� �t�o� �i�m�p�l�e�m�e�n�t� �a�s� �t�h�i�s� �w�i�l�l� �m�a�k�e� �t�h�e� �c�h�a�n�g�e�s� �t�o� �a�n�y� �v�o�i�c�e� �o�u�t�p�u�t�s� �y�o�u� �h�a�v�e� �r�u�n� �t�h�r�o�u�g�h� �t�h�e�s�e� �f�u�n�c�t�i�o�n�s�.�

FAQs

Package last updated on 03 Aug 2021

Did you know?

Socket

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.

Install

Related posts