Comparing version 0.2.0-alpha.13 to 0.2.0-alpha.14
@@ -6,2 +6,10 @@ # Change Log | ||
# 0.2.0-alpha.14 (2021-03-13) | ||
**Note:** Version bump only for package quip-cli | ||
# 0.2.0-alpha.13 (2021-03-11) | ||
@@ -8,0 +16,0 @@ |
@@ -46,2 +46,7 @@ "use strict"; | ||
} | ||
const allVersions = releasedVersions.concat(otherVersions); | ||
if (!allVersions.length) { | ||
print_1.print("No versions of the Live App exist. You can publish a version using the `publish` command."); | ||
return; | ||
} | ||
const response = await inquirer_1.default.prompt([ | ||
@@ -52,5 +57,3 @@ { | ||
message: "Select a version (๐ข: prod, ๐งช: beta, โ๏ธ: previously released)", | ||
choices: releasedVersions | ||
.concat(otherVersions) | ||
.map((v) => ({ | ||
choices: allVersions.map((v) => ({ | ||
name: chalk_1.default `{green ${v.version_name} (${v.version_number}) ${v.icon}}`, | ||
@@ -57,0 +60,0 @@ value: v.version_number, |
@@ -20,2 +20,3 @@ "use strict"; | ||
const pagePromise = fs_1.default.promises.readFile(path_1.default.join(__dirname, "../..", "templates", "logged-in.html"), "utf-8"); | ||
const loginCancelledPagePromise = fs_1.default.promises.readFile(path_1.default.join(__dirname, "../..", "templates", "logged-in-cancelled.html"), "utf-8"); | ||
return new Promise((resolve) => { | ||
@@ -28,3 +29,3 @@ server_ = http_1.default.createServer(async (req, res) => { | ||
res.statusCode = 302; | ||
res.setHeader('Location', query.next); | ||
res.setHeader("Location", query.next); | ||
res.end(); | ||
@@ -35,3 +36,8 @@ } | ||
res.setHeader("Content-Type", "text/html"); | ||
res.end(await pagePromise); | ||
if (query.cancelled) { | ||
res.end(await loginCancelledPagePromise); | ||
} | ||
else { | ||
res.end(await pagePromise); | ||
} | ||
} | ||
@@ -38,0 +44,0 @@ server_ === null || server_ === void 0 ? void 0 : server_.close(); |
@@ -1,1 +0,1 @@ | ||
{"version":"0.2.0-alpha.13","commands":{"apps":{"id":"apps","description":"Browse, inspect, and manipulate your Apps","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"id":{"name":"id","type":"option","char":"i","description":"show the details of an app ID"},"version":{"name":"version","type":"option","char":"v","description":"which version to show the details for. Only useful with --id"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"bump":{"id":"bump","description":"Bump the application version (and create a version commit/tag)","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"message":{"name":"message","type":"option","char":"m","description":"Specify a commit message to use as the version commit message"},"version-number":{"name":"version-number","type":"option","char":"v","description":"Bump the version to a specific number rather than just incrementing to the next integer"},"prerelease-name":{"name":"prerelease-name","type":"option","char":"p","description":"When specifying prerelease, use this as the prefix, e.g. -p alpha will produce v0.x.x-alpha.x"},"no-git":{"name":"no-git","type":"boolean","char":"n","description":"Don't perform git operations even when available (just makes changes inline)","allowNo":false}},"args":[{"name":"increment","description":"which number to bump - can be one of 'prerelease', 'major', 'minor', 'patch', or 'none' - defaults to 'none'","default":"none"}]},"init":{"id":"init","description":"Initialize a new Live App Project","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","hidden":true,"allowNo":false},"no-create":{"name":"no-create","type":"boolean","description":"only create a local app (don't create an app in the dev console or assign an ID)","allowNo":false},"no-release":{"name":"no-release","type":"boolean","description":"don't release the initial version (leave app uninstallable and in the \"unreleased\" state)","allowNo":false},"dir":{"name":"dir","type":"option","char":"d","description":"specify directory to create app in (defaults to the name provided)"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON (must provide --name and --id)","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"set the name of the application"},"id":{"name":"id","type":"option","char":"i","description":"set the ID of the application"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"login":{"id":"login","description":"Logs in to Quip and stores credentials in the .quiprc file","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"forces a re-login even if a user is currently logged in","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"port":{"name":"port","type":"option","description":"Use a custom port for the OAuth redirect server (defaults to 9898)","hidden":true,"default":9898},"hostname":{"name":"hostname","type":"option","description":"Use a custom hostname for the OAuth redirect server (defaults to 127.0.0.1)","hidden":true,"default":"127.0.0.1"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"migration":{"id":"migration","description":"Creates a new migration","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"folder":{"name":"folder","type":"option","char":"f","description":"The folder where your migrations are stored","default":"migrations"},"version":{"name":"version","type":"option","char":"v","description":"The version to generate this migration for. By default, it will use the current version_number in the manifest"},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","allowNo":false},"manifest":{"name":"manifest","type":"option","char":"m","description":"A manifest.json file to add the migration to. By default, we'll use the first one we find.","hidden":true}},"args":[{"name":"name","description":"A short description to generate the filename with"}]},"publish":{"id":"publish","description":"Uploads this bundle to the developer console, and sets it as the latest development version.","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"ignore":{"name":"ignore","type":"option","char":"i","description":"blob to ignore. Defaults to 'node_modules'","default":"node_modules"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"release":{"id":"release","description":"Release an app to Beta or Production","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"beta":{"name":"beta","type":"boolean","char":"b","description":"release beta version","allowNo":false},"prod":{"name":"prod","type":"boolean","char":"p","description":"release production version","allowNo":false},"major-changes":{"name":"major-changes","type":"option","description":"First party only: required when using --prod. Pass either YES or NO to indicate if this build contains major security, availability, or confidentiality changes","hidden":true,"helpValue":"(YES|NO)","options":["YES","NO"]},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[{"name":"build number","description":"the build number to release"}]}}} | ||
{"version":"0.2.0-alpha.14","commands":{"apps":{"id":"apps","description":"Browse, inspect, and manipulate your Apps","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"id":{"name":"id","type":"option","char":"i","description":"show the details of an app ID"},"version":{"name":"version","type":"option","char":"v","description":"which version to show the details for. Only useful with --id"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"bump":{"id":"bump","description":"Bump the application version (and create a version commit/tag)","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"message":{"name":"message","type":"option","char":"m","description":"Specify a commit message to use as the version commit message"},"version-number":{"name":"version-number","type":"option","char":"v","description":"Bump the version to a specific number rather than just incrementing to the next integer"},"prerelease-name":{"name":"prerelease-name","type":"option","char":"p","description":"When specifying prerelease, use this as the prefix, e.g. -p alpha will produce v0.x.x-alpha.x"},"no-git":{"name":"no-git","type":"boolean","char":"n","description":"Don't perform git operations even when available (just makes changes inline)","allowNo":false}},"args":[{"name":"increment","description":"which number to bump - can be one of 'prerelease', 'major', 'minor', 'patch', or 'none' - defaults to 'none'","default":"none"}]},"init":{"id":"init","description":"Initialize a new Live App Project","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","hidden":true,"allowNo":false},"no-create":{"name":"no-create","type":"boolean","description":"only create a local app (don't create an app in the dev console or assign an ID)","allowNo":false},"no-release":{"name":"no-release","type":"boolean","description":"don't release the initial version (leave app uninstallable and in the \"unreleased\" state)","allowNo":false},"dir":{"name":"dir","type":"option","char":"d","description":"specify directory to create app in (defaults to the name provided)"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON (must provide --name and --id)","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"set the name of the application"},"id":{"name":"id","type":"option","char":"i","description":"set the ID of the application"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"login":{"id":"login","description":"Logs in to Quip and stores credentials in the .quiprc file","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"forces a re-login even if a user is currently logged in","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"port":{"name":"port","type":"option","description":"Use a custom port for the OAuth redirect server (defaults to 9898)","hidden":true,"default":9898},"hostname":{"name":"hostname","type":"option","description":"Use a custom hostname for the OAuth redirect server (defaults to 127.0.0.1)","hidden":true,"default":"127.0.0.1"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"migration":{"id":"migration","description":"Creates a new migration","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"folder":{"name":"folder","type":"option","char":"f","description":"The folder where your migrations are stored","default":"migrations"},"version":{"name":"version","type":"option","char":"v","description":"The version to generate this migration for. By default, it will use the current version_number in the manifest"},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","allowNo":false},"manifest":{"name":"manifest","type":"option","char":"m","description":"A manifest.json file to add the migration to. By default, we'll use the first one we find.","hidden":true}},"args":[{"name":"name","description":"A short description to generate the filename with"}]},"publish":{"id":"publish","description":"Uploads this bundle to the developer console, and sets it as the latest development version.","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"ignore":{"name":"ignore","type":"option","char":"i","description":"blob to ignore. Defaults to 'node_modules'","default":"node_modules"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"release":{"id":"release","description":"Release an app to Beta or Production","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"beta":{"name":"beta","type":"boolean","char":"b","description":"release beta version","allowNo":false},"prod":{"name":"prod","type":"boolean","char":"p","description":"release production version","allowNo":false},"major-changes":{"name":"major-changes","type":"option","description":"First party only: required when using --prod. Pass either YES or NO to indicate if this build contains major security, availability, or confidentiality changes","hidden":true,"helpValue":"(YES|NO)","options":["YES","NO"]},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[{"name":"build number","description":"the build number to release"}]}}} |
{ | ||
"name": "quip-cli", | ||
"description": "A Command Line Interface for the Quip Live Apps platform", | ||
"version": "0.2.0-alpha.13", | ||
"version": "0.2.0-alpha.14", | ||
"author": "Quip", | ||
@@ -92,3 +92,3 @@ "bin": { | ||
"types": "lib/index.d.ts", | ||
"gitHead": "c5e7a93a5ab8248d64ecb41bad6815b13694905f" | ||
"gitHead": "2dcc21e769341111b261263bac486af9de62a1dc" | ||
} |
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
135117
73
2359