Comparing version 1.6.0 to 1.6.1
import * as Figma from './figmaTypes'; | ||
export * from './figmaTypes'; | ||
import { AxiosPromise } from 'axios'; | ||
import { AxiosPromise, AxiosInstance } from 'axios'; | ||
export interface FileParams { | ||
@@ -45,2 +45,3 @@ readonly fileId?: string; | ||
export interface ClientInterface { | ||
readonly client: AxiosInstance; | ||
/** | ||
@@ -47,0 +48,0 @@ * Returns the document refered to by :key as a JSON object. |
@@ -24,2 +24,3 @@ "use strict"; | ||
return { | ||
client, | ||
file: (fileId, params = {}) => client.get(`files/${fileId}`, { params }), | ||
@@ -35,2 +36,2 @@ fileImages: (fileId, params) => client.get(`images/${fileId}`, { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFFQSxrQ0FBNkI7QUFDN0Isa0RBQTRDO0FBa0gvQixRQUFBLE1BQU0sR0FBRyxDQUFDLElBQW1CLEVBQW1CLEVBQUU7SUFDN0QsTUFBTSxPQUFPLEdBQUcsSUFBSSxDQUFDLFdBQVc7UUFDOUIsQ0FBQyxDQUFDO1lBQ0UsYUFBYSxFQUFFLFVBQVUsSUFBSSxDQUFDLFdBQVcsRUFBRTtTQUM1QztRQUNILENBQUMsQ0FBQztZQUNFLGVBQWUsRUFBRSxJQUFJLENBQUMsbUJBQW1CO1NBQzFDLENBQUM7SUFFTixNQUFNLE1BQU0sR0FBRyxlQUFLLENBQUMsTUFBTSxDQUFDO1FBQzFCLE9BQU8sRUFBRSxXQUFXLElBQUksQ0FBQyxPQUFPLElBQUksZUFBZSxNQUFNO1FBQ3pELE9BQU87S0FDUixDQUFDLENBQUM7SUFFSCxNQUFNLENBQUM7UUFDTCxJQUFJLEVBQUUsQ0FBQyxNQUFNLEVBQUUsTUFBTSxHQ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0FBQyxJQUFJLENBQUMsU0FBUyxNQUFNLFdBQVcsRUFBRSxNQUFNLENBQUM7UUFFakQsWUFBWSxFQUFFLE1BQU0sQ0FBQyxFQUFFLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxTQUFTLE1BQU0sV0FBVyxDQUFDO1FBRTlELFlBQVksRUFBRSxTQUFTLENBQUMsRUFBRSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsWUFBWSxTQUFTLFFBQVEsQ0FBQztLQUNyRSxDQUFDO0FBQ0osQ0FBQyxDQUFDIn0= |
import * as Figma from './figmaTypes'; | ||
export * from './figmaTypes'; | ||
import { AxiosPromise } from 'axios'; | ||
import { AxiosPromise, AxiosInstance } from 'axios'; | ||
export interface FileParams { | ||
@@ -45,2 +45,3 @@ readonly fileId?: string; | ||
export interface ClientInterface { | ||
readonly client: AxiosInstance; | ||
/** | ||
@@ -47,0 +48,0 @@ * Returns the document refered to by :key as a JSON object. |
@@ -24,2 +24,3 @@ var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
return { | ||
client: client, | ||
file: function (fileId, params) { | ||
@@ -42,2 +43,2 @@ if (params === void 0) { params = {}; } | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFFQSxjQUFjLGNBQWMsQ0FBQztBQUM3QixPQUFPLEtBQXVCLE1BQU0sT0FBTyxDQUFDO0FBa0g1QyxNQUFNLENBQUMsSUFBTSxNQUFNLEdBQUcsVUFBQyxJQUFtQjtJQUN4QyxJQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsV0FBVztRQUM5QixDQUFDLENBQUM7WUFDRSxhQUFhLEVBQUUsWUFBVSxJQUFJLENBQUMsV0FBYTtTQUM1QztRQU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QztRQUV4RSxVQUFVLEVBQUUsVUFBQyxNQUFNLEVBQUUsTUFBTTtZQUN6QixPQUFBLE1BQU0sQ0FBQyxHQUFHLENBQUMsWUFBVSxNQUFRLEVBQUU7Z0JBQzdCLE1BQU0sZUFDRCxNQUFNLElBQ1QsR0FBRyxFQUFFLE1BQU0sQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUMxQjthQUNGLENBQUM7UUFMRixDQUtFO1FBRUosUUFBUSxFQUFFLFVBQUEsTUFBTSxJQUFJLE9BQUEsTUFBTSxDQUFDLEdBQUcsQ0FBQyxXQUFTLE1BQU0sY0FBVyxDQUFDLEVBQXRDLENBQXNDO1FBRTFELFdBQVcsRUFBRSxVQUFDLE1BQU0sRUFBRSxNQUFNO1lBQzFCLE9BQUEsTUFBTSxDQUFDLElBQUksQ0FBQyxXQUFTLE1BQU0sY0FBVyxFQUFFLE1BQU0sQ0FBQztRQUEvQyxDQUErQztRQUVqRCxZQUFZLEVBQUUsVUFBQSxNQUFNLElBQUksT0FBQSxNQUFNLENBQUMsR0FBRyxDQUFDLFdBQVMsTUFBTSxjQUFXLENBQUMsRUFBdEMsQ0FBc0M7UUFFOUQsWUFBWSxFQUFFLFVBQUEsU0FBUyxJQUFJLE9BQUEsTUFBTSxDQUFDLEdBQUcsQ0FBQyxjQUFZLFNBQVMsV0FBUSxDQUFDLEVBQXpDLENBQXlDO0tBQ3JFLENBQUM7QUFDSixDQUFDLENBQUMifQ== |
{ | ||
"name": "figma-js", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "A simple wrapper for the Figma API", | ||
@@ -5,0 +5,0 @@ "main": "build/main/index.js", |
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
257551
16
1637