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

@emigrate/plugin-tools

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emigrate/plugin-tools - npm Package Compare versions

Comparing version

to
0.8.0

27

dist/index.d.ts

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

import { type PluginFromType, type GeneratorPlugin, type EmigrateReporter, type EmigrateStorage, type LoaderPlugin, type StringOrModule, type SerializedError } from './types.js';
export declare const serializeError: (error: Error) => SerializedError;
import { type PluginFromType, type GeneratorPlugin, type EmigrateReporter, type EmigrateStorage, type LoaderPlugin, type StringOrModule } from '@emigrate/types';
export declare const isGeneratorPlugin: (plugin: any) => plugin is GeneratorPlugin;

@@ -7,14 +6,14 @@ export declare const isEmigrateStorage: (plugin: any) => plugin is EmigrateStorage;

export declare const isEmigrateReporter: (plugin: any) => plugin is Partial<{
onInit(parameters: import("./types.js").ReporterInitParameters): import("./types.js").Awaitable<void>;
onCollectedMigrations(migrations: import("./types.js").MigrationMetadata[]): import("./types.js").Awaitable<void>;
onLockedMigrations(migrations: import("./types.js").MigrationMetadata[]): import("./types.js").Awaitable<void>;
onNewMigration(migration: import("./types.js").MigrationMetadata, content: string): import("./types.js").Awaitable<void>;
onMigrationRemoveStart(migration: import("./types.js").MigrationMetadata): import("./types.js").Awaitable<void>;
onMigrationRemoveSuccess(migration: import("./types.js").MigrationMetadataFinished): import("./types.js").Awaitable<void>;
onMigrationRemoveError(migration: import("./types.js").MigrationMetadataFinished, error: Error): import("./types.js").Awaitable<void>;
onMigrationStart(migration: import("./types.js").MigrationMetadata): import("./types.js").Awaitable<void>;
onMigrationSuccess(migration: import("./types.js").MigrationMetadataFinished): import("./types.js").Awaitable<void>;
onMigrationError(migration: import("./types.js").MigrationMetadataFinished, error: Error): import("./types.js").Awaitable<void>;
onMigrationSkip(migration: import("./types.js").MigrationMetadataFinished): import("./types.js").Awaitable<void>;
onFinished(migrations: import("./types.js").MigrationMetadataFinished[], error?: Error | undefined): import("./types.js").Awaitable<void>;
onInit(parameters: import("@emigrate/types").ReporterInitParameters): import("@emigrate/types").Awaitable<void>;
onCollectedMigrations(migrations: import("@emigrate/types").MigrationMetadata[]): import("@emigrate/types").Awaitable<void>;
onLockedMigrations(migrations: import("@emigrate/types").MigrationMetadata[]): import("@emigrate/types").Awaitable<void>;
onNewMigration(migration: import("@emigrate/types").MigrationMetadata, content: string): import("@emigrate/types").Awaitable<void>;
onMigrationRemoveStart(migration: import("@emigrate/types").MigrationMetadata): import("@emigrate/types").Awaitable<void>;
onMigrationRemoveSuccess(migration: import("@emigrate/types").SuccessfulMigrationMetadata): import("@emigrate/types").Awaitable<void>;
onMigrationRemoveError(migration: import("@emigrate/types").FailedMigrationMetadata, error: Error): import("@emigrate/types").Awaitable<void>;
onMigrationStart(migration: import("@emigrate/types").MigrationMetadata): import("@emigrate/types").Awaitable<void>;
onMigrationSuccess(migration: import("@emigrate/types").SuccessfulMigrationMetadata): import("@emigrate/types").Awaitable<void>;
onMigrationError(migration: import("@emigrate/types").FailedMigrationMetadata, error: Error): import("@emigrate/types").Awaitable<void>;
onMigrationSkip(migration: import("@emigrate/types").SkippedMigrationMetadata): import("@emigrate/types").Awaitable<void>;
onFinished(migrations: import("@emigrate/types").MigrationMetadataFinished[], error?: Error | undefined): import("@emigrate/types").Awaitable<void>;
}>;

@@ -21,0 +20,0 @@ export declare const isPluginOfType: <T extends keyof {

import process from 'node:process';
export const serializeError = (error) => {
const properties = {
name: error.name,
};
for (const key of Object.getOwnPropertyNames(error)) {
const value = error[key];
properties[key] = value instanceof Error ? serializeError(value) : value;
}
return properties;
};
export const isGeneratorPlugin = (plugin) => {

@@ -13,0 +3,0 @@ if (!plugin || typeof plugin !== 'object') {

{
"name": "@emigrate/plugin-tools",
"version": "0.7.0",
"version": "0.8.0",
"publishConfig": {

@@ -15,6 +15,2 @@ "access": "public"

"types": "./dist/index.d.ts"
},
"./types": {
"import": "./dist/types.js",
"types": "./dist/types.d.ts"
}

@@ -40,3 +36,4 @@ },

"dependencies": {
"import-from-esm": "1.3.3"
"import-from-esm": "1.3.3",
"@emigrate/types": "0.8.0"
},

@@ -43,0 +40,0 @@ "volta": {

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