diff --git a/.electron-vue/thirdPartyChecker.js b/.electron-vue/thirdPartyChecker.js index b18ecffd..8bf00c37 100644 --- a/.electron-vue/thirdPartyChecker.js +++ b/.electron-vue/thirdPartyChecker.js @@ -10,7 +10,7 @@ const getLicenses = (rootDir, callback) => { direct: true, excludePackages: 'xmldom@0.1.27', // xmldom@0.1.27 is under MIT License, but license-checker show it's under LGPL License. json: true, - onlyAllow: 'Unlicense;WTFPL;ISC;MIT;BSD;ISC;Apache-2.0;MIT*;Apache*;BSD*;CC0-1.0;CC-BY-4.0;CC-BY-3.0', + onlyAllow: 'Unlicense;WTFPL;ISC;MIT;BSD;ISC;Apache-2.0;MIT*;Apache;Apache*;BSD*;CC0-1.0;CC-BY-4.0;CC-BY-3.0', customPath: { licenses: '', licenseText: 'none' diff --git a/electron-builder.yml b/electron-builder.yml old mode 100644 new mode 100755 index 479984dd..12b264c6 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -18,14 +18,31 @@ files: - "!node_modules/terser/dist/bundle.min.js.map" - "!node_modules/vega-lite/build/vega-lite*.js.map" # Don't bundle build files +- "!node_modules/@felixrieseberg/spellchecker/bin" +- "!node_modules/ced/bin" +- "!node_modules/ced/vendor" +- "!node_modules/cld/bin" +- "!node_modules/cld/deps" - "!node_modules/fontmanager-redux/bin" - "!node_modules/keyboard-layout/bin" - "!node_modules/keytar/bin" - "!node_modules/vscode-windows-registry/bin" +# Don't bundle Windows build files +- "!node_modules/**/{*.vcxproj,*.vcxproj.filters}" +- "!node_modules/**/build/Release/{*.lib,*.exp,*.ilk,*.pdb}" +- "!node_modules/**/build/Release/obj" +- "!node_modules/ced/build/vendor" +# Don't bundle LGPL source files +- "!node_modules/@felixrieseberg/spellchecker/vendor" extraFiles: - "LICENSE" - from: "resources/THIRD-PARTY-LICENSES.txt" to: "THIRD-PARTY-LICENSES.txt" +extraResources: +- from: "resources/hunspell_dictionaries/" + to: "hunspell_dictionaries/" + filter: + - "!**/LICENSE-hunspell.txt" fileAssociations: - ext: diff --git a/package.json b/package.json index 23de7913..461b8745 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build:bin": "node .electron-vue/build.js && electron-builder --dir", "build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js", "build:dev": "node .electron-vue/build.js", - "dev": "node .electron-vue/dev-runner.js", + "dev": "cross-env node .electron-vue/dev-runner.js", "e2e": "yarn run pack && cross-env MARKTEXT_EXIT_ON_ERROR=1 mocha --timeout 10000 test/e2e", "lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src test", "lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src test", @@ -28,12 +28,13 @@ "preinstall": "node .electron-vue/preinstall.js", "build:muya": "cd src/muya && webpack --progress --colors --config webpack.config.js", "release:muya": "yarn run build:muya && cd src/muya && yarn publish", - "rebuild": "electron-rebuild -f -o fontmanager-redux,keytar,keyboard-layout,vscode-windows-registry", + "rebuild": "electron-rebuild -f", "gen-third-party": "node tools/generateThirdPartyLicense.js", "validate-licenses": "node tools/validateLicenses.js" }, "dependencies": { "@hfelix/electron-localshortcut": "^3.1.1", + "@hfelix/electron-spellchecker": "^1.0.0-rc.1", "@octokit/rest": "^16.33.1", "arg": "^4.1.1", "axios": "^0.19.0", @@ -60,6 +61,7 @@ "github-markdown-css": "^3.0.1", "html-tags": "^3.0.0", "iconv-lite": "^0.5.0", + "iso-639-1": "^2.1.0", "joplin-turndown-plugin-gfm": "^1.0.11", "katex": "^0.11.1", "keyboard-layout": "^2.0.16", diff --git a/resources/THIRD-PARTY-LICENSES.txt b/resources/THIRD-PARTY-LICENSES.txt index d0326ae5..8a57d787 100644 --- a/resources/THIRD-PARTY-LICENSES.txt +++ b/resources/THIRD-PARTY-LICENSES.txt @@ -7,420 +7,506 @@ This file contains all third-party packages that are bundled and shipped with Ma # Summary ------------------------------------------------- -1. @hfelix/electron-localshortcut (MIT) -2. @hfelix/keyboardevent-from-electron-accelerator (MIT) -3. @octokit/endpoint (MIT) -4. @octokit/request-error (MIT) -5. @octokit/request (MIT) -6. @octokit/rest (MIT) -7. @types/clone (MIT) -8. @types/fast-json-stable-stringify (MIT) -9. abab (BSD*) -10. acorn-globals (MIT) -11. acorn-walk (MIT) -12. acorn (MIT) -13. ajv (MIT) -14. animation-frame-polyfill (MIT) -15. ansi-regex (MIT) -16. ansi-styles (MIT) -17. anymatch (ISC) -18. aproba (ISC) -19. are-we-there-yet (ISC) -20. arg (MIT) -21. array-equal (MIT) -22. array-from (MIT) -23. asn1 (MIT) -24. assert-plus (MIT) -25. async-limiter (MIT) -26. async-validator (MIT) -27. asynckit (MIT) -28. atoa (MIT) -29. atob-lite (MIT) -30. aws-sign2 (Apache-2.0) -31. aws4 (MIT) -32. axios (MIT) -33. babel-runtime (MIT) -34. base64-js (MIT) -35. batch-processor (MIT) -36. bcrypt-pbkdf (BSD-3-Clause) -37. before-after-hook (Apache-2.0) -38. binary-extensions (MIT) -39. bl (MIT) -40. braces (MIT) -41. browser-process-hrtime (BSD-2-Clause) -42. browser-split (MIT) -43. btoa-lite (MIT) -44. buffer-alloc-unsafe (MIT) -45. buffer-alloc (MIT) -46. buffer-fill (MIT) -47. buffer-from (MIT) -48. camelcase (MIT) -49. caseless (Apache-2.0) -50. chokidar (MIT) -51. chownr (ISC) -52. clipboard (MIT) -53. cliui (ISC) -54. clone (MIT) -55. code-point-at (MIT) -56. codemirror (MIT) -57. color-convert (MIT) -58. color-name (MIT) -59. combined-stream (MIT) -60. command-exists (MIT) -61. commander (MIT) -62. conf (MIT) -63. console-control-strings (ISC) -64. contra (MIT) -65. core-js (MIT) -66. core-util-is (MIT) -67. create-point-cb (MIT) -68. cross-spawn (MIT) -69. crossvent (MIT) -70. cssom (MIT) -71. cssstyle (MIT) -72. custom-event (MIT) -73. d3-array (BSD-3-Clause) -74. d3-axis (BSD-3-Clause) -75. d3-brush (BSD-3-Clause) -76. d3-chord (BSD-3-Clause) -77. d3-collection (BSD-3-Clause) -78. d3-color (BSD-3-Clause) -79. d3-contour (BSD-3-Clause) -80. d3-dispatch (BSD-3-Clause) -81. d3-drag (BSD-3-Clause) -82. d3-dsv (BSD-3-Clause) -83. d3-ease (BSD-3-Clause) -84. d3-fetch (BSD-3-Clause) -85. d3-force (BSD-3-Clause) -86. d3-format (BSD-3-Clause) -87. d3-geo (BSD-3-Clause) -88. d3-hierarchy (BSD-3-Clause) -89. d3-interpolate (BSD-3-Clause) -90. d3-path (BSD-3-Clause) -91. d3-polygon (BSD-3-Clause) -92. d3-quadtree (BSD-3-Clause) -93. d3-random (BSD-3-Clause) -94. d3-scale-chromatic (BSD-3-Clause) -95. d3-scale (BSD-3-Clause) -96. d3-selection (BSD-3-Clause) -97. d3-shape (BSD-3-Clause) -98. d3-time-format (BSD-3-Clause) -99. d3-time (BSD-3-Clause) -100. d3-timer (BSD-3-Clause) -101. d3-transition (BSD-3-Clause) -102. d3-voronoi (BSD-3-Clause) -103. d3-zoom (BSD-3-Clause) -104. d3 (BSD-3-Clause) -105. dagre-d3-renderer (MIT) -106. dagre-layout (MIT) -107. dashdash (MIT) -108. data-urls (MIT) -109. dayjs (MIT) -110. debug (MIT) -111. decamelize (MIT) -112. decompress-response (MIT) -113. deep-extend (MIT) -114. deep-is (MIT) -115. deepmerge (MIT) -116. delayed-stream (MIT) -117. delegate (MIT) -118. delegates (MIT) -119. deprecation (ISC) -120. detect-libc (Apache-2.0) -121. dom-autoscroller (MIT) -122. dom-mousemove-dispatcher (MIT) -123. dom-plane (MIT) -124. dom-set (WTFPL) -125. domexception (MIT) -126. dompurify (MPL-2.0 OR Apache-2.0) -127. dot-prop (MIT) -128. dragula (MIT) -129. ecc-jsbn (MIT) -130. electron-is-accelerator (MIT) -131. electron-log (MIT) -132. electron-store (MIT) -133. electron-window-state (MIT) -134. element-resize-detector (MIT) -135. element-ui (MIT) -136. emoji-regex (MIT) -137. end-of-stream (MIT) -138. env-paths (MIT) -139. escaper (MIT) -140. escodegen (BSD-2-Clause) -141. esprima (BSD-2-Clause) -142. estraverse (BSD-2-Clause) -143. esutils (BSD) -144. eve-raphael (Apache*) -145. event-kit (MIT) -146. execa (MIT) -147. expand-template ((MIT OR WTFPL)) -148. extend (MIT) -149. extsprintf (MIT) -150. fast-deep-equal (MIT) -151. fast-json-stable-stringify (MIT) -152. fast-levenshtein (MIT) -153. file-icons-js (MIT) -154. fill-range (MIT) -155. find-up (MIT) -156. flowchart.js (MIT) -157. follow-redirects (MIT) -158. forever-agent (Apache-2.0) -159. form-data (MIT) -160. fs-constants (MIT) -161. fs-extra (MIT) -162. fuzzaldrin (MIT) -163. gauge (ISC) -164. get-caller-file (ISC) -165. get-stream (MIT) -166. getpass (MIT) -167. github-from-package (MIT) -168. github-markdown-css (MIT) -169. glob-parent (ISC) -170. good-listener (MIT) -171. graceful-fs (ISC) -172. graphlibrary (MIT) -173. har-schema (ISC) -174. har-validator (MIT) -175. has-unicode (ISC) -176. he (MIT) -177. html-encoding-sniffer (MIT) -178. html-tags (MIT) -179. http-signature (MIT) -180. iconv-lite (MIT) -181. imurmurhash (MIT) -182. inherits (ISC) -183. ini (ISC) -184. invert-kv (MIT) -185. is-array (MIT) -186. is-binary-path (MIT) -187. is-buffer (MIT) -188. is-extglob (MIT) -189. is-fullwidth-code-point (MIT) -190. is-glob (MIT) -191. is-number (MIT) -192. is-obj (MIT) -193. is-plain-object (MIT) -194. is-regexp (MIT) -195. is-stream (MIT) -196. is-typedarray (MIT) -197. isarray (MIT) -198. iselement (MIT) -199. isexe (ISC) -200. isobject (MIT) -201. isstream (MIT) -202. jsbn (MIT) -203. jsdom (MIT) -204. json-schema-traverse (MIT) -205. json-schema-typed (BSD-2-Clause) -206. json-schema (AFLv2.1,BSD) -207. json-stringify-pretty-compact (MIT) -208. json-stringify-safe (ISC) -209. jsonfile (MIT) -210. jsprim (MIT) -211. katex (MIT) -212. keyboard-layout (MIT) -213. keyboardevents-areequal (MIT) -214. keytar (MIT) -215. lcid (MIT) -216. left-pad (WTFPL) -217. levn (MIT) -218. locate-path (MIT) -219. lodash.escape (MIT) -220. lodash.forown (MIT) -221. lodash.get (MIT) -222. lodash.kebabcase (MIT) -223. lodash.remove (MIT) -224. lodash.set (MIT) -225. lodash.sortby (MIT) -226. lodash.uniq (MIT) -227. lodash (MIT) -228. macos-release (MIT) -229. make-dir (MIT) -230. map-age-cleaner (MIT) -231. mem (MIT) -232. mermaid (MIT) -233. mime-db (MIT) -234. mime-types (MIT) -235. mimic-fn (MIT) -236. mimic-response (MIT) -237. minimist (MIT) -238. mkdirp (MIT) -239. moment (MIT) -240. ms (MIT) -241. nan (MIT) -242. napi-build-utils (MIT) -243. nice-try (MIT) -244. node-abi (MIT) -245. node-fetch (MIT) -246. noop-logger (MIT) -247. normalize-path (MIT) -248. normalize-wheel (BSD-3-Clause) -249. npm-run-path (MIT) -250. npmlog (ISC) -251. number-is-nan (MIT) -252. nwsapi (MIT) -253. oauth-sign (Apache-2.0) -254. object-assign (MIT) -255. octokit-pagination-methods (MIT) -256. once (ISC) -257. optionator (MIT) -258. os-homedir (MIT) -259. os-locale (MIT) -260. os-name (MIT) -261. p-defer (MIT) -262. p-finally (MIT) -263. p-is-promise (MIT) -264. p-limit (MIT) -265. p-locate (MIT) -266. p-try (MIT) -267. parse-sel (MIT) -268. parse5 (MIT) -269. path-exists (MIT) -270. path-key (MIT) -271. performance-now (MIT) -272. picomatch (MIT) -273. pkg-up (MIT) -274. plist (MIT) -275. pn (MIT) -276. popper.js (MIT) -277. prebuild-install (MIT) -278. prelude-ls (MIT) -279. prismjs (MIT) -280. process-nextick-args (MIT) -281. psl (MIT) -282. pump (MIT) -283. punycode (MIT) -284. qs (BSD-3-Clause) -285. raphael (MIT) -286. rc ((BSD-2-Clause OR MIT OR Apache-2.0)) -287. readable-stream (MIT) -288. readdirp (MIT) -289. regenerator-runtime (MIT) -290. request-promise-core (ISC) -291. request-promise-native (ISC) -292. request (Apache-2.0) -293. require-directory (MIT) -294. require-main-filename (ISC) -295. resize-observer-polyfill (MIT) -296. rw (BSD-3-Clause) -297. safe-buffer (MIT) -298. safer-buffer (MIT) -299. sax (ISC) -300. scope-css (MIT) -301. select (MIT) -302. semver (ISC) -303. set-blocking (ISC) -304. shebang-command (MIT) -305. shebang-regex (MIT) -306. signal-exit (ISC) -307. simple-concat (MIT) -308. simple-get (MIT) -309. slugify (MIT) -310. snabbdom-to-html (MIT) -311. snabbdom (MIT) -312. source-map-support (MIT) -313. source-map (BSD-3-Clause) -314. sshpk (MIT) -315. stealthy-require (ISC) -316. string-width (MIT) -317. string_decoder (MIT) -318. strip-ansi (MIT) -319. strip-css-comments (MIT) -320. strip-eof (MIT) -321. strip-json-comments (MIT) -322. symbol-tree (MIT) -323. tar-fs (MIT) -324. tar-stream (MIT) -325. throttle-debounce (MIT) -326. ticky (MIT) -327. tiny-emitter (MIT) -328. to-buffer (MIT) -329. to-regex-range (MIT) -330. topojson-client (BSD-3-Clause) -331. tough-cookie (BSD-3-Clause) -332. tr46 (MIT) -333. tslib (Apache-2.0) -334. tunnel-agent (Apache-2.0) -335. turndown-plugin-gfm (MIT) -336. turndown (MIT) -337. tweetnacl (Unlicense) -338. type-check (MIT) -339. type-fest ((MIT OR CC0-1.0)) -340. type-func (MIT) -341. typedarray-to-buffer (MIT) -342. underscore (MIT) -343. universal-user-agent (ISC) -344. universalify (MIT) -345. uri-js (BSD-2-Clause) -346. url-template (BSD*) -347. util-deprecate (MIT) -348. uuid (MIT) -349. vega-canvas (BSD-3-Clause) -350. vega-crossfilter (BSD-3-Clause) -351. vega-dataflow (BSD-3-Clause) -352. vega-embed (BSD-3-Clause) -353. vega-encode (BSD-3-Clause) -354. vega-event-selector (BSD-3-Clause) -355. vega-expression (BSD-3-Clause) -356. vega-force (BSD-3-Clause) -357. vega-functions (BSD-3-Clause) -358. vega-geo (BSD-3-Clause) -359. vega-hierarchy (BSD-3-Clause) -360. vega-lite (BSD-3-Clause) -361. vega-loader (BSD-3-Clause) -362. vega-parser (BSD-3-Clause) -363. vega-projection (BSD-3-Clause) -364. vega-regression (BSD-3-Clause) -365. vega-runtime (BSD-3-Clause) -366. vega-scale (BSD-3-Clause) -367. vega-scenegraph (BSD-3-Clause) -368. vega-schema-url-parser (BSD-3-Clause) -369. vega-selections (BSD-3-Clause) -370. vega-statistics (BSD-3-Clause) -371. vega-themes (BSD-3-Clause) -372. vega-tooltip (BSD-3-Clause) -373. vega-transforms (BSD-3-Clause) -374. vega-typings (BSD-3-Clause) -375. vega-util (BSD-3-Clause) -376. vega-view-transforms (BSD-3-Clause) -377. vega-view (BSD-3-Clause) -378. vega-voronoi (BSD-3-Clause) -379. vega-wordcloud (BSD-3-Clause) -380. vega (BSD-3-Clause) -381. verror (MIT) -382. view-image (MIT) -383. vscode-ripgrep (MIT) -384. vue-electron (ISC) -385. vue-router (MIT) -386. vue (MIT) -387. vuex (MIT) -388. w3c-hr-time (MIT) -389. webidl-conversions (BSD-2-Clause) -390. whatwg-encoding (MIT) -391. whatwg-mimetype (MIT) -392. whatwg-url (MIT) -393. which-module (ISC) -394. which-pm-runs (MIT) -395. which (ISC) -396. wide-align (ISC) -397. windows-release (MIT) -398. wordwrap (MIT) -399. wrap-ansi (MIT) -400. wrappy (ISC) -401. write-file-atomic (ISC) -402. ws (MIT) -403. xml-name-validator (Apache-2.0) -404. xmlbuilder (MIT) -405. xtend (MIT) -406. y18n (ISC) -407. yargs-parser (ISC) -408. yargs (MIT) +1. @braintree/sanitize-url (MIT) +2. @felixrieseberg/spellchecker (MIT) +3. @hfelix/electron-localshortcut (MIT) +4. @hfelix/electron-spellchecker (MIT) +5. @hfelix/keyboardevent-from-electron-accelerator (MIT) +6. @octokit/endpoint (MIT) +7. @octokit/request-error (MIT) +8. @octokit/request (MIT) +9. @octokit/rest (MIT) +10. @types/clone (MIT) +11. @types/fast-json-stable-stringify (MIT) +12. abab (BSD*) +13. acorn-globals (MIT) +14. acorn-walk (MIT) +15. acorn (MIT) +16. ajv (MIT) +17. animation-frame-polyfill (MIT) +18. ansi-regex (MIT) +19. ansi-styles (MIT) +20. anymatch (ISC) +21. aproba (ISC) +22. are-we-there-yet (ISC) +23. arg (MIT) +24. array-equal (MIT) +25. array-from (MIT) +26. asn1 (MIT) +27. assert-plus (MIT) +28. async-limiter (MIT) +29. async-validator (MIT) +30. asynckit (MIT) +31. atoa (MIT) +32. atob-lite (MIT) +33. aws-sign2 (Apache-2.0) +34. aws4 (MIT) +35. axios (MIT) +36. babel-runtime (MIT) +37. balanced-match (MIT) +38. base64-js (MIT) +39. batch-processor (MIT) +40. bcp47 (MIT) +41. bcrypt-pbkdf (BSD-3-Clause) +42. before-after-hook (Apache-2.0) +43. binary-extensions (MIT) +44. bindings (MIT) +45. bl (MIT) +46. brace-expansion (MIT) +47. braces (MIT) +48. browser-process-hrtime (BSD-2-Clause) +49. browser-split (MIT) +50. btoa-lite (MIT) +51. buffer-from (MIT) +52. camel-case (MIT) +53. camelcase (MIT) +54. caseless (Apache-2.0) +55. ced ((ISC AND Apache-2.0)) +56. chokidar (MIT) +57. chownr (ISC) +58. cld (Apache) +59. clean-css (MIT) +60. clipboard (MIT) +61. cliui (ISC) +62. clone-regexp (MIT) +63. clone (MIT) +64. code-point-at (MIT) +65. codemirror (MIT) +66. color-convert (MIT) +67. color-name (MIT) +68. combined-stream (MIT) +69. command-exists (MIT) +70. commander (MIT) +71. concat-map (MIT) +72. conf (MIT) +73. console-control-strings (ISC) +74. contra (MIT) +75. core-js (MIT) +76. core-util-is (MIT) +77. create-point-cb (MIT) +78. cross-spawn (MIT) +79. crossvent (MIT) +80. css-b64-images (MIT) +81. cssom (MIT) +82. cssstyle (MIT) +83. custom-event (MIT) +84. d3-array (BSD-3-Clause) +85. d3-axis (BSD-3-Clause) +86. d3-brush (BSD-3-Clause) +87. d3-chord (BSD-3-Clause) +88. d3-collection (BSD-3-Clause) +89. d3-color (BSD-3-Clause) +90. d3-contour (BSD-3-Clause) +91. d3-delaunay (ISC) +92. d3-dispatch (BSD-3-Clause) +93. d3-drag (BSD-3-Clause) +94. d3-dsv (BSD-3-Clause) +95. d3-ease (BSD-3-Clause) +96. d3-fetch (BSD-3-Clause) +97. d3-force (BSD-3-Clause) +98. d3-format (BSD-3-Clause) +99. d3-geo (BSD-3-Clause) +100. d3-hierarchy (BSD-3-Clause) +101. d3-interpolate (BSD-3-Clause) +102. d3-path (BSD-3-Clause) +103. d3-polygon (BSD-3-Clause) +104. d3-quadtree (BSD-3-Clause) +105. d3-random (BSD-3-Clause) +106. d3-scale-chromatic (BSD-3-Clause) +107. d3-scale (BSD-3-Clause) +108. d3-selection (BSD-3-Clause) +109. d3-shape (BSD-3-Clause) +110. d3-time-format (BSD-3-Clause) +111. d3-time (BSD-3-Clause) +112. d3-timer (BSD-3-Clause) +113. d3-transition (BSD-3-Clause) +114. d3-voronoi (BSD-3-Clause) +115. d3-zoom (BSD-3-Clause) +116. d3 (BSD-3-Clause) +117. dagre-d3-renderer (MIT) +118. dagre-layout (MIT) +119. dashdash (MIT) +120. data-urls (MIT) +121. dayjs (MIT) +122. debug (MIT) +123. decamelize (MIT) +124. decompress-response (MIT) +125. deep-extend (MIT) +126. deep-is (MIT) +127. deepmerge (MIT) +128. delaunator (ISC) +129. delayed-stream (MIT) +130. delegate (MIT) +131. delegates (MIT) +132. deprecation (ISC) +133. detect-libc (Apache-2.0) +134. dom-autoscroller (MIT) +135. dom-mousemove-dispatcher (MIT) +136. dom-plane (MIT) +137. dom-set (WTFPL) +138. domexception (MIT) +139. dompurify (MPL-2.0 OR Apache-2.0) +140. dot-prop (MIT) +141. dragula (MIT) +142. ecc-jsbn (MIT) +143. electron-is-accelerator (MIT) +144. electron-log (MIT) +145. electron-store (MIT) +146. electron-window-state (MIT) +147. element-resize-detector (MIT) +148. element-ui (MIT) +149. emoji-regex (MIT) +150. end-of-stream (MIT) +151. env-paths (MIT) +152. escaper (MIT) +153. escodegen (BSD-2-Clause) +154. esprima (BSD-2-Clause) +155. estraverse (BSD-2-Clause) +156. esutils (BSD-2-Clause) +157. eve-raphael (Apache*) +158. event-kit (MIT) +159. execa (MIT) +160. execall (MIT) +161. expand-template ((MIT OR WTFPL)) +162. extend (MIT) +163. extsprintf (MIT) +164. fast-deep-equal (MIT) +165. fast-json-stable-stringify (MIT) +166. fast-levenshtein (MIT) +167. file-icons-js (MIT) +168. file-uri-to-path (MIT) +169. fill-range (MIT) +170. find-up (MIT) +171. flowchart.js (MIT) +172. follow-redirects (MIT) +173. fontmanager-redux (MIT) +174. forever-agent (Apache-2.0) +175. form-data (MIT) +176. form-urlencoded (MIT) +177. fs-constants (MIT) +178. fs-extra (MIT) +179. fs.realpath (ISC) +180. fuzzaldrin (MIT) +181. gauge (ISC) +182. get-caller-file (ISC) +183. get-stream (MIT) +184. getpass (MIT) +185. github-from-package (MIT) +186. github-markdown-css (MIT) +187. glob-parent (ISC) +188. glob (ISC) +189. good-listener (MIT) +190. graceful-fs (ISC) +191. graphlibrary (MIT) +192. har-schema (ISC) +193. har-validator (MIT) +194. has-unicode (ISC) +195. he (MIT) +196. html-encoding-sniffer (MIT) +197. html-minifier (MIT) +198. html-tags (MIT) +199. http-signature (MIT) +200. iconv-lite (MIT) +201. imurmurhash (MIT) +202. inflight (ISC) +203. inherits (ISC) +204. ini (ISC) +205. is-array (MIT) +206. is-binary-path (MIT) +207. is-buffer (MIT) +208. is-extglob (MIT) +209. is-fullwidth-code-point (MIT) +210. is-glob (MIT) +211. is-number (MIT) +212. is-obj (MIT) +213. is-plain-object (MIT) +214. is-regexp (MIT) +215. is-stream (MIT) +216. is-typedarray (MIT) +217. isarray (MIT) +218. iselement (MIT) +219. isexe (ISC) +220. iso-639-1 (MIT) +221. isobject (MIT) +222. isstream (MIT) +223. joplin-turndown-plugin-gfm (MIT) +224. jsbn (MIT) +225. jsdom (MIT) +226. json-schema-traverse (MIT) +227. json-schema-typed (BSD*) +228. json-schema (AFLv2.1,BSD) +229. json-stringify-pretty-compact (MIT) +230. json-stringify-safe (ISC) +231. jsonfile (MIT) +232. jsprim (MIT) +233. katex (MIT) +234. keyboard-layout (MIT) +235. keyboardevents-areequal (MIT) +236. keytar (MIT) +237. left-pad (WTFPL) +238. levn (MIT) +239. locate-path (MIT) +240. lodash.escape (MIT) +241. lodash.forown (MIT) +242. lodash.get (MIT) +243. lodash.kebabcase (MIT) +244. lodash.remove (MIT) +245. lodash.set (MIT) +246. lodash.sortby (MIT) +247. lodash.uniq (MIT) +248. lodash (MIT) +249. lower-case (MIT) +250. lru-cache (ISC) +251. macos-release (MIT) +252. make-dir (MIT) +253. mermaid (MIT) +254. mime-db (MIT) +255. mime-types (MIT) +256. mimic-fn (MIT) +257. mimic-response (MIT) +258. minify (MIT) +259. minimatch (ISC) +260. minimist (MIT) +261. mkdirp (MIT) +262. moment-mini (MIT) +263. ms (MIT) +264. nan (MIT) +265. napi-build-utils (MIT) +266. nice-try (MIT) +267. no-case (MIT) +268. node-abi (MIT) +269. node-fetch (MIT) +270. noop-logger (MIT) +271. normalize-path (MIT) +272. normalize-wheel (BSD-3-Clause) +273. npm-run-path (MIT) +274. npmlog (ISC) +275. number-is-nan (MIT) +276. nwsapi (MIT) +277. oauth-sign (Apache-2.0) +278. object-assign (MIT) +279. octokit-pagination-methods (MIT) +280. once (ISC) +281. onetime (MIT) +282. optionator (MIT) +283. os-name (MIT) +284. p-finally (MIT) +285. p-limit (MIT) +286. p-locate (MIT) +287. p-throttle (MIT) +288. p-try (MIT) +289. param-case (MIT) +290. parse-sel (MIT) +291. parse5 (MIT) +292. path-exists (MIT) +293. path-is-absolute (MIT) +294. path-key (MIT) +295. performance-now (MIT) +296. picomatch (MIT) +297. pkg-up (MIT) +298. plist (MIT) +299. pn (MIT) +300. popper.js (MIT) +301. prebuild-install (MIT) +302. prelude-ls (MIT) +303. prettier (MIT) +304. prismjs (MIT) +305. process-nextick-args (MIT) +306. psl (MIT) +307. pump (MIT) +308. punycode (MIT) +309. qs (BSD-3-Clause) +310. querystring (MIT) +311. querystringify (MIT) +312. raphael (MIT) +313. rc ((BSD-2-Clause OR MIT OR Apache-2.0)) +314. readable-stream (MIT) +315. readdirp (MIT) +316. regenerator-runtime (MIT) +317. relateurl (MIT) +318. request-promise-core (ISC) +319. request-promise-native (ISC) +320. request (Apache-2.0) +321. require-directory (MIT) +322. require-main-filename (ISC) +323. requires-port (MIT) +324. resize-observer-polyfill (MIT) +325. rimraf (ISC) +326. rw (BSD-3-Clause) +327. safe-buffer (MIT) +328. safer-buffer (MIT) +329. sax (ISC) +330. scope-css (MIT) +331. select (MIT) +332. semver (ISC) +333. set-blocking (ISC) +334. shebang-command (MIT) +335. shebang-regex (MIT) +336. signal-exit (ISC) +337. simple-concat (MIT) +338. simple-get (MIT) +339. slugify (MIT) +340. snabbdom-to-html (MIT) +341. snabbdom (MIT) +342. source-map-support (MIT) +343. source-map (BSD-3-Clause) +344. sshpk (MIT) +345. stealthy-require (ISC) +346. string-width (MIT) +347. string_decoder (MIT) +348. strip-ansi (MIT) +349. strip-css-comments (MIT) +350. strip-eof (MIT) +351. strip-json-comments (MIT) +352. symbol-tree (MIT) +353. tar-fs (MIT) +354. tar-stream (MIT) +355. terser (BSD-2-Clause) +356. throttle-debounce (MIT) +357. ticky (MIT) +358. tiny-emitter (MIT) +359. to-regex-range (MIT) +360. topojson-client (BSD-3-Clause) +361. tough-cookie (BSD-3-Clause) +362. tr46 (MIT) +363. try-catch (MIT) +364. try-to-catch (MIT) +365. tslib (Apache-2.0) +366. tunnel-agent (Apache-2.0) +367. turndown (MIT) +368. tweetnacl (Unlicense) +369. type-check (MIT) +370. type-fest ((MIT OR CC0-1.0)) +371. type-func (MIT) +372. typedarray-to-buffer (MIT) +373. uglify-js (BSD-2-Clause) +374. underscore (MIT) +375. universal-user-agent (ISC) +376. universalify (MIT) +377. unsplash-js (MIT) +378. upper-case (MIT) +379. uri-js (BSD-2-Clause) +380. url-parse (MIT) +381. util-deprecate (MIT) +382. uuid (MIT) +383. vega-canvas (BSD-3-Clause) +384. vega-crossfilter (BSD-3-Clause) +385. vega-dataflow (BSD-3-Clause) +386. vega-embed (BSD-3-Clause) +387. vega-encode (BSD-3-Clause) +388. vega-event-selector (BSD-3-Clause) +389. vega-expression (BSD-3-Clause) +390. vega-force (BSD-3-Clause) +391. vega-functions (BSD-3-Clause) +392. vega-geo (BSD-3-Clause) +393. vega-hierarchy (BSD-3-Clause) +394. vega-lite (BSD-3-Clause) +395. vega-loader (BSD-3-Clause) +396. vega-parser (BSD-3-Clause) +397. vega-projection (BSD-3-Clause) +398. vega-regression (BSD-3-Clause) +399. vega-runtime (BSD-3-Clause) +400. vega-scale (BSD-3-Clause) +401. vega-scenegraph (BSD-3-Clause) +402. vega-schema-url-parser (BSD-3-Clause) +403. vega-selections (BSD-3-Clause) +404. vega-statistics (BSD-3-Clause) +405. vega-themes (BSD-3-Clause) +406. vega-tooltip (BSD-3-Clause) +407. vega-transforms (BSD-3-Clause) +408. vega-typings (BSD-3-Clause) +409. vega-util (BSD-3-Clause) +410. vega-view-transforms (BSD-3-Clause) +411. vega-view (BSD-3-Clause) +412. vega-voronoi (BSD-3-Clause) +413. vega-wordcloud (BSD-3-Clause) +414. vega (BSD-3-Clause) +415. verror (MIT) +416. view-image (MIT) +417. vscode-ripgrep (MIT) +418. vue-electron (ISC) +419. vue-router (MIT) +420. vue (MIT) +421. vuex (MIT) +422. w3c-hr-time (MIT) +423. webidl-conversions (BSD-2-Clause) +424. whatwg-encoding (MIT) +425. whatwg-mimetype (MIT) +426. whatwg-url (MIT) +427. which-module (ISC) +428. which-pm-runs (MIT) +429. which (ISC) +430. wide-align (ISC) +431. windows-release (MIT) +432. wordwrap (MIT) +433. wrap-ansi (MIT) +434. wrappy (ISC) +435. write-file-atomic (ISC) +436. ws (MIT) +437. xml-name-validator (Apache-2.0) +438. xmlbuilder (MIT) +439. y18n (ISC) +440. yallist (ISC) +441. yargs-parser (ISC) +442. yargs (MIT) +443. hunspell (LGPL 2.1) ------------------------------------------------- # Licenses ------------------------------------------------- +# @braintree/sanitize-url (MIT) +------------------------------------------------- +MIT License + +Copyright (c) 2017 Braintree + +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. + + + +# @felixrieseberg/spellchecker (MIT) +------------------------------------------------- +Copyright (c) 2013 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. + + + # @hfelix/electron-localshortcut (MIT) ------------------------------------------------- The MIT License (MIT) @@ -447,6 +533,18 @@ OR OTHER DEALINGS IN THE SOFTWARE. +# @hfelix/electron-spellchecker (MIT) +------------------------------------------------- +Copyright (c) 2016 Paul Betts + +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. + + + # @hfelix/keyboardevent-from-electron-accelerator (MIT) ------------------------------------------------- MIT License @@ -629,6 +727,8 @@ MIT License # abab (BSD*) ------------------------------------------------- +Copyright © 2019 W3C and Jeff Carpenter \ + Both the original source code and new contributions in this repository are released under the [W3C 3-clause BSD license](https://github.com/w3c/web-platform-tests/blob/master/LICENSE.md#w3c-3-clause-bsd-license). # W3C 3-clause BSD License @@ -803,7 +903,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ------------------------------------------------- The ISC License -Copyright (c) 2014 Elan Shanker +Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -1317,11 +1417,37 @@ THE SOFTWARE. +# balanced-match (MIT) +------------------------------------------------- +(MIT) + +Copyright (c) 2013 Julian Gruber <julian@juliangruber.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. + + + # base64-js (MIT) ------------------------------------------------- The MIT License (MIT) -Copyright (c) 2014 +Copyright (c) 2014 Jameson Little Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -1369,6 +1495,32 @@ SOFTWARE. +# bcp47 (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2015 Gabriel Llamas + +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. + + + # bcrypt-pbkdf (BSD-3-Clause) ------------------------------------------------- The Blowfish portions are under the following license: @@ -1660,12 +1812,39 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# bindings (MIT) +------------------------------------------------- +(The MIT License) + +Copyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net> + +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. + + + # bl (MIT) ------------------------------------------------- The MIT License (MIT) ===================== -Copyright (c) 2013-2016 bl contributors +Copyright (c) 2013-2018 bl contributors ---------------------------------- *bl contributors listed at * @@ -1678,6 +1857,32 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# brace-expansion (MIT) +------------------------------------------------- +MIT License + +Copyright (c) 2013 Julian Gruber + +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. + + + # braces (MIT) ------------------------------------------------- The MIT License (MIT) @@ -1823,164 +2028,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# buffer-alloc-unsafe (MIT) -------------------------------------------------- -# Buffer Alloc Unsafe - -A [ponyfill](https://ponyfill.com) for `Buffer.allocUnsafe`. - -Works as Node.js: `v7.0.0`
-Works on Node.js: `v0.10.0` - -## Installation - -```sh -npm install --save buffer-alloc-unsafe -``` - -## Usage - -```js -const allocUnsafe = require('buffer-alloc-unsafe') - -console.log(allocUnsafe(10)) -//=> - -console.log(allocUnsafe(10)) -//=> - -console.log(allocUnsafe(10)) -//=> - -allocUnsafe(-10) -//=> RangeError: "size" argument must not be negative -``` - -## API - -### allocUnsafe(size) - -- `size` <Integer> The desired length of the new `Buffer` - -Allocates a new *non-zero-filled* `Buffer` of `size` bytes. The `size` must be -less than or equal to the value of `buffer.kMaxLength` and greater than or equal -to zero. Otherwise, a `RangeError` is thrown. - -## See also - -- [buffer-alloc](https://github.com/LinusU/buffer-alloc) A ponyfill for `Buffer.alloc` -- [buffer-fill](https://github.com/LinusU/buffer-fill) A ponyfill for `Buffer.fill` -- [buffer-from](https://github.com/LinusU/buffer-from) A ponyfill for `Buffer.from` - - - -# buffer-alloc (MIT) -------------------------------------------------- -# Buffer Alloc - -A [ponyfill](https://ponyfill.com) for `Buffer.alloc`. - -Works as Node.js: `v7.0.0`
-Works on Node.js: `v0.10.0` - -## Installation - -```sh -npm install --save buffer-alloc -``` - -## Usage - -```js -const alloc = require('buffer-alloc') - -console.log(alloc(4)) -//=> - -console.log(alloc(6, 0x41)) -//=> - -console.log(alloc(10, 'linus', 'utf8')) -//=> -``` - -## API - -### alloc(size[, fill[, encoding]]) - -- `size` <Integer> The desired length of the new `Buffer` -- `fill` <String> | <Buffer> | <Integer> A value to pre-fill the new `Buffer` with. **Default:** `0` -- `encoding` <String> If `fill` is a string, this is its encoding. **Default:** `'utf8'` - -Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the `Buffer` will be zero-filled. - -## See also - -- [buffer-alloc-unsafe](https://github.com/LinusU/buffer-alloc-unsafe) A ponyfill for `Buffer.allocUnsafe` -- [buffer-fill](https://github.com/LinusU/buffer-fill) A ponyfill for `Buffer.fill` -- [buffer-from](https://github.com/LinusU/buffer-from) A ponyfill for `Buffer.from` - - - -# buffer-fill (MIT) -------------------------------------------------- -# Buffer Fill - -A [ponyfill](https://ponyfill.com) for `Buffer.fill`. - -Works as Node.js: `v6.4.0`
-Works on Node.js: `v0.10.0` - -## Installation - -```sh -npm install --save buffer-fill -``` - -## Usage - -```js -const fill = require('buffer-fill') -const buf = Buffer.allocUnsafe(5) - -console.log(buf.fill(8)) -//=> - -console.log(buf.fill(9, 2, 4)) -//=> - -console.log(buf.fill('linus', 'latin1')) -//=> - -console.log(buf.fill('\u0222')) -//=> -``` - -## API - -### fill(buf, value[, offset[, end]][, encoding]) - -- `value` <String> | <Buffer> | <Integer> The value to fill `buf` with -- `offset` <Integer> Where to start filling `buf`. **Default:** `0` -- `end` <Integer> Where to stop filling `buf` (not inclusive). **Default:** `buf.length` -- `encoding` <String> If `value` is a string, this is its encoding. **Default:** `'utf8'` -- Return: <Buffer> A reference to `buf` - -Fills `buf` with the specified `value`. If the `offset` and `end` are not given, -the entire `buf` will be filled. This is meant to be a small simplification to -allow the creation and filling of a `Buffer` to be done on a single line. - -If the final write of a `fill()` operation falls on a multi-byte character, then -only the first bytes of that character that fit into `buf` are written. - -## See also - -- [buffer-alloc-unsafe](https://github.com/LinusU/buffer-alloc-unsafe) A ponyfill for `Buffer.allocUnsafe` -- [buffer-alloc](https://github.com/LinusU/buffer-alloc) A ponyfill for `Buffer.alloc` -- [buffer-from](https://github.com/LinusU/buffer-from) A ponyfill for `Buffer.from` - - - # buffer-from (MIT) ------------------------------------------------- MIT License @@ -2007,6 +2054,32 @@ SOFTWARE. +# camel-case (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2014 Blake Embrey (hello@blakeembrey.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. + + + # camelcase (MIT) ------------------------------------------------- MIT License @@ -2054,6 +2127,234 @@ END OF TERMS AND CONDITIONS +# ced ((ISC AND Apache-2.0)) +------------------------------------------------- +This software is licensed under the ISC License: + +Copyright (c) 2018–2019, Jakob Krigovsky + +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. + +--- + +This software uses compact_enc_det, located at vendor/compact_enc_det, +under the Apache License 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. + + + # chokidar (MIT) ------------------------------------------------- The MIT License (MIT) @@ -2100,6 +2401,236 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# cld (Apache) +------------------------------------------------- +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. + + + +# clean-css (MIT) +------------------------------------------------- +Copyright (C) 2017 JakubPawlowicz.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. + + + # clipboard (MIT) ------------------------------------------------- # clipboard.js @@ -2313,6 +2844,20 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# clone-regexp (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. + + + # clone (MIT) ------------------------------------------------- Copyright © 2011-2015 Paul Vorbach @@ -2503,6 +3048,29 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# concat-map (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. + + + # conf (MIT) ------------------------------------------------- MIT License @@ -2685,6 +3253,89 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# css-b64-images (MIT) +------------------------------------------------- +[![build status](https://secure.travis-ci.org/Filirom1/css-base64-images.png)](http://travis-ci.org/Filirom1/css-base64-images) +css-base64-images +================= + +Base64 images in your css file. + +![Base64](https://github.com/Filirom1/css-base64-images/raw/master/draft.png) + +Transform this: + + .single-quote { + background: url('../img/background-pattern.gif'); + } + +into + + .single-quote { + background: url('data:image/gif;base64,R0lGODlhBgAGAIAAAObm5vLy8iH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFMEY0NTFERjVEQ0ExMUUwOURGQ0Y2NjAyQTkzMUQ2OSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpFMEY0NTFFMDVEQ0ExMUUwOURGQ0Y2NjAyQTkzMUQ2OSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkUwRjQ1MURENURDQTExRTA5REZDRjY2MDJBOTMxRDY5IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkUwRjQ1MURFNURDQTExRTA5REZDRjY2MDJBOTMxRDY5Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAAAAAAAsAAAAAAYABgAAAgqMDYcaqX6AnKAAADs='); + } + +Only works with CSS files. + +Works with: + +* single quotes: url('../img/background-pattern.gif'); +* double quotes: url("../img/background-pattern.gif"); +* absolute URL: url("/img/background-pattern.gif"); but you must specify a `root` path + +Do not work with (a warning is shown, but the process continue) + +* File bigger than 4Ko (configurable) +* external urls: url("http://my-company.ext/img/background-pattern.gif"); +* not found images + +## Install + + npm install -g css-b64-images + +## Usage + + cd /your/www/root/dir + css-b64-images css/styles.css > css/style.optimized.css + +## As a library + +### From File + +fromFile(cssFile, root, [options,] cb) + +You must specify the `root` path for absolute URLs to work. + + var b64img = require('css-b64-images'); + + b64img.fromFile('/your/www/root/dir/css/your-stylesheet.css', '/your/www/root/dir/', function(err, css){ + if(err) console.error('Error:', err); + console.log(css); + }); + +### From String + +fromString(css, relativePath, rootPath, [options,] cb) + + var b64img = require('css-b64-images'); + var css = fs.readFileSync('/your/www/root/dir/css/your-stylesheet.css'); + + b64img.fromString(css, '/your/www/root/dir/css/', '/your/www/root/dir/', function(err, css){ + if(err) console.error('Error:', err); + console.log(css); + }); + +### Options + +* maxSize: (default 4096) bigger images are not base64 in the CSS + + +## LICENSE + +MIT + + + # cssom (MIT) ------------------------------------------------- Copyright (c) Nikita Vasilyev @@ -3007,6 +3658,24 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# d3-delaunay (ISC) +------------------------------------------------- +Copyright 2018 Observable, Inc. + +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. + + + # d3-dispatch (BSD-3-Clause) ------------------------------------------------- Copyright 2010-2016 Mike Bostock @@ -4052,27 +4721,15 @@ THE SOFTWARE. # decompress-response (MIT) ------------------------------------------------- -`The MIT License (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: +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. @@ -4154,6 +4811,26 @@ THE SOFTWARE. +# delaunator (ISC) +------------------------------------------------- +ISC License + +Copyright (c) 2017, Mapbox + +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. + + + # delayed-stream (MIT) ------------------------------------------------- Copyright (c) 2011 Debuggable Limited @@ -5411,7 +6088,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# esutils (BSD) +# esutils (BSD-2-Clause) ------------------------------------------------- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -5680,6 +6357,20 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# execall (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. + + + # expand-template ((MIT OR WTFPL)) ------------------------------------------------- The MIT License (MIT) @@ -5861,6 +6552,31 @@ THE SOFTWARE. +# file-uri-to-path (MIT) +------------------------------------------------- +Copyright (c) 2014 Nathan Rajlich + +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. + + + # fill-range (MIT) ------------------------------------------------- The MIT License (MIT) @@ -5948,6 +6664,215 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# fontmanager-redux (MIT) +------------------------------------------------- +# fontmanager-redux + +![Travis (.org)](https://img.shields.io/travis/eugeny/fontmanager-redux?label=Mac%2FLINUX&style=for-the-badge) ![AppVeyor](https://img.shields.io/appveyor/ci/eugeny/fontmanager-redux?label=windows&style=for-the-badge) + + +A C++ module for Node.js providing access to the system font catalog. + +## Features + +* List all available fonts +* Find fonts with specified characteristics +* Font substitution when characters are missing + +## Platforms + +* Mac OS X 10.5 and later supported via [CoreText](https://developer.apple.com/library/mac/documentation/Carbon/reference/CoreText_Framework_Ref/_index.html) +* Windows 7 and later supported via [DirectWrite](http://msdn.microsoft.com/en-us/library/windows/desktop/dd368038(v=vs.85).aspx) +* Linux supported via [fontconfig](http://www.freedesktop.org/software/fontconfig) + +## Installation + +Installation of the `fontmanager-redux` module is via npm: + + npm install fontmanager-redux + +On Linux, you also may need to install the `libfontconfig-dev` package, for example: + + sudo apt-get install libfontconfig-dev + +## API + +You load the `fontmanager-redux` module using `require` as with all Node modules: + +```javascript +import * as fontManager from 'fontmanager-redux'; +``` + +All of the methods exported by `fontmanager-redux` have both synchronous and asynchronous versions available. +You should generally prefer the asynchronous version as it will allow your program to continue doing other +processing while a request for fonts is processing in the background, which may be expensive depending on +the platform APIs that are available. + +* [`getAvailableFonts()`](#getavailablefonts) +* [`findFonts(fontDescriptor)`](#findfontsfontdescriptor) +* [`findFont(fontDescriptor)`](#findfontfontdescriptor) +* [`substituteFont(postscriptName, text)`](#substitutefontpostscriptname-text) + +### getAvailableFonts() + +Returns an array of all [font descriptors](#font-descriptor) available on the system. + +```javascript +// asynchronous API +fontManager.getAvailableFonts(function(fonts) { ... }); + +// synchronous API +const fonts = fontManager.getAvailableFontsSync(); + +// output +[ { path: '/Library/Fonts/Arial.ttf', + postscriptName: 'ArialMT', + family: 'Arial', + style: 'Regular', + weight: 400, + width: 5, + italic: false, + monospace: false }, + ... ] +``` + +### findFonts(fontDescriptor) + +Returns an array of [font descriptors](#font-descriptor) matching a query +[font descriptor](#font-descriptor). +The returned array may be empty if no fonts match the font descriptor. + +```javascript +// asynchronous API +fontManager.findFonts({ family: 'Arial' }, function(fonts) { ... }); + +// synchronous API +const fonts = fontManager.findFontsSync({ family: 'Arial' }); + +// output +[ { path: '/Library/Fonts/Arial.ttf', + postscriptName: 'ArialMT', + family: 'Arial', + style: 'Regular', + weight: 400, + width: 5, + italic: false, + monospace: false }, + { path: '/Library/Fonts/Arial Bold.ttf', + postscriptName: 'Arial-BoldMT', + family: 'Arial', + style: 'Bold', + weight: 700, + width: 5, + italic: false, + monospace: false } ] +``` + +### findFont(fontDescriptor) + +Returns a single [font descriptors](#font-descriptor) matching a query +[font descriptors](#font-descriptor) as well as possible. This method +always returns a result (never `null`), so sometimes the output will not +exactly match the input font descriptor if not all input parameters +could be met. + +```javascript +// asynchronous API +fontManager.findFont({ family: 'Arial', weight: 700 }, function(font) { ... }); + +// synchronous API +const font = fontManager.findFontSync({ family: 'Arial', weight: 700 }); + +// output +{ path: '/Library/Fonts/Arial Bold.ttf', + postscriptName: 'Arial-BoldMT', + family: 'Arial', + style: 'Bold', + weight: 700, + width: 5, + italic: false, + monospace: false } +``` + +### substituteFont(postscriptName, text) + +Substitutes the font with the given `postscriptName` with another font +that contains the characters in `text`. If a font matching `postscriptName` +is not found, a font containing the given characters is still returned. If +a font matching `postscriptName` *is* found, its characteristics (bold, italic, etc.) +are used to find a suitable replacement. If the font already contains the characters +in `text`, it is not replaced and the font descriptor for the original font is returned. + +```javascript +// asynchronous API +fontManager.substituteFont('TimesNewRomanPSMT', '汉字', function(font) { ... }); + +// synchronous API +const font = fontManager.substituteFontSync('TimesNewRomanPSMT', '汉字'); + +// output +{ path: '/Library/Fonts/Songti.ttc', + postscriptName: 'STSongti-SC-Regular', + family: 'Songti SC', + style: 'Regular', + weight: 400, + width: 5, + italic: false, + monospace: false } +``` + +### Font Descriptor + +Font descriptors are normal JavaScript objects that describe characteristics of +a font. They are passed to the `findFonts` and `findFont` methods and returned by +all of the methods. Any combination of the fields documented below can be used to +find fonts, but all methods return full font descriptors. + +Name | Type | Description +---------------- | ------- | ----------- +`path` | string | The path to the font file in the filesystem. **(not applicable for queries, only for results)** +`postscriptName` | string | The PostScript name of the font (e.g `'Arial-BoldMT'`). This uniquely identities a font in most cases. +`family` | string | The font family name (e.g `'Arial'`) +`style` | string | The font style name (e.g. `'Bold'`) +`weight` | number | The font weight (e.g. `400` for normal weight). Should be a multiple of 100, between 100 and 900. See [below](#weights) for weight documentation. +`width` | number | The font width (e.g. `5` for normal width). Should be an integer between 1 and 9. See [below](#widths) for width documentation. +`italic` | boolean | Whether the font is italic or not. +`monospace` | boolean | Whether the font is monospace or not. + +#### Weights + +Value | Name +----- | ------------------------- +100 | Thin +200 | Ultra Light +300 | Light +400 | Normal +500 | Medium +600 | Semi Bold +700 | Bold +800 | Ultra Bold +900 | Heavy + +#### Widths + +Value | Name +----- | ----------------------------- +1 | Ultra Condensed +2 | Extra Condensed +3 | Condensed +4 | Semi Condensed +5 | Normal +6 | Semi Expanded +7 | Expanded +8 | Extra Expanded +9 | Ultra Expanded + +## License + +MIT + + + # forever-agent (Apache-2.0) ------------------------------------------------- Apache License @@ -6032,6 +6957,63 @@ Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors +# form-urlencoded (MIT) +------------------------------------------------- +form-urlencoded +=============== +**(c)[Bumblehead][0],[JBlashill][6] 2012,2013,2014,2015,2016** + +[![npm version](https://badge.fury.io/js/form-urlencoded.svg)](https://badge.fury.io/js/form-urlencoded) + +Returns `x-www-form-urlencoded` string data, an encoding often used when an [HTML form is submitted][1]. Form data is serialised in [this format][2] and sent to a server. + + +```javascript +var formurlencoded = require('form-urlencoded'); +var obj = { + str : 'val', + num : 0, + arr : [3, {prop : false}, 1, null, 6], + obj : {prop1 : null, prop2 : ['elem']} +}; + +console.log(formurlencoded(obj)); +// str=val&num=0&arr%5B%5D=3&arr%5B%5D%5Bprop%5D=false&arr% +// 5B%5D=1&arr%5B%5D=null&arr%5B%5D=6&obj%5Bprop1%5D=null&o +// bj%5Bprop2%5D%5B%5D=elem + +console.log(formurlencoded(obj, { + ignorenull : true, + sorted : true +})); +// arr%5B%5D=3&arr%5B%5D%5Bprop%5D=false&arr%5B%5D=1&arr%5B +// %5D=6&num=0&obj%5Bprop2%5D%5B%5D=elem&str=val +``` + +[0]: http://www.bumblehead.com "bumblehead" +[1]: http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1 "w3c" +[2]: http://www.w3.org/TR/html5/forms.html#url-encoded-form-data "w3c" +[3]: http://nodejs.org/api/querystring.html "node.js qs" +[4]: www.ruby-doc.org/stdlib-1.9.3/libdoc/uri/rdoc/URI.html "rails" +[5]: https://github.com/visionmedia/node-querystring "tj qs" +[6]: https://github.com/jblashill/form-urlencoded "jblashill" +[7]: https://raw.githubusercontent.com/iambumblehead/es5classic/master/es5classic_120x120.png + + +![scrounge](https://github.com/iambumblehead/scroungejs/raw/master/img/hand.png)[![es5 classic][7]][7] + +(The MIT License) + +Copyright (c) 2012-2016 [Bumblehead][0] + +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. + + + # fs-constants (MIT) ------------------------------------------------- The MIT License (MIT) @@ -6078,6 +7060,54 @@ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHE +# fs.realpath (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. + +---- + +This library bundles a version of the `fs.realpath` and `fs.realpathSync` +methods from Node.js v0.10 under the terms of the Node.js MIT license. + +Node's license follows, also included at the header of `old.js` which contains +the licensed code: + + Copyright Joyent, Inc. and other Node 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. + + + # fuzzaldrin (MIT) ------------------------------------------------- Copyright (c) 2009-2011 Joshaven Potter @@ -6227,6 +7257,26 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# glob (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. + + + # good-listener (MIT) ------------------------------------------------- # good-listener @@ -6454,6 +7504,33 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# html-minifier (MIT) +------------------------------------------------- +Copyright (c) 2010-2018 Juriy "kangax" Zaytsev + +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. + + + # html-tags (MIT) ------------------------------------------------- MIT License @@ -6643,6 +7720,26 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# inflight (ISC) +------------------------------------------------- +The ISC License + +Copyright (c) Isaac Z. Schlueter + +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. + + + # inherits (ISC) ------------------------------------------------- The ISC License @@ -6683,20 +7780,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -# invert-kv (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. - - - # is-array (MIT) ------------------------------------------------- @@ -6875,27 +7958,15 @@ THE SOFTWARE. # is-obj (MIT) ------------------------------------------------- -The MIT License (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: +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. @@ -7120,6 +8191,125 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# iso-639-1 (MIT) +------------------------------------------------- +# ISO-639-1 +[![NPM Version][npm-image]][npm-url] +[![Build Status][travis-image]][travis-url] +[![Download Count][download-url]][npm-url] + +[travis-image]: https://travis-ci.org/meikidd/iso-639-1.svg?branch=master +[travis-url]: https://travis-ci.org/meikidd/iso-639-1 +[npm-image]: https://img.shields.io/npm/v/iso-639-1.svg?style=flat-square +[npm-url]: https://npmjs.org/package/iso-639-1 +[download-url]: https://img.shields.io/npm/dt/iso-639-1.svg?style=flat-square + + +Simple interface for [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes + +## Installation + +``` +npm install iso-639-1 +``` + +## Usage + +### Node.js + +``` +const ISO6391 = require('iso-639-1') +console.log(ISO6391.getName('en')) // 'English' +``` + +### Browsers + +HTML + +``` + +``` + +Visit global variable ISO6391 in js + +``` +console.log(ISO6391.getName('en')) // 'English' +``` + +## Methods + +### getName(code) + - @param code {string} + - @return {string} + +Lookup language english name by code + +### getAllNames() + - @return {array} + +Get array of all language english names + +### getNativeName(code) + - @param code {string} + - @return {string} + +Lookup language native name by code + +### getAllNativeNames() + - @return {array} + +Get array of all language native names + + +### getCode(name) + - @param name {string} + - @return {string} + +Lookup code by english name or native name + +### getAllCodes() + - @return {array} + +Get array of all codes + +### validate(code) + - @param code {string} + - @return {boolean} + +Check whether the given code is in the list of [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) + +### getLanguages(codes) + - @param codes {array} + - @return {array} + +Get the array of the language objects by the given codes + +## Usage + +``` +const ISO6391 = require('iso-639-1') + +console.log(ISO6391.getName('zh')) // 'Chinese' +console.log(ISO6391.getNativeName('zh')) // '中文' + +console.log(ISO6391.getAllNames()) // ['Afar','Abkhaz', ... ,'Zulu'] +console.log(ISO6391.getAllNativeNames()) //['Afaraf','аҧсуа бызшәа', ... ,'isiZulu' ] + +console.log(ISO6391.getCode('Chinese')) // 'zh' +console.log(ISO6391.getCode('中文')) // 'zh' + +console.log(ISO6391.getAllCodes()) //['aa','ab',...,'zu'] + +console.log(ISO6391.validate('en')) // true +console.log(ISO6391.validate('xx')) // false + +console.log(ISO6391.getLanguages(['en', 'zh'])) +// [{code:'en',name:'English',nativeName:'English'},{code:'zh',name:'Chinese',nativeName:'中文'}] + +``` + + + # isobject (MIT) ------------------------------------------------- The MIT License (MIT) @@ -7162,6 +8352,32 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# joplin-turndown-plugin-gfm (MIT) +------------------------------------------------- +MIT License + +Copyright (c) 2017 Dom Christie + +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. + + + # jsbn (MIT) ------------------------------------------------- Licensing @@ -7260,7 +8476,7 @@ SOFTWARE. -# json-schema-typed (BSD-2-Clause) +# json-schema-typed (BSD*) ------------------------------------------------- BSD-2-Clause License @@ -7493,20 +8709,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# lcid (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. - - - # left-pad (WTFPL) ------------------------------------------------- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE @@ -7984,7 +9186,7 @@ terms above. # lodash (MIT) ------------------------------------------------- -Copyright JS Foundation and other contributors +Copyright OpenJS Foundation and other contributors Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors @@ -8034,6 +9236,52 @@ terms above. +# lower-case (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2014 Blake Embrey (hello@blakeembrey.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 + +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. + + + # macos-release (MIT) ------------------------------------------------- MIT License @@ -8062,34 +9310,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI -# map-age-cleaner (MIT) -------------------------------------------------- -MIT License - -Copyright (c) Sam Verschueren (github.com/SamVerschueren) - -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. - - - -# mem (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. - - - # mermaid (MIT) ------------------------------------------------- The MIT License (MIT) @@ -8198,6 +9418,53 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# minify (MIT) +------------------------------------------------- +(The MIT License) + +Copyright (c) 2012-2019 Coderaiser + +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. + + + +# minimatch (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. + + + # minimist (MIT) ------------------------------------------------- This software is released under the MIT license: @@ -8247,30 +9514,15 @@ THE SOFTWARE. -# moment (MIT) +# moment-mini (MIT) ------------------------------------------------- -Copyright (c) JS Foundation and other contributors +[![npm version](https://badge.fury.io/js/moment-mini.svg)](https://badge.fury.io/js/moment-mini) -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: +# moment-mini -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +This package exposes [moment.min.js](https://github.com/moment/moment/blob/develop/min/moment.min.js) as an npm module so you can import/require the minified version of moment into your projects without the bloat of the locales. -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. +This package will follow the [moment.js releases](https://github.com/moment/moment/releases). @@ -8370,6 +9622,32 @@ THE SOFTWARE. +# no-case (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2014 Blake Embrey (hello@blakeembrey.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. + + + # node-abi (MIT) ------------------------------------------------- MIT License @@ -8747,6 +10025,20 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# onetime (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. + + + # optionator (MIT) ------------------------------------------------- Copyright (c) George Zahariev @@ -8774,46 +10066,6 @@ OTHER DEALINGS IN THE SOFTWARE. -# os-homedir (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. - - - -# os-locale (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. - - - # os-name (MIT) ------------------------------------------------- MIT License @@ -8828,32 +10080,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI -# p-defer (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. - - - # p-finally (MIT) ------------------------------------------------- The MIT License (MIT) @@ -8880,20 +10106,6 @@ THE SOFTWARE. -# p-is-promise (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-limit (MIT) ------------------------------------------------- MIT License @@ -8922,6 +10134,20 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# p-throttle (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-try (MIT) ------------------------------------------------- MIT License @@ -8936,6 +10162,32 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI +# param-case (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2014 Blake Embrey (hello@blakeembrey.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. + + + # parse-sel (MIT) ------------------------------------------------- # parse-sel @@ -9032,6 +10284,32 @@ THE SOFTWARE. +# path-is-absolute (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. + + + # path-key (MIT) ------------------------------------------------- The MIT License (MIT) @@ -9570,6 +10848,18 @@ OTHER DEALINGS IN THE SOFTWARE. +# prettier (MIT) +------------------------------------------------- +Copyright © James Long 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: + +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 @@ -9718,6 +11008,55 @@ The complete list of contributors can be found at: https://github.com/hapijs/qs/ +# querystring (MIT) +------------------------------------------------- +Copyright 2012 Irakli Gozalishvili. 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. + + + +# querystringify (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2015 Unshift.io, Arnout Kazemier, the 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. + + + # raphael (MIT) ------------------------------------------------- The MIT License @@ -9878,6 +11217,32 @@ require("regenerator-runtime/path").path +# relateurl (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) Steven Vachon (svachon.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. + + + # request-promise-core (ISC) ------------------------------------------------- ISC License @@ -10024,6 +11389,32 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# requires-port (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2015 Unshift.io, Arnout Kazemier, the 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. + + + # resize-observer-polyfill (MIT) ------------------------------------------------- The MIT License (MIT) @@ -10050,6 +11441,26 @@ SOFTWARE. +# rimraf (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. + + + # rw (BSD-3-Clause) ------------------------------------------------- Copyright (c) 2014-2016, Michael Bostock @@ -10978,6 +12389,40 @@ THE SOFTWARE. +# terser (BSD-2-Clause) +------------------------------------------------- +UglifyJS is released under the BSD license: + +Copyright 2012-2018 (c) Mihai Bazon + +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 HOLDER “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 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. + + + # throttle-debounce (MIT) ------------------------------------------------- Copyright (c) Ivan Nikolić @@ -11359,32 +12804,6 @@ SOFTWARE. -# to-buffer (MIT) -------------------------------------------------- -The MIT License (MIT) - -Copyright (c) 2016 Mathias Buus - -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. - - - # to-regex-range (MIT) ------------------------------------------------- The MIT License (MIT) @@ -11485,6 +12904,58 @@ SOFTWARE. +# try-catch (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2014-2018 coderaiser + +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. + + + +# try-to-catch (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) coderaiser + +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. + + + # tslib (Apache-2.0) ------------------------------------------------- Apache License @@ -11605,32 +13076,6 @@ END OF TERMS AND CONDITIONS -# turndown-plugin-gfm (MIT) -------------------------------------------------- -MIT License - -Copyright (c) 2017 Dom Christie - -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 @@ -11779,6 +13224,40 @@ THE SOFTWARE. +# uglify-js (BSD-2-Clause) +------------------------------------------------- +UglifyJS is released under the BSD license: + +Copyright 2012-2019 (c) Mihai Bazon + +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 HOLDER “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 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. + + + # underscore (MIT) ------------------------------------------------- Copyright (c) 2009-2018 Jeremy Ashkenas, DocumentCloud and Investigative @@ -11844,6 +13323,58 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# unsplash-js (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2015 Naoufal Kadhom + +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. + + + +# upper-case (MIT) +------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2014 Blake Embrey (hello@blakeembrey.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. + + + # uri-js (BSD-2-Clause) ------------------------------------------------- # URI.js @@ -12048,33 +13579,29 @@ The views and conclusions contained in the software and documentation are those -# url-template (BSD*) +# url-parse (MIT) ------------------------------------------------- -Copyright (c) 2012-2014, Bram Stein -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. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR "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 OWNER 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. +The MIT License (MIT) + +Copyright (c) 2015 Unshift.io, Arnout Kazemier, the 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. @@ -12276,7 +13803,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # vega-event-selector (BSD-3-Clause) ------------------------------------------------- -Copyright (c) 2017, University of Washington Interactive Data Lab +Copyright (c) 2015-2018, University of Washington Interactive Data Lab All rights reserved. Redistribution and use in source and binary forms, with or without @@ -12340,13 +13867,33 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # vega-force (BSD-3-Clause) ------------------------------------------------- -# vega-force +Copyright (c) 2015-2018, University of Washington Interactive Data Lab +All rights reserved. -Force simulation transform for Vega dataflows. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: -This package provides the following Vega data transform: +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -- [**Force**](https://vega.github.io/vega/docs/transforms/force/) [<>](https://github.com/vega/vega/blob/master/packages/vega-force/src/Force.js "Source") +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 the copyright holder 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 COPYRIGHT OWNER 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. @@ -12416,19 +13963,33 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # vega-hierarchy (BSD-3-Clause) ------------------------------------------------- -# vega-hierarchy +Copyright (c) 2015-2018, University of Washington Interactive Data Lab +All rights reserved. -Hierarchical layout transforms for Vega dataflows. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: -This pacakge provides the following Vega data transforms: +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -- [**Nest**](https://vega.github.io/vega/docs/transforms/nest/) [<>](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Nest.js "Source") -- [**Pack**](https://vega.github.io/vega/docs/transforms/pack/) [<>](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Pack.js "Source") -- [**Partition**](https://vega.github.io/vega/docs/transforms/partition/) [<>](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Partition.js "Source") -- [**Stratify**](https://vega.github.io/vega/docs/transforms/stratify/) [<>](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Stratify.js "Source") -- [**Tree**](https://vega.github.io/vega/docs/transforms/tree/) [<>](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Tree.js "Source") -- [**Treemap**](https://vega.github.io/vega/docs/transforms/treemap/) [<>](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Treemap.js "Source") -- [**TreeLinks**](https://vega.github.io/vega/docs/transforms/treelinks/) [<>](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/TreeLinks.js "Source") +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 the copyright holder 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 COPYRIGHT OWNER 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. @@ -14006,30 +15567,6 @@ THE SOFTWARE. -# xtend (MIT) -------------------------------------------------- -Copyright (c) 2012-2014 Raynos. - -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. - - - # y18n (ISC) ------------------------------------------------- Copyright (c) 2015, Contributors @@ -14048,6 +15585,26 @@ THIS SOFTWARE. +# yallist (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. + + + # yargs-parser (ISC) ------------------------------------------------- Copyright (c) 2016, Contributors @@ -14094,4 +15651,526 @@ THE SOFTWARE. +# hunspell (LGPL 2.1) +------------------------------------------------- + + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations +below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. +^L + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it +becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. +^L + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control +compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. +^L + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. +^L + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. +^L + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. +^L + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply, and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License +may add an explicit geographical distribution limitation excluding those +countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. +^L + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS +^L + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms +of the ordinary General Public License). + + To apply these terms, attach the following notices to the library. +It is safest to attach them to the start of each source file to most +effectively convey the exclusion of warranty; and each file should +have at least the "copyright" line and a pointer to where the full +notice is found. + + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper +mail. + +You should also get your employer (if you work as a programmer) or +your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James +Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + + + + + + diff --git a/resources/hunspell_dictionaries/LICENSE-en-US.txt b/resources/hunspell_dictionaries/LICENSE-en-US.txt new file mode 100644 index 00000000..b2d92002 --- /dev/null +++ b/resources/hunspell_dictionaries/LICENSE-en-US.txt @@ -0,0 +1,273 @@ +en_US Hunspell Dictionary +Version 2017.01.22 +Sun Jan 22 17:22:40 2017 -0500 [0c64f5c] +http://wordlist.sourceforge.net + +README file for English Hunspell dictionaries derived from SCOWL. +These dictionaries are created using the speller/make-hunspell-dict +script in SCOWL. + +The following dictionaries are available: + en_US (American) + en_CA (Canadian) + en_GB-ise (British with "ise" spelling) + en_GB-ize (British with "ize" spelling) + en_AU (Australian) + en_US-large + en_CA-large + en_GB-large (with both "ise" and "ize" spelling) + en_AU-large + +The normal (non-large) dictionaries correspond to SCOWL size 60 and, +to encourage consistent spelling, generally only include one spelling +variant for a word. The large dictionaries correspond to SCOWL size +70 and may include multiple spelling for a word when both variants are +considered almost equal. The larger dictionaries however (1) have not +been as carefully checked for errors as the normal dictionaries and +thus may contain misspelled or invalid words; and (2) contain +uncommon, yet valid, words that might cause problems as they are +likely to be misspellings of more common words (for example, "ort" and +"calender"). +To get an idea of the difference in size, here are 25 random words +only found in the large dictionary for American English: + Bermejo Freyr's Guenevere Hatshepsut Nottinghamshire arrestment + crassitudes crural dogwatches errorless fetial flaxseeds godroon + incretion jalapeño's kelpie kishkes neuroglias pietisms pullulation + stemwinder stenoses syce thalassic zees +The en_US, en_CA and en_AU are the official dictionaries for Hunspell. +The en_GB and large dictionaries are made available on an experimental +basis. If you find them useful please send me a quick email at +kevina@gnu.org. +If none of these dictionaries suite you (for example, maybe you want +the normal dictionary that also includes common variants) additional +dictionaries can be generated at http://app.aspell.net/create or by +modifying speller/make-hunspell-dict in SCOWL. Please do let me know +if you end up publishing a customized dictionary. +If a word is not found in the dictionary or a word is there you think +shouldn't be, you can lookup the word up at http://app.aspell.net/lookup +to help determine why that is. +General comments on these list can be sent directly to me at +kevina@gnu.org or to the wordlist-devel mailing lists +(https://lists.sourceforge.net/lists/listinfo/wordlist-devel). If you +have specific issues with any of these dictionaries please file a bug +report at https://github.com/kevina/wordlist/issues. +IMPORTANT CHANGES INTRODUCED In 2016.11.20: +New Australian dictionaries thanks to the work of Benjamin Titze +(btitze@protonmail.ch). +IMPORTANT CHANGES INTRODUCED IN 2016.04.24: +The dictionaries are now in UTF-8 format instead of ISO-8859-1. This +was required to handle smart quotes correctly. +IMPORTANT CHANGES INTRODUCED IN 2016.01.19: +"SET UTF8" was changes to "SET UTF-8" in the affix file as some +versions of Hunspell do not recognize "UTF8". +ADDITIONAL NOTES: +The NOSUGGEST flag was added to certain taboo words. While I made an +honest attempt to flag the strongest taboo words with the NOSUGGEST +flag, I MAKE NO GUARANTEE THAT I FLAGGED EVERY POSSIBLE TABOO WORD. +The list was originally derived from Németh László, however I removed +some words which, while being considered taboo by some dictionaries, +are not really considered swear words in today's society. +COPYRIGHT, SOURCES, and CREDITS: +The English dictionaries come directly from SCOWL +and is thus under the same copyright of SCOWL. The affix file is +a heavily modified version of the original english.aff file which was +released as part of Geoff Kuenning's Ispell and as such is covered by +his BSD license. Part of SCOWL is also based on Ispell thus the +Ispell copyright is included with the SCOWL copyright. +The collective work is Copyright 2000-2016 by Kevin Atkinson as well +as any of the copyrights mentioned below: + Copyright 2000-2016 by Kevin Atkinson + Permission to use, copy, modify, distribute and sell these word + lists, the associated scripts, the output created from the scripts, + and its documentation for any purpose is hereby granted without fee, + provided that the above copyright notice appears in all copies and + that both that copyright notice and this permission notice appear in + supporting documentation. Kevin Atkinson makes no representations + about the suitability of this array for any purpose. It is provided + "as is" without express or implied warranty. +Alan Beale also deserves special credit as he has, +in addition to providing the 12Dicts package and being a major +contributor to the ENABLE word list, given me an incredible amount of +feedback and created a number of special lists (those found in the +Supplement) in order to help improve the overall quality of SCOWL. +The 10 level includes the 1000 most common English words (according to +the Moby (TM) Words II [MWords] package), a subset of the 1000 most +common words on the Internet (again, according to Moby Words II), and +frequently class 16 from Brian Kelk's "UK English Wordlist +with Frequency Classification". +The MWords package was explicitly placed in the public domain: + The Moby lexicon project is complete and has + been place into the public domain. Use, sell, + rework, excerpt and use in any way on any platform. + Placing this material on internal or public servers is + also encouraged. The compiler is not aware of any + export restrictions so freely distribute world-wide. + You can verify the public domain status by contacting + Grady Ward + 3449 Martha Ct. + Arcata, CA 95521-4884 + grady@netcom.com + grady@northcoast.com +The "UK English Wordlist With Frequency Classification" is also in the +Public Domain: + Date: Sat, 08 Jul 2000 20:27:21 +0100 + From: Brian Kelk + > I was wondering what the copyright status of your "UK English + > Wordlist With Frequency Classification" word list as it seems to + > be lacking any copyright notice. + There were many many sources in total, but any text marked + "copyright" was avoided. Locally-written documentation was one + source. An earlier version of the list resided in a filespace called + PUBLIC on the University mainframe, because it was considered public + domain. + Date: Tue, 11 Jul 2000 19:31:34 +0100 + > So are you saying your word list is also in the public domain? + That is the intention. +The 20 level includes frequency classes 7-15 from Brian's word list. +The 35 level includes frequency classes 2-6 and words appearing in at +least 11 of 12 dictionaries as indicated in the 12Dicts package. All +words from the 12Dicts package have had likely inflections added via +my inflection database. +The 12Dicts package and Supplement is in the Public Domain. +The WordNet database, which was used in the creation of the +Inflections database, is under the following copyright: + This software and database is being provided to you, the LICENSEE, + by Princeton University under the following license. By obtaining, + using and/or copying this software and database, you agree that you + have read, understood, and will comply with these terms and + conditions.: + Permission to use, copy, modify and distribute this software and + database and its documentation for any purpose and without fee or + royalty is hereby granted, provided that you agree to comply with + the following copyright notice and statements, including the + disclaimer, and that the same appear on ALL copies of the software, + database and documentation, including modifications that you make + for internal use or for distribution. + WordNet 1.6 Copyright 1997 by Princeton University. All rights + reserved. + THIS SOFTWARE AND DATABASE IS PROVIDED "AS IS" AND PRINCETON + UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR + IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PRINCETON + UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANT- + ABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE + LICENSED SOFTWARE, DATABASE OR DOCUMENTATION WILL NOT INFRINGE ANY + THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + The name of Princeton University or Princeton may not be used in + advertising or publicity pertaining to distribution of the software + and/or database. Title to copyright in this software, database and + any associated documentation shall at all times remain with + Princeton University and LICENSEE agrees to preserve same. +The 40 level includes words from Alan's 3esl list found in version 4.0 +of his 12dicts package. Like his other stuff the 3esl list is also in the +public domain. +The 50 level includes Brian's frequency class 1, words appearing +in at least 5 of 12 of the dictionaries as indicated in the 12Dicts +package, and uppercase words in at least 4 of the previous 12 +dictionaries. A decent number of proper names is also included: The +top 1000 male, female, and Last names from the 1990 Census report; a +list of names sent to me by Alan Beale; and a few names that I added +myself. Finally a small list of abbreviations not commonly found in +other word lists is included. +The name files form the Census report is a government document which I +don't think can be copyrighted. +The file special-jargon.50 uses common.lst and word.lst from the +"Unofficial Jargon File Word Lists" which is derived from "The Jargon +File". All of which is in the Public Domain. This file also contain +a few extra UNIX terms which are found in the file "unix-terms" in the +special/ directory. +The 55 level includes words from Alan's 2of4brif list found in version +4.0 of his 12dicts package. Like his other stuff the 2of4brif is also +in the public domain. +The 60 level includes all words appearing in at least 2 of the 12 +dictionaries as indicated by the 12Dicts package. +The 70 level includes Brian's frequency class 0 and the 74,550 common +dictionary words from the MWords package. The common dictionary words, +like those from the 12Dicts package, have had all likely inflections +added. The 70 level also included the 5desk list from version 4.0 of +the 12Dics package which is in the public domain. +The 80 level includes the ENABLE word list, all the lists in the +ENABLE supplement package (except for ABLE), the "UK Advanced Cryptics +Dictionary" (UKACD), the list of signature words from the YAWL package, +and the 10,196 places list from the MWords package. +The ENABLE package, mainted by M\Cooper , +is in the Public Domain: + The ENABLE master word list, WORD.LST, is herewith formally released + into the Public Domain. Anyone is free to use it or distribute it in + any manner they see fit. No fee or registration is required for its + use nor are "contributions" solicited (if you feel you absolutely + must contribute something for your own peace of mind, the authors of + the ENABLE list ask that you make a donation on their behalf to your + favorite charity). This word list is our gift to the Scrabble + community, as an alternate to "official" word lists. Game designers + may feel free to incorporate the WORD.LST into their games. Please + mention the source and credit us as originators of the list. Note + that if you, as a game designer, use the WORD.LST in your product, + you may still copyright and protect your product, but you may *not* + legally copyright or in any way restrict redistribution of the + WORD.LST portion of your product. This *may* under law restrict your + rights to restrict your users' rights, but that is only fair. +UKACD, by J Ross Beresford , is under the +following copyright: + Copyright (c) J Ross Beresford 1993-1999. All Rights Reserved. + The following restriction is placed on the use of this publication: + if The UK Advanced Cryptics Dictionary is used in a software package + or redistributed in any form, the copyright notice must be + prominently displayed and the text of this document must be included + verbatim. + There are no other restrictions: I would like to see the list + distributed as widely as possible. +The 95 level includes the 354,984 single words, 256,772 compound +words, 4,946 female names and the 3,897 male names, and 21,986 names +from the MWords package, ABLE.LST from the ENABLE Supplement, and some +additional words found in my part-of-speech database that were not +found anywhere else. +Accent information was taken from UKACD. +The VarCon package was used to create the American, British, Canadian, +and Australian word list. It is under the following copyright: + Copyright 2000-2016 by Kevin Atkinson + Permission to use, copy, modify, distribute and sell this array, the + associated software, and its documentation for any purpose is hereby + granted without fee, provided that the above copyright notice appears + in all copies and that both that copyright notice and this permission + notice appear in supporting documentation. Kevin Atkinson makes no + representations about the suitability of this array for any + purpose. It is provided "as is" without express or implied warranty. + Copyright 2016 by Benjamin Titze + Permission to use, copy, modify, distribute and sell this array, the + associated software, and its documentation for any purpose is hereby + granted without fee, provided that the above copyright notice appears + in all copies and that both that copyright notice and this permission + notice appear in supporting documentation. Benjamin Titze makes no + representations about the suitability of this array for any + purpose. It is provided "as is" without express or implied warranty. + Since the original words lists come from the Ispell distribution: + Copyright 1993, Geoff Kuenning, Granada Hills, CA + 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. All modifications to the source code must be clearly marked as + such. Binary redistributions based on modified source code + must be clearly marked as modified versions in the documentation + and/or other materials provided with the distribution. + (clause 4 removed with permission from Geoff Kuenning) + 5. The name of Geoff Kuenning may not be used to endorse or promote + products derived from this software without specific prior + written permission. + THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING 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 GEOFF KUENNING 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. +Build Date: Sun Jan 22 17:42:42 EST 2017 diff --git a/resources/hunspell_dictionaries/LICENSE-hunspell.txt b/resources/hunspell_dictionaries/LICENSE-hunspell.txt new file mode 100644 index 00000000..ac8b4dd2 --- /dev/null +++ b/resources/hunspell_dictionaries/LICENSE-hunspell.txt @@ -0,0 +1,516 @@ + + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations +below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. +^L + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it +becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. +^L + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control +compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. +^L + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. +^L + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. +^L + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. +^L + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply, and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License +may add an explicit geographical distribution limitation excluding those +countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. +^L + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS +^L + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms +of the ordinary General Public License). + + To apply these terms, attach the following notices to the library. +It is safest to attach them to the start of each source file to most +effectively convey the exclusion of warranty; and each file should +have at least the "copyright" line and a pointer to where the full +notice is found. + + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper +mail. + +You should also get your employer (if you work as a programmer) or +your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James +Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + + diff --git a/resources/hunspell_dictionaries/en-US.bdic b/resources/hunspell_dictionaries/en-US.bdic new file mode 100644 index 00000000..afa6ab7d Binary files /dev/null and b/resources/hunspell_dictionaries/en-US.bdic differ diff --git a/src/index.ejs b/src/index.ejs index 6530aeac..e2b05c46 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -36,7 +36,7 @@ position: absolute; top: 0; left: 0; - + -webkit-animation: sk-bounce 2.0s infinite ease-in-out; animation: sk-bounce 2.0s infinite ease-in-out; } @@ -52,10 +52,10 @@ } @keyframes sk-bounce { - 0%, 100% { + 0%, 100% { transform: scale(0.0); -webkit-transform: scale(0.0); - } 50% { + } 50% { transform: scale(1.0); -webkit-transform: scale(1.0); } @@ -68,7 +68,7 @@ <% } %> - +
diff --git a/src/main/app/index.js b/src/main/app/index.js index 7f87cd08..339a3ed8 100644 --- a/src/main/app/index.js +++ b/src/main/app/index.js @@ -10,6 +10,7 @@ import parseArgs from '../cli/parser' import { normalizeMarkdownPath } from '../filesystem/markdown' import { selectTheme } from '../menu/actions/theme' import { dockMenu } from '../menu/templates' +import ensureDefaultDict from '../preferences/hunspell' import { watchers } from '../utils/imagePathAutoComplement' import { WindowType } from '../windows/base' import EditorWindow from '../windows/editor' @@ -109,6 +110,13 @@ class App { event.preventDefault() }) }) + + // Copy default (en-US) Hunspell dictionary. + const { paths } = this._accessor + ensureDefaultDict(paths.userDataPath) + .catch(error => { + log.error(error) + }) } async getScreenshotFileName () { diff --git a/src/main/preferences/hunspell.js b/src/main/preferences/hunspell.js new file mode 100644 index 00000000..a9e20ff0 --- /dev/null +++ b/src/main/preferences/hunspell.js @@ -0,0 +1,28 @@ +import path from 'path' +import fs from 'fs-extra' +import { isOsx } from '../config' + +// This is an asynchronous function to not block the process. The spell checker may be +// diabled on first application start because the dictionary doesn't exists or is incomplete. +export default async appDataPath => { + let srcPath = process.resourcesPath + if (process.env.NODE_ENV === 'development') { + // Default locations: + // Linux/Windows: node_modules/electron/dist/resources/ + // macOS: node_modules/electron/dist/Electron.app/Contents/Resources + if (isOsx) { + srcPath = path.join(srcPath, '../..') + } + srcPath = path.join(srcPath, '../../../../resources') + } + srcPath = path.join(srcPath, 'hunspell_dictionaries/en-US.bdic') + + // NOTE: Hardcoded in "@hfelix/electron-spellchecker/src/spell-check-handler.js" + const destDir = path.join(appDataPath, 'dictionaries') + const destPath = path.join(destDir, 'en-US.bdic') + + if (!await fs.exists(destPath) && await fs.exists(srcPath)) { + await fs.ensureDir(destDir) + await fs.copy(srcPath, destPath) + } +} diff --git a/src/main/preferences/schema.json b/src/main/preferences/schema.json index 4ab4a757..50a63ca4 100644 --- a/src/main/preferences/schema.json +++ b/src/main/preferences/schema.json @@ -233,6 +233,32 @@ "type": "string" }, + "spellcheckerEnabled": { + "description": "Spelling--Whether spell checking is enabled.", + "type": "boolean", + "default": false + }, + "spellcheckerIsHunspell": { + "description": "Spelling--Whether Hunspell or the OS spell checker is used (macOS only).", + "type": "boolean", + "default": false + }, + "spellcheckerNoUnderline": { + "description": "Spelling--Don't underline spelling mistakes.", + "type": "boolean", + "default": false + }, + "spellcheckerAutoDetectLanguage": { + "description": "Spelling--Try to automatically identify the used language when typing.", + "type": "boolean", + "default": false + }, + "spellcheckerLanguage": { + "description": "Spelling--The spell checker language", + "pattern": "^[a-z]{2}(?:[-][A-Z]{2})?$", + "default": "en-US" + }, + "imageInsertAction": { "description": "Image--The default behavior after insert image from local folder", "enum": [ diff --git a/src/main/windows/editor.js b/src/main/windows/editor.js index c373e29d..f8861e08 100644 --- a/src/main/windows/editor.js +++ b/src/main/windows/editor.js @@ -400,6 +400,16 @@ class EditorWindow extends BaseWindow { // --- private --------------------------------- + _buildUrlString (windowId, env, userPreference) { + const url = this._buildUrlWithSettings(windowId, env, userPreference) + const spellcheckerIsHunspell = userPreference.getItem('spellcheckerIsHunspell') + + // Add additional settings + url.searchParams.set('slp', spellcheckerIsHunspell ? '1' : '0') + + return url.toString() + } + /** * Open a new new tab from the markdown document. * diff --git a/src/muya/lib/config/index.js b/src/muya/lib/config/index.js index 09f26f7e..760798cc 100644 --- a/src/muya/lib/config/index.js +++ b/src/muya/lib/config/index.js @@ -255,6 +255,10 @@ export const MUYA_DEFAULT_OPTION = { mermaidTheme: 'default', // dark / forest / default vegaTheme: 'latimes', // excel / ggplot2 / quartz / vox / fivethirtyeight / dark / latimes hideQuickInsertHint: false, + // Whether we should set spellcheck attribute on our container to highlight misspelled words. + // NOTE: The browser is not able to correct misspelled words words without a custom + // implementation like in Mark Text. + spellcheckEnabled: false, // transform the image to local folder, cloud or just return the local path imageAction: null, // Call Electron open dialog or input element type is file. diff --git a/src/muya/lib/contentState/core.js b/src/muya/lib/contentState/core.js new file mode 100644 index 00000000..60182bdd --- /dev/null +++ b/src/muya/lib/contentState/core.js @@ -0,0 +1,56 @@ +const coreApi = ContentState => { + /** + * Replace the word range with the given replacement. + * + * @param {*} line A line block reference of the line that contains the word to + * replace - must be a valid reference! + * @param {*} wordCursor The range of the word to replace (line: "abc >foo< abc" + * whereas `>`/`<` is start and end of `wordCursor`). This + * range is replaced by `replacement`. + * @param {string} replacement The replacement. + * @param {boolean} setCursor Shoud we update the editor cursor? + */ + ContentState.prototype.replaceWordInline = function (line, wordCursor, replacement, setCursor = false) { + const { start: lineStart, end: lineEnd } = line + const { start: wordStart, end: wordEnd } = wordCursor + + // Validate cursor ranges. + if (wordStart.key !== wordEnd.key) { + throw new Error('Expect a single line word cursor: "start.key" is not equal to "end.key".') + } else if (lineStart.key !== lineEnd.key) { + throw new Error('Expect a single line line cursor: "start.key" is not equal to "end.key".') + } else if (wordStart.offset > wordEnd.offset) { + throw new Error(`Invalid word cursor offset: ${wordStart.offset} should be less ${wordEnd.offset}.`) + } else if (lineStart.key !== wordEnd.key) { + throw new Error(`Cursor mismatch: Expect the same line but got ${lineStart.key} and ${wordEnd.key}.`) + } else if (lineStart.block.text.length < wordEnd.offset) { + throw new Error('Invalid cursor: Replacement length is larger than line length.') + } + + const { block } = lineStart + const { offset: left } = wordStart + const { offset: right } = wordEnd + + // Replace word range with replacement. + block.text = block.text.substr(0, left) + replacement + block.text.substr(right) + + // Update cursor + if (setCursor) { + const cursor = Object.assign({}, wordStart, { + offset: left + replacement.length + }) + line.start = cursor + line.end = cursor + this.cursor = { + start: cursor, + end: cursor + } + } + + this.partialRender() + this.muya.dispatchSelectionChange() + this.muya.dispatchChange() + } +} + +export default coreApi diff --git a/src/muya/lib/contentState/index.js b/src/muya/lib/contentState/index.js index f7d02ac2..de73885f 100644 --- a/src/muya/lib/contentState/index.js +++ b/src/muya/lib/contentState/index.js @@ -10,6 +10,7 @@ import codeBlockCtrl from './codeBlockCtrl' import tableBlockCtrl from './tableBlockCtrl' import tableDragBarCtrl from './tableDragBarCtrl' import tableSelectCellsCtrl from './tableSelectCellsCtrl' +import coreApi from './core' import History from './history' import arrowCtrl from './arrowCtrl' import pasteCtrl from './pasteCtrl' @@ -32,6 +33,7 @@ import Cursor from '../selection/cursor' import escapeCharactersMap, { escapeCharacters } from '../parser/escapeCharacter' const prototypes = [ + coreApi, tabCtrl, enterCtrl, updateCtrl, diff --git a/src/muya/lib/eventHandler/clickEvent.js b/src/muya/lib/eventHandler/clickEvent.js index c00e9a7b..8e2d9c64 100644 --- a/src/muya/lib/eventHandler/clickEvent.js +++ b/src/muya/lib/eventHandler/clickEvent.js @@ -28,9 +28,9 @@ class ClickEvent { if (!start || !end) { return } + const startBlock = contentState.getBlock(start.key) const nextTextBlock = contentState.findNextBlockInLocation(startBlock) - if ( nextTextBlock && nextTextBlock.key === end.key && end.offset === 0 && diff --git a/src/muya/lib/index.js b/src/muya/lib/index.js index 85779bb4..494d8f8e 100644 --- a/src/muya/lib/index.js +++ b/src/muya/lib/index.js @@ -371,6 +371,12 @@ class Muya { } } + // Set spellcheck container attribute + const spellcheckEnabled = options.spellcheckEnabled + if (typeof spellcheckEnabled !== 'undefined') { + this.container.setAttribute('spellcheck', !!spellcheckEnabled) + } + if (options.bulletListMarker) { this.contentState.turndownConfig.bulletListMarker = options.bulletListMarker } @@ -380,6 +386,21 @@ class Muya { return this.keyboard.hideAllFloatTools() } + /** + * Replace the word range with the given replacement. + * + * @param {*} line A line block reference of the line that contains the word to + * replace - must be a valid reference! + * @param {*} wordCursor The range of the word to replace (line: "abc >foo< abc" + * whereas `>`/`<` is start and end of `wordCursor`). This + * range is replaced by `replacement`. + * @param {string} replacement The replacement. + * @param {boolean} setCursor Shoud we update the editor cursor? + */ + replaceWordInline (line, wordCursor, replacement, setCursor = false) { + this.contentState.replaceWordInline(line, wordCursor, replacement, setCursor) + } + destroy () { this.contentState.clear() this.quickInsert.destroy() @@ -395,7 +416,7 @@ class Muya { * [ensureContainerDiv ensure container element is div] */ function getContainer (originContainer, options) { - const { hideQuickInsertHint } = options + const { hideQuickInsertHint, spellcheckEnabled } = options const container = document.createElement('div') const rootDom = document.createElement('div') const attrs = originContainer.attributes @@ -411,7 +432,9 @@ function getContainer (originContainer, options) { container.setAttribute('contenteditable', true) container.setAttribute('autocorrect', false) container.setAttribute('autocomplete', 'off') - container.setAttribute('spellcheck', false) + // NOTE: The browser is not able to correct misspelled words words without + // a custom implementation like in Mark Text. + container.setAttribute('spellcheck', !!spellcheckEnabled) container.appendChild(rootDom) originContainer.replaceWith(container) return container diff --git a/src/muya/lib/parser/render/renderBlock/renderContainerBlock.js b/src/muya/lib/parser/render/renderBlock/renderContainerBlock.js index 6437df0c..5f16112d 100644 --- a/src/muya/lib/parser/render/renderBlock/renderContainerBlock.js +++ b/src/muya/lib/parser/render/renderBlock/renderContainerBlock.js @@ -39,11 +39,15 @@ export default function renderContainerBlock (parent, block, activeBlocks, match } if (editable === false) { - Object.assign(data.attrs, { contenteditable: 'false' }) + Object.assign(data.attrs, { + contenteditable: 'false', + spellcheck: 'false' + }) } if (/code|pre/.test(type) && typeof lang === 'string' && !!lang) { selector += `.language-${lang.replace(/[#.]{1}/g, '')}` + Object.assign(data.attrs, { spellcheck: 'false' }) } if (/th|td/.test(type)) { @@ -131,6 +135,7 @@ export default function renderContainerBlock (parent, block, activeBlocks, match /html|multiplemath|flowchart|mermaid|sequence|vega-lite/.test(functionType) ) { selector += `.${CLASS_OR_ID.AG_CONTAINER_BLOCK}` + Object.assign(data.attrs, { spellcheck: 'false' }) } } else if (/ul|ol/.test(type) && listType) { selector += `.ag-${listType}-list` @@ -143,6 +148,7 @@ export default function renderContainerBlock (parent, block, activeBlocks, match selector += `.ag-${listItemType}-list-item` selector += isLooseListItem ? `.${CLASS_OR_ID.AG_LOOSE_LIST_ITEM}` : `.${CLASS_OR_ID.AG_TIGHT_LIST_ITEM}` } else if (type === 'pre') { + Object.assign(data.attrs, { spellcheck: 'false' }) Object.assign(data.dataset, { role: functionType }) selector += PRE_BLOCK_HASH[block.functionType] diff --git a/src/muya/lib/parser/render/renderBlock/renderLeafBlock.js b/src/muya/lib/parser/render/renderBlock/renderLeafBlock.js index 34d3b6eb..f6e62975 100644 --- a/src/muya/lib/parser/render/renderBlock/renderLeafBlock.js +++ b/src/muya/lib/parser/render/renderBlock/renderLeafBlock.js @@ -115,6 +115,7 @@ export default function renderLeafBlock (parent, block, activeBlocks, matches, u if (editable === false) { Object.assign(data.attrs, { + spellcheck: 'false', contenteditable: 'false' }) } @@ -124,7 +125,10 @@ export default function renderLeafBlock (parent, block, activeBlocks, matches, u switch (functionType) { case 'html': { selector += `.${CLASS_OR_ID.AG_HTML_PREVIEW}` + Object.assign(data.attrs, { spellcheck: 'false' }) + const htmlContent = sanitize(code, PREVIEW_DOMPURIFY_CONFIG) + // handle empty html bock if (/^<([a-z][a-z\d]*)[^>]*?>(\s*)<\/\1>$/.test(htmlContent.trim())) { children = htmlToVNode('
<Empty HTML Block>
') @@ -145,6 +149,7 @@ export default function renderLeafBlock (parent, block, activeBlocks, matches, u case 'multiplemath': { const key = `${code}_display_math` selector += `.${CLASS_OR_ID.AG_CONTAINER_PREVIEW}` + Object.assign(data.attrs, { spellcheck: 'false' }) if (code === '') { children = '< Empty Mathematical Formula >' selector += `.${CLASS_OR_ID.AG_EMPTY}` @@ -167,6 +172,7 @@ export default function renderLeafBlock (parent, block, activeBlocks, matches, u } case 'mermaid': { selector += `.${CLASS_OR_ID.AG_CONTAINER_PREVIEW}` + Object.assign(data.attrs, { spellcheck: 'false' }) if (code === '') { children = '< Empty Mermaid Block >' selector += `.${CLASS_OR_ID.AG_EMPTY}` @@ -186,6 +192,7 @@ export default function renderLeafBlock (parent, block, activeBlocks, matches, u case 'sequence': case 'vega-lite': { selector += `.${CLASS_OR_ID.AG_CONTAINER_PREVIEW}` + Object.assign(data.attrs, { spellcheck: 'false' }) if (code === '') { children = '< Empty Diagram Block >' selector += `.${CLASS_OR_ID.AG_EMPTY}` @@ -236,6 +243,7 @@ export default function renderLeafBlock (parent, block, activeBlocks, matches, u const html = getHighlightHtml(text, highlights) children = htmlToVNode(html) } + if (!block.parent) { return h(selector, data, [this.renderIcon(block), ...children]) } else { diff --git a/src/muya/lib/parser/render/renderInlines/autoLink.js b/src/muya/lib/parser/render/renderInlines/autoLink.js index 6d7450b0..3689872c 100644 --- a/src/muya/lib/parser/render/renderInlines/autoLink.js +++ b/src/muya/lib/parser/render/renderInlines/autoLink.js @@ -13,6 +13,9 @@ export default function autoLink (h, cursor, block, token, outerClass) { return [ h(`span.${className}`, startMarker), h(`a.${CLASS_OR_ID.AG_INLINE_RULE}.${CLASS_OR_ID.AG_AUTO_LINK}`, { + attrs: { + spellcheck: 'false' + }, props: { href: isLink ? encodeURI(href) : `mailto:${email}`, target: '_blank' diff --git a/src/muya/lib/parser/render/renderInlines/autoLinkExtension.js b/src/muya/lib/parser/render/renderInlines/autoLinkExtension.js index 219e9c10..19eea192 100644 --- a/src/muya/lib/parser/render/renderInlines/autoLinkExtension.js +++ b/src/muya/lib/parser/render/renderInlines/autoLinkExtension.js @@ -9,6 +9,9 @@ export default function autoLinkExtension (h, cursor, block, token, outerClass) return [ h(`a.${CLASS_OR_ID.AG_INLINE_RULE}.${CLASS_OR_ID.AG_AUTO_LINK_EXTENSION}`, { + attrs: { + spellcheck: 'false' + }, props: { href: linkType === 'www' ? encodeURI(`http://${www}`) : (linkType === 'url' ? encodeURI(url) : `mailto:${email}`), target: '_blank' diff --git a/src/muya/lib/parser/render/renderInlines/codeFense.js b/src/muya/lib/parser/render/renderInlines/codeFense.js index 8c93a461..0cfcdb37 100644 --- a/src/muya/lib/parser/render/renderInlines/codeFense.js +++ b/src/muya/lib/parser/render/renderInlines/codeFense.js @@ -9,6 +9,10 @@ export default function codeFense (h, cursor, block, token, outerClass) { return [ h(`span.${CLASS_OR_ID.AG_GRAY}`, markerContent), - h(`span.${CLASS_OR_ID.AG_LANGUAGE}`, content) + h(`span.${CLASS_OR_ID.AG_LANGUAGE}`, { + attrs: { + spellcheck: 'false' + } + }, content) ] } diff --git a/src/muya/lib/parser/render/renderInlines/emoji.js b/src/muya/lib/parser/render/renderInlines/emoji.js index 237584cd..a0360edf 100644 --- a/src/muya/lib/parser/render/renderInlines/emoji.js +++ b/src/muya/lib/parser/render/renderInlines/emoji.js @@ -44,6 +44,9 @@ export default function emoji (h, cursor, block, token, outerClass) { const emojiVdom = validation ? h(contentSelector, { + attrs: { + spellcheck: 'false' + }, dataset: { emoji: validation.emoji } diff --git a/src/muya/lib/parser/render/renderInlines/htmlRuby.js b/src/muya/lib/parser/render/renderInlines/htmlRuby.js index b1339011..fa85d4aa 100644 --- a/src/muya/lib/parser/render/renderInlines/htmlRuby.js +++ b/src/muya/lib/parser/render/renderInlines/htmlRuby.js @@ -14,7 +14,10 @@ export default function htmlRuby (h, cursor, block, token, outerClass) { h(`span.${className}.${CLASS_OR_ID.AG_RUBY}`, [ h(`span.${CLASS_OR_ID.AG_INLINE_RULE}.${CLASS_OR_ID.AG_RUBY_TEXT}`, content), h(previewSelector, { - attrs: { contenteditable: 'false' } + attrs: { + contenteditable: 'false', + spellcheck: 'false' + } }, vNode) ]) // if children is empty string, no need to render ruby charactors... diff --git a/src/muya/lib/parser/render/renderInlines/htmlTag.js b/src/muya/lib/parser/render/renderInlines/htmlTag.js index cedf8670..e6c203d3 100644 --- a/src/muya/lib/parser/render/renderInlines/htmlTag.js +++ b/src/muya/lib/parser/render/renderInlines/htmlTag.js @@ -20,6 +20,7 @@ export default function htmlTag (h, cursor, block, token, outerClass) { return Array.isArray(chunk) ? [...acc, ...chunk] : [...acc, chunk] }, []) : '' + switch (tag) { // Handle html img. case 'img': { @@ -49,6 +50,12 @@ export default function htmlTag (h, cursor, block, token, outerClass) { raw: token.raw } } + + // Disable spell checking for these tags + if (tag === 'code' || tag === 'kbd') { + Object.assign(data.attrs, { spellcheck: 'false' }) + } + if (attrs.id) { selector += `#${attrs.id}` } @@ -66,9 +73,17 @@ export default function htmlTag (h, cursor, block, token, outerClass) { } return [ - h(`span.${tagClassName}.${CLASS_OR_ID.AG_OUTPUT_REMOVE}`, openContent), + h(`span.${tagClassName}.${CLASS_OR_ID.AG_OUTPUT_REMOVE}`, { + attrs: { + spellcheck: 'false' + } + }, openContent), h(`${selector}`, data, anchor), - h(`span.${tagClassName}.${CLASS_OR_ID.AG_OUTPUT_REMOVE}`, closeContent) + h(`span.${tagClassName}.${CLASS_OR_ID.AG_OUTPUT_REMOVE}`, { + attrs: { + spellcheck: 'false' + } + }, closeContent) ] } } diff --git a/src/muya/lib/parser/render/renderInlines/inlineCode.js b/src/muya/lib/parser/render/renderInlines/inlineCode.js index 369b0887..979b7d31 100644 --- a/src/muya/lib/parser/render/renderInlines/inlineCode.js +++ b/src/muya/lib/parser/render/renderInlines/inlineCode.js @@ -11,7 +11,11 @@ export default function inlineCode (h, cursor, block, token, outerClass) { return [ h(`span.${className}.${CLASS_OR_ID.AG_REMOVE}`, startMarker), - h(`code.${CLASS_OR_ID.AG_INLINE_RULE}`, content), + h(`code.${CLASS_OR_ID.AG_INLINE_RULE}`, { + attrs: { + spellcheck: 'false' + } + }, content), h(`span.${className}.${CLASS_OR_ID.AG_REMOVE}`, endMarker) ] } diff --git a/src/muya/lib/parser/render/renderInlines/inlineMath.js b/src/muya/lib/parser/render/renderInlines/inlineMath.js index f48fab81..49d4fde2 100644 --- a/src/muya/lib/parser/render/renderInlines/inlineMath.js +++ b/src/muya/lib/parser/render/renderInlines/inlineMath.js @@ -43,7 +43,9 @@ export default function displayMath (h, cursor, block, token, outerClass) { return [ h(`span.${className}.${CLASS_OR_ID.AG_MATH_MARKER}`, startMarker), h(mathSelector, [ - h(`span.${CLASS_OR_ID.AG_INLINE_RULE}.${CLASS_OR_ID.AG_MATH_TEXT}`, content), + h(`span.${CLASS_OR_ID.AG_INLINE_RULE}.${CLASS_OR_ID.AG_MATH_TEXT}`, { + attrs: { spellcheck: 'false' } + }, content), h(previewSelector, { attrs: { contenteditable: 'false' } }, mathVnode) diff --git a/src/muya/lib/parser/render/renderInlines/link.js b/src/muya/lib/parser/render/renderInlines/link.js index c37f3b90..110a86d9 100644 --- a/src/muya/lib/parser/render/renderInlines/link.js +++ b/src/muya/lib/parser/render/renderInlines/link.js @@ -70,7 +70,9 @@ export default function link (h, cursor, block, token, outerClass) { ...this.backlashInToken(h, token.backlash.first, className, firstBacklashStart, token) ]), h(`span.${className}.${CLASS_OR_ID.AG_REMOVE}`, middleBracket), - h(`span.${linkClassName}.${CLASS_OR_ID.AG_REMOVE}`, [ + h(`span.${linkClassName}.${CLASS_OR_ID.AG_REMOVE}`, { + attrs: { spellcheck: 'false' } + }, [ ...hrefContent, ...this.backlashInToken(h, token.backlash.second, className, secondBacklashStart, token) ]), diff --git a/src/muya/lib/parser/render/renderInlines/referenceDefinition.js b/src/muya/lib/parser/render/renderInlines/referenceDefinition.js index 13f1d89a..e754b852 100644 --- a/src/muya/lib/parser/render/renderInlines/referenceDefinition.js +++ b/src/muya/lib/parser/render/renderInlines/referenceDefinition.js @@ -42,10 +42,22 @@ export default function referenceDefinition (h, cursor, block, token, outerClass return [ h(`span.${className}`, leftBracketContent), - h(`span.${CLASS_OR_ID.AG_REFERENCE_LABEL}`, labelContent), + h(`span.${CLASS_OR_ID.AG_REFERENCE_LABEL}`, { + attrs: { + spellcheck: 'false' + } + }, labelContent), ...this.backlashInToken(h, backlash, CLASS_OR_ID.AG_GRAY, backlashStart, token), - h(`span.${className}`, middleContent), + h(`span.${className}`, { + attrs: { + spellcheck: 'false' + } + }, middleContent), h(`span.${CLASS_OR_ID.AG_REFERENCE_TITLE}`, titleContent), - h(`span.${className}`, rightContent) + h(`span.${className}`, { + attrs: { + spellcheck: 'false' + } + }, rightContent) ] } diff --git a/src/muya/lib/parser/render/renderInlines/referenceLink.js b/src/muya/lib/parser/render/renderInlines/referenceLink.js index 884ab684..e4457b0d 100644 --- a/src/muya/lib/parser/render/renderInlines/referenceLink.js +++ b/src/muya/lib/parser/render/renderInlines/referenceLink.js @@ -43,6 +43,9 @@ export default function referenceLink (h, cursor, block, token, outerClass) { ) const anchorSelector = href ? `a.${CLASS_OR_ID.AG_INLINE_RULE}.${CLASS_OR_ID.AG_REFERENCE_LINK}` : `span.${CLASS_OR_ID.AG_REFERENCE_LINK}` const data = { + attrs: { + spellcheck: 'false' + }, props: { title }, diff --git a/src/renderer/bootstrap.js b/src/renderer/bootstrap.js index 21e79f19..86f7440c 100644 --- a/src/renderer/bootstrap.js +++ b/src/renderer/bootstrap.js @@ -27,6 +27,7 @@ const parseUrlArgs = () => { const userDataPath = params.get('udp') const windowId = Number(params.get('wid')) const type = params.get('type') + const spellcheckerIsHunspell = params.get('slp') === '1' if (Number.isNaN(windowId)) { throw new Error('Error while parsing URL arguments: windowId!') @@ -43,7 +44,8 @@ const parseUrlArgs = () => { hideScrollbar, theme, titleBarStyle - } + }, + spellcheckerIsHunspell } } @@ -58,20 +60,31 @@ const bootstrapRenderer = () => { // Register renderer exception handler window.addEventListener('error', event => { - const { message, name, stack } = event.error - const copy = { - message, - name, - stack + if (event.error) { + const { message, name, stack } = event.error + const copy = { + message, + name, + stack + } + + exceptionLogger(event.error) + + // Pass exception to main process exception handler to show a error dialog. + ipcRenderer.send('AGANI::handle-renderer-error', copy) + } else { + console.error(event) } - - exceptionLogger(event.error) - - // Pass exception to main process exception handler to show a error dialog. - ipcRenderer.send('AGANI::handle-renderer-error', copy) }) - const { debug, initialState, userDataPath, windowId, type } = parseUrlArgs() + const { + debug, + initialState, + userDataPath, + windowId, + type, + spellcheckerIsHunspell + } = parseUrlArgs() const paths = new RendererPaths(userDataPath) const marktext = { initialState, @@ -85,6 +98,11 @@ const bootstrapRenderer = () => { } global.marktext = marktext + // Set option to always use Hunspell instead OS spell checker. + if (spellcheckerIsHunspell) { + process.env['SPELLCHECKER_PREFER_HUNSPELL'] = 1 // eslint-disable-line dot-notation + } + configureLogger() } diff --git a/src/renderer/components/editorWithTabs/editor.vue b/src/renderer/components/editorWithTabs/editor.vue index bb536b67..caf16e6c 100644 --- a/src/renderer/components/editorWithTabs/editor.vue +++ b/src/renderer/components/editorWithTabs/editor.vue @@ -73,6 +73,8 @@ + + + diff --git a/src/renderer/router/index.js b/src/renderer/router/index.js index d13bfdc1..144c88fe 100644 --- a/src/renderer/router/index.js +++ b/src/renderer/router/index.js @@ -3,6 +3,7 @@ import Preference from '@/pages/preference' import General from '@/prefComponents/general' import Editor from '@/prefComponents/editor' import Markdown from '@/prefComponents/markdown' +import SpellChecker from '@/prefComponents/spellchecker' import Theme from '@/prefComponents/theme' import Image from '@/prefComponents/image' import ImageUploader from '@/prefComponents/imageUploader' @@ -22,6 +23,8 @@ const routes = type => ([{ path: 'editor', component: Editor, name: 'editor' }, { path: 'markdown', component: Markdown, name: 'markdown' + }, { + path: 'spelling', component: SpellChecker, name: 'spelling' }, { path: 'theme', component: Theme, name: 'theme' }, { diff --git a/src/renderer/spellchecker/dictionaryDownloader.js b/src/renderer/spellchecker/dictionaryDownloader.js new file mode 100644 index 00000000..9ecf7b83 --- /dev/null +++ b/src/renderer/spellchecker/dictionaryDownloader.js @@ -0,0 +1,35 @@ +import fs from 'fs-extra' +import path from 'path' +import axios from 'axios' +import { SpellChecker } from '@hfelix/electron-spellchecker' +import { dictionaryPath } from '../spellchecker' + +/** + * Try to download the given Hunspell dictionary. + * + * @param {string} lang The language to download. + */ +export const downloadHunspellDictionary = async lang => { + const url = SpellChecker.getURLForHunspellDictionary(lang) + const response = await axios({ + method: 'get', + url, + responseType: 'stream' + }) + + return new Promise((resolve, reject) => { + const outStream = fs.createWriteStream(path.join(dictionaryPath, `${lang}.bdic`)) + response.data.pipe(outStream) + outStream.once('error', reject) + outStream.once('finish', () => resolve()) + }) +} + +/** + * Delete the given Hunspell dictionary from disk. + * + * @param {string} lang The language to remove. + */ +export const deleteHunspellDictionary = async lang => { + return await fs.remove(path.join(dictionaryPath, `${lang}.bdic`)) +} diff --git a/src/renderer/spellchecker/index.js b/src/renderer/spellchecker/index.js new file mode 100644 index 00000000..29aea457 --- /dev/null +++ b/src/renderer/spellchecker/index.js @@ -0,0 +1,486 @@ +import fs from 'fs-extra' +import path from 'path' +import { remote } from 'electron' +import { SpellCheckHandler, fallbackLocales, normalizeLanguageCode } from '@hfelix/electron-spellchecker' +import { isOsx, cloneObj } from '../util' + +// NOTE: Hardcoded in "@hfelix/electron-spellchecker/src/spell-check-handler.js" +export const dictionaryPath = path.join(remote.app.getPath('userData'), 'dictionaries') + +// Source: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/common/model/wordHelper.ts +// /(-?\d*\.\d\w*)|([^\`\~\!\@\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/ +const WORD_SEPARATORS = /([`~!@#$%^&*()-=+[{\]}\\|;:'",.<>/?\s])/ +const WORD_DEFINITION = /(-?\d*\.\d\w*)|([^`~!@#$%^&*()-=+[{\]}\\|;:'",.<>/?\s]+)$/ + +/** + * Translate a left and right offset from a word in `line` into a cursor with + * the given line cursor. + * + * @param {*} lineCursor The original line cursor. + * @param {number} left Start offset/index of word in `lineCursor`. + * @param {number} right End offset/index of word in `lineCursor`. + * @returns {*} Return a cursor of the word selected in `lineCursor`(e.g. + * "foo >bar< foo" where `>`/`<` start and end offset). + */ +export const offsetToWordCursor = (lineCursor, left, right) => { + // Deep clone cursor start and end + const start = cloneObj(lineCursor.start, true) + const end = cloneObj(lineCursor.end, true) + start.offset = left + end.offset = right + return { start, end } +} + +/** + * Validate whether the selection is valid for spelling correction. + * + * @param {*} selection The preview editor selection range. + */ +export const validateLineCursor = selection => { + // Validate selection range. + if (!selection && !selection.start && !selection.start.hasOwnProperty('offset') && + !selection.end && !selection.end.hasOwnProperty('offset')) { + return false + } + + // Allow only single lines + const { start: startCursor, end: endCursor } = selection + if (startCursor.key !== endCursor.key || !startCursor.block) { + return false + } + + // Don't correct words in code blocks or editors for HTML, LaTex and diagrams. + if (startCursor.block.functionType === 'codeContent' && + startCursor.block.lang !== undefined) { + return false + } + + // Don't correct words in code blocks or pre elements such as language identifier. + if (selection.affiliation && selection.affiliation.length === 1 && + selection.affiliation[0].type === 'pre') { + return false + } + return true +} + +/** + * Returns a list of local available Hunspell dictionaries. + * + * @returns {string[]} List of available Hunspell dictionary language codes. + */ +export const getAvailableHunspellDictionaries = () => { + const dict = [] + // Search for dictionaries on filesystem. + if (fs.existsSync(dictionaryPath) && fs.lstatSync(dictionaryPath).isDirectory()) { + fs.readdirSync(dictionaryPath).forEach(filename => { + const fullname = path.join(dictionaryPath, filename) + const match = filename.match(/^([a-z]{2}(?:[-][A-Z]{2})?)\.bdic$/) + if (match && match[1] && fs.lstatSync(fullname).isFile()) { + dict.push(match[1]) + } + }) + } + return dict +} + +/** + * High level spell checker API. + * + * Language providers: + * - macOS: NSSpellChecker (default) or Hunspell + * - Linux and Windows: Hunspell + */ +export class SpellChecker { + /** + * ctor + * + * @param {boolean} enabled Whether spell checking is enabled. + */ + constructor (enabled = true) { + // Hunspell is used on Linux and Windows but macOS can use Hunspell if prefered. + this.isHunspell = !isOsx || !!process.env['SPELLCHECKER_PREFER_HUNSPELL'] // eslint-disable-line dot-notation + + // Initialize spell check provider. If spell check is not enabled don't + // initialize the handler to not load the native module. + if (enabled) { + this._initHandler() + } else { + this.provider = null + this.fallbackLang = null + this.isEnabled = false + this.isInitialized = false + } + } + + _initHandler () { + if (this.isInitialized) { + throw new Error('Invalid state.') + } + + this.provider = new SpellCheckHandler() + + // The spell checker is now initialized but not yet enabled. You need to call `init`. + this.isEnabled = false + this.isInitialized = true + } + + /** + * Initialize the spell checker and attach it to the window. + * + * @param {string} lang 4-letter language ISO-code. + * @param {boolean} automaticallyIdentifyLanguages Whether we should try to identify the typed language. + * @param {boolean} isPassiveMode Should we highlight misspelled words? + * @param {[HTMLElement]} container The optional container to attach the automatic spell detection when + * using Hunspell. Default `document.body`. + * @returns {string} Returns current spell checker language. + */ + async init (lang = '', automaticallyIdentifyLanguages = false, isPassiveMode = false, container = null) { + if (this.isEnabled) { + return + } else if (!this.isInitialized) { + this._initHandler() + } + + if (!lang && !automaticallyIdentifyLanguages) { + throw new Error('Init: Either language or automatic language detection must be set.') + } + + // TODO(spell): Currently not supported by our Hunspell implementation + // with a reasonable performance and Node worker threads + // doesn't work currently in Electron (Electon#18540). + if (this.isHunspell) { + automaticallyIdentifyLanguages = false + } + + // This just set a variable when using Hunspell and switch the spell checker mode + // when using macOS spell checker. Calling switchLanguage after this using macOS + // spell checker will deactivate automatic language detection. + this.provider.automaticallyIdentifyLanguages = + automaticallyIdentifyLanguages || (!this.isHunspell && !lang) + + // If true, don't highlight misspelled words. Just like above, this method only + // affect the macOS spell checker. + this.provider.isPassiveMode = isPassiveMode + + if (!this.isHunspell && (automaticallyIdentifyLanguages || !lang)) { + // Attach the spell checker to the our editor. + // NOTE: Calling this method is normally not necessary on macOS with + // OS spell checker. + this.provider.attachToInput(container) + + this.fallbackLang = null + this.isEnabled = true + return this.lang + } + + if (!lang) { + // Set to Hunspell fallback language + lang = 'en-US' + } + + // We have to call our switch language method to ensure that the provider is in a valid state. + const currentLang = await this._switchLanguage(lang) + if (!currentLang) { + throw new Error(`Language "${lang}" is not available.`) + } + + // Attach the spell checker to the our editor. + this.provider.attachToInput(container) + this.fallbackLang = currentLang + this.isEnabled = true + return currentLang + } + + /** + * Enable spell checker. + * + * NOTE: Using `undefined` will use the existing values. + * NOTE: When spell checker is already enabled this method has no effect. + * + * @param {[string]} lang 4-letter language ISO-code. + * @param {[boolean]} automaticallyIdentifyLanguages Whether we should try to identify the typed language. + * @param {[boolean]} isPassiveMode Should we highlight misspelled words? + */ + async enableSpellchecker (lang = undefined, automaticallyIdentifyLanguages = undefined, isPassiveMode = undefined) { + if (this.isEnabled) { + return true + } + + const result = await this.provider.enableSpellchecker( + lang, + automaticallyIdentifyLanguages, + isPassiveMode + ) + if (!result) { + // Spell checker may be in an invalid state and don't try to recover. + this.disableSpellchecker() + return false + } + + this.fallbackLang = this.lang + this.isEnabled = true + return true + } + + /** + * Disable spell checker. + */ + disableSpellchecker () { + if (!this.isEnabled) { + return + } + + this.provider.disableSpellchecker() + this.isEnabled = false + } + + /** + * Add a word to the user dictionary. + * + * @param {string} word The word to add. + */ + async addToDictionary (word) { + return await this.provider.addToDictionary(word) + } + + /** + * Remove a word frome the user dictionary. + * + * @param {string} word The word to remove. + */ + async removeFromDictionary (word) { + return await this.provider.removeFromDictionary(word) + } + + /** + * Ignore a word for the current runtime. + * + * @param {string} word The word to ignore. + */ + ignoreWord (word) { + this.provider.ignoreWord(word) + } + + /** + * Returns a list of available dictionaries. + * @returns {string[]} Available dictionary languages. + */ + getAvailableDictionaries () { + // NOTE: We only receive the dictionaries when the spellchecker is active + // on macOS! Therefore be consistent. + if (!this.provider.currentSpellchecker) { + return [] + } + + if (!this.isHunspell) { + // NB: OS X will return lists that are half just a language, half + // language + locale, like ['en', 'pt_BR', 'ko'] + return this.provider.currentSpellchecker.getAvailableDictionaries() + .map(x => { + if (x.length === 2) return fallbackLocales[x] + try { + return normalizeLanguageCode(x) + } catch (_) { + return null + } + }) + } + + // Load hunspell dictionaries from disk. + return getAvailableHunspellDictionaries() + } + + /** + * Is the spellchecker trying to detect the typed language automatically? + */ + get automaticallyIdentifyLanguages () { + if (!this.isEnabled) { + return false + } + return this.provider.automaticallyIdentifyLanguages + } + + /** + * Is the spellchecker trying to detect the typed language automatically? + */ + set automaticallyIdentifyLanguages (value) { + if (!this.isEnabled) { + return + } + + // TODO(spell): Currently not supported by our Hunspell implementation + // with a reasonable performance and Node worker threads + // doesn't work currently in Electron (Electon#18540). + if (this.isHunspell) { + value = false + } + this.provider.automaticallyIdentifyLanguages = !!value + } + + /** + * Returns true if not misspelled words should be highlighted. + */ + get spellcheckerNoUnderline () { + if (!this.isEnabled) { + return false + } + return this.provider.spellcheckerNoUnderline + } + + /** + * Should we highlight misspelled words. + */ + set spellcheckerNoUnderline (value) { + if (!this.isEnabled) { + return + } + this.provider.spellcheckerNoUnderline = !!value + } + + /** + * Return the current language. + */ + get lang () { + if (!this.provider) { + return '' + } + return this.provider.currentSpellcheckerLanguage + } + + /** + * Whether the spell checker is in an invalid state and therefore deactivated. + */ + get isInvalidState () { + if (!this.provider) { + return false + } + return this.provider.invalidState + } + + /** + * Explicitly switch the language to a specific language. + * + * NOTE: This function can throw an exception. + * + * @param {string} lang The language code + * @returns {string|null} Return the language on success or null. + */ + async switchLanguage (lang) { + if (!this.isEnabled) { + throw new Error('Invalid state: spell checker is disabled.') + } else if (!lang) { + throw new Error('Invalid language.') + } + + const currentLang = await this._switchLanguage(lang) + if (currentLang) { + this.fallbackLang = currentLang + } + return currentLang + } + + /** + * Is the given word misspelled. + * + * @param {string} word The word to check. + */ + isMisspelled (word) { + if (!this.isEnabled) { + return false + } + return this.provider.isMisspelled(word) + } + + /** + * Get corrections. + * + * @param {string} word The word to get suggestion for. + * @returns {string[]} A array of suggestions. + */ + async getWordSuggestion (word) { + if (!this.isMisspelled(word)) { + return [] + } + return await this.provider.getCorrectionsForMisspelling(word) + } + + /** + * Extract the word at the given offset from the text. + * + * @param {string} text Text + * @param {number} offset Normalized cursor offset (e.g. abc def --> 2) + */ + static extractWord (text, offset) { + if (!text || text.length === 0) { + return null + } else if (offset < 0) { + offset = 0 + } else if (offset >= text.length) { + offset = text.length - 1 + } + + // Search for the words beginning and end. + const left = text.slice(0, offset + 1).search(WORD_DEFINITION) + const right = text.slice(offset).search(WORD_SEPARATORS) + + // Cursor is between two word separators (e.g "**" or " *") + if (left <= -1) { + return null + } + + // The last word in the string is a special case. + if (right < 0) { + return { + left, + right: text.length, + word: text.slice(left) + } + } + return { + left, + right: right + offset, + word: text.slice(left, right + offset) + } + } + + /** + * @private + * @param {string} lang The language code + * @returns {string|null} Return the language on success or null. + */ + async _switchLanguage (lang) { + const result = await this.provider.switchLanguage(lang) + if (!result) { + return await this._tryRecover() + } + return this.lang + } + + /** + * Try to recover the spell checker's invalid state. + * + * @returns {string|null} Return the language on success or null. + */ + async _tryRecover () { + const lang = this.fallbackLang + if (lang) { + // Prevent rekursiv loop. + this.fallbackLang = null + + // Try fallback language. + const result = await this._switchLanguage(lang) + if (result) { + this.fallbackLang = lang + return lang + } + + // Spell checker is deactivated from rekursiv call. + return null + } + + // Spell checker is in an invalid state. We can recover it by enabling + // with a valid language. + this.disableSpellchecker() + return null + } +} diff --git a/src/renderer/spellchecker/languageMap.js b/src/renderer/spellchecker/languageMap.js new file mode 100644 index 00000000..5538da81 --- /dev/null +++ b/src/renderer/spellchecker/languageMap.js @@ -0,0 +1,172 @@ +import langMap from 'iso-639-1' + +/** + * Return the native language name by language code. + * + * @param {string} langCode The ISO two or four-letter language code (e.g. en, en-US). + */ +export const getLanguageName = languageCode => { + if (!languageCode || (languageCode.length !== 2 && languageCode.length !== 5)) { + return null + } + + let language = '' + + // First try to get an exact language via 4-letter ISO code. + if (languageCode.length === 5) { + language = getHunspellLanguageName(languageCode) + if (language) { + return language + } + } + + language = langMap.getNativeName(languageCode.substr(0, 2)) + if (language) { + // Add language code to distinguish between native name (en-US, en-GB, ...). + return `${language} (${languageCode})` + } + return `Unknown (${languageCode})` +} + +/** + * Return the native language name by language code for supported Hunspell languages. + * + * @param {string} langCode The ISO 4-letter language code. + */ +export const getHunspellLanguageName = langCode => { + const item = HUNSPELL_DICTIONARY_LANGUAGE_MAP.find(item => item.value === langCode) + if (!item) { + return null + } + return item.label +} + +// All available Hunspell dictionary languages. +// NOTE: Listed as value/label due to settings requirements. +export const HUNSPELL_DICTIONARY_LANGUAGE_MAP = [{ + label: 'Afrikaans', // Afrikaans + value: 'af-ZA' +}, { + label: 'български език', // Bulgarian + value: 'bg-BG' +}, { + label: 'Català', // Catalan + value: 'ca-ES' +}, { + label: 'Česky', // Czech + value: 'cs-CZ' +}, { + label: 'Dansk', // Danish + value: 'da-DK' +}, { + label: 'Deutsch', // German + value: 'de-DE' +}, { + label: 'Ελληνικά', // Greek + value: 'el-GR' +}, { + label: 'English (en-AU)', // English + value: 'en-AU' +}, { + label: 'English (en-CA)', // English + value: 'en-CA' +}, { + label: 'English (en-GB)', // English + value: 'en-GB' +}, { + label: 'English (en-US)', // English + value: 'en-US' +}, { + label: 'Español', // Spanish + value: 'es-ES' +}, { + label: 'Eesti', // Estonian + value: 'et-EE' +}, { + label: 'Føroyskt', // Faroese + value: 'fo-FO' +}, { + label: 'Français', // French + value: 'fr-FR' +}, { + label: 'עברית', // Hebrew (modern) + value: 'he-IL' +}, { + label: 'हिन्दी', // Hindi + value: 'hi-IN' +}, { + label: 'Hhrvatski', // Croatian + value: 'hr-HR' +}, { + label: 'Magyar', // Hungarian + value: 'hu-HU' +}, { + label: 'Bahasa Indonesia', // Indonesian + value: 'id-ID' +}, { + label: 'Italiano', // Italian + value: 'it-IT' +}, { + label: '한국어', // Korean + value: 'ko' +}, { + label: 'Lietuvių', // Lithuanian + value: 'lt-LT' +}, { + label: 'Latviešu', // Latvian + value: 'lv-LV' +}, { + label: 'Norsk', // Norwegian + value: 'nb-NO' +}, { + label: 'Nederlands', // Dutch + value: 'nl-NL' +}, { + label: 'Polski', // Polish + value: 'pl-PL' +}, { + label: 'Português (pt-BR)', // Portuguese + value: 'pt-BR' +}, { + label: 'Português (pt-PT)', // Portuguese + value: 'pt-PT' +}, { + label: 'Română', // Romanian + value: 'ro-RO' +}, { + label: 'Pусский', // Russian + value: 'ru-RU' +}, { + label: 'Cрпски језик (Latin)', // Serbian (Latin) + value: 'sh' // aka sr-Latn +}, { + label: 'Slovenčina', // Slovak + value: 'sk-SK' +}, { + label: 'Slovenščina', // Slovene + value: 'sl-SI' +}, { + label: 'Shqip', // Albanian + value: 'sq' +}, { + label: 'Cрпски језик', // Serbian + value: 'sr' +}, { + label: 'Svenska', // Swedish + value: 'sv-SE' +}, { + label: 'தமிழ்', // Tamil + value: 'ta-IN' +}, { + label: 'тоҷикӣ‎', // Tajik + value: 'tg-TG' +}, { + label: 'Türkçe', // Turkish + value: 'tr-TR' +}, { + label: 'українська', // Ukrainian + value: 'uk-UA' +}, { + label: 'Tiếng Việt', // Vietnamese + value: 'vi-VN' +}] diff --git a/src/renderer/store/preferences.js b/src/renderer/store/preferences.js index 521b3db4..40192ff5 100644 --- a/src/renderer/store/preferences.js +++ b/src/renderer/store/preferences.js @@ -42,6 +42,12 @@ const state = { theme: 'light', + spellcheckerEnabled: false, + spellcheckerIsHunspell: false, // macOS only + spellcheckerNoUnderline: false, + spellcheckerAutoDetectLanguage: false, + spellcheckerLanguage: 'en-US', + // Default values that are overwritten with the entries below. sideBarVisibility: false, tabBarVisibility: false, diff --git a/static/preference.json b/static/preference.json index 5df2b175..43b0c626 100644 --- a/static/preference.json +++ b/static/preference.json @@ -39,6 +39,12 @@ "theme": "light", + "spellcheckerEnabled": false, + "spellcheckerIsHunspell": false, + "spellcheckerNoUnderline": false, + "spellcheckerAutoDetectLanguage": false, + "spellcheckerLanguage": "en-US", + "sideBarVisibility": false, "tabBarVisibility": false, "sourceCodeModeEnabled": false, diff --git a/test/unit/karma.conf.js b/test/unit/karma.conf.js index 42d07197..5c3b4c8c 100644 --- a/test/unit/karma.conf.js +++ b/test/unit/karma.conf.js @@ -1,11 +1,9 @@ 'use strict' -const path = require('path') const merge = require('webpack-merge') const webpack = require('webpack') const baseConfig = require('../../.electron-vue/webpack.renderer.config') -const projectRoot = path.resolve(__dirname, '../../src/renderer') // Set BABEL_ENV to use proper preset config process.env.BABEL_ENV = 'test' diff --git a/tools/generateThirdPartyLicense.js b/tools/generateThirdPartyLicense.js index 05d538a9..44c2dd25 100644 --- a/tools/generateThirdPartyLicense.js +++ b/tools/generateThirdPartyLicense.js @@ -5,12 +5,22 @@ const fs = require('fs') const thirdPartyChecker = require('../.electron-vue/thirdPartyChecker.js') const rootDir = path.resolve(__dirname, '..') +const additionalPackages = { + hunspell: { + packageName: 'Hunspell', + licenses: 'LGPL 2.1', + licenseText: fs.readFileSync(path.join(rootDir, 'resources/hunspell_dictionaries/LICENSE-hunspell.txt')) + } +} + thirdPartyChecker.getLicenses(rootDir, (err, packages, checker) => { if (err) { console.log(`[ERROR] ${err}`) return } + Object.assign(packages, additionalPackages) + let summary = '' let licenseList = '' let index = 1 diff --git a/yarn.lock b/yarn.lock index a2923c25..1746a1b4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -852,6 +852,13 @@ ajv "^6.1.0" ajv-keywords "^3.1.0" +"@felixrieseberg/spellchecker@^4.0.10": + version "4.0.10" + resolved "https://registry.yarnpkg.com/@felixrieseberg/spellchecker/-/spellchecker-4.0.10.tgz#ec4b11bcaa98a45d0f1c768a2f3dfb2b8768ed3f" + integrity sha512-b+BlHcBXjx+W7yGNAtoVpAv8dvmAQ8Tp2YhNjqxIgocb6Wq1nKLl4jfu9DG60UWC0hTNvvQ74ny9ojiUFNqGSA== + dependencies: + nan "^2.13.2" + "@hfelix/electron-localshortcut@^3.1.1": version "3.1.1" resolved "https://registry.npmjs.org/@hfelix/electron-localshortcut/-/electron-localshortcut-3.1.1.tgz#97e2f200568bffd5a49b465830b84f76fbc1130d" @@ -862,6 +869,20 @@ electron-is-accelerator "^0.1.0" keyboardevents-areequal "^0.2.1" +"@hfelix/electron-spellchecker@^1.0.0-rc.1": + version "1.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@hfelix/electron-spellchecker/-/electron-spellchecker-1.0.0-rc.1.tgz#595762825bd77d1dc43cbc38e725e84e5baa989a" + integrity sha512-blQCgk2Dw0mep0eQPZzcMG5bYEmf+Zvih48doiGloclgYikxBb8kYR64hKZQycVg+SeXuLeTodL7L2KI5MXn0Q== + dependencies: + "@felixrieseberg/spellchecker" "^4.0.10" + bcp47 "^1.1.2" + cld "^2.5.1" + debug "^4.1.1" + fs-extra "^8.1.0" + keyboard-layout "^2.0.16" + lru-cache "^5.1.1" + p-throttle "^3.1.0" + "@hfelix/keyboardevent-from-electron-accelerator@^1.1.1": version "1.1.1" resolved "https://registry.npmjs.org/@hfelix/keyboardevent-from-electron-accelerator/-/keyboardevent-from-electron-accelerator-1.1.1.tgz#7e1d4fd913759c381b7919cc7faf4c0c641d457c" @@ -1800,6 +1821,11 @@ batch@0.6.1: resolved "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" integrity sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY= +bcp47@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/bcp47/-/bcp47-1.1.2.tgz#354be3307ffd08433a78f5e1e2095845f89fc7fe" + integrity sha1-NUvjMH/9CEM6ePXh4glYRfifx/4= + bcrypt-pbkdf@^1.0.0: version "1.0.2" resolved "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" @@ -2526,6 +2552,16 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" +cld@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/cld/-/cld-2.5.1.tgz#3a0fa74b48fb0adcf280c0975e3ac906a4f5b904" + integrity sha512-DwdvvcFVizwDdPCocoPPReFk3BwLEaTZ3RzFgJ4jLzsBzJKUC3cTna0ZmAZG4tFtMmQdl0ciso3+ijkH3OPZPA== + dependencies: + glob "^5.0.10" + nan "^2.9.2" + rimraf "^2.4.0" + underscore "^1.6.0" + clean-css@3.4.x: version "3.4.28" resolved "https://registry.npmjs.org/clean-css/-/clean-css-3.4.28.tgz#bf1945e82fc808f55695e6ddeaec01400efd03ff" @@ -5534,7 +5570,7 @@ glob@7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^5.0.15: +glob@^5.0.10, glob@^5.0.15: version "5.0.15" resolved "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" integrity sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E= @@ -6681,6 +6717,11 @@ isexe@^2.0.0: resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= +iso-639-1@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/iso-639-1/-/iso-639-1-2.1.0.tgz#df88d7dd14b39c4dc748f8b35b6c7ae490e9d543" + integrity sha512-8CTinLimb9ncAJ11wpCETWZ51qsQ3LS4vMHF2wxRRtR3+b7bvIxUlXOGYIdq0413+baWnbyG5dBluVcezOG/LQ== + isobject@^2.0.0, isobject@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" @@ -8024,7 +8065,7 @@ mute-stream@0.0.7: resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= -nan@2.14.0, nan@^2.12.1, nan@^2.13.2: +nan@2.14.0, nan@^2.12.1, nan@^2.13.2, nan@^2.9.2: version "2.14.0" resolved "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c" integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg== @@ -8632,6 +8673,11 @@ p-retry@^3.0.1: dependencies: retry "^0.12.0" +p-throttle@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-throttle/-/p-throttle-3.1.0.tgz#dee34ce4e77d7cc2dfdc1fea0daedccc64147214" + integrity sha512-rLo81NXBihs3GJQhq89IXa0Egj/sbW1zW8/qnyadOwUhIUrZSUvyGdQ46ISRKELFBkVvmMJ4JUqWki4oAh30Qw== + p-try@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" @@ -10149,7 +10195,7 @@ right-align@^0.1.1: dependencies: align-text "^0.1.1" -rimraf@2, rimraf@^2.5.2, rimraf@^2.5.4, rimraf@^2.6.0, rimraf@^2.6.1, rimraf@^2.6.3: +rimraf@2, rimraf@^2.4.0, rimraf@^2.5.2, rimraf@^2.5.4, rimraf@^2.6.0, rimraf@^2.6.1, rimraf@^2.6.3: version "2.7.1" resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== @@ -11606,7 +11652,7 @@ ultron@~1.1.0: resolved "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c" integrity sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og== -underscore@^1.9.1: +underscore@^1.6.0, underscore@^1.9.1: version "1.9.1" resolved "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961" integrity sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==