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

@invisionapp/studio-api

Package Overview
Dependencies
Maintainers
19
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invisionapp/studio-api - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

5

CHANGELOG.md

@@ -10,2 +10,7 @@ # Changelog

## 3.2.0 - 2019-05-02
## Added
- Added `React` as a global libraries that is exposed to plugins to facilitate
React hooks.
## 3.1.0 - 2019-04-09

@@ -12,0 +17,0 @@ ## Added

16

index.js
// API major version
const APIversion = 0;
// Global key
const key = 'invision@external';
// Global keys
const GLOBAL_API_KEY = 'invision@external';
const GLOBAL_REACT_KEY = 'invision@react';
const getApi = ((typeof global !== 'undefined') && (typeof global[key] === 'function'))
? global[key]
: () => { return null; };
const getApi =
typeof global !== 'undefined' && typeof global[GLOBAL_API_KEY] === 'function'
? global[GLOBAL_API_KEY] : () => { return null; };
const getReact =
typeof global !== 'undefined' && typeof global[GLOBAL_REACT_KEY] === 'function'
? global[GLOBAL_REACT_KEY] : null;
const context = { version: APIversion };

@@ -18,1 +23,2 @@

module.exports = getApi(context);
module.exports.React = getReact();
{
"name": "@invisionapp/studio-api",
"version": "3.1.0",
"version": "3.2.0",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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