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

dimchi

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dimchi - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

7

lib/commands/add-project.js

@@ -5,3 +5,2 @@ "use strict";

const nconf = require("nconf");
const appRootPath = require("app-root-path");
const fs = require("fs");

@@ -15,3 +14,3 @@ const consts_1 = require("../consts");

// check if tool is initialized
nconf.file({ file: `${process.cwd()}/${consts_1.TOOL_NAME}rc.json` });
nconf.file({ file: `./${consts_1.TOOL_NAME}rc.json` });
const existingNotionProjectPageId = nconf.get("notionProjectPageId");

@@ -35,3 +34,3 @@ if (existingNotionProjectPageId) {

// git ignore rc file
const excludeFilePath = `${appRootPath.path}/.git/info/exclude`;
const excludeFilePath = `./.git/info/exclude`;
const excludeFileContent = await fs

@@ -41,3 +40,3 @@ .readFileSync(excludeFilePath)

if (!excludeFileContent.includes(`${consts_1.TOOL_NAME}rc.json`)) {
await fs.appendFileSync(`${appRootPath.path}/.git/info/exclude`, `\n${consts_1.TOOL_NAME}rc.json`);
await fs.appendFileSync(`./.git/info/exclude`, `\n${consts_1.TOOL_NAME}rc.json`);
}

@@ -44,0 +43,0 @@ // generate rc file

@@ -14,3 +14,3 @@ "use strict";

const gitBranch = getCurrentGitBranch();
nconf.file({ file: `${process.cwd()}/${consts_1.TOOL_NAME}rc.json` });
nconf.file({ file: `./${consts_1.TOOL_NAME}rc.json` });
const notionProjectPageId = nconf.get("notionProjectPageId");

@@ -17,0 +17,0 @@ // check if exists & open

@@ -1,1 +0,1 @@

{"version":"0.0.3","commands":{"add-project":{"id":"add-project","pluginName":"dimchi","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"projectName","description":"Name of the project","required":true}]},"hello":{"id":"hello","description":"describe the command here","pluginName":"dimchi","pluginType":"core","aliases":[],"examples":["$ dimchi hello\nhello world from ./src/hello.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"name to print"},"force":{"name":"force","type":"boolean","char":"f","allowNo":false}},"args":[{"name":"file"}]},"init":{"id":"init","description":"Init config","pluginName":"dimchi","pluginType":"core","aliases":[],"flags":{"update":{"name":"update","type":"boolean","char":"u","allowNo":false},"destroy":{"name":"destroy","type":"boolean","char":"d","allowNo":false}},"args":[]},"open":{"id":"open","description":"Open current task in notion","pluginName":"dimchi","pluginType":"core","aliases":[],"flags":{},"args":[]}}}
{"version":"0.0.4","commands":{"add-project":{"id":"add-project","pluginName":"dimchi","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"projectName","description":"Name of the project","required":true}]},"hello":{"id":"hello","description":"describe the command here","pluginName":"dimchi","pluginType":"core","aliases":[],"examples":["$ dimchi hello\nhello world from ./src/hello.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"name to print"},"force":{"name":"force","type":"boolean","char":"f","allowNo":false}},"args":[{"name":"file"}]},"init":{"id":"init","description":"Init config","pluginName":"dimchi","pluginType":"core","aliases":[],"flags":{"update":{"name":"update","type":"boolean","char":"u","allowNo":false},"destroy":{"name":"destroy","type":"boolean","char":"d","allowNo":false}},"args":[]},"open":{"id":"open","description":"Open current task in notion","pluginName":"dimchi","pluginType":"core","aliases":[],"flags":{},"args":[]}}}
{
"name": "dimchi",
"description": "Simplify the process of writing notes by combining your workflow with cli and notes editor (notion.so)",
"version": "0.0.3",
"version": "0.0.4",
"author": {

@@ -6,0 +6,0 @@ "name": "Dima An",

@@ -22,3 +22,3 @@ dimchi

$ dimchi (-v|--version|version)
dimchi/0.0.3 darwin-x64 node-v14.17.3
dimchi/0.0.4 darwin-x64 node-v14.17.3
$ dimchi --help [COMMAND]

@@ -48,3 +48,3 @@ USAGE

_See code: [src/commands/add-project.ts](https://github.com/tbntdima/dimchi/blob/v0.0.3/src/commands/add-project.ts)_
_See code: [src/commands/add-project.ts](https://github.com/tbntdima/dimchi/blob/v0.0.4/src/commands/add-project.ts)_

@@ -69,3 +69,3 @@ ## `dimchi hello [FILE]`

_See code: [src/commands/hello.ts](https://github.com/tbntdima/dimchi/blob/v0.0.3/src/commands/hello.ts)_
_See code: [src/commands/hello.ts](https://github.com/tbntdima/dimchi/blob/v0.0.4/src/commands/hello.ts)_

@@ -102,3 +102,3 @@ ## `dimchi help [COMMAND]`

_See code: [src/commands/init.ts](https://github.com/tbntdima/dimchi/blob/v0.0.3/src/commands/init.ts)_
_See code: [src/commands/init.ts](https://github.com/tbntdima/dimchi/blob/v0.0.4/src/commands/init.ts)_

@@ -114,3 +114,3 @@ ## `dimchi open`

_See code: [src/commands/open.ts](https://github.com/tbntdima/dimchi/blob/v0.0.3/src/commands/open.ts)_
_See code: [src/commands/open.ts](https://github.com/tbntdima/dimchi/blob/v0.0.4/src/commands/open.ts)_
<!-- commandsstop -->
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