Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

observable-membrane

Package Overview
Dependencies
Maintainers
11
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

observable-membrane

Observable Membrane implementation for LWC


Version published
Weekly downloads
4.3K
increased by26.12%
Maintainers
11
Weekly downloads
 
Created
Source

Locker Service Membrane

This package implements a membrane for locker service integration. It supports distorting objects within an object graph for extra security and access checks.

Usage

This package exposes one primitive:

'''js import { Membrane } from 'locker-membrane';

function distortion (value) { console.log('distorting');

if (value === 2) {
    return 4;
}

return value;

}

const plainObject = { x: 2, y: 1 };

const membrane = new Membrane(distortion); // create new membrane const seed = membrane.piercingHook(plainObject); // console output -> 'distorting'. Returns membrane proxy. seed.x // 4 seed.y // 1

FAQs

Package last updated on 01 Aug 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc