├── .gitignore
├── .vscode
├── launch.json
├── settings.json
└── tasks.json
├── CHANGELOG.md
├── LICENSE.txt
├── README.md
├── extras
├── Clojure Warrior.icns
├── Clojure Warrior.iconset
│ ├── icon_128x128.png
│ ├── icon_128x128@2x.png
│ ├── icon_16x16.png
│ ├── icon_16x16@2x.png
│ ├── icon_256x256.png
│ ├── icon_256x256@2x.png
│ ├── icon_32x32.png
│ ├── icon_32x32@2x.png
│ ├── icon_512x512.png
│ └── icon_512x512@2x.png
├── icon.png
├── icon.sh
├── screenshot.png
├── test.clj
└── test.sh
├── nrepl_proxy.clj
├── package-lock.json
├── package.json
├── publish.sh
├── src
└── extension.ts
└── tsconfig.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | out
3 | *.code-workspace
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Launch Extension",
6 | "type": "extensionHost",
7 | "request": "launch",
8 | "runtimeExecutable": "${execPath}",
9 | "args": [
10 | "--disable-extensions",
11 | "--extensionDevelopmentPath=${workspaceRoot}",
12 | "${workspaceFolder}/extras"
13 | ],
14 | "stopOnEntry": false,
15 | "sourceMaps": true,
16 | "outFiles": [ "${workspaceRoot}/out/*.js" ],
17 | "preLaunchTask": "npm: watch"
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | }
--------------------------------------------------------------------------------
/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # 0.2.4 - July 12, 2019
2 |
3 | - Fixed trailing whitespace in comment, symbols with word comment in them (#15, #17)
4 |
5 | # 0.2.3 - July 10, 2019
6 |
7 | - Do not merge defaults for `commentFormStyle` and `ignoredFormStyle`
8 |
9 | # 0.2.2 - July 10, 2019
10 |
11 | - Comment decoration (#14 by @PEZ)
12 |
13 | # 0.2.1 - July 4, 2019
14 |
15 | - Removed `configurationDefault` as it was conflicting with Calva (#13)
16 |
17 | # 0.2.0
18 |
19 | - Option to disable rainbow brackets `clojureWarrior.enableBracketColors` (#12)
20 | - Handle setting `clojureWarrior.bracketColors` to empty array (#12)
21 | - Handle config changes when done from Setting GUI
22 | - Disable default `editor.matchBrackets` for Clojure files
23 |
24 | # 0.1.8
25 |
26 | - Highlight and match compound brackets: `#()`, `#{}`, `#?()`, `#?@()` (#10, thx @maratynsky)
27 |
28 | # 0.1.7
29 |
30 | - Show mismatched brackets on scrollbar (#7, #8)
31 |
32 | # 0.1.6
33 |
34 | - Avoid bracket styles bleeding into text typed next to them
35 |
36 | # 0.1.5
37 |
38 | - Don’t show matched brackets inside selection (#4)
39 | - Do not alter `editor.matchBrackets` in config dynamically (#3)
40 | - Showing matching bracket immediately since it’s fast (#5)
41 | - Jump to match should scroll if needed (#2)
42 |
43 | # 0.1.4
44 |
45 | - More distinct rainbow colors by default
46 | - Default settings support both dark and light themes
47 |
48 | # 0.1.3
49 |
50 | - New command: `clojureWarrior.jumpToMatchingBracket`
51 | - New command: `clojureWarrior.selectToMatchingBracket`
52 | - `editor.matchBrackets` is set to false only for Clojure editors
53 | - `matchPairs` is scheduled asynchronously not to slow down text editing
54 |
55 | # 0.1.2
56 |
57 | - Highlight bracket pairs
58 | - Added config param: `"clojureWarrior.matchedBracketStyle": {"backgroundColor": "#E0E0E0"}`
59 |
60 | # 0.1.1
61 |
62 | Added configuration parameters:
63 | - `"clojureWarrior.bracketColors": ["#000", "#999", ...]`
64 | - `"clojureWarrior.cycleBracketColors": true`
65 | - `"clojureWarrior.misplacedBracketStyle": { "border": "2px solid #c33" }`
66 |
67 | # 0.1.0
68 |
69 | - Initial release
70 | - Rainbow Brackets
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017 Nikita Prokopov
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## PLEASE NOTE
2 |
3 | **Clojure Warrior is now part of [Calva](https://github.com/BetterThanTomorrow/calva). This repo has been archived.**
4 |
5 | # Clojure Warrior
6 |
7 |
8 |
9 | Visual Studio Code extension for Clojure development
10 |
11 | ## Features
12 |
13 | Rainbow brackets:
14 |
15 | - Chooses bracket color based on nesting level
16 | - Distinct bracket colors, plays well with [Alabaster theme](https://marketplace.visualstudio.com/items?itemName=tonsky.theme-alabaster)
17 | - Properly handles strings, comments and escaped characters
18 | - Highlights misplaced brackets
19 |
20 | Bracket pair matching:
21 |
22 | - Higlights corresponding bracket pair to the one under the cursor
23 | - Considers bracket directon and cursor position relative to it
24 | - Only highlights pair when cursor is standing _outside_ the expression (right after the closed bracket or right before opening one)
25 |
26 | Jump to matching bracket commands:
27 |
28 | - Jump to corresponding bracket pair (same rules as in bracket pair matching): `clojureWarrior.jumpToMatchingBracket`
29 | - Select a region between cursor and matching bracket (including brackets): `clojureWarrior.selectToMatchingBracket`
30 |
31 | 
32 |
33 | ## Configuration
34 |
35 | | Key | Meaning | Example |
36 | | --- | ------- | ------- |
37 | | `"clojureWarrior.enableBracketColors"` | Enable rainbow colors | `true` |
38 | | `"clojureWarrior.bracketColors"` | Which colors to use | `["#000", "#999"]` |
39 | | `"clojureWarrior.cycleBracketColors"` | Whether same colors should be reused for deeply nested brackets | `true` |
40 | | `"clojureWarrior.misplacedBracketStyle"` | Style of misplaced bracket | `{ "border": "2px solid #c33" }` |
41 | | `"clojureWarrior.matchedBracketStyle"` | Style of bracket pair highlight | `{"backgroundColor": "#E0E0E0"}` |
42 | | `"clojureWarrior.commentFormStyle"` | Style of `(comment ...)` form | `{"textDecoration": "none; opacity: 0.5"}` |
43 | | `"clojureWarrior.ignoredFormStyle"` | Style of `#_...` form | `{"textDecoration": "none; opacity: 0.5"}` |
44 |
45 | To disable VS Code default bracket matching for Clojure files, add this to `settings.json`:
46 |
47 | ```
48 | "[clojure]": {
49 | "editor.matchBrackets": false
50 | }
51 | ```
52 |
53 | ## Installation
54 |
55 | 1. Go to `Extensions`
56 | 2. Search for `Clojure Warrior`
57 | 3. Install
58 | 4. Restart Visual Studio Code (or click `Reload window`)
59 | 5. Open a Clojure/ClojureScript/EDN file
60 |
61 | ## Workign on Clojure Warrior
62 |
63 | Compiling:
64 |
65 | ```
66 | cd clojure-warrior
67 | npm install
68 | npm run watch
69 | ```
70 |
71 | Installing dev version locally:
72 |
73 | ```
74 | ln -s `pwd` ~/.vscode/extensions/tonsky.clojure-warrior-0.2.0
75 | ```
76 |
77 | Publishing:
78 |
79 | ```
80 | vsce publish
81 | ```
82 |
83 | ## License
84 |
85 | [MIT License](https://github.com/tonsky/clojure-warrior/blob/master/./LICENSE.txt)
86 |
--------------------------------------------------------------------------------
/extras/Clojure Warrior.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.icns
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_128x128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_128x128.png
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_128x128@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_128x128@2x.png
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_16x16.png
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_16x16@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_16x16@2x.png
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_256x256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_256x256.png
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_256x256@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_256x256@2x.png
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_32x32.png
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_32x32@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_32x32@2x.png
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_512x512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_512x512.png
--------------------------------------------------------------------------------
/extras/Clojure Warrior.iconset/icon_512x512@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/Clojure Warrior.iconset/icon_512x512@2x.png
--------------------------------------------------------------------------------
/extras/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/icon.png
--------------------------------------------------------------------------------
/extras/icon.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -ex
2 |
3 | iconutil -c icns Clojure\ Warrior.iconset
4 |
--------------------------------------------------------------------------------
/extras/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tonsky/clojure-warrior/52fc842b72cb39ef7d15325fe422647688bdc560/extras/screenshot.png
--------------------------------------------------------------------------------
/extras/test.clj:
--------------------------------------------------------------------------------
1 | ;; Clojure Warrior
2 |
3 | (()))
4 | (((((((((((((((((((())))))))))))))))))))
5 | [[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]
6 | {{{{{{{{{{{{{{{{{{{{}}}}}}}}}}}}}}}}}}}}
7 | ((()))[[[]]]
8 | ([{)]}
9 | ())))
10 | []]]]
11 | {}}}}
12 | )
13 | ("--)--")
14 | ("--)--
15 | --)--")
16 | (;;---)
17 | )
18 | (\)\()
19 | ("--\"--)--")
20 | ;; ((()))
21 | ;; ())) "a[{(]})bc"
22 | ;; \
23 | "()"
24 | ;; \
25 | ;;
26 | (((((())))))
27 | ([ { }()[]] )
28 |
29 |
30 | (
31 | #( )
32 | #{ }
33 | #?( )
34 | #?@( )
35 | #_( )
36 | )
37 |
38 | (comment
39 | (comment (foo bar)))
40 | (defn foo
41 | (let [x "y"]
42 | {:foo "bar"
43 | :bar (comment (fn [x]
44 | (let [foo :bar])
45 | (str foo)))
46 | :baz x}))
47 | (comment
48 | (foo 2)
49 | (Math/abs -1)
50 | (range 10)
51 | (println "I ❤️Clojure")
52 | ([{} () []]))
53 | [comment]
54 | (foo) comment (bar)
55 | "(comment foo)"
56 | foo(comment)bar
57 | (def contains-comment (go-fish))
58 | ( comment )
59 | (
60 | comment "[foo]")
61 | (comment
62 | (Math/abs -1)
63 | (range 10)
64 | (println "I ❤️Clojure")
65 | ([{} () []]))
66 | ( comment
67 | foo)
68 | (comment foo (comment bar))
69 | (foo (comment ({["(comment)"]})) ([{"(comment)"}]))
70 |
71 | #_foo bar
72 | #_ foo bar
73 | #_,foo,bar
74 | #_
75 | foo bar
76 | #_
77 | foo
78 | bar
79 | #_(:bar [#{foo}])
80 | ([{#_"foo"}])
81 | [:a
82 | #_
83 | [:b
84 | [:c {:d :e}]]
85 | [:b
86 | [:c {:d :e}]]]
87 | (comment
88 | (foo #_"bar" baz))
89 | #_{:foo "foo"
90 | :bar (comment [["bar"]])}
91 | #_^{:foo foo} ^{:foo foo}
92 | #_@foo @foo
93 | #_@(foo bar) @(foo bar)
94 | #_'(foo bar) '(foo bar)
95 | #_`(foo bar) `(foo bar)
96 | #_~(foo bar) ~(foo bar)
97 | #_'foo 'foo
98 | #_#foo #foo
99 | #_@foo @foo
100 | #_~foo ~foo
101 | #_#"foo\sbar" #"foo\sbar"
--------------------------------------------------------------------------------
/extras/test.sh:
--------------------------------------------------------------------------------
1 | { :keys [{1 2 ")" 3}] }
--------------------------------------------------------------------------------
/nrepl_proxy.clj:
--------------------------------------------------------------------------------
1 | (ns ^{:doc "A simple nREPL proxy server that logs all communication between nREPL server and client.
2 |
3 | Use:
4 |
5 | clj nrepl_proxy.clj
6 |
7 | All packets sent to/read from would be
8 |
9 | 1. Logged on screen
10 | 2. Transparently forwarder to "}
11 | nrepl-proxy
12 | (:require
13 | [clojure.string :as str])
14 | (:import
15 | [java.io InputStream PushbackInputStream OutputStream BufferedOutputStream]
16 | [java.net ServerSocket Socket]
17 | [java.util Arrays]))
18 |
19 |
20 | (set! *warn-on-reflection* true)
21 |
22 |
23 | (defn read-until [^InputStream in ch]
24 | (loop [buf ^bytes (make-array Byte/TYPE 1024)
25 | len 0]
26 | (let [b (.read in)]
27 | (cond
28 | (< b 0) ;; EOS
29 | (String. buf 0 len)
30 |
31 | (= (int ch) b) ;; FOUND
32 | (String. buf 0 len)
33 |
34 | :else ;; KEEP READING
35 | (if (< len (alength buf))
36 | (do
37 | (aset buf len (byte b))
38 | (recur buf (inc len)))
39 | (let [buf' (Arrays/copyOf buf (* len 2))]
40 | (aset buf' len (byte b))
41 | (recur buf' (inc len))))))))
42 |
43 |
44 | (defn read-exactly [^InputStream in ^long len]
45 | (loop [buf ^bytes (make-array Byte/TYPE len)
46 | pos 0]
47 | (let [read (.read in buf pos (- len pos))]
48 | (cond
49 | (<= read 0)
50 | (String. buf 0 pos)
51 |
52 | (>= (+ pos read) len)
53 | (String. buf 0 len)
54 |
55 | :else
56 | (recur buf (+ pos read))))))
57 |
58 |
59 | (defn bencode-read [^PushbackInputStream in]
60 | (let [b (.read in)]
61 | (cond
62 | (< b 0)
63 | nil
64 |
65 | ;; int "i...e"
66 | (= \i (char b))
67 | (Long/parseLong (read-until in \e))
68 |
69 | ;; string "[0-9]+:..."
70 | (<= (byte \0) b (byte \9))
71 | (let [_ (.unread in b)
72 | len (Long/parseLong (read-until in \:))]
73 | (read-exactly in len))
74 |
75 | ;; list "l...e"
76 | (= \l (char b))
77 | (loop [acc []]
78 | (let [e (.read in)]
79 | (cond
80 | (< e 0) acc
81 | (= \e (char e)) acc
82 | :else
83 | (let [_ (.unread in e)
84 | v (bencode-read in)]
85 | (recur (conj acc v))))))
86 |
87 | ;; dict "d...e"
88 | (= \d (char b))
89 | (loop [acc {}]
90 | (let [e (.read in)]
91 | (cond
92 | (< e 0) acc
93 | (= \e (char e)) acc
94 | :else
95 | (let [_ (.unread in e)
96 | k (bencode-read in)
97 | v (bencode-read in)]
98 | (recur (assoc acc k v)))))))))
99 |
100 |
101 | (defn bencode-write [^OutputStream out obj]
102 | (cond
103 | (map? obj)
104 | (do
105 | (.write out (int \d))
106 | (doseq [[k v] obj]
107 | (bencode-write out k)
108 | (bencode-write out v))
109 | (.write out (int \e)))
110 |
111 | (sequential? obj)
112 | (do
113 | (.write out (int \l))
114 | (doseq [v obj]
115 | (bencode-write out v))
116 | (.write out (int \e)))
117 |
118 | (string? obj)
119 | (let [bytes (.getBytes ^String obj "UTF-8")]
120 | (.write out (.getBytes (str (alength bytes))))
121 | (.write out (int \:))
122 | (.write out bytes))
123 |
124 | (int? obj)
125 | (do
126 | (.write out (int \i))
127 | (.write out (.getBytes (str obj)))
128 | (.write out (int \e)))))
129 |
130 |
131 | (defn print-op [dir m]
132 | (println dir "{"
133 | (str/join "\n "
134 | (for [[k v] m]
135 | (str k " " (pr-str v))))
136 | "}"))
137 |
138 |
139 | (defmacro thread [& body]
140 | `(doto
141 | (Thread. (fn [] (try ~@body (catch Exception e# (.printStackTrace e#)))))
142 | (.start)))
143 |
144 |
145 | (defn copy! [^String direction ^InputStream in ^OutputStream out]
146 | (try
147 | (let [in (PushbackInputStream. in 1)
148 | out (BufferedOutputStream. out 10240)]
149 | (loop []
150 | (when-some [msg (bencode-read in)]
151 | (print-op direction msg)
152 | (bencode-write out msg)
153 | (.flush out)
154 | (recur))))
155 | (println direction "CLOSE")
156 | (catch Exception e
157 | (if (= "Socket closed" (.getMessage e))
158 | (println direction "CLOSED")
159 | (throw e)))))
160 |
161 |
162 | (defn proxy! [^Socket client-socket ^long app-port]
163 | (let [app-socket (Socket. "localhost" app-port)
164 | client> (.getInputStream client-socket)
165 | client< (.getOutputStream client-socket)
166 | app (.getOutputStream app-socket)]
168 | (thread
169 | (copy! ">" client> >app)
170 | (.close app-socket))
171 | (thread
172 | (copy! "<" ACCEPT" (.getPort socket))
182 | (thread
183 | (proxy! socket app-port)))
184 | (recur))))
185 |
186 |
187 | (defn -main [& [proxy-port app-port]]
188 | (when (or (nil? proxy-port)
189 | (nil? app-port)
190 | (not (re-matches #"\d+" proxy-port))
191 | (not (re-matches #"\d+" app-port)))
192 | (println "Use `clj nrepl_proxy.clj `")
193 | (System/exit 1))
194 | (start! (Long/parseLong proxy-port) (Long/parseLong app-port)))
195 |
196 |
197 | (apply -main *command-line-args*)
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "clojure-warrior",
3 | "version": "0.2.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "@types/node": {
8 | "version": "7.0.4",
9 | "resolved": "https://registry.npmjs.org/@types/node/-/node-7.0.4.tgz",
10 | "integrity": "sha1-mqvBNZed7TgzJXSfUIiUxmKUjIs="
11 | },
12 | "agent-base": {
13 | "version": "4.3.0",
14 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz",
15 | "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==",
16 | "dev": true,
17 | "requires": {
18 | "es6-promisify": "^5.0.0"
19 | }
20 | },
21 | "ajv": {
22 | "version": "6.10.0",
23 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz",
24 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==",
25 | "dev": true,
26 | "requires": {
27 | "fast-deep-equal": "^2.0.1",
28 | "fast-json-stable-stringify": "^2.0.0",
29 | "json-schema-traverse": "^0.4.1",
30 | "uri-js": "^4.2.2"
31 | }
32 | },
33 | "argparse": {
34 | "version": "1.0.10",
35 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
36 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
37 | "requires": {
38 | "sprintf-js": "~1.0.2"
39 | }
40 | },
41 | "asn1": {
42 | "version": "0.2.4",
43 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
44 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
45 | "dev": true,
46 | "requires": {
47 | "safer-buffer": "~2.1.0"
48 | }
49 | },
50 | "assert-plus": {
51 | "version": "1.0.0",
52 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
53 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
54 | "dev": true
55 | },
56 | "asynckit": {
57 | "version": "0.4.0",
58 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
59 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
60 | "dev": true
61 | },
62 | "aws-sign2": {
63 | "version": "0.7.0",
64 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
65 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
66 | "dev": true
67 | },
68 | "aws4": {
69 | "version": "1.8.0",
70 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
71 | "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==",
72 | "dev": true
73 | },
74 | "azure-devops-node-api": {
75 | "version": "7.2.0",
76 | "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-7.2.0.tgz",
77 | "integrity": "sha512-pMfGJ6gAQ7LRKTHgiRF+8iaUUeGAI0c8puLaqHLc7B8AR7W6GJLozK9RFeUHFjEGybC9/EB3r67WPd7e46zQ8w==",
78 | "requires": {
79 | "os": "0.1.1",
80 | "tunnel": "0.0.4",
81 | "typed-rest-client": "1.2.0",
82 | "underscore": "1.8.3"
83 | }
84 | },
85 | "balanced-match": {
86 | "version": "1.0.0",
87 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
88 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
89 | },
90 | "bcrypt-pbkdf": {
91 | "version": "1.0.2",
92 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
93 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
94 | "dev": true,
95 | "requires": {
96 | "tweetnacl": "^0.14.3"
97 | }
98 | },
99 | "boolbase": {
100 | "version": "1.0.0",
101 | "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
102 | "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24="
103 | },
104 | "brace-expansion": {
105 | "version": "1.1.8",
106 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
107 | "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=",
108 | "requires": {
109 | "balanced-match": "^1.0.0",
110 | "concat-map": "0.0.1"
111 | }
112 | },
113 | "browser-stdout": {
114 | "version": "1.3.1",
115 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
116 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
117 | "dev": true
118 | },
119 | "buffer-crc32": {
120 | "version": "0.2.13",
121 | "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
122 | "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI="
123 | },
124 | "buffer-from": {
125 | "version": "1.1.1",
126 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
127 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
128 | "dev": true
129 | },
130 | "caseless": {
131 | "version": "0.12.0",
132 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
133 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
134 | "dev": true
135 | },
136 | "cheerio": {
137 | "version": "1.0.0-rc.3",
138 | "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.3.tgz",
139 | "integrity": "sha512-0td5ijfUPuubwLUu0OBoe98gZj8C/AA+RW3v67GPlGOrvxWjZmBXiBCRU+I8VEiNyJzjth40POfHiz2RB3gImA==",
140 | "requires": {
141 | "css-select": "~1.2.0",
142 | "dom-serializer": "~0.1.1",
143 | "entities": "~1.1.1",
144 | "htmlparser2": "^3.9.1",
145 | "lodash": "^4.15.0",
146 | "parse5": "^3.0.1"
147 | }
148 | },
149 | "color-convert": {
150 | "version": "1.9.3",
151 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
152 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
153 | "requires": {
154 | "color-name": "1.1.3"
155 | }
156 | },
157 | "color-name": {
158 | "version": "1.1.3",
159 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
160 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
161 | },
162 | "combined-stream": {
163 | "version": "1.0.8",
164 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
165 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
166 | "dev": true,
167 | "requires": {
168 | "delayed-stream": "~1.0.0"
169 | }
170 | },
171 | "commander": {
172 | "version": "2.12.2",
173 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.12.2.tgz",
174 | "integrity": "sha512-BFnaq5ZOGcDN7FlrtBT4xxkgIToalIIxwjxLWVJ8bGTpe1LroqMiqQXdA7ygc7CRvaYS+9zfPGFnJqFSayx+AA=="
175 | },
176 | "concat-map": {
177 | "version": "0.0.1",
178 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
179 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
180 | },
181 | "core-util-is": {
182 | "version": "1.0.2",
183 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
184 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
185 | "dev": true
186 | },
187 | "css-select": {
188 | "version": "1.2.0",
189 | "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz",
190 | "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=",
191 | "requires": {
192 | "boolbase": "~1.0.0",
193 | "css-what": "2.1",
194 | "domutils": "1.5.1",
195 | "nth-check": "~1.0.1"
196 | }
197 | },
198 | "css-what": {
199 | "version": "2.1.3",
200 | "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz",
201 | "integrity": "sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg=="
202 | },
203 | "dashdash": {
204 | "version": "1.14.1",
205 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
206 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
207 | "dev": true,
208 | "requires": {
209 | "assert-plus": "^1.0.0"
210 | }
211 | },
212 | "debug": {
213 | "version": "3.1.0",
214 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
215 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
216 | "dev": true,
217 | "requires": {
218 | "ms": "2.0.0"
219 | }
220 | },
221 | "delayed-stream": {
222 | "version": "1.0.0",
223 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
224 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
225 | "dev": true
226 | },
227 | "denodeify": {
228 | "version": "1.2.1",
229 | "resolved": "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz",
230 | "integrity": "sha1-OjYof1A05pnnV3kBBSwubJQlFjE="
231 | },
232 | "didyoumean": {
233 | "version": "1.2.1",
234 | "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.1.tgz",
235 | "integrity": "sha1-6S7f2tplN9SE1zwBcv0eugxJdv8="
236 | },
237 | "diff": {
238 | "version": "3.5.0",
239 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz",
240 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==",
241 | "dev": true
242 | },
243 | "dom-serializer": {
244 | "version": "0.1.1",
245 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz",
246 | "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==",
247 | "requires": {
248 | "domelementtype": "^1.3.0",
249 | "entities": "^1.1.1"
250 | }
251 | },
252 | "domelementtype": {
253 | "version": "1.3.1",
254 | "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz",
255 | "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w=="
256 | },
257 | "domhandler": {
258 | "version": "2.4.2",
259 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz",
260 | "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==",
261 | "requires": {
262 | "domelementtype": "1"
263 | }
264 | },
265 | "domutils": {
266 | "version": "1.5.1",
267 | "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz",
268 | "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=",
269 | "requires": {
270 | "dom-serializer": "0",
271 | "domelementtype": "1"
272 | }
273 | },
274 | "ecc-jsbn": {
275 | "version": "0.1.2",
276 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
277 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
278 | "dev": true,
279 | "requires": {
280 | "jsbn": "~0.1.0",
281 | "safer-buffer": "^2.1.0"
282 | }
283 | },
284 | "entities": {
285 | "version": "1.1.2",
286 | "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz",
287 | "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w=="
288 | },
289 | "es6-promise": {
290 | "version": "4.2.8",
291 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
292 | "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==",
293 | "dev": true
294 | },
295 | "es6-promisify": {
296 | "version": "5.0.0",
297 | "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz",
298 | "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=",
299 | "dev": true,
300 | "requires": {
301 | "es6-promise": "^4.0.3"
302 | }
303 | },
304 | "escape-string-regexp": {
305 | "version": "1.0.5",
306 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
307 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
308 | },
309 | "extend": {
310 | "version": "3.0.2",
311 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
312 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
313 | "dev": true
314 | },
315 | "extsprintf": {
316 | "version": "1.3.0",
317 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
318 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
319 | "dev": true
320 | },
321 | "fast-deep-equal": {
322 | "version": "2.0.1",
323 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
324 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=",
325 | "dev": true
326 | },
327 | "fast-json-stable-stringify": {
328 | "version": "2.0.0",
329 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
330 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=",
331 | "dev": true
332 | },
333 | "fd-slicer": {
334 | "version": "1.0.1",
335 | "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz",
336 | "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=",
337 | "requires": {
338 | "pend": "~1.2.0"
339 | }
340 | },
341 | "forever-agent": {
342 | "version": "0.6.1",
343 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
344 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
345 | "dev": true
346 | },
347 | "form-data": {
348 | "version": "2.3.3",
349 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
350 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
351 | "dev": true,
352 | "requires": {
353 | "asynckit": "^0.4.0",
354 | "combined-stream": "^1.0.6",
355 | "mime-types": "^2.1.12"
356 | }
357 | },
358 | "fs.realpath": {
359 | "version": "1.0.0",
360 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
361 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
362 | },
363 | "getpass": {
364 | "version": "0.1.7",
365 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
366 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
367 | "dev": true,
368 | "requires": {
369 | "assert-plus": "^1.0.0"
370 | }
371 | },
372 | "glob": {
373 | "version": "7.1.2",
374 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
375 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
376 | "requires": {
377 | "fs.realpath": "^1.0.0",
378 | "inflight": "^1.0.4",
379 | "inherits": "2",
380 | "minimatch": "^3.0.4",
381 | "once": "^1.3.0",
382 | "path-is-absolute": "^1.0.0"
383 | }
384 | },
385 | "growl": {
386 | "version": "1.10.5",
387 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz",
388 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==",
389 | "dev": true
390 | },
391 | "har-schema": {
392 | "version": "2.0.0",
393 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
394 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=",
395 | "dev": true
396 | },
397 | "har-validator": {
398 | "version": "5.1.3",
399 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
400 | "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
401 | "dev": true,
402 | "requires": {
403 | "ajv": "^6.5.5",
404 | "har-schema": "^2.0.0"
405 | }
406 | },
407 | "has-flag": {
408 | "version": "3.0.0",
409 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
410 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
411 | "dev": true
412 | },
413 | "he": {
414 | "version": "1.1.1",
415 | "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz",
416 | "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=",
417 | "dev": true
418 | },
419 | "htmlparser2": {
420 | "version": "3.10.1",
421 | "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz",
422 | "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==",
423 | "requires": {
424 | "domelementtype": "^1.3.1",
425 | "domhandler": "^2.3.0",
426 | "domutils": "^1.5.1",
427 | "entities": "^1.1.1",
428 | "inherits": "^2.0.1",
429 | "readable-stream": "^3.1.1"
430 | },
431 | "dependencies": {
432 | "readable-stream": {
433 | "version": "3.4.0",
434 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz",
435 | "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==",
436 | "requires": {
437 | "inherits": "^2.0.3",
438 | "string_decoder": "^1.1.1",
439 | "util-deprecate": "^1.0.1"
440 | }
441 | },
442 | "string_decoder": {
443 | "version": "1.2.0",
444 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz",
445 | "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==",
446 | "requires": {
447 | "safe-buffer": "~5.1.0"
448 | }
449 | }
450 | }
451 | },
452 | "http-proxy-agent": {
453 | "version": "2.1.0",
454 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz",
455 | "integrity": "sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==",
456 | "dev": true,
457 | "requires": {
458 | "agent-base": "4",
459 | "debug": "3.1.0"
460 | }
461 | },
462 | "http-signature": {
463 | "version": "1.2.0",
464 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
465 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
466 | "dev": true,
467 | "requires": {
468 | "assert-plus": "^1.0.0",
469 | "jsprim": "^1.2.2",
470 | "sshpk": "^1.7.0"
471 | }
472 | },
473 | "https-proxy-agent": {
474 | "version": "2.2.1",
475 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz",
476 | "integrity": "sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ==",
477 | "dev": true,
478 | "requires": {
479 | "agent-base": "^4.1.0",
480 | "debug": "^3.1.0"
481 | }
482 | },
483 | "inflight": {
484 | "version": "1.0.6",
485 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
486 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
487 | "requires": {
488 | "once": "^1.3.0",
489 | "wrappy": "1"
490 | }
491 | },
492 | "inherits": {
493 | "version": "2.0.3",
494 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
495 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
496 | },
497 | "is-typedarray": {
498 | "version": "1.0.0",
499 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
500 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
501 | "dev": true
502 | },
503 | "isstream": {
504 | "version": "0.1.2",
505 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
506 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
507 | "dev": true
508 | },
509 | "jsbn": {
510 | "version": "0.1.1",
511 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
512 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
513 | "dev": true
514 | },
515 | "json-schema": {
516 | "version": "0.2.3",
517 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
518 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
519 | "dev": true
520 | },
521 | "json-schema-traverse": {
522 | "version": "0.4.1",
523 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
524 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
525 | "dev": true
526 | },
527 | "json-stringify-safe": {
528 | "version": "5.0.1",
529 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
530 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
531 | "dev": true
532 | },
533 | "jsprim": {
534 | "version": "1.4.1",
535 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
536 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
537 | "dev": true,
538 | "requires": {
539 | "assert-plus": "1.0.0",
540 | "extsprintf": "1.3.0",
541 | "json-schema": "0.2.3",
542 | "verror": "1.10.0"
543 | }
544 | },
545 | "linkify-it": {
546 | "version": "2.1.0",
547 | "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.1.0.tgz",
548 | "integrity": "sha512-4REs8/062kV2DSHxNfq5183zrqXMl7WP0WzABH9IeJI+NLm429FgE1PDecltYfnOoFDFlZGh2T8PfZn0r+GTRg==",
549 | "requires": {
550 | "uc.micro": "^1.0.1"
551 | }
552 | },
553 | "lodash": {
554 | "version": "4.17.11",
555 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
556 | "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
557 | },
558 | "lodash.isequal": {
559 | "version": "4.5.0",
560 | "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
561 | "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA="
562 | },
563 | "markdown-it": {
564 | "version": "8.4.2",
565 | "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-8.4.2.tgz",
566 | "integrity": "sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==",
567 | "requires": {
568 | "argparse": "^1.0.7",
569 | "entities": "~1.1.1",
570 | "linkify-it": "^2.0.0",
571 | "mdurl": "^1.0.1",
572 | "uc.micro": "^1.0.5"
573 | }
574 | },
575 | "mdurl": {
576 | "version": "1.0.1",
577 | "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz",
578 | "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4="
579 | },
580 | "mime": {
581 | "version": "1.6.0",
582 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
583 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
584 | },
585 | "mime-db": {
586 | "version": "1.40.0",
587 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz",
588 | "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==",
589 | "dev": true
590 | },
591 | "mime-types": {
592 | "version": "2.1.24",
593 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz",
594 | "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==",
595 | "dev": true,
596 | "requires": {
597 | "mime-db": "1.40.0"
598 | }
599 | },
600 | "minimatch": {
601 | "version": "3.0.4",
602 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
603 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
604 | "requires": {
605 | "brace-expansion": "^1.1.7"
606 | }
607 | },
608 | "minimist": {
609 | "version": "0.0.8",
610 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
611 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
612 | "dev": true
613 | },
614 | "mkdirp": {
615 | "version": "0.5.1",
616 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
617 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
618 | "dev": true,
619 | "requires": {
620 | "minimist": "0.0.8"
621 | }
622 | },
623 | "mocha": {
624 | "version": "5.2.0",
625 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz",
626 | "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==",
627 | "dev": true,
628 | "requires": {
629 | "browser-stdout": "1.3.1",
630 | "commander": "2.15.1",
631 | "debug": "3.1.0",
632 | "diff": "3.5.0",
633 | "escape-string-regexp": "1.0.5",
634 | "glob": "7.1.2",
635 | "growl": "1.10.5",
636 | "he": "1.1.1",
637 | "minimatch": "3.0.4",
638 | "mkdirp": "0.5.1",
639 | "supports-color": "5.4.0"
640 | },
641 | "dependencies": {
642 | "commander": {
643 | "version": "2.15.1",
644 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz",
645 | "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==",
646 | "dev": true
647 | }
648 | }
649 | },
650 | "ms": {
651 | "version": "2.0.0",
652 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
653 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
654 | "dev": true
655 | },
656 | "mute-stream": {
657 | "version": "0.0.8",
658 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",
659 | "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA=="
660 | },
661 | "nth-check": {
662 | "version": "1.0.2",
663 | "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz",
664 | "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==",
665 | "requires": {
666 | "boolbase": "~1.0.0"
667 | }
668 | },
669 | "oauth-sign": {
670 | "version": "0.9.0",
671 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
672 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==",
673 | "dev": true
674 | },
675 | "once": {
676 | "version": "1.4.0",
677 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
678 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
679 | "requires": {
680 | "wrappy": "1"
681 | }
682 | },
683 | "os": {
684 | "version": "0.1.1",
685 | "resolved": "https://registry.npmjs.org/os/-/os-0.1.1.tgz",
686 | "integrity": "sha1-IIhF6J4ZOtTZcUdLk5R3NqVtE/M="
687 | },
688 | "os-homedir": {
689 | "version": "1.0.2",
690 | "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
691 | "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M="
692 | },
693 | "os-tmpdir": {
694 | "version": "1.0.2",
695 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
696 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
697 | },
698 | "osenv": {
699 | "version": "0.1.5",
700 | "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
701 | "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
702 | "requires": {
703 | "os-homedir": "^1.0.0",
704 | "os-tmpdir": "^1.0.0"
705 | }
706 | },
707 | "parse-semver": {
708 | "version": "1.1.1",
709 | "resolved": "https://registry.npmjs.org/parse-semver/-/parse-semver-1.1.1.tgz",
710 | "integrity": "sha1-mkr9bfBj3Egm+T+6SpnPIj9mbLg=",
711 | "requires": {
712 | "semver": "^5.1.0"
713 | }
714 | },
715 | "parse5": {
716 | "version": "3.0.3",
717 | "resolved": "https://registry.npmjs.org/parse5/-/parse5-3.0.3.tgz",
718 | "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==",
719 | "requires": {
720 | "@types/node": "*"
721 | }
722 | },
723 | "path-is-absolute": {
724 | "version": "1.0.1",
725 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
726 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
727 | },
728 | "pend": {
729 | "version": "1.2.0",
730 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
731 | "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA="
732 | },
733 | "performance-now": {
734 | "version": "2.1.0",
735 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
736 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
737 | "dev": true
738 | },
739 | "psl": {
740 | "version": "1.1.33",
741 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.33.tgz",
742 | "integrity": "sha512-LTDP2uSrsc7XCb5lO7A8BI1qYxRe/8EqlRvMeEl6rsnYAqDOl8xHR+8lSAIVfrNaSAlTPTNOCgNjWcoUL3AZsw==",
743 | "dev": true
744 | },
745 | "punycode": {
746 | "version": "2.1.1",
747 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
748 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
749 | "dev": true
750 | },
751 | "qs": {
752 | "version": "6.5.2",
753 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
754 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==",
755 | "dev": true
756 | },
757 | "querystringify": {
758 | "version": "2.1.1",
759 | "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.1.1.tgz",
760 | "integrity": "sha512-w7fLxIRCRT7U8Qu53jQnJyPkYZIaR4n5151KMfcJlO/A9397Wxb1amJvROTK6TOnp7PfoAmg/qXiNHI+08jRfA==",
761 | "dev": true
762 | },
763 | "read": {
764 | "version": "1.0.7",
765 | "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz",
766 | "integrity": "sha1-s9oZvQUkMal2cdRKQmNK33ELQMQ=",
767 | "requires": {
768 | "mute-stream": "~0.0.4"
769 | }
770 | },
771 | "request": {
772 | "version": "2.88.0",
773 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
774 | "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
775 | "dev": true,
776 | "requires": {
777 | "aws-sign2": "~0.7.0",
778 | "aws4": "^1.8.0",
779 | "caseless": "~0.12.0",
780 | "combined-stream": "~1.0.6",
781 | "extend": "~3.0.2",
782 | "forever-agent": "~0.6.1",
783 | "form-data": "~2.3.2",
784 | "har-validator": "~5.1.0",
785 | "http-signature": "~1.2.0",
786 | "is-typedarray": "~1.0.0",
787 | "isstream": "~0.1.2",
788 | "json-stringify-safe": "~5.0.1",
789 | "mime-types": "~2.1.19",
790 | "oauth-sign": "~0.9.0",
791 | "performance-now": "^2.1.0",
792 | "qs": "~6.5.2",
793 | "safe-buffer": "^5.1.2",
794 | "tough-cookie": "~2.4.3",
795 | "tunnel-agent": "^0.6.0",
796 | "uuid": "^3.3.2"
797 | },
798 | "dependencies": {
799 | "safe-buffer": {
800 | "version": "5.1.2",
801 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
802 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
803 | "dev": true
804 | }
805 | }
806 | },
807 | "requires-port": {
808 | "version": "1.0.0",
809 | "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
810 | "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=",
811 | "dev": true
812 | },
813 | "safe-buffer": {
814 | "version": "5.1.1",
815 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
816 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
817 | },
818 | "safer-buffer": {
819 | "version": "2.1.2",
820 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
821 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
822 | "dev": true
823 | },
824 | "semver": {
825 | "version": "5.4.1",
826 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz",
827 | "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg=="
828 | },
829 | "source-map": {
830 | "version": "0.6.1",
831 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
832 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
833 | "dev": true
834 | },
835 | "source-map-support": {
836 | "version": "0.5.12",
837 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.12.tgz",
838 | "integrity": "sha512-4h2Pbvyy15EE02G+JOZpUCmqWJuqrs+sEkzewTm++BPi7Hvn/HwcqLAcNxYAyI0x13CpPPn+kMjl+hplXMHITQ==",
839 | "dev": true,
840 | "requires": {
841 | "buffer-from": "^1.0.0",
842 | "source-map": "^0.6.0"
843 | }
844 | },
845 | "sprintf-js": {
846 | "version": "1.0.3",
847 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
848 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
849 | },
850 | "sshpk": {
851 | "version": "1.16.1",
852 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
853 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
854 | "dev": true,
855 | "requires": {
856 | "asn1": "~0.2.3",
857 | "assert-plus": "^1.0.0",
858 | "bcrypt-pbkdf": "^1.0.0",
859 | "dashdash": "^1.12.0",
860 | "ecc-jsbn": "~0.1.1",
861 | "getpass": "^0.1.1",
862 | "jsbn": "~0.1.0",
863 | "safer-buffer": "^2.0.2",
864 | "tweetnacl": "~0.14.0"
865 | }
866 | },
867 | "supports-color": {
868 | "version": "5.4.0",
869 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz",
870 | "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==",
871 | "dev": true,
872 | "requires": {
873 | "has-flag": "^3.0.0"
874 | }
875 | },
876 | "tmp": {
877 | "version": "0.0.29",
878 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.29.tgz",
879 | "integrity": "sha1-8lEl/w3Z2jzLDC3Tce4SiLuRKMA=",
880 | "requires": {
881 | "os-tmpdir": "~1.0.1"
882 | }
883 | },
884 | "tough-cookie": {
885 | "version": "2.4.3",
886 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
887 | "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
888 | "dev": true,
889 | "requires": {
890 | "psl": "^1.1.24",
891 | "punycode": "^1.4.1"
892 | },
893 | "dependencies": {
894 | "punycode": {
895 | "version": "1.4.1",
896 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
897 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=",
898 | "dev": true
899 | }
900 | }
901 | },
902 | "tunnel": {
903 | "version": "0.0.4",
904 | "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz",
905 | "integrity": "sha1-LTeFoVjBdMmhbcLARuxfxfF0IhM="
906 | },
907 | "tunnel-agent": {
908 | "version": "0.6.0",
909 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
910 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
911 | "dev": true,
912 | "requires": {
913 | "safe-buffer": "^5.0.1"
914 | }
915 | },
916 | "tweetnacl": {
917 | "version": "0.14.5",
918 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
919 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
920 | "dev": true
921 | },
922 | "typed-rest-client": {
923 | "version": "1.2.0",
924 | "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.2.0.tgz",
925 | "integrity": "sha512-FrUshzZ1yxH8YwGR29PWWnfksLEILbWJydU7zfIRkyH7kAEzB62uMAl2WY6EyolWpLpVHeJGgQm45/MaruaHpw==",
926 | "requires": {
927 | "tunnel": "0.0.4",
928 | "underscore": "1.8.3"
929 | }
930 | },
931 | "typescript": {
932 | "version": "2.6.2",
933 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz",
934 | "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=",
935 | "dev": true
936 | },
937 | "uc.micro": {
938 | "version": "1.0.6",
939 | "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz",
940 | "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA=="
941 | },
942 | "underscore": {
943 | "version": "1.8.3",
944 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
945 | "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI="
946 | },
947 | "uri-js": {
948 | "version": "4.2.2",
949 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
950 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
951 | "dev": true,
952 | "requires": {
953 | "punycode": "^2.1.0"
954 | }
955 | },
956 | "url-join": {
957 | "version": "1.1.0",
958 | "resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz",
959 | "integrity": "sha1-dBxsL0WWxIMNZxhGCSDQySIC3Hg="
960 | },
961 | "url-parse": {
962 | "version": "1.4.7",
963 | "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz",
964 | "integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==",
965 | "dev": true,
966 | "requires": {
967 | "querystringify": "^2.1.1",
968 | "requires-port": "^1.0.0"
969 | }
970 | },
971 | "util-deprecate": {
972 | "version": "1.0.2",
973 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
974 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
975 | },
976 | "uuid": {
977 | "version": "3.3.2",
978 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
979 | "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
980 | "dev": true
981 | },
982 | "verror": {
983 | "version": "1.10.0",
984 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
985 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
986 | "dev": true,
987 | "requires": {
988 | "assert-plus": "^1.0.0",
989 | "core-util-is": "1.0.2",
990 | "extsprintf": "^1.2.0"
991 | }
992 | },
993 | "vsce": {
994 | "version": "1.64.0",
995 | "resolved": "https://registry.npmjs.org/vsce/-/vsce-1.64.0.tgz",
996 | "integrity": "sha512-t3R7QTe2nAXQZs2kD+nA8GjdlX8pAQlnzxaNTG2976i5cyQ8r+ZsMNa/f9PDt7bhjcQM+u/fL+LkNuw+hwoy2A==",
997 | "requires": {
998 | "azure-devops-node-api": "^7.2.0",
999 | "chalk": "^2.4.2",
1000 | "cheerio": "^1.0.0-rc.1",
1001 | "commander": "^2.8.1",
1002 | "denodeify": "^1.2.1",
1003 | "didyoumean": "^1.2.1",
1004 | "glob": "^7.0.6",
1005 | "lodash": "^4.17.10",
1006 | "markdown-it": "^8.3.1",
1007 | "mime": "^1.3.4",
1008 | "minimatch": "^3.0.3",
1009 | "osenv": "^0.1.3",
1010 | "parse-semver": "^1.1.1",
1011 | "read": "^1.0.7",
1012 | "semver": "^5.1.0",
1013 | "tmp": "0.0.29",
1014 | "typed-rest-client": "1.2.0",
1015 | "url-join": "^1.1.0",
1016 | "yauzl": "^2.3.1",
1017 | "yazl": "^2.2.2"
1018 | },
1019 | "dependencies": {
1020 | "ansi-styles": {
1021 | "version": "3.2.1",
1022 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
1023 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
1024 | "requires": {
1025 | "color-convert": "^1.9.0"
1026 | }
1027 | },
1028 | "chalk": {
1029 | "version": "2.4.2",
1030 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
1031 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
1032 | "requires": {
1033 | "ansi-styles": "^3.2.1",
1034 | "escape-string-regexp": "^1.0.5",
1035 | "supports-color": "^5.3.0"
1036 | }
1037 | },
1038 | "has-flag": {
1039 | "version": "3.0.0",
1040 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
1041 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
1042 | },
1043 | "supports-color": {
1044 | "version": "5.5.0",
1045 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
1046 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
1047 | "requires": {
1048 | "has-flag": "^3.0.0"
1049 | }
1050 | }
1051 | }
1052 | },
1053 | "vscode": {
1054 | "version": "1.1.35",
1055 | "resolved": "https://registry.npmjs.org/vscode/-/vscode-1.1.35.tgz",
1056 | "integrity": "sha512-xPnxzQU40LOS2yPyzWW+WKpTV6qA3z16TcgpZ9O38UWLA157Zz4GxUx5H7Gd07pxzw0GqvusbF4D+5GBgNxvEQ==",
1057 | "dev": true,
1058 | "requires": {
1059 | "glob": "^7.1.2",
1060 | "mocha": "^5.2.0",
1061 | "request": "^2.88.0",
1062 | "semver": "^5.4.1",
1063 | "source-map-support": "^0.5.0",
1064 | "url-parse": "^1.4.4",
1065 | "vscode-test": "^0.4.1"
1066 | }
1067 | },
1068 | "vscode-test": {
1069 | "version": "0.4.3",
1070 | "resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-0.4.3.tgz",
1071 | "integrity": "sha512-EkMGqBSefZH2MgW65nY05rdRSko15uvzq4VAPM5jVmwYuFQKE7eikKXNJDRxL+OITXHB6pI+a3XqqD32Y3KC5w==",
1072 | "dev": true,
1073 | "requires": {
1074 | "http-proxy-agent": "^2.1.0",
1075 | "https-proxy-agent": "^2.2.1"
1076 | }
1077 | },
1078 | "wrappy": {
1079 | "version": "1.0.2",
1080 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1081 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
1082 | },
1083 | "yauzl": {
1084 | "version": "2.9.1",
1085 | "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.9.1.tgz",
1086 | "integrity": "sha1-qBmB6nCleUYTOIPwKcWCGok1mn8=",
1087 | "requires": {
1088 | "buffer-crc32": "~0.2.3",
1089 | "fd-slicer": "~1.0.1"
1090 | }
1091 | },
1092 | "yazl": {
1093 | "version": "2.4.3",
1094 | "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.4.3.tgz",
1095 | "integrity": "sha1-7CblzIfVYBud+EMtvdPNLlFzoHE=",
1096 | "requires": {
1097 | "buffer-crc32": "~0.2.3"
1098 | }
1099 | }
1100 | }
1101 | }
1102 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "clojure-warrior",
3 | "displayName": "Clojure Warrior",
4 | "description": "Extension for Clojure development",
5 | "version": "0.2.4",
6 | "publisher": "tonsky",
7 | "license": "MIT",
8 | "maintainers": [
9 | "Nikita Prokopov "
10 | ],
11 | "engines": {
12 | "vscode": "^1.15.0"
13 | },
14 | "categories": [
15 | "Other"
16 | ],
17 | "keywords": [
18 | "bracket",
19 | "brackets",
20 | "match",
21 | "matching",
22 | "clojure"
23 | ],
24 | "activationEvents": [
25 | "onLanguage:clojure"
26 | ],
27 | "icon": "extras/icon.png",
28 | "repository": {
29 | "type": "git",
30 | "url": "https://github.com/tonsky/clojure-warrior.git"
31 | },
32 | "bugs": {
33 | "url": "https://github.com/tonsky/clojure-warrior/issues"
34 | },
35 | "main": "./out/extension",
36 | "contributes": {
37 | "commands": [
38 | {
39 | "command": "clojureWarrior.jumpToMatchingBracket",
40 | "title": "Clojure Warrior: Jump to matching bracket"
41 | },
42 | {
43 | "command": "clojureWarrior.selectToMatchingBracket",
44 | "title": "Clojure Warrior: Select to matching bracket"
45 | }
46 | ],
47 | "configuration": {
48 | "type": "object",
49 | "title": "Clojure Warrior",
50 | "properties": {
51 | "clojureWarrior.enableBracketColors": {
52 | "type": "boolean",
53 | "default": true,
54 | "description": "Enable rainbow brackets",
55 | "scope": "resource"
56 | },
57 | "clojureWarrior.bracketColors": {
58 | "type": "array",
59 | "items": {
60 | "type": "string"
61 | },
62 | "default": null,
63 | "description": "Bracket colors",
64 | "scope": "resource"
65 | },
66 | "clojureWarrior.cycleBracketColors": {
67 | "type": "boolean",
68 | "default": true,
69 | "description": "If nesting level is greater than amount of colors, start counting over",
70 | "scope": "resource"
71 | },
72 | "clojureWarrior.misplacedBracketStyle": {
73 | "type": "object",
74 | "default": null,
75 | "description": "Style of misplaced bracket",
76 | "scope": "resource"
77 | },
78 | "clojureWarrior.matchedBracketStyle": {
79 | "type": "object",
80 | "default": null,
81 | "description": "Style of pair bracket highlight",
82 | "scope": "resource"
83 | },
84 | "clojureWarrior.commentFormStyle": {
85 | "type": "object",
86 | "default": null,
87 | "description": "Style of `(comment)` forms",
88 | "scope": "resource"
89 | },
90 | "clojureWarrior.ignoredFormStyle": {
91 | "type": "object",
92 | "default": null,
93 | "description": "Style of `#_` ignored forms",
94 | "scope": "resource"
95 | }
96 | }
97 | }
98 | },
99 | "scripts": {
100 | "vscode:prepublish": "npm run compile",
101 | "compile": "tsc -p ./",
102 | "watch": "tsc -watch -p ./",
103 | "postinstall": "node ./node_modules/vscode/bin/install"
104 | },
105 | "devDependencies": {
106 | "vscode": "^1.1.35",
107 | "typescript": "^2.5.3",
108 | "@types/node": "7.0.4"
109 | },
110 | "dependencies": {
111 | "lodash.isequal": "^4.5.0",
112 | "vsce": "^1.64.0"
113 | },
114 | "__metadata": {
115 | "id": "0438d476-077e-4fe0-8f2d-de9fb30901ff",
116 | "publisherDisplayName": "Nikita Prokopov",
117 | "publisherId": "8fe0f11e-8bd6-4cf2-9ee6-acead847e970"
118 | }
119 | }
--------------------------------------------------------------------------------
/publish.sh:
--------------------------------------------------------------------------------
1 | vsce publish
--------------------------------------------------------------------------------
/src/extension.ts:
--------------------------------------------------------------------------------
1 | import * as vscode from 'vscode';
2 | import { Position, Range, Selection } from 'vscode';
3 | import * as isEqual from 'lodash.isequal';
4 | import { isArray } from 'util';
5 | import { open } from 'fs';
6 |
7 | export function activate(context: vscode.ExtensionContext) {
8 | const pairs = [["(", ")"],
9 | ["[", "]"],
10 | ["{", "}"],
11 | ["#(", ")"],
12 | ["#{", "}"],
13 | ["#?(", ")"],
14 | ["#?@(",")"]];
15 | const opening = {},
16 | closing = {},
17 | pairings = {},
18 | tokens = ['"', "\\.", ";"];
19 | pairs.forEach(pair => {
20 | const [o,c] = pair;
21 | opening[o] = true;
22 | closing[c] = true;
23 | pairings[o+c] = true;
24 | tokens.push(o, c);
25 | });
26 | const regexp = new RegExp("(#_[\\s,~@'^`]*|(?<=[ ,(])comment(?=\\s)|[\\s,]+|" + tokens.map(t => t.replace(/[\\()\[\]{}?]/g, "\\$&")).join("|") + ")", "g");
27 | function position_str(pos: Position) { return "" + pos.line + ":" + pos.character; }
28 | function is_clojure(editor) { return !!editor && editor.document.languageId === "clojure"; }
29 |
30 | vscode.commands.registerCommand("clojureWarrior.jumpToMatchingBracket", jumpToMatchingBracket);
31 | vscode.commands.registerCommand("clojureWarrior.selectToMatchingBracket", selectToMatchingBracket);
32 |
33 | let activeEditor: vscode.TextEditor = vscode.window.activeTextEditor,
34 | configuration: vscode.WorkspaceConfiguration,
35 | rainbowColors,
36 | rainbowTypes: vscode.TextEditorDecorationType[],
37 | cycleBracketColors,
38 | misplacedBracketStyle,
39 | misplacedType: vscode.TextEditorDecorationType,
40 | matchedBracketStyle,
41 | matchedType: vscode.TextEditorDecorationType,
42 | commentFormStyle,
43 | commentFormType: vscode.TextEditorDecorationType,
44 | ignoredFormStyle,
45 | ignoredFormType: vscode.TextEditorDecorationType,
46 | enableBracketColors,
47 | pairsBack: Map = new Map(),
48 | pairsForward: Map = new Map(),
49 | rainbowTimer = undefined,
50 | dirty = false;
51 |
52 | if (is_clojure(activeEditor))
53 | reloadConfig();
54 |
55 | vscode.window.onDidChangeActiveTextEditor(editor => {
56 | activeEditor = editor;
57 | if (is_clojure(editor))
58 | scheduleRainbowBrackets();
59 | }, null, context.subscriptions);
60 |
61 | vscode.window.onDidChangeTextEditorSelection(event => {
62 | if (event.textEditor === vscode.window.activeTextEditor && is_clojure(event.textEditor))
63 | matchPairs();
64 | }, null, context.subscriptions);
65 |
66 | vscode.workspace.onDidChangeTextDocument(event => {
67 | if (is_clojure(activeEditor) && event.document === activeEditor.document)
68 | scheduleRainbowBrackets();
69 | }, null, context.subscriptions);
70 |
71 | vscode.workspace.onDidChangeConfiguration(event => {
72 | reloadConfig();
73 | scheduleRainbowBrackets();
74 | }, null, context.subscriptions);
75 |
76 | function decorationType(opts) {
77 | opts.rangeBehavior = vscode.DecorationRangeBehavior.ClosedClosed;
78 | return vscode.window.createTextEditorDecorationType(opts);
79 | }
80 |
81 | function colorDecorationType(color) {
82 | if (isArray(color))
83 | return decorationType({light: {color: color[0]}, dark: {color: color[1]}});
84 | else
85 | return decorationType({color: color});
86 | }
87 |
88 | function reset_styles() {
89 | if (!!rainbowTypes)
90 | rainbowTypes.forEach(type => activeEditor.setDecorations(type, []));
91 | rainbowTypes = rainbowColors.map(colorDecorationType);
92 |
93 | if (!!misplacedType)
94 | activeEditor.setDecorations(misplacedType, []);
95 | misplacedType = decorationType(misplacedBracketStyle || {light: {color: "#fff", backgroundColor: "#c33"},
96 | dark: {color: "#ccc", backgroundColor: "#933"},
97 | overviewRulerColor: new vscode.ThemeColor("editorOverviewRuler.errorForeground"),
98 | overviewRulerLane: 4});
99 |
100 | if (!!matchedType)
101 | activeEditor.setDecorations(matchedType, []);
102 | matchedType = decorationType(matchedBracketStyle || {light: {backgroundColor: "#d0d0d0"}, dark: {backgroundColor: "#444"}});
103 |
104 | if(!!commentFormType)
105 | activeEditor.setDecorations(commentFormType, []);
106 | commentFormType = decorationType(commentFormStyle || {"textDecoration": "none; opacity: 0.5"});
107 |
108 | if(!!ignoredFormType)
109 | activeEditor.setDecorations(ignoredFormType, []);
110 | ignoredFormType = decorationType(ignoredFormStyle || {"textDecoration": "none; opacity: 0.5"});
111 |
112 | dirty = false;
113 | }
114 |
115 | function reloadConfig() {
116 | let configuration = vscode.workspace.getConfiguration("clojureWarrior", (!!activeEditor) ? activeEditor.document.uri : null);
117 |
118 | if (!isEqual(rainbowColors, configuration.get("bracketColors"))) {
119 | rainbowColors = configuration.get("bracketColors") || [["#000", "#ccc"], "#0098e6", "#e16d6d", "#3fa455", "#c968e6", "#999", "#ce7e00"];
120 | dirty = true;
121 | }
122 |
123 | if (cycleBracketColors !== configuration.get("cycleBracketColors")) {
124 | cycleBracketColors = configuration.get("cycleBracketColors");
125 | dirty = true;
126 | }
127 |
128 | if (!isEqual(misplacedBracketStyle, configuration.get("misplacedBracketStyle"))) {
129 | misplacedBracketStyle = configuration.get("misplacedBracketStyle");
130 | dirty = true;
131 | }
132 |
133 | if (!isEqual(matchedBracketStyle, configuration.get("matchedBracketStyle"))) {
134 | matchedBracketStyle = configuration.get("matchedBracketStyle");
135 | dirty = true;
136 | }
137 |
138 | if (enableBracketColors !== configuration.get("enableBracketColors")) {
139 | enableBracketColors = configuration.get("enableBracketColors");
140 | dirty = true;
141 | }
142 |
143 | if (!isEqual(commentFormStyle, configuration.get("commentFormStyle"))) {
144 | commentFormStyle = configuration.get("commentFormStyle");
145 | dirty = true;
146 | }
147 |
148 | if (!isEqual(ignoredFormStyle, configuration.get("ignoredFormStyle"))) {
149 | ignoredFormStyle = configuration.get("ignoredFormStyle");
150 | dirty = true;
151 | }
152 |
153 | if (dirty)
154 | scheduleRainbowBrackets();
155 | }
156 |
157 | function scheduleRainbowBrackets() {
158 | if (rainbowTimer)
159 | clearTimeout(rainbowTimer);
160 | if (is_clojure(activeEditor))
161 | rainbowTimer = setTimeout(updateRainbowBrackets, 16);
162 | }
163 |
164 | function updateRainbowBrackets() {
165 | if (!is_clojure(activeEditor)) return;
166 |
167 | if (dirty) reset_styles();
168 |
169 | const doc = activeEditor.document,
170 | text = doc.getText(),
171 | rainbow = rainbowTypes.map(()=>[]),
172 | misplaced = [],
173 | comment_forms = [],
174 | ignores = [],
175 | len = rainbowTypes.length,
176 | colorsEnabled = enableBracketColors && len > 0,
177 | colorIndex = cycleBracketColors ? (i => i % len) : (i => Math.min(i, len-1));
178 |
179 | let match,
180 | in_string = false,
181 | in_comment = false,
182 | in_ignore = false,
183 | ignore_start: Position,
184 | ignored_text_start: Position,
185 | ignored_list_opened = false,
186 | in_comment_form = false,
187 | stack = [],
188 | stack_depth = 0;
189 | pairsBack = new Map();
190 | pairsForward = new Map();
191 | regexp.lastIndex = 0;
192 | while (match = regexp.exec(text)) {
193 | let char: string = match[0];
194 | if (in_comment) {
195 | if (char.includes("\n")) { in_comment = false; continue; }
196 | } else if (char[0] === "\\") {
197 | continue;
198 | } else if (in_string) {
199 | if (char === "\"") { in_string = false; continue; }
200 | } else if (char === ";") {
201 | in_comment = true;
202 | continue;
203 | } else if (char === "\"") {
204 | in_string = true;
205 | continue;
206 | } else if (char.startsWith("#_") && !in_ignore) {
207 | in_ignore = true;
208 | ignore_start = activeEditor.document.positionAt(match.index);
209 | ignored_text_start = activeEditor.document.positionAt(match.index + char.length);
210 | continue;
211 | } else if (char.match(/[\s,]+/)) {
212 | if (in_ignore && !ignored_list_opened) {
213 | in_ignore = false;
214 | ignores.push(new Range(ignore_start, activeEditor.document.positionAt(match.index)));
215 | }
216 | continue;
217 | } else {
218 | if (!in_comment_form && char === "comment" && stack[stack.length - 1].char === "(") {
219 | in_comment_form = true;
220 | stack[stack.length - 1].opens_comment_form = true;
221 | }
222 | if (opening[char]) {
223 | const len = char.length,
224 | pos = activeEditor.document.positionAt(match.index);
225 | if (colorsEnabled) {
226 | const decoration = { range: new Range(pos, pos.translate(0, len)) };
227 | rainbow[colorIndex(stack_depth)].push(decoration);
228 | }
229 | ++stack_depth;
230 | const opens_ignore = in_ignore && !ignored_list_opened && pos.isEqual(ignored_text_start);
231 | if (opens_ignore)
232 | ignored_list_opened = true;
233 | stack.push({ char: char, pos: pos, pair_idx: undefined, opens_comment_form: false, opens_ignore: opens_ignore });
234 | continue;
235 | } else if (closing[char]) {
236 | const pos = activeEditor.document.positionAt(match.index),
237 | decoration = { range: new Range(pos, pos.translate(0, 1)) };
238 | var pair_idx = stack.length - 1;
239 | while (pair_idx >= 0 && stack[pair_idx].pair_idx !== undefined) {
240 | pair_idx = stack[pair_idx].pair_idx - 1;
241 | }
242 | if (pair_idx === undefined || pair_idx < 0 || !pairings[stack[pair_idx].char + char]) {
243 | misplaced.push(decoration);
244 | } else {
245 | let pair = stack[pair_idx],
246 | closing = new Range(pos, pos.translate(0, char.length)),
247 | opening = new Range(pair.pos, pair.pos.translate(0, pair.char.length));
248 | if (in_comment_form && pair.opens_comment_form) {
249 | comment_forms.push(new Range(pair.pos, pos.translate(0, char.length)));
250 | in_comment_form = false;
251 | }
252 | if (in_ignore && (pair.opens_ignore || !ignored_list_opened)) {
253 | const ignore_end = ignored_list_opened ? pos.translate(0, char.length) : pos;
254 | ignores.push(new Range(ignore_start, ignore_end));
255 | in_ignore = false;
256 | ignored_list_opened = false;
257 | }
258 | stack.push({ char: char, pos: pos, pair_idx: pair_idx });
259 | for (let i = 0; i < char.length; ++i)
260 | pairsBack.set(position_str(pos.translate(0, i)), [opening, closing]);
261 | for (let i = 0; i < pair.char.length; ++i)
262 | pairsForward.set(position_str(pair.pos.translate(0, i)), [opening, closing]);
263 | --stack_depth;
264 | if (colorsEnabled) rainbow[colorIndex(stack_depth)].push(decoration);
265 | }
266 | continue;
267 | }
268 | }
269 | }
270 | for (var i=0; i 0)
283 | return pairsBack.get(position_str(cursor.translate(0,-1)));
284 | }
285 |
286 | function matchAfter(selection) {
287 | const cursor = selection.active;
288 | if (cursor.isAfterOrEqual(selection.anchor))
289 | if (cursor.translate(0,1).line === cursor.line)
290 | return pairsForward.get(position_str(cursor));
291 | }
292 |
293 | function matchPairs() {
294 | if (!is_clojure(activeEditor)) return;
295 |
296 | const matches = [];
297 | activeEditor.selections.forEach(selection => {
298 | const match_before = matchBefore(selection),
299 | match_after = matchAfter(selection);
300 | if (!!match_before) {
301 | matches.push({range: match_before[0]});
302 | matches.push({range: match_before[1]});
303 | }
304 | if (!!match_after) {
305 | matches.push({range: match_after[0]});
306 | matches.push({range: match_after[1]});
307 | }
308 | });
309 | activeEditor.setDecorations(matchedType, matches);
310 | }
311 |
312 | function jumpToMatchingBracket() {
313 | if (!is_clojure(activeEditor)) return;
314 | activeEditor.selections = activeEditor.selections.map(selection => {
315 | const match_before = matchBefore(selection),
316 | match_after = matchAfter(selection);
317 | if (!!match_before) {
318 | const opening = match_before[0];
319 | return new Selection(opening.start, opening.start);
320 | } else if (!!match_after) {
321 | const closing = match_after[1];
322 | return new Selection(closing.end, closing.end);
323 | } else
324 | return selection;
325 | });
326 | activeEditor.revealRange(activeEditor.selections[0]);
327 | }
328 |
329 | function selectToMatchingBracket() {
330 | if (!is_clojure(activeEditor)) return;
331 |
332 |
333 | activeEditor.selections = activeEditor.selections.map(selection => {
334 | const cursor = selection.active,
335 | match_before = matchBefore(selection),
336 | match_after = matchAfter(selection);
337 | if (!!match_before) {
338 | const opening = match_before[0];
339 | return new Selection(cursor, opening.start);
340 | } else if (!!match_after) {
341 | const closing = match_after[1];
342 | return new Selection(cursor, closing.end);
343 | } else
344 | return selection;
345 | });
346 | activeEditor.revealRange(new Range(activeEditor.selections[0].active, activeEditor.selections[0].active));
347 | }
348 | }
349 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es5",
5 | "outDir": "out",
6 | "lib": [
7 | "es6"
8 | ],
9 | "sourceMap": true,
10 | "rootDir": "src"
11 | },
12 | "exclude": [
13 | "node_modules"
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------