From 9e9fb92bf062b93750d7f80d28b2aa8a5a5440f2 Mon Sep 17 00:00:00 2001 From: SkonTeam Date: Fri, 1 Apr 2016 12:26:06 +0100 Subject: [PATCH 1/5] Update code to the newest Atom api and fixed activation error. --- .npmignore | 3 + lib/npm-docs-view.coffee | 9 +- lib/npm-docs.coffee | 45 +-- package.json | 738 +++++++++++++++++++++++++++++++++++++- spec/npm-docs-spec.coffee | 25 +- 5 files changed, 779 insertions(+), 41 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..ade14b9 --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +.DS_Store +npm-debug.log +node_modules diff --git a/lib/npm-docs-view.coffee b/lib/npm-docs-view.coffee index a4eb1c5..d150892 100644 --- a/lib/npm-docs-view.coffee +++ b/lib/npm-docs-view.coffee @@ -1,4 +1,4 @@ -{ScrollView} = require 'atom' +{ScrollView} = require 'atom-space-pen-views' module.exports = class NpmDocsView extends ScrollView @@ -22,12 +22,13 @@ class NpmDocsView extends ScrollView path: @path handleEvents: -> - @subscribe this, 'core:move-up', => @scrollUp() - @subscribe this, 'core:move-down', => @scrollDown() + @on 'core:move-up', this, => @scrollUp() + @on 'core:move-down',this, => @scrollDown() # Tear down any state and detach destroy: -> - @unsubscribe() + @off('core:move-up',this) + @off('core:move-up',this) getTitle: -> "npm-docs: #{@path}" diff --git a/lib/npm-docs.coffee b/lib/npm-docs.coffee index 3802e5d..3e97532 100644 --- a/lib/npm-docs.coffee +++ b/lib/npm-docs.coffee @@ -8,39 +8,42 @@ module.exports = npmDocsView: null activate: (state) -> - atom.workspace.registerOpener (uriToOpen) -> + atom.workspace.addOpener (uriToOpen) -> {protocol, host} = url.parse(uriToOpen) return unless protocol is 'npm-docs:' new NpmDocsView(host) - atom.workspaceView.command "npm-docs:open", => - open("https://npmjs.org/package/#{@getSelection()}") + atom.commands.add 'atom-workspace', + "npm-docs:open": => + selection = @getSelection() + if(selection.trim() == '') then return + open("https://npmjs.org/package/#{selection}") - atom.workspaceView.command "npm-docs:homepage", => - @search (err, json, selection) -> - if (err) then throw err - open(json.homepage) + "npm-docs:homepage": => + @search (err, json, selection) -> + if (err) then throw err + open(json.homepage) - atom.workspaceView.command "npm-docs:readme", => - @search (err, json, selection) -> - if (err) then throw err - markdown = json.readme - if !markdown then return - roaster markdown, {}, (err, contents) -> + "npm-docs:readme": => + @search (err, json, selection) -> if (err) then throw err - uri = "npm-docs://#{selection}" - previousActivePane = atom.workspace.getActivePane() - atom.workspace.open(uri, split: 'right', searchAllPanes: true).done (npmDocsView) -> - npmDocsView.renderContents(contents) - previousActivePane.activate() + markdown = json.readme + if !markdown then return + roaster markdown, {}, (err, contents) -> + if (err) then throw err + uri = "npm-docs://#{selection}" + previousActivePane = atom.workspace.getActivePane() + atom.workspace.open(uri, split: 'right', searchAllPanes: true).done (npmDocsView) -> + npmDocsView.renderContents(contents) + previousActivePane.activate() getSelection: -> - editor = atom.workspace.getActiveEditor() - editor.getSelection().getText() || editor.getWordUnderCursor() + editor = atom.workspace.getActiveTextEditor() + editor.getSelectedText() || editor.getWordUnderCursor() search: (cb) -> selection = @getSelection() - + if(selection.trim() == '') then return request.get "https://registry.npmjs.org/#{selection}", (err, res) -> if (err) then throw err diff --git a/package.json b/package.json index 8c91f7b..b0da622 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "npm-docs", "main": "./lib/npm-docs", - "version": "0.2.0", + "version": "0.3.0", "private": true, "description": "Helpful information for node modules for the Atom text editor", "activationEvents": [ @@ -9,15 +9,743 @@ "npm-docs:open", "npm-docs:homepage" ], - "author": "Jonathan Clem", - "repository": "https://github.com/jclem/npm-docs", + "author": { + "name": "Jonathan Clem" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/jclem/npm-docs.git" + }, "license": "MIT", "engines": { "atom": ">0.50.0" }, "dependencies": { + "atom-space-pen-views": "^2.2.0", + "open": "0.0.4", "request": "~2.34.0", - "roaster": "~1.0.1", - "open": "0.0.4" + "roaster": "~1.0.1" + }, + "readme": "# npm-docs\n\nHelpful information for node modules for the [Atom](https://atom.io) text editor.\n\n## Usage\n\nWith the name of a node module selected in a buffer, open the command pallete.\n\n### Commands\n\n#### `npm-docs:readme`\n\nThis will open the readme for the given npm module in a split.\n\n#### `npm-docs:open`\n\nThis will open the npmjs.org page for the module.\n\n#### `npm-docs:homepage`\n\nThis will open the homepage of the module.\n", + "readmeFilename": "README.md", + "bugs": { + "url": "https://github.com/jclem/npm-docs/issues" + }, + "homepage": "https://github.com/jclem/npm-docs#readme", + "_id": "npm-docs@0.2.0", + "_shasum": "c4bcb1f19c5baeb8ebf016eb6fcb95f791008391", + "_resolved": "file:..\\d-11631-19040-oe9t1l\\package.tgz", + "_from": "..\\d-11631-19040-oe9t1l\\package.tgz", + "_atomModuleCache": { + "version": 1, + "dependencies": [ + { + "name": "open", + "version": "0.0.4", + "path": "node_modules\\open\\lib\\open.js" + }, + { + "name": "request", + "version": "2.34.0", + "path": "node_modules\\request\\index.js" + }, + { + "name": "aws-sign2", + "version": "0.5.0", + "path": "node_modules\\request\\node_modules\\aws-sign2\\index.js" + }, + { + "name": "forever-agent", + "version": "0.5.2", + "path": "node_modules\\request\\node_modules\\forever-agent\\index.js" + }, + { + "name": "form-data", + "version": "0.1.4", + "path": "node_modules\\request\\node_modules\\form-data\\lib\\form_data.js" + }, + { + "name": "async", + "version": "0.9.2", + "path": "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\lib\\async.js" + }, + { + "name": "combined-stream", + "version": "0.0.7", + "path": "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\lib\\combined_stream.js" + }, + { + "name": "delayed-stream", + "version": "0.0.5", + "path": "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\node_modules\\delayed-stream\\lib\\delayed_stream.js" + }, + { + "name": "hawk", + "version": "1.0.0", + "path": "node_modules\\request\\node_modules\\hawk\\index.js" + }, + { + "name": "boom", + "version": "0.4.2", + "path": "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\index.js" + }, + { + "name": "cryptiles", + "version": "0.2.2", + "path": "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\index.js" + }, + { + "name": "hoek", + "version": "0.9.1", + "path": "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\index.js" + }, + { + "name": "sntp", + "version": "0.2.4", + "path": "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\index.js" + }, + { + "name": "http-signature", + "version": "0.10.1", + "path": "node_modules\\request\\node_modules\\http-signature\\lib\\index.js" + }, + { + "name": "asn1", + "version": "0.1.11", + "path": "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\index.js" + }, + { + "name": "assert-plus", + "version": "0.1.5", + "path": "node_modules\\request\\node_modules\\http-signature\\node_modules\\assert-plus\\assert.js" + }, + { + "name": "ctype", + "version": "0.5.3", + "path": "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\ctype.js" + }, + { + "name": "json-stringify-safe", + "version": "5.0.1", + "path": "node_modules\\request\\node_modules\\json-stringify-safe\\stringify.js" + }, + { + "name": "mime", + "version": "1.2.11", + "path": "node_modules\\request\\node_modules\\mime\\mime.js" + }, + { + "name": "node-uuid", + "version": "1.4.7", + "path": "node_modules\\request\\node_modules\\node-uuid\\uuid.js" + }, + { + "name": "oauth-sign", + "version": "0.3.0", + "path": "node_modules\\request\\node_modules\\oauth-sign\\index.js" + }, + { + "name": "qs", + "version": "0.6.6", + "path": "node_modules\\request\\node_modules\\qs\\index.js" + }, + { + "name": "tough-cookie", + "version": "2.2.2", + "path": "node_modules\\request\\node_modules\\tough-cookie\\lib\\cookie.js" + }, + { + "name": "tunnel-agent", + "version": "0.3.0", + "path": "node_modules\\request\\node_modules\\tunnel-agent\\index.js" + }, + { + "name": "roaster", + "version": "1.0.8", + "path": "node_modules\\roaster\\lib\\roaster.js" + }, + { + "name": "cheerio", + "version": "0.15.0", + "path": "node_modules\\roaster\\node_modules\\cheerio\\index.js" + }, + { + "name": "CSSselect", + "version": "0.4.1", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\index.js" + }, + { + "name": "CSSwhat", + "version": "0.4.7", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\CSSwhat\\index.js" + }, + { + "name": "domutils", + "version": "1.4.3", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\index.js" + }, + { + "name": "domelementtype", + "version": "1.3.0", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\node_modules\\domelementtype\\index.js" + }, + { + "name": "entities", + "version": "1.0.0", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\index.js" + }, + { + "name": "htmlparser2", + "version": "3.7.3", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\index.js" + }, + { + "name": "domelementtype", + "version": "1.3.0", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domelementtype\\index.js" + }, + { + "name": "domhandler", + "version": "2.2.1", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\index.js" + }, + { + "name": "domutils", + "version": "1.5.1", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\index.js" + }, + { + "name": "dom-serializer", + "version": "0.1.0", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\index.js" + }, + { + "name": "domelementtype", + "version": "1.1.3", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\domelementtype\\index.js" + }, + { + "name": "entities", + "version": "1.1.1", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\index.js" + }, + { + "name": "readable-stream", + "version": "1.1.13", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\readable.js" + }, + { + "name": "core-util-is", + "version": "1.0.2", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\core-util-is\\lib\\util.js" + }, + { + "name": "inherits", + "version": "2.0.1", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\inherits.js" + }, + { + "name": "isarray", + "version": "0.0.1", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\index.js" + }, + { + "name": "string_decoder", + "version": "0.10.31", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\string_decoder\\index.js" + }, + { + "name": "lodash", + "version": "2.4.2", + "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.js" + }, + { + "name": "emoji-images", + "version": "0.0.2", + "path": "node_modules\\roaster\\node_modules\\emoji-images\\emoji-images.js" + }, + { + "name": "marked", + "version": "0.3.1", + "path": "node_modules\\roaster\\node_modules\\marked\\lib\\marked.js" + }, + { + "name": "task-lists", + "version": "0.1.3", + "path": "node_modules\\roaster\\node_modules\\task-lists\\lib\\index.js" + } + ], + "extensions": { + ".coffee": [ + "lib\\npm-docs-view.coffee", + "lib\\npm-docs.coffee", + "node_modules\\roaster\\node_modules\\task-lists\\src\\index.coffee" + ], + ".js": [ + "node_modules\\open\\lib\\open.js", + "node_modules\\request\\dns-request.js", + "node_modules\\request\\index.js", + "node_modules\\request\\lib\\cookies.js", + "node_modules\\request\\lib\\copy.js", + "node_modules\\request\\lib\\debug.js", + "node_modules\\request\\lib\\getSafe.js", + "node_modules\\request\\lib\\optional.js", + "node_modules\\request\\node_modules\\aws-sign2\\index.js", + "node_modules\\request\\node_modules\\forever-agent\\index.js", + "node_modules\\request\\node_modules\\form-data\\lib\\form_data.js", + "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\lib\\async.js", + "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\support\\sync-package-managers.js", + "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\lib\\combined_stream.js", + "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\node_modules\\delayed-stream\\lib\\delayed_stream.js", + "node_modules\\request\\node_modules\\hawk\\example\\usage.js", + "node_modules\\request\\node_modules\\hawk\\index.js", + "node_modules\\request\\node_modules\\hawk\\lib\\browser.js", + "node_modules\\request\\node_modules\\hawk\\lib\\client.js", + "node_modules\\request\\node_modules\\hawk\\lib\\crypto.js", + "node_modules\\request\\node_modules\\hawk\\lib\\index.js", + "node_modules\\request\\node_modules\\hawk\\lib\\server.js", + "node_modules\\request\\node_modules\\hawk\\lib\\utils.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\index.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\lib\\index.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\index.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\lib\\index.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\index.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\lib\\escape.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\lib\\index.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\examples\\offset.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\examples\\time.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\index.js", + "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\lib\\index.js", + "node_modules\\request\\node_modules\\http-signature\\lib\\index.js", + "node_modules\\request\\node_modules\\http-signature\\lib\\parser.js", + "node_modules\\request\\node_modules\\http-signature\\lib\\signer.js", + "node_modules\\request\\node_modules\\http-signature\\lib\\util.js", + "node_modules\\request\\node_modules\\http-signature\\lib\\verify.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\errors.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\index.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\reader.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\types.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\writer.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\index.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\tst\\ber\\reader.test.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\tst\\ber\\writer.test.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\assert-plus\\assert.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\ctf.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\ctio.js", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\ctype.js", + "node_modules\\request\\node_modules\\json-stringify-safe\\stringify.js", + "node_modules\\request\\node_modules\\mime\\mime.js", + "node_modules\\request\\node_modules\\mime\\test.js", + "node_modules\\request\\node_modules\\node-uuid\\benchmark\\benchmark.js", + "node_modules\\request\\node_modules\\node-uuid\\uuid.js", + "node_modules\\request\\node_modules\\oauth-sign\\index.js", + "node_modules\\request\\node_modules\\oauth-sign\\test.js", + "node_modules\\request\\node_modules\\qs\\index.js", + "node_modules\\request\\node_modules\\tough-cookie\\lib\\cookie.js", + "node_modules\\request\\node_modules\\tough-cookie\\lib\\memstore.js", + "node_modules\\request\\node_modules\\tough-cookie\\lib\\pathMatch.js", + "node_modules\\request\\node_modules\\tough-cookie\\lib\\permuteDomain.js", + "node_modules\\request\\node_modules\\tough-cookie\\lib\\pubsuffix.js", + "node_modules\\request\\node_modules\\tough-cookie\\lib\\store.js", + "node_modules\\request\\node_modules\\tunnel-agent\\index.js", + "node_modules\\request\\request.js", + "node_modules\\roaster\\lib\\roaster.js", + "node_modules\\roaster\\node_modules\\cheerio\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\api\\attributes.js", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\api\\css.js", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\api\\manipulation.js", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\api\\traversing.js", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\cheerio.js", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\parse.js", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\render.js", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\static.js", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\utils.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\browser_functions.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\attributes.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\basefunctions.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\compile.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\general.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\nth-check.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\pseudos.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\sort.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\CSSwhat\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\helpers.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\legacy.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\manipulation.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\querying.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\stringify.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\traversal.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\node_modules\\domelementtype\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\lib\\decode.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\lib\\decode_codepoint.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\lib\\encode.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\CollectingHandler.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\FeedHandler.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\Parser.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\ProxyHandler.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\Stream.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\Tokenizer.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\WritableStream.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domelementtype\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\lib\\element.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\lib\\node.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\helpers.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\legacy.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\manipulation.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\querying.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\stringify.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\traversal.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\domelementtype\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\decode.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\decode_codepoint.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\encode.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\duplex.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_duplex.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_passthrough.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_readable.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_transform.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_writable.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\core-util-is\\lib\\util.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\core-util-is\\test.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\inherits.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\inherits_browser.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\test.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\build\\build.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\string_decoder\\index.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\passthrough.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\readable.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\transform.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\writable.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.compat.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.compat.min.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.min.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.underscore.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.underscore.min.js", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\lodash.js", + "node_modules\\roaster\\node_modules\\emoji-images\\build-pngs.js", + "node_modules\\roaster\\node_modules\\emoji-images\\build.js", + "node_modules\\roaster\\node_modules\\emoji-images\\emoji-images.js", + "node_modules\\roaster\\node_modules\\emoji-images\\scraper.js", + "node_modules\\roaster\\node_modules\\emoji-images\\template.js", + "node_modules\\roaster\\node_modules\\marked\\index.js", + "node_modules\\roaster\\node_modules\\marked\\lib\\marked.js", + "node_modules\\roaster\\node_modules\\task-lists\\lib\\index.js" + ], + ".json": [ + "node_modules\\open\\package.json", + "node_modules\\request\\node_modules\\aws-sign2\\package.json", + "node_modules\\request\\node_modules\\forever-agent\\package.json", + "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\bower.json", + "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\component.json", + "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\package.json", + "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\node_modules\\delayed-stream\\package.json", + "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\package.json", + "node_modules\\request\\node_modules\\form-data\\package.json", + "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\package.json", + "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\package.json", + "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\package.json", + "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\package.json", + "node_modules\\request\\node_modules\\hawk\\package.json", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\package.json", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\assert-plus\\package.json", + "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\package.json", + "node_modules\\request\\node_modules\\http-signature\\package.json", + "node_modules\\request\\node_modules\\json-stringify-safe\\package.json", + "node_modules\\request\\node_modules\\mime\\package.json", + "node_modules\\request\\node_modules\\node-uuid\\bower.json", + "node_modules\\request\\node_modules\\node-uuid\\component.json", + "node_modules\\request\\node_modules\\node-uuid\\package.json", + "node_modules\\request\\node_modules\\oauth-sign\\package.json", + "node_modules\\request\\node_modules\\qs\\package.json", + "node_modules\\request\\node_modules\\tough-cookie\\package.json", + "node_modules\\request\\node_modules\\tunnel-agent\\package.json", + "node_modules\\request\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\CSSwhat\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\node_modules\\domelementtype\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\maps\\decode.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\maps\\entities.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\maps\\legacy.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\maps\\xml.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domelementtype\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\domelementtype\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\maps\\decode.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\maps\\entities.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\maps\\legacy.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\maps\\xml.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\core-util-is\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\component.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\string_decoder\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\package.json", + "node_modules\\roaster\\node_modules\\cheerio\\package.json", + "node_modules\\roaster\\node_modules\\emoji-images\\json\\emoticons.json", + "node_modules\\roaster\\node_modules\\emoji-images\\json\\nature.json", + "node_modules\\roaster\\node_modules\\emoji-images\\json\\objects.json", + "node_modules\\roaster\\node_modules\\emoji-images\\json\\people.json", + "node_modules\\roaster\\node_modules\\emoji-images\\json\\places.json", + "node_modules\\roaster\\node_modules\\emoji-images\\json\\symbols.json", + "node_modules\\roaster\\node_modules\\emoji-images\\package.json", + "node_modules\\roaster\\node_modules\\marked\\component.json", + "node_modules\\roaster\\node_modules\\marked\\package.json", + "node_modules\\roaster\\node_modules\\task-lists\\package.json", + "node_modules\\roaster\\package.json", + "package.json" + ] + }, + "folders": [ + { + "paths": [ + "lib", + "", + "spec" + ], + "dependencies": { + "request": "~2.34.0", + "roaster": "~1.0.1", + "open": "0.0.4" + } + }, + { + "paths": [ + "node_modules\\request", + "node_modules\\request\\lib" + ], + "dependencies": { + "qs": "~0.6.0", + "json-stringify-safe": "~5.0.0", + "forever-agent": "~0.5.0", + "node-uuid": "~1.4.0", + "mime": "~1.2.9", + "tough-cookie": ">=0.12.0", + "form-data": "~0.1.0", + "tunnel-agent": "~0.3.0", + "http-signature": "~0.10.0", + "oauth-sign": "~0.3.0", + "hawk": "~1.0.0", + "aws-sign2": "~0.5.0" + } + }, + { + "paths": [ + "node_modules\\request\\node_modules\\form-data\\lib", + "node_modules\\request\\node_modules\\form-data" + ], + "dependencies": { + "combined-stream": "~0.0.4", + "mime": "~1.2.11", + "async": "~0.9.0" + } + }, + { + "paths": [ + "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\lib", + "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream" + ], + "dependencies": { + "delayed-stream": "0.0.5" + } + }, + { + "paths": [ + "node_modules\\request\\node_modules\\hawk\\example", + "node_modules\\request\\node_modules\\hawk", + "node_modules\\request\\node_modules\\hawk\\lib", + "node_modules\\request\\node_modules\\hawk\\test" + ], + "dependencies": { + "hoek": "0.9.x", + "boom": "0.4.x", + "cryptiles": "0.2.x", + "sntp": "0.2.x" + } + }, + { + "paths": [ + "node_modules\\request\\node_modules\\hawk\\node_modules\\boom", + "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\lib", + "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\test" + ], + "dependencies": { + "hoek": "0.9.x" + } + }, + { + "paths": [ + "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles", + "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\lib", + "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\test" + ], + "dependencies": { + "boom": "0.4.x" + } + }, + { + "paths": [ + "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\examples", + "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp", + "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\lib", + "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\test" + ], + "dependencies": { + "hoek": "0.9.x" + } + }, + { + "paths": [ + "node_modules\\request\\node_modules\\http-signature\\lib", + "node_modules\\request\\node_modules\\http-signature" + ], + "dependencies": { + "assert-plus": "^0.1.5", + "asn1": "0.1.11", + "ctype": "0.5.3" + } + }, + { + "paths": [ + "node_modules\\roaster\\lib", + "node_modules\\roaster" + ], + "dependencies": { + "marked": "0.3.1", + "emoji-images": "0.0.2", + "task-lists": "0.1.3", + "cheerio": "0.15.0" + } + }, + { + "paths": [ + "node_modules\\roaster\\node_modules\\cheerio", + "node_modules\\roaster\\node_modules\\cheerio\\lib\\api", + "node_modules\\roaster\\node_modules\\cheerio\\lib", + "node_modules\\roaster\\node_modules\\cheerio\\test" + ], + "dependencies": { + "htmlparser2": "~3.7.0", + "entities": "~1.0.0", + "CSSselect": "~0.4.0", + "lodash": "~2.4.1" + } + }, + { + "paths": [ + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\nwmatcher", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\qwery", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\sizzle\\data", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\sizzle", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\tools" + ], + "dependencies": { + "CSSwhat": "0.4", + "domutils": "1.4" + } + }, + { + "paths": [ + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\test", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\test\\tests" + ], + "dependencies": { + "domelementtype": "1" + } + }, + { + "paths": [ + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\test", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\test\\Events", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\test\\Feeds", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\test\\Stream" + ], + "dependencies": { + "domhandler": "2.2", + "domutils": "1.5", + "domelementtype": "1", + "readable-stream": "1.1", + "entities": "1.0" + } + }, + { + "paths": [ + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\lib", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\test\\cases", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\test" + ], + "dependencies": { + "domelementtype": "1" + } + }, + { + "paths": [ + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\test", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\test\\tests" + ], + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + { + "paths": [ + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer" + ], + "dependencies": { + "domelementtype": "~1.1.1", + "entities": "~1.1.1" + } + }, + { + "paths": [ + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream", + "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib" + ], + "dependencies": { + "core-util-is": "~1.0.0", + "isarray": "0.0.1", + "string_decoder": "~0.10.x", + "inherits": "~2.0.1" + } + }, + { + "paths": [ + "node_modules\\roaster\\node_modules\\task-lists\\lib", + "node_modules\\roaster\\node_modules\\task-lists", + "node_modules\\roaster\\node_modules\\task-lists\\src", + "node_modules\\roaster\\node_modules\\task-lists\\test" + ], + "dependencies": { + "cheerio": "~0.15.0" + } + } + ] } } diff --git a/spec/npm-docs-spec.coffee b/spec/npm-docs-spec.coffee index fd77e2d..5a719b7 100644 --- a/spec/npm-docs-spec.coffee +++ b/spec/npm-docs-spec.coffee @@ -1,4 +1,5 @@ NpmDocs = require '../lib/npm-docs' +{$} = require 'atom-space-pen-views' # Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs. # @@ -6,24 +7,26 @@ NpmDocs = require '../lib/npm-docs' # or `fdescribe`). Remove the `f` to unfocus the block. describe "NpmDocs", -> - activationPromise = null + loadpackage = null beforeEach -> - atom.workspaceView = new WorkspaceView - activationPromise = atom.packages.activatePackage('npmDocs') - + atom.workspaceView = atom.views.getView(atom.workspace) + loadpackage = atom.packages.enablePackage("npm-docs") + console.log loadpackage describe "when the npm-docs:search event is triggered", -> it "attaches and then detaches the view", -> - expect(atom.workspaceView.find('.npm-docs')).not.toExist() + expect($(atom.workspaceView).find('.npm-docs')).not.toExist() # This is an activation event, triggering it will cause the package to be # activated. - atom.workspaceView.trigger 'npm-docs:toggle' + atom.commands.dispatch atom.workspaceView, 'npm-docs:toggle' - waitsForPromise -> - activationPromise + #waitsForPromise -> + #loadpackage.activationPromise runs -> - expect(atom.workspaceView.find('.npm-docs')).toExist() - atom.workspaceView.trigger 'npm-docs:search' - expect(atom.workspaceView.find('.npm-docs')).not.toExist() + console.log loadpackage + #console.log $(atom.workspaceView).find('.npm-docs') + expect($(atom.workspaceView).find('.npm-docs')).toExist() + atom.commands.dispatch atom.workspaceView, 'npm-docs:search' + expect($(atom.workspaceView).find('.npm-docs')).not.toExist() From 3b0487888b671729193ce86e42aad7e6d3bcfc20 Mon Sep 17 00:00:00 2001 From: SkonTeam Date: Fri, 1 Apr 2016 13:16:28 +0100 Subject: [PATCH 2/5] Fixed package.json wrong usage --- package.json | 737 +-------------------------------------------------- 1 file changed, 5 insertions(+), 732 deletions(-) diff --git a/package.json b/package.json index b0da622..909289f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "npm-docs", "main": "./lib/npm-docs", - "version": "0.3.0", + "version": "0.2.0", "private": true, "description": "Helpful information for node modules for the Atom text editor", "activationEvents": [ @@ -9,743 +9,16 @@ "npm-docs:open", "npm-docs:homepage" ], - "author": { - "name": "Jonathan Clem" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/jclem/npm-docs.git" - }, + "author": "Jonathan Clem", + "repository": "https://github.com/jclem/npm-docs", "license": "MIT", "engines": { "atom": ">0.50.0" }, "dependencies": { "atom-space-pen-views": "^2.2.0", - "open": "0.0.4", "request": "~2.34.0", - "roaster": "~1.0.1" - }, - "readme": "# npm-docs\n\nHelpful information for node modules for the [Atom](https://atom.io) text editor.\n\n## Usage\n\nWith the name of a node module selected in a buffer, open the command pallete.\n\n### Commands\n\n#### `npm-docs:readme`\n\nThis will open the readme for the given npm module in a split.\n\n#### `npm-docs:open`\n\nThis will open the npmjs.org page for the module.\n\n#### `npm-docs:homepage`\n\nThis will open the homepage of the module.\n", - "readmeFilename": "README.md", - "bugs": { - "url": "https://github.com/jclem/npm-docs/issues" - }, - "homepage": "https://github.com/jclem/npm-docs#readme", - "_id": "npm-docs@0.2.0", - "_shasum": "c4bcb1f19c5baeb8ebf016eb6fcb95f791008391", - "_resolved": "file:..\\d-11631-19040-oe9t1l\\package.tgz", - "_from": "..\\d-11631-19040-oe9t1l\\package.tgz", - "_atomModuleCache": { - "version": 1, - "dependencies": [ - { - "name": "open", - "version": "0.0.4", - "path": "node_modules\\open\\lib\\open.js" - }, - { - "name": "request", - "version": "2.34.0", - "path": "node_modules\\request\\index.js" - }, - { - "name": "aws-sign2", - "version": "0.5.0", - "path": "node_modules\\request\\node_modules\\aws-sign2\\index.js" - }, - { - "name": "forever-agent", - "version": "0.5.2", - "path": "node_modules\\request\\node_modules\\forever-agent\\index.js" - }, - { - "name": "form-data", - "version": "0.1.4", - "path": "node_modules\\request\\node_modules\\form-data\\lib\\form_data.js" - }, - { - "name": "async", - "version": "0.9.2", - "path": "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\lib\\async.js" - }, - { - "name": "combined-stream", - "version": "0.0.7", - "path": "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\lib\\combined_stream.js" - }, - { - "name": "delayed-stream", - "version": "0.0.5", - "path": "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\node_modules\\delayed-stream\\lib\\delayed_stream.js" - }, - { - "name": "hawk", - "version": "1.0.0", - "path": "node_modules\\request\\node_modules\\hawk\\index.js" - }, - { - "name": "boom", - "version": "0.4.2", - "path": "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\index.js" - }, - { - "name": "cryptiles", - "version": "0.2.2", - "path": "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\index.js" - }, - { - "name": "hoek", - "version": "0.9.1", - "path": "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\index.js" - }, - { - "name": "sntp", - "version": "0.2.4", - "path": "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\index.js" - }, - { - "name": "http-signature", - "version": "0.10.1", - "path": "node_modules\\request\\node_modules\\http-signature\\lib\\index.js" - }, - { - "name": "asn1", - "version": "0.1.11", - "path": "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\index.js" - }, - { - "name": "assert-plus", - "version": "0.1.5", - "path": "node_modules\\request\\node_modules\\http-signature\\node_modules\\assert-plus\\assert.js" - }, - { - "name": "ctype", - "version": "0.5.3", - "path": "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\ctype.js" - }, - { - "name": "json-stringify-safe", - "version": "5.0.1", - "path": "node_modules\\request\\node_modules\\json-stringify-safe\\stringify.js" - }, - { - "name": "mime", - "version": "1.2.11", - "path": "node_modules\\request\\node_modules\\mime\\mime.js" - }, - { - "name": "node-uuid", - "version": "1.4.7", - "path": "node_modules\\request\\node_modules\\node-uuid\\uuid.js" - }, - { - "name": "oauth-sign", - "version": "0.3.0", - "path": "node_modules\\request\\node_modules\\oauth-sign\\index.js" - }, - { - "name": "qs", - "version": "0.6.6", - "path": "node_modules\\request\\node_modules\\qs\\index.js" - }, - { - "name": "tough-cookie", - "version": "2.2.2", - "path": "node_modules\\request\\node_modules\\tough-cookie\\lib\\cookie.js" - }, - { - "name": "tunnel-agent", - "version": "0.3.0", - "path": "node_modules\\request\\node_modules\\tunnel-agent\\index.js" - }, - { - "name": "roaster", - "version": "1.0.8", - "path": "node_modules\\roaster\\lib\\roaster.js" - }, - { - "name": "cheerio", - "version": "0.15.0", - "path": "node_modules\\roaster\\node_modules\\cheerio\\index.js" - }, - { - "name": "CSSselect", - "version": "0.4.1", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\index.js" - }, - { - "name": "CSSwhat", - "version": "0.4.7", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\CSSwhat\\index.js" - }, - { - "name": "domutils", - "version": "1.4.3", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\index.js" - }, - { - "name": "domelementtype", - "version": "1.3.0", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\node_modules\\domelementtype\\index.js" - }, - { - "name": "entities", - "version": "1.0.0", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\index.js" - }, - { - "name": "htmlparser2", - "version": "3.7.3", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\index.js" - }, - { - "name": "domelementtype", - "version": "1.3.0", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domelementtype\\index.js" - }, - { - "name": "domhandler", - "version": "2.2.1", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\index.js" - }, - { - "name": "domutils", - "version": "1.5.1", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\index.js" - }, - { - "name": "dom-serializer", - "version": "0.1.0", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\index.js" - }, - { - "name": "domelementtype", - "version": "1.1.3", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\domelementtype\\index.js" - }, - { - "name": "entities", - "version": "1.1.1", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\index.js" - }, - { - "name": "readable-stream", - "version": "1.1.13", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\readable.js" - }, - { - "name": "core-util-is", - "version": "1.0.2", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\core-util-is\\lib\\util.js" - }, - { - "name": "inherits", - "version": "2.0.1", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\inherits.js" - }, - { - "name": "isarray", - "version": "0.0.1", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\index.js" - }, - { - "name": "string_decoder", - "version": "0.10.31", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\string_decoder\\index.js" - }, - { - "name": "lodash", - "version": "2.4.2", - "path": "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.js" - }, - { - "name": "emoji-images", - "version": "0.0.2", - "path": "node_modules\\roaster\\node_modules\\emoji-images\\emoji-images.js" - }, - { - "name": "marked", - "version": "0.3.1", - "path": "node_modules\\roaster\\node_modules\\marked\\lib\\marked.js" - }, - { - "name": "task-lists", - "version": "0.1.3", - "path": "node_modules\\roaster\\node_modules\\task-lists\\lib\\index.js" - } - ], - "extensions": { - ".coffee": [ - "lib\\npm-docs-view.coffee", - "lib\\npm-docs.coffee", - "node_modules\\roaster\\node_modules\\task-lists\\src\\index.coffee" - ], - ".js": [ - "node_modules\\open\\lib\\open.js", - "node_modules\\request\\dns-request.js", - "node_modules\\request\\index.js", - "node_modules\\request\\lib\\cookies.js", - "node_modules\\request\\lib\\copy.js", - "node_modules\\request\\lib\\debug.js", - "node_modules\\request\\lib\\getSafe.js", - "node_modules\\request\\lib\\optional.js", - "node_modules\\request\\node_modules\\aws-sign2\\index.js", - "node_modules\\request\\node_modules\\forever-agent\\index.js", - "node_modules\\request\\node_modules\\form-data\\lib\\form_data.js", - "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\lib\\async.js", - "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\support\\sync-package-managers.js", - "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\lib\\combined_stream.js", - "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\node_modules\\delayed-stream\\lib\\delayed_stream.js", - "node_modules\\request\\node_modules\\hawk\\example\\usage.js", - "node_modules\\request\\node_modules\\hawk\\index.js", - "node_modules\\request\\node_modules\\hawk\\lib\\browser.js", - "node_modules\\request\\node_modules\\hawk\\lib\\client.js", - "node_modules\\request\\node_modules\\hawk\\lib\\crypto.js", - "node_modules\\request\\node_modules\\hawk\\lib\\index.js", - "node_modules\\request\\node_modules\\hawk\\lib\\server.js", - "node_modules\\request\\node_modules\\hawk\\lib\\utils.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\index.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\lib\\index.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\index.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\lib\\index.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\index.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\lib\\escape.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\lib\\index.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\examples\\offset.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\examples\\time.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\index.js", - "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\lib\\index.js", - "node_modules\\request\\node_modules\\http-signature\\lib\\index.js", - "node_modules\\request\\node_modules\\http-signature\\lib\\parser.js", - "node_modules\\request\\node_modules\\http-signature\\lib\\signer.js", - "node_modules\\request\\node_modules\\http-signature\\lib\\util.js", - "node_modules\\request\\node_modules\\http-signature\\lib\\verify.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\errors.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\index.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\reader.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\types.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\ber\\writer.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\lib\\index.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\tst\\ber\\reader.test.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\tst\\ber\\writer.test.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\assert-plus\\assert.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\ctf.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\ctio.js", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\ctype.js", - "node_modules\\request\\node_modules\\json-stringify-safe\\stringify.js", - "node_modules\\request\\node_modules\\mime\\mime.js", - "node_modules\\request\\node_modules\\mime\\test.js", - "node_modules\\request\\node_modules\\node-uuid\\benchmark\\benchmark.js", - "node_modules\\request\\node_modules\\node-uuid\\uuid.js", - "node_modules\\request\\node_modules\\oauth-sign\\index.js", - "node_modules\\request\\node_modules\\oauth-sign\\test.js", - "node_modules\\request\\node_modules\\qs\\index.js", - "node_modules\\request\\node_modules\\tough-cookie\\lib\\cookie.js", - "node_modules\\request\\node_modules\\tough-cookie\\lib\\memstore.js", - "node_modules\\request\\node_modules\\tough-cookie\\lib\\pathMatch.js", - "node_modules\\request\\node_modules\\tough-cookie\\lib\\permuteDomain.js", - "node_modules\\request\\node_modules\\tough-cookie\\lib\\pubsuffix.js", - "node_modules\\request\\node_modules\\tough-cookie\\lib\\store.js", - "node_modules\\request\\node_modules\\tunnel-agent\\index.js", - "node_modules\\request\\request.js", - "node_modules\\roaster\\lib\\roaster.js", - "node_modules\\roaster\\node_modules\\cheerio\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\api\\attributes.js", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\api\\css.js", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\api\\manipulation.js", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\api\\traversing.js", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\cheerio.js", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\parse.js", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\render.js", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\static.js", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\utils.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\browser_functions.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\attributes.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\basefunctions.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\compile.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\general.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\nth-check.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\pseudos.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib\\sort.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\CSSwhat\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\helpers.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\legacy.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\manipulation.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\querying.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\stringify.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib\\traversal.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\node_modules\\domelementtype\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\lib\\decode.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\lib\\decode_codepoint.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\lib\\encode.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\CollectingHandler.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\FeedHandler.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\Parser.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\ProxyHandler.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\Stream.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\Tokenizer.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib\\WritableStream.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domelementtype\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\lib\\element.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\lib\\node.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\helpers.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\legacy.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\manipulation.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\querying.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\stringify.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\traversal.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\domelementtype\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\decode.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\decode_codepoint.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\encode.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\duplex.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_duplex.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_passthrough.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_readable.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_transform.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib\\_stream_writable.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\core-util-is\\lib\\util.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\core-util-is\\test.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\inherits.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\inherits_browser.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\test.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\build\\build.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\string_decoder\\index.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\passthrough.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\readable.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\transform.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\writable.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.compat.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.compat.min.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.min.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.underscore.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\dist\\lodash.underscore.min.js", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\lodash.js", - "node_modules\\roaster\\node_modules\\emoji-images\\build-pngs.js", - "node_modules\\roaster\\node_modules\\emoji-images\\build.js", - "node_modules\\roaster\\node_modules\\emoji-images\\emoji-images.js", - "node_modules\\roaster\\node_modules\\emoji-images\\scraper.js", - "node_modules\\roaster\\node_modules\\emoji-images\\template.js", - "node_modules\\roaster\\node_modules\\marked\\index.js", - "node_modules\\roaster\\node_modules\\marked\\lib\\marked.js", - "node_modules\\roaster\\node_modules\\task-lists\\lib\\index.js" - ], - ".json": [ - "node_modules\\open\\package.json", - "node_modules\\request\\node_modules\\aws-sign2\\package.json", - "node_modules\\request\\node_modules\\forever-agent\\package.json", - "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\bower.json", - "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\component.json", - "node_modules\\request\\node_modules\\form-data\\node_modules\\async\\package.json", - "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\node_modules\\delayed-stream\\package.json", - "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\package.json", - "node_modules\\request\\node_modules\\form-data\\package.json", - "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\package.json", - "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\package.json", - "node_modules\\request\\node_modules\\hawk\\node_modules\\hoek\\package.json", - "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\package.json", - "node_modules\\request\\node_modules\\hawk\\package.json", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\asn1\\package.json", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\assert-plus\\package.json", - "node_modules\\request\\node_modules\\http-signature\\node_modules\\ctype\\package.json", - "node_modules\\request\\node_modules\\http-signature\\package.json", - "node_modules\\request\\node_modules\\json-stringify-safe\\package.json", - "node_modules\\request\\node_modules\\mime\\package.json", - "node_modules\\request\\node_modules\\node-uuid\\bower.json", - "node_modules\\request\\node_modules\\node-uuid\\component.json", - "node_modules\\request\\node_modules\\node-uuid\\package.json", - "node_modules\\request\\node_modules\\oauth-sign\\package.json", - "node_modules\\request\\node_modules\\qs\\package.json", - "node_modules\\request\\node_modules\\tough-cookie\\package.json", - "node_modules\\request\\node_modules\\tunnel-agent\\package.json", - "node_modules\\request\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\CSSwhat\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\node_modules\\domelementtype\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\maps\\decode.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\maps\\entities.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\maps\\legacy.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\maps\\xml.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\entities\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domelementtype\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\domelementtype\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\maps\\decode.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\maps\\entities.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\maps\\legacy.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\maps\\xml.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\node_modules\\entities\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\core-util-is\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\inherits\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\component.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\isarray\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\node_modules\\string_decoder\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\lodash\\package.json", - "node_modules\\roaster\\node_modules\\cheerio\\package.json", - "node_modules\\roaster\\node_modules\\emoji-images\\json\\emoticons.json", - "node_modules\\roaster\\node_modules\\emoji-images\\json\\nature.json", - "node_modules\\roaster\\node_modules\\emoji-images\\json\\objects.json", - "node_modules\\roaster\\node_modules\\emoji-images\\json\\people.json", - "node_modules\\roaster\\node_modules\\emoji-images\\json\\places.json", - "node_modules\\roaster\\node_modules\\emoji-images\\json\\symbols.json", - "node_modules\\roaster\\node_modules\\emoji-images\\package.json", - "node_modules\\roaster\\node_modules\\marked\\component.json", - "node_modules\\roaster\\node_modules\\marked\\package.json", - "node_modules\\roaster\\node_modules\\task-lists\\package.json", - "node_modules\\roaster\\package.json", - "package.json" - ] - }, - "folders": [ - { - "paths": [ - "lib", - "", - "spec" - ], - "dependencies": { - "request": "~2.34.0", - "roaster": "~1.0.1", - "open": "0.0.4" - } - }, - { - "paths": [ - "node_modules\\request", - "node_modules\\request\\lib" - ], - "dependencies": { - "qs": "~0.6.0", - "json-stringify-safe": "~5.0.0", - "forever-agent": "~0.5.0", - "node-uuid": "~1.4.0", - "mime": "~1.2.9", - "tough-cookie": ">=0.12.0", - "form-data": "~0.1.0", - "tunnel-agent": "~0.3.0", - "http-signature": "~0.10.0", - "oauth-sign": "~0.3.0", - "hawk": "~1.0.0", - "aws-sign2": "~0.5.0" - } - }, - { - "paths": [ - "node_modules\\request\\node_modules\\form-data\\lib", - "node_modules\\request\\node_modules\\form-data" - ], - "dependencies": { - "combined-stream": "~0.0.4", - "mime": "~1.2.11", - "async": "~0.9.0" - } - }, - { - "paths": [ - "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\lib", - "node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream" - ], - "dependencies": { - "delayed-stream": "0.0.5" - } - }, - { - "paths": [ - "node_modules\\request\\node_modules\\hawk\\example", - "node_modules\\request\\node_modules\\hawk", - "node_modules\\request\\node_modules\\hawk\\lib", - "node_modules\\request\\node_modules\\hawk\\test" - ], - "dependencies": { - "hoek": "0.9.x", - "boom": "0.4.x", - "cryptiles": "0.2.x", - "sntp": "0.2.x" - } - }, - { - "paths": [ - "node_modules\\request\\node_modules\\hawk\\node_modules\\boom", - "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\lib", - "node_modules\\request\\node_modules\\hawk\\node_modules\\boom\\test" - ], - "dependencies": { - "hoek": "0.9.x" - } - }, - { - "paths": [ - "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles", - "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\lib", - "node_modules\\request\\node_modules\\hawk\\node_modules\\cryptiles\\test" - ], - "dependencies": { - "boom": "0.4.x" - } - }, - { - "paths": [ - "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\examples", - "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp", - "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\lib", - "node_modules\\request\\node_modules\\hawk\\node_modules\\sntp\\test" - ], - "dependencies": { - "hoek": "0.9.x" - } - }, - { - "paths": [ - "node_modules\\request\\node_modules\\http-signature\\lib", - "node_modules\\request\\node_modules\\http-signature" - ], - "dependencies": { - "assert-plus": "^0.1.5", - "asn1": "0.1.11", - "ctype": "0.5.3" - } - }, - { - "paths": [ - "node_modules\\roaster\\lib", - "node_modules\\roaster" - ], - "dependencies": { - "marked": "0.3.1", - "emoji-images": "0.0.2", - "task-lists": "0.1.3", - "cheerio": "0.15.0" - } - }, - { - "paths": [ - "node_modules\\roaster\\node_modules\\cheerio", - "node_modules\\roaster\\node_modules\\cheerio\\lib\\api", - "node_modules\\roaster\\node_modules\\cheerio\\lib", - "node_modules\\roaster\\node_modules\\cheerio\\test" - ], - "dependencies": { - "htmlparser2": "~3.7.0", - "entities": "~1.0.0", - "CSSselect": "~0.4.0", - "lodash": "~2.4.1" - } - }, - { - "paths": [ - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\lib", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\nwmatcher", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\qwery", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\sizzle\\data", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\sizzle", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\test\\tools" - ], - "dependencies": { - "CSSwhat": "0.4", - "domutils": "1.4" - } - }, - { - "paths": [ - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\lib", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\test", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\CSSselect\\node_modules\\domutils\\test\\tests" - ], - "dependencies": { - "domelementtype": "1" - } - }, - { - "paths": [ - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\lib", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\test", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\test\\Events", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\test\\Feeds", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\test\\Stream" - ], - "dependencies": { - "domhandler": "2.2", - "domutils": "1.5", - "domelementtype": "1", - "readable-stream": "1.1", - "entities": "1.0" - } - }, - { - "paths": [ - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\lib", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\test\\cases", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domhandler\\test" - ], - "dependencies": { - "domelementtype": "1" - } - }, - { - "paths": [ - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\lib", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\test", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\test\\tests" - ], - "dependencies": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - { - "paths": [ - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\domutils\\node_modules\\dom-serializer" - ], - "dependencies": { - "domelementtype": "~1.1.1", - "entities": "~1.1.1" - } - }, - { - "paths": [ - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream", - "node_modules\\roaster\\node_modules\\cheerio\\node_modules\\htmlparser2\\node_modules\\readable-stream\\lib" - ], - "dependencies": { - "core-util-is": "~1.0.0", - "isarray": "0.0.1", - "string_decoder": "~0.10.x", - "inherits": "~2.0.1" - } - }, - { - "paths": [ - "node_modules\\roaster\\node_modules\\task-lists\\lib", - "node_modules\\roaster\\node_modules\\task-lists", - "node_modules\\roaster\\node_modules\\task-lists\\src", - "node_modules\\roaster\\node_modules\\task-lists\\test" - ], - "dependencies": { - "cheerio": "~0.15.0" - } - } - ] + "roaster": "~1.0.1", + "open": "0.0.4" } } From fe84b8cbd096d8651866f442e18cb4ff5ca8be1a Mon Sep 17 00:00:00 2001 From: SkonTeam Date: Fri, 1 Apr 2016 13:16:41 +0100 Subject: [PATCH 3/5] Prepare 0.3.0 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 909289f..7085992 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "npm-docs", "main": "./lib/npm-docs", - "version": "0.2.0", + "version": "0.3.0", "private": true, "description": "Helpful information for node modules for the Atom text editor", "activationEvents": [ From 92135095134105774a7d04896689b631b9d16ef0 Mon Sep 17 00:00:00 2001 From: SkonTeam Date: Sat, 2 Apr 2016 01:30:27 +0100 Subject: [PATCH 4/5] Fixed forgotten event subscribtion. --- lib/npm-docs-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/npm-docs-view.coffee b/lib/npm-docs-view.coffee index d150892..f5713ea 100644 --- a/lib/npm-docs-view.coffee +++ b/lib/npm-docs-view.coffee @@ -28,7 +28,7 @@ class NpmDocsView extends ScrollView # Tear down any state and detach destroy: -> @off('core:move-up',this) - @off('core:move-up',this) + @off('core:move-down',this) getTitle: -> "npm-docs: #{@path}" From 5527b7d44470e13be936b47ab2d0c3db5444bfd4 Mon Sep 17 00:00:00 2001 From: SkonTeam Date: Sat, 2 Apr 2016 01:32:43 +0100 Subject: [PATCH 5/5] Prepare 0.3.1 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7085992..f3955c6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "npm-docs", "main": "./lib/npm-docs", - "version": "0.3.0", + "version": "0.3.1", "private": true, "description": "Helpful information for node modules for the Atom text editor", "activationEvents": [