
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@onyourmarks/component-lib
Advanced tools
Component Lib is a frontend library that enables developers to test and develop components in isolation. It is built on top of Svelte kit, a framework for building web applications with Svelte.
To install the library, run the following command:
pnpm install @oym/component-lib
pnpm component-lib
The registry is a list of components that are available in the playground. To add a new component to the registry, follow these steps:
component-lib in the root of your project.register.ts with the following content:import MyComponent from '../src/lib/components/MyComponent.svelte';
import { MyComponentParameters } from './parameters/MyComponentParameters.ts';
export default [
{
title: 'MyComponent',
component: MyComponent,
parameters: MyComponentParameters,
},
];
The parameters folder contains the parameters for each component. The parameters are used to configure the component in the playground.
parameters within the component-lib folder.MyComponentParameters.ts with the following content:import type { ComponentLibParameters } from 'component-lib/types/ComponentTypes';
import { ChildComponentParameters } from './SvgParameters';
import ChildComponent from '../../src/lib/components/ChildComponent.svelte';
export const MyComponentParameters: ComponentLibParameters = [
{
name: 'selectProp',
type: 'select',
default: 'foo',
options: ['foo', 'bar']
},
{
name: 'textProp',
type: 'text',
default: 'Hello world',
},
{
name: 'children',
type: 'component',
component: {
title: 'ChildComponent',
instance: ChildComponent
},
options: ChildComponentParameters,
},
];
Text type:
textstringSelect type:
selectstringstring[]Check type:
checkbooleanArray type:
arrayany[]When a component has children, name should be set to children. Component type:
component{ title: string, instance: SvelteComponent }ComponentLibParametersText type:
textstringstringHTML type:
htmlstringstringSelect type:
selectstringstring[]stringFAQs
## Description
We found that @onyourmarks/component-lib 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.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.