Socket
Socket
Sign inDemoInstall

wittycli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wittycli - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

6

lib/utils/zip.js

@@ -10,4 +10,4 @@ "use strict";

const tempFileName = async () => {
const tmpDirPath = await fs_1.promises.mkdtemp('witcli');
return { tmpFilePath: path_1.join(tmpDirPath, 'witcli.zip'), tmpDirPath };
const tmpDirPath = await fs_1.promises.mkdtemp('wittycli');
return { tmpFilePath: path_1.join(tmpDirPath, 'wittycli.zip'), tmpDirPath };
};

@@ -36,4 +36,4 @@ exports.unzip = (file, directory) => {

const zip = new adm_zip_1.default();
zip.addLocalFolder(dir, 'witcli');
zip.addLocalFolder(dir, 'wittycli');
return zip.toBuffer();
};

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

{"version":"0.0.3","commands":{"export":{"id":"export","description":"Exports Get a URL where you can download a ZIP file containing all of your app data. This ZIP file can be used to create a new app with the same data.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli export --output=\"./app.zip\""],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"dot":{"name":"dot","type":"option","description":"Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from json response.","required":false},"output":{"name":"output","type":"option","char":"o","description":"Path of the output file. If set this command will download a ZIP file to a provided path.","required":false},"dir":{"name":"dir","type":"option","char":"d","description":"Path of the output directory. If set this command will download a ZIP file and unzip to a provided directory.","required":false}},"args":[]},"import":{"id":"import","description":"Create a new app with all the app data from the exported app.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli import --name=witapp --private --file ./app.zip"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"dot":{"name":"dot","type":"option","description":"Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from json response.","required":false},"file":{"name":"file","type":"option","char":"f","description":"Path of the import file. A ZIP file containing all of your app data.","required":false},"dir":{"name":"dir","type":"option","char":"d","description":"Path of the import directory. If set this command will ZIP provided directory and import it.","required":false},"name":{"name":"name","type":"option","char":"n","description":"Name of the new app.","required":true},"private":{"name":"private","type":"boolean","char":"p","description":"Private if flag provided.","required":false,"allowNo":false}},"args":[]},"message":{"id":"message","description":"Returns the extracted meaning from a sentence, based on the app data.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli message --query=\"Set temperature to 70 degrees\" --numberofintents=8"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"dot":{"name":"dot","type":"option","description":"Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from json response.","required":false},"query":{"name":"query","type":"option","char":"q","description":"User's query, between 0 and 280 characters.","required":true},"tag":{"name":"tag","type":"option","char":"t","description":"A specific tag you want to use for the query. See GET /apps/:app/tags.","required":false},"numberofintents":{"name":"numberofintents","type":"option","char":"n","description":"The maximum number of n-best intents and traits you want to get back. The default is 1, and the maximum is 8.","required":false,"default":1}},"args":[]},"test":{"id":"test","description":"Tests the wittycli app with the provided file of expected utterances.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli test --file=\"./example/test.json\""],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"file":{"name":"file","type":"option","char":"f","description":"Filepath of the file with utterances in format of the Array<ResponseOfTheMessageAPI>","required":true},"parallel":{"name":"parallel","type":"option","char":"p","description":"Max amount of parallel requests","required":false,"default":10}},"args":[]},"apps:post":{"id":"apps:post","description":"Creates a new app for an existing user.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli apps create --name=witapp --lang=en --private --timezone=Europe/Brussels"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"dot":{"name":"dot","type":"option","description":"Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from json response.","required":false},"name":{"name":"name","type":"option","char":"n","description":"Name of the new app.","required":true},"lang":{"name":"lang","type":"option","char":"l","description":"Language code, in the ISO 639-1 format.","required":true},"private":{"name":"private","type":"boolean","char":"p","description":"Private if flag provided.","required":false,"allowNo":false},"timezone":{"name":"timezone","type":"option","char":"t","description":"Default timezone of your app. Defaults to America/Los_Angeles.","required":false}},"args":[]}}}
{"version":"0.0.4","commands":{"export":{"id":"export","description":"Exports Get a URL where you can download a ZIP file containing all of your app data. This ZIP file can be used to create a new app with the same data.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli export --output=\"./app.zip\""],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"dot":{"name":"dot","type":"option","description":"Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from json response.","required":false},"output":{"name":"output","type":"option","char":"o","description":"Path of the output file. If set this command will download a ZIP file to a provided path.","required":false},"dir":{"name":"dir","type":"option","char":"d","description":"Path of the output directory. If set this command will download a ZIP file and unzip to a provided directory.","required":false}},"args":[]},"import":{"id":"import","description":"Create a new app with all the app data from the exported app.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli import --name=witapp --private --file ./app.zip"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"dot":{"name":"dot","type":"option","description":"Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from json response.","required":false},"file":{"name":"file","type":"option","char":"f","description":"Path of the import file. A ZIP file containing all of your app data.","required":false},"dir":{"name":"dir","type":"option","char":"d","description":"Path of the import directory. If set this command will ZIP provided directory and import it.","required":false},"name":{"name":"name","type":"option","char":"n","description":"Name of the new app.","required":true},"private":{"name":"private","type":"boolean","char":"p","description":"Private if flag provided.","required":false,"allowNo":false}},"args":[]},"message":{"id":"message","description":"Returns the extracted meaning from a sentence, based on the app data.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli message --query=\"Set temperature to 70 degrees\" --numberofintents=8"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"dot":{"name":"dot","type":"option","description":"Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from json response.","required":false},"query":{"name":"query","type":"option","char":"q","description":"User's query, between 0 and 280 characters.","required":true},"tag":{"name":"tag","type":"option","char":"t","description":"A specific tag you want to use for the query. See GET /apps/:app/tags.","required":false},"numberofintents":{"name":"numberofintents","type":"option","char":"n","description":"The maximum number of n-best intents and traits you want to get back. The default is 1, and the maximum is 8.","required":false,"default":1}},"args":[]},"test":{"id":"test","description":"Tests the wittycli app with the provided file of expected utterances.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli test --file=\"./example/test.json\""],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"file":{"name":"file","type":"option","char":"f","description":"Filepath of the file with utterances in format of the Array<ResponseOfTheMessageAPI>","required":true},"parallel":{"name":"parallel","type":"option","char":"p","description":"Max amount of parallel requests","required":false,"default":10}},"args":[]},"apps:post":{"id":"apps:post","description":"Creates a new app for an existing user.","pluginName":"wittycli","pluginType":"core","aliases":[],"examples":["$ wittycli apps create --name=witapp --lang=en --private --timezone=Europe/Brussels"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"auth":{"name":"auth","type":"option","char":"a","description":"Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it publicly. You can obtain one in Settings for your ","required":true},"version":{"name":"version","type":"option","char":"v","description":"Every request requires a version parameter either in the URL or in the headers. This parameter is a date that represents the \"version\" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, but when we do make these changes, this parameter will allow you to continue to use the API as before and give you time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a version parameter will hit the latest version of our API.","required":false},"dot":{"name":"dot","type":"option","description":"Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from json response.","required":false},"name":{"name":"name","type":"option","char":"n","description":"Name of the new app.","required":true},"lang":{"name":"lang","type":"option","char":"l","description":"Language code, in the ISO 639-1 format.","required":true},"private":{"name":"private","type":"boolean","char":"p","description":"Private if flag provided.","required":false,"allowNo":false},"timezone":{"name":"timezone","type":"option","char":"t","description":"Default timezone of your app. Defaults to America/Los_Angeles.","required":false}},"args":[]}}}
{
"name": "wittycli",
"description": "Wit.ai CLI",
"version": "0.0.3",
"version": "0.0.4",
"bin": {

@@ -51,3 +51,3 @@ "wittycli": "./bin/run"

],
"homepage": "https://github.com/ShyykoSerhiy/witcli",
"homepage": "https://github.com/ShyykoSerhiy/wittycli",
"keywords": [

@@ -58,3 +58,3 @@ "oclif"

"type": "git",
"url": "git+https://github.com/ShyykoSerhiy/witcli.git"
"url": "git+https://github.com/ShyykoSerhiy/wittycli.git"
},

@@ -66,3 +66,3 @@ "author": "shyyko.serhiy",

"commands": "./lib/commands",
"bin": "witcli",
"bin": "wittycli",
"plugins": [

@@ -69,0 +69,0 @@ "@oclif/plugin-help"

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

witcli
wittycli
======

@@ -7,5 +7,5 @@

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/witcli.svg)](https://npmjs.org/package/witcli)
[![Downloads/week](https://img.shields.io/npm/dw/witcli.svg)](https://npmjs.org/package/witcli)
[![License](https://img.shields.io/npm/l/witcli.svg)](https://github.com/Projects/witcli/blob/master/package.json)
[![Version](https://img.shields.io/npm/v/wittycli.svg)](https://npmjs.org/package/wittycli)
[![Downloads/week](https://img.shields.io/npm/dw/wittycli.svg)](https://npmjs.org/package/wittycli)
[![License](https://img.shields.io/npm/l/wittycli.svg)](https://github.com/Projects/wittycli/blob/master/package.json)

@@ -20,9 +20,9 @@ <!-- toc -->

$ npm install -g wittycli
$ witcli COMMAND
$ wittycli COMMAND
running command...
$ witcli (-v|--version|version)
wittycli/0.0.3 win32-x64 node-v12.19.0
$ witcli --help [COMMAND]
$ wittycli (-v|--version|version)
wittycli/0.0.4 win32-x64 node-v12.19.0
$ wittycli --help [COMMAND]
USAGE
$ witcli COMMAND
$ wittycli COMMAND
...

@@ -33,10 +33,10 @@ ```

<!-- commands -->
* [`witcli apps:post`](#witcli-appspost)
* [`witcli export`](#witcli-export)
* [`witcli help [COMMAND]`](#witcli-help-command)
* [`witcli import`](#witcli-import)
* [`witcli message`](#witcli-message)
* [`witcli test`](#witcli-test)
* [`wittycli apps:post`](#wittycli-appspost)
* [`wittycli export`](#wittycli-export)
* [`wittycli help [COMMAND]`](#wittycli-help-command)
* [`wittycli import`](#wittycli-import)
* [`wittycli message`](#wittycli-message)
* [`wittycli test`](#wittycli-test)
## `witcli apps:post`
## `wittycli apps:post`

@@ -47,3 +47,3 @@ Creates a new app for an existing user.

USAGE
$ witcli apps:post
$ wittycli apps:post

@@ -86,5 +86,5 @@ OPTIONS

_See code: [src\commands\apps\post.ts](https://github.com/ShyykoSerhiy/witcli/blob/v0.0.3/src\commands\apps\post.ts)_
_See code: [src\commands\apps\post.ts](https://github.com/ShyykoSerhiy/wittycli/blob/v0.0.4/src\commands\apps\post.ts)_
## `witcli export`
## `wittycli export`

@@ -95,3 +95,3 @@ Exports Get a URL where you can download a ZIP file containing all of your app data. This ZIP file can be used to create a new app with the same data.

USAGE
$ witcli export
$ wittycli export

@@ -128,11 +128,11 @@ OPTIONS

_See code: [src\commands\export.ts](https://github.com/ShyykoSerhiy/witcli/blob/v0.0.3/src\commands\export.ts)_
_See code: [src\commands\export.ts](https://github.com/ShyykoSerhiy/wittycli/blob/v0.0.4/src\commands\export.ts)_
## `witcli help [COMMAND]`
## `wittycli help [COMMAND]`
display help for witcli
display help for wittycli
```
USAGE
$ witcli help [COMMAND]
$ wittycli help [COMMAND]

@@ -148,3 +148,3 @@ ARGUMENTS

## `witcli import`
## `wittycli import`

@@ -155,3 +155,3 @@ Create a new app with all the app data from the exported app.

USAGE
$ witcli import
$ wittycli import

@@ -194,5 +194,5 @@ OPTIONS

_See code: [src\commands\import.ts](https://github.com/ShyykoSerhiy/witcli/blob/v0.0.3/src\commands\import.ts)_
_See code: [src\commands\import.ts](https://github.com/ShyykoSerhiy/wittycli/blob/v0.0.4/src\commands\import.ts)_
## `witcli message`
## `wittycli message`

@@ -203,3 +203,3 @@ Returns the extracted meaning from a sentence, based on the app data.

USAGE
$ witcli message
$ wittycli message

@@ -240,5 +240,5 @@ OPTIONS

_See code: [src\commands\message.ts](https://github.com/ShyykoSerhiy/witcli/blob/v0.0.3/src\commands\message.ts)_
_See code: [src\commands\message.ts](https://github.com/ShyykoSerhiy/wittycli/blob/v0.0.4/src\commands\message.ts)_
## `witcli test`
## `wittycli test`

@@ -249,3 +249,3 @@ Tests the wittycli app with the provided file of expected utterances.

USAGE
$ witcli test
$ wittycli test

@@ -278,3 +278,3 @@ OPTIONS

_See code: [src\commands\test.ts](https://github.com/ShyykoSerhiy/witcli/blob/v0.0.3/src\commands\test.ts)_
_See code: [src\commands\test.ts](https://github.com/ShyykoSerhiy/wittycli/blob/v0.0.4/src\commands\test.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