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

babel-plugin-isotropy-webservices

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-isotropy-webservices

Babel plugin for transpiling to isotropy-lib-webservices

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
4
Weekly downloads
 
Created
Source

Isotropy Babel Plugin for RPC

This module is a babel plugin that transpiles function calls from the designated server module(s) into corresponding server calls.

It uses isotropy-ast-analyzer-webservices for AST analysis.

This is part of the isotropy framework (www.isotropy.org).

Usage

Create a module "server.js" containing a set of exported function that mock the server. The filename can be changed in configuration.

//In my-server/index.js
export function getAllTodos() {
  return todos
}

Perform a RPC

import * as myServer from "../my-server";

async function getAllTodos() {
  return await myServer.postsAPI.getAllTodos();
}

Configuration

In .babelrc include

plugins: ["transform-to-isotropy-rpc",
  {
    projects:
      [
        {
          dir: "src",
          modules: [{ source: "server/my-server", url: "https://www.example.com" }]
        }
      ]
  }
]

Specify the filesystem directory in which your project lies and include the module's path and the url it translates to.

FAQs

Package last updated on 11 Oct 2017

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