New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opendesign/octopus-fig

Package Overview
Dependencies
Maintainers
14
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opendesign/octopus-fig - npm Package Compare versions

Comparing version 3.0.0-rc.19 to 3.0.0-rc.20

lib/src/utils/const.d.ts

2

lib/package.json
{
"name": "@opendesign/octopus-fig",
"version": "3.0.0-rc.19",
"version": "3.0.0-rc.20",
"description": "Figma HTTP API format to Octopus 3+ converter.",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

/// <reference types="node" />
import EventEmitter from 'events';
import { getOctopusFileName, getPreviewFileName, getSourceFileName } from '../../../utils/exporter';
import type { Manifest } from '../../../typings/manifest';

@@ -15,2 +14,7 @@ import type { RawDesign, RawLayerFrame } from '../../../typings/raw';

};
export declare const IMAGES_DIR_NAME = "images";
export declare const IMAGE_EXTNAME = ".png";
export declare function getOctopusFileName(id: string): string;
export declare function getPreviewFileName(id: string): string;
export declare function getSourceFileName(id: string): string;
/**

@@ -17,0 +21,0 @@ * Exporter created to be used in manual runs.

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DebugExporter = void 0;
exports.DebugExporter = exports.getSourceFileName = exports.getPreviewFileName = exports.getOctopusFileName = exports.IMAGE_EXTNAME = exports.IMAGES_DIR_NAME = void 0;
const events_1 = __importDefault(require("events"));

@@ -12,6 +12,21 @@ const path_1 = __importDefault(require("path"));

const timestamp_1 = require("@opendesign/octopus-common/dist/utils/timestamp");
const kebabCase_1 = __importDefault(require("lodash/kebabCase"));
const uuid_1 = require("uuid");
const exporter_1 = require("../../../utils/exporter");
const const_1 = require("../../../utils/const");
const files_1 = require("../../../utils/files");
const misc_1 = require("../../../utils/misc");
exports.IMAGES_DIR_NAME = 'images';
exports.IMAGE_EXTNAME = '.png';
function getOctopusFileName(id) {
return `${(0, kebabCase_1.default)(id)}-octopus.json`;
}
exports.getOctopusFileName = getOctopusFileName;
function getPreviewFileName(id) {
return `${(0, kebabCase_1.default)(id)}-preview${exports.IMAGE_EXTNAME}`;
}
exports.getPreviewFileName = getPreviewFileName;
function getSourceFileName(id) {
return `${(0, kebabCase_1.default)(id)}-source.json`;
}
exports.getSourceFileName = getSourceFileName;
/**

@@ -107,3 +122,3 @@ * Exporter created to be used in manual runs.

getImagePath(name) {
return path_1.default.join(DebugExporter.IMAGES_DIR_NAME, `${name}${exporter_1.IMAGE_EXTNAME}`);
return path_1.default.join(DebugExporter.IMAGES_DIR_NAME, `${name}${exports.IMAGE_EXTNAME}`);
}

@@ -145,6 +160,6 @@ /**

exports.DebugExporter = DebugExporter;
DebugExporter.IMAGES_DIR_NAME = exporter_1.IMAGES_DIR_NAME;
DebugExporter.MANIFEST_NAME = exporter_1.MANIFEST_NAME;
DebugExporter.getSourceFileName = exporter_1.getSourceFileName;
DebugExporter.getOctopusFileName = exporter_1.getOctopusFileName;
DebugExporter.getPreviewFileName = exporter_1.getPreviewFileName;
DebugExporter.IMAGES_DIR_NAME = exports.IMAGES_DIR_NAME;
DebugExporter.MANIFEST_NAME = const_1.MANIFEST_NAME;
DebugExporter.getSourceFileName = getSourceFileName;
DebugExporter.getOctopusFileName = getOctopusFileName;
DebugExporter.getPreviewFileName = getPreviewFileName;

@@ -1,2 +0,1 @@

import { getOctopusFileName, getPreviewFileName, getSourceFileName } from '../../../utils/exporter';
import type { Manifest } from '../../../typings/manifest';

@@ -11,2 +10,7 @@ import type { RawDesign, RawLayerFrame } from '../../../typings/raw';

};
export declare const IMAGES_DIR_NAME = "images";
export declare const IMAGE_EXTNAME = ".png";
export declare function getOctopusFileName(id: string): string;
export declare function getPreviewFileName(id: string): string;
export declare function getSourceFileName(id: string): string;
/**

@@ -13,0 +17,0 @@ * Exporter created to be used in automated runs.

@@ -6,10 +6,25 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.LocalExporter = void 0;
exports.LocalExporter = exports.getSourceFileName = exports.getPreviewFileName = exports.getOctopusFileName = exports.IMAGE_EXTNAME = exports.IMAGES_DIR_NAME = void 0;
const os_1 = __importDefault(require("os"));
const path_1 = __importDefault(require("path"));
const async_1 = require("@opendesign/octopus-common/dist/utils/async");
const kebabCase_1 = __importDefault(require("lodash/kebabCase"));
const uuid_1 = require("uuid");
const exporter_1 = require("../../../utils/exporter");
const const_1 = require("../../../utils/const");
const files_1 = require("../../../utils/files");
const misc_1 = require("../../../utils/misc");
exports.IMAGES_DIR_NAME = 'images';
exports.IMAGE_EXTNAME = '.png';
function getOctopusFileName(id) {
return `octopus-${(0, kebabCase_1.default)(id)}.json`;
}
exports.getOctopusFileName = getOctopusFileName;
function getPreviewFileName(id) {
return `preview-${(0, kebabCase_1.default)(id)}${exports.IMAGE_EXTNAME}`;
}
exports.getPreviewFileName = getPreviewFileName;
function getSourceFileName(id) {
return `source-${(0, kebabCase_1.default)(id)}.json`;
}
exports.getSourceFileName = getSourceFileName;
/**

@@ -95,3 +110,3 @@ * Exporter created to be used in automated runs.

getImagePath(name) {
return path_1.default.join(LocalExporter.IMAGES_DIR_NAME, `${name}${exporter_1.IMAGE_EXTNAME}`);
return path_1.default.join(LocalExporter.IMAGES_DIR_NAME, `${name}${exports.IMAGE_EXTNAME}`);
}

@@ -130,6 +145,6 @@ /**

exports.LocalExporter = LocalExporter;
LocalExporter.IMAGES_DIR_NAME = exporter_1.IMAGES_DIR_NAME;
LocalExporter.MANIFEST_NAME = exporter_1.MANIFEST_NAME;
LocalExporter.getSourceFileName = exporter_1.getSourceFileName;
LocalExporter.getOctopusFileName = exporter_1.getOctopusFileName;
LocalExporter.getPreviewFileName = exporter_1.getPreviewFileName;
LocalExporter.IMAGES_DIR_NAME = exports.IMAGES_DIR_NAME;
LocalExporter.MANIFEST_NAME = const_1.MANIFEST_NAME;
LocalExporter.getSourceFileName = getSourceFileName;
LocalExporter.getOctopusFileName = getOctopusFileName;
LocalExporter.getPreviewFileName = getPreviewFileName;
{
"name": "@opendesign/octopus-fig",
"version": "3.0.0-rc.19",
"version": "3.0.0-rc.20",
"description": "Figma HTTP API format to Octopus 3+ converter.",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

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