Compare commits

...

12 Commits

Author SHA1 Message Date
f80ea86d3b Creating a JSON database for storing metadata 2018-04-16 00:15:24 -07:00
15d7013924 Require path before screenshot; auto-name files within folder, no user-selected filenames. 2018-04-15 23:34:23 -07:00
Queen Bee
a9e08b4451 updated npm to update package-lock.json 2018-01-22 20:18:47 -08:00
Queen Bee
bff854f493 updated electron due to a security update 2018-01-22 20:05:59 -08:00
Queen Bee
1d4d4aa194 edited readme 2018-01-19 16:55:47 -08:00
Queen Bee
6df02f804b working on the readme formatting 2018-01-19 09:47:25 -08:00
Queen Bee
4a4c2591b9 removed console.log(processes) from index.html, updated readme to begin scoping out project goals 2018-01-19 09:34:19 -08:00
Queen Bee
01fdfcf420 fixed error in selecting path and naming screenshot 2018-01-19 09:03:45 -08:00
Queen Bee
8ab1dadf54 fixed merge conflicts 2018-01-19 08:30:50 -08:00
Queen Bee
7fcfe80d0a minor updates to design 2018-01-19 08:25:29 -08:00
Kathy Kemmis ODriscoll
51c9f4504b
Merge pull request #4 from zyphlar/issue2
Get screenshot working on Linux; case name & timestamp in default filename
2018-01-19 08:11:34 -08:00
47ce72af8c Get screenshot working on Linux; use case name and timestamp in default filename. 2018-01-06 23:47:34 -08:00
98 changed files with 8984 additions and 5559 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# npm install likes to mess with this, also it's huge
node_modules

View File

@ -2,3 +2,7 @@
A tool for better documenting online harassment A tool for better documenting online harassment
To launch the application from the files directory at the command line type 'npm start' To launch the application from the files directory at the command line type 'npm start'

View File

@ -11,18 +11,17 @@
<div class="container window align-content-center"> <div class="container window align-content-center">
<h1>DocumentIt</h1> <h1>DocumentIt</h1>
<form> <form>
<input type="text" name="casename" placeholder="Case Name"><br> <input type="text" id="casename" name="casename" placeholder="Case Name"><br>
<input type="text" name="socialmedia" placeholder="Social Media"><br> <input type="text" id="socialmedia" name="socialmedia" placeholder="Social Media"><br>
<textarea name="description" placeholder="Incident Description..." rows="10" cols="30"></textarea> <textarea id="incidentdescription" name="incidentdescription" placeholder="Incident Description..." rows="10" cols="30"></textarea>
</form> </form>
<label id="screenshot-path">Path:</label><br> <label id="screenshot-path">Path: NONE</label><br>
<button id="path-button" class="btn btn-warning">Select Path</button><br> <button id="path-button" class="btn btn-primary">Select Path</button><br>
<button id="screen-shot" class="btn btn-primary">Take Screenshot</button> <button id="screen-shot" class="btn btn-primary">Take Screenshot</button>
</div> </div>
</body> </body>
<script> <script>
console.log(process);
</script> </script>
<script> <script>
require('./renderer.js'); require('./renderer.js');

4
node_modules/.bin/rc generated vendored
View File

@ -6,10 +6,10 @@ case `uname` in
esac esac
if [ -x "$basedir/node" ]; then if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../rc/index.js" "$@" "$basedir/node" "$basedir/../rc/cli.js" "$@"
ret=$? ret=$?
else else
node "$basedir/../rc/index.js" "$@" node "$basedir/../rc/cli.js" "$@"
ret=$? ret=$?
fi fi
exit $ret exit $ret

4
node_modules/.bin/rc.cmd generated vendored
View File

@ -1,7 +1,7 @@
@IF EXIST "%~dp0\node.exe" ( @IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\rc\index.js" %* "%~dp0\node.exe" "%~dp0\..\rc\cli.js" %*
) ELSE ( ) ELSE (
@SETLOCAL @SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;% @SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\rc\index.js" %* node "%~dp0\..\rc\cli.js" %*
) )

6
node_modules/@types/node/README.md generated vendored
View File

@ -5,12 +5,12 @@
This package contains type definitions for Node.js (http://nodejs.org/). This package contains type definitions for Node.js (http://nodejs.org/).
# Details # Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v7 Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v8
Additional Details Additional Details
* Last updated: Fri, 05 Jan 2018 01:29:19 GMT * Last updated: Wed, 17 Jan 2018 22:17:28 GMT
* Dependencies: none * Dependencies: none
* Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout * Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
# Credits # Credits
These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Sebastian Silbermann <https://github.com/eps1lon>. These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Oliver Joseph Ash <https://github.com/OliverJAsh>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>.

4138
node_modules/@types/node/index.d.ts generated vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,27 @@
{ {
"_from": "@types/node@^7.0.18", "_from": "@types/node@^8.0.24",
"_id": "@types/node@7.0.52", "_id": "@types/node@8.5.9",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-jjpyQsKGsOF/wUElNjfPULk+d8PKvJOIXk3IUeBYYmNCy5dMWfrI+JiixYNw8ppKOlcRwWTXFl0B+i5oGrf95Q==", "_integrity": "sha512-s+c3AjymyAccTI4hcgNFK4mToH8l+hyPDhu4LIkn71lRy56FLijGu00fyLgldjM/846Pmk9N4KFUs2P8GDs0pA==",
"_location": "/@types/node", "_location": "/@types/node",
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "range", "type": "range",
"registry": true, "registry": true,
"raw": "@types/node@^7.0.18", "raw": "@types/node@^8.0.24",
"name": "@types/node", "name": "@types/node",
"escapedName": "@types%2fnode", "escapedName": "@types%2fnode",
"scope": "@types", "scope": "@types",
"rawSpec": "^7.0.18", "rawSpec": "^8.0.24",
"saveSpec": null, "saveSpec": null,
"fetchSpec": "^7.0.18" "fetchSpec": "^8.0.24"
}, },
"_requiredBy": [ "_requiredBy": [
"/electron" "/electron"
], ],
"_resolved": "https://registry.npmjs.org/@types/node/-/node-7.0.52.tgz", "_resolved": "https://registry.npmjs.org/@types/node/-/node-8.5.9.tgz",
"_shasum": "8990d3350375542b0c21a83cd0331e6a8fc86716", "_shasum": "7155cfb4ae405bca4dd8df1a214c339e939109bf",
"_spec": "@types/node@^7.0.18", "_spec": "@types/node@^8.0.24",
"_where": "C:\\Users\\Katy\\documentit\\node_modules\\electron", "_where": "C:\\Users\\Katy\\documentit\\node_modules\\electron",
"bundleDependencies": false, "bundleDependencies": false,
"contributors": [ "contributors": [
@ -45,9 +45,53 @@
"name": "Wilco Bakker", "name": "Wilco Bakker",
"url": "https://github.com/WilcoBakker" "url": "https://github.com/WilcoBakker"
}, },
{
"name": "Nicolas Voigt",
"url": "https://github.com/octo-sniffle"
},
{
"name": "Chigozirim C.",
"url": "https://github.com/smac89"
},
{
"name": "Flarna",
"url": "https://github.com/Flarna"
},
{
"name": "Mariusz Wiktorczyk",
"url": "https://github.com/mwiktorczyk"
},
{
"name": "wwwy3y3",
"url": "https://github.com/wwwy3y3"
},
{
"name": "Deividas Bakanas",
"url": "https://github.com/DeividasBakanas"
},
{
"name": "Kelvin Jin",
"url": "https://github.com/kjin"
},
{
"name": "Alvis HT Tang",
"url": "https://github.com/alvis"
},
{
"name": "Oliver Joseph Ash",
"url": "https://github.com/OliverJAsh"
},
{ {
"name": "Sebastian Silbermann", "name": "Sebastian Silbermann",
"url": "https://github.com/eps1lon" "url": "https://github.com/eps1lon"
},
{
"name": "Hannes Magnusson",
"url": "https://github.com/Hannes-Magnusson-CK"
},
{
"name": "Alberto Schiabel",
"url": "https://github.com/jkomyno"
} }
], ],
"dependencies": {}, "dependencies": {},
@ -62,6 +106,6 @@
}, },
"scripts": {}, "scripts": {},
"typeScriptVersion": "2.0", "typeScriptVersion": "2.0",
"typesPublisherContentHash": "2e151fe36bb3ba9e7d088aefece77c2a7007ba552d3a23f8b06d542daeb5e99a", "typesPublisherContentHash": "6609190e866fb6835d0ff0ca871ebad022c9b8dfe3bccc8bccd1fca32ae7ab7e",
"version": "7.0.52" "version": "8.5.9"
} }

46
node_modules/electron/README.md generated vendored
View File

@ -1,16 +1,17 @@
[![Electron Logo](https://electron.atom.io/images/electron-logo.svg)](https://electron.atom.io/) [![Electron Logo](https://electronjs.org/images/electron-logo.svg)](https://electronjs.org)
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron) [![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/bc56v83355fi3369/branch/master?svg=true)](https://ci.appveyor.com/project/electron-bot/electron/branch/master) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/bc56v83355fi3369/branch/master?svg=true)](https://ci.appveyor.com/project/electron-bot/electron/branch/master)
[![devDependency Status](https://david-dm.org/electron/electron/dev-status.svg)](https://david-dm.org/electron/electron?type=dev) [![devDependency Status](https://david-dm.org/electron/electron/dev-status.svg)](https://david-dm.org/electron/electron?type=dev)
[![Join the Electron Community on Slack](http://atom-slack.herokuapp.com/badge.svg)](http://atom-slack.herokuapp.com/) [![Join the Electron Community on Slack](https://atom-slack.herokuapp.com/badge.svg)](https://atom-slack.herokuapp.com/)
:memo: Available Translations: [Korean](https://github.com/electron/electron/tree/master/docs-translations/ko-KR/project/README.md) | [Simplified Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-CN/project/README.md) | [Brazilian Portuguese](https://github.com/electron/electron/tree/master/docs-translations/pt-BR/project/README.md) | [Traditional Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-TW/project/README.md) | [Spanish](https://github.com/electron/electron/tree/master/docs-translations/es/project/README.md) | [Turkish](https://github.com/electron/electron/tree/master/docs-translations/tr-TR/project/README.md) | [German](https://github.com/electron/electron/tree/master/docs-translations/de-DE/project/README.md) :memo: Available Translations: 🇨🇳 🇹🇼 🇧🇷 🇪🇸 🇰🇷 🇯🇵 🇷🇺 🇫🇷 🇹🇭 🇳🇱 🇹🇷 🇮🇩 🇺🇦 🇨🇿 🇮🇹.
View these docs in other languages at [electron/electron-i18n](https://github.com/electron/electron-i18n/tree/master/content/).
The Electron framework lets you write cross-platform desktop applications The Electron framework lets you write cross-platform desktop applications
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and
[Chromium](http://www.chromium.org) and is used by the [Atom [Chromium](https://www.chromium.org) and is used by the [Atom
editor](https://github.com/atom/atom) and many other [apps](https://electron.atom.io/apps). editor](https://github.com/atom/atom) and many other [apps](https://electronjs.org/apps).
Follow [@ElectronJS](https://twitter.com/electronjs) on Twitter for important Follow [@ElectronJS](https://twitter.com/electronjs) on Twitter for important
announcements. announcements.
@ -32,29 +33,29 @@ npm install electron --save-dev --save-exact
The `--save-exact` flag is recommended as Electron does not follow semantic The `--save-exact` flag is recommended as Electron does not follow semantic
versioning. For info on how to manage Electron versions in your apps, see versioning. For info on how to manage Electron versions in your apps, see
[Electron versioning](https://electron.atom.io/docs/tutorial/electron-versioning/). [Electron versioning](https://electronjs.org/docs/tutorial/electron-versioning).
For more installation options and troubleshooting tips, see For more installation options and troubleshooting tips, see
[installation](https://electron.atom.io/docs/tutorial/installation/). [installation](https://electronjs.org/docs/tutorial/installation).
## Quick Start ## Quick start
Clone and run the Clone and run the
[electron/electron-quick-start](https://github.com/electron/electron-quick-start) [electron/electron-quick-start](https://github.com/electron/electron-quick-start)
repository to see a minimal Electron app in action: repository to see a minimal Electron app in action:
``` ```sh
git clone https://github.com/electron/electron-quick-start git clone https://github.com/electron/electron-quick-start
cd electron-quick-start cd electron-quick-start
npm install npm install
npm start npm start
``` ```
## Resources for Learning Electron ## Resources for learning Electron
- [electron.atom.io/docs](http://electron.atom.io/docs) - all of Electron's documentation - [electronjs.org/docs](https://electronjs.org/docs) - all of Electron's documentation
- [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - a very basic starter Electron app - [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - a very basic starter Electron app
- [electron.atom.io/community/#boilerplates](http://electron.atom.io/community/#boilerplates) - sample starter apps created by the community - [electronjs.org/community#boilerplates](https://electronjs.org/community#boilerplates) - sample starter apps created by the community
- [electron/simple-samples](https://github.com/electron/simple-samples) - small applications with ideas for taking them further - [electron/simple-samples](https://github.com/electron/simple-samples) - small applications with ideas for taking them further
- [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - an Electron app that teaches you how to use Electron - [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - an Electron app that teaches you how to use Electron
- [hokein/electron-sample-apps](https://github.com/hokein/electron-sample-apps) - small demo apps for the various Electron APIs - [hokein/electron-sample-apps](https://github.com/hokein/electron-sample-apps) - small demo apps for the various Electron APIs
@ -82,32 +83,21 @@ const child = proc.spawn(electron)
## Documentation Translations ## Documentation Translations
- [Brazilian Portuguese](https://github.com/electron/electron/tree/master/docs-translations/pt-BR) Find documentation translations in [electron/electron-i18n](https://github.com/electron/electron-i18n).
- [Korean](https://github.com/electron/electron/tree/master/docs-translations/ko-KR)
- [Japanese](https://github.com/electron/electron/tree/master/docs-translations/jp)
- [Spanish](https://github.com/electron/electron/tree/master/docs-translations/es)
- [Simplified Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-CN)
- [Traditional Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-TW)
- [Turkish](https://github.com/electron/electron/tree/master/docs-translations/tr-TR)
- [Thai](https://github.com/electron/electron/tree/master/docs-translations/th-TH)
- [Ukrainian](https://github.com/electron/electron/tree/master/docs-translations/uk-UA)
- [Russian](https://github.com/electron/electron/tree/master/docs-translations/ru-RU)
- [French](https://github.com/electron/electron/tree/master/docs-translations/fr-FR)
- [Indonesian](https://github.com/electron/electron/tree/master/docs-translations/id)
## Community ## Community
You can ask questions and interact with the community in the following You can ask questions and interact with the community in the following
locations: locations:
- [`electron`](http://discuss.atom.io/c/electron) category on the Atom - [`electron`](https://discuss.atom.io/c/electron) category on the Atom
forums forums
- `#atom-shell` channel on Freenode - `#atom-shell` channel on Freenode
- [`Atom`](http://atom-slack.herokuapp.com/) channel on Slack - [`Atom`](https://atom-slack.herokuapp.com) channel on Slack
- [`electron-ru`](https://telegram.me/electron_ru) *(Russian)* - [`electron-ru`](https://telegram.me/electron_ru) *(Russian)*
- [`electron-br`](https://electron-br.slack.com) *(Brazilian Portuguese)* - [`electron-br`](https://electron-br.slack.com) *(Brazilian Portuguese)*
- [`electron-kr`](http://www.meetup.com/electron-kr/) *(Korean)* - [`electron-kr`](https://electron-kr.github.io/electron-kr) *(Korean)*
- [`electron-jp`](https://electron-jp.slack.com) *(Japanese)* - [`electron-jp`](https://electron-jp.slack.com) *(Japanese)*
- [`electron-tr`](http://electron-tr.herokuapp.com) *(Turkish)* - [`electron-tr`](https://electron-tr.herokuapp.com) *(Turkish)*
- [`electron-id`](https://electron-id.slack.com) *(Indonesia)* - [`electron-id`](https://electron-id.slack.com) *(Indonesia)*
Check out [awesome-electron](https://github.com/sindresorhus/awesome-electron) Check out [awesome-electron](https://github.com/sindresorhus/awesome-electron)

View File

@ -9206,6 +9206,184 @@ OTHER DEALINGS IN THE SOFTWARE.
</div> </div>
</div> </div>
<div class="product">
<span class="title">FreeType</span>
<a class="show" href="#">show license</a>
<span class="homepage"><a href="http://www.freetype.org/">homepage</a></span>
<div class="licence">
<pre> The FreeType Project LICENSE
----------------------------
2006-Jan-27
Copyright 1996-2002, 2006 by
David Turner, Robert Wilhelm, and Werner Lemberg
Introduction
============
The FreeType Project is distributed in several archive packages;
some of them may contain, in addition to the FreeType font engine,
various tools and contributions which rely on, or relate to, the
FreeType Project.
This license applies to all files found in such packages, and
which do not fall under their own explicit license. The license
affects thus the FreeType font engine, the test programs,
documentation and makefiles, at the very least.
This license was inspired by the BSD, Artistic, and IJG
(Independent JPEG Group) licenses, which all encourage inclusion
and use of free software in commercial and freeware products
alike. As a consequence, its main points are that:
o We don't promise that this software works. However, we will be
interested in any kind of bug reports. (`as is' distribution)
o You can use this software for whatever you want, in parts or
full form, without having to pay us. (`royalty-free' usage)
o You may not pretend that you wrote this software. If you use
it, or only parts of it, in a program, you must acknowledge
somewhere in your documentation that you have used the
FreeType code. (`credits')
We specifically permit and encourage the inclusion of this
software, with or without modifications, in commercial products.
We disclaim all warranties covering The FreeType Project and
assume no liability related to The FreeType Project.
Finally, many people asked us for a preferred form for a
credit/disclaimer to use in compliance with this license. We thus
encourage you to use the following text:
"""
Portions of this software are copyright © &lt;year&gt; The FreeType
Project (www.freetype.org). All rights reserved.
"""
Please replace &lt;year&gt; with the value from the FreeType version you
actually use.
Legal Terms
===========
0. Definitions
--------------
Throughout this license, the terms `package', `FreeType Project',
and `FreeType archive' refer to the set of files originally
distributed by the authors (David Turner, Robert Wilhelm, and
Werner Lemberg) as the `FreeType Project', be they named as alpha,
beta or final release.
`You' refers to the licensee, or person using the project, where
`using' is a generic term including compiling the project's source
code as well as linking it to form a `program' or `executable'.
This program is referred to as `a program using the FreeType
engine'.
This license applies to all files distributed in the original
FreeType Project, including all source code, binaries and
documentation, unless otherwise stated in the file in its
original, unmodified form as distributed in the original archive.
If you are unsure whether or not a particular file is covered by
this license, you must contact us to verify this.
The FreeType Project is copyright (C) 1996-2000 by David Turner,
Robert Wilhelm, and Werner Lemberg. All rights reserved except as
specified below.
1. No Warranty
--------------
THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO
USE, OF THE FREETYPE PROJECT.
2. Redistribution
-----------------
This license grants a worldwide, royalty-free, perpetual and
irrevocable right and license to use, execute, perform, compile,
display, copy, create derivative works of, distribute and
sublicense the FreeType Project (in both source and object code
forms) and derivative works thereof for any purpose; and to
authorize others to exercise some or all of the rights granted
herein, subject to the following conditions:
o Redistribution of source code must retain this license file
(`FTL.TXT') unaltered; any additions, deletions or changes to
the original files must be clearly indicated in accompanying
documentation. The copyright notices of the unaltered,
original files must be preserved in all copies of source
files.
o Redistribution in binary form must provide a disclaimer that
states that the software is based in part of the work of the
FreeType Team, in the distribution documentation. We also
encourage you to put an URL to the FreeType web page in your
documentation, though this isn't mandatory.
These conditions apply to any software derived from or based on
the FreeType Project, not just the unmodified files. If you use
our work, you must acknowledge us. However, no fee need be paid
to us.
3. Advertising
--------------
Neither the FreeType authors and contributors nor you shall use
the name of the other for commercial, advertising, or promotional
purposes without specific prior written permission.
We suggest, but do not require, that you use one or more of the
following phrases to refer to this software in your documentation
or advertising materials: `FreeType Project', `FreeType Engine',
`FreeType library', or `FreeType Distribution'.
As you have not signed this license, you are not required to
accept it. However, as the FreeType Project is copyrighted
material, only this license, or another one contracted with the
authors, grants you the right to use, distribute, and modify it.
Therefore, by using, distributing, or modifying the FreeType
Project, you indicate that you understand and accept all the terms
of this license.
4. Contacts
-----------
There are two mailing lists related to FreeType:
o freetype@nongnu.org
Discusses general use and applications of FreeType, as well as
future and wanted additions to the library and distribution.
If you are looking for support, start in this list if you
haven't found anything to help you in the documentation.
o freetype-devel@nongnu.org
Discusses bugs, as well as engine internals, design issues,
specific licenses, porting, etc.
Our home page can be found at
http://www.freetype.org
--- end of FTL.TXT ---
</pre>
</div>
</div>
<div class="product"> <div class="product">
<span class="title">GifPlayer Animated GIF Library</span> <span class="title">GifPlayer Animated GIF Library</span>
<a class="show" href="#">show license</a> <a class="show" href="#">show license</a>
@ -21536,7 +21714,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=== ===
Some of the benchmark data in util/zippy/testdata is licensed differently: Some of the benchmark data in testdata/ is licensed differently:
- fireworks.jpeg is Copyright 2013 Steinar H. Gunderson, and - fireworks.jpeg is Copyright 2013 Steinar H. Gunderson, and
is licensed under the Creative Commons Attribution 3.0 license is licensed under the Creative Commons Attribution 3.0 license
@ -26260,6 +26438,44 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</div> </div>
</div> </div>
<div class="product">
<span class="title">gestures</span>
<a class="show" href="#">show license</a>
<span class="homepage"><a href="https://chromium.googlesource.com/chromiumos/platform/gestures">homepage</a></span>
<div class="licence">
<pre>gestures/LICENSE
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. 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.
</pre>
</div>
</div>
<div class="product"> <div class="product">
<span class="title">google-glog's symbolization library</span> <span class="title">google-glog's symbolization library</span>
<a class="show" href="#">show license</a> <a class="show" href="#">show license</a>
@ -28299,6 +28515,217 @@ May 26, 2016
</div> </div>
</div> </div>
<div class="product">
<span class="title">libprotobuf-mutator</span>
<a class="show" href="#">show license</a>
<span class="homepage"><a href="https://github.com/google/libprotobuf-mutator">homepage</a></span>
<div class="licence">
<pre>
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.
</pre>
</div>
</div>
<div class="product"> <div class="product">
<span class="title">libsecret</span> <span class="title">libsecret</span>
<a class="show" href="#">show license</a> <a class="show" href="#">show license</a>

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
node_modules/electron/dist/ffmpeg.dll generated vendored

Binary file not shown.

BIN
node_modules/electron/dist/libEGL.dll generated vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

BIN
node_modules/electron/dist/node.dll generated vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

2
node_modules/electron/dist/version generated vendored
View File

@ -1 +1 @@
v1.7.10 v1.8.2-beta.4

Binary file not shown.

596
node_modules/electron/electron.d.ts generated vendored

File diff suppressed because it is too large Load Diff

5
node_modules/electron/install.js generated vendored
View File

@ -1,7 +1,6 @@
#!/usr/bin/env node #!/usr/bin/env node
// maintainer note - x.y.z-ab version in package.json -> x.y.z var version = require('./package').version
var version = require('./package').version.replace(/-.*/, '')
var fs = require('fs') var fs = require('fs')
var os = require('os') var os = require('os')
@ -30,7 +29,7 @@ download({
arch: process.env.npm_config_arch, arch: process.env.npm_config_arch,
strictSSL: process.env.npm_config_strict_ssl === 'true', strictSSL: process.env.npm_config_strict_ssl === 'true',
force: process.env.force_no_cache === 'true', force: process.env.force_no_cache === 'true',
quiet: ['info', 'verbose', 'silly', 'http'].indexOf(process.env.npm_config_loglevel) === -1 quiet: process.env.npm_config_loglevel === 'silent' || process.env.CI
}, extractFile) }, extractFile)
// unzips and makes path.txt point at the correct executable // unzips and makes path.txt point at the correct executable

27
node_modules/electron/package.json generated vendored
View File

@ -1,27 +1,26 @@
{ {
"_from": "electron", "_from": "electron@^1.8.2-beta.4",
"_id": "electron@1.7.10", "_id": "electron@1.8.2-beta.4",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha1-Oj6D2WX9f6/kc76N349HJWG2JT0=", "_integrity": "sha1-GDayBO6s6dx3Bi7Ugg/bxsvZoZU=",
"_location": "/electron", "_location": "/electron",
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "tag", "type": "range",
"registry": true, "registry": true,
"raw": "electron", "raw": "electron@^1.8.2-beta.4",
"name": "electron", "name": "electron",
"escapedName": "electron", "escapedName": "electron",
"rawSpec": "", "rawSpec": "^1.8.2-beta.4",
"saveSpec": null, "saveSpec": null,
"fetchSpec": "latest" "fetchSpec": "^1.8.2-beta.4"
}, },
"_requiredBy": [ "_requiredBy": [
"#DEV:/", "/"
"#USER"
], ],
"_resolved": "https://registry.npmjs.org/electron/-/electron-1.7.10.tgz", "_resolved": "https://registry.npmjs.org/electron/-/electron-1.8.2-beta.4.tgz",
"_shasum": "3a3e83d965fd7fafe473be8ddf8f472561b6253d", "_shasum": "1836b204eeace9dc77062ed4820fdbc6cbd9a195",
"_spec": "electron", "_spec": "electron@^1.8.2-beta.4",
"_where": "C:\\Users\\Katy\\documentit", "_where": "C:\\Users\\Katy\\documentit",
"author": { "author": {
"name": "Electron Community" "name": "Electron Community"
@ -34,7 +33,7 @@
}, },
"bundleDependencies": false, "bundleDependencies": false,
"dependencies": { "dependencies": {
"@types/node": "^7.0.18", "@types/node": "^8.0.24",
"electron-download": "^3.0.1", "electron-download": "^3.0.1",
"extract-zip": "^1.0.3" "extract-zip": "^1.0.3"
}, },
@ -66,5 +65,5 @@
"test": "standard" "test": "standard"
}, },
"types": "electron.d.ts", "types": "electron.d.ts",
"version": "1.7.10" "version": "1.8.2-beta.4"
} }

78
node_modules/rc/README.md generated vendored
View File

@ -59,7 +59,7 @@ so that sources **earlier** in this list override later ones.
## Configuration File Formats ## Configuration File Formats
Configuration files (e.g. `.appnamerc`) may be in either [json](http://json.org/example) or [ini](http://en.wikipedia.org/wiki/INI_file) format. The example configurations below are equivalent: Configuration files (e.g. `.appnamerc`) may be in either [json](http://json.org/example) or [ini](http://en.wikipedia.org/wiki/INI_file) format. **No** file extension (`.json` or `.ini`) should be used. The example configurations below are equivalent:
#### Formatted as `ini` #### Formatted as `ini`
@ -115,6 +115,82 @@ Comments are stripped from JSON config via [strip-json-comments](https://github.
> Since ini, and env variables do not have a standard for types, your application needs be prepared for strings. > Since ini, and env variables do not have a standard for types, your application needs be prepared for strings.
## Simple example demonstrating precedence
Assume you have an application like this (notice the hard-coded defaults passed to rc):
```
const conf = require('rc')('myapp', {
port: 12345,
mode: 'test'
});
console.log(JSON.stringify(conf, null, 2));
```
You also have a file `config.json`, with these contents:
```
{
"port": 9000,
"foo": "from config json",
"something": "else"
}
```
And a file `.myapprc` in the same folder, with these contents:
```
{
"port": "3001",
"foo": "bar"
}
```
Here is the expected output from various commands:
`node .`
```
{
"port": "3001",
"mode": "test",
"foo": "bar",
"_": [],
"configs": [
"/Users/stephen/repos/conftest/.myapprc"
],
"config": "/Users/stephen/repos/conftest/.myapprc"
}
```
*Default `mode` from hard-coded object is retained, but port is overridden by `.myapprc` file (automatically found based on appname match), and `foo` is added.*
`node . --foo baz`
```
{
"port": "3001",
"mode": "test",
"foo": "baz",
"_": [],
"configs": [
"/Users/stephen/repos/conftest/.myapprc"
],
"config": "/Users/stephen/repos/conftest/.myapprc"
}
```
*Same result as above but `foo` is overridden because command-line arguments take precedence over `.myapprc` file.*
`node . --foo barbar --config config.json`
```
{
"port": 9000,
"mode": "test",
"foo": "barbar",
"something": "else",
"_": [],
"config": "config.json",
"configs": [
"/Users/stephen/repos/conftest/.myapprc",
"config.json"
]
}
```
*Now the `port` comes from the `config.json` file specified (overriding the value from `.myapprc`), and `foo` value is overriden by command-line despite also being specified in the `config.json` file.*
## Advanced Usage ## Advanced Usage

7
node_modules/rc/index.js generated vendored
View File

@ -1,4 +1,3 @@
#! /usr/bin/env node
var cc = require('./lib/utils') var cc = require('./lib/utils')
var join = require('path').join var join = require('path').join
var deepExtend = require('deep-extend') var deepExtend = require('deep-extend')
@ -52,9 +51,3 @@ module.exports = function (name, defaults, argv, parse) {
configFiles.length ? {configs: configFiles, config: configFiles[configFiles.length - 1]} : undefined, configFiles.length ? {configs: configFiles, config: configFiles[configFiles.length - 1]} : undefined,
])) ]))
} }
if(!module.parent) {
console.log(
JSON.stringify(module.exports(process.argv[2]), false, 2)
)
}

12
node_modules/rc/package.json generated vendored
View File

@ -1,8 +1,8 @@
{ {
"_from": "rc@^1.1.2", "_from": "rc@^1.1.2",
"_id": "rc@1.2.2", "_id": "rc@1.2.4",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha1-2M6ctX6NZNnHut2YdsfDTL48cHc=", "_integrity": "sha1-oPYGyq4qO4YrvQ74VILAElsxX6M=",
"_location": "/rc", "_location": "/rc",
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
@ -18,8 +18,8 @@
"_requiredBy": [ "_requiredBy": [
"/electron-download" "/electron-download"
], ],
"_resolved": "https://registry.npmjs.org/rc/-/rc-1.2.2.tgz", "_resolved": "https://registry.npmjs.org/rc/-/rc-1.2.4.tgz",
"_shasum": "d8ce9cb57e8d64d9c7badd9876c7c34cbe3c7077", "_shasum": "a0f606caae2a3b862bbd0ef85482c0125b315fa3",
"_spec": "rc@^1.1.2", "_spec": "rc@^1.1.2",
"_where": "C:\\Users\\Katy\\documentit\\node_modules\\electron-download", "_where": "C:\\Users\\Katy\\documentit\\node_modules\\electron-download",
"author": { "author": {
@ -28,7 +28,7 @@
"url": "dominictarr.com" "url": "dominictarr.com"
}, },
"bin": { "bin": {
"rc": "./index.js" "rc": "./cli.js"
}, },
"browser": "browser.js", "browser": "browser.js",
"bugs": { "bugs": {
@ -60,5 +60,5 @@
"scripts": { "scripts": {
"test": "set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js" "test": "set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js"
}, },
"version": "1.2.2" "version": "1.2.4"
} }

5
node_modules/uuid/.eslintrc.json generated vendored
View File

@ -7,16 +7,16 @@
"mocha": true "mocha": true
}, },
"extends": ["eslint:recommended"], "extends": ["eslint:recommended"],
"installedESLint": true,
"rules": { "rules": {
"array-bracket-spacing": ["warn", "never"], "array-bracket-spacing": ["warn", "never"],
"arrow-body-style": ["warn", "as-needed"], "arrow-body-style": ["warn", "as-needed"],
"arrow-parens": ["warn", "as-needed"], "arrow-parens": ["warn", "as-needed"],
"arrow-spacing": "warn", "arrow-spacing": "warn",
"brace-style": "warn", "brace-style": ["warn", "1tbs"],
"camelcase": "warn", "camelcase": "warn",
"comma-spacing": ["warn", {"after": true}], "comma-spacing": ["warn", {"after": true}],
"dot-notation": "warn", "dot-notation": "warn",
"eqeqeq": ["warn", "smart"],
"indent": ["warn", 2, { "indent": ["warn", 2, {
"SwitchCase": 1, "SwitchCase": 1,
"FunctionDeclaration": {"parameters": 1}, "FunctionDeclaration": {"parameters": 1},
@ -33,6 +33,7 @@
"no-trailing-spaces": "warn", "no-trailing-spaces": "warn",
"no-undef": "error", "no-undef": "error",
"no-unused-vars": ["warn", {"args": "none"}], "no-unused-vars": ["warn", {"args": "none"}],
"one-var": ["warn", "never"],
"padded-blocks": ["warn", "never"], "padded-blocks": ["warn", "never"],
"object-curly-spacing": ["warn", "never"], "object-curly-spacing": ["warn", "never"],
"quotes": ["warn", "single"], "quotes": ["warn", "single"],

28
node_modules/uuid/HISTORY.md generated vendored
View File

@ -1,28 +0,0 @@
# 3.0.1 (2016-11-28)
* split uuid versions into separate files
# 3.0.0 (2016-11-17)
* remove .parse and .unparse
# 2.0.0
* Removed uuid.BufferClass
# 1.4.0
* Improved module context detection
* Removed public RNG functions
# 1.3.2
* Improve tests and handling of v1() options (Issue #24)
* Expose RNG option to allow for perf testing with different generators
# 1.3.0
* Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)!
* Support for node.js crypto API
* De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code

166
node_modules/uuid/README.md generated vendored
View File

@ -1,14 +1,21 @@
<!--
-- This file is auto-generated from README_js.md. Changes should be made there.
-->
# uuid [![Build Status](https://secure.travis-ci.org/kelektiv/node-uuid.svg?branch=master)](http://travis-ci.org/kelektiv/node-uuid) # # uuid [![Build Status](https://secure.travis-ci.org/kelektiv/node-uuid.svg?branch=master)](http://travis-ci.org/kelektiv/node-uuid) #
Simple, fast generation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDS. Simple, fast generation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDS.
Features: Features:
* Support for version 1, 4 and 5 UUIDs * Support for version 1, 3, 4 and 5 UUIDs
* Cross-platform * Cross-platform
* Uses cryptographically-strong random number APIs (when available) * Uses cryptographically-strong random number APIs (when available)
* Zero-dependency, small footprint (... but not [this small](https://gist.github.com/982883)) * Zero-dependency, small footprint (... but not [this small](https://gist.github.com/982883))
[**Deprecation warning**: The use of `require('uuid')` is deprecated and will not be
supported after version 3.x of this module. Instead, use `require('uuid/[v1|v3|v4|v5]')` as shown in the examples below.]
## Quickstart - CommonJS (Recommended) ## Quickstart - CommonJS (Recommended)
```shell ```shell
@ -21,14 +28,36 @@ Version 1 (timestamp):
```javascript ```javascript
const uuidv1 = require('uuid/v1'); const uuidv1 = require('uuid/v1');
uuidv1(); // -> '6c84fb90-12c4-11e1-840d-7b25c5ee775a' uuidv1(); // ⇨ 'f64f2940-fae4-11e7-8c5f-ef356f279131'
```
Version 3 (namespace):
```javascript
const uuidv3 = require('uuid/v3');
// ... using predefined DNS namespace (for domain names)
uuidv3('hello.example.com', uuidv3.DNS); // ⇨ '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'
// ... using predefined URL namespace (for, well, URLs)
uuidv3('http://example.com/hello', uuidv3.URL); // ⇨ 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'
// ... using a custom namespace
//
// Note: Custom namespaces should be a UUID string specific to your application!
// E.g. the one here was generated using this modules `uuid` CLI.
const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341';
uuidv3('Hello, World!', MY_NAMESPACE); // ⇨ 'e8b5a51d-11c8-3310-a6ab-367563f20686'
``` ```
Version 4 (random): Version 4 (random):
```javascript ```javascript
const uuidv4 = require('uuid/v4'); const uuidv4 = require('uuid/v4');
uuidv4(); // -> '110ec58a-a0f2-4ac4-8393-c866d813b8d1' uuidv4(); // ⇨ '416ac246-e7ac-49ff-93b4-f7e94d997e6b'
``` ```
Version 5 (namespace): Version 5 (namespace):
@ -37,14 +66,18 @@ Version 5 (namespace):
const uuidv5 = require('uuid/v5'); const uuidv5 = require('uuid/v5');
// ... using predefined DNS namespace (for domain names) // ... using predefined DNS namespace (for domain names)
uuidv5('hello.example.com', uuidv5.DNS)); // -> 'fdda765f-fc57-5604-a269-52a7df8164ec' uuidv5('hello.example.com', uuidv5.DNS); // ⇨ 'fdda765f-fc57-5604-a269-52a7df8164ec'
// ... using predefined URL namespace (for, well, URLs) // ... using predefined URL namespace (for, well, URLs)
uuidv5('http://example.com/hello', uuidv5.URL); // -> '3bbcee75-cecc-5b56-8031-b6641c1ed1f1' uuidv5('http://example.com/hello', uuidv5.URL); // '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'
// ... using a custom namespace // ... using a custom namespace
const MY_NAMESPACE = '<UUID string you previously generated elsewhere>'; //
uuidv5('Hello, World!', MY_NAMESPACE); // -> '90123e1c-7512-523e-bb28-76fab9f2f73d' // Note: Custom namespaces should be a UUID string specific to your application!
// E.g. the one here was generated using this modules `uuid` CLI.
const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341';
uuidv5('Hello, World!', MY_NAMESPACE); // ⇨ '630eb68f-e0fa-5ecc-887a-7c7a62614681'
``` ```
## Quickstart - Browser-ready Versions ## Quickstart - Browser-ready Versions
@ -60,6 +93,15 @@ uuidv1(); // -> v1 UUID
</script> </script>
``` ```
For version 3 uuids:
```html
<script src="http://wzrd.in/standalone/uuid%2Fv3@latest"></script>
<script>
uuidv3('http://example.com/hello', uuidv3.URL); // -> v3 UUID
</script>
```
For version 4 uuids: For version 4 uuids:
```html ```html
@ -85,7 +127,7 @@ uuidv5('http://example.com/hello', uuidv5.URL); // -> v5 UUID
```javascript ```javascript
const uuidv1 = require('uuid/v1'); const uuidv1 = require('uuid/v1');
// Allowed arguments // Incantations
uuidv1(); uuidv1();
uuidv1(options); uuidv1(options);
uuidv1(options, buffer, offset); uuidv1(options, buffer, offset);
@ -97,7 +139,7 @@ Generate and return a RFC4122 v1 (timestamp-based) UUID.
* `node` - (Array) Node id as Array of 6 bytes (per 4.1.6). Default: Randomly generated ID. See note 1. * `node` - (Array) Node id as Array of 6 bytes (per 4.1.6). Default: Randomly generated ID. See note 1.
* `clockseq` - (Number between 0 - 0x3fff) RFC clock sequence. Default: An internally maintained clockseq is used. * `clockseq` - (Number between 0 - 0x3fff) RFC clock sequence. Default: An internally maintained clockseq is used.
* `msecs` - (Number | Date) Time in milliseconds since unix Epoch. Default: The current time is used. * `msecs` - (Number) Time in milliseconds since unix Epoch. Default: The current time is used.
* `nsecs` - (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if `msecs` is unspecified. Default: internal uuid counter is used, as per 4.2.1.2. * `nsecs` - (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if `msecs` is unspecified. Default: internal uuid counter is used, as per 4.2.1.2.
* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. * `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.
@ -110,21 +152,51 @@ Note: The <node> id is generated guaranteed to stay constant for the lifetime of
Example: Generate string UUID with fully-specified options Example: Generate string UUID with fully-specified options
```javascript ```javascript
uuidv1({ const v1options = {
node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab], node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab],
clockseq: 0x1234, clockseq: 0x1234,
msecs: new Date('2011-11-01').getTime(), msecs: new Date('2011-11-01').getTime(),
nsecs: 5678 nsecs: 5678
}); // -> "710b962e-041c-11e1-9234-0123456789ab" };
uuidv1(v1options); // ⇨ '710b962e-041c-11e1-9234-0123456789ab'
``` ```
Example: In-place generation of two binary IDs Example: In-place generation of two binary IDs
```javascript ```javascript
// Generate two ids in an array // Generate two ids in an array
const arr = new Array(32); // -> [] const arr = new Array();
uuidv1(null, arr, 0); // -> [02 a2 ce 90 14 32 11 e1 85 58 0b 48 8e 4f c1 15] uuidv1(null, arr, 0); // ⇨ [ 246, 87, 141, 176, 250, 228, 17, 231, 146, 52, 239, 53, 111, 39, 145, 49 ]
uuidv1(null, arr, 16); // -> [02 a2 ce 90 14 32 11 e1 85 58 0b 48 8e 4f c1 15 02 a3 1c b0 14 32 11 e1 85 58 0b 48 8e 4f c1 15] uuidv1(null, arr, 16); // ⇨ [ 246, 87, 141, 176, 250, 228, 17, 231, 146, 52, 239, 53, 111, 39, 145, 49, 246, 87, 180, 192, 250, 228, 17, 231, 146, 52, 239, 53, 111, 39, 145, 49 ]
```
### Version 3
```javascript
const uuidv3 = require('uuid/v3');
// Incantations
uuidv3(name, namespace);
uuidv3(name, namespace, buffer);
uuidv3(name, namespace, buffer, offset);
```
Generate and return a RFC4122 v3 UUID.
* `name` - (String | Array[]) "name" to create UUID with
* `namespace` - (String | Array[]) "namespace" UUID either as a String or Array[16] of byte values
* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.
* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default = 0
Returns `buffer`, if specified, otherwise the string form of the UUID
Example:
```javascript
uuidv3('hello world', MY_NAMESPACE); // ⇨ '042ffd34-d989-321c-ad06-f60826172424'
``` ```
### Version 4 ### Version 4
@ -132,7 +204,7 @@ uuidv1(null, arr, 16); // -> [02 a2 ce 90 14 32 11 e1 85 58 0b 48 8e 4f c1 15 0
```javascript ```javascript
const uuidv4 = require('uuid/v4') const uuidv4 = require('uuid/v4')
// Allowed arguments // Incantations
uuidv4(); uuidv4();
uuidv4(options); uuidv4(options);
uuidv4(options, buffer, offset); uuidv4(options, buffer, offset);
@ -148,38 +220,40 @@ Generate and return a RFC4122 v4 UUID.
Returns `buffer`, if specified, otherwise the string form of the UUID Returns `buffer`, if specified, otherwise the string form of the UUID
Example: Generate string UUID with fully-specified options Example: Generate string UUID with predefined `random` values
```javascript ```javascript
uuid.v4({ const v4options = {
random: [ random: [
0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, 0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea,
0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36
] ]
}); };
// -> "109156be-c4fb-41ea-b1b4-efe1671c5836" uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836'
``` ```
Example: Generate two IDs in a single buffer Example: Generate two IDs in a single buffer
```javascript ```javascript
const buffer = new Array(32); // (or 'new Buffer' in node.js) const buffer = new Array();
uuid.v4(null, buffer, 0); uuidv4(null, buffer, 0); // ⇨ [ 175, 10, 162, 184, 217, 255, 77, 139, 161, 80, 41, 200, 70, 238, 196, 250 ]
uuid.v4(null, buffer, 16); uuidv4(null, buffer, 16); // ⇨ [ 175, 10, 162, 184, 217, 255, 77, 139, 161, 80, 41, 200, 70, 238, 196, 250, 75, 162, 105, 153, 48, 238, 77, 58, 169, 56, 158, 207, 106, 160, 47, 239 ]
``` ```
### Version 5 ### Version 5
```javascript ```javascript
const uuidv5 = require('uuid/v4'); const uuidv5 = require('uuid/v5');
// Allowed arguments // Incantations
uuidv5(name, namespace); uuidv5(name, namespace);
uuidv5(name, namespace, buffer); uuidv5(name, namespace, buffer);
uuidv5(name, namespace, buffer, offset); uuidv5(name, namespace, buffer, offset);
``` ```
Generate and return a RFC4122 v4 UUID. Generate and return a RFC4122 v5 UUID.
* `name` - (String | Array[]) "name" to create UUID with * `name` - (String | Array[]) "name" to create UUID with
* `namespace` - (String | Array[]) "namespace" UUID either as a String or Array[16] of byte values * `namespace` - (String | Array[]) "namespace" UUID either as a String or Array[16] of byte values
@ -191,37 +265,29 @@ Returns `buffer`, if specified, otherwise the string form of the UUID
Example: Example:
```javascript ```javascript
// Generate a unique namespace (typically you would do this once, outside of uuidv5('hello world', MY_NAMESPACE); // ⇨ '9f282611-e0fd-5650-8953-89c8e342da0b'
// your project, then bake this value into your code)
const uuidv4 = require('uuid/v4');
const MY_NAMESPACE = uuidv4(); //
// Generate a couple namespace uuids
const uuidv5 = require('uuid/v5');
uuidv5('hello', MY_NAMESPACE);
uuidv5('world', MY_NAMESPACE);
``` ```
## Command Line
UUIDs can be generated from the command line with the `uuid` command.
```shell
$ uuid
ddeb27fb-d9a0-4624-be4d-4615062daed4
$ uuid v1
02d37060-d446-11e7-a9fa-7bdae751ebe1
```
Type `uuid --help` for usage details
## Testing ## Testing
```shell ```shell
npm test npm test
``` ```
## Deprecated / Browser-ready API ----
Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd)
The API below is available for legacy purposes and is not expected to be available post-3.X
```javascript
const uuid = require('uuid');
uuid.v1(...); // alias of uuid/v1
uuid.v4(...); // alias of uuid/v4
uuid(...); // alias of uuid/v4
// uuid.v5() is not supported in this API
```
## Legacy node-uuid package
The code for the legacy node-uuid package is available in the `node-uuid` branch.

15
node_modules/uuid/bin/uuid generated vendored
View File

@ -5,6 +5,7 @@ function usage() {
console.log('Usage:'); console.log('Usage:');
console.log(' uuid'); console.log(' uuid');
console.log(' uuid v1'); console.log(' uuid v1');
console.log(' uuid v3 <name> <namespace uuid>');
console.log(' uuid v4'); console.log(' uuid v4');
console.log(' uuid v5 <name> <namespace uuid>'); console.log(' uuid v5 <name> <namespace uuid>');
console.log(' uuid --help'); console.log(' uuid --help');
@ -25,6 +26,20 @@ switch (version) {
console.log(uuidV1()); console.log(uuidV1());
break; break;
case 'v3':
var uuidV3 = require('../v3');
var name = args.shift();
var namespace = args.shift();
assert(name != null, 'v3 name not specified');
assert(namespace != null, 'v3 namespace not specified');
if (namespace == 'URL') namespace = uuidV3.URL;
if (namespace == 'DNS') namespace = uuidV3.DNS;
console.log(uuidV3(name, namespace));
break;
case 'v4': case 'v4':
var uuidV4 = require('../v4'); var uuidV4 = require('../v4');
console.log(uuidV4()); console.log(uuidV4());

21
node_modules/uuid/lib/rng-browser.js generated vendored
View File

@ -2,25 +2,26 @@
// browser this is a little complicated due to unknown quality of Math.random() // browser this is a little complicated due to unknown quality of Math.random()
// and inconsistent support for the `crypto` API. We do the best we can via // and inconsistent support for the `crypto` API. We do the best we can via
// feature-detection // feature-detection
var rng;
var crypto = global.crypto || global.msCrypto; // for IE 11 // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
if (crypto && crypto.getRandomValues) { var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues.bind(crypto)) ||
(typeof(msCrypto) != 'undefined' && msCrypto.getRandomValues.bind(msCrypto));
if (getRandomValues) {
// WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
rng = function whatwgRNG() {
crypto.getRandomValues(rnds8); module.exports = function whatwgRNG() {
getRandomValues(rnds8);
return rnds8; return rnds8;
}; };
} } else {
if (!rng) {
// Math.random()-based (RNG) // Math.random()-based (RNG)
// //
// If all else fails, use Math.random(). It's fast, but is of unspecified // If all else fails, use Math.random(). It's fast, but is of unspecified
// quality. // quality.
var rnds = new Array(16); var rnds = new Array(16);
rng = function() {
module.exports = function mathRNG() {
for (var i = 0, r; i < 16; i++) { for (var i = 0, r; i < 16; i++) {
if ((i & 0x03) === 0) r = Math.random() * 0x100000000; if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
rnds[i] = r >>> ((i & 0x03) << 3) & 0xff; rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
@ -29,5 +30,3 @@ if (!rng) {
return rnds; return rnds;
}; };
} }
module.exports = rng;

10
node_modules/uuid/lib/rng.js generated vendored
View File

@ -1,10 +1,8 @@
// Unique ID creation requires a high quality random # generator. In node.js // Unique ID creation requires a high quality random # generator. In node.js
// this is pretty straight-forward - we use the crypto API. // this is pretty straight-forward - we use the crypto API.
var rb = require('crypto').randomBytes; var crypto = require('crypto');
function rng() { module.exports = function nodeRNG() {
return rb(16); return crypto.randomBytes(16);
} };
module.exports = rng;

View File

@ -54,7 +54,11 @@ function sha1(bytes) {
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
} }
var a = H[0], b = H[1], c = H[2], d = H[3], e = H[4]; var a = H[0];
var b = H[1];
var c = H[2];
var d = H[3];
var e = H[4];
for (var t=0; t<80; t++) { for (var t=0; t<80; t++) {
var s = Math.floor(t/20); var s = Math.floor(t/20);

20
node_modules/uuid/lib/sha1.js generated vendored
View File

@ -3,16 +3,20 @@
var crypto = require('crypto'); var crypto = require('crypto');
function sha1(bytes) { function sha1(bytes) {
// support modern Buffer API
if (typeof Buffer.from === 'function') { if (typeof Buffer.from === 'function') {
if (Array.isArray(bytes)) bytes = Buffer.from(bytes); // Modern Buffer API
else if (typeof bytes === 'string') bytes = Buffer.from(bytes, 'utf8'); if (Array.isArray(bytes)) {
bytes = Buffer.from(bytes);
} else if (typeof bytes === 'string') {
bytes = Buffer.from(bytes, 'utf8');
}
} else {
// Pre-v4 Buffer API
if (Array.isArray(bytes)) {
bytes = new Buffer(bytes);
} else if (typeof bytes === 'string') {
bytes = new Buffer(bytes, 'utf8');
} }
// support pre-v4 Buffer API
else {
if (Array.isArray(bytes)) bytes = new Buffer(bytes);
else if (typeof bytes === 'string') bytes = new Buffer(bytes, 'utf8');
} }
return crypto.createHash('sha1').update(bytes).digest(); return crypto.createHash('sha1').update(bytes).digest();

22
node_modules/uuid/package.json generated vendored
View File

@ -1,8 +1,8 @@
{ {
"_from": "uuid@^3.1.0", "_from": "uuid@^3.1.0",
"_id": "uuid@3.1.0", "_id": "uuid@3.2.1",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==", "_integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==",
"_location": "/uuid", "_location": "/uuid",
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
@ -18,8 +18,8 @@
"_requiredBy": [ "_requiredBy": [
"/request" "/request"
], ],
"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", "_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz",
"_shasum": "3dd3d3e790abc24d7b0d3a034ffababe28ebbc04", "_shasum": "12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14",
"_spec": "uuid@^3.1.0", "_spec": "uuid@^3.1.0",
"_where": "C:\\Users\\Katy\\documentit\\node_modules\\request", "_where": "C:\\Users\\Katy\\documentit\\node_modules\\request",
"bin": { "bin": {
@ -27,7 +27,8 @@
}, },
"browser": { "browser": {
"./lib/rng.js": "./lib/rng-browser.js", "./lib/rng.js": "./lib/rng-browser.js",
"./lib/sha1.js": "./lib/sha1-browser.js" "./lib/sha1.js": "./lib/sha1-browser.js",
"./lib/md5.js": "./lib/md5-browser.js"
}, },
"bugs": { "bugs": {
"url": "https://github.com/kelektiv/node-uuid/issues" "url": "https://github.com/kelektiv/node-uuid/issues"
@ -55,10 +56,14 @@
"email": "shtylman@gmail.com" "email": "shtylman@gmail.com"
} }
], ],
"dependencies": {},
"deprecated": false, "deprecated": false,
"description": "RFC4122 (v1, v4, and v5) UUIDs", "description": "RFC4122 (v1, v4, and v5) UUIDs",
"devDependencies": { "devDependencies": {
"mocha": "3.1.2" "eslint": "4.5.0",
"mocha": "3.1.2",
"runmd": "1.0.1",
"standard-version": "4.2.0"
}, },
"homepage": "https://github.com/kelektiv/node-uuid#readme", "homepage": "https://github.com/kelektiv/node-uuid#readme",
"keywords": [ "keywords": [
@ -73,7 +78,10 @@
"url": "git+https://github.com/kelektiv/node-uuid.git" "url": "git+https://github.com/kelektiv/node-uuid.git"
}, },
"scripts": { "scripts": {
"md": "runmd --watch --output=README.md README_js.md",
"prepare": "runmd --output=README.md README_js.md",
"release": "standard-version",
"test": "mocha test/test.js" "test": "mocha test/test.js"
}, },
"version": "3.1.0" "version": "3.2.1"
} }

37
node_modules/uuid/v1.js generated vendored
View File

@ -6,20 +6,12 @@ var bytesToUuid = require('./lib/bytesToUuid');
// Inspired by https://github.com/LiosK/UUID.js // Inspired by https://github.com/LiosK/UUID.js
// and http://docs.python.org/library/uuid.html // and http://docs.python.org/library/uuid.html
// random #'s we need to init node and clockseq var _nodeId;
var _seedBytes = rng(); var _clockseq;
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
var _nodeId = [
_seedBytes[0] | 0x01,
_seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5]
];
// Per 4.2.2, randomize (14 bit) clockseq
var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 0x3fff;
// Previous uuid creation time // Previous uuid creation time
var _lastMSecs = 0, _lastNSecs = 0; var _lastMSecs = 0;
var _lastNSecs = 0;
// See https://github.com/broofa/node-uuid for API details // See https://github.com/broofa/node-uuid for API details
function v1(options, buf, offset) { function v1(options, buf, offset) {
@ -27,9 +19,27 @@ function v1(options, buf, offset) {
var b = buf || []; var b = buf || [];
options = options || {}; options = options || {};
var node = options.node || _nodeId;
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
// node and clockseq need to be initialized to random values if they're not
// specified. We do this lazily to minimize issues related to insufficient
// system entropy. See #189
if (node == null || clockseq == null) {
var seedBytes = rng();
if (node == null) {
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
node = _nodeId = [
seedBytes[0] | 0x01,
seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
];
}
if (clockseq == null) {
// Per 4.2.2, randomize (14 bit) clockseq
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
}
}
// UUID timestamps are 100 nano-second units since the Gregorian epoch, // UUID timestamps are 100 nano-second units since the Gregorian epoch,
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
@ -89,7 +99,6 @@ function v1(options, buf, offset) {
b[i++] = clockseq & 0xff; b[i++] = clockseq & 0xff;
// `node` // `node`
var node = options.node || _nodeId;
for (var n = 0; n < 6; ++n) { for (var n = 0; n < 6; ++n) {
b[i + n] = node[n]; b[i + n] = node[n];
} }

2
node_modules/uuid/v4.js generated vendored
View File

@ -5,7 +5,7 @@ function v4(options, buf, offset) {
var i = buf && offset || 0; var i = buf && offset || 0;
if (typeof(options) == 'string') { if (typeof(options) == 'string') {
buf = options == 'binary' ? new Array(16) : null; buf = options === 'binary' ? new Array(16) : null;
options = null; options = null;
} }
options = options || {}; options = options || {};

45
node_modules/uuid/v5.js generated vendored
View File

@ -1,42 +1,3 @@
var sha1 = require('./lib/sha1-browser'); var v35 = require('./lib/v35.js');
var bytesToUuid = require('./lib/bytesToUuid'); var sha1 = require('./lib/sha1');
module.exports = v35('v5', 0x50, sha1);
function uuidToBytes(uuid) {
// Note: We assume we're being passed a valid uuid string
var bytes = [];
uuid.replace(/[a-fA-F0-9]{2}/g, function(hex) {
bytes.push(parseInt(hex, 16));
});
return bytes;
}
function stringToBytes(str) {
str = unescape(encodeURIComponent(str)); // UTF8 escape
var bytes = new Array(str.length);
for (var i = 0; i < str.length; i++) {
bytes[i] = str.charCodeAt(i);
}
return bytes;
}
function v5(name, namespace, buf, offset) {
if (typeof(name) == 'string') name = stringToBytes(name);
if (typeof(namespace) == 'string') namespace = uuidToBytes(namespace);
if (!Array.isArray(name)) throw TypeError('name must be an array of bytes');
if (!Array.isArray(namespace) || namespace.length != 16) throw TypeError('namespace must be uuid string or an Array of 16 byte values');
// Per 4.3
var bytes = sha1(namespace.concat(name));
bytes[6] = (bytes[6] & 0x0f) | 0x50;
bytes[8] = (bytes[8] & 0x3f) | 0x80;
return buf || bytesToUuid(bytes);
}
// Pre-defined namespaces, per Appendix C
v5.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
v5.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
module.exports = v5;

1269
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,9 @@
"description": "tool for documenting online harassment", "description": "tool for documenting online harassment",
"main": "main.js", "main": "main.js",
"dependencies": { "dependencies": {
"electron": "^1.7.10" "electron": "^1.8.2-beta.4",
"eslint": "^4.15.0",
"jshint": "^2.9.5"
}, },
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {

View File

@ -12,46 +12,105 @@ const path = require('path');
const screenshot = document.getElementById('screen-shot'); const screenshot = document.getElementById('screen-shot');
const screenshotMsg = document.getElementById('screenshot-path'); const screenshotMsg = document.getElementById('screenshot-path');
const pathButton = document.getElementById('path-button'); const pathButton = document.getElementById('path-button');
const casenameField = document.getElementById('casename');
const socialmediaField = document.getElementById('socialmedia');
const incidentdescriptionField = document.getElementById('incidentdescription');
var screenshotPath = '';
var directoryPath = '';
var caseName = '';
var socialMedia = '';
var incidentDescription = '';
pathButton.addEventListener('click', function(event) { pathButton.addEventListener('click', function(event) {
dialog.showSaveDialog(function(fileName) { dialog.showOpenDialog({
if (fileName === undefined) { title: 'Choose a folder for DocumentIt to save in',
buttonLabel: 'Select Path',
properties: [
'openDirectory',
'createDirectory',
]
},
function(paths) {
if (paths === undefined || paths.length === 0) {
return; return;
} }
screenshotPath = fileName; directoryPath = paths[0]; // paths is an array, get the first (only) one
screenshotMsg.textContent = screenshotPath; screenshotMsg.textContent = "Path: "+directoryPath;
}); });
}); });
screenshot.addEventListener('click', function(event) { screenshot.addEventListener('click', function(event) {
screenshotMsg.textContent = "Gathering screenshot..."; screenshotMsg.textContent = 'Gathering screenshot...';
const thumbSize = determineScreenShot(); const thumbSize = determineScreenShot();
let options = { types: ['screen'], thumbnailSize: thumbSize }; let options = { types: ['screen'], thumbnailSize: thumbSize };
desktopCapturer.getSources(options, function(error, sources) { desktopCapturer.getSources(options, function(error, sources) {
if (error) return console.log(error.message); if (error) return displayError(error.message);
sources.forEach(function(source) { sources.forEach(function(source) {
if (source.name === 'Entire Screen' || source.name === 'Screen 1') { if (source.name === 'Entire Screen' || source.name === 'Entire screen' || source.name === 'Screen 1') {
if (screenshotPath === '') { // get values from form
screenshotPath = path.join(os.tmpdir(), 'screenshot.png'); caseName = casenameField.value;
} socialMedia = socialmediaField.value;
incidentDescription = incidentdescriptionField.value;
if (directoryPath === '') return displayError("Please Select a Path to save the screenshot to.");
timestamp = new Date().getTime();
screenshotFilename = caseName + '-' + timestamp + '.png';
screenshotPath = path.join(directoryPath, screenshotFilename);
fs.writeFile(screenshotPath, source.thumbnail.toPng(), function(error) { fs.writeFile(screenshotPath, source.thumbnail.toPng(), function(error) {
if (error) return console.log(error.message); if (error) return displayError(error.message);
shell.openExternal('file://' + screenshotPath); shell.openExternal('file://' + screenshotPath);
var message = 'Saved screenshot to: ' + screenshotPath; screenshotMsg.textContent = 'Saved screenshot to: ' + screenshotPath;
screenshotMsg.textContent = message;
// if file was written, save to db as well
updateDatabase(directoryPath, screenshotFilename, caseName, socialMedia, incidentDescription);
}) })
} }
}); });
}); });
}); });
function updateDatabase(directoryPath, screenshotFilename, caseName, socialMedia, incidentDescription) {
// open/read db
dbPath = path.join(directoryPath, "documentit-data.json");
try {
dbContents = fs.readFileSync(dbPath, {encoding: "utf8"});
} catch (err) {
console.log(err);
console.log("Unable to open database, starting new db.");
dbContents = "{}"; // file doesn't exist, create blank JSON
}
var database = JSON.parse(dbContents);
// init db if not init'd
// "cases" parent object
if (!database.hasOwnProperty('cases')) database.cases = {};
// each case is indexed by name (TODO: help users avoid typo'd case names)
if (!database.cases.hasOwnProperty(caseName)) database.cases[caseName] = {};
now = new Date(); // screenshots are indexed by unix timestamp
database.cases[caseName][now.getTime()] = {
'date': now.toLocaleString(), // human-readable duplicate of index time
'socialMedia': socialMedia,
'incidentDescription': incidentDescription,
'screenshotFilename': screenshotFilename
};
// write db. stringify with two spaces for human-readability
fs.writeFileSync(dbPath, JSON.stringify(database, null, ' '));
}
function displayError(message) {
screenshotMsg.textContent = "ERROR: "+message;
return console.log(message);
}
function determineScreenShot() { function determineScreenShot() {
const screenSize = electronScreen.getPrimaryDisplay().workAreaSize; const screenSize = electronScreen.getPrimaryDisplay().workAreaSize;
const maxDimension = Math.max(screenSize.width, screenSize.height); const maxDimension = Math.max(screenSize.width, screenSize.height);