Comparing version 0.8.2 to 0.8.3
@@ -1,1 +0,1 @@ | ||
{"version":"0.8.2","commands":{"build":{"id":"build","description":"build docs","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","description":"project name","multiple":false},"public":{"name":"public","type":"boolean","description":"anyone with the URL can access","helpGroup":"sharing","allowNo":false,"exclusive":["private","password"]},"private":{"name":"private","type":"boolean","description":"only invited people can access","helpGroup":"sharing","allowNo":false,"exclusive":["public","password"]},"password":{"name":"password","type":"option","char":"p","description":"anyone with the URL + password can access","helpGroup":"sharing","multiple":false,"exclusive":["public","private"]}},"args":[{"name":"filepath","description":"dbml file path"}]},"login":{"id":"login","description":"login to dbdocs\nlogin with your dbdocs credentials\n","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"logout":{"id":"logout","description":"logout\nclears local login credentials\n","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"ls":{"id":"ls","description":"list projects","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"password":{"id":"password","description":"set password for your project or remove password","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","char":"p","description":"project name","helpValue":"project name","multiple":false},"set":{"name":"set","type":"option","char":"s","description":"password for your project","helpValue":"password","multiple":false},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove password from your project","allowNo":false}},"args":[]},"remove":{"id":"remove","description":"remove project","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"project_name","description":"name of the project which you want to remove"}]},"rename":{"id":"rename","description":"change your username","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"token":{"id":"token","description":"generate or revoke your authentication token","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{"generate":{"name":"generate","type":"boolean","char":"g","description":"generate authentication token","allowNo":false},"revoke":{"name":"revoke","type":"boolean","char":"r","description":"revoke authentication token","allowNo":false}},"args":[]},"validate":{"id":"validate","description":"validate docs content","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"filepath","description":"dbml file path"}]}}} | ||
{"version":"0.8.3","commands":{"build":{"id":"build","description":"build docs","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","description":"project name","multiple":false},"public":{"name":"public","type":"boolean","description":"anyone with the URL can access","helpGroup":"sharing","allowNo":false,"exclusive":["private","password"]},"private":{"name":"private","type":"boolean","description":"only invited people can access","helpGroup":"sharing","allowNo":false,"exclusive":["public","password"]},"password":{"name":"password","type":"option","char":"p","description":"anyone with the URL + password can access","helpGroup":"sharing","multiple":false,"exclusive":["public","private"]}},"args":[{"name":"filepath","description":"dbml file path"}]},"login":{"id":"login","description":"login to dbdocs\nlogin with your dbdocs credentials\n","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"logout":{"id":"logout","description":"logout\nclears local login credentials\n","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"ls":{"id":"ls","description":"list projects","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"password":{"id":"password","description":"set password for your project or remove password","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","char":"p","description":"project name","helpValue":"project name","multiple":false},"set":{"name":"set","type":"option","char":"s","description":"password for your project","helpValue":"password","multiple":false},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove password from your project","allowNo":false}},"args":[]},"remove":{"id":"remove","description":"remove project","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"project_name","description":"name of the project which you want to remove"}]},"rename":{"id":"rename","description":"change your username","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"token":{"id":"token","description":"generate or revoke your authentication token","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{"generate":{"name":"generate","type":"boolean","char":"g","description":"generate authentication token","allowNo":false},"revoke":{"name":"revoke","type":"boolean","char":"r","description":"revoke authentication token","allowNo":false}},"args":[]},"validate":{"id":"validate","description":"validate docs content","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"filepath","description":"dbml file path"}]}}} |
{ | ||
"name": "dbdocs", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"author": "@holistics", | ||
@@ -22,2 +22,3 @@ "bin": { | ||
"ora": "^4.0.3", | ||
"remove-markdown": "^0.5.0", | ||
"update-notifier": "^6.0.2" | ||
@@ -24,0 +25,0 @@ }, |
@@ -8,2 +8,3 @@ const { Command, Flags } = require('@oclif/core'); | ||
const chalk = require('chalk'); | ||
const removeMd = require('remove-markdown'); | ||
const { vars } = require('../vars'); | ||
@@ -87,2 +88,3 @@ const verifyToken = require('../utils/verifyToken'); | ||
projectName: project, | ||
description: removeMd(model.description), | ||
isPublic, | ||
@@ -89,0 +91,0 @@ password, |
@@ -10,2 +10,3 @@ const { Command } = require('@oclif/core'); | ||
const { isValidOtp } = require('../validators/otp'); | ||
const { LOGIN_METHODS } = require('../utils/constants'); | ||
@@ -81,4 +82,4 @@ async function askForOtp (spinner, shortLivedToken, email) { | ||
choices: [ | ||
{ name: 'Email', value: 'Email' }, | ||
{ name: 'GitHub', value: 'GitHub' }, | ||
{ name: 'Email', value: LOGIN_METHODS.EMAIL }, | ||
{ name: 'GitHub/Google', value: LOGIN_METHODS.GITHUB_GOOGLE }, | ||
], | ||
@@ -91,10 +92,5 @@ name: 'loginMethod', | ||
const loginMethods = { | ||
EMAIL: 'Email', | ||
GITHUB: 'GitHub', | ||
}; | ||
let authToken; | ||
if (loginMethod === loginMethods.EMAIL) { | ||
if (loginMethod === LOGIN_METHODS.EMAIL) { | ||
authToken = await loginViaEmail(spinner); | ||
@@ -101,0 +97,0 @@ } else { |
@@ -17,2 +17,7 @@ const PROJECT_GENERAL_ACCESS_TYPE = { | ||
const LOGIN_METHODS = { | ||
EMAIL: 'Email', | ||
GITHUB_GOOGLE: 'GitHub/Google', | ||
}; | ||
module.exports = { | ||
@@ -22,2 +27,3 @@ PROJECT_GENERAL_ACCESS_TYPE, | ||
FLAG_HELP_GROUP, | ||
LOGIN_METHODS, | ||
}; |
@@ -14,2 +14,3 @@ const { parentPort, workerData } = require("worker_threads"); | ||
name: databaseObject.name, | ||
description: databaseObject.note, | ||
schemas, | ||
@@ -16,0 +17,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41367
991
12
+ Addedremove-markdown@^0.5.0
+ Addedremove-markdown@0.5.5(transitive)