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

onetable-cli

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onetable-cli - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

22

dist/cli.js

@@ -17,7 +17,7 @@ #!/usr/bin/env node

dir: './migrations-directory',
hidden: true,
null: false,
hidden: false,
name: 'sensedeep-dev',
nulls: false,
schema: 'path/to/schema.js',
typeField: 'type',
name: 'sensedeep-dev',
*/

@@ -69,3 +69,4 @@ import Fs from 'fs';

--schema ./path/to/schema.js # Database schema module
--verbose
--verbose # Emit more progress information
--version # Emit version number
`;

@@ -277,3 +278,3 @@ const RESET_VERSION = 'latest';

else {
print(`Confirm ${versions.length} ${action} ${noun} to version ${target} on ${this.config.profile}.`);
print(`Confirm ${versions.length} "${action}" ${noun} to version "${target}" for database "${this.config.onetable.name}" using profile "${this.config.profile}".`);
}

@@ -348,5 +349,8 @@ print(`\nMigrations to ${direction < 0 ? 'revert' : 'apply'}:`);

}
else if (arg == '-v' || arg == '--verbose') {
else if (arg == '--verbose' || arg == '-v') {
this.verbose++;
}
else if (arg == '--version') {
this.printVersion();
}
else if (arg[0] == '-' || arg.indexOf('-') >= 0) {

@@ -401,2 +405,8 @@ this.usage();

}
async printVersion() {
let dir = Path.dirname(import.meta.url.replace('file://', ''));
let config = await File.readJson(dir + '/../package.json');
print(config.version);
process.exit(0);
}
}

@@ -403,0 +413,0 @@ async function main() {

{
"name": "onetable-cli",
"version": "0.1.4",
"version": "0.1.5",
"type": "module",

@@ -44,3 +44,3 @@ "description": "DynamoDB OneTable Migration CLI",

"dependencies": {
"dynamodb-onetable": "^0.6.8",
"dynamodb-onetable": "^0.6",
"js-blend": "./src/paks/js-blend",

@@ -53,3 +53,3 @@ "js-clone": "./src/paks/js-clone",

"json5": "^2.2.0",
"onetable-migrate": "^0.1.2",
"onetable-migrate": "^0.1",
"readline": "^1.3.0"

@@ -56,0 +56,0 @@ },

@@ -17,7 +17,7 @@ #!/usr/bin/env node

dir: './migrations-directory',
hidden: true,
null: false,
hidden: false,
name: 'sensedeep-dev',
nulls: false,
schema: 'path/to/schema.js',
typeField: 'type',
name: 'sensedeep-dev',
*/

@@ -30,2 +30,3 @@

import AWS from 'aws-sdk'
import Migrate from 'onetable-migrate'

@@ -74,3 +75,4 @@ import {Table} from 'dynamodb-onetable'

--schema ./path/to/schema.js # Database schema module
--verbose
--verbose # Emit more progress information
--version # Emit version number
`

@@ -286,3 +288,3 @@

} else {
print(`Confirm ${versions.length} ${action} ${noun} to version ${target} on ${this.config.profile}.`)
print(`Confirm ${versions.length} "${action}" ${noun} to version "${target}" for database "${this.config.onetable.name}" using profile "${this.config.profile}".`)
}

@@ -347,4 +349,6 @@ print(`\nMigrations to ${direction < 0 ? 'revert' : 'apply'}:`)

this.schema = argv[++i]
} else if (arg == '-v' || arg == '--verbose') {
} else if (arg == '--verbose' || arg == '-v') {
this.verbose++
} else if (arg == '--version') {
this.printVersion()
} else if (arg[0] == '-' || arg.indexOf('-') >= 0) {

@@ -405,2 +409,8 @@ this.usage()

async printVersion() {
let dir = Path.dirname(import.meta.url.replace('file://', ''))
let config = await File.readJson(dir + '/../package.json')
print(config.version)
process.exit(0)
}
}

@@ -407,0 +417,0 @@

@@ -339,2 +339,3 @@ /*

console.log(`${time}: ${module}: ${type}: ${message}`)
console.log(JSON.stringify(context, null, 4) + '\n')
}

@@ -341,0 +342,0 @@ } catch (err) {

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