
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
@map-colonies/export-interfaces
Advanced tools
This package define and expose common interfaces & types for export tasks
npm - @mapcolonies/export-interfaces
This package define and expose common interfaces & types for export tasks
npm install @mapcolonies/export-interfaces
export-interfaces exposes the 'Export Manager' interface with common functions to be implement
export interface IExportManager {
createExportTask: (data: CreateExportTaskRequest<TaskParameters>) => Promise<CreateExportTaskResponse>;
getEstimations: (catalogRecordID: string, ROI: FeatureCollection, additional?: Record<string, unknown>) => Promise<GetEstimationsResponse>;
getFootprint: (catalogRecordID: string) => Promise<FeatureCollection>;
}
most of Export-Interfaces functions uses @turf/turf npm package for geographic data.
import { IExportManager } from '@map-colonies/export-interfaces';
export class ExportManager implements IExportManager {
...
}
export class ExportManager implements IExportManager {
public constructor(@inject(SERVICES.LOGGER) private readonly logger: Logger) {}
public async createExportTask(data: CreateExportTaskRequest<TaskParameters>): Promise<CreateExportTaskResponse> {
this.logger.info({ msg: 'log message' });
...
...
const geometry1: Polygon = {
coordinates: [
[
[38.12777806969146, 34.88509668647414],
[37.79098758535008, 34.88509668647414],
[37.79098758535008, 34.557014824377575],
[38.12777806969146, 34.557014824377575],
[38.12777806969146, 34.88509668647414],
],
],
type: 'Polygon',
};
const geometry2: MultiPolygon = {
coordinates: [
[
[30.10241695788926, 27.097838272461956],
[29.991351500386685, 27.0731170944439],
[29.991351500386685, 26.949429475478382],
[30.08853377570128, 26.776038590550044],
[30.310664690705238, 26.98655005029447],
[30.10241695788926, 27.097838272461956],
],
],
type: 'Polygon',
};
const taskGeometries: TaskGeometry[] = [{ geometry: geometry1, metadata: { maxRes: 0.732 } }, { geometry2 }]; // ⇨ 'metadata' is optional here
const createExportTaskResponse: CreateExportTaskResponse = {
jobId: '4b3d6bcd-bbfd-4b2d-9x5d-ab8dfbdd4be4', // uuid format
geometries: taskGeometries,
}
...
return createExportTaskResponse;
}
}
Export-Interfaces exposes different event message types for each events Export-Management usage (expects to receive those message objects in order to handle them while task event has occurred)
publisher should handle those event message types ("DataType") by publishing them into message queue on Redis server ⇨ use BullMQ npm package
FAQs
This package define and expose common interfaces & types for export tasks
We found that @map-colonies/export-interfaces demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.