Comparing version 1.16.0 to 1.16.1-0
@@ -18,20 +18,20 @@ export interface Global { | ||
*/ | ||
export declare type StyleType = 'FILL' | 'TEXT' | 'EFFECT' | 'GRID'; | ||
export type StyleType = 'FILL' | 'TEXT' | 'EFFECT' | 'GRID'; | ||
/** | ||
* the above styles can be used in the following ways | ||
*/ | ||
export declare type StyleKeyType = 'fill' | 'stroke' | 'effect' | 'grid' | 'text' | 'background'; | ||
export declare type StylesObject = { | ||
export type StyleKeyType = 'fill' | 'stroke' | 'effect' | 'grid' | 'text' | 'background'; | ||
export type StylesObject = { | ||
[key in StyleKeyType]: Record<key, string>; | ||
}[StyleKeyType]; | ||
export declare type ScaleMode = 'FILL' | 'FIT' | 'TILE' | 'STRETCH'; | ||
export declare type PaintTypeSolid = 'SOLID'; | ||
export declare type PaintTypeGraident = 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' | 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND'; | ||
export declare type PaintTypeImage = 'IMAGE' | 'EMOJI'; | ||
export declare type TextType = 'TEXT'; | ||
export declare type PaintType = PaintTypeSolid | PaintTypeGraident | PaintTypeImage; | ||
export type ScaleMode = 'FILL' | 'FIT' | 'TILE' | 'STRETCH'; | ||
export type PaintTypeSolid = 'SOLID'; | ||
export type PaintTypeGradient = 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' | 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND'; | ||
export type PaintTypeImage = 'IMAGE' | 'EMOJI'; | ||
export type TextType = 'TEXT'; | ||
export type PaintType = PaintTypeSolid | PaintTypeGradient | PaintTypeImage; | ||
/** | ||
* how the layer blends with layers below | ||
*/ | ||
export declare type BlendMode = 'PASS_THROUGH' /** (Only applicable to objects with children) */ | 'NORMAL' | ||
export type BlendMode = 'PASS_THROUGH' /** (Only applicable to objects with children) */ | 'NORMAL' | ||
/** Darken: */ | ||
@@ -47,6 +47,6 @@ | 'DARKEN' | 'MULTIPLY' | 'LINEAR_BURN' | 'COLOR_BURN' | ||
| 'HUE' | 'SATURATION' | 'COLOR' | 'LUMINOSITY'; | ||
export declare type EasingType = 'EASE_IN' /** Ease in with an animation curve similar to CSS ease-in */ | 'EASE_OUT' /** Ease out with an animation curve similar to CSS ease-out */ | 'EASE_IN_AND_OUT'; /** Ease in and then out with an animation curve similar to CSS ease-in-out */ | ||
export declare type RoleType = 'viewer' | 'editor' | 'owner'; | ||
export declare type NodeType = 'DOCUMENT' | 'CANVAS' | 'FRAME' | 'GROUP' | 'VECTOR' | 'BOOLEAN_OPERATION' | 'STAR' | 'LINE' | 'ELLIPSE' | 'REGULAR_POLYGON' | 'RECTANGLE' | 'TEXT' | 'SLICE' | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'; | ||
export declare type Node = Document | Canvas | Frame | Group | Vector | BooleanOperation | Star | Line | Ellipse | RegularPolygon | Rectangle | Text | Slice | Component | ComponentSet | Instance; | ||
export type EasingType = 'EASE_IN' /** Ease in with an animation curve similar to CSS ease-in */ | 'EASE_OUT' /** Ease out with an animation curve similar to CSS ease-out */ | 'EASE_IN_AND_OUT'; /** Ease in and then out with an animation curve similar to CSS ease-in-out */ | ||
export type RoleType = 'viewer' | 'editor' | 'owner'; | ||
export type NodeType = 'DOCUMENT' | 'CANVAS' | 'FRAME' | 'GROUP' | 'VECTOR' | 'BOOLEAN_OPERATION' | 'STAR' | 'LINE' | 'ELLIPSE' | 'REGULAR_POLYGON' | 'RECTANGLE' | 'TEXT' | 'SLICE' | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'; | ||
export type Node = Document | Canvas | Frame | Group | Vector | BooleanOperation | Star | Line | Ellipse | RegularPolygon | Rectangle | Text | Slice | Component | ComponentSet | Instance; | ||
/** Node Properties */ | ||
@@ -654,3 +654,3 @@ /** The root node */ | ||
} | ||
export declare type Transform = ReadonlyArray<ReadonlyArray<number>>; | ||
export type Transform = ReadonlyArray<ReadonlyArray<number>>; | ||
/** A 2d vector */ | ||
@@ -657,0 +657,0 @@ export interface Vector2 { |
@@ -47,3 +47,3 @@ import * as Figma from './figmaTypes'; | ||
} | ||
export declare type exportFormatOptions = 'jpg' | 'png' | 'svg' | 'pdf'; | ||
export type exportFormatOptions = 'jpg' | 'png' | 'svg' | 'pdf'; | ||
export interface FileImageParams { | ||
@@ -50,0 +50,0 @@ /** A list of node IDs to render */ |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -62,2 +66,2 @@ if (k2 === undefined) k2 = k; | ||
exports.Client = Client; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUVBLCtDQUE2QjtBQUM3QixrREFBMkQ7QUF5VXBELE1BQU0sTUFBTSxHQUFHLENBQUMsSUFBbUIsRUFBbUIsRUFBRTtJQUM3RCxNQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsV0FBVztRQUM5QixDQUFDLENBQUM7WUFDRSxhQUFhLEVBQUUsVUFBVSxJQUFJLENBQUMsV0FBVyxFQUFFO1NBQzVDO1FBQ0gsQ0FBQyxDQUFDO1lBQ0UsZUFBZSxFQUFFLElBQUksQ0FBQyxtQkFBbUI7U0FDMUMsQ0FBQztJQUVOLE1BQU0sTUFBTSxHQUFHLGVBQUssQ0FBQyxNQUFNLENBQUM7UUFDMUIsT0FBTyxF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RSxDQUFDLE1BQU0sRUFBRSxNQUFNLEdBQUcsRUFBRSxFQUFFLEVBQUUsQ0FDbEMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxTQUFTLE1BQU0sU0FBUyxFQUFFLEVBQUUsTUFBTSxFQUFFLENBQUM7UUFFbEQsVUFBVSxFQUFFLENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLFNBQVMsTUFBTSxTQUFTLENBQUM7UUFFNUQsS0FBSyxFQUFFLENBQUMsR0FBRyxFQUFFLEVBQUUsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLFVBQVUsR0FBRyxFQUFFLENBQUM7S0FDNUMsQ0FBQztBQUNKLENBQUMsQ0FBQztBQWhGVyxRQUFBLE1BQU0sVUFnRmpCIn0= |
@@ -18,20 +18,20 @@ export interface Global { | ||
*/ | ||
export declare type StyleType = 'FILL' | 'TEXT' | 'EFFECT' | 'GRID'; | ||
export type StyleType = 'FILL' | 'TEXT' | 'EFFECT' | 'GRID'; | ||
/** | ||
* the above styles can be used in the following ways | ||
*/ | ||
export declare type StyleKeyType = 'fill' | 'stroke' | 'effect' | 'grid' | 'text' | 'background'; | ||
export declare type StylesObject = { | ||
export type StyleKeyType = 'fill' | 'stroke' | 'effect' | 'grid' | 'text' | 'background'; | ||
export type StylesObject = { | ||
[key in StyleKeyType]: Record<key, string>; | ||
}[StyleKeyType]; | ||
export declare type ScaleMode = 'FILL' | 'FIT' | 'TILE' | 'STRETCH'; | ||
export declare type PaintTypeSolid = 'SOLID'; | ||
export declare type PaintTypeGraident = 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' | 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND'; | ||
export declare type PaintTypeImage = 'IMAGE' | 'EMOJI'; | ||
export declare type TextType = 'TEXT'; | ||
export declare type PaintType = PaintTypeSolid | PaintTypeGraident | PaintTypeImage; | ||
export type ScaleMode = 'FILL' | 'FIT' | 'TILE' | 'STRETCH'; | ||
export type PaintTypeSolid = 'SOLID'; | ||
export type PaintTypeGradient = 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' | 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND'; | ||
export type PaintTypeImage = 'IMAGE' | 'EMOJI'; | ||
export type TextType = 'TEXT'; | ||
export type PaintType = PaintTypeSolid | PaintTypeGradient | PaintTypeImage; | ||
/** | ||
* how the layer blends with layers below | ||
*/ | ||
export declare type BlendMode = 'PASS_THROUGH' /** (Only applicable to objects with children) */ | 'NORMAL' | ||
export type BlendMode = 'PASS_THROUGH' /** (Only applicable to objects with children) */ | 'NORMAL' | ||
/** Darken: */ | ||
@@ -47,6 +47,6 @@ | 'DARKEN' | 'MULTIPLY' | 'LINEAR_BURN' | 'COLOR_BURN' | ||
| 'HUE' | 'SATURATION' | 'COLOR' | 'LUMINOSITY'; | ||
export declare type EasingType = 'EASE_IN' /** Ease in with an animation curve similar to CSS ease-in */ | 'EASE_OUT' /** Ease out with an animation curve similar to CSS ease-out */ | 'EASE_IN_AND_OUT'; /** Ease in and then out with an animation curve similar to CSS ease-in-out */ | ||
export declare type RoleType = 'viewer' | 'editor' | 'owner'; | ||
export declare type NodeType = 'DOCUMENT' | 'CANVAS' | 'FRAME' | 'GROUP' | 'VECTOR' | 'BOOLEAN_OPERATION' | 'STAR' | 'LINE' | 'ELLIPSE' | 'REGULAR_POLYGON' | 'RECTANGLE' | 'TEXT' | 'SLICE' | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'; | ||
export declare type Node = Document | Canvas | Frame | Group | Vector | BooleanOperation | Star | Line | Ellipse | RegularPolygon | Rectangle | Text | Slice | Component | ComponentSet | Instance; | ||
export type EasingType = 'EASE_IN' /** Ease in with an animation curve similar to CSS ease-in */ | 'EASE_OUT' /** Ease out with an animation curve similar to CSS ease-out */ | 'EASE_IN_AND_OUT'; /** Ease in and then out with an animation curve similar to CSS ease-in-out */ | ||
export type RoleType = 'viewer' | 'editor' | 'owner'; | ||
export type NodeType = 'DOCUMENT' | 'CANVAS' | 'FRAME' | 'GROUP' | 'VECTOR' | 'BOOLEAN_OPERATION' | 'STAR' | 'LINE' | 'ELLIPSE' | 'REGULAR_POLYGON' | 'RECTANGLE' | 'TEXT' | 'SLICE' | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'; | ||
export type Node = Document | Canvas | Frame | Group | Vector | BooleanOperation | Star | Line | Ellipse | RegularPolygon | Rectangle | Text | Slice | Component | ComponentSet | Instance; | ||
/** Node Properties */ | ||
@@ -654,3 +654,3 @@ /** The root node */ | ||
} | ||
export declare type Transform = ReadonlyArray<ReadonlyArray<number>>; | ||
export type Transform = ReadonlyArray<ReadonlyArray<number>>; | ||
/** A 2d vector */ | ||
@@ -657,0 +657,0 @@ export interface Vector2 { |
@@ -47,3 +47,3 @@ import * as Figma from './figmaTypes'; | ||
} | ||
export declare type exportFormatOptions = 'jpg' | 'png' | 'svg' | 'pdf'; | ||
export type exportFormatOptions = 'jpg' | 'png' | 'svg' | 'pdf'; | ||
export interface FileImageParams { | ||
@@ -50,0 +50,0 @@ /** A list of node IDs to render */ |
{ | ||
"name": "figma-js", | ||
"version": "1.16.0", | ||
"version": "1.16.1-0", | ||
"description": "A simple wrapper for the Figma API", | ||
@@ -13,3 +13,3 @@ "main": "build/main/index.js", | ||
"info": "npm-scripts-info", | ||
"build": "run-s clean && run-p build:*", | ||
"build": "run-s clean && run-p build:main build:module", | ||
"build:main": "tsc -p tsconfig.json", | ||
@@ -38,3 +38,3 @@ "build:module": "tsc -p tsconfig.module.json", | ||
"prepare-release": "yarn build && yarn doc && yarn doc:publish", | ||
"release": "yarn prepare-release && yarn publish && git push && git push --tag", | ||
"release": "yarn prepare-release && yarn npm publish && git push && git push --tag", | ||
"zzzpreinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('figma-js must be installed with Yarn: https://yarnpkg.com/')\"" | ||
@@ -59,3 +59,3 @@ }, | ||
"dependencies": { | ||
"axios": "^0.21.1" | ||
"axios": "^1.6.0" | ||
}, | ||
@@ -104,3 +104,5 @@ "devDependencies": { | ||
] | ||
} | ||
} | ||
}, | ||
"packageManager": "yarn@4.1.1", | ||
"stableVersion": "1.16.0" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
2641
122159
2
1
+ Addedasynckit@0.4.0(transitive)
+ Addedaxios@1.7.7(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedaxios@0.21.4(transitive)
Updatedaxios@^1.6.0