
Research
6 Malicious Packagist Themes Ship Trojanized jQuery and FUNNULL Redirect Payloads
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.
@ionic-enterprise/cs-demo-weather-widgets-react
Advanced tools
React specific proxies for @ionic-enterprise/cs-demo-weather-widgets
This is a sample custom element library that contains some simple weather related elements. This library contains the following custom elements:
npm i @ionic-enterprise/cs-demo-weather-widgets-react
This library includes a set of images under node_modules/@ionic-enterprise/cs-demo-weather-widgets/dist/images. If you copy all of these images to public/assets/images they will be automatically loaded by the components that need them.
You are also free to use your own images, copy them to a different location, and/or name some of the images differently.
If you use a different location or name, you need to let the components know the proper paths or names through a mapping. For example:
const icons = {
sunny: 'alt-location/images/sunny.png',
cloudy: 'alt-location/images/cloudy.png',
lightRain: 'alt-location/images/light-rain.png',
shower: 'alt-location/images/shower.png',
sunnyThunderstorm: 'alt-location/images/sunny-tstorm.png',
thunderstorm: 'alt-location/images/tstorm.png',
fog: 'alt-location/images/fog.png',
snow: 'alt-location/images/snow.png',
unknown: 'alt-location/images/unknown.png',
};
You can also use a partial mapping if only a couple of names have changed:
const icons = {
sunnyThunderstorm: 'assets/images/partial-tstorm.png',
unknown: 'assets/images/dunno.png',
};
The overrides can be specified on any component that has a iconPaths property:
<CsdemoCondition condition="200" iconPaths={icons} />
<CsdemoDailyForecast scale={scale} forecasts={dailyForecast} iconPaths={icons} />
CsdemoTemperatureDisplays the temperature, supplied in Kelvin, in the specified scale (C or F).
import { useState } from 'react';
import { CsdemoTemperature } from '@ionic-enterprise/cs-demo-weather-widgets-react';
const SomePage: React.FC = () => {
const [scale, setScale] = useState('F');
return (
<CsdemoTemperature
scale={scale}
temperature="297"
onClick={() => setScale(scale === 'F' ? 'C' : 'F')}
/>
);
};
CsdemoConditionDisplays the current condition in both text and icon form. The condition is one of the condition codes used by OpenWeatherMap.org.
import { CsdemoCondition } from '@ionic-enterprise/cs-demo-weather-widgets-react';
const SomePage: React.FC = () => {
return (
<CsdemoCondition condition="200" />
);
};
CsdemoUvIndexDisplays the UV index along with a risk level, in a color appropriate for the level of risk.
import { CsdemoUvIndex } from '@ionic-enterprise/cs-demo-weather-widgets-react';
const SomePage: React.FC = () => {
return (
<CsdemoUvIndex uvIndex="2.5" />
);
};
CsdemoDailyForecastDisplays the forecast for a given day.
import { useState } from 'react';
import { CsdemoDailyForecast } from '@ionic-enterprise/cs-demo-weather-widgets-react';
const SomePage: React.FC = () => {
const [scale, setScale] = useState('F');
const dailyForecast: Forecast = data;
return (
<CsdemoDailyForecast scale={scale} forecast={dailyForecast} />
);
};
The forecast property is a forecast data object in the following format:
export interface Forecast {
date: Date;
condition: number;
low: number;
high: number;
}
The low and high temperatures are specified in Kelvin.
The condition is one of the condition codes used by OpenWeatherMap.org.
That is it. We also have a demo application you can check out if you would like to.
Happy Coding!!
FAQs
React specific proxies for @ionic-enterprise/cs-demo-weather-widgets
We found that @ionic-enterprise/cs-demo-weather-widgets-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 30 open source maintainers 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
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.

Security News
The GCVE initiative operated by CIRCL has officially opened its publishing ecosystem, letting organizations issue and share vulnerability identifiers without routing through a central authority.

Security News
The project is retiring its odd/even release model in favor of a simpler annual cadence where every major version becomes LTS.