New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@r/frames

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@r/frames

A library for interacting with

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

r/iframes

A library for interacting with <iframes />.

Change Log

v0.0.0

Initial release

v0.1.1

Transform modules to commonjs

v0.1.5

Library is no built when installed as a dependency. This removes the dependency on Babel packages.

v0.1.6

Fixes a polyfill issue for server environments introduced in v0.1.4.

v0.2.0

Fixes a reference error with the hoisted arguments variable. Updates babel CLI and the presets used for building. Remove polyfill for CustomEvent.

Installation

yarn add @r/frames -s

Usage example

import * as frames from '@r/frames';

// parent window
frames.listen('dfp');
frames.receiveMessageOnce('init.dfp', () => {
  // do stuff.
});

// iframe
frames.postMessage(window.parent, 'init.dfp', data);

TODO

  1. Add tests
  2. Convert to typescript

FAQs

Package last updated on 28 Aug 2023

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