🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

weaked

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weaked

weak decorator, wraps it with a WeakRef descriptor

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
70
-18.6%
Maintainers
1
Weekly downloads
 
Created
Source

Weakrefs as decorator

class Foo {
    @Weaked()
    bar: Bar;

    constructor(bar) {
       this.bar = bar;
    }
}

class Bar {
    baz() {
        return 5;
    }
}

const foo = new Foo(bar);

// This is derefed automaticly for your ease of coding
console.log(foo.bar?.baz());

Keywords

weak

FAQs

Package last updated on 01 Feb 2022

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