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

figma-api-stub

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

figma-api-stub - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

12

dist/stubs.js

@@ -18,2 +18,8 @@ "use strict";

};
var isInsideInstance = function (node) {
if (!node.parent) {
return;
}
return node.parent.type === "INSTANCE" || isInsideInstance(node.parent);
};
exports.createFigma = function (config) {

@@ -136,2 +142,5 @@ var joinedConfig = __assign({}, defaultConfig, config);

this.removed = true;
if (joinedConfig.simulateErrors && isInsideInstance(this)) {
throw new Error("Error: can't remove item");
}
if (this.parent) {

@@ -148,2 +157,5 @@ // @ts-ignore

LayoutMixinStub.prototype.resize = function (width, height) {
if (joinedConfig.simulateErrors && isInsideInstance(this)) {
throw new Error("Error: can't change layout inside item");
}
if (joinedConfig.simulateErrors && width < 0.01) {

@@ -150,0 +162,0 @@ throw new Error('Error: in resize: Expected "width" to have value >= 0.01');

2

package.json
{
"name": "figma-api-stub",
"version": "0.0.20",
"version": "0.0.21",
"description": "Figma API stub",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

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