daplie-tools
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -27,8 +27,18 @@ #!/usr/bin/env node | ||
var jsonme; | ||
var providerUri; | ||
var providerIndex; | ||
var args = process.argv; | ||
var argstr = args.join('_~`~'); | ||
var argsep = '___'; | ||
var argstr = args.join(argsep); | ||
if (/--json/.test(argstr)) { | ||
args = argstr.replace(/--json(_~`~)?/, '').split('_~`~'); | ||
args = argstr.replace(/--json(___)?/, '').split(argsep); | ||
jsonme = true; | ||
} | ||
providerIndex = args.indexOf('--provider'); | ||
if (-1 !== providerIndex) { | ||
providerUri = args.splice(providerIndex, 2)[1]; | ||
if ('-' === providerUri[0]) { | ||
throw new Error("Usage: --provider example.com"); | ||
} | ||
} | ||
var cmd = args.splice(2, 1)[0] || ''; | ||
@@ -41,3 +51,3 @@ var myCmds = cmd.split(/:/); | ||
var pkg = require('../package.json'); | ||
var cliOptions = { provider: 'oauth3.org' }; | ||
var cliOptions = { provider: providerUri || 'oauth3.org' /*'daplie.me'*/ }; | ||
var cmds; | ||
@@ -928,2 +938,6 @@ | ||
oauth3.Files.upload(opts).then(function (results) { | ||
if ('true' === String(results.completed)) { | ||
console.log('Already uploaded'); | ||
console.log('TODO handle challenge'); | ||
} | ||
console.log(''); | ||
@@ -930,0 +944,0 @@ console.log(results); |
{ | ||
"name": "daplie-tools", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Taking back the Internet", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -71,4 +71,7 @@ <!-- BANNER_TPL_BEGIN --> | ||
``` | ||
# install various daplie scripts to /usr/local/bin | ||
curl -sL https://daplie.me/install-scripts | bash | ||
# install node.js 4.3 or greater | ||
curl -sL bit.ly/nodejs-dev-install -o node-dev; bash ./node-dev | ||
daplie-install-node-dev | ||
@@ -95,4 +98,15 @@ # install daplie-tools | ||
# Choosing your provider for testing | ||
Use the `--provider` option to choose which identity issuer and resource audience you will be using: | ||
(the default is oauth3.org) | ||
```bash | ||
daplie --provider daplie.me domains:list | ||
``` | ||
# Walkthroughs & FAQs | ||
* [Can I see a full list of daplie tools and their commands?](daplie-tools-list.md) | ||
* [How do I get a **`daplie.me` domain**?](#get-a-daplieme-subdomain) | ||
@@ -99,0 +113,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
520173
22
1226
329
1