Comparing version 0.0.4 to 0.0.5
@@ -27,3 +27,3 @@ // | ||
program | ||
.version('0.0.2') | ||
.version(require('../package').version) | ||
.option('-f, --filename <path>', 'path to manifest.json file - defaults to the current working directory', String, '') | ||
@@ -30,0 +30,0 @@ .option('-p, --plan <plan>', 'provision the specified plan instead of "test"', String, 'test'); |
@@ -30,6 +30,6 @@ // | ||
// | ||
if (url.protocol === 'https:') { | ||
librarian.init(url.hostname, url.port || 443, true); | ||
if (durl.protocol === 'https:') { | ||
librarian.init(durl.hostname, durl.port || 443, true); | ||
} else { | ||
librarian.init(url.hostname, url.port || 80, false); | ||
librarian.init(durl.hostname, durl.port || 80, false); | ||
} | ||
@@ -620,4 +620,3 @@ } | ||
if (!user.flags.isProvider) return console.log('\n you must opt into the Modulus provider program\n'.fail); | ||
// TODO: Enable this in production... | ||
// if (!user.flags.isVerified) return console.log('\n you must be verified to create an add-on\n'.fail); | ||
if (!user.flags.isVerified) return console.log('\n you must be verified to create an add-on\n'.fail); | ||
@@ -624,0 +623,0 @@ if (filename.length > 0) { |
var fs = require('fs'); | ||
// | ||
// Get the local machine's home directory for the current user. | ||
// | ||
var getUserHome = function() { | ||
return process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME']; | ||
}; | ||
// | ||
// User configuration constructor. | ||
@@ -9,3 +16,3 @@ // | ||
if (!fs.existsSync(this.dir)) fs.mkdirSync(this.dir); | ||
}; | ||
} | ||
@@ -48,9 +55,2 @@ // | ||
// | ||
// Get the local machine's home directory for the current user. | ||
// | ||
var getUserHome = function getUserHome() { | ||
return process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']; | ||
} | ||
module.exports = UserConfig; |
{ | ||
"name": "dia", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Modulus add-on test utility.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -6,6 +6,30 @@ Dia | ||
# Installation | ||
[![NPM](https://nodei.co/npm/dia.png?compact=true)](https://nodei.co/npm/dia/) | ||
Install using `$ [sudo] npm install -g dia` | ||
# Usage | ||
Run `$ dia -h` for a complete list of commands and options. | ||
Usage: dia [options] [command] | ||
Commands: | ||
config set <key> <value> set a configuration value | ||
config get <key> get a configuration value | ||
init initialize a skeleton manifest | ||
test run all add-on tests | ||
test manifest test a manifest (run before each test) | ||
test provision [params] simulate a provision call | ||
test deprovision <id> simulate a deprovision call | ||
test planchange <id> [new_plan] simulate a plan change | ||
test sso <id> simulate single sign on authentication for the add-on with the specified ID | ||
create create an add-on | ||
Options: | ||
-h, --help output usage information | ||
-V, --version output the version number | ||
-f, --filename <path> path to manifest.json file - defaults to the current working directory | ||
-p, --plan <plan> provision the specified plan instead of "test" | ||
# Testing an add-on | ||
@@ -29,30 +53,7 @@ | ||
# Commands and options | ||
# License | ||
Run `$ dia -h` for a complete list of commands and options. | ||
Usage: dia [options] [command] | ||
Commands: | ||
init initialize a skeleton manifest | ||
test run all add-on tests | ||
test manifest test a manifest (run before each test) | ||
test provision [params] simulate a provision call | ||
test deprovision <id> simulate a deprovision call | ||
test planchange <id> [new_plan] simulate a plan change | ||
test sso <id> simulate single sign on authentication for the add-on with the specified ID | ||
Options: | ||
-h, --help output usage information | ||
-V, --version output the version number | ||
-f, --filename <path> path to manifest.json file - defaults to the current working directory | ||
-p, --plan <plan> provision the specified plan instead of "test" | ||
# license | ||
The MIT License (MIT) | ||
Copyright (c) 2013 Modulus | ||
Copyright (c) 2014 Modulus | ||
@@ -59,0 +60,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
45750
74
1201