Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dfds-contentful/migration

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfds-contentful/migration - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6-alpha-55.4c6e14c.0

18

migrationUtils/migrationCreatorService.ts

@@ -20,3 +20,3 @@ import chalk from 'chalk';

editCommand += ` //put your migration code for '${id}' here`;
this.CreateMigrationScriptWithCommand(editCommand);
this.CreateMigrationScriptWithCommand(id, editCommand, 'manual');
}

@@ -47,3 +47,7 @@

//and fills it in with the command wrapped in a migration template
private CreateMigrationScriptWithCommand(command: string) {
private CreateMigrationScriptWithCommand(
id: string,
command: string,
prefix: string
) {
let migrationFileContent = MIGRATION_SCRIPT_TEMPLATE.replace(

@@ -110,3 +114,7 @@ 'dummy',

}
this.CreateMigrationScriptWithCommand(creationCommand);
this.CreateMigrationScriptWithCommand(
id,
creationCommand,
'createInterface'
);
}

@@ -135,3 +143,3 @@

this.CreateMigrationScriptWithCommand(creationCommand);
this.CreateMigrationScriptWithCommand(id, creationCommand, 'create');
}

@@ -157,3 +165,3 @@

this.CreateMigrationScriptWithCommand(editCommand);
this.CreateMigrationScriptWithCommand(id, editCommand, 'edit');
console.log(`succeeded creating migration script for '${id}'`);

@@ -160,0 +168,0 @@ }

{
"name": "@dfds-contentful/migration",
"version": "2.0.5",
"version": "2.0.6-alpha-55.4c6e14c.0+4c6e14c",
"private": false,

@@ -61,3 +61,3 @@ "publishConfig": {

},
"gitHead": "5aff7a3ce626a5de2c9e26e5feee5766ab77eef0"
"gitHead": "4c6e14c171211d3fe9aed82dcdddebb17b6ec21a"
}
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