![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
ak-layer
Advanced tools
Readme
A container responsible for the positioning of an element on a page
npm install ak-layer
The ak-layer
package exports the Layer skate component:
import Layer from 'ak-layer';
const myLayer = new Layer();
Properties
layer.position
: stringlayer.constrain
: Stringlayer.target
: StringThe definition for the Layer component.
HTML Example
<ak-layer target="#target"></ak-layer>
JS Example
import Layer from 'ak-layer';
const myLayer = new Layer();
layer.position
: stringPosition of a layer relative to it's target.
The position attribute takes two positional arguments in the format position="edge edge-position"
,
where edge
specifies what edge to align the layer to, and edge-position
specifies where on that edge the layer should appear.
Refer to the table below for examples:
top left | top center | top right | ||
---|---|---|---|---|
left top | right top | |||
left middle | target | right middle | ||
left bottom | right bottom | |||
bottom left | bottom center | bottom right |
Kind: instance property of Layer
Default: "right middle"
HTML Example
<ak-layer position="top left"></ak-layer>
JS Example
layer.position = 'top left';
layer.constrain
: StringConstrain a layer to a scrollable parent or the window
Kind: instance property of Layer
Default: 'window'
HTML Example
<ak-layer constrain="scrollParent"></ak-layer>
JS Example
layer.constrain = 'scrollParent'
layer.target
: StringTarget of a layer. Selector or element on a page relative to which layer should be positioned
Kind: instance property of Layer
HTML Example
<ak-layer target="#target"></ak-layer>
JS Example
layer.target = document.body.querySelector('#target');
JS Example
layer.target = '#target'
FAQs
Unknown package
We found that ak-layer 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
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.