@figma-export/core
Advanced tools
Comparing version 3.5.0 to 4.0.0-alpha.0
@@ -19,5 +19,9 @@ "use strict"; | ||
(() => __awaiter(void 0, void 0, void 0, function* () { | ||
const { FIGMA_TOKEN } = process.env; | ||
if (!FIGMA_TOKEN) { | ||
throw new Error('FIGMA_TOKEN is not defined'); | ||
} | ||
const fetch = (url) => __awaiter(void 0, void 0, void 0, function* () { | ||
return (yield axios_1.default.get(url, { | ||
headers: { 'X-FIGMA-TOKEN': process.env.FIGMA_TOKEN }, | ||
headers: { 'X-FIGMA-TOKEN': FIGMA_TOKEN }, | ||
})).data; | ||
@@ -24,0 +28,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
export declare const toArray: <T extends unknown>(any: T) => T[]; | ||
export declare const toArray: <T>(any: T) => T[]; | ||
export declare const fromEntries: (iterable: any[][]) => { | ||
@@ -3,0 +3,0 @@ [key: string]: any; |
{ | ||
"name": "@figma-export/core", | ||
"version": "3.5.0", | ||
"version": "4.0.0-alpha.0", | ||
"description": "@figma-export core functionalities", | ||
@@ -26,4 +26,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@figma-export/types": "^3.5.0", | ||
"axios": "~0.21.4", | ||
"@figma-export/types": "^4.0.0-alpha.0", | ||
"axios": "~0.24.0", | ||
"figma-js": "~1.14.0", | ||
@@ -33,5 +33,5 @@ "p-limit": "^3.1.0" | ||
"engines": { | ||
"node": ">= 10.13" | ||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" | ||
}, | ||
"gitHead": "087b570d5b3990a9cd541df3188c3011c0108e32" | ||
"gitHead": "69e5443cdb4a4f8ad9bf482d0a7dcca1bb261d96" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
53005
624
2
+ Added@figma-export/types@4.8.0(transitive)
+ Addedaxios@0.24.0(transitive)
+ Addedfigma-js@1.16.0(transitive)
- Removed@figma-export/types@3.5.0(transitive)
Updatedaxios@~0.24.0