Comparing version 2.0.0 to 2.1.0
"use strict"; | ||
var bundle = require('./bin-bundle'); | ||
var init = require('./bin-init'); | ||
var uninstall = require('./bin-uninstall'); | ||
var install = require('./bin-install'); | ||
var list = require('./bin-list'); | ||
var search = require('./bin-search'); | ||
var open = require('./bin-open'); | ||
var view = require('./bin-view'); | ||
var prune = require('./bin-prune'); | ||
var bundle = require("./bin-bundle"); | ||
var init = require("./bin-init"); | ||
var uninstall = require("./bin-uninstall"); | ||
var install = require("./bin-install"); | ||
var list = require("./bin-list"); | ||
var search = require("./bin-search"); | ||
var open = require("./bin-open"); | ||
var view = require("./bin-view"); | ||
var prune = require("./bin-prune"); | ||
exports.aliases = { | ||
@@ -12,0 +12,0 @@ i: install, |
@@ -1,2 +0,1 @@ | ||
import Promise = require('any-promise'); | ||
export declare function help(): string; | ||
@@ -3,0 +2,0 @@ export interface Options { |
"use strict"; | ||
var typings_core_1 = require('typings-core'); | ||
var cli_1 = require('./support/cli'); | ||
var typings_core_1 = require("typings-core"); | ||
var cli_1 = require("./support/cli"); | ||
function help() { | ||
@@ -5,0 +5,0 @@ return "\ntypings bundle --out <filepath>\n\nOptions:\n [--out|-o] <filepath> The bundled output file path\n [--global|-G] Bundle as a global definition\n"; |
@@ -1,2 +0,1 @@ | ||
import Promise = require('any-promise'); | ||
export declare function help(): string; | ||
@@ -3,0 +2,0 @@ export interface Options { |
"use strict"; | ||
var typings_core_1 = require('typings-core'); | ||
var typings_core_1 = require("typings-core"); | ||
function help() { | ||
@@ -4,0 +4,0 @@ return "\ntypings init\n\nOptions:\n [--upgrade] Upgrade `tsd.json` to `typings.json`\n"; |
@@ -1,2 +0,1 @@ | ||
import Promise = require('any-promise'); | ||
import { Emitter } from 'typings-core'; | ||
@@ -3,0 +2,0 @@ export declare function help(): string; |
"use strict"; | ||
var listify = require('listify'); | ||
var typings_core_1 = require('typings-core'); | ||
var cli_1 = require('./support/cli'); | ||
var listify = require("listify"); | ||
var typings_core_1 = require("typings-core"); | ||
var cli_1 = require("./support/cli"); | ||
function help() { | ||
return "\ntypings install (with no arguments, in package directory)\ntypings install [<name>=]<location>\n\n <name> Alternate name of the definition\n <location> The location to read from (described below)\n\nValid Locations:\n [<source>~]<pkg>[@<version>][#<tag>]\n file:<path>\n github:<org>/<repo>[/<path>][#<commitish>]\n bitbucket:<org>/<repo>[/<path>][#<commitish>]\n npm:<pkg>[/<path>]\n bower:<pkg>[/<path>]\n http(s)://<host>/<path>\n\n <source> The registry mirror: \"npm\", \"bower\", \"env\", \"global\", \"lib\" or \"dt\"\n When not specified, `defaultSource` in `.typingsrc` will be used.\n <path> Path to a `.d.ts` file or `typings.json`\n <host> A domain name (with optional port)\n <version> A semver range (E.g. \">=4.0\")\n <tag> The specific tag of a registry entry\n <commitish> A git commit, tag or branch\n\nOptions:\n [--save|-S] Persist to \"dependencies\"\n [--save-dev|-D] Persist to \"devDependencies\"\n [--save-peer|-P] Persist to \"peerDependencies\"\n [--global|-G] Install and persist as a global definition\n [-SG] Persist to \"globalDependencies\"\n [-DG] Persist to \"globalDevDependencies\"\n [--production] Install only production dependencies (omits dev dependencies) and \n is implictly set when environment variable NODE_ENV=production\n [--no-production] Install production and dev dependencies (overrides environment \n variable NODE_ENV=production)\n\nAliases: i, in\n"; | ||
return "\ntypings install (with no arguments, in package directory)\ntypings install [<name>=]<location>\n\n <name> Alternate name of the definition\n <location> The location to read from (described below)\n\nValid Locations:\n [<source>~]<pkg>[@<version>][#<tag>]\n file:<path>\n github:<org>/<repo>[/<path>][#<commitish>]\n bitbucket:<org>/<repo>[/<path>][#<commitish>]\n npm:<pkg>[/<path>]\n bower:<pkg>[/<path>]\n jspm:<pkg> (for jspm@0.17+)\n http(s)://<host>/<path>\n\n <source> The registry mirror: \"npm\", \"bower\", \"env\", \"global\", \"lib\" or \"dt\"\n When not specified, `defaultSource` in `.typingsrc` will be used.\n <path> Path to a `.d.ts` file or `typings.json`\n <host> A domain name (with optional port)\n <version> A semver range (E.g. \">=4.0\")\n <tag> The specific tag of a registry entry\n <commitish> A git commit, tag or branch\n\nOptions:\n [--save|-S] Persist to \"dependencies\"\n [--save-dev|-D] Persist to \"devDependencies\"\n [--save-peer|-P] Persist to \"peerDependencies\"\n [--global|-G] Install and persist as a global definition\n [-SG] Persist to \"globalDependencies\"\n [-DG] Persist to \"globalDevDependencies\"\n [--production] Install only production dependencies (omits dev dependencies) and\n is implictly set when environment variable NODE_ENV=production\n [--no-production] Install production and dev dependencies (overrides environment\n variable NODE_ENV=production)\n\nAliases: i, in\n"; | ||
} | ||
@@ -37,4 +37,4 @@ exports.help = help; | ||
var result = results_1[_i]; | ||
var name_1 = result.name, tree = result.tree; | ||
console.log(cli_1.archifyDependencyTree({ name: name_1, tree: tree, unicode: unicode })); | ||
var name = result.name, tree = result.tree; | ||
console.log(cli_1.archifyDependencyTree({ name: name, tree: tree, unicode: unicode })); | ||
} | ||
@@ -41,0 +41,0 @@ }); |
@@ -1,2 +0,1 @@ | ||
import Promise = require('any-promise'); | ||
export declare function help(): string; | ||
@@ -3,0 +2,0 @@ export interface Options { |
"use strict"; | ||
var cli_1 = require('./support/cli'); | ||
var typings_core_1 = require('typings-core'); | ||
var cli_1 = require("./support/cli"); | ||
var typings_core_1 = require("typings-core"); | ||
function help() { | ||
@@ -5,0 +5,0 @@ return "\ntypings list\n\nOptions:\n [--production] List only production dependencies (omit dev dependencies)\n\nAliases: la, ll, ls\n"; |
"use strict"; | ||
var typings_core_1 = require('typings-core'); | ||
var cli_1 = require('./support/cli'); | ||
var typings_core_1 = require("typings-core"); | ||
var cli_1 = require("./support/cli"); | ||
function help() { | ||
@@ -5,0 +5,0 @@ return "\ntypings open <location>\n\n <location> A known Typings location with scheme (see typings install -h)\n"; |
@@ -1,2 +0,1 @@ | ||
import Promise = require('any-promise'); | ||
export declare function help(): string; | ||
@@ -3,0 +2,0 @@ export interface Options { |
"use strict"; | ||
var typings_core_1 = require('typings-core'); | ||
var cli_1 = require('./support/cli'); | ||
var typings_core_1 = require("typings-core"); | ||
var cli_1 = require("./support/cli"); | ||
function help() { | ||
@@ -5,0 +5,0 @@ return "\ntypings prune\n\nOptions:\n [--production] Also prune non-production dependencies\n"; |
@@ -1,2 +0,1 @@ | ||
import Promise = require('any-promise'); | ||
export declare function help(): string; | ||
@@ -3,0 +2,0 @@ export interface Options { |
"use strict"; | ||
var columnify = require('columnify'); | ||
var typings_core_1 = require('typings-core'); | ||
var cli_1 = require('./support/cli'); | ||
var columnify = require("columnify"); | ||
var typings_core_1 = require("typings-core"); | ||
var cli_1 = require("./support/cli"); | ||
function help() { | ||
@@ -6,0 +6,0 @@ return "\ntypings search [query]\n\nOptions:\n [--name] <name> Search for definitions by exact name (E.g. only \"react\")\n [--source] <source> The registry mirror (E.g. \"npm\", \"bower\", \"env\", \"global\", \"dt\", ...)\n [--offset] <x> Skip first \"x\" results (default: 0)\n [--limit] <x> Limit to \"x\" results (default: 20, max: 100)\n [--order] <order> Direction to sort results (default: \"asc\", enum: \"asc\" or \"desc\")\n [--sort] <column> Order results by a column (E.g. \"versions\", \"name\", ...)\n"; |
@@ -1,2 +0,1 @@ | ||
import Promise = require('any-promise'); | ||
export declare function help(): string; | ||
@@ -3,0 +2,0 @@ export interface Options { |
"use strict"; | ||
var typings_core_1 = require('typings-core'); | ||
var cli_1 = require('./support/cli'); | ||
var typings_core_1 = require("typings-core"); | ||
var cli_1 = require("./support/cli"); | ||
function help() { | ||
@@ -5,0 +5,0 @@ return "\ntypings uninstall <name> [--save|--save-dev|--save-peer] [--global]\n\nOptions:\n [--save|-S] Remove from \"dependencies\"\n [--save-dev|-D] Remove from \"devDependencies\"\n [--save-peer|-P] Remove from \"peerDependencies\"\n [--global|-G] Remove from the global version of dependencies\n [-SG] Remove from \"globalDependencies\"\n [-DG] Remove from \"globalDevDependencies\"\n\nAliases: r, rm, remove, un\n"; |
@@ -1,2 +0,1 @@ | ||
import Promise = require('any-promise'); | ||
export declare function help(): string; | ||
@@ -3,0 +2,0 @@ export interface Options { |
"use strict"; | ||
var columnify = require('columnify'); | ||
var typings_core_1 = require('typings-core'); | ||
var cli_1 = require('./support/cli'); | ||
var columnify = require("columnify"); | ||
var typings_core_1 = require("typings-core"); | ||
var cli_1 = require("./support/cli"); | ||
function help() { | ||
@@ -6,0 +6,0 @@ return "\ntypings view <pkg>\n\n <pkg> A registry expression like `[<source>~]<pkg>`\n\nOptions:\n [--versions] List all package versions\n\nAliases: info\n"; |
#!/usr/bin/env node | ||
"use strict"; | ||
var minimist = require('minimist'); | ||
var wordwrap = require('wordwrap'); | ||
var hasUnicode = require('has-unicode'); | ||
var path_1 = require('path'); | ||
var chalk = require('chalk'); | ||
var updateNotifier = require('update-notifier'); | ||
var extend = require('xtend'); | ||
var events_1 = require('events'); | ||
var cli_1 = require('./support/cli'); | ||
var aliases_1 = require('./aliases'); | ||
var minimist = require("minimist"); | ||
var wordwrap = require("wordwrap"); | ||
var hasUnicode = require("has-unicode"); | ||
var path_1 = require("path"); | ||
var chalk = require("chalk"); | ||
var updateNotifier = require("update-notifier"); | ||
var extend = require("xtend"); | ||
var events_1 = require("events"); | ||
var cli_1 = require("./support/cli"); | ||
var aliases_1 = require("./aliases"); | ||
var pkg = require('../package.json'); | ||
@@ -50,3 +50,3 @@ var unicodeConfig = process.env['TYPINGS_CONFIG_UNICODE'] || process.env['NPM_CONFIG_UNICODE']; | ||
var name = _a.name, typings = _a.typings; | ||
cli_1.logWarning(("Typings for \"" + name + "\" already exist in \"" + path_1.relative(cwd, typings) + "\". You should ") + | ||
cli_1.logWarning("Typings for \"" + name + "\" already exist in \"" + path_1.relative(cwd, typings) + "\". You should " + | ||
"let TypeScript resolve the packaged typings and uninstall the copy installed by Typings", 'hastypings'); | ||
@@ -70,3 +70,3 @@ }); | ||
var name = _a.name, global = _a.global, resolution = _a.resolution; | ||
var suffix = chalk.gray((" (" + resolution + ")") + (global ? ' (global)' : '')); | ||
var suffix = chalk.gray(" (" + resolution + ")" + (global ? ' (global)' : '')); | ||
cli_1.logInfo("" + name + suffix, 'prune'); | ||
@@ -73,0 +73,0 @@ }); |
@@ -1,2 +0,1 @@ | ||
import Promise = require('any-promise'); | ||
import { DependencyTree } from 'typings-core'; | ||
@@ -3,0 +2,0 @@ export interface PrintOptions { |
"use strict"; | ||
var chalk = require('chalk'); | ||
var Promise = require('any-promise'); | ||
var archy = require('archy'); | ||
var listify = require('listify'); | ||
var logUpdate = require('log-update'); | ||
var elegantSpinner = require('elegant-spinner'); | ||
var truncate = require('cli-truncate'); | ||
var os = require('os'); | ||
var promise_finally_1 = require('promise-finally'); | ||
var chalk = require("chalk"); | ||
var archy = require("archy"); | ||
var listify = require("listify"); | ||
var logUpdate = require("log-update"); | ||
var elegantSpinner = require("elegant-spinner"); | ||
var truncate = require("cli-truncate"); | ||
var os = require("os"); | ||
var promise_finally_1 = require("promise-finally"); | ||
var pkg = require('../../package.json'); | ||
@@ -77,7 +76,7 @@ var statusFrame; | ||
if (statusFrame && process.stdout.isTTY) { | ||
var status_1 = chalk.cyan(statusFrame()); | ||
var status = chalk.cyan(statusFrame()); | ||
if (statusMessage) { | ||
status_1 += " " + statusMessage; | ||
status += " " + statusMessage; | ||
} | ||
logUpdate(truncate(status_1, process.stdout.columns)); | ||
logUpdate(truncate(status, process.stdout.columns)); | ||
statusTimeout = setTimeout(render, 50); | ||
@@ -147,6 +146,6 @@ } | ||
for (var _i = 0, _a = Object.keys(dependencies).sort(); _i < _a.length; _i++) { | ||
var name_1 = _a[_i]; | ||
var tree = dependencies[name_1]; | ||
var name = _a[_i]; | ||
var tree = dependencies[name]; | ||
nodes.push(traverse({ | ||
label: toDependencyName(name_1, tree, suffix), | ||
label: toDependencyName(name, tree, suffix), | ||
nodes: [] | ||
@@ -153,0 +152,0 @@ }, tree)); |
{ | ||
"name": "typings", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "The TypeScript Definition Manager", | ||
@@ -45,3 +45,2 @@ "main": "dist/bin.js", | ||
"dependencies": { | ||
"any-promise": "^1.3.0", | ||
"archy": "^1.0.0", | ||
@@ -57,4 +56,4 @@ "bluebird": "^3.1.1", | ||
"minimist": "^1.2.0", | ||
"promise-finally": "^2.2.1", | ||
"typings-core": "^2.0.0", | ||
"promise-finally": "^3.0.0", | ||
"typings-core": "^2.2.0", | ||
"update-notifier": "^1.0.0", | ||
@@ -69,6 +68,6 @@ "wordwrap": "^1.0.0", | ||
"ts-node": "^1.0.0", | ||
"tslint": "^3.5.0", | ||
"tslint-config-standard": "^1.5.0", | ||
"typescript": "^2.0.3" | ||
"tslint": "^4.0.2", | ||
"tslint-config-standard": "^2.0.0", | ||
"typescript": "^2.1.4" | ||
} | ||
} |
@@ -70,2 +70,3 @@ # ![Typings](https://cdn.rawgit.com/typings/typings/master/logo.svg) | ||
* `bitbucket` - dependencies directly from [Bitbucket](https://bitbucket.org) | ||
* `jspm`: - dependencies from installed [JSPM](http://jspm.io/) packages with typings distributed. Requires `jspm@0.17+`. | ||
* `bower` - dependencies from [Bower](http://bower.io/) | ||
@@ -72,0 +73,0 @@ * `common` - "standard" libraries without a known "source" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
15
111
68483
602
- Removedany-promise@^1.3.0
- Removedpromise-finally@2.2.1(transitive)
Updatedpromise-finally@^3.0.0
Updatedtypings-core@^2.2.0