figma-api-stub
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -150,2 +150,3 @@ "use strict"; | ||
this.type = "DOCUMENT"; | ||
this.children = []; | ||
} | ||
@@ -158,2 +159,3 @@ return DocumentNodeStub; | ||
this.type = "PAGE"; | ||
this.children = []; | ||
} | ||
@@ -166,2 +168,3 @@ return PageNodeStub; | ||
this.type = "FRAME"; | ||
this.children = []; | ||
} | ||
@@ -181,2 +184,3 @@ return FrameNodeStub; | ||
this.type = "COMPONENT"; | ||
this.children = []; | ||
} | ||
@@ -227,2 +231,5 @@ return ComponentNodeStub; | ||
PluginApiStub.prototype.group = function (nodes, parent, index) { | ||
if (joinedConfig.simulateErrors && (!nodes || nodes.length === 0)) { | ||
throw new Error("Error: First argument must be an array of at least one node"); | ||
} | ||
var group = new GroupNodeStub(); | ||
@@ -229,0 +236,0 @@ nodes.forEach(function (node) { return group.appendChild(node); }); |
{ | ||
"name": "figma-api-stub", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Figma API stub", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35273
823