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.48 to 0.0.49

40

dist/stubs.js

@@ -103,2 +103,5 @@ "use strict";

};
var getImageHash = function () {
return nanoid_1.nanoid(40);
};
var UIAPIStub = /** @class */ (function () {

@@ -288,2 +291,20 @@ function UIAPIStub() {

}());
var GeometryMixinStub = /** @class */ (function () {
function GeometryMixinStub() {
}
Object.defineProperty(GeometryMixinStub.prototype, "fills", {
get: function () {
return this._fills || [];
},
set: function (theFills) {
this._fills = theFills;
},
enumerable: true,
configurable: true
});
GeometryMixinStub.prototype.outlineStroke = function () {
return null;
};
return GeometryMixinStub;
}());
var RectangleNodeStub = /** @class */ (function () {

@@ -298,3 +319,4 @@ function RectangleNodeStub() {

LayoutMixinStub,
ExportMixinStub
ExportMixinStub,
GeometryMixinStub
]);

@@ -400,3 +422,4 @@ var TextNodeStub = /** @class */ (function () {

LayoutMixinStub,
ExportMixinStub
ExportMixinStub,
GeometryMixinStub
]);

@@ -445,3 +468,4 @@ var DocumentNodeStub = /** @class */ (function () {

LayoutMixinStub,
ExportMixinStub
ExportMixinStub,
GeometryMixinStub
]);

@@ -485,3 +509,4 @@ var GroupNodeStub = /** @class */ (function () {

ExportMixinStub,
LayoutMixinStub
LayoutMixinStub,
GeometryMixinStub
]);

@@ -694,2 +719,9 @@ var InstanceNodeStub = /** @class */ (function () {

};
PluginApiStub.prototype.createImage = function (bytes) {
var hash = getImageHash();
return {
hash: hash,
getBytesAsync: function () { return Promise.resolve(bytes); }
};
};
// @ts-ignore

@@ -696,0 +728,0 @@ PluginApiStub.prototype.group = function (nodes, parent, index) {

2

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

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

@@ -47,1 +47,2 @@ # Figma API Stub

- [FigmaToCode](https://github.com/bernaferrari/FigmaToCode)
- [figx](https://github.com/n0ruSh/figx)

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