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

figma-json-plugin

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

figma-json-plugin - npm Package Compare versions

Comparing version 0.0.5-alpha.14 to 0.0.5-alpha.15

2

dist/figma-json.d.ts

@@ -430,4 +430,2 @@ export declare type Base64String = string;

expanded: boolean;
backgrounds: ReadonlyArray<Paint>;
backgroundStyleId: string;
}

@@ -434,0 +432,0 @@ export declare type StrokeCap = "NONE" | "ROUND" | "SQUARE" | "ARROW_LINES" | "ARROW_EQUILATERAL";

49

dist/index.js

@@ -111,2 +111,3 @@ "use strict";

var _relativeTransformEtc = ["size", "relativeTransform"];
var _backgrounds = ["backgrounds", "backgroundStyleId"];
var _defaultBlacklist = /* @__PURE__ */ new Set([

@@ -116,10 +117,22 @@ ...readBlacklist,

]);
var _defaultBlacklistNoBackgrounds = /* @__PURE__ */ new Set([
..._defaultBlacklist,
..._backgrounds
]);
var _noGeometryBlacklist = /* @__PURE__ */ new Set([..._defaultBlacklist, ..._tooManyPoints]);
var _okToReadDefsWithGeomBlacklist = /* @__PURE__ */ new Set([...readBlacklist]);
var _noGeometryNoBackgroundsBlacklist = /* @__PURE__ */ new Set([
..._noGeometryBlacklist,
..._backgrounds
]);
var _okToReadDefsWithGeomBlacklist = /* @__PURE__ */ new Set([
...readBlacklist,
..._backgrounds
]);
var _okToReadDefsNoGeomBlacklist = /* @__PURE__ */ new Set([
...readBlacklist,
_tooManyPoints
..._tooManyPoints,
..._backgrounds
]);
var _textLayerNoGeomBlacklist = /* @__PURE__ */ new Set([
..._defaultBlacklist,
..._defaultBlacklistNoBackgrounds,
..._tooManyPoints,

@@ -130,4 +143,7 @@ ..._relativeTransformEtc

..._tooManyPoints,
..._defaultBlacklist
..._defaultBlacklistNoBackgrounds
]);
function isOkToReadBackgrounds(n) {
return "type" in n && n.type === "PAGE";
}
function conditionalReadBlacklist(n, options) {

@@ -149,3 +165,3 @@ const okToReadDefs = "type" in n && (n.type === "COMPONENT_SET" || n.type === "COMPONENT" && (!n.parent || n.parent.type !== "COMPONENT_SET"));

}
} else {
} else if (isOkToReadBackgrounds(n)) {
if (ignoreGeometry) {

@@ -156,2 +172,8 @@ return _noGeometryBlacklist;

}
} else {
if (ignoreGeometry) {
return _noGeometryNoBackgroundsBlacklist;
} else {
return _defaultBlacklistNoBackgrounds;
}
}

@@ -268,5 +290,2 @@ }

}
if ("backgrounds" in n && n.backgrounds !== void 0) {
n.backgrounds = fixFills(n.backgrounds);
}
return n;

@@ -820,16 +839,2 @@ }

gridStyleId: "",
backgrounds: [
{
type: "SOLID",
visible: true,
opacity: 1,
blendMode: "NORMAL",
color: {
r: 1,
g: 1,
b: 1
}
}
],
backgroundStyleId: "",
clipsContent: true,

@@ -836,0 +841,0 @@ guides: [],

import { Options } from "./index";
export declare const readBlacklist: Set<string>;
export declare function conditionalReadBlacklistSimple(n: any, options: Pick<Options, "geometry">): Set<string>;
export declare function conditionalReadBlacklist(n: any, options: Pick<Options, "geometry">): Set<string | string[]>;
export declare function conditionalReadBlacklist(n: any, options: Pick<Options, "geometry">): Set<string>;
{
"name": "figma-json-plugin",
"version": "0.0.5-alpha.14",
"version": "0.0.5-alpha.15",
"description": "Dump a hierarchy to JSON within a Figma document, or insert a dumped JSON hierarchy. Intended for use within Figma plugins.",

@@ -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