New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

quip-cli

Package Overview
Dependencies
Maintainers
2
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quip-cli - npm Package Compare versions

Comparing version 0.2.0-alpha.5 to 0.2.0-alpha.6

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# 0.2.0-alpha.6 (2021-03-05)
**Note:** Version bump only for package quip-cli
# 0.2.0-alpha.5 (2021-03-03)

@@ -8,0 +16,0 @@

5

lib/commands/bump.d.ts
import { Command, flags } from "@oclif/command";
import { ReleaseType } from "semver";
export declare const bump: (dir: string, increment: ReleaseType, options?: {
export declare const bump: (dir: string, increment: ReleaseType | "none", options?: {
prereleaseName?: string | undefined;
versionNumber?: number | undefined;
message?: string | undefined;

@@ -14,2 +15,3 @@ silent?: boolean | undefined;

message: flags.IOptionFlag<string | undefined>;
"version-number": import("@oclif/parser/lib/flags").IOptionFlag<number | undefined>;
"prerelease-name": flags.IOptionFlag<string | undefined>;

@@ -21,4 +23,5 @@ "no-git": import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;

description: string;
default: string;
}[];
run(): Promise<void>;
}

30

lib/commands/bump.js

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

exports.bump = async (dir, increment, options) => {
const { message, silent, prereleaseName, noGit } = options || {};
const { message, silent, prereleaseName, noGit, versionNumber } = options || {};
const packagePath = path_1.default.join(dir, "package.json");

@@ -42,9 +42,17 @@ const manifestPath = await manifest_1.findManifest(dir);

const pkg = JSON.parse(await fs_1.default.promises.readFile(packagePath, "utf8"));
const version = semver_1.default.inc(pkg.version, increment, prereleaseName);
if (!version) {
throw new Error(`Failed bumping version, semver doesn't understand ${pkg.version} as a valid version string.`);
let version = pkg.version;
if (increment !== "none") {
version = semver_1.default.inc(version, increment, prereleaseName);
if (!version) {
throw new Error(`Failed bumping version, semver doesn't understand ${version} as a valid version string.`);
}
}
// update manifest.json to reflect the latest version
const manifest = await manifest_1.getManifest(manifestPath);
manifest.version_number += 1;
if (versionNumber) {
manifest.version_number = versionNumber;
}
else {
manifest.version_number += 1;
}
manifest.version_name = version;

@@ -79,3 +87,3 @@ await manifest_1.writeManifest(manifestPath, manifest);

const { args, flags } = this.parse(Bump);
const increment = (args.increment || "patch").toLowerCase();
const increment = args.increment.toLowerCase();
const manifestPath = await manifest_1.findManifest(process.cwd());

@@ -99,3 +107,3 @@ const noGit = flags["no-git"];

}
if (!["major", "minor", "patch", "prerelease"].includes(increment)) {
if (!["major", "minor", "patch", "prerelease", "none"].includes(increment)) {
this._help();

@@ -107,2 +115,3 @@ return;

prereleaseName: flags["prerelease-name"],
versionNumber: flags["version-number"],
noGit,

@@ -120,2 +129,6 @@ });

}),
"version-number": command_1.flags.integer({
char: "v",
description: "Bump the version to a specific number rather than just incrementing to the next integer",
}),
"prerelease-name": command_1.flags.string({

@@ -133,4 +146,5 @@ char: "p",

name: "increment",
description: "which number to bump - can be one of 'prerelease', 'major', 'minor', or 'patch' - defaults to 'patch'",
description: "which number to bump - can be one of 'prerelease', 'major', 'minor', 'patch', or 'none' - defaults to 'none'",
default: "none",
},
];

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

{"version":"0.2.0-alpha.5","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"},"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', or 'patch' - defaults to 'patch'"}]},"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.6","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.5",
"version": "0.2.0-alpha.6",
"author": "Quip",

@@ -92,3 +92,3 @@ "bin": {

"types": "lib/index.d.ts",
"gitHead": "3747cf35a468b5277ab5fb60e18735984423b5b8"
"gitHead": "1bfbd9ad52234d4326a2dd9f9095875f78918afa"
}
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