From 8af9605e358bdbb52dfb3eb3da88f4ebc03366f8 Mon Sep 17 00:00:00 2001 From: Ran Luo Date: Sun, 26 Dec 2021 16:21:00 +0800 Subject: [PATCH] feat: support solidity in codeblock and optimization of file icons (#2775) * feat: support solidity in codeblock and optimization of file icons * feat: update file icons --- package.json | 2 +- resources/THIRD-PARTY-LICENSES.txt | 3195 +++++++++++------ .../render/renderBlock/renderLeafBlock.js | 4 +- src/muya/lib/prism/index.js | 9 +- src/muya/lib/prism/languages.json | 1182 ------ src/muya/lib/prism/loadLanguage.js | 129 +- src/muya/lib/ui/codePicker/index.css | 1 + src/muya/lib/ui/codePicker/index.js | 12 +- src/muya/lib/ui/fileIcons/index.js | 15 +- src/muya/lib/utils/index.js | 11 + src/renderer/components/sideBar/icon.vue | 4 +- yarn.lock | 31 +- 12 files changed, 2266 insertions(+), 2329 deletions(-) delete mode 100644 src/muya/lib/prism/languages.json diff --git a/package.json b/package.json index bef601f9..88a30b9e 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "@electron/remote": "^2.0.1", "@hfelix/electron-localshortcut": "^3.1.1", "@hfelix/electron-spellchecker": "^2.0.0", + "@marktext/file-icons": "^1.0.4", "@octokit/rest": "^18.12.0", "arg": "^5.0.1", "axios": "0.22.0", @@ -54,7 +55,6 @@ "element-resize-detector": "^1.2.4", "element-ui": "^2.15.7", "execall": "^2.0.0", - "file-icons-js": "1.0.3", "flowchart.js": "^1.17.0", "fontmanager-redux": "^1.1.0", "fs-extra": "^10.0.0", diff --git a/resources/THIRD-PARTY-LICENSES.txt b/resources/THIRD-PARTY-LICENSES.txt index 53543aa5..5f66fc88 100644 --- a/resources/THIRD-PARTY-LICENSES.txt +++ b/resources/THIRD-PARTY-LICENSES.txt @@ -8,387 +8,429 @@ This file contains all third-party packages that are bundled and shipped with Ma ------------------------------------------------- 1. @braintree/sanitize-url (MIT) -2. @hfelix/electron-localshortcut (MIT) -3. @hfelix/electron-spellchecker (MIT) -4. @hfelix/keyboardevent-from-electron-accelerator (MIT) -5. @hfelix/spellchecker (MIT) -6. @octokit/auth-token (MIT) -7. @octokit/endpoint (MIT) -8. @octokit/plugin-paginate-rest (MIT) -9. @octokit/plugin-request-log (MIT) -10. @octokit/plugin-rest-endpoint-methods (MIT) -11. @octokit/request-error (MIT) -12. @octokit/request (MIT) -13. @octokit/rest (MIT) -14. @octokit/types (MIT) -15. @types/clone (MIT) -16. @types/color-name (MIT) -17. @types/fast-json-stable-stringify (MIT) -18. @types/node (MIT) -19. agent-base (MIT) -20. ajv (MIT) -21. animation-frame-polyfill (MIT) -22. ansi-regex (MIT) -23. ansi-styles (MIT) -24. anymatch (ISC) -25. aproba (ISC) -26. are-we-there-yet (ISC) -27. arg (MIT) -28. array-flat-polyfill (CC0-1.0) -29. array-from (MIT) -30. async-validator (MIT) -31. at-least-node (ISC) -32. atoa (MIT) -33. atob-lite (MIT) -34. atomically (MIT) -35. axios (MIT) -36. babel-runtime (MIT) -37. balanced-match (MIT) -38. base64-js (MIT) -39. batch-processor (MIT) -40. bcp47 (MIT) -41. before-after-hook (Apache-2.0) -42. binary-extensions (MIT) -43. bindings (MIT) -44. bl (MIT) -45. brace-expansion (MIT) -46. braces (MIT) -47. browser-split (MIT) -48. btoa-lite (MIT) -49. buffer-from (MIT) -50. buffer (MIT) -51. camel-case (MIT) -52. ced ((ISC AND Apache-2.0)) -53. chokidar (MIT) -54. chownr (ISC) -55. cld (Apache) -56. clean-css (MIT) -57. clipboard (MIT) -58. cliui (ISC) -59. clone-regexp (MIT) -60. clone (MIT) -61. code-point-at (MIT) -62. codemirror (MIT) -63. color-convert (MIT) -64. color-name (MIT) -65. command-exists (MIT) -66. commander (MIT) -67. concat-map (MIT) -68. conf (MIT) -69. console-control-strings (ISC) -70. contra (MIT) -71. core-js (MIT) -72. core-util-is (MIT) -73. create-point-cb (MIT) -74. cross-spawn (MIT) -75. crossvent (MIT) -76. css-b64-images (MIT) -77. custom-event (MIT) -78. d3-array (BSD-3-Clause) -79. d3-axis (BSD-3-Clause) -80. d3-brush (BSD-3-Clause) -81. d3-chord (BSD-3-Clause) -82. d3-collection (BSD-3-Clause) -83. d3-color (BSD-3-Clause) -84. d3-contour (BSD-3-Clause) -85. d3-delaunay (ISC) -86. d3-dispatch (BSD-3-Clause) -87. d3-drag (BSD-3-Clause) -88. d3-dsv (BSD-3-Clause) -89. d3-ease (BSD-3-Clause) -90. d3-fetch (BSD-3-Clause) -91. d3-force (BSD-3-Clause) -92. d3-format (BSD-3-Clause) -93. d3-geo-projection (BSD-3-Clause) -94. d3-geo (BSD-3-Clause) -95. d3-hierarchy (BSD-3-Clause) -96. d3-interpolate (BSD-3-Clause) -97. d3-path (BSD-3-Clause) -98. d3-polygon (BSD-3-Clause) -99. d3-quadtree (BSD-3-Clause) -100. d3-random (BSD-3-Clause) -101. d3-scale-chromatic (BSD-3-Clause) -102. d3-scale (BSD-3-Clause) -103. d3-selection (BSD-3-Clause) -104. d3-shape (BSD-3-Clause) -105. d3-time-format (BSD-3-Clause) -106. d3-time (BSD-3-Clause) -107. d3-timer (BSD-3-Clause) -108. d3-transition (BSD-3-Clause) -109. d3-voronoi (BSD-3-Clause) -110. d3-zoom (BSD-3-Clause) -111. d3 (BSD-3-Clause) -112. dagre-d3 (MIT) -113. dagre (MIT) -114. dayjs (MIT) -115. debounce-fn (MIT) -116. debug (MIT) -117. decompress-response (MIT) -118. deep-extend (MIT) -119. deepmerge (MIT) -120. delaunator (ISC) -121. delegate (MIT) -122. delegates (MIT) -123. deprecation (ISC) -124. detect-libc (Apache-2.0) -125. dom-autoscroller (MIT) -126. dom-mousemove-dispatcher (MIT) -127. dom-plane (MIT) -128. dom-set (WTFPL) -129. domino (BSD-2-Clause) -130. dompurify ((MPL-2.0 OR Apache-2.0)) -131. dot-prop (MIT) -132. dragula (MIT) -133. electron-is-accelerator (MIT) -134. electron-log (MIT) -135. electron-store (MIT) -136. electron-window-state (MIT) -137. element-resize-detector (MIT) -138. element-ui (MIT) -139. emoji-regex (MIT) -140. end-of-stream (MIT) -141. entity-decode (MIT) -142. env-paths (MIT) -143. escalade (MIT) -144. eve-raphael (Apache*) -145. event-kit (MIT) -146. execa (MIT) -147. execall (MIT) -148. expand-template ((MIT OR WTFPL)) -149. fast-deep-equal (MIT) -150. fast-json-patch (MIT) -151. fast-json-stable-stringify (MIT) -152. file-icons-js (MIT) -153. file-uri-to-path (MIT) -154. fill-range (MIT) -155. find-up (MIT) -156. flowchart.js (MIT) -157. follow-redirects (MIT) -158. fontmanager-redux (MIT) -159. form-urlencoded (MIT) -160. fs-constants (MIT) -161. fs-extra (MIT) -162. fs.realpath (ISC) -163. fuzzaldrin (MIT) -164. gauge (ISC) -165. get-caller-file (ISC) -166. get-stream (MIT) -167. github-from-package (MIT) -168. github-markdown-css (MIT) -169. glob-parent (ISC) -170. glob (ISC) -171. good-listener (MIT) -172. graceful-fs (ISC) -173. graphlib (MIT) -174. has-unicode (ISC) -175. he (MIT) -176. html-minifier (MIT) -177. html-tags (MIT) -178. https-proxy-agent (MIT) -179. iconv-lite (MIT) -180. ieee754 (BSD-3-Clause) -181. inflight (ISC) -182. inherits (ISC) -183. ini (ISC) -184. is-array (MIT) -185. is-binary-path (MIT) -186. is-extglob (MIT) -187. is-fullwidth-code-point (MIT) -188. is-glob (MIT) -189. is-number (MIT) -190. is-obj (MIT) -191. is-plain-object (MIT) -192. is-regexp (MIT) -193. is-stream (MIT) -194. isarray (MIT) -195. iselement (MIT) -196. isexe (ISC) -197. iso-639-1 (MIT) -198. isobject (MIT) -199. joplin-turndown-plugin-gfm (MIT) -200. json-schema-traverse (MIT) -201. json-schema-typed (BSD-2-Clause) -202. json-stringify-pretty-compact (MIT) -203. jsonfile (MIT) -204. katex (MIT) -205. keyboard-layout (MIT) -206. keyboardevents-areequal (MIT) -207. keytar (MIT) -208. khroma (MIT) -209. locate-path (MIT) -210. lodash.escape (MIT) -211. lodash.forown (MIT) -212. lodash.get (MIT) -213. lodash.kebabcase (MIT) -214. lodash.remove (MIT) -215. lodash.set (MIT) -216. lodash.uniq (MIT) -217. lodash (MIT) -218. lower-case (MIT) -219. lru-cache (ISC) -220. macos-release (MIT) -221. make-dir (MIT) -222. mermaid (MIT) -223. mimic-fn (MIT) -224. mimic-response (MIT) -225. minify (MIT) -226. minimatch (ISC) -227. minimist (MIT) -228. mkdirp-classic (MIT) -229. mkdirp (MIT) -230. moment-mini (MIT) -231. ms (MIT) -232. nan (MIT) -233. napi-build-utils (MIT) -234. nice-try (MIT) -235. no-case (MIT) -236. node-abi (MIT) -237. node-addon-api (MIT) -238. node-fetch (MIT) -239. noop-logger (MIT) -240. normalize-path (MIT) -241. normalize-wheel (BSD-3-Clause) -242. npm-run-path (MIT) -243. npmlog (ISC) -244. number-is-nan (MIT) -245. object-assign (MIT) -246. octokit-pagination-methods (MIT) -247. once (ISC) -248. onetime (MIT) -249. os-name (MIT) -250. p-finally (MIT) -251. p-limit (MIT) -252. p-locate (MIT) -253. p-throttle (MIT) -254. p-try (MIT) -255. param-case (MIT) -256. parse-sel (MIT) -257. path-exists (MIT) -258. path-is-absolute (MIT) -259. path-key (MIT) -260. path-parse (MIT) -261. picomatch (MIT) -262. pkg-up (MIT) -263. plist (MIT) -264. popper.js (MIT) -265. prebuild-install (MIT) -266. prismjs (MIT) -267. process-nextick-args (MIT) -268. proxy-from-env (MIT) -269. pump (MIT) -270. punycode (MIT) -271. querystring (MIT) -272. querystringify (MIT) -273. raphael (MIT) -274. rc ((BSD-2-Clause OR MIT OR Apache-2.0)) -275. readable-stream (MIT) -276. readdirp (MIT) -277. regenerator-runtime (MIT) -278. relateurl (MIT) -279. require-directory (MIT) -280. requires-port (MIT) -281. resize-observer-polyfill (MIT) -282. resolve (MIT) -283. rimraf (ISC) -284. rw (BSD-3-Clause) -285. safe-buffer (MIT) -286. safer-buffer (MIT) -287. select (MIT) -288. semver (ISC) -289. set-blocking (ISC) -290. shebang-command (MIT) -291. shebang-regex (MIT) -292. signal-exit (ISC) -293. simple-concat (MIT) -294. simple-get (MIT) -295. snabbdom-to-html (MIT) -296. snabbdom (MIT) -297. source-map-support (MIT) -298. source-map (BSD-3-Clause) -299. string-width (MIT) -300. string_decoder (MIT) -301. strip-ansi (MIT) -302. strip-eof (MIT) -303. strip-json-comments (MIT) -304. stylis (MIT) -305. tar-fs (MIT) -306. tar-stream (MIT) -307. terser (BSD-2-Clause) -308. throttle-debounce (MIT) -309. ticky (MIT) -310. tiny-emitter (MIT) -311. to-regex-range (MIT) -312. topojson-client (ISC) -313. try-catch (MIT) -314. try-to-catch (MIT) -315. tslib (0BSD) -316. tunnel-agent (Apache-2.0) -317. turndown (MIT) -318. type-fest ((MIT OR CC0-1.0)) -319. type-func (MIT) -320. uglify-js (BSD-2-Clause) -321. underscore (MIT) -322. universal-user-agent (ISC) -323. universalify (MIT) -324. unsplash-js (MIT) -325. upper-case (MIT) -326. uri-js (BSD-2-Clause) -327. url-parse (MIT) -328. util-deprecate (MIT) -329. vega-canvas (BSD-3-Clause) -330. vega-crossfilter (BSD-3-Clause) -331. vega-dataflow (BSD-3-Clause) -332. vega-embed (BSD-3-Clause) -333. vega-encode (BSD-3-Clause) -334. vega-event-selector (BSD-3-Clause) -335. vega-expression (BSD-3-Clause) -336. vega-force (BSD-3-Clause) -337. vega-format (BSD-3-Clause) -338. vega-functions (BSD-3-Clause) -339. vega-geo (BSD-3-Clause) -340. vega-hierarchy (BSD-3-Clause) -341. vega-label (BSD-3-Clause) -342. vega-lite (BSD-3-Clause) -343. vega-loader (BSD-3-Clause) -344. vega-parser (BSD-3-Clause) -345. vega-projection (BSD-3-Clause) -346. vega-regression (BSD-3-Clause) -347. vega-runtime (BSD-3-Clause) -348. vega-scale (BSD-3-Clause) -349. vega-scenegraph (BSD-3-Clause) -350. vega-schema-url-parser (BSD-3-Clause) -351. vega-selections (BSD-3-Clause) -352. vega-statistics (BSD-3-Clause) -353. vega-themes (BSD-3-Clause) -354. vega-time (BSD-3-Clause) -355. vega-tooltip (BSD-3-Clause) -356. vega-transforms (BSD-3-Clause) -357. vega-typings (BSD-3-Clause) -358. vega-util (BSD-3-Clause) -359. vega-view-transforms (BSD-3-Clause) -360. vega-view (BSD-3-Clause) -361. vega-voronoi (BSD-3-Clause) -362. vega-wordcloud (BSD-3-Clause) -363. vega (BSD-3-Clause) -364. vscode-ripgrep (MIT) -365. vue-electron (ISC) -366. vue-router (MIT) -367. vue (MIT) -368. vuex (MIT) -369. webfontloader (Apache-2.0) -370. which-pm-runs (MIT) -371. which (ISC) -372. wide-align (ISC) -373. windows-release (MIT) -374. wrap-ansi (MIT) -375. wrappy (ISC) -376. xmlbuilder (MIT) -377. xmldom (MIT*) -378. y18n (ISC) -379. yallist (ISC) -380. yargs-parser (ISC) -381. yargs (MIT) -382. hunspell (LGPL 2.1) +2. @electron/get (MIT) +3. @electron/remote (MIT) +4. @hfelix/electron-localshortcut (MIT) +5. @hfelix/electron-spellchecker (MIT) +6. @hfelix/keyboardevent-from-electron-accelerator (MIT) +7. @hfelix/spellchecker (MIT) +8. @octokit/auth-token (MIT) +9. @octokit/core (MIT) +10. @octokit/endpoint (MIT) +11. @octokit/graphql (MIT) +12. @octokit/openapi-types (MIT) +13. @octokit/plugin-paginate-rest (MIT) +14. @octokit/plugin-request-log (MIT) +15. @octokit/plugin-rest-endpoint-methods (MIT) +16. @octokit/request-error (MIT) +17. @octokit/request (MIT) +18. @octokit/rest (MIT) +19. @octokit/types (MIT) +20. @sindresorhus/is (MIT) +21. @szmarczak/http-timer (MIT) +22. @types/clone (MIT) +23. @types/fast-json-stable-stringify (MIT) +24. @types/node (MIT) +25. agent-base (MIT) +26. ajv-formats (MIT) +27. ajv (MIT) +28. animation-frame-polyfill (MIT) +29. ansi-regex (MIT) +30. ansi-styles (MIT) +31. anymatch (ISC) +32. aproba (ISC) +33. are-we-there-yet (ISC) +34. arg (MIT) +35. array-flat-polyfill (CC0-1.0) +36. array-from (MIT) +37. async-validator (MIT) +38. at-least-node (ISC) +39. atoa (MIT) +40. atomically (MIT) +41. axios (MIT) +42. babel-runtime (MIT) +43. balanced-match (MIT) +44. base64-js (MIT) +45. batch-processor (MIT) +46. bcp47 (MIT) +47. before-after-hook (Apache-2.0) +48. binary-extensions (MIT) +49. bindings (MIT) +50. bl (MIT) +51. boolean (MIT) +52. brace-expansion (MIT) +53. braces (MIT) +54. browser-split (MIT) +55. buffer-crc32 (MIT) +56. buffer-from (MIT) +57. buffer (MIT) +58. cacheable-request (MIT) +59. camel-case (MIT) +60. ced ((ISC AND Apache-2.0)) +61. chokidar (MIT) +62. chownr (ISC) +63. cld (Apache) +64. clean-css (MIT) +65. cliui (ISC) +66. clone-regexp (MIT) +67. clone-response (MIT) +68. clone (MIT) +69. code-point-at (MIT) +70. codemirror (MIT) +71. color-convert (MIT) +72. color-name (MIT) +73. command-exists (MIT) +74. commander (MIT) +75. concat-map (MIT) +76. concat-stream (MIT) +77. conf (MIT) +78. config-chain (MIT) +79. console-control-strings (ISC) +80. contra (MIT) +81. core-js (MIT) +82. core-util-is (MIT) +83. create-point-cb (MIT) +84. cross-spawn (MIT) +85. crossvent (MIT) +86. css-b64-images (MIT) +87. custom-event (MIT) +88. d3-array (BSD-3-Clause) +89. d3-axis (BSD-3-Clause) +90. d3-brush (BSD-3-Clause) +91. d3-chord (BSD-3-Clause) +92. d3-collection (BSD-3-Clause) +93. d3-color (BSD-3-Clause) +94. d3-contour (BSD-3-Clause) +95. d3-delaunay (ISC) +96. d3-dispatch (BSD-3-Clause) +97. d3-drag (BSD-3-Clause) +98. d3-dsv (BSD-3-Clause) +99. d3-ease (BSD-3-Clause) +100. d3-fetch (BSD-3-Clause) +101. d3-force (BSD-3-Clause) +102. d3-format (BSD-3-Clause) +103. d3-geo-projection (BSD-3-Clause) +104. d3-geo (BSD-3-Clause) +105. d3-hierarchy (BSD-3-Clause) +106. d3-interpolate (BSD-3-Clause) +107. d3-path (BSD-3-Clause) +108. d3-polygon (BSD-3-Clause) +109. d3-quadtree (BSD-3-Clause) +110. d3-random (BSD-3-Clause) +111. d3-scale-chromatic (BSD-3-Clause) +112. d3-scale (BSD-3-Clause) +113. d3-selection (BSD-3-Clause) +114. d3-shape (BSD-3-Clause) +115. d3-time-format (BSD-3-Clause) +116. d3-time (BSD-3-Clause) +117. d3-timer (BSD-3-Clause) +118. d3-transition (BSD-3-Clause) +119. d3-voronoi (BSD-3-Clause) +120. d3-zoom (BSD-3-Clause) +121. d3 (BSD-3-Clause) +122. dagre-d3 (MIT) +123. dagre (MIT) +124. dayjs (MIT) +125. debounce-fn (MIT) +126. debug (MIT) +127. decompress-response (MIT) +128. deep-extend (MIT) +129. deepmerge (MIT) +130. defer-to-connect (MIT) +131. define-properties (MIT) +132. delaunator (ISC) +133. delegates (MIT) +134. deprecation (ISC) +135. detect-libc (Apache-2.0) +136. detect-node (ISC) +137. dom-autoscroller (MIT) +138. dom-mousemove-dispatcher (MIT) +139. dom-plane (MIT) +140. dom-set (WTFPL) +141. domino (BSD-2-Clause) +142. dompurify ((MPL-2.0 OR Apache-2.0)) +143. dot-prop (MIT) +144. dragula (MIT) +145. duplexer3 (BSD-3-Clause) +146. electron-is-accelerator (MIT) +147. electron-log (MIT) +148. electron-store (MIT) +149. electron-window-state (MIT) +150. electron (MIT) +151. element-resize-detector (MIT) +152. element-ui (MIT) +153. emoji-regex (MIT) +154. encodeurl (MIT) +155. end-of-stream (MIT) +156. entity-decode (MIT) +157. env-paths (MIT) +158. es6-error (MIT) +159. escalade (MIT) +160. escape-string-regexp (MIT) +161. eve-raphael (Apache*) +162. event-kit (MIT) +163. execa (MIT) +164. execall (MIT) +165. expand-template ((MIT OR WTFPL)) +166. extract-zip (BSD-2-Clause) +167. fast-deep-equal (MIT) +168. fast-json-patch (MIT) +169. fast-json-stable-stringify (MIT) +170. fd-slicer (MIT) +171. file-uri-to-path (MIT) +172. fill-range (MIT) +173. find-up (MIT) +174. flowchart.js (MIT) +175. follow-redirects (MIT) +176. fontmanager-redux (MIT) +177. form-urlencoded (MIT) +178. fs-constants (MIT) +179. fs-extra (MIT) +180. fs.realpath (ISC) +181. fsevents (MIT) +182. fuzzaldrin (MIT) +183. gauge (ISC) +184. get-caller-file (ISC) +185. get-stream (MIT) +186. github-from-package (MIT) +187. github-markdown-css (MIT) +188. glob-parent (ISC) +189. glob (ISC) +190. global-agent (BSD-3-Clause) +191. global-tunnel-ng (BSD-3-Clause) +192. globalthis (MIT) +193. got (MIT) +194. graceful-fs (ISC) +195. graphlib (MIT) +196. has-unicode (ISC) +197. he (MIT) +198. html-minifier (MIT) +199. html-tags (MIT) +200. http-cache-semantics (BSD-2-Clause) +201. https-proxy-agent (MIT) +202. iconv-lite (MIT) +203. ieee754 (BSD-3-Clause) +204. inflight (ISC) +205. inherits (ISC) +206. ini (ISC) +207. is-array (MIT) +208. is-binary-path (MIT) +209. is-extglob (MIT) +210. is-fullwidth-code-point (MIT) +211. is-glob (MIT) +212. is-number (MIT) +213. is-obj (MIT) +214. is-plain-object (MIT) +215. is-regexp (MIT) +216. is-stream (MIT) +217. isarray (MIT) +218. iselement (MIT) +219. isexe (ISC) +220. iso-639-1 (MIT) +221. isobject (MIT) +222. joplin-turndown-plugin-gfm (MIT) +223. json-buffer (MIT) +224. json-schema-traverse (MIT) +225. json-schema-typed (BSD-2-Clause) +226. json-stringify-pretty-compact (MIT) +227. json-stringify-safe (ISC) +228. jsonfile (MIT) +229. katex (MIT) +230. keyboard-layout (MIT) +231. keyboardevents-areequal (MIT) +232. keytar (MIT) +233. keyv (MIT) +234. khroma (MIT) +235. locate-path (MIT) +236. lodash.escape (MIT) +237. lodash.forown (MIT) +238. lodash.get (MIT) +239. lodash.kebabcase (MIT) +240. lodash.remove (MIT) +241. lodash.uniq (MIT) +242. lodash (MIT) +243. lower-case (MIT) +244. lowercase-keys (MIT) +245. lru-cache (ISC) +246. macos-release (MIT) +247. matcher (MIT) +248. mermaid (MIT) +249. mimic-fn (MIT) +250. mimic-response (MIT) +251. minify (MIT) +252. minimatch (ISC) +253. minimist (MIT) +254. mkdirp-classic (MIT) +255. mkdirp (MIT) +256. moment-mini (MIT) +257. ms (MIT) +258. nan (MIT) +259. napi-build-utils (MIT) +260. nice-try (MIT) +261. no-case (MIT) +262. node-abi (MIT) +263. node-addon-api (MIT) +264. node-fetch (MIT) +265. noop-logger (MIT) +266. normalize-path (MIT) +267. normalize-url (MIT) +268. normalize-wheel (BSD-3-Clause) +269. npm-conf (MIT) +270. npm-run-path (MIT) +271. npmlog (ISC) +272. number-is-nan (MIT) +273. object-assign (MIT) +274. object-keys (MIT) +275. once (ISC) +276. onetime (MIT) +277. os-name (MIT) +278. p-cancelable (MIT) +279. p-finally (MIT) +280. p-limit (MIT) +281. p-locate (MIT) +282. p-throttle (MIT) +283. p-try (MIT) +284. param-case (MIT) +285. parse-sel (MIT) +286. path-exists (MIT) +287. path-is-absolute (MIT) +288. path-key (MIT) +289. path-parse (MIT) +290. pend (MIT) +291. picomatch (MIT) +292. pify (MIT) +293. pkg-up (MIT) +294. plist (MIT) +295. popper.js (MIT) +296. prebuild-install (MIT) +297. prepend-http (MIT) +298. prismjs (MIT) +299. process-nextick-args (MIT) +300. progress (MIT) +301. proto-list (ISC) +302. proxy-from-env (MIT) +303. pump (MIT) +304. punycode (MIT) +305. querystring (MIT) +306. querystringify (MIT) +307. raphael (MIT) +308. rc ((BSD-2-Clause OR MIT OR Apache-2.0)) +309. readable-stream (MIT) +310. readdirp (MIT) +311. regenerator-runtime (MIT) +312. relateurl (MIT) +313. require-directory (MIT) +314. require-from-string (MIT) +315. requires-port (MIT) +316. resize-observer-polyfill (MIT) +317. resolve (MIT) +318. responselike (MIT) +319. roarr (BSD-3-Clause) +320. rw (BSD-3-Clause) +321. safe-buffer (MIT) +322. safer-buffer (MIT) +323. semver-compare (MIT) +324. semver (ISC) +325. serialize-error (MIT) +326. set-blocking (ISC) +327. shebang-command (MIT) +328. shebang-regex (MIT) +329. signal-exit (ISC) +330. simple-concat (MIT) +331. simple-get (MIT) +332. snabbdom-to-html (MIT) +333. snabbdom (MIT) +334. source-map-support (MIT) +335. source-map (BSD-3-Clause) +336. sprintf-js (BSD-3-Clause) +337. string-width (MIT) +338. string_decoder (MIT) +339. strip-ansi (MIT) +340. strip-eof (MIT) +341. strip-json-comments (MIT) +342. stylis (MIT) +343. sumchecker (Apache-2.0) +344. tar-fs (MIT) +345. tar-stream (MIT) +346. terser (BSD-2-Clause) +347. throttle-debounce (MIT) +348. ticky (MIT) +349. to-readable-stream (MIT) +350. to-regex-range (MIT) +351. topojson-client (ISC) +352. try-catch (MIT) +353. try-to-catch (MIT) +354. tslib (0BSD) +355. tunnel-agent (Apache-2.0) +356. tunnel (MIT) +357. turndown (MIT) +358. type-fest ((MIT OR CC0-1.0)) +359. type-func (MIT) +360. typedarray (MIT) +361. uglify-js (BSD-2-Clause) +362. underscore (MIT) +363. universal-user-agent (ISC) +364. universalify (MIT) +365. unsplash-js (MIT) +366. upper-case (MIT) +367. uri-js (BSD-2-Clause) +368. url-parse-lax (MIT) +369. url-parse (MIT) +370. util-deprecate (MIT) +371. vega-canvas (BSD-3-Clause) +372. vega-crossfilter (BSD-3-Clause) +373. vega-dataflow (BSD-3-Clause) +374. vega-embed (BSD-3-Clause) +375. vega-encode (BSD-3-Clause) +376. vega-event-selector (BSD-3-Clause) +377. vega-expression (BSD-3-Clause) +378. vega-force (BSD-3-Clause) +379. vega-format (BSD-3-Clause) +380. vega-functions (BSD-3-Clause) +381. vega-geo (BSD-3-Clause) +382. vega-hierarchy (BSD-3-Clause) +383. vega-label (BSD-3-Clause) +384. vega-lite (BSD-3-Clause) +385. vega-loader (BSD-3-Clause) +386. vega-parser (BSD-3-Clause) +387. vega-projection (BSD-3-Clause) +388. vega-regression (BSD-3-Clause) +389. vega-runtime (BSD-3-Clause) +390. vega-scale (BSD-3-Clause) +391. vega-scenegraph (BSD-3-Clause) +392. vega-schema-url-parser (BSD-3-Clause) +393. vega-selections (BSD-3-Clause) +394. vega-statistics (BSD-3-Clause) +395. vega-themes (BSD-3-Clause) +396. vega-time (BSD-3-Clause) +397. vega-tooltip (BSD-3-Clause) +398. vega-transforms (BSD-3-Clause) +399. vega-typings (BSD-3-Clause) +400. vega-util (BSD-3-Clause) +401. vega-view-transforms (BSD-3-Clause) +402. vega-view (BSD-3-Clause) +403. vega-voronoi (BSD-3-Clause) +404. vega-wordcloud (BSD-3-Clause) +405. vega (BSD-3-Clause) +406. vscode-ripgrep (MIT) +407. vue-electron (ISC) +408. vue-router (MIT) +409. vue (MIT) +410. vuex (MIT) +411. webfontloader (Apache-2.0) +412. which-pm-runs (MIT) +413. which (ISC) +414. wide-align (ISC) +415. windows-release (MIT) +416. wrap-ansi (MIT) +417. wrappy (ISC) +418. xmlbuilder (MIT) +419. y18n (ISC) +420. yallist (ISC) +421. yargs-parser (ISC) +422. yargs (MIT) +423. yauzl (MIT) +424. hunspell (LGPL 2.1) ------------------------------------------------- @@ -421,6 +463,382 @@ SOFTWARE. +# @electron/get (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Contributors to the Electron project + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +# @electron/remote (MIT) +------------------------------------------------- +# @electron/remote + +`@electron/remote` is an [Electron](https://electronjs.org) module that bridges +JavaScript objects from the main process to the renderer process. This lets you +access main-process-only objects as if they were available in the renderer +process. + +> ⚠️ **Warning!** This module has [many subtle +> pitfalls][remote-considered-harmful]. There is almost always a better way to +> accomplish your task than using this module. For example, [`ipcRenderer.invoke`](https://www.electronjs.org/docs/api/ipc-renderer#ipcrendererinvokechannel-args) can serve many common use cases. + +`@electron/remote` is a replacement for the built-in `remote` module in +Electron, which is deprecated and will eventually be removed. + +## Migrating from `remote` + +> **NOTE:** `@electron/remote` requires Electron 10 or higher. + +There are three things you need to do to migrate from the built-in `remote` +module to `@electron/remote`. + +First, you need to install it from NPM: + +```shell +$ npm install --save @electron/remote +``` + +Second, `@electron/remote/main` must be initialized in the main +process before it can be used from the renderer: + +```javascript +// in the main process: +require('@electron/remote/main').initialize() +``` + +Third, `require('electron').remote` in the renderer process must be +replaced with `require('@electron/remote')`. + +```javascript +// in the renderer process: + +// Before +const { BrowserWindow } = require('electron').remote + +// After +const { BrowserWindow } = require('@electron/remote') +``` + +**Note:** Since this is requiring a module through npm rather than a built-in +module, if you're using `remote` from a sandboxed process, you'll need to +configure your bundler appropriately to package the code of `@electron/remote` +in the preload script. Of course, [using `@electron/remote` makes the sandbox +much less effective][remote-considered-harmful]. + +**Note:** In `electron >= 14.0.0`, you must use the new `enable` API to enable the remote module for each desired `WebContents` separately: `require("@electron/remote/main").enable(webContents)`. + +In `electron < 14.0.0`, `@electron/remote` respects the `enableRemoteModule` WebPreferences +value. You must pass `{ webPreferences: { enableRemoteModule: true } }` to +the constructor of `BrowserWindow`s that should be granted permission to use +`@electron/remote`. + +# API Reference + +The `remote` module provides a simple way to do inter-process communication +(IPC) between the renderer process (web page) and the main process. + +In Electron, GUI-related modules (such as `dialog`, `menu` etc.) are only +available in the main process, not in the renderer process. In order to use them +from the renderer process, the `ipc` module is necessary to send inter-process +messages to the main process. With the `remote` module, you can invoke methods +of the main process object without explicitly sending inter-process messages, +similar to Java's [RMI][rmi]. An example of creating a browser window from a +renderer process: + +```javascript +const { BrowserWindow } = require('@electron/remote') +let win = new BrowserWindow({ width: 800, height: 600 }) +win.loadURL('https://github.com') +``` + +In order for this to work, you first need to initialize the main-process side +of the remote module: + +```javascript +// in the main process: +require('@electron/remote/main').initialize() +``` + +**Note:** In `electron >= 14.0.0` the remote module is disabled by default for any `WebContents` instance and is only enabled for specified `WebContents` after explicitly calling `require("@electron/remote/main").enable(webContents)`. + +In `electron < 14.0.0` the remote module can be disabled for security reasons in the following contexts: +- [`BrowserWindow`](browser-window.md) - by setting the `enableRemoteModule` option to `false`. +- [``](webview-tag.md) - by setting the `enableremotemodule` attribute to `false`. + +## Remote Objects + +Each object (including functions) returned by the `remote` module represents an +object in the main process (we call it a remote object or remote function). +When you invoke methods of a remote object, call a remote function, or create +a new object with the remote constructor (function), you are actually sending +synchronous inter-process messages. + +In the example above, both `BrowserWindow` and `win` were remote objects and +`new BrowserWindow` didn't create a `BrowserWindow` object in the renderer +process. Instead, it created a `BrowserWindow` object in the main process and +returned the corresponding remote object in the renderer process, namely the +`win` object. + +**Note:** Only [enumerable properties][enumerable-properties] which are present +when the remote object is first referenced are accessible via remote. + +**Note:** Arrays and Buffers are copied over IPC when accessed via the `remote` +module. Modifying them in the renderer process does not modify them in the main +process and vice versa. + +## Lifetime of Remote Objects + +Electron makes sure that as long as the remote object in the renderer process +lives (in other words, has not been garbage collected), the corresponding object +in the main process will not be released. When the remote object has been +garbage collected, the corresponding object in the main process will be +dereferenced. + +If the remote object is leaked in the renderer process (e.g. stored in a map but +never freed), the corresponding object in the main process will also be leaked, +so you should be very careful not to leak remote objects. + +Primary value types like strings and numbers, however, are sent by copy. + +## Passing callbacks to the main process + +Code in the main process can accept callbacks from the renderer - for instance +the `remote` module - but you should be extremely careful when using this +feature. + +First, in order to avoid deadlocks, the callbacks passed to the main process +are called asynchronously. You should not expect the main process to +get the return value of the passed callbacks. + +For instance you can't use a function from the renderer process in an +`Array.map` called in the main process: + +```javascript +// main process mapNumbers.js +exports.withRendererCallback = (mapper) => { + return [1, 2, 3].map(mapper) +} + +exports.withLocalCallback = () => { + return [1, 2, 3].map(x => x + 1) +} +``` + +```javascript +// renderer process +const mapNumbers = require('@electron/remote').require('./mapNumbers') +const withRendererCb = mapNumbers.withRendererCallback(x => x + 1) +const withLocalCb = mapNumbers.withLocalCallback() + +console.log(withRendererCb, withLocalCb) +// [undefined, undefined, undefined], [2, 3, 4] +``` + +As you can see, the renderer callback's synchronous return value was not as +expected, and didn't match the return value of an identical callback that lives +in the main process. + +Second, the callbacks passed to the main process will persist until the +main process garbage-collects them. + +For example, the following code seems innocent at first glance. It installs a +callback for the `close` event on a remote object: + +```javascript +require('@electron/remote').getCurrentWindow().on('close', () => { + // window was closed... +}) +``` + +But remember the callback is referenced by the main process until you +explicitly uninstall it. If you do not, each time you reload your window the +callback will be installed again, leaking one callback for each restart. + +To make things worse, since the context of previously installed callbacks has +been released, exceptions will be raised in the main process when the `close` +event is emitted. + +To avoid this problem, ensure you clean up any references to renderer callbacks +passed to the main process. This involves cleaning up event handlers, or +ensuring the main process is explicitly told to dereference callbacks that came +from a renderer process that is exiting. + +## Accessing built-in modules in the main process + +The built-in modules in the main process are added as getters in the `remote` +module, so you can use them directly like the `electron` module. + +```javascript +const app = require('@electron/remote').app +console.log(app) +``` + +## Methods + +The `remote` module has the following methods: + +### `remote.require(module)` + +* `module` String + +Returns `any` - The object returned by `require(module)` in the main process. +Modules specified by their relative path will resolve relative to the entrypoint +of the main process. + +e.g. + +```sh +project/ +├── main +│ ├── foo.js +│ └── index.js +├── package.json +└── renderer + └── index.js +``` + +```js +// main process: main/index.js +const { app } = require('@electron/remote') +app.whenReady().then(() => { /* ... */ }) +``` + +```js +// some relative module: main/foo.js +module.exports = 'bar' +``` + +```js +// renderer process: renderer/index.js +const foo = require('@electron/remote').require('./foo') // bar +``` + +### `remote.getCurrentWindow()` + +Returns `BrowserWindow` - The window to which this web page belongs. + +**Note:** Do not use `removeAllListeners` on `BrowserWindow`. Use of this can +remove all [`blur`](https://developer.mozilla.org/en-US/docs/Web/Events/blur) +listeners, disable click events on touch bar buttons, and other unintended +consequences. + +### `remote.getCurrentWebContents()` + +Returns `WebContents` - The web contents of this web page. + +### `remote.getGlobal(name)` + +* `name` String + +Returns `any` - The global variable of `name` (e.g. `global[name]`) in the main +process. + +## Properties + +### `remote.process` _Readonly_ + +A `NodeJS.Process` object. The `process` object in the main process. This is the same as +`remote.getGlobal('process')` but is cached. + +# Overriding exposed objects + +Without filtering, `@electron/remote` will provide access to any JavaScript +object that any renderer requests. In order to control what can be accessed, +`@electron/remote` provides an opportunity to the app to return a custom result +for any of `getGlobal`, `require`, `getCurrentWindow`, `getCurrentWebContents`, +or any of the builtin module properties. + +The following events will be emitted first on the `app` Electron module, and +then on the specific `WebContents` which requested the object. When emitted on +the `app` module, the first parameter after the `Event` object will be the +`WebContents` which originated the request. If any handler calls +`preventDefault`, the request will be denied. If a `returnValue` parameter is +set on the result, then that value will be returned to the renderer instead of +the default. + +## Events + +### Event: 'remote-require' + +Returns: + +* `event` Event +* `moduleName` String + +Emitted when `remote.require()` is called in the renderer process of `webContents`. +Calling `event.preventDefault()` will prevent the module from being returned. +Custom value can be returned by setting `event.returnValue`. + +### Event: 'remote-get-global' + +Returns: + +* `event` Event +* `globalName` String + +Emitted when `remote.getGlobal()` is called in the renderer process of `webContents`. +Calling `event.preventDefault()` will prevent the global from being returned. +Custom value can be returned by setting `event.returnValue`. + +### Event: 'remote-get-builtin' + +Returns: + +* `event` Event +* `moduleName` String + +Emitted when `remote.getBuiltin()` is called in the renderer process of +`webContents`, including when a builtin module is accessed as a property (e.g. +`require("@electron/remote").BrowserWindow`). +Calling `event.preventDefault()` will prevent the module from being returned. +Custom value can be returned by setting `event.returnValue`. + +### Event: 'remote-get-current-window' + +Returns: + +* `event` Event + +Emitted when `remote.getCurrentWindow()` is called in the renderer process of `webContents`. +Calling `event.preventDefault()` will prevent the object from being returned. +Custom value can be returned by setting `event.returnValue`. + +### Event: 'remote-get-current-web-contents' + +Returns: + +* `event` Event + +Emitted when `remote.getCurrentWebContents()` is called in the renderer process of `webContents`. +Calling `event.preventDefault()` will prevent the object from being returned. +Custom value can be returned by setting `event.returnValue`. + +[rmi]: https://en.wikipedia.org/wiki/Java_remote_method_invocation +[enumerable-properties]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties +[remote-considered-harmful]: https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31 + + + # @hfelix/electron-localshortcut (MIT) ------------------------------------------------- The MIT License (MIT) @@ -536,6 +954,32 @@ THE SOFTWARE. +# @octokit/core (MIT) +------------------------------------------------- +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + # @octokit/endpoint (MIT) ------------------------------------------------- The MIT License @@ -562,6 +1006,44 @@ THE SOFTWARE. +# @octokit/graphql (MIT) +------------------------------------------------- +The MIT License + +Copyright (c) 2018 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +# @octokit/openapi-types (MIT) +------------------------------------------------- +Copyright 2020 Gregor Martynus + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # @octokit/plugin-paginate-rest (MIT) ------------------------------------------------- MIT License Copyright (c) 2019 Octokit contributors @@ -689,6 +1171,46 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# @sindresorhus/is (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +# @szmarczak/http-timer (MIT) +------------------------------------------------- +MIT License + +Copyright (c) 2018 Szymon Marczak + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + # @types/clone (MIT) ------------------------------------------------- MIT License @@ -715,54 +1237,28 @@ MIT License -# @types/color-name (MIT) -------------------------------------------------- -MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE - - - # @types/fast-json-stable-stringify (MIT) ------------------------------------------------- -MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE @@ -943,11 +1439,37 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# ajv-formats (MIT) +------------------------------------------------- +MIT License + +Copyright (c) 2020 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + # ajv (MIT) ------------------------------------------------- The MIT License (MIT) -Copyright (c) 2015-2017 Evgeny Poberezkin +Copyright (c) 2015-2021 Evgeny Poberezkin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -1077,10 +1599,9 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE # arg (MIT) ------------------------------------------------- -MIT License +The MIT License (MIT) -Copyright (c) 2017-2019 Zeit, Inc. -Copyright (c) 2020 Vercel, Inc. +Copyright (c) 2021 Vercel, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -1277,29 +1798,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# atob-lite (MIT) -------------------------------------------------- -This software is released under the MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - # atomically (MIT) ------------------------------------------------- The MIT License (MIT) @@ -1725,6 +2223,19 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# boolean (MIT) +------------------------------------------------- +The MIT License (MIT) +Copyright (c) 2014-2019 the native web. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # brace-expansion (MIT) ------------------------------------------------- MIT License @@ -1859,26 +2370,27 @@ SOFTWARE. -# btoa-lite (MIT) +# buffer-crc32 (MIT) ------------------------------------------------- -This software is released under the MIT license: +The MIT License -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, +Copyright (c) 2013 Brian J. Brennan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the +Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -1934,6 +2446,32 @@ THE SOFTWARE. +# cacheable-request (MIT) +------------------------------------------------- +MIT License + +Copyright (c) 2017 Luke Childs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + # camel-case (MIT) ------------------------------------------------- The MIT License (MIT) @@ -2464,32 +3002,6 @@ DEALINGS IN THE SOFTWARE. -# clipboard (MIT) -------------------------------------------------- -MIT License - -Copyright (c) Zeno Rocha - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - # cliui (ISC) ------------------------------------------------- Copyright (c) 2015, Contributors @@ -2523,6 +3035,32 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# clone-response (MIT) +------------------------------------------------- +MIT License + +Copyright (c) 2017 Luke Childs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + # clone (MIT) ------------------------------------------------- Copyright © 2011-2015 Paul Vorbach @@ -2712,6 +3250,35 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# concat-stream (MIT) +------------------------------------------------- +The MIT License + +Copyright (c) 2013 Max Ogden + +Permission is hereby granted, free of charge, +to any person obtaining a copy of this software and +associated documentation files (the "Software"), to +deal in the Software without restriction, including +without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom +the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # conf (MIT) ------------------------------------------------- MIT License @@ -2726,6 +3293,33 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# config-chain (MIT) +------------------------------------------------- +Copyright (c) 2011 Dominic Tarr + +Permission is hereby granted, free of charge, +to any person obtaining a copy of this software and +associated documentation files (the "Software"), to +deal in the Software without restriction, including +without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom +the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # console-control-strings (ISC) ------------------------------------------------- Copyright (c) 2014, Rebecca Turner @@ -4307,15 +4901,27 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # decompress-response (MIT) ------------------------------------------------- -MIT License +`The MIT License (MIT) Copyright (c) Sindre Sorhus (sindresorhus.com) -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. @@ -4370,6 +4976,58 @@ THE SOFTWARE. +# defer-to-connect (MIT) +------------------------------------------------- +MIT License + +Copyright (c) 2018 Szymon Marczak + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +# define-properties (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (C) 2015 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + # delaunator (ISC) ------------------------------------------------- ISC License @@ -4390,110 +5048,6 @@ THIS SOFTWARE. -# delegate (MIT) -------------------------------------------------- -# delegate - -Lightweight event delegation. - -## Install - -You can get it on npm. - -``` -npm install delegate --save -``` - -If you're not into package management, just [download a ZIP](https://github.com/zenorocha/delegate/archive/master.zip) file. - -## Setup - -###### Node (Browserify) - -```js -var delegate = require('delegate'); -``` - -###### Browser (Standalone) - -```html - -``` - -## Usage - -### Add event delegation - -#### With the default base (`document`) - -```js -delegate('.btn', 'click', function(e) { - console.log(e.delegateTarget); -}, false); -``` - -#### With an element as base - -```js -delegate(document.body, '.btn', 'click', function(e) { - console.log(e.delegateTarget); -}, false); -``` - -#### With a selector (of existing elements) as base - -```js -delegate('.container', '.btn', 'click', function(e) { - console.log(e.delegateTarget); -}, false); -``` - -#### With an array/array-like of elements as base - -```js -delegate(document.querySelectorAll('.container'), '.btn', 'click', function(e) { - console.log(e.delegateTarget); -}, false); -``` - -### Remove event delegation - -#### With a single base element (default or specified) - -```js -var delegation = delegate(document.body, '.btn', 'click', function(e) { - console.log(e.delegateTarget); -}, false); - -delegation.destroy(); -``` - -#### With multiple elements (via selector or array) - -Note: selectors are always treated as multiple elements, even if one or none are matched. `delegate()` will return an array. - -```js -var delegations = delegate('.container', '.btn', 'click', function(e) { - console.log(e.delegateTarget); -}, false); - -delegations.forEach(function (delegation) { - delegation.destroy(); -}); -``` - -## Browser Support - -| Chrome logo | Edge logo | Firefox logo | Internet Explorer logo | Opera logo | Safari logo | -|:---:|:---:|:---:|:---:|:---:|:---:| -| Latest ✔ | Latest ✔ | Latest ✔ | 9+ ✔ | Latest ✔ | Latest ✔ | - -## License - -[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha - - - # delegates (MIT) ------------------------------------------------- Copyright (c) 2015 TJ Holowaychuk @@ -4745,6 +5299,32 @@ Apache License +# detect-node (ISC) +------------------------------------------------- +MIT License + +Copyright (c) 2017 Ilya Kantor + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + # dom-autoscroller (MIT) ------------------------------------------------- The MIT License (MIT) @@ -5257,7 +5837,7 @@ Exhibit B - “Incompatible With Secondary Licenses” Notice ------------------------------------------------- MIT License -Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: @@ -5292,6 +5872,37 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# duplexer3 (BSD-3-Clause) +------------------------------------------------- +Copyright (c) 2013, Deoxxa Development +====================================== +All rights reserved. +-------------------- + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of Deoxxa Development nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY DEOXXA DEVELOPMENT ''AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL DEOXXA DEVELOPMENT BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + # electron-is-accelerator (MIT) ------------------------------------------------- MIT License @@ -5385,6 +5996,32 @@ THE SOFTWARE. +# electron (MIT) +------------------------------------------------- +Copyright (c) Electron contributors +Copyright (c) 2013-2020 GitHub Inc. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # element-resize-detector (MIT) ------------------------------------------------- The MIT License (MIT) @@ -5462,6 +6099,33 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# encodeurl (MIT) +------------------------------------------------- +(The MIT License) + +Copyright (c) 2016 Douglas Christopher Wilson + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # end-of-stream (MIT) ------------------------------------------------- The MIT License (MIT) @@ -5528,6 +6192,32 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# es6-error (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2015 Ben Youngblood + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + # escalade (MIT) ------------------------------------------------- MIT License @@ -5542,6 +6232,20 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# escape-string-regexp (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # eve-raphael (Apache*) ------------------------------------------------- Apache License @@ -5827,6 +6531,34 @@ THE SOFTWARE. +# extract-zip (BSD-2-Clause) +------------------------------------------------- +Copyright (c) 2014 Max Ogden and other contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + # fast-deep-equal (MIT) ------------------------------------------------- MIT License @@ -5857,7 +6589,7 @@ SOFTWARE. ------------------------------------------------- (The MIT License) -Copyright (c) 2013, 2014 Joachim Wester +Copyright (c) 2013, 2014, 2020 Joachim Wester Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -5906,29 +6638,29 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# file-icons-js (MIT) +# fd-slicer (MIT) ------------------------------------------------- -#The MIT License (MIT) +Copyright (c) 2014 Andrew Kelley -###Copyright (c) 2017 Websemantics +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation files +(the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. @@ -6404,6 +7136,33 @@ the licensed code: +# fsevents (MIT) +------------------------------------------------- +MIT License +----------- + +Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + # fuzzaldrin (MIT) ------------------------------------------------- Copyright (c) 2009-2011 Joshaven Potter @@ -6548,101 +7307,97 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +## Glob Logo + +Glob's logo created by Tanya Brassie , licensed +under a Creative Commons Attribution-ShareAlike 4.0 International License +https://creativecommons.org/licenses/by-sa/4.0/ -# good-listener (MIT) + +# global-agent (BSD-3-Clause) ------------------------------------------------- -# good-listener +Copyright (c) 2019, Gajus Kuizinas (http://gajus.com/) +All rights reserved. -[![Build Status](http://img.shields.io/travis/zenorocha/good-listener/master.svg?style=flat)](https://travis-ci.org/zenorocha/good-listener) +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the Gajus Kuizinas (http://gajus.com/) nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. -> A more versatile way of adding & removing event listeners. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL ANUARY BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -![good listener](https://cloud.githubusercontent.com/assets/398893/10718224/dfc25f6c-7b2a-11e5-9d3d-75b35e8603c8.jpg) -## Install -You can get it on npm. +# global-tunnel-ng (BSD-3-Clause) +------------------------------------------------- +Copyright (c) 2013, GoInstant Inc., a salesforce.com company +All rights reserved. -``` -npm install good-listener --save -``` +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -Or bower, too. +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -``` -bower install good-listener --save -``` +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. -If you're not into package management, just [download a ZIP](https://github.com/zenorocha/good-listener/archive/master.zip) file. +* Neither the name of salesforce.com, nor GoInstant, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. -## Setup +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -###### Node (Browserify) -```js -var listen = require('good-listener'); -``` -###### Browser (Standalone) +# globalthis (MIT) +------------------------------------------------- +The MIT License (MIT) -```html - -``` +Copyright (c) 2016 Jordan Harband -## Usage +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -### Add an event listener +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -By passing a string selector [(see full demo)](https://github.com/zenorocha/good-listener/blob/master/demo/selector.html). +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. -```js -listen('.btn', 'click', function(e) { - console.log(e); -}); -``` -Or by passing a HTML element [(see full demo)](https://github.com/zenorocha/good-listener/blob/master/demo/node.html). -```js -var logo = document.getElementById('logo'); +# got (MIT) +------------------------------------------------- +MIT License -listen(logo, 'click', function(e) { - console.log(e); -}); -``` +Copyright (c) Sindre Sorhus (sindresorhus.com) -Or by passing a list of HTML elements [(see full demo)](https://github.com/zenorocha/good-listener/blob/master/demo/nodelist.html). +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -```js -var anchors = document.querySelectorAll('a'); +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -listen(anchors, 'click', function(e) { - console.log(e); -}); -``` - -### Remove an event listener - -By calling the `destroy` function that returned from previous operation [(see full demo)](https://github.com/zenorocha/good-listener/blob/master/demo/destroy.html). - -```js -var listener = listen('.btn', 'click', function(e) { - console.log(e); -}); - -listener.destroy(); -``` - -## Browser Support - -| Chrome logo | Edge logo | Firefox logo | Internet Explorer logo | Opera logo | Safari logo | -|:---:|:---:|:---:|:---:|:---:|:---:| -| Latest ✔ | Latest ✔ | Latest ✔ | 9+ ✔ | Latest ✔ | Latest ✔ | - -## License - -[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -6774,6 +7529,20 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# http-cache-semantics (BSD-2-Clause) +------------------------------------------------- +Copyright 2016-2018 Kornel Lesiński + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + # https-proxy-agent (MIT) ------------------------------------------------- https-proxy-agent @@ -7435,6 +8204,33 @@ SOFTWARE. +# json-buffer (MIT) +------------------------------------------------- +Copyright (c) 2013 Dominic Tarr + +Permission is hereby granted, free of charge, +to any person obtaining a copy of this software and +associated documentation files (the "Software"), to +deal in the Software without restriction, including +without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom +the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # json-schema-traverse (MIT) ------------------------------------------------- MIT License @@ -7518,6 +8314,26 @@ THE SOFTWARE. +# json-stringify-safe (ISC) +------------------------------------------------- +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + + # jsonfile (MIT) ------------------------------------------------- (The MIT License) @@ -7542,7 +8358,7 @@ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHE ------------------------------------------------- The MIT License (MIT) -Copyright (c) 2013-2019 Khan Academy and other contributors +Copyright (c) 2013-2020 Khan Academy and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -7640,6 +8456,32 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# keyv (MIT) +------------------------------------------------- +MIT License + +Copyright (c) 2017 Luke Childs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + # khroma (MIT) ------------------------------------------------- The MIT License (MIT) @@ -7940,58 +8782,6 @@ terms above. -# lodash.set (MIT) -------------------------------------------------- -Copyright jQuery Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. - - - # lodash.uniq (MIT) ------------------------------------------------- Copyright jQuery Foundation and other contributors @@ -8122,6 +8912,32 @@ THE SOFTWARE. +# lowercase-keys (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + # lru-cache (ISC) ------------------------------------------------- The ISC License @@ -8156,11 +8972,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI -# make-dir (MIT) +# matcher (MIT) ------------------------------------------------- MIT License -Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: @@ -8214,7 +9030,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ------------------------------------------------- MIT License -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: @@ -8608,6 +9424,20 @@ THE SOFTWARE. +# normalize-url (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # normalize-wheel (BSD-3-Clause) ------------------------------------------------- BSD License @@ -8643,6 +9473,20 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# npm-conf (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Kevin Mårtensson (github.com/kevva) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # npm-run-path (MIT) ------------------------------------------------- The MIT License (MIT) @@ -8741,12 +9585,11 @@ THE SOFTWARE. -# octokit-pagination-methods (MIT) +# object-keys (MIT) ------------------------------------------------- -The MIT License +The MIT License (MIT) -Copyright (c) 2012 Cloud9 IDE, Inc. (Mike de Boer) -Copyright (c) 2017-2018 Octokit contributors +Copyright (C) 2013 Jordan Harband Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -8792,7 +9635,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ------------------------------------------------- MIT License -Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: @@ -8816,6 +9659,20 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# p-cancelable (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # p-finally (MIT) ------------------------------------------------- The MIT License (MIT) @@ -9074,6 +9931,34 @@ SOFTWARE. +# pend (MIT) +------------------------------------------------- +The MIT License (Expat) + +Copyright (c) 2014 Andrew Kelley + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation files +(the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + # picomatch (MIT) ------------------------------------------------- The MIT License (MIT) @@ -9100,6 +9985,20 @@ THE SOFTWARE. +# pify (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # pkg-up (MIT) ------------------------------------------------- MIT License @@ -9394,6 +10293,20 @@ THE SOFTWARE. +# prepend-http (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # prismjs (MIT) ------------------------------------------------- MIT LICENSE @@ -9444,6 +10357,53 @@ SOFTWARE.** +# progress (MIT) +------------------------------------------------- +(The MIT License) + +Copyright (c) 2017 TJ Holowaychuk + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +# proto-list (ISC) +------------------------------------------------- +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + + # proxy-from-env (MIT) ------------------------------------------------- The MIT License @@ -9782,6 +10742,32 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# require-from-string (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) Vsevolod Strukchinsky (github.com/floatdrop) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + # requires-port (MIT) ------------------------------------------------- The MIT License (MIT) @@ -9860,23 +10846,56 @@ SOFTWARE. -# rimraf (ISC) +# responselike (MIT) ------------------------------------------------- -The ISC License +Copyright (c) 2017 Luke Childs -Copyright (c) Isaac Z. Schlueter and Contributors +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +# roarr (BSD-3-Clause) +------------------------------------------------- +Copyright (c) 2019, Gajus Kuizinas (http://gajus.com/) +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the Gajus Kuizinas (http://gajus.com/) nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL ANUARY BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @@ -9963,57 +10982,26 @@ SOFTWARE. -# select (MIT) +# semver-compare (MIT) ------------------------------------------------- -# select +This software is released under the MIT license: -[![Build Status](http://img.shields.io/travis/zenorocha/select/master.svg?style=flat)](https://travis-ci.org/zenorocha/select) +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: -Programmatically select the text of a HTML element. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -## Install - -You can get it on npm. - -``` -npm install select --save -``` - -Or bower, too. - -``` -bower install select --save -``` - -If you're not into package management, just [download a ZIP](https://github.com/zenorocha/select/archive/master.zip) file. - -## Usage - -### Standalone - -```html - -``` - -```js -var input = document.querySelector('input'); -var result = select(input); -``` - -### Browserify - -```js -var select = require('select'); -``` - -```js -var input = document.querySelector('input'); -var result = select(input); -``` - -## License - -[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -10037,6 +11025,20 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# serialize-error (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # set-blocking (ISC) ------------------------------------------------- Copyright (c) 2016, Contributors @@ -10336,6 +11338,35 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# sprintf-js (BSD-3-Clause) +------------------------------------------------- +Copyright (c) 2007-present, Alexandru Mărășteanu +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of this software nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + # string-width (MIT) ------------------------------------------------- The MIT License (MIT) @@ -10518,6 +11549,212 @@ SOFTWARE. +# sumchecker (Apache-2.0) +------------------------------------------------- +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + # tar-fs (MIT) ------------------------------------------------- The MIT License (MIT) @@ -10959,29 +12196,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# tiny-emitter (MIT) +# to-readable-stream (MIT) ------------------------------------------------- -The MIT License (MIT) +MIT License -Copyright (c) 2017 Scott Corgan +Copyright (c) Sindre Sorhus (sindresorhus.com) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -11158,6 +12383,32 @@ END OF TERMS AND CONDITIONS +# tunnel (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2012 Koichi Kobayashi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + # turndown (MIT) ------------------------------------------------- MIT License @@ -11224,6 +12475,46 @@ SOFTWARE. +# typedarray (MIT) +------------------------------------------------- +/* + Copyright (c) 2010, Linden Research, Inc. + Copyright (c) 2012, Joshua Bell + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + $/LicenseInfo$ + */ + +// Original can be found at: +// https://bitbucket.org/lindenlab/llsd +// Modifications by Joshua Bell inexorabletash@gmail.com +// https://github.com/inexorabletash/polyfill + +// ES3/ES5 implementation of the Krhonos Typed Array Specification +// Ref: http://www.khronos.org/registry/typedarray/specs/latest/ +// Date: 2011-02-01 +// +// Variations: +// * Allows typed_array.get/set() as alias for subscripts (typed_array[]) + + + # uglify-js (BSD-2-Clause) ------------------------------------------------- UglifyJS is released under the BSD license: @@ -11260,8 +12551,7 @@ SUCH DAMAGE. # underscore (MIT) ------------------------------------------------- -Copyright (c) 2009-2020 Jeremy Ashkenas, DocumentCloud and Investigative -Reporters & Editors +Copyright (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation @@ -11377,194 +12667,6 @@ THE SOFTWARE. # uri-js (BSD-2-Clause) ------------------------------------------------- -# URI.js - -URI.js is an [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt) compliant, scheme extendable URI parsing/validating/resolving library for all JavaScript environments (browsers, Node.js, etc). -It is also compliant with the IRI ([RFC 3987](http://www.ietf.org/rfc/rfc3987.txt)), IDNA ([RFC 5890](http://www.ietf.org/rfc/rfc5890.txt)), IPv6 Address ([RFC 5952](http://www.ietf.org/rfc/rfc5952.txt)), IPv6 Zone Identifier ([RFC 6874](http://www.ietf.org/rfc/rfc6874.txt)) specifications. - -URI.js has an extensive test suite, and works in all (Node.js, web) environments. It weighs in at 6.2kb (gzipped, 16kb deflated). - -## API - -### Parsing - - URI.parse("uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body"); - //returns: - //{ - // scheme : "uri", - // userinfo : "user:pass", - // host : "example.com", - // port : 123, - // path : "/one/two.three", - // query : "q1=a1&q2=a2", - // fragment : "body" - //} - -### Serializing - - URI.serialize({scheme : "http", host : "example.com", fragment : "footer"}) === "http://example.com/#footer" - -### Resolving - - URI.resolve("uri://a/b/c/d?q", "../../g") === "uri://a/g" - -### Normalizing - - URI.normalize("HTTP://ABC.com:80/%7Esmith/home.html") === "http://abc.com/~smith/home.html" - -### Comparison - - URI.equal("example://a/b/c/%7Bfoo%7D", "eXAMPLE://a/./b/../b/%63/%7bfoo%7d") === true - -### IP Support - - //IPv4 normalization - URI.normalize("//192.068.001.000") === "//192.68.1.0" - - //IPv6 normalization - URI.normalize("//[2001:0:0DB8::0:0001]") === "//[2001:0:db8::1]" - - //IPv6 zone identifier support - URI.parse("//[2001:db8::7%25en1]"); - //returns: - //{ - // host : "2001:db8::7%en1" - //} - -### IRI Support - - //convert IRI to URI - URI.serialize(URI.parse("http://examplé.org/rosé")) === "http://xn--exampl-gva.org/ros%C3%A9" - //convert URI to IRI - URI.serialize(URI.parse("http://xn--exampl-gva.org/ros%C3%A9"), {iri:true}) === "http://examplé.org/rosé" - -### Options - -All of the above functions can accept an additional options argument that is an object that can contain one or more of the following properties: - -* `scheme` (string) - - Indicates the scheme that the URI should be treated as, overriding the URI's normal scheme parsing behavior. - -* `reference` (string) - - If set to `"suffix"`, it indicates that the URI is in the suffix format, and the validator will use the option's `scheme` property to determine the URI's scheme. - -* `tolerant` (boolean, false) - - If set to `true`, the parser will relax URI resolving rules. - -* `absolutePath` (boolean, false) - - If set to `true`, the serializer will not resolve a relative `path` component. - -* `iri` (boolean, false) - - If set to `true`, the serializer will unescape non-ASCII characters as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt). - -* `unicodeSupport` (boolean, false) - - If set to `true`, the parser will unescape non-ASCII characters in the parsed output as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt). - -* `domainHost` (boolean, false) - - If set to `true`, the library will treat the `host` component as a domain name, and convert IDNs (International Domain Names) as per [RFC 5891](http://www.ietf.org/rfc/rfc5891.txt). - -## Scheme Extendable - -URI.js supports inserting custom [scheme](http://en.wikipedia.org/wiki/URI_scheme) dependent processing rules. Currently, URI.js has built in support for the following schemes: - -* http \[[RFC 2616](http://www.ietf.org/rfc/rfc2616.txt)\] -* https \[[RFC 2818](http://www.ietf.org/rfc/rfc2818.txt)\] -* mailto \[[RFC 6068](http://www.ietf.org/rfc/rfc6068.txt)\] -* urn \[[RFC 2141](http://www.ietf.org/rfc/rfc2141.txt)\] -* urn:uuid \[[RFC 4122](http://www.ietf.org/rfc/rfc4122.txt)\] - -### HTTP Support - - URI.equal("HTTP://ABC.COM:80", "http://abc.com/") === true - -### Mailto Support - - URI.parse("mailto:alpha@example.com,bravo@example.com?subject=SUBSCRIBE&body=Sign%20me%20up!"); - //returns: - //{ - // scheme : "mailto", - // to : ["alpha@example.com", "bravo@example.com"], - // subject : "SUBSCRIBE", - // body : "Sign me up!" - //} - - URI.serialize({ - scheme : "mailto", - to : ["alpha@example.com"], - subject : "REMOVE", - body : "Please remove me", - headers : { - cc : "charlie@example.com" - } - }) === "mailto:alpha@example.com?cc=charlie@example.com&subject=REMOVE&body=Please%20remove%20me" - -### URN Support - - URI.parse("urn:example:foo"); - //returns: - //{ - // scheme : "urn", - // nid : "example", - // nss : "foo", - //} - -#### URN UUID Support - - URI.parse("urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6"); - //returns: - //{ - // scheme : "urn", - // nid : "example", - // uuid : "f81d4fae-7dec-11d0-a765-00a0c91e6bf6", - //} - -## Usage - -To load in a browser, use the following tag: - - - -To load in a CommonJS (Node.js) environment, first install with npm by running on the command line: - - npm install uri-js - -Then, in your code, load it using: - - const URI = require("uri-js"); - -If you are writing your code in ES6+ (ESNEXT) or TypeScript, you would load it using: - - import * as URI from "uri-js"; - -Or you can load just what you need using named exports: - - import { parse, serialize, resolve, resolveComponents, normalize, equal, removeDotSegments, pctEncChar, pctDecChars, escapeComponent, unescapeComponent } from "uri-js"; - -## Breaking changes - -### Breaking changes from 3.x - -URN parsing has been completely changed to better align with the specification. Scheme is now always `urn`, but has two new properties: `nid` which contains the Namspace Identifier, and `nss` which contains the Namespace Specific String. The `nss` property will be removed by higher order scheme handlers, such as the UUID URN scheme handler. - -The UUID of a URN can now be found in the `uuid` property. - -### Breaking changes from 2.x - -URI validation has been removed as it was slow, exposed a vulnerabilty, and was generally not useful. - -### Breaking changes from 1.x - -The `errors` array on parsed components is now an `error` string. - -## License ([Simplified BSD](http://en.wikipedia.org/wiki/BSD_licenses#2-clause)) - Copyright 2011 Gary Court. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -11579,6 +12681,20 @@ The views and conclusions contained in the software and documentation are those +# url-parse-lax (MIT) +------------------------------------------------- +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + # url-parse (MIT) ------------------------------------------------- The MIT License (MIT) @@ -13165,19 +14281,6 @@ THE SOFTWARE. -# xmldom (MIT*) -------------------------------------------------- -You can choose any one of those: - -The MIT License (MIT): - -link:http://opensource.org/licenses/MIT - -LGPL: -http://www.gnu.org/licenses/lgpl.html - - - # y18n (ISC) ------------------------------------------------- Copyright (c) 2015, Contributors @@ -13261,6 +14364,32 @@ THE SOFTWARE. +# yauzl (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2014 Josh Wolfe + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + # hunspell (LGPL 2.1) ------------------------------------------------- diff --git a/src/muya/lib/parser/render/renderBlock/renderLeafBlock.js b/src/muya/lib/parser/render/renderBlock/renderLeafBlock.js index 2b5fb25d..a7df8ca2 100644 --- a/src/muya/lib/parser/render/renderBlock/renderLeafBlock.js +++ b/src/muya/lib/parser/render/renderBlock/renderLeafBlock.js @@ -1,6 +1,6 @@ import katex from 'katex' +import prism, { loadedLanguages, transfromAliasToOrigin } from '../../../prism/' import 'katex/dist/contrib/mhchem.min.js' -import prism, { loadedCache, transfromAliasToOrigin } from '../../../prism/' import { CLASS_OR_ID, DEVICE_MEMORY, PREVIEW_DOMPURIFY_CONFIG, HAS_TEXT_BLOCK_REG } from '../../../config' import { tokenizer } from '../../' import { snakeToCamel, sanitize, escapeHtml, getLongUniqueId, getImageInfo } from '../../../utils' @@ -234,7 +234,7 @@ export default function renderLeafBlock (parent, block, activeBlocks, matches, u // transfrom alias to original language const transformedLang = transfromAliasToOrigin([lang])[0] - if (transformedLang && /\S/.test(code) && loadedCache.has(transformedLang)) { + if (transformedLang && /\S/.test(code) && loadedLanguages.has(transformedLang)) { const wrapper = document.createElement('div') wrapper.classList.add(`language-${transformedLang}`) wrapper.innerHTML = code diff --git a/src/muya/lib/prism/index.js b/src/muya/lib/prism/index.js index b008eae9..52574e02 100644 --- a/src/muya/lib/prism/index.js +++ b/src/muya/lib/prism/index.js @@ -1,7 +1,7 @@ import Prism from 'prismjs' import { filter } from 'fuzzaldrin' -import initLoadLanguage, { loadedCache, transfromAliasToOrigin } from './loadLanguage' -import languages from './languages' +import initLoadLanguage, { loadedLanguages, transfromAliasToOrigin } from './loadLanguage' +import { languages } from 'prismjs/components.js' const prism = Prism window.Prism = Prism @@ -44,9 +44,8 @@ loadLanguage('yaml') export { search, loadLanguage, - loadedCache, - transfromAliasToOrigin, - languages + loadedLanguages, + transfromAliasToOrigin } export default prism diff --git a/src/muya/lib/prism/languages.json b/src/muya/lib/prism/languages.json deleted file mode 100644 index c464d62d..00000000 --- a/src/muya/lib/prism/languages.json +++ /dev/null @@ -1,1182 +0,0 @@ -{ - "markup": { - "title": "Markup", - "alias": [ - "html", - "xml", - "svg", - "mathml" - ], - "aliasTitles": { - "html": "HTML", - "xml": "XML", - "svg": "SVG", - "mathml": "MathML" - }, - "option": "default", - "ext": [ - "html" - ] - }, - "css": { - "title": "CSS", - "option": "default", - "peerDependencies": "markup", - "ext": [ - "css" - ] - }, - "clike": { - "title": "C-like", - "option": "default", - "overrideExampleHeader": true, - "ext": [ - "c", - "h", - "ino" - ] - }, - "javascript": { - "title": "JavaScript", - "require": "clike", - "peerDependencies": "markup", - "alias": "js", - "option": "default", - "ext": [ - "js" - ] - }, - "abap": { - "title": "ABAP", - "ext": [ - "absp" - ] - }, - "abnf": { - "title": "Augmented Backus–Naur form", - "ext": [] - }, - "actionscript": { - "title": "ActionScript", - "require": "javascript", - "peerDependencies": "markup", - "ext": [ - "as" - ] - }, - "ada": { - "title": "Ada", - "ext": [] - }, - "apacheconf": { - "title": "Apache Configuration", - "ext": [] - }, - "apl": { - "title": "APL", - "ext": [ - "dyalog", - "apl" - ] - }, - "applescript": { - "title": "AppleScript", - "ext": [] - }, - "arduino": { - "title": "Arduino", - "require": "cpp", - "ext": [] - }, - "arff": { - "title": "ARFF", - "ext": [] - }, - "asciidoc": { - "alias": "adoc", - "title": "AsciiDoc", - "ext": [] - }, - "asm6502": { - "title": "6502 Assembly", - "ext": [] - }, - "aspnet": { - "title": "ASP.NET (C#)", - "require": [ - "markup", - "csharp" - ], - "ext": [] - }, - "autohotkey": { - "title": "AutoHotkey", - "ext": [] - }, - "autoit": { - "title": "AutoIt", - "ext": [] - }, - "bash": { - "title": "Bash", - "alias": "shell", - "aliasTitles": { - "shell": "Shell" - }, - "ext": [ - "sh", - "ksh", - "bash" - ] - }, - "basic": { - "title": "BASIC", - "ext": [] - }, - "batch": { - "title": "Batch", - "ext": [] - }, - "bison": { - "title": "Bison", - "require": "c", - "ext": [] - }, - "bnf": { - "title": "Backus–Naur form", - "alias": "rbnf", - "aliasTitles": { - "rbnf": "Routing Backus–Naur form" - }, - "ext": [] - }, - "brainfuck": { - "title": "Brainfuck", - "ext": [ - "b", - "bf" - ] - }, - "bro": { - "title": "Bro", - "ext": [] - }, - "c": { - "title": "C", - "require": "clike", - "ext": [ - "c", - "h", - "ino" - ] - }, - "csharp": { - "title": "C#", - "require": "clike", - "alias": "dotnet", - "ext": [ - "cs" - ] - }, - "cpp": { - "title": "C++", - "require": "c", - "ext": [ - "cpp", - "c++", - "cc", - "cxx", - "hpp", - "h++", - "hh", - "hxx" - ] - }, - "cil": { - "title": "CIL", - "ext": [] - }, - "coffeescript": { - "title": "CoffeeScript", - "require": "javascript", - "alias": "coffee", - "ext": [ - "coffee" - ] - }, - "cmake": { - "title": "CMake", - "ext": [] - }, - "clojure": { - "title": "Clojure", - "ext": [ - "clj", - "cljc", - "cljx" - ] - }, - "crystal": { - "title": "Crystal", - "require": "ruby", - "ext": [ - "cr" - ] - }, - "csp": { - "title": "Content-Security-Policy", - "ext": [] - }, - "css-extras": { - "title": "CSS Extras", - "require": "css", - "ext": [] - }, - "d": { - "title": "D", - "require": "clike", - "ext": [ - "d" - ] - }, - "dart": { - "title": "Dart", - "require": "clike", - "ext": [ - "dart" - ] - }, - "diff": { - "title": "Diff", - "ext": [ - "diff", - "patch" - ] - }, - "django": { - "title": "Django/Jinja2", - "require": "markup-templating", - "alias": "jinja2", - "ext": [] - }, - "docker": { - "title": "Docker", - "alias": "dockerfile", - "ext": [] - }, - "ebnf": { - "title": "Extended Backus–Naur form", - "ext": [] - }, - "eiffel": { - "title": "Eiffel", - "ext": [ - "e" - ] - }, - "ejs": { - "title": "EJS", - "require": [ - "javascript", - "markup-templating" - ], - "ext": [] - }, - "elixir": { - "title": "Elixir", - "ext": [] - }, - "elm": { - "title": "Elm", - "ext": [ - "elm" - ] - }, - "erb": { - "title": "ERB", - "require": [ - "ruby", - "markup-templating" - ], - "ext": [ - "erb" - ] - }, - "erlang": { - "title": "Erlang", - "ext": [ - "erl" - ] - }, - "fsharp": { - "title": "F#", - "require": "clike", - "ext": [ - "fs" - ] - }, - "flow": { - "title": "Flow", - "require": "javascript", - "ext": [] - }, - "fortran": { - "title": "Fortran", - "ext": [ - "f", - "for", - "f77", - "f90" - ] - }, - "gcode": { - "title": "G-code", - "ext": [] - }, - "gedcom": { - "title": "GEDCOM", - "ext": [] - }, - "gherkin": { - "title": "Gherkin", - "ext": [ - "feature" - ] - }, - "git": { - "title": "Git", - "ext": [] - }, - "glsl": { - "title": "GLSL", - "require": "clike", - "ext": [] - }, - "gml": { - "title": "GameMaker Language", - "alias": "gamemakerlanguage", - "require": "clike", - "ext": [] - }, - "go": { - "title": "Go", - "require": "clike", - "ext": [ - "go" - ] - }, - "graphql": { - "title": "GraphQL", - "ext": [] - }, - "groovy": { - "title": "Groovy", - "require": "clike", - "ext": [ - "groovy", - "gradle" - ] - }, - "haml": { - "title": "Haml", - "require": "ruby", - "peerDependencies": [ - "css", - "coffeescript", - "erb", - "javascript", - "less", - "markdown", - "ruby", - "scss", - "textile" - ], - "ext": [ - "haml" - ] - }, - "handlebars": { - "title": "Handlebars", - "require": "markup-templating", - "ext": [ - "html", - "htm", - "handlebars", - "hbs" - ] - }, - "haskell": { - "title": "Haskell", - "alias": "hs", - "ext": [ - "hs" - ] - }, - "haxe": { - "title": "Haxe", - "require": "clike", - "ext": [ - "hx" - ] - }, - "hcl": { - "title": "HCL", - "ext": [] - }, - "http": { - "title": "HTTP", - "peerDependencies": [ - "javascript", - "markup" - ], - "ext": [] - }, - "hpkp": { - "title": "HTTP Public-Key-Pins", - "ext": [] - }, - "hsts": { - "title": "HTTP Strict-Transport-Security", - "ext": [] - }, - "ichigojam": { - "title": "IchigoJam", - "ext": [] - }, - "icon": { - "title": "Icon", - "ext": [] - }, - "inform7": { - "title": "Inform 7", - "ext": [] - }, - "ini": { - "title": "Ini", - "ext": [ - "properties", - "ini", - "in" - ] - }, - "io": { - "title": "Io", - "ext": [] - }, - "j": { - "title": "J", - "ext": [] - }, - "java": { - "title": "Java", - "require": "clike", - "ext": [ - "java" - ] - }, - "javadoc": { - "title": "JavaDoc", - "require": [ - "markup", - "java", - "javadoclike" - ], - "peerDependencies": [ - "scala" - ], - "ext": [] - }, - "javadoclike": { - "title": "JavaDoc-like", - "peerDependencies": [ - "java", - "javascript", - "php" - ], - "ext": [] - }, - "javastacktrace": { - "title": "Java stack trace", - "ext": [] - }, - "jolie": { - "title": "Jolie", - "require": "clike", - "ext": [] - }, - "jsdoc": { - "title": "JSDoc", - "require": [ - "javascript", - "javadoclike" - ], - "peerDependencies": [ - "actionscript", - "coffeescript" - ], - "ext": [] - }, - "js-extras": { - "title": "JS Extras", - "require": "javascript", - "peerDependencies": [ - "actionscript", - "coffeescript", - "flow", - "n4js", - "typescript" - ], - "ext": [] - }, - "json": { - "title": "JSON", - "ext": [ - "json", - "map" - ] - }, - "jsonp": { - "title": "JSONP", - "require": "json", - "ext": [] - }, - "json5": { - "title": "JSON5", - "require": "json", - "ext": [] - }, - "julia": { - "title": "Julia", - "ext": [ - "jl" - ] - }, - "keyman": { - "title": "Keyman", - "ext": [] - }, - "kotlin": { - "title": "Kotlin", - "require": "clike", - "ext": [ - "kt" - ] - }, - "latex": { - "title": "LaTeX", - "alias": [ - "math" - ], - "ext": [ - "text", - "ltx", - "tex" - ] - }, - "less": { - "title": "Less", - "require": "css", - "ext": [ - "less" - ] - }, - "liquid": { - "title": "Liquid", - "ext": [] - }, - "lisp": { - "title": "Lisp", - "alias": [ - "emacs", - "elisp", - "emacs-lisp" - ], - "ext": [ - "cl", - "lisp", - "el" - ] - }, - "livescript": { - "title": "LiveScript", - "ext": [ - "ls" - ] - }, - "lolcode": { - "title": "LOLCODE", - "ext": [] - }, - "lua": { - "title": "Lua", - "ext": [ - "lua" - ] - }, - "makefile": { - "title": "Makefile", - "ext": [] - }, - "markdown": { - "title": "Markdown", - "require": "markup", - "alias": "md", - "ext": [ - "markdown", - "md", - "mkd" - ] - }, - "markup-templating": { - "title": "Markup templating", - "require": "markup", - "ext": [] - }, - "matlab": { - "title": "MATLAB", - "ext": [] - }, - "mel": { - "title": "MEL", - "ext": [] - }, - "mizar": { - "title": "Mizar", - "ext": [] - }, - "monkey": { - "title": "Monkey", - "ext": [] - }, - "n1ql": { - "title": "N1QL", - "ext": [] - }, - "n4js": { - "title": "N4JS", - "require": "javascript", - "peerDependencies": [ - "jsdoc" - ], - "alias": "n4jsd", - "ext": [] - }, - "nand2tetris-hdl": { - "title": "Nand To Tetris HDL", - "ext": [] - }, - "nasm": { - "title": "NASM", - "ext": [] - }, - "nginx": { - "title": "nginx", - "require": "clike", - "ext": [] - }, - "nim": { - "title": "Nim", - "ext": [] - }, - "nix": { - "title": "Nix", - "ext": [] - }, - "nsis": { - "title": "NSIS", - "ext": [ - "nsh", - "nsi" - ] - }, - "objectivec": { - "title": "Objective-C", - "require": "c", - "ext": [ - "m", - "mm" - ] - }, - "ocaml": { - "title": "OCaml", - "ext": [ - "ml", - "mli", - "mll", - "mly" - ] - }, - "opencl": { - "title": "OpenCL", - "require": "cpp", - "peerDependencies": [ - "c", - "cpp" - ], - "overrideExampleHeader": true, - "ext": [] - }, - "oz": { - "title": "Oz", - "ext": [ - "oz" - ] - }, - "parigp": { - "title": "PARI/GP", - "ext": [] - }, - "parser": { - "title": "Parser", - "require": "markup", - "ext": [] - }, - "pascal": { - "title": "Pascal", - "alias": "objectpascal", - "aliasTitles": { - "objectpascal": "Object Pascal" - }, - "ext": [ - "p", - "pas" - ] - }, - "perl": { - "title": "Perl", - "ext": [ - "pl", - "pm" - ] - }, - "php": { - "title": "PHP", - "require": [ - "clike", - "markup-templating" - ], - "ext": [ - "php", - "php3", - "php4", - "php5", - "php7", - "phtml" - ] - }, - "phpdoc": { - "title": "PHPDoc", - "require": [ - "php", - "javadoclike" - ], - "ext": [] - }, - "php-extras": { - "title": "PHP Extras", - "require": "php", - "ext": [] - }, - "plsql": { - "title": "PL/SQL", - "require": "sql", - "ext": [ - "pls" - ] - }, - "powershell": { - "title": "PowerShell", - "ext": [ - "ps1", - "psd1", - "psm1" - ] - }, - "processing": { - "title": "Processing", - "require": "clike", - "ext": [] - }, - "prolog": { - "title": "Prolog", - "ext": [] - }, - "properties": { - "title": ".properties", - "ext": [ - "properties", - "ini", - "in" - ] - }, - "protobuf": { - "title": "Protocol Buffers", - "require": "clike", - "ext": [ - "proto" - ] - }, - "pug": { - "title": "Pug", - "require": [ - "markup", - "javascript" - ], - "peerDependencies": [ - "coffeescript", - "ejs", - "handlebars", - "less", - "livescript", - "markdown", - "scss", - "stylus", - "twig" - ], - "ext": [ - "jade", - "pug" - ] - }, - "puppet": { - "title": "Puppet", - "ext": [ - "pp" - ] - }, - "pure": { - "title": "Pure", - "peerDependencies": [ - "c", - "cpp", - "fortran" - ], - "ext": [] - }, - "python": { - "title": "Python", - "alias": "py", - "ext": [ - "pyx", - "pxd", - "pxi" - ] - }, - "q": { - "title": "Q (kdb+ database)", - "ext": [ - "q" - ] - }, - "qore": { - "title": "Qore", - "require": "clike", - "ext": [] - }, - "r": { - "title": "R", - "ext": [ - "r", - "R" - ] - }, - "jsx": { - "title": "React JSX", - "require": [ - "markup", - "javascript" - ], - "peerDependencies": [ - "jsdoc", - "js-extras" - ], - "ext": [ - "jsx" - ] - }, - "tsx": { - "title": "React TSX", - "require": [ - "jsx", - "typescript" - ], - "ext": [ - "tsx" - ] - }, - "renpy": { - "title": "Ren'py", - "ext": [] - }, - "reason": { - "title": "Reason", - "require": "clike", - "ext": [] - }, - "regex": { - "title": "Regex", - "peerDependencies": [ - "actionscript", - "coffeescript", - "flow", - "javascript", - "typescript", - "vala" - ], - "ext": [] - }, - "rest": { - "title": "reST (reStructuredText)", - "ext": [] - }, - "rip": { - "title": "Rip", - "ext": [] - }, - "roboconf": { - "title": "Roboconf", - "ext": [] - }, - "ruby": { - "title": "Ruby", - "require": "clike", - "alias": "rb", - "ext": [ - "rb" - ] - }, - "rust": { - "title": "Rust", - "ext": [ - "rs" - ] - }, - "sas": { - "title": "SAS", - "ext": [ - "sas" - ] - }, - "sass": { - "title": "Sass (Sass)", - "require": "css", - "ext": [ - "sass" - ] - }, - "scss": { - "title": "Sass (Scss)", - "require": "css", - "ext": [ - "scss" - ] - }, - "scala": { - "title": "Scala", - "require": "java", - "ext": [ - "scala" - ] - }, - "scheme": { - "title": "Scheme", - "ext": [ - "scm", - "ss" - ] - }, - "smalltalk": { - "title": "Smalltalk", - "ext": [ - "st" - ] - }, - "smarty": { - "title": "Smarty", - "require": "markup-templating", - "ext": [ - "tpl" - ] - }, - "sparql": { - "title": "SPARQL", - "require": "turtle", - "ext": [] - }, - "sql": { - "title": "SQL", - "ext": [ - "cql" - ] - }, - "soy": { - "title": "Soy (Closure Template)", - "require": "markup-templating", - "ext": [ - "soy" - ] - }, - "stylus": { - "title": "Stylus", - "ext": [ - "styl" - ] - }, - "swift": { - "title": "Swift", - "require": "clike", - "ext": [ - "swift" - ] - }, - "tap": { - "title": "TAP", - "require": "yaml", - "ext": [] - }, - "tcl": { - "title": "Tcl", - "ext": [ - "tcl" - ] - }, - "textile": { - "title": "Textile", - "require": "markup", - "peerDependencies": "css", - "ext": [ - "textile" - ] - }, - "toml": { - "title": "TOML", - "ext": [] - }, - "tt2": { - "title": "Template Toolkit 2", - "require": [ - "clike", - "markup-templating" - ], - "ext": [] - }, - "turtle": { - "title": "Turtle", - "ext": [] - }, - "twig": { - "title": "Twig", - "require": "markup", - "ext": [] - }, - "typescript": { - "title": "TypeScript", - "require": "javascript", - "alias": "ts", - "ext": [ - "ts" - ] - }, - "t4-cs": { - "title": "T4 Text Templates (C#)", - "require": [ - "t4-templating", - "csharp" - ], - "alias": "t4", - "ext": [] - }, - "t4-vb": { - "title": "T4 Text Templates (VB)", - "require": [ - "t4-templating", - "visual-basic" - ], - "ext": [] - }, - "t4-templating": { - "title": "T4 templating", - "ext": [] - }, - "vala": { - "title": "Vala", - "require": "clike", - "ext": [] - }, - "vbnet": { - "title": "VB.Net", - "require": "basic", - "ext": [ - "vb" - ] - }, - "velocity": { - "title": "Velocity", - "require": "markup", - "ext": [ - "vtl" - ] - }, - "verilog": { - "title": "Verilog", - "ext": [ - "v", - "sv", - "svh" - ] - }, - "vhdl": { - "title": "VHDL", - "ext": [ - "vhd", - "vhdl" - ] - }, - "vim": { - "title": "vim", - "ext": [] - }, - "visual-basic": { - "title": "Visual Basic", - "alias": "vb", - "ext": [] - }, - "wasm": { - "title": "WebAssembly", - "ext": [] - }, - "wiki": { - "title": "Wiki markup", - "require": "markup", - "ext": [] - }, - "xeora": { - "title": "Xeora", - "require": "markup", - "alias": "xeoracube", - "aliasTitles": { - "xeoracube": "XeoraCube" - }, - "ext": [] - }, - "xojo": { - "title": "Xojo (REALbasic)", - "ext": [] - }, - "xquery": { - "title": "XQuery", - "require": "markup", - "ext": [ - "xy", - "xquery" - ] - }, - "yaml": { - "title": "YAML", - "alias": "yml", - "ext": [ - "yaml", - "yml" - ] - } -} diff --git a/src/muya/lib/prism/loadLanguage.js b/src/muya/lib/prism/loadLanguage.js index b9d2a386..f068561a 100644 --- a/src/muya/lib/prism/loadLanguage.js +++ b/src/muya/lib/prism/loadLanguage.js @@ -1,41 +1,19 @@ -import languages from './languages' -let peerDependentsMap = null -export const loadedCache = new Set(['markup', 'css', 'clike', 'javascript']) -const prismComponentCache = new Map() +import components from 'prismjs/components.js' +import getLoader from 'prismjs/dependencies' +import { getDefer } from '../utils' +/** + * The set of all languages which have been loaded using the below function. + * + * @type {Set} + */ +export const loadedLanguages = new Set(['markup', 'css', 'clike', 'javascript']) -function getPeerDependentsMap () { - const peerDependentsMap = {} - Object.keys(languages).forEach(function (language) { - if (language === 'meta') { - return false - } - if (languages[language].peerDependencies) { - let peerDependencies = languages[language].peerDependencies - if (!Array.isArray(peerDependencies)) { - peerDependencies = [peerDependencies] - } - peerDependencies.forEach(function (peerDependency) { - if (!peerDependentsMap[peerDependency]) { - peerDependentsMap[peerDependency] = [] - } - peerDependentsMap[peerDependency].push(language) - }) - } - }) - return peerDependentsMap -} - -function getPeerDependents (mainLanguage) { - if (!peerDependentsMap) { - peerDependentsMap = getPeerDependentsMap() - } - return peerDependentsMap[mainLanguage] || [] -} +const { languages } = components // Look for the origin languge by alias -export const transfromAliasToOrigin = arr => { +export const transfromAliasToOrigin = langs => { const result = [] - for (const lang of arr) { + for (const lang of langs) { if (languages[lang]) { result.push(lang) } else { @@ -59,76 +37,47 @@ export const transfromAliasToOrigin = arr => { } function initLoadLanguage (Prism) { - return async function loadLanguages (arr, withoutDependencies) { + return async function loadLanguages (langs) { // If no argument is passed, load all components - if (!arr) { - arr = Object.keys(languages).filter(function (language) { - return language !== 'meta' + if (!langs) { + langs = Object.keys(languages).filter(function (lang) { + return lang !== 'meta' }) } - if (arr && !arr.length) { + + if (langs && !langs.length) { return Promise.reject(new Error('The first parameter should be a list of load languages or single language.')) } - if (!Array.isArray(arr)) { - arr = [arr] + if (!Array.isArray(langs)) { + langs = [langs] } const promises = [] - const transformedLangs = transfromAliasToOrigin(arr) - for (const language of transformedLangs) { - // handle not existed - if (!languages[language]) { - promises.push(Promise.resolve({ - lang: language, + // the user might have loaded languages via some other way or used `prism.js` which already includes some + // we don't need to validate the ids because `getLoader` will ignore invalid ones + const loaded = [...loadedLanguages, ...Object.keys(Prism.languages)] + + getLoader(components, langs, loaded).load(async lang => { + const defer = getDefer() + promises.push(defer.promise) + if (!(lang in components.languages)) { + defer.resolve({ + lang, status: 'noexist' - })) - continue - } - // handle already cached - if (loadedCache.has(language)) { - promises.push(Promise.resolve({ - lang: language, - status: 'cached' - })) - continue + }) + return } - // Load dependencies first - if (!withoutDependencies && languages[language].require) { - const results = await loadLanguages(languages[language].require) - promises.push(...results) - } + delete Prism.languages[lang] - delete Prism.languages[language] - if (!prismComponentCache.has(language)) { - await import('prismjs/components/prism-' + language) - prismComponentCache.set(language, Prism.languages[language]) - } else { - Prism.languages[language] = prismComponentCache.get(language) - } - loadedCache.add(language) - promises.push(Promise.resolve({ - status: 'loaded', - lang: language - })) - - // Reload dependents - const dependents = getPeerDependents(language).filter(function (dependent) { - // If dependent language was already loaded, - // we want to reload it. - if (Prism.languages[dependent]) { - delete Prism.languages[dependent] - loadedCache.delete(dependent) - return true - } - return false + await import('prismjs/components/prism-' + lang) + defer.resolve({ + lang, + status: loadedLanguages.has(lang) ? 'cached' : 'loaded' }) - if (dependents.length) { - const results = await loadLanguages(dependents, true) - promises.push(...results) - } - } + loadedLanguages.add(lang) + }) return Promise.all(promises) } diff --git a/src/muya/lib/ui/codePicker/index.css b/src/muya/lib/ui/codePicker/index.css index 1d6ec6e4..3eb4f3d9 100644 --- a/src/muya/lib/ui/codePicker/index.css +++ b/src/muya/lib/ui/codePicker/index.css @@ -38,6 +38,7 @@ display: flex; justify-content: space-around; align-items: center; + padding-top: 2px; } .ag-list-picker .item .icon-wrapper span:before { diff --git a/src/muya/lib/ui/codePicker/index.js b/src/muya/lib/ui/codePicker/index.js index 1eb0268b..2ffb2317 100644 --- a/src/muya/lib/ui/codePicker/index.js +++ b/src/muya/lib/ui/codePicker/index.js @@ -48,19 +48,15 @@ class CodePicker extends BaseScrollFloat { const { renderArray, oldVnode, scrollElement, activeItem } = this let children = renderArray.map(item => { let iconClassNames - if (item.ext && Array.isArray(item.ext)) { - for (const ext of item.ext) { - iconClassNames = fileIcons.getClassWithColor(`fackname.${ext}`) - if (iconClassNames) break - } - } else if (item.name) { - iconClassNames = fileIcons.getClassWithColor(item.name) + + if (item.name) { + iconClassNames = fileIcons.getClassByLanguage(item.name) } // Because `markdown mode in Codemirror` don't have extensions. // if still can not get the className, add a common className 'atom-icon light-cyan' if (!iconClassNames) { - iconClassNames = item.name === 'markdown' ? fileIcons.getClassWithColor('fackname.md') : 'atom-icon light-cyan' + iconClassNames = item.name === 'markdown' ? fileIcons.getClassByName('fackname.md') : 'atom-icon light-cyan' } const iconSelector = 'span' + iconClassNames.split(/\s/).map(s => `.${s}`).join('') const icon = h('div.icon-wrapper', h(iconSelector)) diff --git a/src/muya/lib/ui/fileIcons/index.js b/src/muya/lib/ui/fileIcons/index.js index e91c0d1c..bf3fdb23 100644 --- a/src/muya/lib/ui/fileIcons/index.js +++ b/src/muya/lib/ui/fileIcons/index.js @@ -1,5 +1,16 @@ // Because the sidebar also use the file icons, So I put this file out of floatBox directory. -import 'file-icons-js/css/style.css' -import fileIcons from 'file-icons-js' +import '@marktext/file-icons/build/index.css' +import fileIcons from '@marktext/file-icons' + +fileIcons.getClassByName = function (name) { + const icon = fileIcons.matchName(name) + + return icon ? icon.getClass(0, false) : null +} +fileIcons.getClassByLanguage = function (lang) { + const icon = fileIcons.matchLanguage(lang) + + return icon ? icon.getClass(0, false) : null +} export default fileIcons diff --git a/src/muya/lib/utils/index.js b/src/muya/lib/utils/index.js index 98ce56a9..1ce826f5 100644 --- a/src/muya/lib/utils/index.js +++ b/src/muya/lib/utils/index.js @@ -412,3 +412,14 @@ export const collectFootnotes = (blocks) => { return map } + +export const getDefer = () => { + const defer = {} + const promise = new Promise((resolve, reject) => { + defer.resolve = resolve + defer.reject = reject + }) + defer.promise = promise + + return defer +} diff --git a/src/renderer/components/sideBar/icon.vue b/src/renderer/components/sideBar/icon.vue index bfa83d69..18d69049 100644 --- a/src/renderer/components/sideBar/icon.vue +++ b/src/renderer/components/sideBar/icon.vue @@ -15,10 +15,10 @@ export default { }, computed: { className () { - let icon = fileIcons.getClassWithColor(this.name ? this.name : 'mock.md') + let icon = fileIcons.getClassByName(this.name ? this.name : 'mock.md') if (!icon) { // Use fallback icon when the icon is unknown. - icon = fileIcons.getClassWithColor('mock.md') + icon = fileIcons.getClassByName('mock.md') } return icon.split(/\s/) } diff --git a/yarn.lock b/yarn.lock index f247f144..15de958c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1611,6 +1611,13 @@ diff "^5.0.0" parse5-sax-parser "^6.0.1" +"@marktext/file-icons@^1.0.4": + version "1.0.4" + resolved "https://registry.npmjs.org/@marktext/file-icons/-/file-icons-1.0.4.tgz#322ab75e3d4c872550819b70f7dbe56e51322239" + integrity sha512-lVXig/OaF7JMPtxqd7InIraS1NcolXJBuBqlEet+Y8qgVsSns7DlNW876xo3Xywqf/hAuq1mQ4qjj/Gp97tcug== + dependencies: + file-icons "github:file-icons/atom" + "@nodelib/fs.scandir@2.1.3": version "2.1.3" resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz#3a582bdb53804c6ba6d146579c46e52130cf4a3b" @@ -2773,6 +2780,13 @@ atob@^2.1.2: resolved "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== +atom-fs@v0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/atom-fs/-/atom-fs-0.2.1.tgz#650717ff1bfe2d10e3add5fa8f296875b68ce0e5" + integrity sha512-H+09ux1pNAPUbJqyrZ7lA/CpNmKqZURrYc23QzDUG29A380EYEnzwW99Do5VlT8SmZtyapOMySFesndgvZZGWg== + dependencies: + mapped-disposable "^1.0.3" + atomically@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/atomically/-/atomically-1.7.0.tgz#c07a0458432ea6dbc9a3506fffa424b48bccaafe" @@ -6531,10 +6545,14 @@ file-entry-cache@^6.0.1: dependencies: flat-cache "^3.0.4" -file-icons-js@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/file-icons-js/-/file-icons-js-1.0.3.tgz#d0765dc1d86aba4b2d7664a39e4ef7af9f12c5af" - integrity sha512-n4zoKEpMaAxBTUB7wtgrFBa4dM3b7mBLLA1VI/Q5Cdk/k2UA8S8oaxvnECp3QOzg0Dn+KKRzfIHF7qSdRkA65Q== +"file-icons@github:file-icons/atom": + version "2.1.47" + resolved "https://codeload.github.com/file-icons/atom/tar.gz/66d57920f352fa5ed0c66f6fe86a98b2b3b8dac1" + dependencies: + atom-fs v0.2.1 + lru-cache "^5.1.1" + mapped-disposable "^1.0.3" + micromatch "^4.0.2" file-loader@^6.2.0: version "6.2.0" @@ -9321,6 +9339,11 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" +mapped-disposable@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/mapped-disposable/-/mapped-disposable-1.0.3.tgz#3eaad0b20b174142ee80bd37f675bab200abd569" + integrity sha512-DpYYRSZjNB6tOg8E4BZ+rNsKe4WxoptwM8+JqHi8R0buJgHLmrmAfJtv4lcqqO1esTtxaPx4FXOR54bPoS9qwg== + marked@^1.2.9: version "1.2.9" resolved "https://registry.yarnpkg.com/marked/-/marked-1.2.9.tgz#53786f8b05d4c01a2a5a76b7d1ec9943d29d72dc"