
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
use-google-places-api
Advanced tools
React hooks for the Google Places API.
yarn add use-google-places
Currently limited to place predictions and details.
import {
useGooglePlacePredictions,
useGooglePlaceDetails,
} from 'use-google-places-api'
function useGooglePlacePredictions(props: {
/**
* The GCP credential key with Google Places and Geocoding enabled
*/
key: string;
/**
* The input to get predictions against
*/
input?: string | null;
/**
* Constrains the results to the place type
*/
type?: "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
/**
* One or many ISO 3166-1 alpha-2 country codes
*/
country?: string | string[];
/**
* Focus origin of predictions
*/
geolocation?: {
latitude: number;
longitude: number;
};
/**
* Specifies radius for the geolocation of the prediction
* @default 16,000 meters ~10 miles
*/
radius?: number;
}): {
input: string;
results: google.maps.places.AutocompletePrediction[];
status:
| "INVALID_REQUEST"
| "NOT_FOUND"
| "OK"
| "OVER_QUERY_LIMIT"
| "REQUEST_DENIED"
| "UNKNOWN_ERROR"
| "ZERO_RESULTS"
};
function useGooglePlaceDetails(props: {
/**
* The GCP credential key with Google Places and Geocoding enabled
*/
key: string;
/**
* The Google Place ID that uniquely identify a place
* in the Google Places database and on Google Maps.
*/
id?: string;
}): {
id?: string;
result?: google.maps.places.PlaceResult;
status:
| "INVALID_REQUEST"
| "NOT_FOUND"
| "OK"
| "OVER_QUERY_LIMIT"
| "REQUEST_DENIED"
| "UNKNOWN_ERROR"
| "ZERO_RESULTS"
};
MIT Licensed
FAQs
React hooks for Google Places API
The npm package use-google-places-api receives a total of 5 weekly downloads. As such, use-google-places-api popularity was classified as not popular.
We found that use-google-places-api demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.