Browse Source

Ready to merge into master

Nicholas 6 years ago
parent
commit
4f3c02d688
100 changed files with 15690 additions and 4 deletions
  1. 1
    1
      .sourcemaps/main.js.map
  2. 3
    0
      .vscode/settings.json
  3. 2
    3
      ionic.config.json
  4. 21
    0
      node_modules/buffer-from/LICENSE
  5. 1
    0
      node_modules/caniuse-lite/data/features/background-clip-text.js
  6. 1
    0
      node_modules/caniuse-lite/data/features/createimagebitmap.js
  7. 1
    0
      node_modules/caniuse-lite/data/features/justify-content-space-evenly.js
  8. 1
    0
      node_modules/caniuse-lite/data/features/passwordrules.js
  9. 1
    0
      node_modules/caniuse-lite/data/features/sharedarraybuffer.js
  10. 45
    0
      node_modules/ci-info/CHANGELOG.md
  11. 43
    0
      node_modules/color-name/.eslintrc.json
  12. 107
    0
      node_modules/color-name/.npmignore
  13. 7
    0
      node_modules/color-name/test.js
  14. 185
    0
      node_modules/crc/node_modules/buffer/index.d.ts
  15. 5
    0
      node_modules/electron-to-chromium/LICENSE
  16. 234
    0
      node_modules/form-data/README.md.bak
  17. 21
    0
      node_modules/generate-function/LICENSE
  18. 13
    0
      node_modules/har-schema/LICENSE
  19. 49
    0
      node_modules/har-schema/README.md
  20. 30
    0
      node_modules/har-schema/lib/afterRequest.json
  21. 30
    0
      node_modules/har-schema/lib/beforeRequest.json
  22. 20
    0
      node_modules/har-schema/lib/browser.json
  23. 21
    0
      node_modules/har-schema/lib/cache.json
  24. 29
    0
      node_modules/har-schema/lib/content.json
  25. 36
    0
      node_modules/har-schema/lib/cookie.json
  26. 20
    0
      node_modules/har-schema/lib/creator.json
  27. 53
    0
      node_modules/har-schema/lib/entry.json
  28. 13
    0
      node_modules/har-schema/lib/har.json
  29. 20
    0
      node_modules/har-schema/lib/header.json
  30. 22
    0
      node_modules/har-schema/lib/index.js
  31. 36
    0
      node_modules/har-schema/lib/log.json
  32. 32
    0
      node_modules/har-schema/lib/page.json
  33. 18
    0
      node_modules/har-schema/lib/pageTimings.json
  34. 43
    0
      node_modules/har-schema/lib/postData.json
  35. 20
    0
      node_modules/har-schema/lib/query.json
  36. 57
    0
      node_modules/har-schema/lib/request.json
  37. 54
    0
      node_modules/har-schema/lib/response.json
  38. 42
    0
      node_modules/har-schema/lib/timings.json
  39. 114
    0
      node_modules/har-schema/package.json
  40. 95
    0
      node_modules/har-validator/lib/promise.js
  41. 3
    0
      node_modules/is-my-json-valid/.vscode/settings.json
  42. 127
    0
      node_modules/is-my-json-valid/index.d.ts
  43. 410
    0
      node_modules/is-my-json-valid/test/typings.ts
  44. 10
    0
      node_modules/is-my-json-valid/tsconfig.json
  45. 44
    0
      node_modules/js-base64/.attic/test-moment/dankogai.js
  46. 24
    0
      node_modules/js-base64/.attic/test-moment/es5.js
  47. 25
    0
      node_modules/js-base64/.attic/test-moment/es6.js
  48. 40
    0
      node_modules/js-base64/.attic/test-moment/index.html
  49. 25
    0
      node_modules/js-base64/.attic/test-moment/large.js
  50. 4535
    0
      node_modules/js-base64/.attic/test-moment/moment.js
  51. 19
    0
      node_modules/js-base64/.attic/test-moment/yoshinoya.js
  52. 22
    0
      node_modules/neo-async/LICENSE
  53. 30
    0
      node_modules/node-gyp/node_modules/qs/.editorconfig
  54. 1
    0
      node_modules/node-gyp/node_modules/qs/.eslintignore
  55. 19
    0
      node_modules/node-gyp/node_modules/qs/.eslintrc
  56. 226
    0
      node_modules/node-gyp/node_modules/qs/CHANGELOG.md
  57. 28
    0
      node_modules/node-gyp/node_modules/qs/LICENSE
  58. 475
    0
      node_modules/node-gyp/node_modules/qs/README.md
  59. 638
    0
      node_modules/node-gyp/node_modules/qs/dist/qs.js
  60. 18
    0
      node_modules/node-gyp/node_modules/qs/lib/formats.js
  61. 11
    0
      node_modules/node-gyp/node_modules/qs/lib/index.js
  62. 174
    0
      node_modules/node-gyp/node_modules/qs/lib/parse.js
  63. 210
    0
      node_modules/node-gyp/node_modules/qs/lib/stringify.js
  64. 213
    0
      node_modules/node-gyp/node_modules/qs/lib/utils.js
  65. 119
    0
      node_modules/node-gyp/node_modules/qs/package.json
  66. 15
    0
      node_modules/node-gyp/node_modules/qs/test/.eslintrc
  67. 7
    0
      node_modules/node-gyp/node_modules/qs/test/index.js
  68. 574
    0
      node_modules/node-gyp/node_modules/qs/test/parse.js
  69. 597
    0
      node_modules/node-gyp/node_modules/qs/test/stringify.js
  70. 34
    0
      node_modules/node-gyp/node_modules/qs/test/utils.js
  71. 709
    0
      node_modules/node-gyp/node_modules/request/CHANGELOG.md
  72. 55
    0
      node_modules/node-gyp/node_modules/request/LICENSE
  73. 1097
    0
      node_modules/node-gyp/node_modules/request/README.md
  74. 155
    0
      node_modules/node-gyp/node_modules/request/index.js
  75. 167
    0
      node_modules/node-gyp/node_modules/request/lib/auth.js
  76. 38
    0
      node_modules/node-gyp/node_modules/request/lib/cookies.js
  77. 79
    0
      node_modules/node-gyp/node_modules/request/lib/getProxyFromURI.js
  78. 205
    0
      node_modules/node-gyp/node_modules/request/lib/har.js
  79. 89
    0
      node_modules/node-gyp/node_modules/request/lib/hawk.js
  80. 66
    0
      node_modules/node-gyp/node_modules/request/lib/helpers.js
  81. 112
    0
      node_modules/node-gyp/node_modules/request/lib/multipart.js
  82. 148
    0
      node_modules/node-gyp/node_modules/request/lib/oauth.js
  83. 50
    0
      node_modules/node-gyp/node_modules/request/lib/querystring.js
  84. 154
    0
      node_modules/node-gyp/node_modules/request/lib/redirect.js
  85. 175
    0
      node_modules/node-gyp/node_modules/request/lib/tunnel.js
  86. 159
    0
      node_modules/node-gyp/node_modules/request/package.json
  87. 1551
    0
      node_modules/node-gyp/node_modules/request/request.js
  88. 138
    0
      node_modules/node-gyp/test/process-exec-sync.js
  89. 115
    0
      node_modules/node-gyp/tools/gyp/pylib/gyp/generator/compile_commands_json.py
  90. BIN
      node_modules/node-sass/vendor/linux-x64-57/binding.node
  91. 21
    0
      node_modules/path-parse/LICENSE
  92. 1
    0
      node_modules/performance-now/.npmignore
  93. 7
    0
      node_modules/performance-now/.tm_properties
  94. 6
    0
      node_modules/performance-now/.travis.yml
  95. 30
    0
      node_modules/performance-now/README.md
  96. 36
    0
      node_modules/performance-now/lib/performance-now.js
  97. 10
    0
      node_modules/performance-now/lib/performance-now.js.map
  98. 7
    0
      node_modules/performance-now/license.txt
  99. 91
    0
      node_modules/performance-now/package.json
  100. 0
    0
      node_modules/performance-now/src/index.d.ts

+ 1
- 1
.sourcemaps/main.js.map
File diff suppressed because it is too large
View File


+ 3
- 0
.vscode/settings.json View File

1
+{
2
+    "git.ignoreLimitWarning": true
3
+}

+ 2
- 3
ionic.config.json View File

3
   "integrations": {
3
   "integrations": {
4
     "cordova": {}
4
     "cordova": {}
5
   },
5
   },
6
-  "type": "ionic-angular",
7
-  "app_id": ""
8
-}
6
+  "type": "ionic-angular"
7
+}

+ 21
- 0
node_modules/buffer-from/LICENSE View File

1
+MIT License
2
+
3
+Copyright (c) 2016, 2018 Linus Unnebäck
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in all
13
+copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+SOFTWARE.

+ 1
- 0
node_modules/caniuse-lite/data/features/background-clip-text.js View File

1
+module.exports={A:{A:{"2":"H D G E A B FB"},B:{"257":"J L N I","548":"C p z"},C:{"1":"0 3 5 6 8 9 s t u v w x y CB AB","16":"2 4 aB F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q YB SB","130":"r"},D:{"36":"0 2 3 5 6 8 9 F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB AB MB cB GB b HB IB JB KB"},E:{"16":"LB DB","36":"1 F K H D G E A B C NB OB PB QB RB TB"},F:{"16":"1 2 E B C J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y UB VB WB XB BB ZB EB"},G:{"16":"7 G C DB bB dB eB fB gB hB iB jB kB lB mB"},H:{"16":"nB"},I:{"16":"4 7 F b oB pB qB rB sB tB"},J:{"16":"D A"},K:{"16":"1 A B C M BB EB"},L:{"16":"b"},M:{"16":"0"},N:{"16":"A B"},O:{"16":"uB"},P:{"16":"F K vB wB"},Q:{"16":"xB"},R:{"16":"yB"}},B:1,C:"CSS3 Background-clip: text"};

+ 1
- 0
node_modules/caniuse-lite/data/features/createimagebitmap.js View File

1
+module.exports={A:{A:{"2":"H D G E A B FB"},B:{"2":"C p z J L N","16":"I"},C:{"1":"0 3 5 6 8 9 l m n o M q r s t u v w x y CB AB","2":"2 4 aB F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k YB SB"},D:{"1":"0 6 8 9 AB MB cB GB b HB IB JB KB","2":"2 F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s","132":"t u","260":"v w","516":"3 5 x y CB"},E:{"2":"1 F K H D G E A B LB DB NB OB PB QB RB","16":"C TB"},F:{"1":"M q r s t u v w x y","2":"1 2 E B C J L N I O P Q R S T U V W X Y Z a c d e f UB VB WB XB BB ZB EB","132":"g h","260":"i j","516":"k l m n o"},G:{"2":"7 G DB bB dB eB fB gB hB iB jB kB lB mB","16":"C"},H:{"2":"nB"},I:{"1":"b","2":"4 7 F oB pB qB rB sB tB"},J:{"2":"D A"},K:{"1":"M","2":"1 A B C BB EB"},L:{"1":"b"},M:{"1":"0"},N:{"2":"A B"},O:{"1":"uB"},P:{"1":"vB wB","16":"F K"},Q:{"1":"xB"},R:{"2":"yB"}},B:1,C:"createImageBitmap"};

+ 1
- 0
node_modules/caniuse-lite/data/features/justify-content-space-evenly.js View File

1
+module.exports={A:{A:{"2":"H D G E A B FB"},B:{"2":"C p z J","132":"L N I"},C:{"1":"0 3 5 6 8 9 v w x y CB AB","2":"2 4 aB F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u YB SB"},D:{"1":"0 8 9 AB MB cB GB b HB IB JB KB","2":"2 3 F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y","132":"5 6 CB"},E:{"1":"1 B C TB","2":"F K H D G E A LB DB NB OB PB QB","132":"RB"},F:{"1":"q r s t u v w x y","2":"1 2 E B C J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m UB VB WB XB BB ZB EB","132":"n o M"},G:{"1":"C lB mB","2":"7 G DB bB dB eB fB gB hB iB jB","132":"kB"},H:{"2":"nB"},I:{"1":"b","2":"4 7 F oB pB qB rB sB tB"},J:{"2":"D A"},K:{"1":"M","2":"1 A B C BB EB"},L:{"1":"b"},M:{"1":"0"},N:{"2":"A B"},O:{"132":"uB"},P:{"2":"F K vB","132":"wB"},Q:{"132":"xB"},R:{"2":"yB"}},B:5,C:"CSS justify-content: space-evenly"};

+ 1
- 0
node_modules/caniuse-lite/data/features/passwordrules.js View File

1
+module.exports={A:{A:{"2":"H D G E A B FB"},B:{"2":"C p z J L N I"},C:{"2":"0 2 3 4 5 6 8 9 aB F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB YB SB","16":"AB"},D:{"2":"0 2 3 5 6 8 9 F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB AB MB cB GB b HB IB JB","16":"KB"},E:{"1":"C","2":"1 F K H D G E A B LB DB NB OB PB QB RB","16":"TB"},F:{"2":"1 2 E B C J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v UB VB WB XB BB ZB EB","16":"w x y"},G:{"2":"7 G DB bB dB eB fB gB hB iB jB kB lB mB","16":"C"},H:{"16":"nB"},I:{"2":"4 7 F oB pB qB rB sB tB","16":"b"},J:{"2":"D","16":"A"},K:{"2":"1 A B C BB EB","16":"M"},L:{"16":"b"},M:{"16":"0"},N:{"2":"A","16":"B"},O:{"16":"uB"},P:{"2":"F K vB","16":"wB"},Q:{"16":"xB"},R:{"16":"yB"}},B:1,C:"Password Rules"};

+ 1
- 0
node_modules/caniuse-lite/data/features/sharedarraybuffer.js View File

1
+module.exports={A:{A:{"2":"H D G E A B FB"},B:{"2":"C p z J","194":"L N I"},C:{"2":"2 3 4 aB F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y YB SB","194":"0 5 6 8 9 CB AB"},D:{"1":"HB IB JB KB","2":"2 3 5 6 F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB","194":"0 8 9 AB MB cB GB b"},E:{"2":"F K H D G E A LB DB NB OB PB QB","194":"1 B C RB TB"},F:{"2":"1 2 E B C J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M UB VB WB XB BB ZB EB","194":"q r s t u v w x y"},G:{"2":"7 G DB bB dB eB fB gB hB iB jB","194":"C kB lB mB"},H:{"2":"nB"},I:{"2":"4 7 F oB pB qB rB sB tB","16":"b"},J:{"2":"D A"},K:{"2":"1 A B C M BB EB"},L:{"194":"b"},M:{"194":"0"},N:{"2":"A B"},O:{"1":"uB"},P:{"2":"F K vB wB"},Q:{"2":"xB"},R:{"2":"yB"}},B:6,C:"Shared Array Buffer"};

+ 45
- 0
node_modules/ci-info/CHANGELOG.md View File

1
+# Changelog
2
+
3
+## v1.4.0
4
+
5
+* feat: add Cirrus CI detection ([#13](https://github.com/watson/ci-info/pull/13))
6
+* feat: add Shippable CI detection ([#14](https://github.com/watson/ci-info/pull/14))
7
+
8
+## v1.3.1
9
+
10
+* chore: reduce npm package size by not including `.github` folder content ([#11](https://github.com/watson/ci-info/pull/11))
11
+
12
+## v1.3.0
13
+
14
+* feat: add support for Strider CD
15
+* chore: deprecate vendor constant `TDDIUM` in favor of `SOLANO`
16
+* docs: add missing vendor constant to docs
17
+
18
+## v1.2.0
19
+
20
+* feat: detect solano-ci ([#9](https://github.com/watson/ci-info/pull/9))
21
+
22
+## v1.1.3
23
+
24
+* fix: fix spelling of Hunson in `ci.name`
25
+
26
+## v1.1.2
27
+
28
+* fix: no more false positive matches for Jenkins
29
+
30
+## v1.1.1
31
+
32
+* docs: sort lists of CI servers in README.md
33
+* docs: add missing AWS CodeBuild to the docs
34
+
35
+## v1.1.0
36
+
37
+* feat: add AWS CodeBuild to CI detection ([#2](https://github.com/watson/ci-info/pull/2))
38
+
39
+## v1.0.1
40
+
41
+* chore: reduce npm package size by using an `.npmignore` file ([#3](https://github.com/watson/ci-info/pull/3))
42
+
43
+## v1.0.0
44
+
45
+* Initial release

+ 43
- 0
node_modules/color-name/.eslintrc.json View File

1
+{
2
+    "env": {
3
+        "browser": true,
4
+        "node": true,
5
+        "commonjs": true,
6
+        "es6": true
7
+    },
8
+    "extends": "eslint:recommended",
9
+    "rules": {
10
+        "strict": 2,
11
+        "indent": 0,
12
+        "linebreak-style": 0,
13
+        "quotes": 0,
14
+        "semi": 0,
15
+        "no-cond-assign": 1,
16
+        "no-constant-condition": 1,
17
+        "no-duplicate-case": 1,
18
+        "no-empty": 1,
19
+        "no-ex-assign": 1,
20
+        "no-extra-boolean-cast": 1,
21
+        "no-extra-semi": 1,
22
+        "no-fallthrough": 1,
23
+        "no-func-assign": 1,
24
+        "no-global-assign": 1,
25
+        "no-implicit-globals": 2,
26
+        "no-inner-declarations": ["error", "functions"],
27
+        "no-irregular-whitespace": 2,
28
+        "no-loop-func": 1,
29
+        "no-multi-str": 1,
30
+        "no-mixed-spaces-and-tabs": 1,
31
+        "no-proto": 1,
32
+        "no-sequences": 1,
33
+        "no-throw-literal": 1,
34
+        "no-unmodified-loop-condition": 1,
35
+        "no-useless-call": 1,
36
+        "no-void": 1,
37
+        "no-with": 2,
38
+        "wrap-iife": 1,
39
+        "no-redeclare": 1,
40
+        "no-unused-vars": ["error", { "vars": "all", "args": "none" }],
41
+        "no-sparse-arrays": 1
42
+    }
43
+}

+ 107
- 0
node_modules/color-name/.npmignore View File

1
+//this will affect all the git repos
2
+git config --global core.excludesfile ~/.gitignore
3
+
4
+
5
+//update files since .ignore won't if already tracked
6
+git rm --cached <file>
7
+
8
+# Compiled source #
9
+###################
10
+*.com
11
+*.class
12
+*.dll
13
+*.exe
14
+*.o
15
+*.so
16
+
17
+# Packages #
18
+############
19
+# it's better to unpack these files and commit the raw source
20
+# git has its own built in compression methods
21
+*.7z
22
+*.dmg
23
+*.gz
24
+*.iso
25
+*.jar
26
+*.rar
27
+*.tar
28
+*.zip
29
+
30
+# Logs and databases #
31
+######################
32
+*.log
33
+*.sql
34
+*.sqlite
35
+
36
+# OS generated files #
37
+######################
38
+.DS_Store
39
+.DS_Store?
40
+._*
41
+.Spotlight-V100
42
+.Trashes
43
+# Icon?
44
+ehthumbs.db
45
+Thumbs.db
46
+.cache
47
+.project
48
+.settings
49
+.tmproj
50
+*.esproj
51
+nbproject
52
+
53
+# Numerous always-ignore extensions #
54
+#####################################
55
+*.diff
56
+*.err
57
+*.orig
58
+*.rej
59
+*.swn
60
+*.swo
61
+*.swp
62
+*.vi
63
+*~
64
+*.sass-cache
65
+*.grunt
66
+*.tmp
67
+
68
+# Dreamweaver added files #
69
+###########################
70
+_notes
71
+dwsync.xml
72
+
73
+# Komodo #
74
+###########################
75
+*.komodoproject
76
+.komodotools
77
+
78
+# Node #
79
+#####################
80
+node_modules
81
+
82
+# Bower #
83
+#####################
84
+bower_components
85
+
86
+# Folders to ignore #
87
+#####################
88
+.hg
89
+.svn
90
+.CVS
91
+intermediate
92
+publish
93
+.idea
94
+.graphics
95
+_test
96
+_archive
97
+uploads
98
+tmp
99
+
100
+# Vim files to ignore #
101
+#######################
102
+.VimballRecord
103
+.netrwhist
104
+
105
+bundle.*
106
+
107
+_demo

+ 7
- 0
node_modules/color-name/test.js View File

1
+'use strict'
2
+
3
+var names = require('./');
4
+var assert = require('assert');
5
+
6
+assert.deepEqual(names.red, [255,0,0]);
7
+assert.deepEqual(names.aliceblue, [240,248,255]);

+ 185
- 0
node_modules/crc/node_modules/buffer/index.d.ts View File

1
+export class Buffer extends Uint8Array {
2
+    length: number
3
+    write(string: string, offset?: number, length?: number, encoding?: string): number;
4
+    toString(encoding?: string, start?: number, end?: number): string;
5
+    toJSON(): { type: 'Buffer', data: any[] };
6
+    equals(otherBuffer: Buffer): boolean;
7
+    compare(otherBuffer: Buffer, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
8
+    copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
9
+    slice(start?: number, end?: number): Buffer;
10
+    writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
11
+    writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
12
+    writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
13
+    writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
14
+    readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
15
+    readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
16
+    readIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
17
+    readIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
18
+    readUInt8(offset: number, noAssert?: boolean): number;
19
+    readUInt16LE(offset: number, noAssert?: boolean): number;
20
+    readUInt16BE(offset: number, noAssert?: boolean): number;
21
+    readUInt32LE(offset: number, noAssert?: boolean): number;
22
+    readUInt32BE(offset: number, noAssert?: boolean): number;
23
+    readInt8(offset: number, noAssert?: boolean): number;
24
+    readInt16LE(offset: number, noAssert?: boolean): number;
25
+    readInt16BE(offset: number, noAssert?: boolean): number;
26
+    readInt32LE(offset: number, noAssert?: boolean): number;
27
+    readInt32BE(offset: number, noAssert?: boolean): number;
28
+    readFloatLE(offset: number, noAssert?: boolean): number;
29
+    readFloatBE(offset: number, noAssert?: boolean): number;
30
+    readDoubleLE(offset: number, noAssert?: boolean): number;
31
+    readDoubleBE(offset: number, noAssert?: boolean): number;
32
+    swap16(): Buffer;
33
+    swap32(): Buffer;
34
+    swap64(): Buffer;
35
+    writeUInt8(value: number, offset: number, noAssert?: boolean): number;
36
+    writeUInt16LE(value: number, offset: number, noAssert?: boolean): number;
37
+    writeUInt16BE(value: number, offset: number, noAssert?: boolean): number;
38
+    writeUInt32LE(value: number, offset: number, noAssert?: boolean): number;
39
+    writeUInt32BE(value: number, offset: number, noAssert?: boolean): number;
40
+    writeInt8(value: number, offset: number, noAssert?: boolean): number;
41
+    writeInt16LE(value: number, offset: number, noAssert?: boolean): number;
42
+    writeInt16BE(value: number, offset: number, noAssert?: boolean): number;
43
+    writeInt32LE(value: number, offset: number, noAssert?: boolean): number;
44
+    writeInt32BE(value: number, offset: number, noAssert?: boolean): number;
45
+    writeFloatLE(value: number, offset: number, noAssert?: boolean): number;
46
+    writeFloatBE(value: number, offset: number, noAssert?: boolean): number;
47
+    writeDoubleLE(value: number, offset: number, noAssert?: boolean): number;
48
+    writeDoubleBE(value: number, offset: number, noAssert?: boolean): number;
49
+    fill(value: any, offset?: number, end?: number): this;
50
+    indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
51
+    lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
52
+    includes(value: string | number | Buffer, byteOffset?: number, encoding?: string): boolean;
53
+
54
+    /**
55
+     * Allocates a new buffer containing the given {str}.
56
+     *
57
+     * @param str String to store in buffer.
58
+     * @param encoding encoding to use, optional.  Default is 'utf8'
59
+     */
60
+    constructor (str: string, encoding?: string);
61
+    /**
62
+     * Allocates a new buffer of {size} octets.
63
+     *
64
+     * @param size count of octets to allocate.
65
+     */
66
+    constructor (size: number);
67
+    /**
68
+     * Allocates a new buffer containing the given {array} of octets.
69
+     *
70
+     * @param array The octets to store.
71
+     */
72
+    constructor (array: Uint8Array);
73
+    /**
74
+     * Produces a Buffer backed by the same allocated memory as
75
+     * the given {ArrayBuffer}.
76
+     *
77
+     *
78
+     * @param arrayBuffer The ArrayBuffer with which to share memory.
79
+     */
80
+    constructor (arrayBuffer: ArrayBuffer);
81
+    /**
82
+     * Allocates a new buffer containing the given {array} of octets.
83
+     *
84
+     * @param array The octets to store.
85
+     */
86
+    constructor (array: any[]);
87
+    /**
88
+     * Copies the passed {buffer} data onto a new {Buffer} instance.
89
+     *
90
+     * @param buffer The buffer to copy.
91
+     */
92
+    constructor (buffer: Buffer);
93
+    prototype: Buffer;
94
+    /**
95
+     * Allocates a new Buffer using an {array} of octets.
96
+     *
97
+     * @param array
98
+     */
99
+    static from(array: any[]): Buffer;
100
+    /**
101
+     * When passed a reference to the .buffer property of a TypedArray instance,
102
+     * the newly created Buffer will share the same allocated memory as the TypedArray.
103
+     * The optional {byteOffset} and {length} arguments specify a memory range
104
+     * within the {arrayBuffer} that will be shared by the Buffer.
105
+     *
106
+     * @param arrayBuffer The .buffer property of a TypedArray or a new ArrayBuffer()
107
+     * @param byteOffset
108
+     * @param length
109
+     */
110
+    static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
111
+    /**
112
+     * Copies the passed {buffer} data onto a new Buffer instance.
113
+     *
114
+     * @param buffer
115
+     */
116
+    static from(buffer: Buffer): Buffer;
117
+    /**
118
+     * Creates a new Buffer containing the given JavaScript string {str}.
119
+     * If provided, the {encoding} parameter identifies the character encoding.
120
+     * If not provided, {encoding} defaults to 'utf8'.
121
+     *
122
+     * @param str
123
+     */
124
+    static from(str: string, encoding?: string): Buffer;
125
+    /**
126
+     * Returns true if {obj} is a Buffer
127
+     *
128
+     * @param obj object to test.
129
+     */
130
+    static isBuffer(obj: any): obj is Buffer;
131
+    /**
132
+     * Returns true if {encoding} is a valid encoding argument.
133
+     * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
134
+     *
135
+     * @param encoding string to test.
136
+     */
137
+    static isEncoding(encoding: string): boolean;
138
+    /**
139
+     * Gives the actual byte length of a string. encoding defaults to 'utf8'.
140
+     * This is not the same as String.prototype.length since that returns the number of characters in a string.
141
+     *
142
+     * @param string string to test.
143
+     * @param encoding encoding used to evaluate (defaults to 'utf8')
144
+     */
145
+    static byteLength(string: string, encoding?: string): number;
146
+    /**
147
+     * Returns a buffer which is the result of concatenating all the buffers in the list together.
148
+     *
149
+     * If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer.
150
+     * If the list has exactly one item, then the first item of the list is returned.
151
+     * If the list has more than one item, then a new Buffer is created.
152
+     *
153
+     * @param list An array of Buffer objects to concatenate
154
+     * @param totalLength Total length of the buffers when concatenated.
155
+     *   If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
156
+     */
157
+    static concat(list: Buffer[], totalLength?: number): Buffer;
158
+    /**
159
+     * The same as buf1.compare(buf2).
160
+     */
161
+    static compare(buf1: Buffer, buf2: Buffer): number;
162
+    /**
163
+     * Allocates a new buffer of {size} octets.
164
+     *
165
+     * @param size count of octets to allocate.
166
+     * @param fill if specified, buffer will be initialized by calling buf.fill(fill).
167
+     *    If parameter is omitted, buffer will be filled with zeros.
168
+     * @param encoding encoding used for call to buf.fill while initalizing
169
+     */
170
+    static alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer;
171
+    /**
172
+     * Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents
173
+     * of the newly created Buffer are unknown and may contain sensitive data.
174
+     *
175
+     * @param size count of octets to allocate
176
+     */
177
+    static allocUnsafe(size: number): Buffer;
178
+    /**
179
+     * Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents
180
+     * of the newly created Buffer are unknown and may contain sensitive data.
181
+     *
182
+     * @param size count of octets to allocate
183
+     */
184
+    static allocUnsafeSlow(size: number): Buffer;
185
+}

+ 5
- 0
node_modules/electron-to-chromium/LICENSE View File

1
+Copyright 2018 Kilian Valkhof
2
+
3
+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.
4
+
5
+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.

+ 234
- 0
node_modules/form-data/README.md.bak View File

1
+# Form-Data [![NPM Module](https://img.shields.io/npm/v/form-data.svg)](https://www.npmjs.com/package/form-data) [![Join the chat at https://gitter.im/form-data/form-data](http://form-data.github.io/images/gitterbadge.svg)](https://gitter.im/form-data/form-data)
2
+
3
+A library to create readable ```"multipart/form-data"``` streams. Can be used to submit forms and file uploads to other web applications.
4
+
5
+The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd].
6
+
7
+[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface
8
+
9
+[![Linux Build](https://img.shields.io/travis/form-data/form-data/master.svg?label=linux:4.x-9.x)](https://travis-ci.org/form-data/form-data)
10
+[![MacOS Build](https://img.shields.io/travis/form-data/form-data/master.svg?label=macos:4.x-9.x)](https://travis-ci.org/form-data/form-data)
11
+[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/form-data/master.svg?label=windows:4.x-9.x)](https://ci.appveyor.com/project/alexindigo/form-data)
12
+
13
+[![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/master.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master)
14
+[![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data)
15
+[![bitHound Overall Score](https://www.bithound.io/github/form-data/form-data/badges/score.svg)](https://www.bithound.io/github/form-data/form-data)
16
+
17
+## Install
18
+
19
+```
20
+npm install --save form-data
21
+```
22
+
23
+## Usage
24
+
25
+In this example we are constructing a form with 3 fields that contain a string,
26
+a buffer and a file stream.
27
+
28
+``` javascript
29
+var FormData = require('form-data');
30
+var fs = require('fs');
31
+
32
+var form = new FormData();
33
+form.append('my_field', 'my value');
34
+form.append('my_buffer', new Buffer(10));
35
+form.append('my_file', fs.createReadStream('/foo/bar.jpg'));
36
+```
37
+
38
+Also you can use http-response stream:
39
+
40
+``` javascript
41
+var FormData = require('form-data');
42
+var http = require('http');
43
+
44
+var form = new FormData();
45
+
46
+http.request('http://nodejs.org/images/logo.png', function(response) {
47
+  form.append('my_field', 'my value');
48
+  form.append('my_buffer', new Buffer(10));
49
+  form.append('my_logo', response);
50
+});
51
+```
52
+
53
+Or @mikeal's [request](https://github.com/request/request) stream:
54
+
55
+``` javascript
56
+var FormData = require('form-data');
57
+var request = require('request');
58
+
59
+var form = new FormData();
60
+
61
+form.append('my_field', 'my value');
62
+form.append('my_buffer', new Buffer(10));
63
+form.append('my_logo', request('http://nodejs.org/images/logo.png'));
64
+```
65
+
66
+In order to submit this form to a web application, call ```submit(url, [callback])``` method:
67
+
68
+``` javascript
69
+form.submit('http://example.org/', function(err, res) {
70
+  // res – response object (http.IncomingMessage)  //
71
+  res.resume();
72
+});
73
+
74
+```
75
+
76
+For more advanced request manipulations ```submit()``` method returns ```http.ClientRequest``` object, or you can choose from one of the alternative submission methods.
77
+
78
+### Custom options
79
+
80
+You can provide custom options, such as `maxDataSize`:
81
+
82
+``` javascript
83
+var FormData = require('form-data');
84
+
85
+var form = new FormData({ maxDataSize: 20971520 });
86
+form.append('my_field', 'my value');
87
+form.append('my_buffer', /* something big */);
88
+```
89
+
90
+List of available options could be found in [combined-stream](https://github.com/felixge/node-combined-stream/blob/master/lib/combined_stream.js#L7-L15)
91
+
92
+### Alternative submission methods
93
+
94
+You can use node's http client interface:
95
+
96
+``` javascript
97
+var http = require('http');
98
+
99
+var request = http.request({
100
+  method: 'post',
101
+  host: 'example.org',
102
+  path: '/upload',
103
+  headers: form.getHeaders()
104
+});
105
+
106
+form.pipe(request);
107
+
108
+request.on('response', function(res) {
109
+  console.log(res.statusCode);
110
+});
111
+```
112
+
113
+Or if you would prefer the `'Content-Length'` header to be set for you:
114
+
115
+``` javascript
116
+form.submit('example.org/upload', function(err, res) {
117
+  console.log(res.statusCode);
118
+});
119
+```
120
+
121
+To use custom headers and pre-known length in parts:
122
+
123
+``` javascript
124
+var CRLF = '\r\n';
125
+var form = new FormData();
126
+
127
+var options = {
128
+  header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF,
129
+  knownLength: 1
130
+};
131
+
132
+form.append('my_buffer', buffer, options);
133
+
134
+form.submit('http://example.com/', function(err, res) {
135
+  if (err) throw err;
136
+  console.log('Done');
137
+});
138
+```
139
+
140
+Form-Data can recognize and fetch all the required information from common types of streams (```fs.readStream```, ```http.response``` and ```mikeal's request```), for some other types of streams you'd need to provide "file"-related information manually:
141
+
142
+``` javascript
143
+someModule.stream(function(err, stdout, stderr) {
144
+  if (err) throw err;
145
+
146
+  var form = new FormData();
147
+
148
+  form.append('file', stdout, {
149
+    filename: 'unicycle.jpg', // ... or:
150
+    filepath: 'photos/toys/unicycle.jpg',
151
+    contentType: 'image/jpeg',
152
+    knownLength: 19806
153
+  });
154
+
155
+  form.submit('http://example.com/', function(err, res) {
156
+    if (err) throw err;
157
+    console.log('Done');
158
+  });
159
+});
160
+```
161
+
162
+The `filepath` property overrides `filename` and may contain a relative path. This is typically used when uploading [multiple files from a directory](https://wicg.github.io/entries-api/#dom-htmlinputelement-webkitdirectory).
163
+
164
+For edge cases, like POST request to URL with query string or to pass HTTP auth credentials, object can be passed to `form.submit()` as first parameter:
165
+
166
+``` javascript
167
+form.submit({
168
+  host: 'example.com',
169
+  path: '/probably.php?extra=params',
170
+  auth: 'username:password'
171
+}, function(err, res) {
172
+  console.log(res.statusCode);
173
+});
174
+```
175
+
176
+In case you need to also send custom HTTP headers with the POST request, you can use the `headers` key in first parameter of `form.submit()`:
177
+
178
+``` javascript
179
+form.submit({
180
+  host: 'example.com',
181
+  path: '/surelynot.php',
182
+  headers: {'x-test-header': 'test-header-value'}
183
+}, function(err, res) {
184
+  console.log(res.statusCode);
185
+});
186
+```
187
+
188
+### Integration with other libraries
189
+
190
+#### Request
191
+
192
+Form submission using  [request](https://github.com/request/request):
193
+
194
+```javascript
195
+var formData = {
196
+  my_field: 'my_value',
197
+  my_file: fs.createReadStream(__dirname + '/unicycle.jpg'),
198
+};
199
+
200
+request.post({url:'http://service.com/upload', formData: formData}, function(err, httpResponse, body) {
201
+  if (err) {
202
+    return console.error('upload failed:', err);
203
+  }
204
+  console.log('Upload successful!  Server responded with:', body);
205
+});
206
+```
207
+
208
+For more details see [request readme](https://github.com/request/request#multipartform-data-multipart-form-uploads).
209
+
210
+#### node-fetch
211
+
212
+You can also submit a form using [node-fetch](https://github.com/bitinn/node-fetch):
213
+
214
+```javascript
215
+var form = new FormData();
216
+
217
+form.append('a', 1);
218
+
219
+fetch('http://example.com', { method: 'POST', body: form })
220
+    .then(function(res) {
221
+        return res.json();
222
+    }).then(function(json) {
223
+        console.log(json);
224
+    });
225
+```
226
+
227
+## Notes
228
+
229
+- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround.
230
+- Starting version `2.x` FormData has dropped support for `node@0.10.x`.
231
+
232
+## License
233
+
234
+Form-Data is released under the [MIT](License) license.

+ 21
- 0
node_modules/generate-function/LICENSE View File

1
+The MIT License (MIT)
2
+
3
+Copyright (c) 2014 Mathias Buus
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in
13
+all copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+THE SOFTWARE.

+ 13
- 0
node_modules/har-schema/LICENSE View File

1
+Copyright (c) 2015, Ahmad Nassri <ahmad@ahmadnassri.com>
2
+
3
+Permission to use, copy, modify, and/or distribute this software for any
4
+purpose with or without fee is hereby granted, provided that the above
5
+copyright notice and this permission notice appear in all copies.
6
+
7
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

+ 49
- 0
node_modules/har-schema/README.md View File

1
+# HAR Schema [![version][npm-version]][npm-url] [![License][npm-license]][license-url]
2
+
3
+> JSON Schema for HTTP Archive ([HAR][spec]).
4
+
5
+[![Build Status][travis-image]][travis-url]
6
+[![Downloads][npm-downloads]][npm-url]
7
+[![Code Climate][codeclimate-quality]][codeclimate-url]
8
+[![Coverage Status][codeclimate-coverage]][codeclimate-url]
9
+[![Dependency Status][dependencyci-image]][dependencyci-url]
10
+[![Dependencies][david-image]][david-url]
11
+
12
+## Install
13
+
14
+```bash
15
+npm install --only=production --save har-schema
16
+```
17
+
18
+## Usage
19
+
20
+Compatible with any [JSON Schema validation tool][validator].
21
+
22
+----
23
+> :copyright: [ahmadnassri.com](https://www.ahmadnassri.com/) &nbsp;&middot;&nbsp;
24
+> License: [ISC][license-url] &nbsp;&middot;&nbsp;
25
+> Github: [@ahmadnassri](https://github.com/ahmadnassri) &nbsp;&middot;&nbsp;
26
+> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri)
27
+
28
+[license-url]: http://choosealicense.com/licenses/isc/
29
+
30
+[travis-url]: https://travis-ci.org/ahmadnassri/har-schema
31
+[travis-image]: https://img.shields.io/travis/ahmadnassri/har-schema.svg?style=flat-square
32
+
33
+[npm-url]: https://www.npmjs.com/package/har-schema
34
+[npm-license]: https://img.shields.io/npm/l/har-schema.svg?style=flat-square
35
+[npm-version]: https://img.shields.io/npm/v/har-schema.svg?style=flat-square
36
+[npm-downloads]: https://img.shields.io/npm/dm/har-schema.svg?style=flat-square
37
+
38
+[codeclimate-url]: https://codeclimate.com/github/ahmadnassri/har-schema
39
+[codeclimate-quality]: https://img.shields.io/codeclimate/github/ahmadnassri/har-schema.svg?style=flat-square
40
+[codeclimate-coverage]: https://img.shields.io/codeclimate/coverage/github/ahmadnassri/har-schema.svg?style=flat-square
41
+
42
+[david-url]: https://david-dm.org/ahmadnassri/har-schema
43
+[david-image]: https://img.shields.io/david/ahmadnassri/har-schema.svg?style=flat-square
44
+
45
+[dependencyci-url]: https://dependencyci.com/github/ahmadnassri/har-schema
46
+[dependencyci-image]: https://dependencyci.com/github/ahmadnassri/har-schema/badge?style=flat-square
47
+
48
+[spec]: https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md
49
+[validator]: https://github.com/ahmadnassri/har-validator

+ 30
- 0
node_modules/har-schema/lib/afterRequest.json View File

1
+{
2
+  "$id": "afterRequest.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "optional": true,
6
+  "required": [
7
+    "lastAccess",
8
+    "eTag",
9
+    "hitCount"
10
+  ],
11
+  "properties": {
12
+    "expires": {
13
+      "type": "string",
14
+      "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"
15
+    },
16
+    "lastAccess": {
17
+      "type": "string",
18
+      "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"
19
+    },
20
+    "eTag": {
21
+      "type": "string"
22
+    },
23
+    "hitCount": {
24
+      "type": "integer"
25
+    },
26
+    "comment": {
27
+      "type": "string"
28
+    }
29
+  }
30
+}

+ 30
- 0
node_modules/har-schema/lib/beforeRequest.json View File

1
+{
2
+  "$id": "beforeRequest.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "optional": true,
6
+  "required": [
7
+    "lastAccess",
8
+    "eTag",
9
+    "hitCount"
10
+  ],
11
+  "properties": {
12
+    "expires": {
13
+      "type": "string",
14
+      "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"
15
+    },
16
+    "lastAccess": {
17
+      "type": "string",
18
+      "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"
19
+    },
20
+    "eTag": {
21
+      "type": "string"
22
+    },
23
+    "hitCount": {
24
+      "type": "integer"
25
+    },
26
+    "comment": {
27
+      "type": "string"
28
+    }
29
+  }
30
+}

+ 20
- 0
node_modules/har-schema/lib/browser.json View File

1
+{
2
+  "$id": "browser.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "name",
7
+    "version"
8
+  ],
9
+  "properties": {
10
+    "name": {
11
+      "type": "string"
12
+    },
13
+    "version": {
14
+      "type": "string"
15
+    },
16
+    "comment": {
17
+      "type": "string"
18
+    }
19
+  }
20
+}

+ 21
- 0
node_modules/har-schema/lib/cache.json View File

1
+{
2
+  "$id": "cache.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "properties": {
5
+    "beforeRequest": {
6
+      "oneOf": [
7
+        { "type": "null" },
8
+        { "$ref": "beforeRequest.json#" }
9
+      ]
10
+    },
11
+    "afterRequest": {
12
+      "oneOf": [
13
+        { "type": "null" },
14
+        { "$ref": "afterRequest.json#" }
15
+      ]
16
+    },
17
+    "comment": {
18
+      "type": "string"
19
+    }
20
+  }
21
+}

+ 29
- 0
node_modules/har-schema/lib/content.json View File

1
+{
2
+  "$id": "content.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "size",
7
+    "mimeType"
8
+  ],
9
+  "properties": {
10
+    "size": {
11
+      "type": "integer"
12
+    },
13
+    "compression": {
14
+      "type": "integer"
15
+    },
16
+    "mimeType": {
17
+      "type": "string"
18
+    },
19
+    "text": {
20
+      "type": "string"
21
+    },
22
+    "encoding": {
23
+      "type": "string"
24
+    },
25
+    "comment": {
26
+      "type": "string"
27
+    }
28
+  }
29
+}

+ 36
- 0
node_modules/har-schema/lib/cookie.json View File

1
+{
2
+  "$id": "cookie.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "name",
7
+    "value"
8
+  ],
9
+  "properties": {
10
+    "name": {
11
+      "type": "string"
12
+    },
13
+    "value": {
14
+      "type": "string"
15
+    },
16
+    "path": {
17
+      "type": "string"
18
+    },
19
+    "domain": {
20
+      "type": "string"
21
+    },
22
+    "expires": {
23
+      "type": ["string", "null"],
24
+      "format": "date-time"
25
+    },
26
+    "httpOnly": {
27
+      "type": "boolean"
28
+    },
29
+    "secure": {
30
+      "type": "boolean"
31
+    },
32
+    "comment": {
33
+      "type": "string"
34
+    }
35
+  }
36
+}

+ 20
- 0
node_modules/har-schema/lib/creator.json View File

1
+{
2
+  "$id": "creator.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "name",
7
+    "version"
8
+  ],
9
+  "properties": {
10
+    "name": {
11
+      "type": "string"
12
+    },
13
+    "version": {
14
+      "type": "string"
15
+    },
16
+    "comment": {
17
+      "type": "string"
18
+    }
19
+  }
20
+}

+ 53
- 0
node_modules/har-schema/lib/entry.json View File

1
+{
2
+  "$id": "entry.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "optional": true,
6
+  "required": [
7
+    "startedDateTime",
8
+    "time",
9
+    "request",
10
+    "response",
11
+    "cache",
12
+    "timings"
13
+  ],
14
+  "properties": {
15
+    "pageref": {
16
+      "type": "string"
17
+    },
18
+    "startedDateTime": {
19
+      "type": "string",
20
+      "format": "date-time",
21
+      "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"
22
+    },
23
+    "time": {
24
+      "type": "number",
25
+      "min": 0
26
+    },
27
+    "request": {
28
+      "$ref": "request.json#"
29
+    },
30
+    "response": {
31
+      "$ref": "response.json#"
32
+    },
33
+    "cache": {
34
+      "$ref": "cache.json#"
35
+    },
36
+    "timings": {
37
+      "$ref": "timings.json#"
38
+    },
39
+    "serverIPAddress": {
40
+      "type": "string",
41
+      "oneOf": [
42
+        { "format": "ipv4" },
43
+        { "format": "ipv6" }
44
+      ]
45
+    },
46
+    "connection": {
47
+      "type": "string"
48
+    },
49
+    "comment": {
50
+      "type": "string"
51
+    }
52
+  }
53
+}

+ 13
- 0
node_modules/har-schema/lib/har.json View File

1
+{
2
+  "$id": "har.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "log"
7
+  ],
8
+  "properties": {
9
+    "log": {
10
+      "$ref": "log.json#"
11
+    }
12
+  }
13
+}

+ 20
- 0
node_modules/har-schema/lib/header.json View File

1
+{
2
+  "$id": "header.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "name",
7
+    "value"
8
+  ],
9
+  "properties": {
10
+    "name": {
11
+      "type": "string"
12
+    },
13
+    "value": {
14
+      "type": "string"
15
+    },
16
+    "comment": {
17
+      "type": "string"
18
+    }
19
+  }
20
+}

+ 22
- 0
node_modules/har-schema/lib/index.js View File

1
+'use strict'
2
+
3
+module.exports = {
4
+  afterRequest: require('./afterRequest.json'),
5
+  beforeRequest: require('./beforeRequest.json'),
6
+  browser: require('./browser.json'),
7
+  cache: require('./cache.json'),
8
+  content: require('./content.json'),
9
+  cookie: require('./cookie.json'),
10
+  creator: require('./creator.json'),
11
+  entry: require('./entry.json'),
12
+  har: require('./har.json'),
13
+  header: require('./header.json'),
14
+  log: require('./log.json'),
15
+  page: require('./page.json'),
16
+  pageTimings: require('./pageTimings.json'),
17
+  postData: require('./postData.json'),
18
+  query: require('./query.json'),
19
+  request: require('./request.json'),
20
+  response: require('./response.json'),
21
+  timings: require('./timings.json')
22
+}

+ 36
- 0
node_modules/har-schema/lib/log.json View File

1
+{
2
+  "$id": "log.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "version",
7
+    "creator",
8
+    "entries"
9
+  ],
10
+  "properties": {
11
+    "version": {
12
+      "type": "string"
13
+    },
14
+    "creator": {
15
+      "$ref": "creator.json#"
16
+    },
17
+    "browser": {
18
+      "$ref": "browser.json#"
19
+    },
20
+    "pages": {
21
+      "type": "array",
22
+      "items": {
23
+        "$ref": "page.json#"
24
+      }
25
+    },
26
+    "entries": {
27
+      "type": "array",
28
+      "items": {
29
+        "$ref": "entry.json#"
30
+      }
31
+    },
32
+    "comment": {
33
+      "type": "string"
34
+    }
35
+  }
36
+}

+ 32
- 0
node_modules/har-schema/lib/page.json View File

1
+{
2
+  "$id": "page.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "optional": true,
6
+  "required": [
7
+    "startedDateTime",
8
+    "id",
9
+    "title",
10
+    "pageTimings"
11
+  ],
12
+  "properties": {
13
+    "startedDateTime": {
14
+      "type": "string",
15
+      "format": "date-time",
16
+      "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"
17
+    },
18
+    "id": {
19
+      "type": "string",
20
+      "unique": true
21
+    },
22
+    "title": {
23
+      "type": "string"
24
+    },
25
+    "pageTimings": {
26
+      "$ref": "pageTimings.json#"
27
+    },
28
+    "comment": {
29
+      "type": "string"
30
+    }
31
+  }
32
+}

+ 18
- 0
node_modules/har-schema/lib/pageTimings.json View File

1
+{
2
+  "$id": "pageTimings.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "properties": {
6
+    "onContentLoad": {
7
+      "type": "number",
8
+      "min": -1
9
+    },
10
+    "onLoad": {
11
+      "type": "number",
12
+      "min": -1
13
+    },
14
+    "comment": {
15
+      "type": "string"
16
+    }
17
+  }
18
+}

+ 43
- 0
node_modules/har-schema/lib/postData.json View File

1
+{
2
+  "$id": "postData.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "optional": true,
6
+  "required": [
7
+    "mimeType"
8
+  ],
9
+  "properties": {
10
+    "mimeType": {
11
+      "type": "string"
12
+    },
13
+    "text": {
14
+      "type": "string"
15
+    },
16
+    "params": {
17
+      "type": "array",
18
+      "required": [
19
+        "name"
20
+      ],
21
+      "properties": {
22
+        "name": {
23
+          "type": "string"
24
+        },
25
+        "value": {
26
+          "type": "string"
27
+        },
28
+        "fileName": {
29
+          "type": "string"
30
+        },
31
+        "contentType": {
32
+          "type": "string"
33
+        },
34
+        "comment": {
35
+          "type": "string"
36
+        }
37
+      }
38
+    },
39
+    "comment": {
40
+      "type": "string"
41
+    }
42
+  }
43
+}

+ 20
- 0
node_modules/har-schema/lib/query.json View File

1
+{
2
+  "$id": "query.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "name",
7
+    "value"
8
+  ],
9
+  "properties": {
10
+    "name": {
11
+      "type": "string"
12
+    },
13
+    "value": {
14
+      "type": "string"
15
+    },
16
+    "comment": {
17
+      "type": "string"
18
+    }
19
+  }
20
+}

+ 57
- 0
node_modules/har-schema/lib/request.json View File

1
+{
2
+  "$id": "request.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "method",
7
+    "url",
8
+    "httpVersion",
9
+    "cookies",
10
+    "headers",
11
+    "queryString",
12
+    "headersSize",
13
+    "bodySize"
14
+  ],
15
+  "properties": {
16
+    "method": {
17
+      "type": "string"
18
+    },
19
+    "url": {
20
+      "type": "string",
21
+      "format": "uri"
22
+    },
23
+    "httpVersion": {
24
+      "type": "string"
25
+    },
26
+    "cookies": {
27
+      "type": "array",
28
+      "items": {
29
+        "$ref": "cookie.json#"
30
+      }
31
+    },
32
+    "headers": {
33
+      "type": "array",
34
+      "items": {
35
+        "$ref": "header.json#"
36
+      }
37
+    },
38
+    "queryString": {
39
+      "type": "array",
40
+      "items": {
41
+        "$ref": "query.json#"
42
+      }
43
+    },
44
+    "postData": {
45
+      "$ref": "postData.json#"
46
+    },
47
+    "headersSize": {
48
+      "type": "integer"
49
+    },
50
+    "bodySize": {
51
+      "type": "integer"
52
+    },
53
+    "comment": {
54
+      "type": "string"
55
+    }
56
+  }
57
+}

+ 54
- 0
node_modules/har-schema/lib/response.json View File

1
+{
2
+  "$id": "response.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "type": "object",
5
+  "required": [
6
+    "status",
7
+    "statusText",
8
+    "httpVersion",
9
+    "cookies",
10
+    "headers",
11
+    "content",
12
+    "redirectURL",
13
+    "headersSize",
14
+    "bodySize"
15
+  ],
16
+  "properties": {
17
+    "status": {
18
+      "type": "integer"
19
+    },
20
+    "statusText": {
21
+      "type": "string"
22
+    },
23
+    "httpVersion": {
24
+      "type": "string"
25
+    },
26
+    "cookies": {
27
+      "type": "array",
28
+      "items": {
29
+        "$ref": "cookie.json#"
30
+      }
31
+    },
32
+    "headers": {
33
+      "type": "array",
34
+      "items": {
35
+        "$ref": "header.json#"
36
+      }
37
+    },
38
+    "content": {
39
+      "$ref": "content.json#"
40
+    },
41
+    "redirectURL": {
42
+      "type": "string"
43
+    },
44
+    "headersSize": {
45
+      "type": "integer"
46
+    },
47
+    "bodySize": {
48
+      "type": "integer"
49
+    },
50
+    "comment": {
51
+      "type": "string"
52
+    }
53
+  }
54
+}

+ 42
- 0
node_modules/har-schema/lib/timings.json View File

1
+{
2
+  "$id": "timings.json#",
3
+  "$schema": "http://json-schema.org/draft-06/schema#",
4
+  "required": [
5
+    "send",
6
+    "wait",
7
+    "receive"
8
+  ],
9
+  "properties": {
10
+    "dns": {
11
+      "type": "number",
12
+      "min": -1
13
+    },
14
+    "connect": {
15
+      "type": "number",
16
+      "min": -1
17
+    },
18
+    "blocked": {
19
+      "type": "number",
20
+      "min": -1
21
+    },
22
+    "send": {
23
+      "type": "number",
24
+      "min": -1
25
+    },
26
+    "wait": {
27
+      "type": "number",
28
+      "min": -1
29
+    },
30
+    "receive": {
31
+      "type": "number",
32
+      "min": -1
33
+    },
34
+    "ssl": {
35
+      "type": "number",
36
+      "min": -1
37
+    },
38
+    "comment": {
39
+      "type": "string"
40
+    }
41
+  }
42
+}

+ 114
- 0
node_modules/har-schema/package.json View File

1
+{
2
+  "_args": [
3
+    [
4
+      "har-schema@^2.0.0",
5
+      "/home/nmaidanos/Desktop/ZipTeamPurple-FrontEnd/node_modules/har-validator"
6
+    ]
7
+  ],
8
+  "_from": "har-schema@>=2.0.0 <3.0.0",
9
+  "_id": "har-schema@2.0.0",
10
+  "_inCache": true,
11
+  "_installable": true,
12
+  "_location": "/har-schema",
13
+  "_nodeVersion": "4.8.2",
14
+  "_npmOperationalInternal": {
15
+    "host": "packages-18-east.internal.npmjs.com",
16
+    "tmp": "tmp/har-schema-2.0.0.tgz_1492544653773_0.6988900362048298"
17
+  },
18
+  "_npmUser": {
19
+    "email": "ahmad@ahmadnassri.com",
20
+    "name": "ahmadnassri"
21
+  },
22
+  "_npmVersion": "2.15.11",
23
+  "_phantomChildren": {},
24
+  "_requested": {
25
+    "name": "har-schema",
26
+    "raw": "har-schema@^2.0.0",
27
+    "rawSpec": "^2.0.0",
28
+    "scope": null,
29
+    "spec": ">=2.0.0 <3.0.0",
30
+    "type": "range"
31
+  },
32
+  "_requiredBy": [
33
+    "/har-validator"
34
+  ],
35
+  "_resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
36
+  "_shasum": "a94c2224ebcac04782a0d9035521f24735b7ec92",
37
+  "_shrinkwrap": null,
38
+  "_spec": "har-schema@^2.0.0",
39
+  "_where": "/home/nmaidanos/Desktop/ZipTeamPurple-FrontEnd/node_modules/har-validator",
40
+  "author": {
41
+    "email": "ahmad@ahmadnassri.com",
42
+    "name": "Ahmad Nassri",
43
+    "url": "https://www.ahmadnassri.com/"
44
+  },
45
+  "bugs": {
46
+    "url": "https://github.com/ahmadnassri/har-schema/issues"
47
+  },
48
+  "config": {
49
+    "commitizen": {
50
+      "path": "./node_modules/cz-conventional-changelog"
51
+    }
52
+  },
53
+  "contributors": [
54
+    {
55
+      "name": "Evgeny Poberezkin",
56
+      "email": "e.poberezkin@me.com"
57
+    }
58
+  ],
59
+  "dependencies": {},
60
+  "description": "JSON Schema for HTTP Archive (HAR)",
61
+  "devDependencies": {
62
+    "ajv": "^5.0.0",
63
+    "codeclimate-test-reporter": "^0.4.0",
64
+    "cz-conventional-changelog": "^1.2.0",
65
+    "echint": "^2.1.0",
66
+    "semantic-release": "^6.3.2",
67
+    "snazzy": "^5.0.0",
68
+    "tap": "^8.0.1"
69
+  },
70
+  "directories": {},
71
+  "dist": {
72
+    "shasum": "a94c2224ebcac04782a0d9035521f24735b7ec92",
73
+    "tarball": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz"
74
+  },
75
+  "engines": {
76
+    "node": ">=4"
77
+  },
78
+  "files": [
79
+    "lib"
80
+  ],
81
+  "gitHead": "d006b0500e083a5b3e42635f110f3fb702ccdbb1",
82
+  "homepage": "https://github.com/ahmadnassri/har-schema",
83
+  "keywords": [
84
+    "JSON",
85
+    "JSON-schema",
86
+    "archive",
87
+    "har",
88
+    "http",
89
+    "schema"
90
+  ],
91
+  "license": "ISC",
92
+  "main": "lib/index.js",
93
+  "maintainers": [
94
+    {
95
+      "name": "esp",
96
+      "email": "e.poberezkin@me.com"
97
+    }
98
+  ],
99
+  "name": "har-schema",
100
+  "optionalDependencies": {},
101
+  "readme": "ERROR: No README data found!",
102
+  "repository": {
103
+    "type": "git",
104
+    "url": "git+https://github.com/ahmadnassri/har-schema.git"
105
+  },
106
+  "scripts": {
107
+    "codeclimate": "tap --coverage-report=text-lcov | codeclimate-test-reporter",
108
+    "coverage": "tap test --reporter silent --coverage",
109
+    "pretest": "snazzy && echint",
110
+    "semantic-release": "semantic-release pre && npm publish && semantic-release post",
111
+    "test": "tap test --reporter spec"
112
+  },
113
+  "version": "2.0.0"
114
+}

+ 95
- 0
node_modules/har-validator/lib/promise.js View File

1
+var Ajv = require('ajv')
2
+var HARError = require('./error')
3
+var schemas = require('har-schema')
4
+
5
+var ajv
6
+
7
+function validate (name, data) {
8
+  data = data || {}
9
+
10
+  // validator config
11
+  ajv = ajv || new Ajv({
12
+    allErrors: true,
13
+    schemas: schemas
14
+  })
15
+
16
+  var validate = ajv.getSchema(name + '.json')
17
+
18
+  return new Promise(function (resolve, reject) {
19
+    var valid = validate(data)
20
+
21
+    !valid ? reject(new HARError(validate.errors)) : resolve(data)
22
+  })
23
+}
24
+
25
+exports.afterRequest = function (data) {
26
+  return validate('afterRequest', data)
27
+}
28
+
29
+exports.beforeRequest = function (data) {
30
+  return validate('beforeRequest', data)
31
+}
32
+
33
+exports.browser = function (data) {
34
+  return validate('browser', data)
35
+}
36
+
37
+exports.cache = function (data) {
38
+  return validate('cache', data)
39
+}
40
+
41
+exports.content = function (data) {
42
+  return validate('content', data)
43
+}
44
+
45
+exports.cookie = function (data) {
46
+  return validate('cookie', data)
47
+}
48
+
49
+exports.creator = function (data) {
50
+  return validate('creator', data)
51
+}
52
+
53
+exports.entry = function (data) {
54
+  return validate('entry', data)
55
+}
56
+
57
+exports.har = function (data) {
58
+  return validate('har', data)
59
+}
60
+
61
+exports.header = function (data) {
62
+  return validate('header', data)
63
+}
64
+
65
+exports.log = function (data) {
66
+  return validate('log', data)
67
+}
68
+
69
+exports.page = function (data) {
70
+  return validate('page', data)
71
+}
72
+
73
+exports.pageTimings = function (data) {
74
+  return validate('pageTimings', data)
75
+}
76
+
77
+exports.postData = function (data) {
78
+  return validate('postData', data)
79
+}
80
+
81
+exports.query = function (data) {
82
+  return validate('query', data)
83
+}
84
+
85
+exports.request = function (data) {
86
+  return validate('request', data)
87
+}
88
+
89
+exports.response = function (data) {
90
+  return validate('response', data)
91
+}
92
+
93
+exports.timings = function (data) {
94
+  return validate('timings', data)
95
+}

+ 3
- 0
node_modules/is-my-json-valid/.vscode/settings.json View File

1
+{
2
+  "typescript.tsdk": "node_modules/typescript/lib"
3
+}

+ 127
- 0
node_modules/is-my-json-valid/index.d.ts View File

1
+type AnySchema = NullSchema | BooleanSchema | NullableBooleanSchema | NumberSchema | NullableNumberSchema | StringSchema | NullableStringSchema | AnyEnumSchema | AnyArraySchema | AnyNullableArraySchema | AnyObjectSchema | AnyNullableObjectSchema | AnyAllOptionalObjectSchema | AnyNullableAllOptionalObjectSchema | AnyOneOfSchema
2
+type StringKeys<T> = (keyof T) & string
3
+
4
+interface NullSchema { type: 'null' }
5
+
6
+interface BooleanSchema { type: 'boolean' }
7
+interface NullableBooleanSchema { type: ('boolean' | 'null')[] }
8
+
9
+interface NumberSchema { type: 'number' }
10
+interface NullableNumberSchema { type: ('number' | 'null')[] }
11
+
12
+interface StringSchema { type: 'string' }
13
+interface NullableStringSchema { type: ('string' | 'null')[] }
14
+
15
+interface AnyEnumSchema extends EnumSchema<any> {}
16
+interface EnumSchema<Enum> { enum: Enum[] }
17
+
18
+interface AnyArraySchema extends ArraySchema<AnySchema> {}
19
+interface ArraySchema<ItemSchema extends AnySchema> { type: 'array', items: ItemSchema }
20
+
21
+interface AnyNullableArraySchema extends NullableArraySchema<AnySchema> {}
22
+interface NullableArraySchema<ItemSchema extends AnySchema> { type: ('array' | 'null')[], items: ItemSchema }
23
+
24
+interface AnyObjectSchema extends ObjectSchema<Record<string, AnySchema>, string> {}
25
+interface ObjectSchema<Properties extends Record<string, AnySchema>, Required extends StringKeys<Properties>> {
26
+  additionalProperties?: boolean
27
+  type: 'object'
28
+  properties: Properties
29
+  required: Required[]
30
+}
31
+
32
+interface AnyNullableObjectSchema extends NullableObjectSchema<Record<string, AnySchema>, string> {}
33
+interface NullableObjectSchema<Properties extends Record<string, AnySchema>, Required extends StringKeys<Properties>> {
34
+  additionalProperties?: boolean
35
+  type: ('object' | 'null')[]
36
+  properties: Properties
37
+  required: Required[]
38
+}
39
+
40
+interface AnyAllOptionalObjectSchema extends AllOptionalObjectSchema<Record<string, AnySchema>> {}
41
+interface AllOptionalObjectSchema<Properties extends Record<string, AnySchema>> {
42
+  additionalProperties?: boolean
43
+  type: 'object'
44
+  properties: Properties
45
+}
46
+
47
+interface AnyNullableAllOptionalObjectSchema extends NullableAllOptionalObjectSchema<Record<string, AnySchema>> {}
48
+interface NullableAllOptionalObjectSchema<Properties extends Record<string, AnySchema>> {
49
+  additionalProperties?: boolean
50
+  type: ('object' | 'null')[]
51
+  properties: Properties
52
+}
53
+
54
+interface AnyOneOfSchema { oneOf: AnySchema[] }
55
+
56
+interface ArrayFromSchema<ItemSchema extends AnySchema> extends Array<TypeFromSchema<ItemSchema>> {}
57
+
58
+type ObjectFromSchema<Properties extends Record<string, AnySchema>, Required extends StringKeys<Properties>> = {
59
+  [Key in keyof Properties]: (Key extends Required ? TypeFromSchema<Properties[Key]> : TypeFromSchema<Properties[Key]> | undefined)
60
+}
61
+
62
+type TypeFromSchema<Schema extends AnySchema> = (
63
+    Schema extends EnumSchema<infer Enum> ? Enum
64
+  : Schema extends NullSchema ? null
65
+  : Schema extends BooleanSchema ? boolean
66
+  : Schema extends NullableBooleanSchema ? (boolean | null)
67
+  : Schema extends NumberSchema ? number
68
+  : Schema extends NullableNumberSchema ? (number | null)
69
+  : Schema extends StringSchema ? string
70
+  : Schema extends NullableStringSchema ? (string | null)
71
+  : Schema extends ArraySchema<infer ItemSchema> ? ArrayFromSchema<ItemSchema>
72
+  : Schema extends NullableArraySchema<infer ItemSchema> ? (ArrayFromSchema<ItemSchema> | null)
73
+  : Schema extends ObjectSchema<infer Properties, infer Required> ? ObjectFromSchema<Properties, Required>
74
+  : Schema extends NullableObjectSchema<infer Properties, infer Required> ? (ObjectFromSchema<Properties, Required> | null)
75
+  : Schema extends AllOptionalObjectSchema<infer Properties> ? ObjectFromSchema<Properties, never>
76
+  : Schema extends NullableAllOptionalObjectSchema<infer Properties> ? (ObjectFromSchema<Properties, never> | null)
77
+  : never
78
+)
79
+
80
+declare namespace factory {
81
+  interface ValidationError {
82
+    field: string
83
+    message: string
84
+    value: unknown
85
+    type: string
86
+  }
87
+}
88
+
89
+interface Validator<Schema extends AnySchema, Output = TypeFromSchema<Schema>> {
90
+  (input: unknown, options?: any): input is Output
91
+  errors: factory.ValidationError[]
92
+  toJSON(): Schema
93
+}
94
+
95
+interface Filter<Schema extends AnySchema, Output = TypeFromSchema<Schema>> {
96
+  (input: Output, options?: any): Output
97
+}
98
+
99
+interface Factory {
100
+  /* One of object schema */
101
+              <Properties1 extends Record<string, AnySchema>, Required1 extends StringKeys<Properties1>, Properties2 extends Record<string, AnySchema>, Required2 extends StringKeys<Properties2>> (schema: { oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>] }, options?: any): Validator<{ oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>] }, ObjectFromSchema<Properties1, Required1> | ObjectFromSchema<Properties2, Required2>>
102
+  createFilter<Properties1 extends Record<string, AnySchema>, Required1 extends StringKeys<Properties1>, Properties2 extends Record<string, AnySchema>, Required2 extends StringKeys<Properties2>> (schema: { oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>] }, options?: any):    Filter<{ oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>] }, ObjectFromSchema<Properties1, Required1> | ObjectFromSchema<Properties2, Required2>>
103
+              <Properties1 extends Record<string, AnySchema>, Required1 extends StringKeys<Properties1>, Properties2 extends Record<string, AnySchema>, Required2 extends StringKeys<Properties2>, Properties3 extends Record<string, AnySchema>, Required3 extends StringKeys<Properties3>> (schema: { oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>, ObjectSchema<Properties3, Required3>] }, options?: any): Validator<{ oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>, ObjectSchema<Properties3, Required3>] }, ObjectFromSchema<Properties1, Required1> | ObjectFromSchema<Properties2, Required2> | ObjectFromSchema<Properties3, Required3>>
104
+  createFilter<Properties1 extends Record<string, AnySchema>, Required1 extends StringKeys<Properties1>, Properties2 extends Record<string, AnySchema>, Required2 extends StringKeys<Properties2>, Properties3 extends Record<string, AnySchema>, Required3 extends StringKeys<Properties3>> (schema: { oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>, ObjectSchema<Properties3, Required3>] }, options?: any):    Filter<{ oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>, ObjectSchema<Properties3, Required3>] }, ObjectFromSchema<Properties1, Required1> | ObjectFromSchema<Properties2, Required2> | ObjectFromSchema<Properties3, Required3>>
105
+              <Properties1 extends Record<string, AnySchema>, Required1 extends StringKeys<Properties1>, Properties2 extends Record<string, AnySchema>, Required2 extends StringKeys<Properties2>, Properties3 extends Record<string, AnySchema>, Required3 extends StringKeys<Properties3>, Properties4 extends Record<string, AnySchema>, Required4 extends StringKeys<Properties4>> (schema: { oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>, ObjectSchema<Properties3, Required3>, ObjectSchema<Properties4, Required4>] }, options?: any): Validator<{ oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>, ObjectSchema<Properties3, Required3>, ObjectSchema<Properties4, Required4>] }, ObjectFromSchema<Properties1, Required1> | ObjectFromSchema<Properties2, Required2> | ObjectFromSchema<Properties3, Required3> | ObjectFromSchema<Properties4, Required4>>
106
+  createFilter<Properties1 extends Record<string, AnySchema>, Required1 extends StringKeys<Properties1>, Properties2 extends Record<string, AnySchema>, Required2 extends StringKeys<Properties2>, Properties3 extends Record<string, AnySchema>, Required3 extends StringKeys<Properties3>, Properties4 extends Record<string, AnySchema>, Required4 extends StringKeys<Properties4>> (schema: { oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>, ObjectSchema<Properties3, Required3>, ObjectSchema<Properties4, Required4>] }, options?: any):    Filter<{ oneOf: [ObjectSchema<Properties1, Required1>, ObjectSchema<Properties2, Required2>, ObjectSchema<Properties3, Required3>, ObjectSchema<Properties4, Required4>] }, ObjectFromSchema<Properties1, Required1> | ObjectFromSchema<Properties2, Required2> | ObjectFromSchema<Properties3, Required3> | ObjectFromSchema<Properties4, Required4>>
107
+
108
+  /* One of plain schema */
109
+              <Schema1 extends AnySchema, Schema2 extends AnySchema> (schema: { oneOf: [Schema1, Schema2] }, options?: any): Validator<{ oneOf: [Schema1, Schema2] }, TypeFromSchema<Schema1> | TypeFromSchema<Schema2>>
110
+  createFilter<Schema1 extends AnySchema, Schema2 extends AnySchema> (schema: { oneOf: [Schema1, Schema2] }, options?: any):    Filter<{ oneOf: [Schema1, Schema2] }, TypeFromSchema<Schema1> | TypeFromSchema<Schema2>>
111
+              <Schema1 extends AnySchema, Schema2 extends AnySchema, Schema3 extends AnySchema> (schema: { oneOf: [Schema1, Schema2, Schema3] }, options?: any): Validator<{ oneOf: [Schema1, Schema2, Schema3] }, TypeFromSchema<Schema1> | TypeFromSchema<Schema2> | TypeFromSchema<Schema3>>
112
+  createFilter<Schema1 extends AnySchema, Schema2 extends AnySchema, Schema3 extends AnySchema> (schema: { oneOf: [Schema1, Schema2, Schema3] }, options?: any):    Filter<{ oneOf: [Schema1, Schema2, Schema3] }, TypeFromSchema<Schema1> | TypeFromSchema<Schema2> | TypeFromSchema<Schema3>>
113
+              <Schema1 extends AnySchema, Schema2 extends AnySchema, Schema3 extends AnySchema, Schema4 extends AnySchema> (schema: { oneOf: [Schema1, Schema2, Schema3, Schema4] }, options?: any): Validator<{ oneOf: [Schema1, Schema2, Schema3, Schema4] }, TypeFromSchema<Schema1> | TypeFromSchema<Schema2> | TypeFromSchema<Schema3> | TypeFromSchema<Schema4>>
114
+  createFilter<Schema1 extends AnySchema, Schema2 extends AnySchema, Schema3 extends AnySchema, Schema4 extends AnySchema> (schema: { oneOf: [Schema1, Schema2, Schema3, Schema4] }, options?: any):    Filter<{ oneOf: [Schema1, Schema2, Schema3, Schema4] }, TypeFromSchema<Schema1> | TypeFromSchema<Schema2> | TypeFromSchema<Schema3> | TypeFromSchema<Schema4>>
115
+
116
+  /* Object schema */
117
+              <Properties extends Record<string, AnySchema>, Required extends StringKeys<Properties>> (schema: ObjectSchema<Properties, Required>, options?: any): Validator<ObjectSchema<Properties, Required>>
118
+  createFilter<Properties extends Record<string, AnySchema>, Required extends StringKeys<Properties>> (schema: ObjectSchema<Properties, Required>, options?: any):    Filter<ObjectSchema<Properties, Required>>
119
+
120
+  /* Plain schema */
121
+              <Schema extends AnySchema> (schema: Schema, options?: any): Validator<Schema>
122
+  createFilter<Schema extends AnySchema> (schema: Schema, options?: any):    Filter<Schema>
123
+}
124
+
125
+declare const factory: Factory
126
+
127
+export = factory

+ 410
- 0
node_modules/is-my-json-valid/test/typings.ts View File

1
+import createValidator = require('../')
2
+
3
+/** Static assertion that `value` has type `T` */
4
+// Disable tslint here b/c the generic is used to let us do a type coercion and
5
+// validate that coercion works for the type value "passed into" the function.
6
+// tslint:disable-next-line:no-unnecessary-generics
7
+function assertType<T>(value: T): void {}
8
+
9
+const input = null as unknown
10
+
11
+const nullValidator = createValidator({ type: 'null' })
12
+assertType<{ type: 'null' }>(nullValidator.toJSON())
13
+
14
+if (nullValidator(input)) {
15
+  assertType<null>(input)
16
+}
17
+
18
+assertType<createValidator.ValidationError[]>(nullValidator.errors)
19
+assertType<createValidator.ValidationError>(nullValidator.errors[0])
20
+assertType<string>(nullValidator.errors[0].field)
21
+assertType<string>(nullValidator.errors[0].message)
22
+assertType<string>(nullValidator.errors[0].type)
23
+assertType<unknown>(nullValidator.errors[0].value)
24
+
25
+const numberValidator = createValidator({ type: 'number' })
26
+assertType<{ type: 'number' }>(numberValidator.toJSON())
27
+
28
+if (numberValidator(input)) {
29
+  assertType<number>(input)
30
+}
31
+
32
+const stringValidator = createValidator({ type: 'string' })
33
+assertType<{ type: 'string' }>(stringValidator.toJSON())
34
+
35
+if (stringValidator(input)) {
36
+  assertType<string>(input)
37
+}
38
+
39
+const personValidator = createValidator({
40
+  type: 'object',
41
+  properties: {
42
+    name: { type: 'string' },
43
+    age: { type: 'number' },
44
+  },
45
+  required: [
46
+    'name'
47
+  ]
48
+})
49
+
50
+if (personValidator(input)) {
51
+  assertType<string>(input.name)
52
+  if (typeof input.age !== 'undefined') assertType<number>(input.age)
53
+  if (typeof input.age !== 'number') assertType<undefined>(input.age)
54
+}
55
+
56
+const namesValidator = createValidator({
57
+  type: 'array',
58
+  items: { type: 'string' }
59
+})
60
+
61
+if (namesValidator(input)) {
62
+  assertType<number>(input.length)
63
+  assertType<string>(input[0])
64
+}
65
+
66
+const boxValidator = createValidator({
67
+  type: 'object',
68
+  properties: {
69
+    name: { type: 'string' },
70
+    items: { type: 'array', items: { type: 'boolean' } },
71
+  },
72
+  required: [
73
+    'name',
74
+    'items',
75
+  ]
76
+})
77
+
78
+if (boxValidator(input)) {
79
+  assertType<string>(input.name)
80
+  assertType<number>(input.items.length)
81
+  assertType<boolean>(input.items[0])
82
+}
83
+
84
+const matrixValidator = createValidator({
85
+  type: 'array',
86
+  items: {
87
+    type: 'array',
88
+    items: {
89
+      type: 'number'
90
+    }
91
+  }
92
+})
93
+
94
+if (matrixValidator(input)) {
95
+  assertType<number>(input[0][0])
96
+}
97
+
98
+const userValidator = createValidator({
99
+  type: 'object',
100
+  properties: {
101
+    name: { type: 'string' },
102
+    items: { type: 'array', items: { type: 'string' } },
103
+  },
104
+  required: [
105
+    'name',
106
+    'items',
107
+  ]
108
+})
109
+
110
+if (userValidator(input)) {
111
+  assertType<string>(input.name)
112
+  assertType<number>(input.items.length)
113
+  assertType<string>(input.items[0])
114
+}
115
+
116
+const user2Validator = createValidator({
117
+  type: 'object',
118
+  properties: {
119
+    name: {
120
+      type: 'object',
121
+      properties: {
122
+        first: { type: 'string' },
123
+        last: { type: 'string' },
124
+      },
125
+      required: [
126
+        'last' as 'last'
127
+      ]
128
+    },
129
+    items: {
130
+      type: 'array',
131
+      items: { type: 'string' },
132
+    }
133
+  },
134
+  required: [
135
+    'name'
136
+  ]
137
+})
138
+
139
+if (user2Validator(input)) {
140
+  assertType<{ first: string | undefined, last: string }>(input.name)
141
+  if (typeof input.name.first !== 'undefined') assertType<string>(input.name.first)
142
+  if (typeof input.name.first !== 'string') assertType<undefined>(input.name.first)
143
+  assertType<string>(input.name.last)
144
+
145
+  if (input.items !== undefined) {
146
+    assertType<number>(input.items.length)
147
+    assertType<string>(input.items[0])
148
+  }
149
+}
150
+
151
+const booleanValidator = createValidator({
152
+  enum: [true, false]
153
+})
154
+
155
+if (booleanValidator(input)) {
156
+  assertType<boolean>(input)
157
+}
158
+
159
+const specificValuesValidator = createValidator({
160
+  enum: [
161
+    true as true,
162
+    1000 as 1000,
163
+    'XX' as 'XX'
164
+  ]
165
+})
166
+
167
+if (specificValuesValidator(input)) {
168
+  if (input !== true && input !== 1000) assertType<'XX'>(input)
169
+  if (input !== 1000 && input !== 'XX') assertType<true>(input)
170
+  if (input !== 'XX' && input !== true) assertType<1000>(input)
171
+}
172
+
173
+const metricValidator = createValidator({
174
+  type: 'object',
175
+  properties: {
176
+    name: { type: 'string', enum: ['page-view' as 'page-view'] },
177
+    page: { type: 'string', minLength: 0 }
178
+  },
179
+  required: [
180
+    'name',
181
+    'page'
182
+  ]
183
+})
184
+
185
+if (metricValidator(input)) {
186
+  assertType<'page-view'>(input.name)
187
+  assertType<string>(input.page)
188
+}
189
+
190
+const noRequiredFieldsValidator = createValidator({
191
+  type: 'object',
192
+  properties: {
193
+    a: { type: 'string' },
194
+    b: { type: 'string' },
195
+    c: { type: 'string' }
196
+  }
197
+})
198
+
199
+if (noRequiredFieldsValidator(input)) {
200
+  if (typeof input.a !== 'string') assertType<undefined>(input.a)
201
+  if (typeof input.b !== 'string') assertType<undefined>(input.b)
202
+  if (typeof input.c !== 'string') assertType<undefined>(input.c)
203
+  if (typeof input.a !== 'undefined') assertType<string>(input.a)
204
+  if (typeof input.b !== 'undefined') assertType<string>(input.b)
205
+  if (typeof input.c !== 'undefined') assertType<string>(input.c)
206
+}
207
+
208
+const signupValidator = createValidator({
209
+  type: 'object',
210
+  properties: {
211
+    email: {
212
+      type: 'string'
213
+    },
214
+    paymentInformation: {
215
+      type: 'object',
216
+      properties: {
217
+        plan: { type: 'string' },
218
+        token: { type: 'string' }
219
+      },
220
+      required: [
221
+        'plan' as 'plan',
222
+        'token' as 'token'
223
+      ]
224
+    }
225
+  },
226
+  required: [
227
+    'paymentInformation'
228
+  ]
229
+})
230
+
231
+if (signupValidator(input)) {
232
+  if (typeof input.email !== 'string') assertType<undefined>(input.email)
233
+  if (typeof input.email !== 'undefined') assertType<string>(input.email)
234
+  assertType<string>(input.paymentInformation.plan)
235
+  assertType<string>(input.paymentInformation.token)
236
+}
237
+
238
+const animalValidator = createValidator({
239
+  oneOf: [
240
+    {
241
+      type: 'object',
242
+      properties: {
243
+        type: { enum: ['cat' as 'cat'] },
244
+        name: { type: 'string' }
245
+      },
246
+      required: [
247
+        'type',
248
+        'name'
249
+      ]
250
+    },
251
+    {
252
+      type: 'object',
253
+      properties: {
254
+        type: { enum: ['dog' as 'dog'] },
255
+        name: { type: 'string' }
256
+      },
257
+      required: [
258
+        'type',
259
+        'name'
260
+      ]
261
+    }
262
+  ]
263
+})
264
+
265
+if (animalValidator(input)) {
266
+  if (input.type !== 'cat') assertType<'dog'>(input.type)
267
+  if (input.type !== 'dog') assertType<'cat'>(input.type)
268
+  assertType<string>(input.name)
269
+}
270
+
271
+const shapeValidator = createValidator({
272
+  oneOf: [
273
+    { type: 'object', properties: { kind: { enum: ['triangle' as 'triangle'] } }, required: ['kind'] },
274
+    { type: 'object', properties: { kind: { enum: ['rectangle' as 'rectangle'] } }, required: ['kind'] },
275
+    { type: 'object', properties: { kind: { enum: ['circle' as 'circle'] } }, required: ['kind'] },
276
+  ]
277
+})
278
+
279
+if (shapeValidator(input)) {
280
+  if (input.kind !== 'triangle' && input.kind !== 'rectangle') assertType<'circle'>(input.kind)
281
+  if (input.kind !== 'rectangle' && input.kind !== 'circle') assertType<'triangle'>(input.kind)
282
+  if (input.kind !== 'circle' && input.kind !== 'triangle') assertType<'rectangle'>(input.kind)
283
+}
284
+
285
+const foobar = createValidator({
286
+  oneOf: [
287
+    { type: 'object', properties: { a: { type: 'string' } }, required: ['a'] },
288
+    { type: 'object', properties: { b: { type: 'number' } }, required: ['b'] },
289
+    { type: 'object', properties: { c: { type: 'boolean' } }, required: ['c'] },
290
+    { type: 'object', properties: { d: { type: 'null' } }, required: ['d'] },
291
+  ]
292
+})
293
+
294
+if (foobar(input)) {
295
+  if ('a' in input) assertType<string>(input.a)
296
+  if ('b' in input) assertType<number>(input.b)
297
+  if ('c' in input) assertType<boolean>(input.c)
298
+  if ('d' in input) assertType<null>(input.d)
299
+}
300
+
301
+const stringOrNullValidator = createValidator({
302
+  oneOf: [
303
+    { type: 'string' },
304
+    { type: 'null' }
305
+  ]
306
+})
307
+
308
+if (stringOrNullValidator(input)) {
309
+  if (typeof input !== 'object') assertType<string>(input)
310
+  if (typeof input !== 'string') assertType<null>(input)
311
+}
312
+
313
+const primitiveValidator = createValidator({
314
+  oneOf: [
315
+    { type: 'string' },
316
+    { type: 'number' },
317
+    { type: 'boolean' }
318
+  ]
319
+})
320
+
321
+if (primitiveValidator(input)) {
322
+  if (typeof input !== 'string' && typeof input !== 'number') assertType<boolean>(input)
323
+  if (typeof input !== 'number' && typeof input !== 'boolean') assertType<string>(input)
324
+  if (typeof input !== 'boolean' && typeof input !== 'string') assertType<number>(input)
325
+}
326
+
327
+const overengineeredColorValidator = createValidator({
328
+  oneOf: [
329
+    { enum: ['red' as 'red', 'pink' as 'pink'] },
330
+    { enum: ['green' as 'green', 'olive' as 'olive'] },
331
+    { enum: ['blue' as 'blue', 'teal' as 'teal'] },
332
+    { enum: ['yellow' as 'yellow', 'cream' as 'cream'] }
333
+  ]
334
+})
335
+
336
+if (overengineeredColorValidator(input)) {
337
+  if (input !== 'red' && input !== 'pink' && input !== 'green' && input !== 'olive' && input !== 'blue' && input !== 'teal' && input !== 'yellow') assertType<'cream'>(input)
338
+  if (input !== 'pink' && input !== 'green' && input !== 'olive' && input !== 'blue' && input !== 'teal' && input !== 'yellow' && input !== 'cream') assertType<'red'>(input)
339
+  if (input !== 'green' && input !== 'olive' && input !== 'blue' && input !== 'teal' && input !== 'yellow' && input !== 'cream' && input !== 'red') assertType<'pink'>(input)
340
+  if (input !== 'olive' && input !== 'blue' && input !== 'teal' && input !== 'yellow' && input !== 'cream' && input !== 'red' && input !== 'pink') assertType<'green'>(input)
341
+  if (input !== 'blue' && input !== 'teal' && input !== 'yellow' && input !== 'cream' && input !== 'red' && input !== 'pink' && input !== 'green') assertType<'olive'>(input)
342
+  if (input !== 'teal' && input !== 'yellow' && input !== 'cream' && input !== 'red' && input !== 'pink' && input !== 'green' && input !== 'olive') assertType<'blue'>(input)
343
+  if (input !== 'yellow' && input !== 'cream' && input !== 'red' && input !== 'pink' && input !== 'green' && input !== 'olive' && input !== 'blue') assertType<'teal'>(input)
344
+  if (input !== 'cream' && input !== 'red' && input !== 'pink' && input !== 'green' && input !== 'olive' && input !== 'blue' && input !== 'teal') assertType<'yellow'>(input)
345
+}
346
+
347
+const nullableStringValidator = createValidator({
348
+  type: ['string', 'null']
349
+})
350
+
351
+if (nullableStringValidator(input)) {
352
+  if (typeof input !== 'object') assertType<string>(input)
353
+  if (typeof input !== 'string') assertType<null>(input)
354
+}
355
+
356
+const nullableNameValidator = createValidator({
357
+  type: 'object',
358
+  properties: {
359
+    name: { type: ['string', 'null'] }
360
+  },
361
+  required: [
362
+    'name'
363
+  ]
364
+})
365
+
366
+if (nullableNameValidator(input)) {
367
+  if (typeof input.name !== 'object') assertType<string>(input.name)
368
+  if (typeof input.name !== 'string') assertType<null>(input.name)
369
+}
370
+
371
+const nullableInventoryValidator = createValidator({
372
+  type: 'object',
373
+  properties: {
374
+    inventory: {
375
+      type: ['array', 'null'],
376
+      items: { type: 'string' }
377
+    }
378
+  },
379
+  required: [
380
+    'inventory'
381
+  ]
382
+})
383
+
384
+if (nullableInventoryValidator(input)) {
385
+  if (input.inventory === null) assertType<null>(input.inventory)
386
+  if (input.inventory !== null) assertType<string[]>(input.inventory)
387
+}
388
+
389
+const nullableParentValidator = createValidator({
390
+  type: 'object',
391
+  properties: {
392
+    parent: {
393
+      type: ['object', 'null'],
394
+      properties: {
395
+        name: { type: 'string' }
396
+      },
397
+      required: [
398
+        'name' as 'name'
399
+      ]
400
+    }
401
+  },
402
+  required: [
403
+    'parent'
404
+  ]
405
+})
406
+
407
+if (nullableParentValidator(input)) {
408
+  if (input.parent === null) assertType<null>(input.parent)
409
+  if (input.parent !== null) assertType<string>(input.parent.name)
410
+}

+ 10
- 0
node_modules/is-my-json-valid/tsconfig.json View File

1
+{
2
+  "compilerOptions": {
3
+    "strict": true,
4
+    "noEmit": true
5
+  },
6
+  "files": [
7
+    "index.d.ts",
8
+    "test/typings.ts"
9
+  ]
10
+}

+ 44
- 0
node_modules/js-base64/.attic/test-moment/dankogai.js View File

1
+/*
2
+ * $Id: dankogai.js,v 0.4 2012/08/24 05:23:18 dankogai Exp dankogai $
3
+ *
4
+ * use mocha to test me
5
+ * http://visionmedia.github.com/mocha/
6
+ */
7
+var assert = assert || require("assert");
8
+var Base64 = Base64 || require('../base64.js').Base64;
9
+var is = function (a, e, m) {
10
+    return function () {
11
+        assert.equal(a, e, m)
12
+    }
13
+};
14
+
15
+describe('basic', function () {
16
+    it('d',    is(Base64.encode('d'),    'ZA=='));
17
+    it('da',   is(Base64.encode('da'),   'ZGE='));
18
+    it('dan',  is(Base64.encode('dan'),  'ZGFu'));
19
+    it('ZA==', is(Base64.decode('ZA=='), 'd'   ));
20
+    it('ZGE=', is(Base64.decode('ZGE='), 'da'  ));
21
+    it('ZGFu', is(Base64.decode('ZGFu'), 'dan' ));
22
+});
23
+
24
+describe('whitespace', function () {
25
+    it('Z A==', is(Base64.decode('ZA =='), 'd'   ));
26
+    it('ZG E=', is(Base64.decode('ZG E='), 'da'  ));
27
+    it('ZGF u', is(Base64.decode('ZGF u'), 'dan' ));
28
+});
29
+
30
+describe('null', function () {
31
+    it('\\0',       is(Base64.encode('\0'),     'AA=='));
32
+    it('\\0\\0',    is(Base64.encode('\0\0'),   'AAA='));
33
+    it('\\0\\0\\0', is(Base64.encode('\0\0\0'), 'AAAA'));
34
+    it('AA==',      is(Base64.decode('AA=='), '\0'    ));
35
+    it('AAA=',      is(Base64.decode('AAA='), '\0\0'  ));
36
+    it('AAAA',      is(Base64.decode('AAAA'), '\0\0\0'));
37
+});
38
+
39
+describe('Base64', function () {
40
+    it('.encode', is(Base64.encode('小飼弾'), '5bCP6aO85by+'));
41
+    it('.encodeURI', is(Base64.encodeURI('小飼弾'), '5bCP6aO85by-'));
42
+    it('.decode', is(Base64.decode('5bCP6aO85by+'), '小飼弾'));
43
+    it('.decode', is(Base64.decode('5bCP6aO85by-'), '小飼弾'));
44
+});

+ 24
- 0
node_modules/js-base64/.attic/test-moment/es5.js View File

1
+/*
2
+ * $Id: es5.js,v 0.1 2012/08/23 19:43:17 dankogai Exp dankogai $
3
+ *
4
+ * use mocha to test me
5
+ * http://visionmedia.github.com/mocha/
6
+ */
7
+var assert = assert || require("assert");
8
+var Base64 = Base64 || require('../base64.js').Base64;
9
+var is = function (a, e, m) {
10
+    return function () {
11
+        assert.equal(a, e, m)
12
+    }
13
+};
14
+
15
+if ('extendString' in Base64){
16
+    Base64.extendString();
17
+    describe('String', function () {
18
+        it('.toBase64', is('小飼弾'.toBase64(), '5bCP6aO85by+'));
19
+        it('.toBase64', is('小飼弾'.toBase64(true), '5bCP6aO85by-'));
20
+        it('.toBase64URI', is('小飼弾'.toBase64URI(), '5bCP6aO85by-'));
21
+        it('.fromBase64', is('5bCP6aO85by+'.fromBase64(), '小飼弾'));
22
+        it('.fromBase64', is('5bCP6aO85by-'.fromBase64(), '小飼弾'));
23
+    });
24
+}

+ 25
- 0
node_modules/js-base64/.attic/test-moment/es6.js View File

1
+/*
2
+ * $Id: es6.js,v 0.1 2017/11/29 21:43:17 ufolux Exp ufolux $
3
+ *
4
+ * use mocha to test me
5
+ * http://visionmedia.github.com/mocha/
6
+ */
7
+import {Base64} from '../base64'
8
+
9
+var assert = assert || require("assert");
10
+var is = function (a, e, m) {
11
+    return function () {
12
+        assert.equal(a, e, m)
13
+    }
14
+};
15
+
16
+if ('extendString' in Base64){
17
+    Base64.extendString();
18
+    describe('String', function () {
19
+        it('.toBase64', is('小飼弾'.toBase64(), '5bCP6aO85by+'));
20
+        it('.toBase64', is('小飼弾'.toBase64(true), '5bCP6aO85by-'));
21
+        it('.toBase64URI', is('小飼弾'.toBase64URI(), '5bCP6aO85by-'));
22
+        it('.fromBase64', is('5bCP6aO85by+'.fromBase64(), '小飼弾'));
23
+        it('.fromBase64', is('5bCP6aO85by-'.fromBase64(), '小飼弾'));
24
+    });
25
+}

+ 40
- 0
node_modules/js-base64/.attic/test-moment/index.html View File

1
+<html>
2
+  <head>
3
+    <meta charset="utf-8">
4
+    <title>Mocha Tests</title>
5
+    <link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
6
+  </head>
7
+  <body>
8
+    <div id="mocha"></div>
9
+
10
+    <script src="https://cdn.rawgit.com/jquery/jquery/2.1.4/dist/jquery.min.js"></script>
11
+    <script src="https://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>
12
+    <script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
13
+    <script>
14
+      mocha.setup('bdd');
15
+    </script>
16
+    <script src="./moment.js"></script>
17
+    <script src="../base64.js"></script>
18
+    <script>
19
+      var assert = function(expr, msg) {
20
+        if (!expr) throw new Error(msg || 'failed');
21
+      };
22
+      assert.equal = function(a, b, msg) {
23
+        if (a !== b) throw new Error(msg || ('failed : '+a+','+b));
24
+      };
25
+    </script>
26
+    <script src="./dankogai.js"></script>
27
+    <script src="./es5.js"></script>
28
+    <script src="./large.js"></script>
29
+    <script src="./yoshinoya.js"></script>
30
+    <script>
31
+      $(function() {
32
+        mocha.run();
33
+      });
34
+    </script>
35
+</head>
36
+<body>
37
+  $Id: index.html,v 0.3 2017/09/11 08:43:43 dankogai Exp dankogai $
38
+  <div id="mocha"></div>
39
+</body>
40
+</html>

+ 25
- 0
node_modules/js-base64/.attic/test-moment/large.js View File

1
+/*
2
+ * $Id: large.js,v 0.3 2012/08/23 19:14:37 dankogai Exp dankogai $
3
+ *
4
+ * use mocha to test me
5
+ *   http://visionmedia.github.com/mocha/
6
+ */
7
+var assert = assert || require("assert");
8
+var Base64 = Base64 || require('../base64.js').Base64;
9
+var is = function (a, e, m) {
10
+    return function () {
11
+        assert.equal(a, e, m)
12
+    }
13
+};
14
+var seed = function () {
15
+    var a, i;
16
+    for (a = [], i = 0; i < 256; i++) {
17
+        a.push(String.fromCharCode(i));
18
+    }
19
+    return a.join('');
20
+}();
21
+describe('Base64', function () {
22
+    for (var i = 0, str = seed; i < 16; str += str, i++) {
23
+        it(''+str.length, is(Base64.decode(Base64.encode(str)), str));
24
+    }
25
+});

+ 4535
- 0
node_modules/js-base64/.attic/test-moment/moment.js
File diff suppressed because it is too large
View File


+ 19
- 0
node_modules/js-base64/.attic/test-moment/yoshinoya.js View File

1
+/*
2
+ * use mocha to test me
3
+ * http://visionmedia.github.com/mocha/
4
+ */
5
+var assert = assert || require("assert");
6
+var Base64 = Base64 || require('../base64.js').Base64;
7
+var is = function (a, e, m) {
8
+    return function () {
9
+        assert.equal(a, e, m)
10
+    }
11
+};
12
+
13
+describe('Yoshinoya', function () {
14
+    it('.encode', is(Base64.encode('𠮷野家'), '8KCut+mHjuWutg=='));
15
+    it('.encodeURI', is(Base64.encodeURI('𠮷野家'), '8KCut-mHjuWutg'));
16
+    it('.decode', is(Base64.decode('8KCut+mHjuWutg=='), '𠮷野家'));
17
+    it('.decode', is(Base64.decode('8KCut-mHjuWutg'), '𠮷野家'));
18
+    /* it('.decode', is(Base64.decode('7aGC7b636YeO5a62'), '𠮷野家')); */
19
+});

+ 22
- 0
node_modules/neo-async/LICENSE View File

1
+MIT License
2
+
3
+Copyright (c) 2014-2018 Suguru Motegi
4
+Based on Async.js, Copyright Caolan McMahon
5
+
6
+Permission is hereby granted, free of charge, to any person obtaining a copy
7
+of this software and associated documentation files (the "Software"), to deal
8
+in the Software without restriction, including without limitation the rights
9
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+copies of the Software, and to permit persons to whom the Software is
11
+furnished to do so, subject to the following conditions:
12
+
13
+The above copyright notice and this permission notice shall be included in all
14
+copies or substantial portions of the Software.
15
+
16
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+SOFTWARE.

+ 30
- 0
node_modules/node-gyp/node_modules/qs/.editorconfig View File

1
+root = true
2
+
3
+[*]
4
+indent_style = space
5
+indent_size = 4
6
+end_of_line = lf
7
+charset = utf-8
8
+trim_trailing_whitespace = true
9
+insert_final_newline = true
10
+max_line_length = 140
11
+
12
+[test/*]
13
+max_line_length = off
14
+
15
+[*.md]
16
+max_line_length = off
17
+
18
+[*.json]
19
+max_line_length = off
20
+
21
+[Makefile]
22
+max_line_length = off
23
+
24
+[CHANGELOG.md]
25
+indent_style = space
26
+indent_size = 2
27
+
28
+[LICENSE]
29
+indent_size = 2
30
+max_line_length = off

+ 1
- 0
node_modules/node-gyp/node_modules/qs/.eslintignore View File

1
+dist

+ 19
- 0
node_modules/node-gyp/node_modules/qs/.eslintrc View File

1
+{
2
+    "root": true,
3
+
4
+    "extends": "@ljharb",
5
+
6
+    "rules": {
7
+        "complexity": 0,
8
+        "consistent-return": 1,
9
+		"func-name-matching": 0,
10
+        "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
11
+        "indent": [2, 4],
12
+        "max-params": [2, 12],
13
+        "max-statements": [2, 45],
14
+        "no-continue": 1,
15
+        "no-magic-numbers": 0,
16
+        "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
17
+        "operator-linebreak": [2, "before"],
18
+    }
19
+}

+ 226
- 0
node_modules/node-gyp/node_modules/qs/CHANGELOG.md View File

1
+## **6.5.2**
2
+- [Fix] use `safer-buffer` instead of `Buffer` constructor
3
+- [Refactor] utils: `module.exports` one thing, instead of mutating `exports` (#230)
4
+- [Dev Deps] update `browserify`, `eslint`, `iconv-lite`, `safer-buffer`, `tape`, `browserify`
5
+
6
+## **6.5.1**
7
+- [Fix] Fix parsing & compacting very deep objects (#224)
8
+- [Refactor] name utils functions
9
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`
10
+- [Tests] up to `node` `v8.4`; use `nvm install-latest-npm` so newer npm doesn’t break older node
11
+- [Tests] Use precise dist for Node.js 0.6 runtime (#225)
12
+- [Tests] make 0.6 required, now that it’s passing
13
+- [Tests] on `node` `v8.2`; fix npm on node 0.6
14
+
15
+## **6.5.0**
16
+- [New] add `utils.assign`
17
+- [New] pass default encoder/decoder to custom encoder/decoder functions (#206)
18
+- [New] `parse`/`stringify`: add `ignoreQueryPrefix`/`addQueryPrefix` options, respectively (#213)
19
+- [Fix] Handle stringifying empty objects with addQueryPrefix (#217)
20
+- [Fix] do not mutate `options` argument (#207)
21
+- [Refactor] `parse`: cache index to reuse in else statement (#182)
22
+- [Docs] add various badges to readme (#208)
23
+- [Dev Deps] update `eslint`, `browserify`, `iconv-lite`, `tape`
24
+- [Tests] up to `node` `v8.1`, `v7.10`, `v6.11`; npm v4.6 breaks on node < v1; npm v5+ breaks on node < v4
25
+- [Tests] add `editorconfig-tools`
26
+
27
+## **6.4.0**
28
+- [New] `qs.stringify`: add `encodeValuesOnly` option
29
+- [Fix] follow `allowPrototypes` option during merge (#201, #201)
30
+- [Fix] support keys starting with brackets (#202, #200)
31
+- [Fix] chmod a-x
32
+- [Dev Deps] update `eslint`
33
+- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
34
+- [eslint] reduce warnings
35
+
36
+## **6.3.2**
37
+- [Fix] follow `allowPrototypes` option during merge (#201, #200)
38
+- [Dev Deps] update `eslint`
39
+- [Fix] chmod a-x
40
+- [Fix] support keys starting with brackets (#202, #200)
41
+- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
42
+
43
+## **6.3.1**
44
+- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties (thanks, @snyk!)
45
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `iconv-lite`, `qs-iconv`, `tape`
46
+- [Tests] on all node minors; improve test matrix
47
+- [Docs] document stringify option `allowDots` (#195)
48
+- [Docs] add empty object and array values example (#195)
49
+- [Docs] Fix minor inconsistency/typo (#192)
50
+- [Docs] document stringify option `sort` (#191)
51
+- [Refactor] `stringify`: throw faster with an invalid encoder
52
+- [Refactor] remove unnecessary escapes (#184)
53
+- Remove contributing.md, since `qs` is no longer part of `hapi` (#183)
54
+
55
+## **6.3.0**
56
+- [New] Add support for RFC 1738 (#174, #173)
57
+- [New] `stringify`: Add `serializeDate` option to customize Date serialization (#159)
58
+- [Fix] ensure `utils.merge` handles merging two arrays
59
+- [Refactor] only constructors should be capitalized
60
+- [Refactor] capitalized var names are for constructors only
61
+- [Refactor] avoid using a sparse array
62
+- [Robustness] `formats`: cache `String#replace`
63
+- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`; add `safe-publish-latest`
64
+- [Tests] up to `node` `v6.8`, `v4.6`; improve test matrix
65
+- [Tests] flesh out arrayLimit/arrayFormat tests (#107)
66
+- [Tests] skip Object.create tests when null objects are not available
67
+- [Tests] Turn on eslint for test files (#175)
68
+
69
+## **6.2.3**
70
+- [Fix] follow `allowPrototypes` option during merge (#201, #200)
71
+- [Fix] chmod a-x
72
+- [Fix] support keys starting with brackets (#202, #200)
73
+- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
74
+
75
+## **6.2.2**
76
+- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
77
+
78
+## **6.2.1**
79
+- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
80
+- [Refactor] Be explicit and use `Object.prototype.hasOwnProperty.call`
81
+- [Tests] remove `parallelshell` since it does not reliably report failures
82
+- [Tests] up to `node` `v6.3`, `v5.12`
83
+- [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`, `qs-iconv`
84
+
85
+## [**6.2.0**](https://github.com/ljharb/qs/issues?milestone=36&state=closed)
86
+- [New] pass Buffers to the encoder/decoder directly (#161)
87
+- [New] add "encoder" and "decoder" options, for custom param encoding/decoding (#160)
88
+- [Fix] fix compacting of nested sparse arrays (#150)
89
+
90
+## **6.1.2
91
+- [Fix] follow `allowPrototypes` option during merge (#201, #200)
92
+- [Fix] chmod a-x
93
+- [Fix] support keys starting with brackets (#202, #200)
94
+- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
95
+
96
+## **6.1.1**
97
+- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
98
+
99
+## [**6.1.0**](https://github.com/ljharb/qs/issues?milestone=35&state=closed)
100
+- [New] allowDots option for `stringify` (#151)
101
+- [Fix] "sort" option should work at a depth of 3 or more (#151)
102
+- [Fix] Restore `dist` directory; will be removed in v7 (#148)
103
+
104
+## **6.0.4**
105
+- [Fix] follow `allowPrototypes` option during merge (#201, #200)
106
+- [Fix] chmod a-x
107
+- [Fix] support keys starting with brackets (#202, #200)
108
+- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
109
+
110
+## **6.0.3**
111
+- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
112
+- [Fix] Restore `dist` directory; will be removed in v7 (#148)
113
+
114
+## [**6.0.2**](https://github.com/ljharb/qs/issues?milestone=33&state=closed)
115
+- Revert ES6 requirement and restore support for node down to v0.8.
116
+
117
+## [**6.0.1**](https://github.com/ljharb/qs/issues?milestone=32&state=closed)
118
+- [**#127**](https://github.com/ljharb/qs/pull/127) Fix engines definition in package.json
119
+
120
+## [**6.0.0**](https://github.com/ljharb/qs/issues?milestone=31&state=closed)
121
+- [**#124**](https://github.com/ljharb/qs/issues/124) Use ES6 and drop support for node < v4
122
+
123
+## **5.2.1**
124
+- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
125
+
126
+## [**5.2.0**](https://github.com/ljharb/qs/issues?milestone=30&state=closed)
127
+- [**#64**](https://github.com/ljharb/qs/issues/64) Add option to sort object keys in the query string
128
+
129
+## [**5.1.0**](https://github.com/ljharb/qs/issues?milestone=29&state=closed)
130
+- [**#117**](https://github.com/ljharb/qs/issues/117) make URI encoding stringified results optional
131
+- [**#106**](https://github.com/ljharb/qs/issues/106) Add flag `skipNulls` to optionally skip null values in stringify
132
+
133
+## [**5.0.0**](https://github.com/ljharb/qs/issues?milestone=28&state=closed)
134
+- [**#114**](https://github.com/ljharb/qs/issues/114) default allowDots to false
135
+- [**#100**](https://github.com/ljharb/qs/issues/100) include dist to npm
136
+
137
+## [**4.0.0**](https://github.com/ljharb/qs/issues?milestone=26&state=closed)
138
+- [**#98**](https://github.com/ljharb/qs/issues/98) make returning plain objects and allowing prototype overwriting properties optional
139
+
140
+## [**3.1.0**](https://github.com/ljharb/qs/issues?milestone=24&state=closed)
141
+- [**#89**](https://github.com/ljharb/qs/issues/89) Add option to disable "Transform dot notation to bracket notation"
142
+
143
+## [**3.0.0**](https://github.com/ljharb/qs/issues?milestone=23&state=closed)
144
+- [**#80**](https://github.com/ljharb/qs/issues/80) qs.parse silently drops properties
145
+- [**#77**](https://github.com/ljharb/qs/issues/77) Perf boost
146
+- [**#60**](https://github.com/ljharb/qs/issues/60) Add explicit option to disable array parsing
147
+- [**#74**](https://github.com/ljharb/qs/issues/74) Bad parse when turning array into object
148
+- [**#81**](https://github.com/ljharb/qs/issues/81) Add a `filter` option
149
+- [**#68**](https://github.com/ljharb/qs/issues/68) Fixed issue with recursion and passing strings into objects.
150
+- [**#66**](https://github.com/ljharb/qs/issues/66) Add mixed array and object dot notation support Closes: #47
151
+- [**#76**](https://github.com/ljharb/qs/issues/76) RFC 3986
152
+- [**#85**](https://github.com/ljharb/qs/issues/85) No equal sign
153
+- [**#84**](https://github.com/ljharb/qs/issues/84) update license attribute
154
+
155
+## [**2.4.1**](https://github.com/ljharb/qs/issues?milestone=20&state=closed)
156
+- [**#73**](https://github.com/ljharb/qs/issues/73) Property 'hasOwnProperty' of object #<Object> is not a function
157
+
158
+## [**2.4.0**](https://github.com/ljharb/qs/issues?milestone=19&state=closed)
159
+- [**#70**](https://github.com/ljharb/qs/issues/70) Add arrayFormat option
160
+
161
+## [**2.3.3**](https://github.com/ljharb/qs/issues?milestone=18&state=closed)
162
+- [**#59**](https://github.com/ljharb/qs/issues/59) make sure array indexes are >= 0, closes #57
163
+- [**#58**](https://github.com/ljharb/qs/issues/58) make qs usable for browser loader
164
+
165
+## [**2.3.2**](https://github.com/ljharb/qs/issues?milestone=17&state=closed)
166
+- [**#55**](https://github.com/ljharb/qs/issues/55) allow merging a string into an object
167
+
168
+## [**2.3.1**](https://github.com/ljharb/qs/issues?milestone=16&state=closed)
169
+- [**#52**](https://github.com/ljharb/qs/issues/52) Return "undefined" and "false" instead of throwing "TypeError".
170
+
171
+## [**2.3.0**](https://github.com/ljharb/qs/issues?milestone=15&state=closed)
172
+- [**#50**](https://github.com/ljharb/qs/issues/50) add option to omit array indices, closes #46
173
+
174
+## [**2.2.5**](https://github.com/ljharb/qs/issues?milestone=14&state=closed)
175
+- [**#39**](https://github.com/ljharb/qs/issues/39) Is there an alternative to Buffer.isBuffer?
176
+- [**#49**](https://github.com/ljharb/qs/issues/49) refactor utils.merge, fixes #45
177
+- [**#41**](https://github.com/ljharb/qs/issues/41) avoid browserifying Buffer, for #39
178
+
179
+## [**2.2.4**](https://github.com/ljharb/qs/issues?milestone=13&state=closed)
180
+- [**#38**](https://github.com/ljharb/qs/issues/38) how to handle object keys beginning with a number
181
+
182
+## [**2.2.3**](https://github.com/ljharb/qs/issues?milestone=12&state=closed)
183
+- [**#37**](https://github.com/ljharb/qs/issues/37) parser discards first empty value in array
184
+- [**#36**](https://github.com/ljharb/qs/issues/36) Update to lab 4.x
185
+
186
+## [**2.2.2**](https://github.com/ljharb/qs/issues?milestone=11&state=closed)
187
+- [**#33**](https://github.com/ljharb/qs/issues/33) Error when plain object in a value
188
+- [**#34**](https://github.com/ljharb/qs/issues/34) use Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty
189
+- [**#24**](https://github.com/ljharb/qs/issues/24) Changelog? Semver?
190
+
191
+## [**2.2.1**](https://github.com/ljharb/qs/issues?milestone=10&state=closed)
192
+- [**#32**](https://github.com/ljharb/qs/issues/32) account for circular references properly, closes #31
193
+- [**#31**](https://github.com/ljharb/qs/issues/31) qs.parse stackoverflow on circular objects
194
+
195
+## [**2.2.0**](https://github.com/ljharb/qs/issues?milestone=9&state=closed)
196
+- [**#26**](https://github.com/ljharb/qs/issues/26) Don't use Buffer global if it's not present
197
+- [**#30**](https://github.com/ljharb/qs/issues/30) Bug when merging non-object values into arrays
198
+- [**#29**](https://github.com/ljharb/qs/issues/29) Don't call Utils.clone at the top of Utils.merge
199
+- [**#23**](https://github.com/ljharb/qs/issues/23) Ability to not limit parameters?
200
+
201
+## [**2.1.0**](https://github.com/ljharb/qs/issues?milestone=8&state=closed)
202
+- [**#22**](https://github.com/ljharb/qs/issues/22) Enable using a RegExp as delimiter
203
+
204
+## [**2.0.0**](https://github.com/ljharb/qs/issues?milestone=7&state=closed)
205
+- [**#18**](https://github.com/ljharb/qs/issues/18) Why is there arrayLimit?
206
+- [**#20**](https://github.com/ljharb/qs/issues/20) Configurable parametersLimit
207
+- [**#21**](https://github.com/ljharb/qs/issues/21) make all limits optional, for #18, for #20
208
+
209
+## [**1.2.2**](https://github.com/ljharb/qs/issues?milestone=6&state=closed)
210
+- [**#19**](https://github.com/ljharb/qs/issues/19) Don't overwrite null values
211
+
212
+## [**1.2.1**](https://github.com/ljharb/qs/issues?milestone=5&state=closed)
213
+- [**#16**](https://github.com/ljharb/qs/issues/16) ignore non-string delimiters
214
+- [**#15**](https://github.com/ljharb/qs/issues/15) Close code block
215
+
216
+## [**1.2.0**](https://github.com/ljharb/qs/issues?milestone=4&state=closed)
217
+- [**#12**](https://github.com/ljharb/qs/issues/12) Add optional delim argument
218
+- [**#13**](https://github.com/ljharb/qs/issues/13) fix #11: flattened keys in array are now correctly parsed
219
+
220
+## [**1.1.0**](https://github.com/ljharb/qs/issues?milestone=3&state=closed)
221
+- [**#7**](https://github.com/ljharb/qs/issues/7) Empty values of a POST array disappear after being submitted
222
+- [**#9**](https://github.com/ljharb/qs/issues/9) Should not omit equals signs (=) when value is null
223
+- [**#6**](https://github.com/ljharb/qs/issues/6) Minor grammar fix in README
224
+
225
+## [**1.0.2**](https://github.com/ljharb/qs/issues?milestone=2&state=closed)
226
+- [**#5**](https://github.com/ljharb/qs/issues/5) array holes incorrectly copied into object on large index

+ 28
- 0
node_modules/node-gyp/node_modules/qs/LICENSE View File

1
+Copyright (c) 2014 Nathan LaFreniere and other contributors.
2
+All rights reserved.
3
+
4
+Redistribution and use in source and binary forms, with or without
5
+modification, are permitted provided that the following conditions are met:
6
+    * Redistributions of source code must retain the above copyright
7
+      notice, this list of conditions and the following disclaimer.
8
+    * Redistributions in binary form must reproduce the above copyright
9
+      notice, this list of conditions and the following disclaimer in the
10
+      documentation and/or other materials provided with the distribution.
11
+    * The names of any contributors may not be used to endorse or promote
12
+      products derived from this software without specific prior written
13
+      permission.
14
+
15
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
19
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
+
26
+                                  *   *   *
27
+
28
+The complete list of contributors can be found at: https://github.com/hapijs/qs/graphs/contributors

+ 475
- 0
node_modules/node-gyp/node_modules/qs/README.md View File

1
+# qs <sup>[![Version Badge][2]][1]</sup>
2
+
3
+[![Build Status][3]][4]
4
+[![dependency status][5]][6]
5
+[![dev dependency status][7]][8]
6
+[![License][license-image]][license-url]
7
+[![Downloads][downloads-image]][downloads-url]
8
+
9
+[![npm badge][11]][1]
10
+
11
+A querystring parsing and stringifying library with some added security.
12
+
13
+Lead Maintainer: [Jordan Harband](https://github.com/ljharb)
14
+
15
+The **qs** module was originally created and maintained by [TJ Holowaychuk](https://github.com/visionmedia/node-querystring).
16
+
17
+## Usage
18
+
19
+```javascript
20
+var qs = require('qs');
21
+var assert = require('assert');
22
+
23
+var obj = qs.parse('a=c');
24
+assert.deepEqual(obj, { a: 'c' });
25
+
26
+var str = qs.stringify(obj);
27
+assert.equal(str, 'a=c');
28
+```
29
+
30
+### Parsing Objects
31
+
32
+[](#preventEval)
33
+```javascript
34
+qs.parse(string, [options]);
35
+```
36
+
37
+**qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`.
38
+For example, the string `'foo[bar]=baz'` converts to:
39
+
40
+```javascript
41
+assert.deepEqual(qs.parse('foo[bar]=baz'), {
42
+    foo: {
43
+        bar: 'baz'
44
+    }
45
+});
46
+```
47
+
48
+When using the `plainObjects` option the parsed value is returned as a null object, created via `Object.create(null)` and as such you should be aware that prototype methods will not exist on it and a user may set those names to whatever value they like:
49
+
50
+```javascript
51
+var nullObject = qs.parse('a[hasOwnProperty]=b', { plainObjects: true });
52
+assert.deepEqual(nullObject, { a: { hasOwnProperty: 'b' } });
53
+```
54
+
55
+By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use `plainObjects` as mentioned above, or set `allowPrototypes` to `true` which will allow user input to overwrite those properties. *WARNING* It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. Always be careful with this option.
56
+
57
+```javascript
58
+var protoObject = qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true });
59
+assert.deepEqual(protoObject, { a: { hasOwnProperty: 'b' } });
60
+```
61
+
62
+URI encoded strings work too:
63
+
64
+```javascript
65
+assert.deepEqual(qs.parse('a%5Bb%5D=c'), {
66
+    a: { b: 'c' }
67
+});
68
+```
69
+
70
+You can also nest your objects, like `'foo[bar][baz]=foobarbaz'`:
71
+
72
+```javascript
73
+assert.deepEqual(qs.parse('foo[bar][baz]=foobarbaz'), {
74
+    foo: {
75
+        bar: {
76
+            baz: 'foobarbaz'
77
+        }
78
+    }
79
+});
80
+```
81
+
82
+By default, when nesting objects **qs** will only parse up to 5 children deep. This means if you attempt to parse a string like
83
+`'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be:
84
+
85
+```javascript
86
+var expected = {
87
+    a: {
88
+        b: {
89
+            c: {
90
+                d: {
91
+                    e: {
92
+                        f: {
93
+                            '[g][h][i]': 'j'
94
+                        }
95
+                    }
96
+                }
97
+            }
98
+        }
99
+    }
100
+};
101
+var string = 'a[b][c][d][e][f][g][h][i]=j';
102
+assert.deepEqual(qs.parse(string), expected);
103
+```
104
+
105
+This depth can be overridden by passing a `depth` option to `qs.parse(string, [options])`:
106
+
107
+```javascript
108
+var deep = qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 });
109
+assert.deepEqual(deep, { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } });
110
+```
111
+
112
+The depth limit helps mitigate abuse when **qs** is used to parse user input, and it is recommended to keep it a reasonably small number.
113
+
114
+For similar reasons, by default **qs** will only parse up to 1000 parameters. This can be overridden by passing a `parameterLimit` option:
115
+
116
+```javascript
117
+var limited = qs.parse('a=b&c=d', { parameterLimit: 1 });
118
+assert.deepEqual(limited, { a: 'b' });
119
+```
120
+
121
+To bypass the leading question mark, use `ignoreQueryPrefix`:
122
+
123
+```javascript
124
+var prefixed = qs.parse('?a=b&c=d', { ignoreQueryPrefix: true });
125
+assert.deepEqual(prefixed, { a: 'b', c: 'd' });
126
+```
127
+
128
+An optional delimiter can also be passed:
129
+
130
+```javascript
131
+var delimited = qs.parse('a=b;c=d', { delimiter: ';' });
132
+assert.deepEqual(delimited, { a: 'b', c: 'd' });
133
+```
134
+
135
+Delimiters can be a regular expression too:
136
+
137
+```javascript
138
+var regexed = qs.parse('a=b;c=d,e=f', { delimiter: /[;,]/ });
139
+assert.deepEqual(regexed, { a: 'b', c: 'd', e: 'f' });
140
+```
141
+
142
+Option `allowDots` can be used to enable dot notation:
143
+
144
+```javascript
145
+var withDots = qs.parse('a.b=c', { allowDots: true });
146
+assert.deepEqual(withDots, { a: { b: 'c' } });
147
+```
148
+
149
+### Parsing Arrays
150
+
151
+**qs** can also parse arrays using a similar `[]` notation:
152
+
153
+```javascript
154
+var withArray = qs.parse('a[]=b&a[]=c');
155
+assert.deepEqual(withArray, { a: ['b', 'c'] });
156
+```
157
+
158
+You may specify an index as well:
159
+
160
+```javascript
161
+var withIndexes = qs.parse('a[1]=c&a[0]=b');
162
+assert.deepEqual(withIndexes, { a: ['b', 'c'] });
163
+```
164
+
165
+Note that the only difference between an index in an array and a key in an object is that the value between the brackets must be a number
166
+to create an array. When creating arrays with specific indices, **qs** will compact a sparse array to only the existing values preserving
167
+their order:
168
+
169
+```javascript
170
+var noSparse = qs.parse('a[1]=b&a[15]=c');
171
+assert.deepEqual(noSparse, { a: ['b', 'c'] });
172
+```
173
+
174
+Note that an empty string is also a value, and will be preserved:
175
+
176
+```javascript
177
+var withEmptyString = qs.parse('a[]=&a[]=b');
178
+assert.deepEqual(withEmptyString, { a: ['', 'b'] });
179
+
180
+var withIndexedEmptyString = qs.parse('a[0]=b&a[1]=&a[2]=c');
181
+assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] });
182
+```
183
+
184
+**qs** will also limit specifying indices in an array to a maximum index of `20`. Any array members with an index of greater than `20` will
185
+instead be converted to an object with the index as the key:
186
+
187
+```javascript
188
+var withMaxIndex = qs.parse('a[100]=b');
189
+assert.deepEqual(withMaxIndex, { a: { '100': 'b' } });
190
+```
191
+
192
+This limit can be overridden by passing an `arrayLimit` option:
193
+
194
+```javascript
195
+var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 });
196
+assert.deepEqual(withArrayLimit, { a: { '1': 'b' } });
197
+```
198
+
199
+To disable array parsing entirely, set `parseArrays` to `false`.
200
+
201
+```javascript
202
+var noParsingArrays = qs.parse('a[]=b', { parseArrays: false });
203
+assert.deepEqual(noParsingArrays, { a: { '0': 'b' } });
204
+```
205
+
206
+If you mix notations, **qs** will merge the two items into an object:
207
+
208
+```javascript
209
+var mixedNotation = qs.parse('a[0]=b&a[b]=c');
210
+assert.deepEqual(mixedNotation, { a: { '0': 'b', b: 'c' } });
211
+```
212
+
213
+You can also create arrays of objects:
214
+
215
+```javascript
216
+var arraysOfObjects = qs.parse('a[][b]=c');
217
+assert.deepEqual(arraysOfObjects, { a: [{ b: 'c' }] });
218
+```
219
+
220
+### Stringifying
221
+
222
+[](#preventEval)
223
+```javascript
224
+qs.stringify(object, [options]);
225
+```
226
+
227
+When stringifying, **qs** by default URI encodes output. Objects are stringified as you would expect:
228
+
229
+```javascript
230
+assert.equal(qs.stringify({ a: 'b' }), 'a=b');
231
+assert.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
232
+```
233
+
234
+This encoding can be disabled by setting the `encode` option to `false`:
235
+
236
+```javascript
237
+var unencoded = qs.stringify({ a: { b: 'c' } }, { encode: false });
238
+assert.equal(unencoded, 'a[b]=c');
239
+```
240
+
241
+Encoding can be disabled for keys by setting the `encodeValuesOnly` option to `true`:
242
+```javascript
243
+var encodedValues = qs.stringify(
244
+    { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] },
245
+    { encodeValuesOnly: true }
246
+);
247
+assert.equal(encodedValues,'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h');
248
+```
249
+
250
+This encoding can also be replaced by a custom encoding method set as `encoder` option:
251
+
252
+```javascript
253
+var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str) {
254
+    // Passed in values `a`, `b`, `c`
255
+    return // Return encoded string
256
+}})
257
+```
258
+
259
+_(Note: the `encoder` option does not apply if `encode` is `false`)_
260
+
261
+Analogue to the `encoder` there is a `decoder` option for `parse` to override decoding of properties and values:
262
+
263
+```javascript
264
+var decoded = qs.parse('x=z', { decoder: function (str) {
265
+    // Passed in values `x`, `z`
266
+    return // Return decoded string
267
+}})
268
+```
269
+
270
+Examples beyond this point will be shown as though the output is not URI encoded for clarity. Please note that the return values in these cases *will* be URI encoded during real usage.
271
+
272
+When arrays are stringified, by default they are given explicit indices:
273
+
274
+```javascript
275
+qs.stringify({ a: ['b', 'c', 'd'] });
276
+// 'a[0]=b&a[1]=c&a[2]=d'
277
+```
278
+
279
+You may override this by setting the `indices` option to `false`:
280
+
281
+```javascript
282
+qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false });
283
+// 'a=b&a=c&a=d'
284
+```
285
+
286
+You may use the `arrayFormat` option to specify the format of the output array:
287
+
288
+```javascript
289
+qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' })
290
+// 'a[0]=b&a[1]=c'
291
+qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' })
292
+// 'a[]=b&a[]=c'
293
+qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' })
294
+// 'a=b&a=c'
295
+```
296
+
297
+When objects are stringified, by default they use bracket notation:
298
+
299
+```javascript
300
+qs.stringify({ a: { b: { c: 'd', e: 'f' } } });
301
+// 'a[b][c]=d&a[b][e]=f'
302
+```
303
+
304
+You may override this to use dot notation by setting the `allowDots` option to `true`:
305
+
306
+```javascript
307
+qs.stringify({ a: { b: { c: 'd', e: 'f' } } }, { allowDots: true });
308
+// 'a.b.c=d&a.b.e=f'
309
+```
310
+
311
+Empty strings and null values will omit the value, but the equals sign (=) remains in place:
312
+
313
+```javascript
314
+assert.equal(qs.stringify({ a: '' }), 'a=');
315
+```
316
+
317
+Key with no values (such as an empty object or array) will return nothing:
318
+
319
+```javascript
320
+assert.equal(qs.stringify({ a: [] }), '');
321
+assert.equal(qs.stringify({ a: {} }), '');
322
+assert.equal(qs.stringify({ a: [{}] }), '');
323
+assert.equal(qs.stringify({ a: { b: []} }), '');
324
+assert.equal(qs.stringify({ a: { b: {}} }), '');
325
+```
326
+
327
+Properties that are set to `undefined` will be omitted entirely:
328
+
329
+```javascript
330
+assert.equal(qs.stringify({ a: null, b: undefined }), 'a=');
331
+```
332
+
333
+The query string may optionally be prepended with a question mark:
334
+
335
+```javascript
336
+assert.equal(qs.stringify({ a: 'b', c: 'd' }, { addQueryPrefix: true }), '?a=b&c=d');
337
+```
338
+
339
+The delimiter may be overridden with stringify as well:
340
+
341
+```javascript
342
+assert.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d');
343
+```
344
+
345
+If you only want to override the serialization of `Date` objects, you can provide a `serializeDate` option:
346
+
347
+```javascript
348
+var date = new Date(7);
349
+assert.equal(qs.stringify({ a: date }), 'a=1970-01-01T00:00:00.007Z'.replace(/:/g, '%3A'));
350
+assert.equal(
351
+    qs.stringify({ a: date }, { serializeDate: function (d) { return d.getTime(); } }),
352
+    'a=7'
353
+);
354
+```
355
+
356
+You may use the `sort` option to affect the order of parameter keys:
357
+
358
+```javascript
359
+function alphabeticalSort(a, b) {
360
+    return a.localeCompare(b);
361
+}
362
+assert.equal(qs.stringify({ a: 'c', z: 'y', b : 'f' }, { sort: alphabeticalSort }), 'a=c&b=f&z=y');
363
+```
364
+
365
+Finally, you can use the `filter` option to restrict which keys will be included in the stringified output.
366
+If you pass a function, it will be called for each key to obtain the replacement value. Otherwise, if you
367
+pass an array, it will be used to select properties and array indices for stringification:
368
+
369
+```javascript
370
+function filterFunc(prefix, value) {
371
+    if (prefix == 'b') {
372
+        // Return an `undefined` value to omit a property.
373
+        return;
374
+    }
375
+    if (prefix == 'e[f]') {
376
+        return value.getTime();
377
+    }
378
+    if (prefix == 'e[g][0]') {
379
+        return value * 2;
380
+    }
381
+    return value;
382
+}
383
+qs.stringify({ a: 'b', c: 'd', e: { f: new Date(123), g: [2] } }, { filter: filterFunc });
384
+// 'a=b&c=d&e[f]=123&e[g][0]=4'
385
+qs.stringify({ a: 'b', c: 'd', e: 'f' }, { filter: ['a', 'e'] });
386
+// 'a=b&e=f'
387
+qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] });
388
+// 'a[0]=b&a[2]=d'
389
+```
390
+
391
+### Handling of `null` values
392
+
393
+By default, `null` values are treated like empty strings:
394
+
395
+```javascript
396
+var withNull = qs.stringify({ a: null, b: '' });
397
+assert.equal(withNull, 'a=&b=');
398
+```
399
+
400
+Parsing does not distinguish between parameters with and without equal signs. Both are converted to empty strings.
401
+
402
+```javascript
403
+var equalsInsensitive = qs.parse('a&b=');
404
+assert.deepEqual(equalsInsensitive, { a: '', b: '' });
405
+```
406
+
407
+To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null`
408
+values have no `=` sign:
409
+
410
+```javascript
411
+var strictNull = qs.stringify({ a: null, b: '' }, { strictNullHandling: true });
412
+assert.equal(strictNull, 'a&b=');
413
+```
414
+
415
+To parse values without `=` back to `null` use the `strictNullHandling` flag:
416
+
417
+```javascript
418
+var parsedStrictNull = qs.parse('a&b=', { strictNullHandling: true });
419
+assert.deepEqual(parsedStrictNull, { a: null, b: '' });
420
+```
421
+
422
+To completely skip rendering keys with `null` values, use the `skipNulls` flag:
423
+
424
+```javascript
425
+var nullsSkipped = qs.stringify({ a: 'b', c: null}, { skipNulls: true });
426
+assert.equal(nullsSkipped, 'a=b');
427
+```
428
+
429
+### Dealing with special character sets
430
+
431
+By default the encoding and decoding of characters is done in `utf-8`. If you
432
+wish to encode querystrings to a different character set (i.e.
433
+[Shift JIS](https://en.wikipedia.org/wiki/Shift_JIS)) you can use the
434
+[`qs-iconv`](https://github.com/martinheidegger/qs-iconv) library:
435
+
436
+```javascript
437
+var encoder = require('qs-iconv/encoder')('shift_jis');
438
+var shiftJISEncoded = qs.stringify({ a: 'こんにちは!' }, { encoder: encoder });
439
+assert.equal(shiftJISEncoded, 'a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I');
440
+```
441
+
442
+This also works for decoding of query strings:
443
+
444
+```javascript
445
+var decoder = require('qs-iconv/decoder')('shift_jis');
446
+var obj = qs.parse('a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I', { decoder: decoder });
447
+assert.deepEqual(obj, { a: 'こんにちは!' });
448
+```
449
+
450
+### RFC 3986 and RFC 1738 space encoding
451
+
452
+RFC3986 used as default option and encodes ' ' to *%20* which is backward compatible.
453
+In the same time, output can be stringified as per RFC1738 with ' ' equal to '+'.
454
+
455
+```
456
+assert.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
457
+assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c');
458
+assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c');
459
+```
460
+
461
+[1]: https://npmjs.org/package/qs
462
+[2]: http://versionbadg.es/ljharb/qs.svg
463
+[3]: https://api.travis-ci.org/ljharb/qs.svg
464
+[4]: https://travis-ci.org/ljharb/qs
465
+[5]: https://david-dm.org/ljharb/qs.svg
466
+[6]: https://david-dm.org/ljharb/qs
467
+[7]: https://david-dm.org/ljharb/qs/dev-status.svg
468
+[8]: https://david-dm.org/ljharb/qs?type=dev
469
+[9]: https://ci.testling.com/ljharb/qs.png
470
+[10]: https://ci.testling.com/ljharb/qs
471
+[11]: https://nodei.co/npm/qs.png?downloads=true&stars=true
472
+[license-image]: http://img.shields.io/npm/l/qs.svg
473
+[license-url]: LICENSE
474
+[downloads-image]: http://img.shields.io/npm/dm/qs.svg
475
+[downloads-url]: http://npm-stat.com/charts.html?package=qs

+ 638
- 0
node_modules/node-gyp/node_modules/qs/dist/qs.js View File

1
+(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
+'use strict';
3
+
4
+var replace = String.prototype.replace;
5
+var percentTwenties = /%20/g;
6
+
7
+module.exports = {
8
+    'default': 'RFC3986',
9
+    formatters: {
10
+        RFC1738: function (value) {
11
+            return replace.call(value, percentTwenties, '+');
12
+        },
13
+        RFC3986: function (value) {
14
+            return value;
15
+        }
16
+    },
17
+    RFC1738: 'RFC1738',
18
+    RFC3986: 'RFC3986'
19
+};
20
+
21
+},{}],2:[function(require,module,exports){
22
+'use strict';
23
+
24
+var stringify = require('./stringify');
25
+var parse = require('./parse');
26
+var formats = require('./formats');
27
+
28
+module.exports = {
29
+    formats: formats,
30
+    parse: parse,
31
+    stringify: stringify
32
+};
33
+
34
+},{"./formats":1,"./parse":3,"./stringify":4}],3:[function(require,module,exports){
35
+'use strict';
36
+
37
+var utils = require('./utils');
38
+
39
+var has = Object.prototype.hasOwnProperty;
40
+
41
+var defaults = {
42
+    allowDots: false,
43
+    allowPrototypes: false,
44
+    arrayLimit: 20,
45
+    decoder: utils.decode,
46
+    delimiter: '&',
47
+    depth: 5,
48
+    parameterLimit: 1000,
49
+    plainObjects: false,
50
+    strictNullHandling: false
51
+};
52
+
53
+var parseValues = function parseQueryStringValues(str, options) {
54
+    var obj = {};
55
+    var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
56
+    var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
57
+    var parts = cleanStr.split(options.delimiter, limit);
58
+
59
+    for (var i = 0; i < parts.length; ++i) {
60
+        var part = parts[i];
61
+
62
+        var bracketEqualsPos = part.indexOf(']=');
63
+        var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
64
+
65
+        var key, val;
66
+        if (pos === -1) {
67
+            key = options.decoder(part, defaults.decoder);
68
+            val = options.strictNullHandling ? null : '';
69
+        } else {
70
+            key = options.decoder(part.slice(0, pos), defaults.decoder);
71
+            val = options.decoder(part.slice(pos + 1), defaults.decoder);
72
+        }
73
+        if (has.call(obj, key)) {
74
+            obj[key] = [].concat(obj[key]).concat(val);
75
+        } else {
76
+            obj[key] = val;
77
+        }
78
+    }
79
+
80
+    return obj;
81
+};
82
+
83
+var parseObject = function (chain, val, options) {
84
+    var leaf = val;
85
+
86
+    for (var i = chain.length - 1; i >= 0; --i) {
87
+        var obj;
88
+        var root = chain[i];
89
+
90
+        if (root === '[]') {
91
+            obj = [];
92
+            obj = obj.concat(leaf);
93
+        } else {
94
+            obj = options.plainObjects ? Object.create(null) : {};
95
+            var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
96
+            var index = parseInt(cleanRoot, 10);
97
+            if (
98
+                !isNaN(index)
99
+                && root !== cleanRoot
100
+                && String(index) === cleanRoot
101
+                && index >= 0
102
+                && (options.parseArrays && index <= options.arrayLimit)
103
+            ) {
104
+                obj = [];
105
+                obj[index] = leaf;
106
+            } else {
107
+                obj[cleanRoot] = leaf;
108
+            }
109
+        }
110
+
111
+        leaf = obj;
112
+    }
113
+
114
+    return leaf;
115
+};
116
+
117
+var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
118
+    if (!givenKey) {
119
+        return;
120
+    }
121
+
122
+    // Transform dot notation to bracket notation
123
+    var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
124
+
125
+    // The regex chunks
126
+
127
+    var brackets = /(\[[^[\]]*])/;
128
+    var child = /(\[[^[\]]*])/g;
129
+
130
+    // Get the parent
131
+
132
+    var segment = brackets.exec(key);
133
+    var parent = segment ? key.slice(0, segment.index) : key;
134
+
135
+    // Stash the parent if it exists
136
+
137
+    var keys = [];
138
+    if (parent) {
139
+        // If we aren't using plain objects, optionally prefix keys
140
+        // that would overwrite object prototype properties
141
+        if (!options.plainObjects && has.call(Object.prototype, parent)) {
142
+            if (!options.allowPrototypes) {
143
+                return;
144
+            }
145
+        }
146
+
147
+        keys.push(parent);
148
+    }
149
+
150
+    // Loop through children appending to the array until we hit depth
151
+
152
+    var i = 0;
153
+    while ((segment = child.exec(key)) !== null && i < options.depth) {
154
+        i += 1;
155
+        if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
156
+            if (!options.allowPrototypes) {
157
+                return;
158
+            }
159
+        }
160
+        keys.push(segment[1]);
161
+    }
162
+
163
+    // If there's a remainder, just add whatever is left
164
+
165
+    if (segment) {
166
+        keys.push('[' + key.slice(segment.index) + ']');
167
+    }
168
+
169
+    return parseObject(keys, val, options);
170
+};
171
+
172
+module.exports = function (str, opts) {
173
+    var options = opts ? utils.assign({}, opts) : {};
174
+
175
+    if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') {
176
+        throw new TypeError('Decoder has to be a function.');
177
+    }
178
+
179
+    options.ignoreQueryPrefix = options.ignoreQueryPrefix === true;
180
+    options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter;
181
+    options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth;
182
+    options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit;
183
+    options.parseArrays = options.parseArrays !== false;
184
+    options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder;
185
+    options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots;
186
+    options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects;
187
+    options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes;
188
+    options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit;
189
+    options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;
190
+
191
+    if (str === '' || str === null || typeof str === 'undefined') {
192
+        return options.plainObjects ? Object.create(null) : {};
193
+    }
194
+
195
+    var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
196
+    var obj = options.plainObjects ? Object.create(null) : {};
197
+
198
+    // Iterate over the keys and setup the new object
199
+
200
+    var keys = Object.keys(tempObj);
201
+    for (var i = 0; i < keys.length; ++i) {
202
+        var key = keys[i];
203
+        var newObj = parseKeys(key, tempObj[key], options);
204
+        obj = utils.merge(obj, newObj, options);
205
+    }
206
+
207
+    return utils.compact(obj);
208
+};
209
+
210
+},{"./utils":5}],4:[function(require,module,exports){
211
+'use strict';
212
+
213
+var utils = require('./utils');
214
+var formats = require('./formats');
215
+
216
+var arrayPrefixGenerators = {
217
+    brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
218
+        return prefix + '[]';
219
+    },
220
+    indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
221
+        return prefix + '[' + key + ']';
222
+    },
223
+    repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
224
+        return prefix;
225
+    }
226
+};
227
+
228
+var toISO = Date.prototype.toISOString;
229
+
230
+var defaults = {
231
+    delimiter: '&',
232
+    encode: true,
233
+    encoder: utils.encode,
234
+    encodeValuesOnly: false,
235
+    serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
236
+        return toISO.call(date);
237
+    },
238
+    skipNulls: false,
239
+    strictNullHandling: false
240
+};
241
+
242
+var stringify = function stringify( // eslint-disable-line func-name-matching
243
+    object,
244
+    prefix,
245
+    generateArrayPrefix,
246
+    strictNullHandling,
247
+    skipNulls,
248
+    encoder,
249
+    filter,
250
+    sort,
251
+    allowDots,
252
+    serializeDate,
253
+    formatter,
254
+    encodeValuesOnly
255
+) {
256
+    var obj = object;
257
+    if (typeof filter === 'function') {
258
+        obj = filter(prefix, obj);
259
+    } else if (obj instanceof Date) {
260
+        obj = serializeDate(obj);
261
+    } else if (obj === null) {
262
+        if (strictNullHandling) {
263
+            return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix;
264
+        }
265
+
266
+        obj = '';
267
+    }
268
+
269
+    if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {
270
+        if (encoder) {
271
+            var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder);
272
+            return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder))];
273
+        }
274
+        return [formatter(prefix) + '=' + formatter(String(obj))];
275
+    }
276
+
277
+    var values = [];
278
+
279
+    if (typeof obj === 'undefined') {
280
+        return values;
281
+    }
282
+
283
+    var objKeys;
284
+    if (Array.isArray(filter)) {
285
+        objKeys = filter;
286
+    } else {
287
+        var keys = Object.keys(obj);
288
+        objKeys = sort ? keys.sort(sort) : keys;
289
+    }
290
+
291
+    for (var i = 0; i < objKeys.length; ++i) {
292
+        var key = objKeys[i];
293
+
294
+        if (skipNulls && obj[key] === null) {
295
+            continue;
296
+        }
297
+
298
+        if (Array.isArray(obj)) {
299
+            values = values.concat(stringify(
300
+                obj[key],
301
+                generateArrayPrefix(prefix, key),
302
+                generateArrayPrefix,
303
+                strictNullHandling,
304
+                skipNulls,
305
+                encoder,
306
+                filter,
307
+                sort,
308
+                allowDots,
309
+                serializeDate,
310
+                formatter,
311
+                encodeValuesOnly
312
+            ));
313
+        } else {
314
+            values = values.concat(stringify(
315
+                obj[key],
316
+                prefix + (allowDots ? '.' + key : '[' + key + ']'),
317
+                generateArrayPrefix,
318
+                strictNullHandling,
319
+                skipNulls,
320
+                encoder,
321
+                filter,
322
+                sort,
323
+                allowDots,
324
+                serializeDate,
325
+                formatter,
326
+                encodeValuesOnly
327
+            ));
328
+        }
329
+    }
330
+
331
+    return values;
332
+};
333
+
334
+module.exports = function (object, opts) {
335
+    var obj = object;
336
+    var options = opts ? utils.assign({}, opts) : {};
337
+
338
+    if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {
339
+        throw new TypeError('Encoder has to be a function.');
340
+    }
341
+
342
+    var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter;
343
+    var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;
344
+    var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls;
345
+    var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode;
346
+    var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder;
347
+    var sort = typeof options.sort === 'function' ? options.sort : null;
348
+    var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots;
349
+    var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate;
350
+    var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly;
351
+    if (typeof options.format === 'undefined') {
352
+        options.format = formats['default'];
353
+    } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) {
354
+        throw new TypeError('Unknown format option provided.');
355
+    }
356
+    var formatter = formats.formatters[options.format];
357
+    var objKeys;
358
+    var filter;
359
+
360
+    if (typeof options.filter === 'function') {
361
+        filter = options.filter;
362
+        obj = filter('', obj);
363
+    } else if (Array.isArray(options.filter)) {
364
+        filter = options.filter;
365
+        objKeys = filter;
366
+    }
367
+
368
+    var keys = [];
369
+
370
+    if (typeof obj !== 'object' || obj === null) {
371
+        return '';
372
+    }
373
+
374
+    var arrayFormat;
375
+    if (options.arrayFormat in arrayPrefixGenerators) {
376
+        arrayFormat = options.arrayFormat;
377
+    } else if ('indices' in options) {
378
+        arrayFormat = options.indices ? 'indices' : 'repeat';
379
+    } else {
380
+        arrayFormat = 'indices';
381
+    }
382
+
383
+    var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
384
+
385
+    if (!objKeys) {
386
+        objKeys = Object.keys(obj);
387
+    }
388
+
389
+    if (sort) {
390
+        objKeys.sort(sort);
391
+    }
392
+
393
+    for (var i = 0; i < objKeys.length; ++i) {
394
+        var key = objKeys[i];
395
+
396
+        if (skipNulls && obj[key] === null) {
397
+            continue;
398
+        }
399
+
400
+        keys = keys.concat(stringify(
401
+            obj[key],
402
+            key,
403
+            generateArrayPrefix,
404
+            strictNullHandling,
405
+            skipNulls,
406
+            encode ? encoder : null,
407
+            filter,
408
+            sort,
409
+            allowDots,
410
+            serializeDate,
411
+            formatter,
412
+            encodeValuesOnly
413
+        ));
414
+    }
415
+
416
+    var joined = keys.join(delimiter);
417
+    var prefix = options.addQueryPrefix === true ? '?' : '';
418
+
419
+    return joined.length > 0 ? prefix + joined : '';
420
+};
421
+
422
+},{"./formats":1,"./utils":5}],5:[function(require,module,exports){
423
+'use strict';
424
+
425
+var has = Object.prototype.hasOwnProperty;
426
+
427
+var hexTable = (function () {
428
+    var array = [];
429
+    for (var i = 0; i < 256; ++i) {
430
+        array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
431
+    }
432
+
433
+    return array;
434
+}());
435
+
436
+var compactQueue = function compactQueue(queue) {
437
+    var obj;
438
+
439
+    while (queue.length) {
440
+        var item = queue.pop();
441
+        obj = item.obj[item.prop];
442
+
443
+        if (Array.isArray(obj)) {
444
+            var compacted = [];
445
+
446
+            for (var j = 0; j < obj.length; ++j) {
447
+                if (typeof obj[j] !== 'undefined') {
448
+                    compacted.push(obj[j]);
449
+                }
450
+            }
451
+
452
+            item.obj[item.prop] = compacted;
453
+        }
454
+    }
455
+
456
+    return obj;
457
+};
458
+
459
+var arrayToObject = function arrayToObject(source, options) {
460
+    var obj = options && options.plainObjects ? Object.create(null) : {};
461
+    for (var i = 0; i < source.length; ++i) {
462
+        if (typeof source[i] !== 'undefined') {
463
+            obj[i] = source[i];
464
+        }
465
+    }
466
+
467
+    return obj;
468
+};
469
+
470
+var merge = function merge(target, source, options) {
471
+    if (!source) {
472
+        return target;
473
+    }
474
+
475
+    if (typeof source !== 'object') {
476
+        if (Array.isArray(target)) {
477
+            target.push(source);
478
+        } else if (typeof target === 'object') {
479
+            if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {
480
+                target[source] = true;
481
+            }
482
+        } else {
483
+            return [target, source];
484
+        }
485
+
486
+        return target;
487
+    }
488
+
489
+    if (typeof target !== 'object') {
490
+        return [target].concat(source);
491
+    }
492
+
493
+    var mergeTarget = target;
494
+    if (Array.isArray(target) && !Array.isArray(source)) {
495
+        mergeTarget = arrayToObject(target, options);
496
+    }
497
+
498
+    if (Array.isArray(target) && Array.isArray(source)) {
499
+        source.forEach(function (item, i) {
500
+            if (has.call(target, i)) {
501
+                if (target[i] && typeof target[i] === 'object') {
502
+                    target[i] = merge(target[i], item, options);
503
+                } else {
504
+                    target.push(item);
505
+                }
506
+            } else {
507
+                target[i] = item;
508
+            }
509
+        });
510
+        return target;
511
+    }
512
+
513
+    return Object.keys(source).reduce(function (acc, key) {
514
+        var value = source[key];
515
+
516
+        if (has.call(acc, key)) {
517
+            acc[key] = merge(acc[key], value, options);
518
+        } else {
519
+            acc[key] = value;
520
+        }
521
+        return acc;
522
+    }, mergeTarget);
523
+};
524
+
525
+var assign = function assignSingleSource(target, source) {
526
+    return Object.keys(source).reduce(function (acc, key) {
527
+        acc[key] = source[key];
528
+        return acc;
529
+    }, target);
530
+};
531
+
532
+var decode = function (str) {
533
+    try {
534
+        return decodeURIComponent(str.replace(/\+/g, ' '));
535
+    } catch (e) {
536
+        return str;
537
+    }
538
+};
539
+
540
+var encode = function encode(str) {
541
+    // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
542
+    // It has been adapted here for stricter adherence to RFC 3986
543
+    if (str.length === 0) {
544
+        return str;
545
+    }
546
+
547
+    var string = typeof str === 'string' ? str : String(str);
548
+
549
+    var out = '';
550
+    for (var i = 0; i < string.length; ++i) {
551
+        var c = string.charCodeAt(i);
552
+
553
+        if (
554
+            c === 0x2D // -
555
+            || c === 0x2E // .
556
+            || c === 0x5F // _
557
+            || c === 0x7E // ~
558
+            || (c >= 0x30 && c <= 0x39) // 0-9
559
+            || (c >= 0x41 && c <= 0x5A) // a-z
560
+            || (c >= 0x61 && c <= 0x7A) // A-Z
561
+        ) {
562
+            out += string.charAt(i);
563
+            continue;
564
+        }
565
+
566
+        if (c < 0x80) {
567
+            out = out + hexTable[c];
568
+            continue;
569
+        }
570
+
571
+        if (c < 0x800) {
572
+            out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
573
+            continue;
574
+        }
575
+
576
+        if (c < 0xD800 || c >= 0xE000) {
577
+            out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
578
+            continue;
579
+        }
580
+
581
+        i += 1;
582
+        c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
583
+        out += hexTable[0xF0 | (c >> 18)]
584
+            + hexTable[0x80 | ((c >> 12) & 0x3F)]
585
+            + hexTable[0x80 | ((c >> 6) & 0x3F)]
586
+            + hexTable[0x80 | (c & 0x3F)];
587
+    }
588
+
589
+    return out;
590
+};
591
+
592
+var compact = function compact(value) {
593
+    var queue = [{ obj: { o: value }, prop: 'o' }];
594
+    var refs = [];
595
+
596
+    for (var i = 0; i < queue.length; ++i) {
597
+        var item = queue[i];
598
+        var obj = item.obj[item.prop];
599
+
600
+        var keys = Object.keys(obj);
601
+        for (var j = 0; j < keys.length; ++j) {
602
+            var key = keys[j];
603
+            var val = obj[key];
604
+            if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
605
+                queue.push({ obj: obj, prop: key });
606
+                refs.push(val);
607
+            }
608
+        }
609
+    }
610
+
611
+    return compactQueue(queue);
612
+};
613
+
614
+var isRegExp = function isRegExp(obj) {
615
+    return Object.prototype.toString.call(obj) === '[object RegExp]';
616
+};
617
+
618
+var isBuffer = function isBuffer(obj) {
619
+    if (obj === null || typeof obj === 'undefined') {
620
+        return false;
621
+    }
622
+
623
+    return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
624
+};
625
+
626
+module.exports = {
627
+    arrayToObject: arrayToObject,
628
+    assign: assign,
629
+    compact: compact,
630
+    decode: decode,
631
+    encode: encode,
632
+    isBuffer: isBuffer,
633
+    isRegExp: isRegExp,
634
+    merge: merge
635
+};
636
+
637
+},{}]},{},[2])(2)
638
+});

+ 18
- 0
node_modules/node-gyp/node_modules/qs/lib/formats.js View File

1
+'use strict';
2
+
3
+var replace = String.prototype.replace;
4
+var percentTwenties = /%20/g;
5
+
6
+module.exports = {
7
+    'default': 'RFC3986',
8
+    formatters: {
9
+        RFC1738: function (value) {
10
+            return replace.call(value, percentTwenties, '+');
11
+        },
12
+        RFC3986: function (value) {
13
+            return value;
14
+        }
15
+    },
16
+    RFC1738: 'RFC1738',
17
+    RFC3986: 'RFC3986'
18
+};

+ 11
- 0
node_modules/node-gyp/node_modules/qs/lib/index.js View File

1
+'use strict';
2
+
3
+var stringify = require('./stringify');
4
+var parse = require('./parse');
5
+var formats = require('./formats');
6
+
7
+module.exports = {
8
+    formats: formats,
9
+    parse: parse,
10
+    stringify: stringify
11
+};

+ 174
- 0
node_modules/node-gyp/node_modules/qs/lib/parse.js View File

1
+'use strict';
2
+
3
+var utils = require('./utils');
4
+
5
+var has = Object.prototype.hasOwnProperty;
6
+
7
+var defaults = {
8
+    allowDots: false,
9
+    allowPrototypes: false,
10
+    arrayLimit: 20,
11
+    decoder: utils.decode,
12
+    delimiter: '&',
13
+    depth: 5,
14
+    parameterLimit: 1000,
15
+    plainObjects: false,
16
+    strictNullHandling: false
17
+};
18
+
19
+var parseValues = function parseQueryStringValues(str, options) {
20
+    var obj = {};
21
+    var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
22
+    var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
23
+    var parts = cleanStr.split(options.delimiter, limit);
24
+
25
+    for (var i = 0; i < parts.length; ++i) {
26
+        var part = parts[i];
27
+
28
+        var bracketEqualsPos = part.indexOf(']=');
29
+        var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
30
+
31
+        var key, val;
32
+        if (pos === -1) {
33
+            key = options.decoder(part, defaults.decoder);
34
+            val = options.strictNullHandling ? null : '';
35
+        } else {
36
+            key = options.decoder(part.slice(0, pos), defaults.decoder);
37
+            val = options.decoder(part.slice(pos + 1), defaults.decoder);
38
+        }
39
+        if (has.call(obj, key)) {
40
+            obj[key] = [].concat(obj[key]).concat(val);
41
+        } else {
42
+            obj[key] = val;
43
+        }
44
+    }
45
+
46
+    return obj;
47
+};
48
+
49
+var parseObject = function (chain, val, options) {
50
+    var leaf = val;
51
+
52
+    for (var i = chain.length - 1; i >= 0; --i) {
53
+        var obj;
54
+        var root = chain[i];
55
+
56
+        if (root === '[]') {
57
+            obj = [];
58
+            obj = obj.concat(leaf);
59
+        } else {
60
+            obj = options.plainObjects ? Object.create(null) : {};
61
+            var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
62
+            var index = parseInt(cleanRoot, 10);
63
+            if (
64
+                !isNaN(index)
65
+                && root !== cleanRoot
66
+                && String(index) === cleanRoot
67
+                && index >= 0
68
+                && (options.parseArrays && index <= options.arrayLimit)
69
+            ) {
70
+                obj = [];
71
+                obj[index] = leaf;
72
+            } else {
73
+                obj[cleanRoot] = leaf;
74
+            }
75
+        }
76
+
77
+        leaf = obj;
78
+    }
79
+
80
+    return leaf;
81
+};
82
+
83
+var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
84
+    if (!givenKey) {
85
+        return;
86
+    }
87
+
88
+    // Transform dot notation to bracket notation
89
+    var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
90
+
91
+    // The regex chunks
92
+
93
+    var brackets = /(\[[^[\]]*])/;
94
+    var child = /(\[[^[\]]*])/g;
95
+
96
+    // Get the parent
97
+
98
+    var segment = brackets.exec(key);
99
+    var parent = segment ? key.slice(0, segment.index) : key;
100
+
101
+    // Stash the parent if it exists
102
+
103
+    var keys = [];
104
+    if (parent) {
105
+        // If we aren't using plain objects, optionally prefix keys
106
+        // that would overwrite object prototype properties
107
+        if (!options.plainObjects && has.call(Object.prototype, parent)) {
108
+            if (!options.allowPrototypes) {
109
+                return;
110
+            }
111
+        }
112
+
113
+        keys.push(parent);
114
+    }
115
+
116
+    // Loop through children appending to the array until we hit depth
117
+
118
+    var i = 0;
119
+    while ((segment = child.exec(key)) !== null && i < options.depth) {
120
+        i += 1;
121
+        if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
122
+            if (!options.allowPrototypes) {
123
+                return;
124
+            }
125
+        }
126
+        keys.push(segment[1]);
127
+    }
128
+
129
+    // If there's a remainder, just add whatever is left
130
+
131
+    if (segment) {
132
+        keys.push('[' + key.slice(segment.index) + ']');
133
+    }
134
+
135
+    return parseObject(keys, val, options);
136
+};
137
+
138
+module.exports = function (str, opts) {
139
+    var options = opts ? utils.assign({}, opts) : {};
140
+
141
+    if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') {
142
+        throw new TypeError('Decoder has to be a function.');
143
+    }
144
+
145
+    options.ignoreQueryPrefix = options.ignoreQueryPrefix === true;
146
+    options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter;
147
+    options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth;
148
+    options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit;
149
+    options.parseArrays = options.parseArrays !== false;
150
+    options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder;
151
+    options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots;
152
+    options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects;
153
+    options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes;
154
+    options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit;
155
+    options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;
156
+
157
+    if (str === '' || str === null || typeof str === 'undefined') {
158
+        return options.plainObjects ? Object.create(null) : {};
159
+    }
160
+
161
+    var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
162
+    var obj = options.plainObjects ? Object.create(null) : {};
163
+
164
+    // Iterate over the keys and setup the new object
165
+
166
+    var keys = Object.keys(tempObj);
167
+    for (var i = 0; i < keys.length; ++i) {
168
+        var key = keys[i];
169
+        var newObj = parseKeys(key, tempObj[key], options);
170
+        obj = utils.merge(obj, newObj, options);
171
+    }
172
+
173
+    return utils.compact(obj);
174
+};

+ 210
- 0
node_modules/node-gyp/node_modules/qs/lib/stringify.js View File

1
+'use strict';
2
+
3
+var utils = require('./utils');
4
+var formats = require('./formats');
5
+
6
+var arrayPrefixGenerators = {
7
+    brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
8
+        return prefix + '[]';
9
+    },
10
+    indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
11
+        return prefix + '[' + key + ']';
12
+    },
13
+    repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
14
+        return prefix;
15
+    }
16
+};
17
+
18
+var toISO = Date.prototype.toISOString;
19
+
20
+var defaults = {
21
+    delimiter: '&',
22
+    encode: true,
23
+    encoder: utils.encode,
24
+    encodeValuesOnly: false,
25
+    serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
26
+        return toISO.call(date);
27
+    },
28
+    skipNulls: false,
29
+    strictNullHandling: false
30
+};
31
+
32
+var stringify = function stringify( // eslint-disable-line func-name-matching
33
+    object,
34
+    prefix,
35
+    generateArrayPrefix,
36
+    strictNullHandling,
37
+    skipNulls,
38
+    encoder,
39
+    filter,
40
+    sort,
41
+    allowDots,
42
+    serializeDate,
43
+    formatter,
44
+    encodeValuesOnly
45
+) {
46
+    var obj = object;
47
+    if (typeof filter === 'function') {
48
+        obj = filter(prefix, obj);
49
+    } else if (obj instanceof Date) {
50
+        obj = serializeDate(obj);
51
+    } else if (obj === null) {
52
+        if (strictNullHandling) {
53
+            return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix;
54
+        }
55
+
56
+        obj = '';
57
+    }
58
+
59
+    if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {
60
+        if (encoder) {
61
+            var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder);
62
+            return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder))];
63
+        }
64
+        return [formatter(prefix) + '=' + formatter(String(obj))];
65
+    }
66
+
67
+    var values = [];
68
+
69
+    if (typeof obj === 'undefined') {
70
+        return values;
71
+    }
72
+
73
+    var objKeys;
74
+    if (Array.isArray(filter)) {
75
+        objKeys = filter;
76
+    } else {
77
+        var keys = Object.keys(obj);
78
+        objKeys = sort ? keys.sort(sort) : keys;
79
+    }
80
+
81
+    for (var i = 0; i < objKeys.length; ++i) {
82
+        var key = objKeys[i];
83
+
84
+        if (skipNulls && obj[key] === null) {
85
+            continue;
86
+        }
87
+
88
+        if (Array.isArray(obj)) {
89
+            values = values.concat(stringify(
90
+                obj[key],
91
+                generateArrayPrefix(prefix, key),
92
+                generateArrayPrefix,
93
+                strictNullHandling,
94
+                skipNulls,
95
+                encoder,
96
+                filter,
97
+                sort,
98
+                allowDots,
99
+                serializeDate,
100
+                formatter,
101
+                encodeValuesOnly
102
+            ));
103
+        } else {
104
+            values = values.concat(stringify(
105
+                obj[key],
106
+                prefix + (allowDots ? '.' + key : '[' + key + ']'),
107
+                generateArrayPrefix,
108
+                strictNullHandling,
109
+                skipNulls,
110
+                encoder,
111
+                filter,
112
+                sort,
113
+                allowDots,
114
+                serializeDate,
115
+                formatter,
116
+                encodeValuesOnly
117
+            ));
118
+        }
119
+    }
120
+
121
+    return values;
122
+};
123
+
124
+module.exports = function (object, opts) {
125
+    var obj = object;
126
+    var options = opts ? utils.assign({}, opts) : {};
127
+
128
+    if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {
129
+        throw new TypeError('Encoder has to be a function.');
130
+    }
131
+
132
+    var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter;
133
+    var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;
134
+    var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls;
135
+    var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode;
136
+    var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder;
137
+    var sort = typeof options.sort === 'function' ? options.sort : null;
138
+    var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots;
139
+    var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate;
140
+    var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly;
141
+    if (typeof options.format === 'undefined') {
142
+        options.format = formats['default'];
143
+    } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) {
144
+        throw new TypeError('Unknown format option provided.');
145
+    }
146
+    var formatter = formats.formatters[options.format];
147
+    var objKeys;
148
+    var filter;
149
+
150
+    if (typeof options.filter === 'function') {
151
+        filter = options.filter;
152
+        obj = filter('', obj);
153
+    } else if (Array.isArray(options.filter)) {
154
+        filter = options.filter;
155
+        objKeys = filter;
156
+    }
157
+
158
+    var keys = [];
159
+
160
+    if (typeof obj !== 'object' || obj === null) {
161
+        return '';
162
+    }
163
+
164
+    var arrayFormat;
165
+    if (options.arrayFormat in arrayPrefixGenerators) {
166
+        arrayFormat = options.arrayFormat;
167
+    } else if ('indices' in options) {
168
+        arrayFormat = options.indices ? 'indices' : 'repeat';
169
+    } else {
170
+        arrayFormat = 'indices';
171
+    }
172
+
173
+    var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
174
+
175
+    if (!objKeys) {
176
+        objKeys = Object.keys(obj);
177
+    }
178
+
179
+    if (sort) {
180
+        objKeys.sort(sort);
181
+    }
182
+
183
+    for (var i = 0; i < objKeys.length; ++i) {
184
+        var key = objKeys[i];
185
+
186
+        if (skipNulls && obj[key] === null) {
187
+            continue;
188
+        }
189
+
190
+        keys = keys.concat(stringify(
191
+            obj[key],
192
+            key,
193
+            generateArrayPrefix,
194
+            strictNullHandling,
195
+            skipNulls,
196
+            encode ? encoder : null,
197
+            filter,
198
+            sort,
199
+            allowDots,
200
+            serializeDate,
201
+            formatter,
202
+            encodeValuesOnly
203
+        ));
204
+    }
205
+
206
+    var joined = keys.join(delimiter);
207
+    var prefix = options.addQueryPrefix === true ? '?' : '';
208
+
209
+    return joined.length > 0 ? prefix + joined : '';
210
+};

+ 213
- 0
node_modules/node-gyp/node_modules/qs/lib/utils.js View File

1
+'use strict';
2
+
3
+var has = Object.prototype.hasOwnProperty;
4
+
5
+var hexTable = (function () {
6
+    var array = [];
7
+    for (var i = 0; i < 256; ++i) {
8
+        array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
9
+    }
10
+
11
+    return array;
12
+}());
13
+
14
+var compactQueue = function compactQueue(queue) {
15
+    var obj;
16
+
17
+    while (queue.length) {
18
+        var item = queue.pop();
19
+        obj = item.obj[item.prop];
20
+
21
+        if (Array.isArray(obj)) {
22
+            var compacted = [];
23
+
24
+            for (var j = 0; j < obj.length; ++j) {
25
+                if (typeof obj[j] !== 'undefined') {
26
+                    compacted.push(obj[j]);
27
+                }
28
+            }
29
+
30
+            item.obj[item.prop] = compacted;
31
+        }
32
+    }
33
+
34
+    return obj;
35
+};
36
+
37
+var arrayToObject = function arrayToObject(source, options) {
38
+    var obj = options && options.plainObjects ? Object.create(null) : {};
39
+    for (var i = 0; i < source.length; ++i) {
40
+        if (typeof source[i] !== 'undefined') {
41
+            obj[i] = source[i];
42
+        }
43
+    }
44
+
45
+    return obj;
46
+};
47
+
48
+var merge = function merge(target, source, options) {
49
+    if (!source) {
50
+        return target;
51
+    }
52
+
53
+    if (typeof source !== 'object') {
54
+        if (Array.isArray(target)) {
55
+            target.push(source);
56
+        } else if (typeof target === 'object') {
57
+            if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {
58
+                target[source] = true;
59
+            }
60
+        } else {
61
+            return [target, source];
62
+        }
63
+
64
+        return target;
65
+    }
66
+
67
+    if (typeof target !== 'object') {
68
+        return [target].concat(source);
69
+    }
70
+
71
+    var mergeTarget = target;
72
+    if (Array.isArray(target) && !Array.isArray(source)) {
73
+        mergeTarget = arrayToObject(target, options);
74
+    }
75
+
76
+    if (Array.isArray(target) && Array.isArray(source)) {
77
+        source.forEach(function (item, i) {
78
+            if (has.call(target, i)) {
79
+                if (target[i] && typeof target[i] === 'object') {
80
+                    target[i] = merge(target[i], item, options);
81
+                } else {
82
+                    target.push(item);
83
+                }
84
+            } else {
85
+                target[i] = item;
86
+            }
87
+        });
88
+        return target;
89
+    }
90
+
91
+    return Object.keys(source).reduce(function (acc, key) {
92
+        var value = source[key];
93
+
94
+        if (has.call(acc, key)) {
95
+            acc[key] = merge(acc[key], value, options);
96
+        } else {
97
+            acc[key] = value;
98
+        }
99
+        return acc;
100
+    }, mergeTarget);
101
+};
102
+
103
+var assign = function assignSingleSource(target, source) {
104
+    return Object.keys(source).reduce(function (acc, key) {
105
+        acc[key] = source[key];
106
+        return acc;
107
+    }, target);
108
+};
109
+
110
+var decode = function (str) {
111
+    try {
112
+        return decodeURIComponent(str.replace(/\+/g, ' '));
113
+    } catch (e) {
114
+        return str;
115
+    }
116
+};
117
+
118
+var encode = function encode(str) {
119
+    // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
120
+    // It has been adapted here for stricter adherence to RFC 3986
121
+    if (str.length === 0) {
122
+        return str;
123
+    }
124
+
125
+    var string = typeof str === 'string' ? str : String(str);
126
+
127
+    var out = '';
128
+    for (var i = 0; i < string.length; ++i) {
129
+        var c = string.charCodeAt(i);
130
+
131
+        if (
132
+            c === 0x2D // -
133
+            || c === 0x2E // .
134
+            || c === 0x5F // _
135
+            || c === 0x7E // ~
136
+            || (c >= 0x30 && c <= 0x39) // 0-9
137
+            || (c >= 0x41 && c <= 0x5A) // a-z
138
+            || (c >= 0x61 && c <= 0x7A) // A-Z
139
+        ) {
140
+            out += string.charAt(i);
141
+            continue;
142
+        }
143
+
144
+        if (c < 0x80) {
145
+            out = out + hexTable[c];
146
+            continue;
147
+        }
148
+
149
+        if (c < 0x800) {
150
+            out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
151
+            continue;
152
+        }
153
+
154
+        if (c < 0xD800 || c >= 0xE000) {
155
+            out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
156
+            continue;
157
+        }
158
+
159
+        i += 1;
160
+        c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
161
+        out += hexTable[0xF0 | (c >> 18)]
162
+            + hexTable[0x80 | ((c >> 12) & 0x3F)]
163
+            + hexTable[0x80 | ((c >> 6) & 0x3F)]
164
+            + hexTable[0x80 | (c & 0x3F)];
165
+    }
166
+
167
+    return out;
168
+};
169
+
170
+var compact = function compact(value) {
171
+    var queue = [{ obj: { o: value }, prop: 'o' }];
172
+    var refs = [];
173
+
174
+    for (var i = 0; i < queue.length; ++i) {
175
+        var item = queue[i];
176
+        var obj = item.obj[item.prop];
177
+
178
+        var keys = Object.keys(obj);
179
+        for (var j = 0; j < keys.length; ++j) {
180
+            var key = keys[j];
181
+            var val = obj[key];
182
+            if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
183
+                queue.push({ obj: obj, prop: key });
184
+                refs.push(val);
185
+            }
186
+        }
187
+    }
188
+
189
+    return compactQueue(queue);
190
+};
191
+
192
+var isRegExp = function isRegExp(obj) {
193
+    return Object.prototype.toString.call(obj) === '[object RegExp]';
194
+};
195
+
196
+var isBuffer = function isBuffer(obj) {
197
+    if (obj === null || typeof obj === 'undefined') {
198
+        return false;
199
+    }
200
+
201
+    return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
202
+};
203
+
204
+module.exports = {
205
+    arrayToObject: arrayToObject,
206
+    assign: assign,
207
+    compact: compact,
208
+    decode: decode,
209
+    encode: encode,
210
+    isBuffer: isBuffer,
211
+    isRegExp: isRegExp,
212
+    merge: merge
213
+};

+ 119
- 0
node_modules/node-gyp/node_modules/qs/package.json View File

1
+{
2
+  "_args": [
3
+    [
4
+      "qs@~6.5.2",
5
+      "/home/nmaidanos/Desktop/ZipTeamPurple-FrontEnd/node_modules/node-gyp/node_modules/request"
6
+    ]
7
+  ],
8
+  "_from": "qs@>=6.5.2 <6.6.0",
9
+  "_id": "qs@6.5.2",
10
+  "_inCache": true,
11
+  "_installable": true,
12
+  "_location": "/node-gyp/qs",
13
+  "_nodeVersion": "10.0.0",
14
+  "_npmOperationalInternal": {
15
+    "host": "s3://npm-registry-packages",
16
+    "tmp": "tmp/qs_6.5.2_1525413973776_0.4130968177833936"
17
+  },
18
+  "_npmUser": {
19
+    "email": "ljharb@gmail.com",
20
+    "name": "ljharb"
21
+  },
22
+  "_npmVersion": "5.6.0",
23
+  "_phantomChildren": {},
24
+  "_requested": {
25
+    "name": "qs",
26
+    "raw": "qs@~6.5.2",
27
+    "rawSpec": "~6.5.2",
28
+    "scope": null,
29
+    "spec": ">=6.5.2 <6.6.0",
30
+    "type": "range"
31
+  },
32
+  "_requiredBy": [
33
+    "/node-gyp/request"
34
+  ],
35
+  "_resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
36
+  "_shasum": "cb3ae806e8740444584ef154ce8ee98d403f3e36",
37
+  "_shrinkwrap": null,
38
+  "_spec": "qs@~6.5.2",
39
+  "_where": "/home/nmaidanos/Desktop/ZipTeamPurple-FrontEnd/node_modules/node-gyp/node_modules/request",
40
+  "bugs": {
41
+    "url": "https://github.com/ljharb/qs/issues"
42
+  },
43
+  "contributors": [
44
+    {
45
+      "name": "Jordan Harband",
46
+      "email": "ljharb@gmail.com",
47
+      "url": "http://ljharb.codes"
48
+    }
49
+  ],
50
+  "dependencies": {},
51
+  "description": "A querystring parser that supports nesting and arrays, with a depth limit",
52
+  "devDependencies": {
53
+    "@ljharb/eslint-config": "^12.2.1",
54
+    "browserify": "^16.2.0",
55
+    "covert": "^1.1.0",
56
+    "editorconfig-tools": "^0.1.1",
57
+    "eslint": "^4.19.1",
58
+    "evalmd": "^0.0.17",
59
+    "iconv-lite": "^0.4.21",
60
+    "mkdirp": "^0.5.1",
61
+    "qs-iconv": "^1.0.4",
62
+    "safe-publish-latest": "^1.1.1",
63
+    "safer-buffer": "^2.1.2",
64
+    "tape": "^4.9.0"
65
+  },
66
+  "directories": {},
67
+  "dist": {
68
+    "fileCount": 18,
69
+    "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==",
70
+    "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6/hXCRA9TVsSAnZWagAAEJQP/0c3B2SWDmhz9zC9na++\nc6v1YkoIPJ+IhVaFhrpKvT3HeMsRbdQFTjGJ+7VijncHdxuieAGSAo5Tm9MZ\nnrskliXl61TelWC3/1GJ7hzggBCIudwf1Kl5P2lx+XLTBag+B3BnfxR+Gp/o\nF8f+CJ3I2KxkKZWcHYBTLLgE5dPi5i5KFnh9EAsaZRUiowCDl+CaKzj3u55M\nUfwKrUXLfZtgL3ALj5Nh/g1F+NW7m7RIDREVFPJ3MqeiNUXUnGU9KBmQuHMm\nWvOMuvN9vgPm40fp9TBZQlEazaR12QBqqvpgDtYBNqfUQaznoyZ8rN36W1oB\n5iV3Ve6B+BeIPNMaf92TvAnbvLcAEfy36VuOiH3IHDyEDAk706n/etInNeYS\nK/N359uzbRCQ7MQTJ5Z9TmlsD6/TFRfcBcGUrnPoL6HEEIxmAnJbKApy1sP4\nqb/GnrOQMuRJ6ty58aTEzotFvsxFw8kaeeexZ7Ftd7cKYdBRjutfiibJTH3v\n8feuHS0wDXRDvVd906qwYvC4LwGeqTJeRUHtFrd3pwCDqiXGyEXP60Yyir6L\nqZIYxzv8FRBspN//x5YJndpU06joflcCmm0bLfu+zLSevL4eciH+ciBQZQVY\nzWdcWZktjGXNt5I1s7xO31sgV7nwiXSPUQDS/SuaE860GWQ9pp0yL9M23S/q\ny88W\r\n=156t\r\n-----END PGP SIGNATURE-----\r\n",
71
+    "shasum": "cb3ae806e8740444584ef154ce8ee98d403f3e36",
72
+    "tarball": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
73
+    "unpackedSize": 114127
74
+  },
75
+  "engines": {
76
+    "node": ">=0.6"
77
+  },
78
+  "gitHead": "eaabd05558b657c75a137caf2eb030e8e856b82f",
79
+  "homepage": "https://github.com/ljharb/qs",
80
+  "keywords": [
81
+    "qs",
82
+    "querystring"
83
+  ],
84
+  "license": "BSD-3-Clause",
85
+  "main": "lib/index.js",
86
+  "maintainers": [
87
+    {
88
+      "name": "hueniverse",
89
+      "email": "eran@hammer.io"
90
+    },
91
+    {
92
+      "name": "ljharb",
93
+      "email": "ljharb@gmail.com"
94
+    },
95
+    {
96
+      "name": "nlf",
97
+      "email": "quitlahok@gmail.com"
98
+    }
99
+  ],
100
+  "name": "qs",
101
+  "optionalDependencies": {},
102
+  "readme": "ERROR: No README data found!",
103
+  "repository": {
104
+    "type": "git",
105
+    "url": "git+https://github.com/ljharb/qs.git"
106
+  },
107
+  "scripts": {
108
+    "coverage": "covert test",
109
+    "dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js",
110
+    "lint": "eslint lib/*.js test/*.js",
111
+    "prelint": "editorconfig-tools check * lib/* test/*",
112
+    "prepublish": "safe-publish-latest && npm run dist",
113
+    "pretest": "npm run --silent readme && npm run --silent lint",
114
+    "readme": "evalmd README.md",
115
+    "test": "npm run --silent coverage",
116
+    "tests-only": "node test"
117
+  },
118
+  "version": "6.5.2"
119
+}

+ 15
- 0
node_modules/node-gyp/node_modules/qs/test/.eslintrc View File

1
+{
2
+    "rules": {
3
+		"array-bracket-newline": 0,
4
+		"array-element-newline": 0,
5
+		"consistent-return": 2,
6
+        "max-lines": 0,
7
+        "max-nested-callbacks": [2, 3],
8
+        "max-statements": 0,
9
+		"no-buffer-constructor": 0,
10
+        "no-extend-native": 0,
11
+        "no-magic-numbers": 0,
12
+		"object-curly-newline": 0,
13
+        "sort-keys": 0
14
+    }
15
+}

+ 7
- 0
node_modules/node-gyp/node_modules/qs/test/index.js View File

1
+'use strict';
2
+
3
+require('./parse');
4
+
5
+require('./stringify');
6
+
7
+require('./utils');

+ 574
- 0
node_modules/node-gyp/node_modules/qs/test/parse.js View File

1
+'use strict';
2
+
3
+var test = require('tape');
4
+var qs = require('../');
5
+var utils = require('../lib/utils');
6
+var iconv = require('iconv-lite');
7
+var SaferBuffer = require('safer-buffer').Buffer;
8
+
9
+test('parse()', function (t) {
10
+    t.test('parses a simple string', function (st) {
11
+        st.deepEqual(qs.parse('0=foo'), { 0: 'foo' });
12
+        st.deepEqual(qs.parse('foo=c++'), { foo: 'c  ' });
13
+        st.deepEqual(qs.parse('a[>=]=23'), { a: { '>=': '23' } });
14
+        st.deepEqual(qs.parse('a[<=>]==23'), { a: { '<=>': '=23' } });
15
+        st.deepEqual(qs.parse('a[==]=23'), { a: { '==': '23' } });
16
+        st.deepEqual(qs.parse('foo', { strictNullHandling: true }), { foo: null });
17
+        st.deepEqual(qs.parse('foo'), { foo: '' });
18
+        st.deepEqual(qs.parse('foo='), { foo: '' });
19
+        st.deepEqual(qs.parse('foo=bar'), { foo: 'bar' });
20
+        st.deepEqual(qs.parse(' foo = bar = baz '), { ' foo ': ' bar = baz ' });
21
+        st.deepEqual(qs.parse('foo=bar=baz'), { foo: 'bar=baz' });
22
+        st.deepEqual(qs.parse('foo=bar&bar=baz'), { foo: 'bar', bar: 'baz' });
23
+        st.deepEqual(qs.parse('foo2=bar2&baz2='), { foo2: 'bar2', baz2: '' });
24
+        st.deepEqual(qs.parse('foo=bar&baz', { strictNullHandling: true }), { foo: 'bar', baz: null });
25
+        st.deepEqual(qs.parse('foo=bar&baz'), { foo: 'bar', baz: '' });
26
+        st.deepEqual(qs.parse('cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World'), {
27
+            cht: 'p3',
28
+            chd: 't:60,40',
29
+            chs: '250x100',
30
+            chl: 'Hello|World'
31
+        });
32
+        st.end();
33
+    });
34
+
35
+    t.test('allows enabling dot notation', function (st) {
36
+        st.deepEqual(qs.parse('a.b=c'), { 'a.b': 'c' });
37
+        st.deepEqual(qs.parse('a.b=c', { allowDots: true }), { a: { b: 'c' } });
38
+        st.end();
39
+    });
40
+
41
+    t.deepEqual(qs.parse('a[b]=c'), { a: { b: 'c' } }, 'parses a single nested string');
42
+    t.deepEqual(qs.parse('a[b][c]=d'), { a: { b: { c: 'd' } } }, 'parses a double nested string');
43
+    t.deepEqual(
44
+        qs.parse('a[b][c][d][e][f][g][h]=i'),
45
+        { a: { b: { c: { d: { e: { f: { '[g][h]': 'i' } } } } } } },
46
+        'defaults to a depth of 5'
47
+    );
48
+
49
+    t.test('only parses one level when depth = 1', function (st) {
50
+        st.deepEqual(qs.parse('a[b][c]=d', { depth: 1 }), { a: { b: { '[c]': 'd' } } });
51
+        st.deepEqual(qs.parse('a[b][c][d]=e', { depth: 1 }), { a: { b: { '[c][d]': 'e' } } });
52
+        st.end();
53
+    });
54
+
55
+    t.deepEqual(qs.parse('a=b&a=c'), { a: ['b', 'c'] }, 'parses a simple array');
56
+
57
+    t.test('parses an explicit array', function (st) {
58
+        st.deepEqual(qs.parse('a[]=b'), { a: ['b'] });
59
+        st.deepEqual(qs.parse('a[]=b&a[]=c'), { a: ['b', 'c'] });
60
+        st.deepEqual(qs.parse('a[]=b&a[]=c&a[]=d'), { a: ['b', 'c', 'd'] });
61
+        st.end();
62
+    });
63
+
64
+    t.test('parses a mix of simple and explicit arrays', function (st) {
65
+        st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] });
66
+        st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] });
67
+        st.deepEqual(qs.parse('a[0]=b&a=c'), { a: ['b', 'c'] });
68
+        st.deepEqual(qs.parse('a=b&a[0]=c'), { a: ['b', 'c'] });
69
+
70
+        st.deepEqual(qs.parse('a[1]=b&a=c', { arrayLimit: 20 }), { a: ['b', 'c'] });
71
+        st.deepEqual(qs.parse('a[]=b&a=c', { arrayLimit: 0 }), { a: ['b', 'c'] });
72
+        st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] });
73
+
74
+        st.deepEqual(qs.parse('a=b&a[1]=c', { arrayLimit: 20 }), { a: ['b', 'c'] });
75
+        st.deepEqual(qs.parse('a=b&a[]=c', { arrayLimit: 0 }), { a: ['b', 'c'] });
76
+        st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] });
77
+
78
+        st.end();
79
+    });
80
+
81
+    t.test('parses a nested array', function (st) {
82
+        st.deepEqual(qs.parse('a[b][]=c&a[b][]=d'), { a: { b: ['c', 'd'] } });
83
+        st.deepEqual(qs.parse('a[>=]=25'), { a: { '>=': '25' } });
84
+        st.end();
85
+    });
86
+
87
+    t.test('allows to specify array indices', function (st) {
88
+        st.deepEqual(qs.parse('a[1]=c&a[0]=b&a[2]=d'), { a: ['b', 'c', 'd'] });
89
+        st.deepEqual(qs.parse('a[1]=c&a[0]=b'), { a: ['b', 'c'] });
90
+        st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 20 }), { a: ['c'] });
91
+        st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 0 }), { a: { 1: 'c' } });
92
+        st.deepEqual(qs.parse('a[1]=c'), { a: ['c'] });
93
+        st.end();
94
+    });
95
+
96
+    t.test('limits specific array indices to arrayLimit', function (st) {
97
+        st.deepEqual(qs.parse('a[20]=a', { arrayLimit: 20 }), { a: ['a'] });
98
+        st.deepEqual(qs.parse('a[21]=a', { arrayLimit: 20 }), { a: { 21: 'a' } });
99
+        st.end();
100
+    });
101
+
102
+    t.deepEqual(qs.parse('a[12b]=c'), { a: { '12b': 'c' } }, 'supports keys that begin with a number');
103
+
104
+    t.test('supports encoded = signs', function (st) {
105
+        st.deepEqual(qs.parse('he%3Dllo=th%3Dere'), { 'he=llo': 'th=ere' });
106
+        st.end();
107
+    });
108
+
109
+    t.test('is ok with url encoded strings', function (st) {
110
+        st.deepEqual(qs.parse('a[b%20c]=d'), { a: { 'b c': 'd' } });
111
+        st.deepEqual(qs.parse('a[b]=c%20d'), { a: { b: 'c d' } });
112
+        st.end();
113
+    });
114
+
115
+    t.test('allows brackets in the value', function (st) {
116
+        st.deepEqual(qs.parse('pets=["tobi"]'), { pets: '["tobi"]' });
117
+        st.deepEqual(qs.parse('operators=[">=", "<="]'), { operators: '[">=", "<="]' });
118
+        st.end();
119
+    });
120
+
121
+    t.test('allows empty values', function (st) {
122
+        st.deepEqual(qs.parse(''), {});
123
+        st.deepEqual(qs.parse(null), {});
124
+        st.deepEqual(qs.parse(undefined), {});
125
+        st.end();
126
+    });
127
+
128
+    t.test('transforms arrays to objects', function (st) {
129
+        st.deepEqual(qs.parse('foo[0]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } });
130
+        st.deepEqual(qs.parse('foo[bad]=baz&foo[0]=bar'), { foo: { bad: 'baz', 0: 'bar' } });
131
+        st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar'), { foo: { bad: 'baz', 0: 'bar' } });
132
+        st.deepEqual(qs.parse('foo[]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } });
133
+        st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar&foo[]=foo'), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } });
134
+        st.deepEqual(qs.parse('foo[0][a]=a&foo[0][b]=b&foo[1][a]=aa&foo[1][b]=bb'), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] });
135
+
136
+        st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: false }), { a: { 0: 'b', t: 'u' } });
137
+        st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: true }), { a: { 0: 'b', t: 'u', hasOwnProperty: 'c' } });
138
+        st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: false }), { a: { 0: 'b', x: 'y' } });
139
+        st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: true }), { a: { 0: 'b', hasOwnProperty: 'c', x: 'y' } });
140
+        st.end();
141
+    });
142
+
143
+    t.test('transforms arrays to objects (dot notation)', function (st) {
144
+        st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: 'baz' } });
145
+        st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad.boo=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: { boo: 'baz' } } });
146
+        st.deepEqual(qs.parse('foo[0][0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [[{ baz: 'bar' }]], fool: { bad: 'baz' } });
147
+        st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15'], bar: '2' }] });
148
+        st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].baz[1]=16&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15', '16'], bar: '2' }] });
149
+        st.deepEqual(qs.parse('foo.bad=baz&foo[0]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } });
150
+        st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } });
151
+        st.deepEqual(qs.parse('foo[]=bar&foo.bad=baz', { allowDots: true }), { foo: { 0: 'bar', bad: 'baz' } });
152
+        st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar&foo[]=foo', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } });
153
+        st.deepEqual(qs.parse('foo[0].a=a&foo[0].b=b&foo[1].a=aa&foo[1].b=bb', { allowDots: true }), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] });
154
+        st.end();
155
+    });
156
+
157
+    t.test('correctly prunes undefined values when converting an array to an object', function (st) {
158
+        st.deepEqual(qs.parse('a[2]=b&a[99999999]=c'), { a: { 2: 'b', 99999999: 'c' } });
159
+        st.end();
160
+    });
161
+
162
+    t.test('supports malformed uri characters', function (st) {
163
+        st.deepEqual(qs.parse('{%:%}', { strictNullHandling: true }), { '{%:%}': null });
164
+        st.deepEqual(qs.parse('{%:%}='), { '{%:%}': '' });
165
+        st.deepEqual(qs.parse('foo=%:%}'), { foo: '%:%}' });
166
+        st.end();
167
+    });
168
+
169
+    t.test('doesn\'t produce empty keys', function (st) {
170
+        st.deepEqual(qs.parse('_r=1&'), { _r: '1' });
171
+        st.end();
172
+    });
173
+
174
+    t.test('cannot access Object prototype', function (st) {
175
+        qs.parse('constructor[prototype][bad]=bad');
176
+        qs.parse('bad[constructor][prototype][bad]=bad');
177
+        st.equal(typeof Object.prototype.bad, 'undefined');
178
+        st.end();
179
+    });
180
+
181
+    t.test('parses arrays of objects', function (st) {
182
+        st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] });
183
+        st.deepEqual(qs.parse('a[0][b]=c'), { a: [{ b: 'c' }] });
184
+        st.end();
185
+    });
186
+
187
+    t.test('allows for empty strings in arrays', function (st) {
188
+        st.deepEqual(qs.parse('a[]=b&a[]=&a[]=c'), { a: ['b', '', 'c'] });
189
+
190
+        st.deepEqual(
191
+            qs.parse('a[0]=b&a[1]&a[2]=c&a[19]=', { strictNullHandling: true, arrayLimit: 20 }),
192
+            { a: ['b', null, 'c', ''] },
193
+            'with arrayLimit 20 + array indices: null then empty string works'
194
+        );
195
+        st.deepEqual(
196
+            qs.parse('a[]=b&a[]&a[]=c&a[]=', { strictNullHandling: true, arrayLimit: 0 }),
197
+            { a: ['b', null, 'c', ''] },
198
+            'with arrayLimit 0 + array brackets: null then empty string works'
199
+        );
200
+
201
+        st.deepEqual(
202
+            qs.parse('a[0]=b&a[1]=&a[2]=c&a[19]', { strictNullHandling: true, arrayLimit: 20 }),
203
+            { a: ['b', '', 'c', null] },
204
+            'with arrayLimit 20 + array indices: empty string then null works'
205
+        );
206
+        st.deepEqual(
207
+            qs.parse('a[]=b&a[]=&a[]=c&a[]', { strictNullHandling: true, arrayLimit: 0 }),
208
+            { a: ['b', '', 'c', null] },
209
+            'with arrayLimit 0 + array brackets: empty string then null works'
210
+        );
211
+
212
+        st.deepEqual(
213
+            qs.parse('a[]=&a[]=b&a[]=c'),
214
+            { a: ['', 'b', 'c'] },
215
+            'array brackets: empty strings work'
216
+        );
217
+        st.end();
218
+    });
219
+
220
+    t.test('compacts sparse arrays', function (st) {
221
+        st.deepEqual(qs.parse('a[10]=1&a[2]=2', { arrayLimit: 20 }), { a: ['2', '1'] });
222
+        st.deepEqual(qs.parse('a[1][b][2][c]=1', { arrayLimit: 20 }), { a: [{ b: [{ c: '1' }] }] });
223
+        st.deepEqual(qs.parse('a[1][2][3][c]=1', { arrayLimit: 20 }), { a: [[[{ c: '1' }]]] });
224
+        st.deepEqual(qs.parse('a[1][2][3][c][1]=1', { arrayLimit: 20 }), { a: [[[{ c: ['1'] }]]] });
225
+        st.end();
226
+    });
227
+
228
+    t.test('parses semi-parsed strings', function (st) {
229
+        st.deepEqual(qs.parse({ 'a[b]': 'c' }), { a: { b: 'c' } });
230
+        st.deepEqual(qs.parse({ 'a[b]': 'c', 'a[d]': 'e' }), { a: { b: 'c', d: 'e' } });
231
+        st.end();
232
+    });
233
+
234
+    t.test('parses buffers correctly', function (st) {
235
+        var b = SaferBuffer.from('test');
236
+        st.deepEqual(qs.parse({ a: b }), { a: b });
237
+        st.end();
238
+    });
239
+
240
+    t.test('continues parsing when no parent is found', function (st) {
241
+        st.deepEqual(qs.parse('[]=&a=b'), { 0: '', a: 'b' });
242
+        st.deepEqual(qs.parse('[]&a=b', { strictNullHandling: true }), { 0: null, a: 'b' });
243
+        st.deepEqual(qs.parse('[foo]=bar'), { foo: 'bar' });
244
+        st.end();
245
+    });
246
+
247
+    t.test('does not error when parsing a very long array', function (st) {
248
+        var str = 'a[]=a';
249
+        while (Buffer.byteLength(str) < 128 * 1024) {
250
+            str = str + '&' + str;
251
+        }
252
+
253
+        st.doesNotThrow(function () {
254
+            qs.parse(str);
255
+        });
256
+
257
+        st.end();
258
+    });
259
+
260
+    t.test('should not throw when a native prototype has an enumerable property', { parallel: false }, function (st) {
261
+        Object.prototype.crash = '';
262
+        Array.prototype.crash = '';
263
+        st.doesNotThrow(qs.parse.bind(null, 'a=b'));
264
+        st.deepEqual(qs.parse('a=b'), { a: 'b' });
265
+        st.doesNotThrow(qs.parse.bind(null, 'a[][b]=c'));
266
+        st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] });
267
+        delete Object.prototype.crash;
268
+        delete Array.prototype.crash;
269
+        st.end();
270
+    });
271
+
272
+    t.test('parses a string with an alternative string delimiter', function (st) {
273
+        st.deepEqual(qs.parse('a=b;c=d', { delimiter: ';' }), { a: 'b', c: 'd' });
274
+        st.end();
275
+    });
276
+
277
+    t.test('parses a string with an alternative RegExp delimiter', function (st) {
278
+        st.deepEqual(qs.parse('a=b; c=d', { delimiter: /[;,] */ }), { a: 'b', c: 'd' });
279
+        st.end();
280
+    });
281
+
282
+    t.test('does not use non-splittable objects as delimiters', function (st) {
283
+        st.deepEqual(qs.parse('a=b&c=d', { delimiter: true }), { a: 'b', c: 'd' });
284
+        st.end();
285
+    });
286
+
287
+    t.test('allows overriding parameter limit', function (st) {
288
+        st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: 1 }), { a: 'b' });
289
+        st.end();
290
+    });
291
+
292
+    t.test('allows setting the parameter limit to Infinity', function (st) {
293
+        st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: Infinity }), { a: 'b', c: 'd' });
294
+        st.end();
295
+    });
296
+
297
+    t.test('allows overriding array limit', function (st) {
298
+        st.deepEqual(qs.parse('a[0]=b', { arrayLimit: -1 }), { a: { 0: 'b' } });
299
+        st.deepEqual(qs.parse('a[-1]=b', { arrayLimit: -1 }), { a: { '-1': 'b' } });
300
+        st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayLimit: 0 }), { a: { 0: 'b', 1: 'c' } });
301
+        st.end();
302
+    });
303
+
304
+    t.test('allows disabling array parsing', function (st) {
305
+        st.deepEqual(qs.parse('a[0]=b&a[1]=c', { parseArrays: false }), { a: { 0: 'b', 1: 'c' } });
306
+        st.end();
307
+    });
308
+
309
+    t.test('allows for query string prefix', function (st) {
310
+        st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
311
+        st.deepEqual(qs.parse('foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
312
+        st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: false }), { '?foo': 'bar' });
313
+        st.end();
314
+    });
315
+
316
+    t.test('parses an object', function (st) {
317
+        var input = {
318
+            'user[name]': { 'pop[bob]': 3 },
319
+            'user[email]': null
320
+        };
321
+
322
+        var expected = {
323
+            user: {
324
+                name: { 'pop[bob]': 3 },
325
+                email: null
326
+            }
327
+        };
328
+
329
+        var result = qs.parse(input);
330
+
331
+        st.deepEqual(result, expected);
332
+        st.end();
333
+    });
334
+
335
+    t.test('parses an object in dot notation', function (st) {
336
+        var input = {
337
+            'user.name': { 'pop[bob]': 3 },
338
+            'user.email.': null
339
+        };
340
+
341
+        var expected = {
342
+            user: {
343
+                name: { 'pop[bob]': 3 },
344
+                email: null
345
+            }
346
+        };
347
+
348
+        var result = qs.parse(input, { allowDots: true });
349
+
350
+        st.deepEqual(result, expected);
351
+        st.end();
352
+    });
353
+
354
+    t.test('parses an object and not child values', function (st) {
355
+        var input = {
356
+            'user[name]': { 'pop[bob]': { test: 3 } },
357
+            'user[email]': null
358
+        };
359
+
360
+        var expected = {
361
+            user: {
362
+                name: { 'pop[bob]': { test: 3 } },
363
+                email: null
364
+            }
365
+        };
366
+
367
+        var result = qs.parse(input);
368
+
369
+        st.deepEqual(result, expected);
370
+        st.end();
371
+    });
372
+
373
+    t.test('does not blow up when Buffer global is missing', function (st) {
374
+        var tempBuffer = global.Buffer;
375
+        delete global.Buffer;
376
+        var result = qs.parse('a=b&c=d');
377
+        global.Buffer = tempBuffer;
378
+        st.deepEqual(result, { a: 'b', c: 'd' });
379
+        st.end();
380
+    });
381
+
382
+    t.test('does not crash when parsing circular references', function (st) {
383
+        var a = {};
384
+        a.b = a;
385
+
386
+        var parsed;
387
+
388
+        st.doesNotThrow(function () {
389
+            parsed = qs.parse({ 'foo[bar]': 'baz', 'foo[baz]': a });
390
+        });
391
+
392
+        st.equal('foo' in parsed, true, 'parsed has "foo" property');
393
+        st.equal('bar' in parsed.foo, true);
394
+        st.equal('baz' in parsed.foo, true);
395
+        st.equal(parsed.foo.bar, 'baz');
396
+        st.deepEqual(parsed.foo.baz, a);
397
+        st.end();
398
+    });
399
+
400
+    t.test('does not crash when parsing deep objects', function (st) {
401
+        var parsed;
402
+        var str = 'foo';
403
+
404
+        for (var i = 0; i < 5000; i++) {
405
+            str += '[p]';
406
+        }
407
+
408
+        str += '=bar';
409
+
410
+        st.doesNotThrow(function () {
411
+            parsed = qs.parse(str, { depth: 5000 });
412
+        });
413
+
414
+        st.equal('foo' in parsed, true, 'parsed has "foo" property');
415
+
416
+        var depth = 0;
417
+        var ref = parsed.foo;
418
+        while ((ref = ref.p)) {
419
+            depth += 1;
420
+        }
421
+
422
+        st.equal(depth, 5000, 'parsed is 5000 properties deep');
423
+
424
+        st.end();
425
+    });
426
+
427
+    t.test('parses null objects correctly', { skip: !Object.create }, function (st) {
428
+        var a = Object.create(null);
429
+        a.b = 'c';
430
+
431
+        st.deepEqual(qs.parse(a), { b: 'c' });
432
+        var result = qs.parse({ a: a });
433
+        st.equal('a' in result, true, 'result has "a" property');
434
+        st.deepEqual(result.a, a);
435
+        st.end();
436
+    });
437
+
438
+    t.test('parses dates correctly', function (st) {
439
+        var now = new Date();
440
+        st.deepEqual(qs.parse({ a: now }), { a: now });
441
+        st.end();
442
+    });
443
+
444
+    t.test('parses regular expressions correctly', function (st) {
445
+        var re = /^test$/;
446
+        st.deepEqual(qs.parse({ a: re }), { a: re });
447
+        st.end();
448
+    });
449
+
450
+    t.test('does not allow overwriting prototype properties', function (st) {
451
+        st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: false }), {});
452
+        st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: false }), {});
453
+
454
+        st.deepEqual(
455
+            qs.parse('toString', { allowPrototypes: false }),
456
+            {},
457
+            'bare "toString" results in {}'
458
+        );
459
+
460
+        st.end();
461
+    });
462
+
463
+    t.test('can allow overwriting prototype properties', function (st) {
464
+        st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true }), { a: { hasOwnProperty: 'b' } });
465
+        st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: true }), { hasOwnProperty: 'b' });
466
+
467
+        st.deepEqual(
468
+            qs.parse('toString', { allowPrototypes: true }),
469
+            { toString: '' },
470
+            'bare "toString" results in { toString: "" }'
471
+        );
472
+
473
+        st.end();
474
+    });
475
+
476
+    t.test('params starting with a closing bracket', function (st) {
477
+        st.deepEqual(qs.parse(']=toString'), { ']': 'toString' });
478
+        st.deepEqual(qs.parse(']]=toString'), { ']]': 'toString' });
479
+        st.deepEqual(qs.parse(']hello]=toString'), { ']hello]': 'toString' });
480
+        st.end();
481
+    });
482
+
483
+    t.test('params starting with a starting bracket', function (st) {
484
+        st.deepEqual(qs.parse('[=toString'), { '[': 'toString' });
485
+        st.deepEqual(qs.parse('[[=toString'), { '[[': 'toString' });
486
+        st.deepEqual(qs.parse('[hello[=toString'), { '[hello[': 'toString' });
487
+        st.end();
488
+    });
489
+
490
+    t.test('add keys to objects', function (st) {
491
+        st.deepEqual(
492
+            qs.parse('a[b]=c&a=d'),
493
+            { a: { b: 'c', d: true } },
494
+            'can add keys to objects'
495
+        );
496
+
497
+        st.deepEqual(
498
+            qs.parse('a[b]=c&a=toString'),
499
+            { a: { b: 'c' } },
500
+            'can not overwrite prototype'
501
+        );
502
+
503
+        st.deepEqual(
504
+            qs.parse('a[b]=c&a=toString', { allowPrototypes: true }),
505
+            { a: { b: 'c', toString: true } },
506
+            'can overwrite prototype with allowPrototypes true'
507
+        );
508
+
509
+        st.deepEqual(
510
+            qs.parse('a[b]=c&a=toString', { plainObjects: true }),
511
+            { a: { b: 'c', toString: true } },
512
+            'can overwrite prototype with plainObjects true'
513
+        );
514
+
515
+        st.end();
516
+    });
517
+
518
+    t.test('can return null objects', { skip: !Object.create }, function (st) {
519
+        var expected = Object.create(null);
520
+        expected.a = Object.create(null);
521
+        expected.a.b = 'c';
522
+        expected.a.hasOwnProperty = 'd';
523
+        st.deepEqual(qs.parse('a[b]=c&a[hasOwnProperty]=d', { plainObjects: true }), expected);
524
+        st.deepEqual(qs.parse(null, { plainObjects: true }), Object.create(null));
525
+        var expectedArray = Object.create(null);
526
+        expectedArray.a = Object.create(null);
527
+        expectedArray.a[0] = 'b';
528
+        expectedArray.a.c = 'd';
529
+        st.deepEqual(qs.parse('a[]=b&a[c]=d', { plainObjects: true }), expectedArray);
530
+        st.end();
531
+    });
532
+
533
+    t.test('can parse with custom encoding', function (st) {
534
+        st.deepEqual(qs.parse('%8c%a7=%91%e5%8d%e3%95%7b', {
535
+            decoder: function (str) {
536
+                var reg = /%([0-9A-F]{2})/ig;
537
+                var result = [];
538
+                var parts = reg.exec(str);
539
+                while (parts) {
540
+                    result.push(parseInt(parts[1], 16));
541
+                    parts = reg.exec(str);
542
+                }
543
+                return iconv.decode(SaferBuffer.from(result), 'shift_jis').toString();
544
+            }
545
+        }), { 県: '大阪府' });
546
+        st.end();
547
+    });
548
+
549
+    t.test('receives the default decoder as a second argument', function (st) {
550
+        st.plan(1);
551
+        qs.parse('a', {
552
+            decoder: function (str, defaultDecoder) {
553
+                st.equal(defaultDecoder, utils.decode);
554
+            }
555
+        });
556
+        st.end();
557
+    });
558
+
559
+    t.test('throws error with wrong decoder', function (st) {
560
+        st['throws'](function () {
561
+            qs.parse({}, { decoder: 'string' });
562
+        }, new TypeError('Decoder has to be a function.'));
563
+        st.end();
564
+    });
565
+
566
+    t.test('does not mutate the options argument', function (st) {
567
+        var options = {};
568
+        qs.parse('a[b]=true', options);
569
+        st.deepEqual(options, {});
570
+        st.end();
571
+    });
572
+
573
+    t.end();
574
+});

+ 597
- 0
node_modules/node-gyp/node_modules/qs/test/stringify.js View File

1
+'use strict';
2
+
3
+var test = require('tape');
4
+var qs = require('../');
5
+var utils = require('../lib/utils');
6
+var iconv = require('iconv-lite');
7
+var SaferBuffer = require('safer-buffer').Buffer;
8
+
9
+test('stringify()', function (t) {
10
+    t.test('stringifies a querystring object', function (st) {
11
+        st.equal(qs.stringify({ a: 'b' }), 'a=b');
12
+        st.equal(qs.stringify({ a: 1 }), 'a=1');
13
+        st.equal(qs.stringify({ a: 1, b: 2 }), 'a=1&b=2');
14
+        st.equal(qs.stringify({ a: 'A_Z' }), 'a=A_Z');
15
+        st.equal(qs.stringify({ a: '€' }), 'a=%E2%82%AC');
16
+        st.equal(qs.stringify({ a: '' }), 'a=%EE%80%80');
17
+        st.equal(qs.stringify({ a: 'א' }), 'a=%D7%90');
18
+        st.equal(qs.stringify({ a: '𐐷' }), 'a=%F0%90%90%B7');
19
+        st.end();
20
+    });
21
+
22
+    t.test('adds query prefix', function (st) {
23
+        st.equal(qs.stringify({ a: 'b' }, { addQueryPrefix: true }), '?a=b');
24
+        st.end();
25
+    });
26
+
27
+    t.test('with query prefix, outputs blank string given an empty object', function (st) {
28
+        st.equal(qs.stringify({}, { addQueryPrefix: true }), '');
29
+        st.end();
30
+    });
31
+
32
+    t.test('stringifies a nested object', function (st) {
33
+        st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
34
+        st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }), 'a%5Bb%5D%5Bc%5D%5Bd%5D=e');
35
+        st.end();
36
+    });
37
+
38
+    t.test('stringifies a nested object with dots notation', function (st) {
39
+        st.equal(qs.stringify({ a: { b: 'c' } }, { allowDots: true }), 'a.b=c');
40
+        st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }, { allowDots: true }), 'a.b.c.d=e');
41
+        st.end();
42
+    });
43
+
44
+    t.test('stringifies an array value', function (st) {
45
+        st.equal(
46
+            qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'indices' }),
47
+            'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d',
48
+            'indices => indices'
49
+        );
50
+        st.equal(
51
+            qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'brackets' }),
52
+            'a%5B%5D=b&a%5B%5D=c&a%5B%5D=d',
53
+            'brackets => brackets'
54
+        );
55
+        st.equal(
56
+            qs.stringify({ a: ['b', 'c', 'd'] }),
57
+            'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d',
58
+            'default => indices'
59
+        );
60
+        st.end();
61
+    });
62
+
63
+    t.test('omits nulls when asked', function (st) {
64
+        st.equal(qs.stringify({ a: 'b', c: null }, { skipNulls: true }), 'a=b');
65
+        st.end();
66
+    });
67
+
68
+    t.test('omits nested nulls when asked', function (st) {
69
+        st.equal(qs.stringify({ a: { b: 'c', d: null } }, { skipNulls: true }), 'a%5Bb%5D=c');
70
+        st.end();
71
+    });
72
+
73
+    t.test('omits array indices when asked', function (st) {
74
+        st.equal(qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }), 'a=b&a=c&a=d');
75
+        st.end();
76
+    });
77
+
78
+    t.test('stringifies a nested array value', function (st) {
79
+        st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'indices' }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d');
80
+        st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'brackets' }), 'a%5Bb%5D%5B%5D=c&a%5Bb%5D%5B%5D=d');
81
+        st.equal(qs.stringify({ a: { b: ['c', 'd'] } }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d');
82
+        st.end();
83
+    });
84
+
85
+    t.test('stringifies a nested array value with dots notation', function (st) {
86
+        st.equal(
87
+            qs.stringify(
88
+                { a: { b: ['c', 'd'] } },
89
+                { allowDots: true, encode: false, arrayFormat: 'indices' }
90
+            ),
91
+            'a.b[0]=c&a.b[1]=d',
92
+            'indices: stringifies with dots + indices'
93
+        );
94
+        st.equal(
95
+            qs.stringify(
96
+                { a: { b: ['c', 'd'] } },
97
+                { allowDots: true, encode: false, arrayFormat: 'brackets' }
98
+            ),
99
+            'a.b[]=c&a.b[]=d',
100
+            'brackets: stringifies with dots + brackets'
101
+        );
102
+        st.equal(
103
+            qs.stringify(
104
+                { a: { b: ['c', 'd'] } },
105
+                { allowDots: true, encode: false }
106
+            ),
107
+            'a.b[0]=c&a.b[1]=d',
108
+            'default: stringifies with dots + indices'
109
+        );
110
+        st.end();
111
+    });
112
+
113
+    t.test('stringifies an object inside an array', function (st) {
114
+        st.equal(
115
+            qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'indices' }),
116
+            'a%5B0%5D%5Bb%5D=c',
117
+            'indices => brackets'
118
+        );
119
+        st.equal(
120
+            qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'brackets' }),
121
+            'a%5B%5D%5Bb%5D=c',
122
+            'brackets => brackets'
123
+        );
124
+        st.equal(
125
+            qs.stringify({ a: [{ b: 'c' }] }),
126
+            'a%5B0%5D%5Bb%5D=c',
127
+            'default => indices'
128
+        );
129
+
130
+        st.equal(
131
+            qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'indices' }),
132
+            'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1',
133
+            'indices => indices'
134
+        );
135
+
136
+        st.equal(
137
+            qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'brackets' }),
138
+            'a%5B%5D%5Bb%5D%5Bc%5D%5B%5D=1',
139
+            'brackets => brackets'
140
+        );
141
+
142
+        st.equal(
143
+            qs.stringify({ a: [{ b: { c: [1] } }] }),
144
+            'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1',
145
+            'default => indices'
146
+        );
147
+
148
+        st.end();
149
+    });
150
+
151
+    t.test('stringifies an array with mixed objects and primitives', function (st) {
152
+        st.equal(
153
+            qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false, arrayFormat: 'indices' }),
154
+            'a[0][b]=1&a[1]=2&a[2]=3',
155
+            'indices => indices'
156
+        );
157
+        st.equal(
158
+            qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false, arrayFormat: 'brackets' }),
159
+            'a[][b]=1&a[]=2&a[]=3',
160
+            'brackets => brackets'
161
+        );
162
+        st.equal(
163
+            qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false }),
164
+            'a[0][b]=1&a[1]=2&a[2]=3',
165
+            'default => indices'
166
+        );
167
+
168
+        st.end();
169
+    });
170
+
171
+    t.test('stringifies an object inside an array with dots notation', function (st) {
172
+        st.equal(
173
+            qs.stringify(
174
+                { a: [{ b: 'c' }] },
175
+                { allowDots: true, encode: false, arrayFormat: 'indices' }
176
+            ),
177
+            'a[0].b=c',
178
+            'indices => indices'
179
+        );
180
+        st.equal(
181
+            qs.stringify(
182
+                { a: [{ b: 'c' }] },
183
+                { allowDots: true, encode: false, arrayFormat: 'brackets' }
184
+            ),
185
+            'a[].b=c',
186
+            'brackets => brackets'
187
+        );
188
+        st.equal(
189
+            qs.stringify(
190
+                { a: [{ b: 'c' }] },
191
+                { allowDots: true, encode: false }
192
+            ),
193
+            'a[0].b=c',
194
+            'default => indices'
195
+        );
196
+
197
+        st.equal(
198
+            qs.stringify(
199
+                { a: [{ b: { c: [1] } }] },
200
+                { allowDots: true, encode: false, arrayFormat: 'indices' }
201
+            ),
202
+            'a[0].b.c[0]=1',
203
+            'indices => indices'
204
+        );
205
+        st.equal(
206
+            qs.stringify(
207
+                { a: [{ b: { c: [1] } }] },
208
+                { allowDots: true, encode: false, arrayFormat: 'brackets' }
209
+            ),
210
+            'a[].b.c[]=1',
211
+            'brackets => brackets'
212
+        );
213
+        st.equal(
214
+            qs.stringify(
215
+                { a: [{ b: { c: [1] } }] },
216
+                { allowDots: true, encode: false }
217
+            ),
218
+            'a[0].b.c[0]=1',
219
+            'default => indices'
220
+        );
221
+
222
+        st.end();
223
+    });
224
+
225
+    t.test('does not omit object keys when indices = false', function (st) {
226
+        st.equal(qs.stringify({ a: [{ b: 'c' }] }, { indices: false }), 'a%5Bb%5D=c');
227
+        st.end();
228
+    });
229
+
230
+    t.test('uses indices notation for arrays when indices=true', function (st) {
231
+        st.equal(qs.stringify({ a: ['b', 'c'] }, { indices: true }), 'a%5B0%5D=b&a%5B1%5D=c');
232
+        st.end();
233
+    });
234
+
235
+    t.test('uses indices notation for arrays when no arrayFormat is specified', function (st) {
236
+        st.equal(qs.stringify({ a: ['b', 'c'] }), 'a%5B0%5D=b&a%5B1%5D=c');
237
+        st.end();
238
+    });
239
+
240
+    t.test('uses indices notation for arrays when no arrayFormat=indices', function (st) {
241
+        st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }), 'a%5B0%5D=b&a%5B1%5D=c');
242
+        st.end();
243
+    });
244
+
245
+    t.test('uses repeat notation for arrays when no arrayFormat=repeat', function (st) {
246
+        st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }), 'a=b&a=c');
247
+        st.end();
248
+    });
249
+
250
+    t.test('uses brackets notation for arrays when no arrayFormat=brackets', function (st) {
251
+        st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }), 'a%5B%5D=b&a%5B%5D=c');
252
+        st.end();
253
+    });
254
+
255
+    t.test('stringifies a complicated object', function (st) {
256
+        st.equal(qs.stringify({ a: { b: 'c', d: 'e' } }), 'a%5Bb%5D=c&a%5Bd%5D=e');
257
+        st.end();
258
+    });
259
+
260
+    t.test('stringifies an empty value', function (st) {
261
+        st.equal(qs.stringify({ a: '' }), 'a=');
262
+        st.equal(qs.stringify({ a: null }, { strictNullHandling: true }), 'a');
263
+
264
+        st.equal(qs.stringify({ a: '', b: '' }), 'a=&b=');
265
+        st.equal(qs.stringify({ a: null, b: '' }, { strictNullHandling: true }), 'a&b=');
266
+
267
+        st.equal(qs.stringify({ a: { b: '' } }), 'a%5Bb%5D=');
268
+        st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: true }), 'a%5Bb%5D');
269
+        st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: false }), 'a%5Bb%5D=');
270
+
271
+        st.end();
272
+    });
273
+
274
+    t.test('stringifies a null object', { skip: !Object.create }, function (st) {
275
+        var obj = Object.create(null);
276
+        obj.a = 'b';
277
+        st.equal(qs.stringify(obj), 'a=b');
278
+        st.end();
279
+    });
280
+
281
+    t.test('returns an empty string for invalid input', function (st) {
282
+        st.equal(qs.stringify(undefined), '');
283
+        st.equal(qs.stringify(false), '');
284
+        st.equal(qs.stringify(null), '');
285
+        st.equal(qs.stringify(''), '');
286
+        st.end();
287
+    });
288
+
289
+    t.test('stringifies an object with a null object as a child', { skip: !Object.create }, function (st) {
290
+        var obj = { a: Object.create(null) };
291
+
292
+        obj.a.b = 'c';
293
+        st.equal(qs.stringify(obj), 'a%5Bb%5D=c');
294
+        st.end();
295
+    });
296
+
297
+    t.test('drops keys with a value of undefined', function (st) {
298
+        st.equal(qs.stringify({ a: undefined }), '');
299
+
300
+        st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: true }), 'a%5Bc%5D');
301
+        st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: false }), 'a%5Bc%5D=');
302
+        st.equal(qs.stringify({ a: { b: undefined, c: '' } }), 'a%5Bc%5D=');
303
+        st.end();
304
+    });
305
+
306
+    t.test('url encodes values', function (st) {
307
+        st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
308
+        st.end();
309
+    });
310
+
311
+    t.test('stringifies a date', function (st) {
312
+        var now = new Date();
313
+        var str = 'a=' + encodeURIComponent(now.toISOString());
314
+        st.equal(qs.stringify({ a: now }), str);
315
+        st.end();
316
+    });
317
+
318
+    t.test('stringifies the weird object from qs', function (st) {
319
+        st.equal(qs.stringify({ 'my weird field': '~q1!2"\'w$5&7/z8)?' }), 'my%20weird%20field=~q1%212%22%27w%245%267%2Fz8%29%3F');
320
+        st.end();
321
+    });
322
+
323
+    t.test('skips properties that are part of the object prototype', function (st) {
324
+        Object.prototype.crash = 'test';
325
+        st.equal(qs.stringify({ a: 'b' }), 'a=b');
326
+        st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
327
+        delete Object.prototype.crash;
328
+        st.end();
329
+    });
330
+
331
+    t.test('stringifies boolean values', function (st) {
332
+        st.equal(qs.stringify({ a: true }), 'a=true');
333
+        st.equal(qs.stringify({ a: { b: true } }), 'a%5Bb%5D=true');
334
+        st.equal(qs.stringify({ b: false }), 'b=false');
335
+        st.equal(qs.stringify({ b: { c: false } }), 'b%5Bc%5D=false');
336
+        st.end();
337
+    });
338
+
339
+    t.test('stringifies buffer values', function (st) {
340
+        st.equal(qs.stringify({ a: SaferBuffer.from('test') }), 'a=test');
341
+        st.equal(qs.stringify({ a: { b: SaferBuffer.from('test') } }), 'a%5Bb%5D=test');
342
+        st.end();
343
+    });
344
+
345
+    t.test('stringifies an object using an alternative delimiter', function (st) {
346
+        st.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d');
347
+        st.end();
348
+    });
349
+
350
+    t.test('doesn\'t blow up when Buffer global is missing', function (st) {
351
+        var tempBuffer = global.Buffer;
352
+        delete global.Buffer;
353
+        var result = qs.stringify({ a: 'b', c: 'd' });
354
+        global.Buffer = tempBuffer;
355
+        st.equal(result, 'a=b&c=d');
356
+        st.end();
357
+    });
358
+
359
+    t.test('selects properties when filter=array', function (st) {
360
+        st.equal(qs.stringify({ a: 'b' }, { filter: ['a'] }), 'a=b');
361
+        st.equal(qs.stringify({ a: 1 }, { filter: [] }), '');
362
+
363
+        st.equal(
364
+            qs.stringify(
365
+                { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' },
366
+                { filter: ['a', 'b', 0, 2], arrayFormat: 'indices' }
367
+            ),
368
+            'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3',
369
+            'indices => indices'
370
+        );
371
+        st.equal(
372
+            qs.stringify(
373
+                { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' },
374
+                { filter: ['a', 'b', 0, 2], arrayFormat: 'brackets' }
375
+            ),
376
+            'a%5Bb%5D%5B%5D=1&a%5Bb%5D%5B%5D=3',
377
+            'brackets => brackets'
378
+        );
379
+        st.equal(
380
+            qs.stringify(
381
+                { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' },
382
+                { filter: ['a', 'b', 0, 2] }
383
+            ),
384
+            'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3',
385
+            'default => indices'
386
+        );
387
+
388
+        st.end();
389
+    });
390
+
391
+    t.test('supports custom representations when filter=function', function (st) {
392
+        var calls = 0;
393
+        var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } };
394
+        var filterFunc = function (prefix, value) {
395
+            calls += 1;
396
+            if (calls === 1) {
397
+                st.equal(prefix, '', 'prefix is empty');
398
+                st.equal(value, obj);
399
+            } else if (prefix === 'c') {
400
+                return void 0;
401
+            } else if (value instanceof Date) {
402
+                st.equal(prefix, 'e[f]');
403
+                return value.getTime();
404
+            }
405
+            return value;
406
+        };
407
+
408
+        st.equal(qs.stringify(obj, { filter: filterFunc }), 'a=b&e%5Bf%5D=1257894000000');
409
+        st.equal(calls, 5);
410
+        st.end();
411
+    });
412
+
413
+    t.test('can disable uri encoding', function (st) {
414
+        st.equal(qs.stringify({ a: 'b' }, { encode: false }), 'a=b');
415
+        st.equal(qs.stringify({ a: { b: 'c' } }, { encode: false }), 'a[b]=c');
416
+        st.equal(qs.stringify({ a: 'b', c: null }, { strictNullHandling: true, encode: false }), 'a=b&c');
417
+        st.end();
418
+    });
419
+
420
+    t.test('can sort the keys', function (st) {
421
+        var sort = function (a, b) {
422
+            return a.localeCompare(b);
423
+        };
424
+        st.equal(qs.stringify({ a: 'c', z: 'y', b: 'f' }, { sort: sort }), 'a=c&b=f&z=y');
425
+        st.equal(qs.stringify({ a: 'c', z: { j: 'a', i: 'b' }, b: 'f' }, { sort: sort }), 'a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a');
426
+        st.end();
427
+    });
428
+
429
+    t.test('can sort the keys at depth 3 or more too', function (st) {
430
+        var sort = function (a, b) {
431
+            return a.localeCompare(b);
432
+        };
433
+        st.equal(
434
+            qs.stringify(
435
+                { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' },
436
+                { sort: sort, encode: false }
437
+            ),
438
+            'a=a&b=b&z[zi][zia]=zia&z[zi][zib]=zib&z[zj][zja]=zja&z[zj][zjb]=zjb'
439
+        );
440
+        st.equal(
441
+            qs.stringify(
442
+                { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' },
443
+                { sort: null, encode: false }
444
+            ),
445
+            'a=a&z[zj][zjb]=zjb&z[zj][zja]=zja&z[zi][zib]=zib&z[zi][zia]=zia&b=b'
446
+        );
447
+        st.end();
448
+    });
449
+
450
+    t.test('can stringify with custom encoding', function (st) {
451
+        st.equal(qs.stringify({ 県: '大阪府', '': '' }, {
452
+            encoder: function (str) {
453
+                if (str.length === 0) {
454
+                    return '';
455
+                }
456
+                var buf = iconv.encode(str, 'shiftjis');
457
+                var result = [];
458
+                for (var i = 0; i < buf.length; ++i) {
459
+                    result.push(buf.readUInt8(i).toString(16));
460
+                }
461
+                return '%' + result.join('%');
462
+            }
463
+        }), '%8c%a7=%91%e5%8d%e3%95%7b&=');
464
+        st.end();
465
+    });
466
+
467
+    t.test('receives the default encoder as a second argument', function (st) {
468
+        st.plan(2);
469
+        qs.stringify({ a: 1 }, {
470
+            encoder: function (str, defaultEncoder) {
471
+                st.equal(defaultEncoder, utils.encode);
472
+            }
473
+        });
474
+        st.end();
475
+    });
476
+
477
+    t.test('throws error with wrong encoder', function (st) {
478
+        st['throws'](function () {
479
+            qs.stringify({}, { encoder: 'string' });
480
+        }, new TypeError('Encoder has to be a function.'));
481
+        st.end();
482
+    });
483
+
484
+    t.test('can use custom encoder for a buffer object', { skip: typeof Buffer === 'undefined' }, function (st) {
485
+        st.equal(qs.stringify({ a: SaferBuffer.from([1]) }, {
486
+            encoder: function (buffer) {
487
+                if (typeof buffer === 'string') {
488
+                    return buffer;
489
+                }
490
+                return String.fromCharCode(buffer.readUInt8(0) + 97);
491
+            }
492
+        }), 'a=b');
493
+        st.end();
494
+    });
495
+
496
+    t.test('serializeDate option', function (st) {
497
+        var date = new Date();
498
+        st.equal(
499
+            qs.stringify({ a: date }),
500
+            'a=' + date.toISOString().replace(/:/g, '%3A'),
501
+            'default is toISOString'
502
+        );
503
+
504
+        var mutatedDate = new Date();
505
+        mutatedDate.toISOString = function () {
506
+            throw new SyntaxError();
507
+        };
508
+        st['throws'](function () {
509
+            mutatedDate.toISOString();
510
+        }, SyntaxError);
511
+        st.equal(
512
+            qs.stringify({ a: mutatedDate }),
513
+            'a=' + Date.prototype.toISOString.call(mutatedDate).replace(/:/g, '%3A'),
514
+            'toISOString works even when method is not locally present'
515
+        );
516
+
517
+        var specificDate = new Date(6);
518
+        st.equal(
519
+            qs.stringify(
520
+                { a: specificDate },
521
+                { serializeDate: function (d) { return d.getTime() * 7; } }
522
+            ),
523
+            'a=42',
524
+            'custom serializeDate function called'
525
+        );
526
+
527
+        st.end();
528
+    });
529
+
530
+    t.test('RFC 1738 spaces serialization', function (st) {
531
+        st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC1738 }), 'a=b+c');
532
+        st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC1738 }), 'a+b=c+d');
533
+        st.end();
534
+    });
535
+
536
+    t.test('RFC 3986 spaces serialization', function (st) {
537
+        st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC3986 }), 'a=b%20c');
538
+        st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC3986 }), 'a%20b=c%20d');
539
+        st.end();
540
+    });
541
+
542
+    t.test('Backward compatibility to RFC 3986', function (st) {
543
+        st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
544
+        st.end();
545
+    });
546
+
547
+    t.test('Edge cases and unknown formats', function (st) {
548
+        ['UFO1234', false, 1234, null, {}, []].forEach(
549
+            function (format) {
550
+                st['throws'](
551
+                    function () {
552
+                        qs.stringify({ a: 'b c' }, { format: format });
553
+                    },
554
+                    new TypeError('Unknown format option provided.')
555
+                );
556
+            }
557
+        );
558
+        st.end();
559
+    });
560
+
561
+    t.test('encodeValuesOnly', function (st) {
562
+        st.equal(
563
+            qs.stringify(
564
+                { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] },
565
+                { encodeValuesOnly: true }
566
+            ),
567
+            'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h'
568
+        );
569
+        st.equal(
570
+            qs.stringify(
571
+                { a: 'b', c: ['d', 'e'], f: [['g'], ['h']] }
572
+            ),
573
+            'a=b&c%5B0%5D=d&c%5B1%5D=e&f%5B0%5D%5B0%5D=g&f%5B1%5D%5B0%5D=h'
574
+        );
575
+        st.end();
576
+    });
577
+
578
+    t.test('encodeValuesOnly - strictNullHandling', function (st) {
579
+        st.equal(
580
+            qs.stringify(
581
+                { a: { b: null } },
582
+                { encodeValuesOnly: true, strictNullHandling: true }
583
+            ),
584
+            'a[b]'
585
+        );
586
+        st.end();
587
+    });
588
+
589
+    t.test('does not mutate the options argument', function (st) {
590
+        var options = {};
591
+        qs.stringify({}, options);
592
+        st.deepEqual(options, {});
593
+        st.end();
594
+    });
595
+
596
+    t.end();
597
+});

+ 34
- 0
node_modules/node-gyp/node_modules/qs/test/utils.js View File

1
+'use strict';
2
+
3
+var test = require('tape');
4
+var utils = require('../lib/utils');
5
+
6
+test('merge()', function (t) {
7
+    t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key');
8
+
9
+    var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } });
10
+    t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into an array');
11
+
12
+    var twoMerged = utils.merge({ foo: ['bar', { first: '123' }] }, { foo: { second: '456' } });
13
+    t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standalone and two objects into an array');
14
+
15
+    var sandwiched = utils.merge({ foo: ['bar', { first: '123', second: '456' }] }, { foo: 'baz' });
16
+    t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an object sandwiched by two standalones into an array');
17
+
18
+    var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] });
19
+    t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] });
20
+
21
+    t.end();
22
+});
23
+
24
+test('assign()', function (t) {
25
+    var target = { a: 1, b: 2 };
26
+    var source = { b: 3, c: 4 };
27
+    var result = utils.assign(target, source);
28
+
29
+    t.equal(result, target, 'returns the target');
30
+    t.deepEqual(target, { a: 1, b: 3, c: 4 }, 'target and source are merged');
31
+    t.deepEqual(source, { b: 3, c: 4 }, 'source is untouched');
32
+
33
+    t.end();
34
+});

+ 709
- 0
node_modules/node-gyp/node_modules/request/CHANGELOG.md View File

1
+## Change Log
2
+
3
+### v2.87.0 (2018/05/21)
4
+- [#2943](https://github.com/request/request/pull/2943) Replace hawk dependency with a local implemenation (#2943) (@hueniverse)
5
+
6
+### v2.86.0 (2018/05/15)
7
+- [#2885](https://github.com/request/request/pull/2885) Remove redundant code (for Node.js 0.9.4 and below) and dependency (@ChALkeR)
8
+- [#2942](https://github.com/request/request/pull/2942) Make Test GREEN Again! (@simov)
9
+- [#2923](https://github.com/request/request/pull/2923) Alterations for failing CI tests (@gareth-robinson)
10
+
11
+### v2.85.0 (2018/03/12)
12
+- [#2880](https://github.com/request/request/pull/2880) Revert "Update hawk to 7.0.7 (#2880)" (@simov)
13
+
14
+### v2.84.0 (2018/03/12)
15
+- [#2793](https://github.com/request/request/pull/2793) Fixed calculation of oauth_body_hash, issue #2792 (@dvishniakov)
16
+- [#2880](https://github.com/request/request/pull/2880) Update hawk to 7.0.7 (#2880) (@kornel-kedzierski)
17
+
18
+### v2.83.0 (2017/09/27)
19
+- [#2776](https://github.com/request/request/pull/2776) Updating tough-cookie due to security fix. (#2776) (@karlnorling)
20
+
21
+### v2.82.0 (2017/09/19)
22
+- [#2703](https://github.com/request/request/pull/2703) Add Node.js v8 to Travis CI (@ryysud)
23
+- [#2751](https://github.com/request/request/pull/2751) Update of hawk and qs to latest version (#2751) (@Olivier-Moreau)
24
+- [#2658](https://github.com/request/request/pull/2658) Fixed some text in README.md (#2658) (@Marketionist)
25
+- [#2635](https://github.com/request/request/pull/2635) chore(package): update aws-sign2 to version 0.7.0 (#2635) (@greenkeeperio-bot)
26
+- [#2641](https://github.com/request/request/pull/2641) Update README to simplify & update convenience methods (#2641) (@FredKSchott)
27
+- [#2541](https://github.com/request/request/pull/2541) Add convenience method for HTTP OPTIONS (#2541) (@jamesseanwright)
28
+- [#2605](https://github.com/request/request/pull/2605) Add promise support section to README (#2605) (@FredKSchott)
29
+- [#2579](https://github.com/request/request/pull/2579) refactor(lint): replace eslint with standard (#2579) (@ahmadnassri)
30
+- [#2598](https://github.com/request/request/pull/2598) Update codecov to version 2.0.2 🚀 (@greenkeeperio-bot)
31
+- [#2590](https://github.com/request/request/pull/2590) Adds test-timing keepAlive test (@nicjansma)
32
+- [#2589](https://github.com/request/request/pull/2589) fix tabulation on request example README.MD (@odykyi)
33
+- [#2594](https://github.com/request/request/pull/2594) chore(dependencies): har-validator to 5.x [removes babel dep] (@ahmadnassri)
34
+
35
+### v2.81.0 (2017/03/09)
36
+- [#2584](https://github.com/request/request/pull/2584) Security issue: Upgrade qs to version 6.4.0 (@sergejmueller)
37
+- [#2578](https://github.com/request/request/pull/2578) safe-buffer doesn't zero-fill by default, its just a polyfill. (#2578) (@mikeal)
38
+- [#2566](https://github.com/request/request/pull/2566) Timings: Tracks 'lookup', adds 'wait' time, fixes connection re-use (#2566) (@nicjansma)
39
+- [#2574](https://github.com/request/request/pull/2574) Migrating to safe-buffer for improved security. (@mikeal)
40
+- [#2573](https://github.com/request/request/pull/2573) fixes #2572 (@ahmadnassri)
41
+
42
+### v2.80.0 (2017/03/04)
43
+- [#2571](https://github.com/request/request/pull/2571) Correctly format the Host header for IPv6 addresses (@JamesMGreene)
44
+- [#2558](https://github.com/request/request/pull/2558) Update README.md example snippet (@FredKSchott)
45
+- [#2221](https://github.com/request/request/pull/2221) Adding a simple Response object reference in argument specification (@calamarico)
46
+- [#2452](https://github.com/request/request/pull/2452) Adds .timings array with DNC, TCP, request and response times (@nicjansma)
47
+- [#2553](https://github.com/request/request/pull/2553) add ISSUE_TEMPLATE, move PR template (@FredKSchott)
48
+- [#2539](https://github.com/request/request/pull/2539) Create PULL_REQUEST_TEMPLATE.md (@FredKSchott)
49
+- [#2524](https://github.com/request/request/pull/2524) Update caseless to version 0.12.0 🚀 (@greenkeeperio-bot)
50
+- [#2460](https://github.com/request/request/pull/2460) Fix wrong MIME type in example (@OwnageIsMagic)
51
+- [#2514](https://github.com/request/request/pull/2514) Change tags to keywords in package.json (@humphd)
52
+- [#2492](https://github.com/request/request/pull/2492) More lenient gzip decompression (@addaleax)
53
+
54
+### v2.79.0 (2016/11/18)
55
+- [#2368](https://github.com/request/request/pull/2368) Fix typeof check in test-pool.js (@forivall)
56
+- [#2394](https://github.com/request/request/pull/2394) Use `files` in package.json (@SimenB)
57
+- [#2463](https://github.com/request/request/pull/2463) AWS support for session tokens for temporary credentials (@simov)
58
+- [#2467](https://github.com/request/request/pull/2467) Migrate to uuid (@simov, @antialias)
59
+- [#2459](https://github.com/request/request/pull/2459) Update taper to version 0.5.0 🚀 (@greenkeeperio-bot)
60
+- [#2448](https://github.com/request/request/pull/2448) Make other connect timeout test more reliable too (@mscdex)
61
+
62
+### v2.78.0 (2016/11/03)
63
+- [#2447](https://github.com/request/request/pull/2447) Always set request timeout on keep-alive connections (@mscdex)
64
+
65
+### v2.77.0 (2016/11/03)
66
+- [#2439](https://github.com/request/request/pull/2439) Fix socket 'connect' listener handling (@mscdex)
67
+- [#2442](https://github.com/request/request/pull/2442) 👻😱 Node.js 0.10 is unmaintained 😱👻 (@greenkeeperio-bot)
68
+- [#2435](https://github.com/request/request/pull/2435) Add followOriginalHttpMethod to redirect to original HTTP method (@kirrg001)
69
+- [#2414](https://github.com/request/request/pull/2414) Improve test-timeout reliability (@mscdex)
70
+
71
+### v2.76.0 (2016/10/25)
72
+- [#2424](https://github.com/request/request/pull/2424) Handle buffers directly instead of using "bl" (@zertosh)
73
+- [#2415](https://github.com/request/request/pull/2415) Re-enable timeout tests on Travis + other fixes (@mscdex)
74
+- [#2431](https://github.com/request/request/pull/2431) Improve timeouts accuracy and node v6.8.0+ compatibility (@mscdex, @greenkeeperio-bot)
75
+- [#2428](https://github.com/request/request/pull/2428) Update qs to version 6.3.0 🚀 (@greenkeeperio-bot)
76
+- [#2420](https://github.com/request/request/pull/2420) change .on to .once, remove possible memory leaks (@duereg)
77
+- [#2426](https://github.com/request/request/pull/2426) Remove "isFunction" helper in favor of "typeof" check (@zertosh)
78
+- [#2425](https://github.com/request/request/pull/2425) Simplify "defer" helper creation (@zertosh)
79
+- [#2402](https://github.com/request/request/pull/2402) form-data@2.1.1 breaks build 🚨 (@greenkeeperio-bot)
80
+- [#2393](https://github.com/request/request/pull/2393) Update form-data to version 2.1.0 🚀 (@greenkeeperio-bot)
81
+
82
+### v2.75.0 (2016/09/17)
83
+- [#2381](https://github.com/request/request/pull/2381) Drop support for Node 0.10 (@simov)
84
+- [#2377](https://github.com/request/request/pull/2377) Update form-data to version 2.0.0 🚀 (@greenkeeperio-bot)
85
+- [#2353](https://github.com/request/request/pull/2353) Add greenkeeper ignored packages (@simov)
86
+- [#2351](https://github.com/request/request/pull/2351) Update karma-tap to version 3.0.1 🚀 (@greenkeeperio-bot)
87
+- [#2348](https://github.com/request/request/pull/2348) form-data@1.0.1 breaks build 🚨 (@greenkeeperio-bot)
88
+- [#2349](https://github.com/request/request/pull/2349) Check error type instead of string (@scotttrinh)
89
+
90
+### v2.74.0 (2016/07/22)
91
+- [#2295](https://github.com/request/request/pull/2295) Update tough-cookie to 2.3.0 (@stash-sfdc)
92
+- [#2280](https://github.com/request/request/pull/2280) Update karma-tap to version 2.0.1 🚀 (@greenkeeperio-bot)
93
+
94
+### v2.73.0 (2016/07/09)
95
+- [#2240](https://github.com/request/request/pull/2240) Remove connectionErrorHandler to fix #1903 (@zarenner)
96
+- [#2251](https://github.com/request/request/pull/2251) tape@4.6.0 breaks build 🚨 (@greenkeeperio-bot)
97
+- [#2225](https://github.com/request/request/pull/2225) Update docs (@ArtskydJ)
98
+- [#2203](https://github.com/request/request/pull/2203) Update browserify to version 13.0.1 🚀 (@greenkeeperio-bot)
99
+- [#2275](https://github.com/request/request/pull/2275) Update karma to version 1.1.1 🚀 (@greenkeeperio-bot)
100
+- [#2204](https://github.com/request/request/pull/2204) Add codecov.yml and disable PR comments (@simov)
101
+- [#2212](https://github.com/request/request/pull/2212) Fix link to http.IncomingMessage documentation (@nazieb)
102
+- [#2208](https://github.com/request/request/pull/2208) Update to form-data RC4 and pass null values to it (@simov)
103
+- [#2207](https://github.com/request/request/pull/2207) Move aws4 require statement to the top (@simov)
104
+- [#2199](https://github.com/request/request/pull/2199) Update karma-coverage to version 1.0.0 🚀 (@greenkeeperio-bot)
105
+- [#2206](https://github.com/request/request/pull/2206) Update qs to version 6.2.0 🚀 (@greenkeeperio-bot)
106
+- [#2205](https://github.com/request/request/pull/2205) Use server-destory to close hanging sockets in tests (@simov)
107
+- [#2200](https://github.com/request/request/pull/2200) Update karma-cli to version 1.0.0 🚀 (@greenkeeperio-bot)
108
+
109
+### v2.72.0 (2016/04/17)
110
+- [#2176](https://github.com/request/request/pull/2176) Do not try to pipe Gzip responses with no body (@simov)
111
+- [#2175](https://github.com/request/request/pull/2175) Add 'delete' alias for the 'del' API method (@simov, @MuhanZou)
112
+- [#2172](https://github.com/request/request/pull/2172) Add support for deflate content encoding (@czardoz)
113
+- [#2169](https://github.com/request/request/pull/2169) Add callback option (@simov)
114
+- [#2165](https://github.com/request/request/pull/2165) Check for self.req existence inside the write method (@simov)
115
+- [#2167](https://github.com/request/request/pull/2167) Fix TravisCI badge reference master branch (@a0viedo)
116
+
117
+### v2.71.0 (2016/04/12)
118
+- [#2164](https://github.com/request/request/pull/2164) Catch errors from the underlying http module (@simov)
119
+
120
+### v2.70.0 (2016/04/05)
121
+- [#2147](https://github.com/request/request/pull/2147) Update eslint to version 2.5.3 🚀 (@simov, @greenkeeperio-bot)
122
+- [#2009](https://github.com/request/request/pull/2009) Support JSON stringify replacer argument. (@elyobo)
123
+- [#2142](https://github.com/request/request/pull/2142) Update eslint to version 2.5.1 🚀 (@greenkeeperio-bot)
124
+- [#2128](https://github.com/request/request/pull/2128) Update browserify-istanbul to version 2.0.0 🚀 (@greenkeeperio-bot)
125
+- [#2115](https://github.com/request/request/pull/2115) Update eslint to version 2.3.0 🚀 (@simov, @greenkeeperio-bot)
126
+- [#2089](https://github.com/request/request/pull/2089) Fix badges (@simov)
127
+- [#2092](https://github.com/request/request/pull/2092) Update browserify-istanbul to version 1.0.0 🚀 (@greenkeeperio-bot)
128
+- [#2079](https://github.com/request/request/pull/2079) Accept read stream as body option (@simov)
129
+- [#2070](https://github.com/request/request/pull/2070) Update bl to version 1.1.2 🚀 (@greenkeeperio-bot)
130
+- [#2063](https://github.com/request/request/pull/2063) Up bluebird and oauth-sign (@simov)
131
+- [#2058](https://github.com/request/request/pull/2058) Karma fixes for latest versions (@eiriksm)
132
+- [#2057](https://github.com/request/request/pull/2057) Update contributing guidelines (@simov)
133
+- [#2054](https://github.com/request/request/pull/2054) Update qs to version 6.1.0 🚀 (@greenkeeperio-bot)
134
+
135
+### v2.69.0 (2016/01/27)
136
+- [#2041](https://github.com/request/request/pull/2041) restore aws4 as regular dependency (@rmg)
137
+
138
+### v2.68.0 (2016/01/27)
139
+- [#2036](https://github.com/request/request/pull/2036) Add AWS Signature Version 4 (@simov, @mirkods)
140
+- [#2022](https://github.com/request/request/pull/2022) Convert numeric multipart bodies to string (@simov, @feross)
141
+- [#2024](https://github.com/request/request/pull/2024) Update har-validator dependency for nsp advisory #76 (@TylerDixon)
142
+- [#2016](https://github.com/request/request/pull/2016) Update qs to version 6.0.2 🚀 (@greenkeeperio-bot)
143
+- [#2007](https://github.com/request/request/pull/2007) Use the `extend` module instead of util._extend (@simov)
144
+- [#2003](https://github.com/request/request/pull/2003) Update browserify to version 13.0.0 🚀 (@greenkeeperio-bot)
145
+- [#1989](https://github.com/request/request/pull/1989) Update buffer-equal to version 1.0.0 🚀 (@greenkeeperio-bot)
146
+- [#1956](https://github.com/request/request/pull/1956) Check form-data content-length value before setting up the header (@jongyoonlee)
147
+- [#1958](https://github.com/request/request/pull/1958) Use IncomingMessage.destroy method (@simov)
148
+- [#1952](https://github.com/request/request/pull/1952) Adds example for Tor proxy (@prometheansacrifice)
149
+- [#1943](https://github.com/request/request/pull/1943) Update eslint to version 1.10.3 🚀 (@simov, @greenkeeperio-bot)
150
+- [#1924](https://github.com/request/request/pull/1924) Update eslint to version 1.10.1 🚀 (@greenkeeperio-bot)
151
+- [#1915](https://github.com/request/request/pull/1915) Remove content-length and transfer-encoding headers from defaultProxyHeaderWhiteList (@yaxia)
152
+
153
+### v2.67.0 (2015/11/19)
154
+- [#1913](https://github.com/request/request/pull/1913) Update http-signature to version 1.1.0 🚀 (@greenkeeperio-bot)
155
+
156
+### v2.66.0 (2015/11/18)
157
+- [#1906](https://github.com/request/request/pull/1906) Update README URLs based on HTTP redirects (@ReadmeCritic)
158
+- [#1905](https://github.com/request/request/pull/1905) Convert typed arrays into regular buffers (@simov)
159
+- [#1902](https://github.com/request/request/pull/1902) node-uuid@1.4.7 breaks build 🚨 (@greenkeeperio-bot)
160
+- [#1894](https://github.com/request/request/pull/1894) Fix tunneling after redirection from https (Original: #1881) (@simov, @falms)
161
+- [#1893](https://github.com/request/request/pull/1893) Update eslint to version 1.9.0 🚀 (@greenkeeperio-bot)
162
+- [#1852](https://github.com/request/request/pull/1852) Update eslint to version 1.7.3 🚀 (@simov, @greenkeeperio-bot, @paulomcnally, @michelsalib, @arbaaz, @nsklkn, @LoicMahieu, @JoshWillik, @jzaefferer, @ryanwholey, @djchie, @thisconnect, @mgenereu, @acroca, @Sebmaster, @KoltesDigital)
163
+- [#1876](https://github.com/request/request/pull/1876) Implement loose matching for har mime types (@simov)
164
+- [#1875](https://github.com/request/request/pull/1875) Update bluebird to version 3.0.2 🚀 (@simov, @greenkeeperio-bot)
165
+- [#1871](https://github.com/request/request/pull/1871) Update browserify to version 12.0.1 🚀 (@greenkeeperio-bot)
166
+- [#1866](https://github.com/request/request/pull/1866) Add missing quotes on x-token property in README (@miguelmota)
167
+- [#1874](https://github.com/request/request/pull/1874) Fix typo in README.md (@gswalden)
168
+- [#1860](https://github.com/request/request/pull/1860) Improve referer header tests and docs (@simov)
169
+- [#1861](https://github.com/request/request/pull/1861) Remove redundant call to Stream constructor (@watson)
170
+- [#1857](https://github.com/request/request/pull/1857) Fix Referer header to point to the original host name (@simov)
171
+- [#1850](https://github.com/request/request/pull/1850) Update karma-coverage to version 0.5.3 🚀 (@greenkeeperio-bot)
172
+- [#1847](https://github.com/request/request/pull/1847) Use node's latest version when building (@simov)
173
+- [#1836](https://github.com/request/request/pull/1836) Tunnel: fix wrong property name (@KoltesDigital)
174
+- [#1820](https://github.com/request/request/pull/1820) Set href as request.js uses it (@mgenereu)
175
+- [#1840](https://github.com/request/request/pull/1840) Update http-signature to version 1.0.2 🚀 (@greenkeeperio-bot)
176
+- [#1845](https://github.com/request/request/pull/1845) Update istanbul to version 0.4.0 🚀 (@greenkeeperio-bot)
177
+
178
+### v2.65.0 (2015/10/11)
179
+- [#1833](https://github.com/request/request/pull/1833) Update aws-sign2 to version 0.6.0 🚀 (@greenkeeperio-bot)
180
+- [#1811](https://github.com/request/request/pull/1811) Enable loose cookie parsing in tough-cookie (@Sebmaster)
181
+- [#1830](https://github.com/request/request/pull/1830) Bring back tilde ranges for all dependencies (@simov)
182
+- [#1821](https://github.com/request/request/pull/1821) Implement support for RFC 2617 MD5-sess algorithm. (@BigDSK)
183
+- [#1828](https://github.com/request/request/pull/1828) Updated qs dependency to 5.2.0 (@acroca)
184
+- [#1818](https://github.com/request/request/pull/1818) Extract `readResponseBody` method out of `onRequestResponse` (@pvoisin)
185
+- [#1819](https://github.com/request/request/pull/1819) Run stringify once (@mgenereu)
186
+- [#1814](https://github.com/request/request/pull/1814) Updated har-validator to version 2.0.2 (@greenkeeperio-bot)
187
+- [#1807](https://github.com/request/request/pull/1807) Updated tough-cookie to version 2.1.0 (@greenkeeperio-bot)
188
+- [#1800](https://github.com/request/request/pull/1800) Add caret ranges for devDependencies, except eslint (@simov)
189
+- [#1799](https://github.com/request/request/pull/1799) Updated karma-browserify to version 4.4.0 (@greenkeeperio-bot)
190
+- [#1797](https://github.com/request/request/pull/1797) Updated tape to version 4.2.0 (@greenkeeperio-bot)
191
+- [#1788](https://github.com/request/request/pull/1788) Pinned all dependencies (@greenkeeperio-bot)
192
+
193
+### v2.64.0 (2015/09/25)
194
+- [#1787](https://github.com/request/request/pull/1787) npm ignore examples, release.sh and disabled.appveyor.yml (@thisconnect)
195
+- [#1775](https://github.com/request/request/pull/1775) Fix typo in README.md (@djchie)
196
+- [#1776](https://github.com/request/request/pull/1776) Changed word 'conjuction' to read 'conjunction' in README.md (@ryanwholey)
197
+- [#1785](https://github.com/request/request/pull/1785) Revert: Set default application/json content-type when using json option #1772 (@simov)
198
+
199
+### v2.63.0 (2015/09/21)
200
+- [#1772](https://github.com/request/request/pull/1772) Set default application/json content-type when using json option (@jzaefferer)
201
+
202
+### v2.62.0 (2015/09/15)
203
+- [#1768](https://github.com/request/request/pull/1768) Add node 4.0 to the list of build targets (@simov)
204
+- [#1767](https://github.com/request/request/pull/1767) Query strings now cooperate with unix sockets (@JoshWillik)
205
+- [#1750](https://github.com/request/request/pull/1750) Revert doc about installation of tough-cookie added in #884 (@LoicMahieu)
206
+- [#1746](https://github.com/request/request/pull/1746) Missed comma in Readme (@nsklkn)
207
+- [#1743](https://github.com/request/request/pull/1743) Fix options not being initialized in defaults method (@simov)
208
+
209
+### v2.61.0 (2015/08/19)
210
+- [#1721](https://github.com/request/request/pull/1721) Minor fix in README.md (@arbaaz)
211
+- [#1733](https://github.com/request/request/pull/1733) Avoid useless Buffer transformation (@michelsalib)
212
+- [#1726](https://github.com/request/request/pull/1726) Update README.md (@paulomcnally)
213
+- [#1715](https://github.com/request/request/pull/1715) Fix forever option in node > 0.10 #1709 (@calibr)
214
+- [#1716](https://github.com/request/request/pull/1716) Do not create Buffer from Object in setContentLength(iojs v3.0 issue) (@calibr)
215
+- [#1711](https://github.com/request/request/pull/1711) Add ability to detect connect timeouts (@kevinburke)
216
+- [#1712](https://github.com/request/request/pull/1712) Set certificate expiration to August 2, 2018 (@kevinburke)
217
+- [#1700](https://github.com/request/request/pull/1700) debug() when JSON.parse() on a response body fails (@phillipj)
218
+
219
+### v2.60.0 (2015/07/21)
220
+- [#1687](https://github.com/request/request/pull/1687) Fix caseless bug - content-type not being set for multipart/form-data (@simov, @garymathews)
221
+
222
+### v2.59.0 (2015/07/20)
223
+- [#1671](https://github.com/request/request/pull/1671) Add tests and docs for using the agent, agentClass, agentOptions and forever options.
224
+ Forever option defaults to using http(s).Agent in node 0.12+ (@simov)
225
+- [#1679](https://github.com/request/request/pull/1679) Fix - do not remove OAuth param when using OAuth realm (@simov, @jhalickman)
226
+- [#1668](https://github.com/request/request/pull/1668) updated dependencies (@deamme)
227
+- [#1656](https://github.com/request/request/pull/1656) Fix form method (@simov)
228
+- [#1651](https://github.com/request/request/pull/1651) Preserve HEAD method when using followAllRedirects (@simov)
229
+- [#1652](https://github.com/request/request/pull/1652) Update `encoding` option documentation in README.md (@daniel347x)
230
+- [#1650](https://github.com/request/request/pull/1650) Allow content-type overriding when using the `form` option (@simov)
231
+- [#1646](https://github.com/request/request/pull/1646) Clarify the nature of setting `ca` in `agentOptions` (@jeffcharles)
232
+
233
+### v2.58.0 (2015/06/16)
234
+- [#1638](https://github.com/request/request/pull/1638) Use the `extend` module to deep extend in the defaults method (@simov)
235
+- [#1631](https://github.com/request/request/pull/1631) Move tunnel logic into separate module (@simov)
236
+- [#1634](https://github.com/request/request/pull/1634) Fix OAuth query transport_method (@simov)
237
+- [#1603](https://github.com/request/request/pull/1603) Add codecov (@simov)
238
+
239
+### v2.57.0 (2015/05/31)
240
+- [#1615](https://github.com/request/request/pull/1615) Replace '.client' with '.socket' as the former was deprecated in 2.2.0. (@ChALkeR)
241
+
242
+### v2.56.0 (2015/05/28)
243
+- [#1610](https://github.com/request/request/pull/1610) Bump module dependencies (@simov)
244
+- [#1600](https://github.com/request/request/pull/1600) Extract the querystring logic into separate module (@simov)
245
+- [#1607](https://github.com/request/request/pull/1607) Re-generate certificates (@simov)
246
+- [#1599](https://github.com/request/request/pull/1599) Move getProxyFromURI logic below the check for Invaild URI (#1595) (@simov)
247
+- [#1598](https://github.com/request/request/pull/1598) Fix the way http verbs are defined in order to please intellisense IDEs (@simov, @flannelJesus)
248
+- [#1591](https://github.com/request/request/pull/1591) A few minor fixes: (@simov)
249
+- [#1584](https://github.com/request/request/pull/1584) Refactor test-default tests (according to comments in #1430) (@simov)
250
+- [#1585](https://github.com/request/request/pull/1585) Fixing documentation regarding TLS options (#1583) (@mainakae)
251
+- [#1574](https://github.com/request/request/pull/1574) Refresh the oauth_nonce on redirect (#1573) (@simov)
252
+- [#1570](https://github.com/request/request/pull/1570) Discovered tests that weren't properly running (@seanstrom)
253
+- [#1569](https://github.com/request/request/pull/1569) Fix pause before response arrives (@kevinoid)
254
+- [#1558](https://github.com/request/request/pull/1558) Emit error instead of throw (@simov)
255
+- [#1568](https://github.com/request/request/pull/1568) Fix stall when piping gzipped response (@kevinoid)
256
+- [#1560](https://github.com/request/request/pull/1560) Update combined-stream (@apechimp)
257
+- [#1543](https://github.com/request/request/pull/1543) Initial support for oauth_body_hash on json payloads (@simov, @aesopwolf)
258
+- [#1541](https://github.com/request/request/pull/1541) Fix coveralls (@simov)
259
+- [#1540](https://github.com/request/request/pull/1540) Fix recursive defaults for convenience methods (@simov)
260
+- [#1536](https://github.com/request/request/pull/1536) More eslint style rules (@froatsnook)
261
+- [#1533](https://github.com/request/request/pull/1533) Adding dependency status bar to README.md (@YasharF)
262
+- [#1539](https://github.com/request/request/pull/1539) ensure the latest version of har-validator is included (@ahmadnassri)
263
+- [#1516](https://github.com/request/request/pull/1516) forever+pool test (@devTristan)
264
+
265
+### v2.55.0 (2015/04/05)
266
+- [#1520](https://github.com/request/request/pull/1520) Refactor defaults (@simov)
267
+- [#1525](https://github.com/request/request/pull/1525) Delete request headers with undefined value. (@froatsnook)
268
+- [#1521](https://github.com/request/request/pull/1521) Add promise tests (@simov)
269
+- [#1518](https://github.com/request/request/pull/1518) Fix defaults (@simov)
270
+- [#1515](https://github.com/request/request/pull/1515) Allow static invoking of convenience methods (@simov)
271
+- [#1505](https://github.com/request/request/pull/1505) Fix multipart boundary extraction regexp (@simov)
272
+- [#1510](https://github.com/request/request/pull/1510) Fix basic auth form data (@simov)
273
+
274
+### v2.54.0 (2015/03/24)
275
+- [#1501](https://github.com/request/request/pull/1501) HTTP Archive 1.2 support (@ahmadnassri)
276
+- [#1486](https://github.com/request/request/pull/1486) Add a test for the forever agent (@akshayp)
277
+- [#1500](https://github.com/request/request/pull/1500) Adding handling for no auth method and null bearer (@philberg)
278
+- [#1498](https://github.com/request/request/pull/1498) Add table of contents in readme (@simov)
279
+- [#1477](https://github.com/request/request/pull/1477) Add support for qs options via qsOptions key (@simov)
280
+- [#1496](https://github.com/request/request/pull/1496) Parameters encoded to base 64 should be decoded as UTF-8, not ASCII. (@albanm)
281
+- [#1494](https://github.com/request/request/pull/1494) Update eslint (@froatsnook)
282
+- [#1474](https://github.com/request/request/pull/1474) Require Colon in Basic Auth (@erykwalder)
283
+- [#1481](https://github.com/request/request/pull/1481) Fix baseUrl and redirections. (@burningtree)
284
+- [#1469](https://github.com/request/request/pull/1469) Feature/base url (@froatsnook)
285
+- [#1459](https://github.com/request/request/pull/1459) Add option to time request/response cycle (including rollup of redirects) (@aaron-em)
286
+- [#1468](https://github.com/request/request/pull/1468) Re-enable io.js/node 0.12 build (@simov, @mikeal, @BBB)
287
+- [#1442](https://github.com/request/request/pull/1442) Fixed the issue with strictSSL tests on  0.12 & io.js by explicitly setting a cipher that matches the cert. (@BBB, @nickmccurdy, @demohi, @simov, @0x4139)
288
+- [#1460](https://github.com/request/request/pull/1460) localAddress or proxy config is lost when redirecting (@simov, @0x4139)
289
+- [#1453](https://github.com/request/request/pull/1453) Test on Node.js 0.12 and io.js with allowed failures (@nickmccurdy, @demohi)
290
+- [#1426](https://github.com/request/request/pull/1426) Fixing tests to pass on io.js and node 0.12 (only test-https.js stiff failing) (@mikeal)
291
+- [#1446](https://github.com/request/request/pull/1446) Missing HTTP referer header with redirects Fixes #1038 (@simov, @guimon)
292
+- [#1428](https://github.com/request/request/pull/1428) Deprecate Node v0.8.x (@nylen)
293
+- [#1436](https://github.com/request/request/pull/1436) Add ability to set a requester without setting default options (@tikotzky)
294
+- [#1435](https://github.com/request/request/pull/1435) dry up verb methods (@sethpollack)
295
+- [#1423](https://github.com/request/request/pull/1423) Allow fully qualified multipart content-type header (@simov)
296
+- [#1430](https://github.com/request/request/pull/1430) Fix recursive requester (@tikotzky)
297
+- [#1429](https://github.com/request/request/pull/1429) Throw error when making HEAD request with a body (@tikotzky)
298
+- [#1419](https://github.com/request/request/pull/1419) Add note that the project is broken in 0.12.x (@nylen)
299
+- [#1413](https://github.com/request/request/pull/1413) Fix basic auth (@simov)
300
+- [#1397](https://github.com/request/request/pull/1397) Improve pipe-from-file tests (@nylen)
301
+
302
+### v2.53.0 (2015/02/02)
303
+- [#1396](https://github.com/request/request/pull/1396) Do not rfc3986 escape JSON bodies (@nylen, @simov)
304
+- [#1392](https://github.com/request/request/pull/1392) Improve `timeout` option description (@watson)
305
+
306
+### v2.52.0 (2015/02/02)
307
+- [#1383](https://github.com/request/request/pull/1383) Add missing HTTPS options that were not being passed to tunnel (@brichard19) (@nylen)
308
+- [#1388](https://github.com/request/request/pull/1388) Upgrade mime-types package version (@roderickhsiao)
309
+- [#1389](https://github.com/request/request/pull/1389) Revise Setup Tunnel Function (@seanstrom)
310
+- [#1374](https://github.com/request/request/pull/1374) Allow explicitly disabling tunneling for proxied https destinations (@nylen)
311
+- [#1376](https://github.com/request/request/pull/1376) Use karma-browserify for tests. Add browser test coverage reporter. (@eiriksm)
312
+- [#1366](https://github.com/request/request/pull/1366) Refactor OAuth into separate module (@simov)
313
+- [#1373](https://github.com/request/request/pull/1373) Rewrite tunnel test to be pure Node.js (@nylen)
314
+- [#1371](https://github.com/request/request/pull/1371) Upgrade test reporter (@nylen)
315
+- [#1360](https://github.com/request/request/pull/1360) Refactor basic, bearer, digest auth logic into separate class (@simov)
316
+- [#1354](https://github.com/request/request/pull/1354) Remove circular dependency from debugging code (@nylen)
317
+- [#1351](https://github.com/request/request/pull/1351) Move digest auth into private prototype method (@simov)
318
+- [#1352](https://github.com/request/request/pull/1352) Update hawk dependency to ~2.3.0 (@mridgway)
319
+- [#1353](https://github.com/request/request/pull/1353) Correct travis-ci badge (@dogancelik)
320
+- [#1349](https://github.com/request/request/pull/1349) Make sure we return on errored browser requests. (@eiriksm)
321
+- [#1346](https://github.com/request/request/pull/1346) getProxyFromURI Extraction Refactor (@seanstrom)
322
+- [#1337](https://github.com/request/request/pull/1337) Standardize test ports on 6767 (@nylen)
323
+- [#1341](https://github.com/request/request/pull/1341) Emit FormData error events as Request error events (@nylen, @rwky)
324
+- [#1343](https://github.com/request/request/pull/1343) Clean up readme badges, and add Travis and Coveralls badges (@nylen)
325
+- [#1345](https://github.com/request/request/pull/1345) Update README.md (@Aaron-Hartwig)
326
+- [#1338](https://github.com/request/request/pull/1338) Always wait for server.close() callback in tests (@nylen)
327
+- [#1342](https://github.com/request/request/pull/1342) Add mock https server and redo start of browser tests for this purpose. (@eiriksm)
328
+- [#1339](https://github.com/request/request/pull/1339) Improve auth docs (@nylen)
329
+- [#1335](https://github.com/request/request/pull/1335) Add support for OAuth plaintext signature method (@simov)
330
+- [#1332](https://github.com/request/request/pull/1332) Add clean script to remove test-browser.js after the tests run (@seanstrom)
331
+- [#1327](https://github.com/request/request/pull/1327) Fix errors generating coverage reports. (@nylen)
332
+- [#1330](https://github.com/request/request/pull/1330) Return empty buffer upon empty response body and encoding is set to null (@seanstrom)
333
+- [#1326](https://github.com/request/request/pull/1326) Use faster container-based infrastructure on Travis (@nylen)
334
+- [#1315](https://github.com/request/request/pull/1315) Implement rfc3986 option (@simov, @nylen, @apoco, @DullReferenceException, @mmalecki, @oliamb, @cliffcrosland, @LewisJEllis, @eiriksm, @poislagarde)
335
+- [#1314](https://github.com/request/request/pull/1314) Detect urlencoded form data header via regex (@simov)
336
+- [#1317](https://github.com/request/request/pull/1317) Improve OAuth1.0 server side flow example (@simov)
337
+
338
+### v2.51.0 (2014/12/10)
339
+- [#1310](https://github.com/request/request/pull/1310) Revert changes introduced in https://github.com/request/request/pull/1282 (@simov)
340
+
341
+### v2.50.0 (2014/12/09)
342
+- [#1308](https://github.com/request/request/pull/1308) Add browser test to keep track of browserify compability. (@eiriksm)
343
+- [#1299](https://github.com/request/request/pull/1299) Add optional support for jsonReviver (@poislagarde)
344
+- [#1277](https://github.com/request/request/pull/1277) Add Coveralls configuration (@simov)
345
+- [#1307](https://github.com/request/request/pull/1307) Upgrade form-data, add back browserify compability. Fixes #455. (@eiriksm)
346
+- [#1305](https://github.com/request/request/pull/1305) Fix typo in README.md (@LewisJEllis)
347
+- [#1288](https://github.com/request/request/pull/1288) Update README.md to explain custom file use case (@cliffcrosland)
348
+
349
+### v2.49.0 (2014/11/28)
350
+- [#1295](https://github.com/request/request/pull/1295) fix(proxy): no-proxy false positive (@oliamb)
351
+- [#1292](https://github.com/request/request/pull/1292) Upgrade `caseless` to 0.8.1 (@mmalecki)
352
+- [#1276](https://github.com/request/request/pull/1276) Set transfer encoding for multipart/related to chunked by default (@simov)
353
+- [#1275](https://github.com/request/request/pull/1275) Fix multipart content-type headers detection (@simov)
354
+- [#1269](https://github.com/request/request/pull/1269) adds streams example for review (@tbuchok)
355
+- [#1238](https://github.com/request/request/pull/1238) Add examples README.md (@simov)
356
+
357
+### v2.48.0 (2014/11/12)
358
+- [#1263](https://github.com/request/request/pull/1263) Fixed a syntax error / typo in README.md (@xna2)
359
+- [#1253](https://github.com/request/request/pull/1253) Add multipart chunked flag (@simov, @nylen)
360
+- [#1251](https://github.com/request/request/pull/1251) Clarify that defaults() does not modify global defaults (@nylen)
361
+- [#1250](https://github.com/request/request/pull/1250) Improve documentation for pool and maxSockets options (@nylen)
362
+- [#1237](https://github.com/request/request/pull/1237) Documenting error handling when using streams (@vmattos)
363
+- [#1244](https://github.com/request/request/pull/1244) Finalize changelog command (@nylen)
364
+- [#1241](https://github.com/request/request/pull/1241) Fix typo (@alexanderGugel)
365
+- [#1223](https://github.com/request/request/pull/1223) Show latest version number instead of "upcoming" in changelog (@nylen)
366
+- [#1236](https://github.com/request/request/pull/1236) Document how to use custom CA in README (#1229) (@hypesystem)
367
+- [#1228](https://github.com/request/request/pull/1228) Support for oauth with RSA-SHA1 signing (@nylen)
368
+- [#1216](https://github.com/request/request/pull/1216) Made json and multipart options coexist (@nylen, @simov)
369
+- [#1225](https://github.com/request/request/pull/1225) Allow header white/exclusive lists in any case. (@RReverser)
370
+
371
+### v2.47.0 (2014/10/26)
372
+- [#1222](https://github.com/request/request/pull/1222) Move from mikeal/request to request/request (@nylen)
373
+- [#1220](https://github.com/request/request/pull/1220) update qs dependency to 2.3.1 (@FredKSchott)
374
+- [#1212](https://github.com/request/request/pull/1212) Improve tests/test-timeout.js (@nylen)
375
+- [#1219](https://github.com/request/request/pull/1219) remove old globalAgent workaround for node 0.4 (@request)
376
+- [#1214](https://github.com/request/request/pull/1214) Remove cruft left over from optional dependencies (@nylen)
377
+- [#1215](https://github.com/request/request/pull/1215) Add proxyHeaderExclusiveList option for proxy-only headers. (@RReverser)
378
+- [#1211](https://github.com/request/request/pull/1211) Allow 'Host' header instead of 'host' and remember case across redirects (@nylen)
379
+- [#1208](https://github.com/request/request/pull/1208) Improve release script (@nylen)
380
+- [#1213](https://github.com/request/request/pull/1213) Support for custom cookie store (@nylen, @mitsuru)
381
+- [#1197](https://github.com/request/request/pull/1197) Clean up some code around setting the agent (@FredKSchott)
382
+- [#1209](https://github.com/request/request/pull/1209) Improve multipart form append test (@simov)
383
+- [#1207](https://github.com/request/request/pull/1207) Update changelog (@nylen)
384
+- [#1185](https://github.com/request/request/pull/1185) Stream multipart/related bodies (@simov)
385
+
386
+### v2.46.0 (2014/10/23)
387
+- [#1198](https://github.com/request/request/pull/1198) doc for TLS/SSL protocol options (@shawnzhu)
388
+- [#1200](https://github.com/request/request/pull/1200) Add a Gitter chat badge to README.md (@gitter-badger)
389
+- [#1196](https://github.com/request/request/pull/1196) Upgrade taper test reporter to v0.3.0 (@nylen)
390
+- [#1199](https://github.com/request/request/pull/1199) Fix lint error: undeclared var i (@nylen)
391
+- [#1191](https://github.com/request/request/pull/1191) Move self.proxy decision logic out of init and into a helper (@FredKSchott)
392
+- [#1190](https://github.com/request/request/pull/1190) Move _buildRequest() logic back into init (@FredKSchott)
393
+- [#1186](https://github.com/request/request/pull/1186) Support Smarter Unix URL Scheme (@FredKSchott)
394
+- [#1178](https://github.com/request/request/pull/1178) update form documentation for new usage (@FredKSchott)
395
+- [#1180](https://github.com/request/request/pull/1180) Enable no-mixed-requires linting rule (@nylen)
396
+- [#1184](https://github.com/request/request/pull/1184) Don't forward authorization header across redirects to different hosts (@nylen)
397
+- [#1183](https://github.com/request/request/pull/1183) Correct README about pre and postamble CRLF using multipart and not mult... (@netpoetica)
398
+- [#1179](https://github.com/request/request/pull/1179) Lint tests directory (@nylen)
399
+- [#1169](https://github.com/request/request/pull/1169) add metadata for form-data file field (@dotcypress)
400
+- [#1173](https://github.com/request/request/pull/1173) remove optional dependencies (@seanstrom)
401
+- [#1165](https://github.com/request/request/pull/1165) Cleanup event listeners and remove function creation from init (@FredKSchott)
402
+- [#1174](https://github.com/request/request/pull/1174) update the request.cookie docs to have a valid cookie example (@seanstrom)
403
+- [#1168](https://github.com/request/request/pull/1168) create a detach helper and use detach helper in replace of nextTick (@seanstrom)
404
+- [#1171](https://github.com/request/request/pull/1171) in post can send form data and use callback (@MiroRadenovic)
405
+- [#1159](https://github.com/request/request/pull/1159) accept charset for x-www-form-urlencoded content-type (@seanstrom)
406
+- [#1157](https://github.com/request/request/pull/1157) Update README.md: body with json=true (@Rob--W)
407
+- [#1164](https://github.com/request/request/pull/1164) Disable tests/test-timeout.js on Travis (@nylen)
408
+- [#1153](https://github.com/request/request/pull/1153) Document how to run a single test (@nylen)
409
+- [#1144](https://github.com/request/request/pull/1144) adds documentation for the "response" event within the streaming section (@tbuchok)
410
+- [#1162](https://github.com/request/request/pull/1162) Update eslintrc file to no longer allow past errors (@FredKSchott)
411
+- [#1155](https://github.com/request/request/pull/1155) Support/use self everywhere (@seanstrom)
412
+- [#1161](https://github.com/request/request/pull/1161) fix no-use-before-define lint warnings (@emkay)
413
+- [#1156](https://github.com/request/request/pull/1156) adding curly brackets to get rid of lint errors (@emkay)
414
+- [#1151](https://github.com/request/request/pull/1151) Fix localAddress test on OS X (@nylen)
415
+- [#1145](https://github.com/request/request/pull/1145) documentation: fix outdated reference to setCookieSync old name in README (@FredKSchott)
416
+- [#1131](https://github.com/request/request/pull/1131) Update pool documentation (@FredKSchott)
417
+- [#1143](https://github.com/request/request/pull/1143) Rewrite all tests to use tape (@nylen)
418
+- [#1137](https://github.com/request/request/pull/1137) Add ability to specifiy querystring lib in options. (@jgrund)
419
+- [#1138](https://github.com/request/request/pull/1138) allow hostname and port in place of host on uri (@cappslock)
420
+- [#1134](https://github.com/request/request/pull/1134) Fix multiple redirects and `self.followRedirect` (@blakeembrey)
421
+- [#1130](https://github.com/request/request/pull/1130) documentation fix: add note about npm test for contributing (@FredKSchott)
422
+- [#1120](https://github.com/request/request/pull/1120) Support/refactor request setup tunnel (@seanstrom)
423
+- [#1129](https://github.com/request/request/pull/1129) linting fix: convert double quote strings to use single quotes (@FredKSchott)
424
+- [#1124](https://github.com/request/request/pull/1124) linting fix: remove unneccesary semi-colons (@FredKSchott)
425
+
426
+### v2.45.0 (2014/10/06)
427
+- [#1128](https://github.com/request/request/pull/1128) Add test for setCookie regression (@nylen)
428
+- [#1127](https://github.com/request/request/pull/1127) added tests around using objects as values in a query string (@bcoe)
429
+- [#1103](https://github.com/request/request/pull/1103) Support/refactor request constructor (@nylen, @seanstrom)
430
+- [#1119](https://github.com/request/request/pull/1119) add basic linting to request library (@FredKSchott)
431
+- [#1121](https://github.com/request/request/pull/1121) Revert "Explicitly use sync versions of cookie functions" (@nylen)
432
+- [#1118](https://github.com/request/request/pull/1118) linting fix: Restructure bad empty if statement (@FredKSchott)
433
+- [#1117](https://github.com/request/request/pull/1117) Fix a bad check for valid URIs (@FredKSchott)
434
+- [#1113](https://github.com/request/request/pull/1113) linting fix: space out operators (@FredKSchott)
435
+- [#1116](https://github.com/request/request/pull/1116) Fix typo in `noProxyHost` definition (@FredKSchott)
436
+- [#1114](https://github.com/request/request/pull/1114) linting fix: Added a `new` operator that was missing when creating and throwing a new error (@FredKSchott)
437
+- [#1096](https://github.com/request/request/pull/1096) No_proxy support (@samcday)
438
+- [#1107](https://github.com/request/request/pull/1107) linting-fix: remove unused variables (@FredKSchott)
439
+- [#1112](https://github.com/request/request/pull/1112) linting fix: Make return values consistent and more straitforward (@FredKSchott)
440
+- [#1111](https://github.com/request/request/pull/1111) linting fix: authPieces was getting redeclared (@FredKSchott)
441
+- [#1105](https://github.com/request/request/pull/1105) Use strict mode in request (@FredKSchott)
442
+- [#1110](https://github.com/request/request/pull/1110) linting fix: replace lazy '==' with more strict '===' (@FredKSchott)
443
+- [#1109](https://github.com/request/request/pull/1109) linting fix: remove function call from if-else conditional statement (@FredKSchott)
444
+- [#1102](https://github.com/request/request/pull/1102) Fix to allow setting a `requester` on recursive calls to `request.defaults` (@tikotzky)
445
+- [#1095](https://github.com/request/request/pull/1095) Tweaking engines in package.json (@pdehaan)
446
+- [#1082](https://github.com/request/request/pull/1082) Forward the socket event from the httpModule request (@seanstrom)
447
+- [#972](https://github.com/request/request/pull/972) Clarify gzip handling in the README (@kevinoid)
448
+- [#1089](https://github.com/request/request/pull/1089) Mention that encoding defaults to utf8, not Buffer (@stuartpb)
449
+- [#1088](https://github.com/request/request/pull/1088) Fix cookie example in README.md and make it more clear (@pipi32167)
450
+- [#1027](https://github.com/request/request/pull/1027) Add support for multipart form data in request options. (@crocket)
451
+- [#1076](https://github.com/request/request/pull/1076) use Request.abort() to abort the request when the request has timed-out (@seanstrom)
452
+- [#1068](https://github.com/request/request/pull/1068) add optional postamble required by .NET multipart requests (@netpoetica)
453
+
454
+### v2.43.0 (2014/09/18)
455
+- [#1057](https://github.com/request/request/pull/1057) Defaults should not overwrite defined options (@davidwood)
456
+- [#1046](https://github.com/request/request/pull/1046) Propagate datastream errors, useful in case gzip fails. (@ZJONSSON, @Janpot)
457
+- [#1063](https://github.com/request/request/pull/1063) copy the input headers object #1060 (@finnp)
458
+- [#1031](https://github.com/request/request/pull/1031) Explicitly use sync versions of cookie functions (@ZJONSSON)
459
+- [#1056](https://github.com/request/request/pull/1056) Fix redirects when passing url.parse(x) as URL to convenience method (@nylen)
460
+
461
+### v2.42.0 (2014/09/04)
462
+- [#1053](https://github.com/request/request/pull/1053) Fix #1051 Parse auth properly when using non-tunneling proxy (@isaacs)
463
+
464
+### v2.41.0 (2014/09/04)
465
+- [#1050](https://github.com/request/request/pull/1050) Pass whitelisted headers to tunneling proxy.  Organize all tunneling logic. (@isaacs, @Feldhacker)
466
+- [#1035](https://github.com/request/request/pull/1035) souped up nodei.co badge (@rvagg)
467
+- [#1048](https://github.com/request/request/pull/1048) Aws is now possible over a proxy (@steven-aerts)
468
+- [#1039](https://github.com/request/request/pull/1039) extract out helper functions to a helper file (@seanstrom)
469
+- [#1021](https://github.com/request/request/pull/1021) Support/refactor indexjs (@seanstrom)
470
+- [#1033](https://github.com/request/request/pull/1033) Improve and document debug options (@nylen)
471
+- [#1034](https://github.com/request/request/pull/1034) Fix readme headings (@nylen)
472
+- [#1030](https://github.com/request/request/pull/1030) Allow recursive request.defaults (@tikotzky)
473
+- [#1029](https://github.com/request/request/pull/1029) Fix a couple of typos (@nylen)
474
+- [#675](https://github.com/request/request/pull/675) Checking for SSL fault on connection before reading SSL properties (@VRMink)
475
+- [#989](https://github.com/request/request/pull/989) Added allowRedirect function. Should return true if redirect is allowed or false otherwise (@doronin)
476
+- [#1025](https://github.com/request/request/pull/1025) [fixes #1023] Set self._ended to true once response has ended (@mridgway)
477
+- [#1020](https://github.com/request/request/pull/1020) Add back removed debug metadata (@FredKSchott)
478
+- [#1008](https://github.com/request/request/pull/1008) Moving to  module instead of cutomer buffer concatenation. (@mikeal)
479
+- [#770](https://github.com/request/request/pull/770) Added dependency badge for README file; (@timgluz, @mafintosh, @lalitkapoor, @stash, @bobyrizov)
480
+- [#1016](https://github.com/request/request/pull/1016) toJSON no longer results in an infinite loop, returns simple objects (@FredKSchott)
481
+- [#1018](https://github.com/request/request/pull/1018) Remove pre-0.4.4 HTTPS fix (@mmalecki)
482
+- [#1006](https://github.com/request/request/pull/1006) Migrate to caseless, fixes #1001 (@mikeal)
483
+- [#995](https://github.com/request/request/pull/995) Fix parsing array of objects (@sjonnet19)
484
+- [#999](https://github.com/request/request/pull/999) Fix fallback for browserify for optional modules. (@eiriksm)
485
+- [#996](https://github.com/request/request/pull/996) Wrong oauth signature when multiple same param keys exist [updated] (@bengl)
486
+
487
+### v2.40.0 (2014/08/06)
488
+- [#992](https://github.com/request/request/pull/992) Fix security vulnerability. Update qs (@poeticninja)
489
+- [#988](https://github.com/request/request/pull/988) “--” -> “—” (@upisfree)
490
+- [#987](https://github.com/request/request/pull/987) Show optional modules as being loaded by the module that reqeusted them (@iarna)
491
+
492
+### v2.39.0 (2014/07/24)
493
+- [#976](https://github.com/request/request/pull/976) Update README.md (@pvoznenko)
494
+
495
+### v2.38.0 (2014/07/22)
496
+- [#952](https://github.com/request/request/pull/952) Adding support to client certificate with proxy use case (@ofirshaked)
497
+- [#884](https://github.com/request/request/pull/884) Documented tough-cookie installation. (@wbyoung)
498
+- [#935](https://github.com/request/request/pull/935) Correct repository url (@fritx)
499
+- [#963](https://github.com/request/request/pull/963) Update changelog (@nylen)
500
+- [#960](https://github.com/request/request/pull/960) Support gzip with encoding on node pre-v0.9.4 (@kevinoid)
501
+- [#953](https://github.com/request/request/pull/953) Add async Content-Length computation when using form-data (@LoicMahieu)
502
+- [#844](https://github.com/request/request/pull/844) Add support for HTTP[S]_PROXY environment variables.  Fixes #595. (@jvmccarthy)
503
+- [#946](https://github.com/request/request/pull/946) defaults: merge headers (@aj0strow)
504
+
505
+### v2.37.0 (2014/07/07)
506
+- [#957](https://github.com/request/request/pull/957) Silence EventEmitter memory leak warning #311 (@watson)
507
+- [#955](https://github.com/request/request/pull/955) check for content-length header before setting it in nextTick (@camilleanne)
508
+- [#951](https://github.com/request/request/pull/951) Add support for gzip content decoding (@kevinoid)
509
+- [#949](https://github.com/request/request/pull/949) Manually enter querystring in form option (@charlespwd)
510
+- [#944](https://github.com/request/request/pull/944) Make request work with browserify (@eiriksm)
511
+- [#943](https://github.com/request/request/pull/943) New mime module (@eiriksm)
512
+- [#927](https://github.com/request/request/pull/927) Bump version of hawk dep. (@samccone)
513
+- [#907](https://github.com/request/request/pull/907) append secureOptions to poolKey (@medovob)
514
+
515
+### v2.35.0 (2014/05/17)
516
+- [#901](https://github.com/request/request/pull/901) Fixes #555 (@pigulla)
517
+- [#897](https://github.com/request/request/pull/897) merge with default options (@vohof)
518
+- [#891](https://github.com/request/request/pull/891) fixes 857 - options object is mutated by calling request (@lalitkapoor)
519
+- [#869](https://github.com/request/request/pull/869) Pipefilter test (@tgohn)
520
+- [#866](https://github.com/request/request/pull/866) Fix typo (@dandv)
521
+- [#861](https://github.com/request/request/pull/861) Add support for RFC 6750 Bearer Tokens (@phedny)
522
+- [#809](https://github.com/request/request/pull/809) upgrade tunnel-proxy to 0.4.0 (@ksato9700)
523
+- [#850](https://github.com/request/request/pull/850) Fix word consistency in readme (@0xNobody)
524
+- [#810](https://github.com/request/request/pull/810) add some exposition to mpu example in README.md (@mikermcneil)
525
+- [#840](https://github.com/request/request/pull/840) improve error reporting for invalid protocols (@FND)
526
+- [#821](https://github.com/request/request/pull/821) added secureOptions back (@nw)
527
+- [#815](https://github.com/request/request/pull/815) Create changelog based on pull requests (@lalitkapoor)
528
+
529
+### v2.34.0 (2014/02/18)
530
+- [#516](https://github.com/request/request/pull/516) UNIX Socket URL Support (@lyuzashi)
531
+- [#801](https://github.com/request/request/pull/801) 794 ignore cookie parsing and domain errors (@lalitkapoor)
532
+- [#802](https://github.com/request/request/pull/802) Added the Apache license to the package.json. (@keskival)
533
+- [#793](https://github.com/request/request/pull/793) Adds content-length calculation when submitting forms using form-data li... (@Juul)
534
+- [#785](https://github.com/request/request/pull/785) Provide ability to override content-type when `json` option used (@vvo)
535
+- [#781](https://github.com/request/request/pull/781) simpler isReadStream function (@joaojeronimo)
536
+
537
+### v2.32.0 (2014/01/16)
538
+- [#767](https://github.com/request/request/pull/767) Use tough-cookie CookieJar sync API (@stash)
539
+- [#764](https://github.com/request/request/pull/764) Case-insensitive authentication scheme (@bobyrizov)
540
+- [#763](https://github.com/request/request/pull/763) Upgrade tough-cookie to 0.10.0 (@stash)
541
+- [#744](https://github.com/request/request/pull/744) Use Cookie.parse (@lalitkapoor)
542
+- [#757](https://github.com/request/request/pull/757) require aws-sign2 (@mafintosh)
543
+
544
+### v2.31.0 (2014/01/08)
545
+- [#645](https://github.com/request/request/pull/645) update twitter api url to v1.1 (@mick)
546
+- [#746](https://github.com/request/request/pull/746) README: Markdown code highlight (@weakish)
547
+- [#745](https://github.com/request/request/pull/745) updating setCookie example to make it clear that the callback is required (@emkay)
548
+- [#742](https://github.com/request/request/pull/742) Add note about JSON output body type (@iansltx)
549
+- [#741](https://github.com/request/request/pull/741) README example is using old cookie jar api (@emkay)
550
+- [#736](https://github.com/request/request/pull/736) Fix callback arguments documentation (@mmalecki)
551
+- [#732](https://github.com/request/request/pull/732) JSHINT: Creating global 'for' variable. Should be 'for (var ...'. (@Fritz-Lium)
552
+- [#730](https://github.com/request/request/pull/730) better HTTP DIGEST support (@dai-shi)
553
+- [#728](https://github.com/request/request/pull/728) Fix TypeError when calling request.cookie (@scarletmeow)
554
+- [#727](https://github.com/request/request/pull/727) fix requester bug (@jchris)
555
+- [#724](https://github.com/request/request/pull/724) README.md: add custom HTTP Headers example. (@tcort)
556
+- [#719](https://github.com/request/request/pull/719) Made a comment gender neutral. (@unsetbit)
557
+- [#715](https://github.com/request/request/pull/715) Request.multipart no longer crashes when header 'Content-type' present (@pastaclub)
558
+- [#710](https://github.com/request/request/pull/710) Fixing listing in callback part of docs. (@lukasz-zak)
559
+- [#696](https://github.com/request/request/pull/696) Edited README.md for formatting and clarity of phrasing (@Zearin)
560
+- [#694](https://github.com/request/request/pull/694) Typo in README (@VRMink)
561
+- [#690](https://github.com/request/request/pull/690) Handle blank password in basic auth. (@diversario)
562
+- [#682](https://github.com/request/request/pull/682) Optional dependencies (@Turbo87)
563
+- [#683](https://github.com/request/request/pull/683) Travis CI support (@Turbo87)
564
+- [#674](https://github.com/request/request/pull/674) change cookie module,to tough-cookie.please check it . (@sxyizhiren)
565
+- [#666](https://github.com/request/request/pull/666) make `ciphers` and `secureProtocol` to work in https request (@richarddong)
566
+- [#656](https://github.com/request/request/pull/656) Test case for #304. (@diversario)
567
+- [#662](https://github.com/request/request/pull/662) option.tunnel to explicitly disable tunneling (@seanmonstar)
568
+- [#659](https://github.com/request/request/pull/659) fix failure when running with NODE_DEBUG=request, and a test for that (@jrgm)
569
+- [#630](https://github.com/request/request/pull/630) Send random cnonce for HTTP Digest requests (@wprl)
570
+- [#619](https://github.com/request/request/pull/619) decouple things a bit (@joaojeronimo)
571
+- [#613](https://github.com/request/request/pull/613) Fixes #583, moved initialization of self.uri.pathname (@lexander)
572
+- [#605](https://github.com/request/request/pull/605) Only include ":" + pass in Basic Auth if it's defined (fixes #602) (@bendrucker)
573
+- [#596](https://github.com/request/request/pull/596) Global agent is being used when pool is specified (@Cauldrath)
574
+- [#594](https://github.com/request/request/pull/594) Emit complete event when there is no callback (@RomainLK)
575
+- [#601](https://github.com/request/request/pull/601) Fixed a small typo (@michalstanko)
576
+- [#589](https://github.com/request/request/pull/589) Prevent setting headers after they are sent (@geek)
577
+- [#587](https://github.com/request/request/pull/587) Global cookie jar disabled by default (@threepointone)
578
+- [#544](https://github.com/request/request/pull/544) Update http-signature version. (@davidlehn)
579
+- [#581](https://github.com/request/request/pull/581) Fix spelling of "ignoring." (@bigeasy)
580
+- [#568](https://github.com/request/request/pull/568) use agentOptions to create agent when specified in request (@SamPlacette)
581
+- [#564](https://github.com/request/request/pull/564) Fix redirections (@criloz)
582
+- [#541](https://github.com/request/request/pull/541) The exported request function doesn't have an auth method (@tschaub)
583
+- [#542](https://github.com/request/request/pull/542) Expose Request class (@regality)
584
+- [#536](https://github.com/request/request/pull/536) Allow explicitly empty user field for basic authentication. (@mikeando)
585
+- [#532](https://github.com/request/request/pull/532) fix typo (@fredericosilva)
586
+- [#497](https://github.com/request/request/pull/497) Added redirect event (@Cauldrath)
587
+- [#503](https://github.com/request/request/pull/503) Fix basic auth for passwords that contain colons (@tonistiigi)
588
+- [#521](https://github.com/request/request/pull/521) Improving test-localAddress.js (@noway)
589
+- [#529](https://github.com/request/request/pull/529) dependencies versions bump (@jodaka)
590
+- [#523](https://github.com/request/request/pull/523) Updating dependencies (@noway)
591
+- [#520](https://github.com/request/request/pull/520) Fixing test-tunnel.js (@noway)
592
+- [#519](https://github.com/request/request/pull/519) Update internal path state on post-creation QS changes (@jblebrun)
593
+- [#510](https://github.com/request/request/pull/510) Add HTTP Signature support. (@davidlehn)
594
+- [#502](https://github.com/request/request/pull/502) Fix POST (and probably other) requests that are retried after 401 Unauthorized (@nylen)
595
+- [#508](https://github.com/request/request/pull/508) Honor the .strictSSL option when using proxies (tunnel-agent) (@jhs)
596
+- [#512](https://github.com/request/request/pull/512) Make password optional to support the format: http://username@hostname/ (@pajato1)
597
+- [#513](https://github.com/request/request/pull/513) add 'localAddress' support (@yyfrankyy)
598
+- [#498](https://github.com/request/request/pull/498) Moving response emit above setHeaders on destination streams (@kenperkins)
599
+- [#490](https://github.com/request/request/pull/490) Empty response body (3-rd argument) must be passed to callback as an empty string (@Olegas)
600
+- [#479](https://github.com/request/request/pull/479) Changing so if Accept header is explicitly set, sending json does not ov... (@RoryH)
601
+- [#475](https://github.com/request/request/pull/475) Use `unescape` from `querystring` (@shimaore)
602
+- [#473](https://github.com/request/request/pull/473) V0.10 compat (@isaacs)
603
+- [#471](https://github.com/request/request/pull/471) Using querystring library from visionmedia (@kbackowski)
604
+- [#461](https://github.com/request/request/pull/461) Strip the UTF8 BOM from a UTF encoded response (@kppullin)
605
+- [#460](https://github.com/request/request/pull/460) hawk 0.10.0 (@hueniverse)
606
+- [#462](https://github.com/request/request/pull/462) if query params are empty, then request path shouldn't end with a '?' (merges cleanly now) (@jaipandya)
607
+- [#456](https://github.com/request/request/pull/456) hawk 0.9.0 (@hueniverse)
608
+- [#429](https://github.com/request/request/pull/429) Copy options before adding callback. (@nrn, @nfriedly, @youurayy, @jplock, @kapetan, @landeiro, @othiym23, @mmalecki)
609
+- [#454](https://github.com/request/request/pull/454) Destroy the response if present when destroying the request (clean merge) (@mafintosh)
610
+- [#310](https://github.com/request/request/pull/310) Twitter Oauth Stuff Out of Date; Now Updated (@joemccann, @isaacs, @mscdex)
611
+- [#413](https://github.com/request/request/pull/413) rename googledoodle.png to .jpg (@nfriedly, @youurayy, @jplock, @kapetan, @landeiro, @othiym23, @mmalecki)
612
+- [#448](https://github.com/request/request/pull/448) Convenience method for PATCH (@mloar)
613
+- [#444](https://github.com/request/request/pull/444) protect against double callbacks on error path (@spollack)
614
+- [#433](https://github.com/request/request/pull/433) Added support for HTTPS cert & key (@mmalecki)
615
+- [#430](https://github.com/request/request/pull/430) Respect specified {Host,host} headers, not just {host} (@andrewschaaf)
616
+- [#415](https://github.com/request/request/pull/415) Fixed a typo. (@jerem)
617
+- [#338](https://github.com/request/request/pull/338) Add more auth options, including digest support (@nylen)
618
+- [#403](https://github.com/request/request/pull/403) Optimize environment lookup to happen once only (@mmalecki)
619
+- [#398](https://github.com/request/request/pull/398) Add more reporting to tests (@mmalecki)
620
+- [#388](https://github.com/request/request/pull/388) Ensure "safe" toJSON doesn't break EventEmitters (@othiym23)
621
+- [#381](https://github.com/request/request/pull/381) Resolving "Invalid signature. Expected signature base string: " (@landeiro)
622
+- [#380](https://github.com/request/request/pull/380) Fixes missing host header on retried request when using forever agent (@mac-)
623
+- [#376](https://github.com/request/request/pull/376) Headers lost on redirect (@kapetan)
624
+- [#375](https://github.com/request/request/pull/375) Fix for missing oauth_timestamp parameter (@jplock)
625
+- [#374](https://github.com/request/request/pull/374) Correct Host header for proxy tunnel CONNECT (@youurayy)
626
+- [#370](https://github.com/request/request/pull/370) Twitter reverse auth uses x_auth_mode not x_auth_type (@drudge)
627
+- [#369](https://github.com/request/request/pull/369) Don't remove x_auth_mode for Twitter reverse auth (@drudge)
628
+- [#344](https://github.com/request/request/pull/344) Make AWS auth signing find headers correctly (@nlf)
629
+- [#363](https://github.com/request/request/pull/363) rfc3986 on base_uri, now passes tests (@jeffmarshall)
630
+- [#362](https://github.com/request/request/pull/362) Running `rfc3986` on `base_uri` in `oauth.hmacsign` instead of just `encodeURIComponent` (@jeffmarshall)
631
+- [#361](https://github.com/request/request/pull/361) Don't create a Content-Length header if we already have it set (@danjenkins)
632
+- [#360](https://github.com/request/request/pull/360) Delete self._form along with everything else on redirect (@jgautier)
633
+- [#355](https://github.com/request/request/pull/355) stop sending erroneous headers on redirected requests (@azylman)
634
+- [#332](https://github.com/request/request/pull/332) Fix #296 - Only set Content-Type if body exists (@Marsup)
635
+- [#343](https://github.com/request/request/pull/343) Allow AWS to work in more situations, added a note in the README on its usage (@nlf)
636
+- [#320](https://github.com/request/request/pull/320) request.defaults() doesn't need to wrap jar() (@StuartHarris)
637
+- [#322](https://github.com/request/request/pull/322) Fix + test for piped into request bumped into redirect. #321 (@alexindigo)
638
+- [#326](https://github.com/request/request/pull/326) Do not try to remove listener from an undefined connection (@CartoDB)
639
+- [#318](https://github.com/request/request/pull/318) Pass servername to tunneling secure socket creation (@isaacs)
640
+- [#317](https://github.com/request/request/pull/317) Workaround for #313 (@isaacs)
641
+- [#293](https://github.com/request/request/pull/293) Allow parser errors to bubble up to request (@mscdex)
642
+- [#290](https://github.com/request/request/pull/290) A test for #289 (@isaacs)
643
+- [#280](https://github.com/request/request/pull/280) Like in node.js print options if NODE_DEBUG contains the word request (@Filirom1)
644
+- [#207](https://github.com/request/request/pull/207) Fix #206 Change HTTP/HTTPS agent when redirecting between protocols (@isaacs)
645
+- [#214](https://github.com/request/request/pull/214) documenting additional behavior of json option (@jphaas, @vpulim)
646
+- [#272](https://github.com/request/request/pull/272) Boundary begins with CRLF? (@elspoono, @timshadel, @naholyr, @nanodocumet, @TehShrike)
647
+- [#284](https://github.com/request/request/pull/284) Remove stray `console.log()` call in multipart generator. (@bcherry)
648
+- [#241](https://github.com/request/request/pull/241) Composability updates suggested by issue #239 (@polotek)
649
+- [#282](https://github.com/request/request/pull/282) OAuth Authorization header contains non-"oauth_" parameters (@jplock)
650
+- [#279](https://github.com/request/request/pull/279) fix tests with boundary by injecting boundry from header (@benatkin)
651
+- [#273](https://github.com/request/request/pull/273) Pipe back pressure issue (@mafintosh)
652
+- [#268](https://github.com/request/request/pull/268) I'm not OCD seriously (@TehShrike)
653
+- [#263](https://github.com/request/request/pull/263) Bug in OAuth key generation for sha1 (@nanodocumet)
654
+- [#265](https://github.com/request/request/pull/265) uncaughtException when redirected to invalid URI (@naholyr)
655
+- [#262](https://github.com/request/request/pull/262) JSON test should check for equality (@timshadel)
656
+- [#261](https://github.com/request/request/pull/261) Setting 'pool' to 'false' does NOT disable Agent pooling (@timshadel)
657
+- [#249](https://github.com/request/request/pull/249) Fix for the fix of your (closed) issue #89 where self.headers[content-length] is set to 0 for all methods (@sethbridges, @polotek, @zephrax, @jeromegn)
658
+- [#255](https://github.com/request/request/pull/255) multipart allow body === '' ( the empty string ) (@Filirom1)
659
+- [#260](https://github.com/request/request/pull/260) fixed just another leak of 'i' (@sreuter)
660
+- [#246](https://github.com/request/request/pull/246) Fixing the set-cookie header (@jeromegn)
661
+- [#243](https://github.com/request/request/pull/243) Dynamic boundary (@zephrax)
662
+- [#240](https://github.com/request/request/pull/240) don't error when null is passed for options (@polotek)
663
+- [#211](https://github.com/request/request/pull/211) Replace all occurrences of special chars in RFC3986 (@chriso, @vpulim)
664
+- [#224](https://github.com/request/request/pull/224) Multipart content-type change (@janjongboom)
665
+- [#217](https://github.com/request/request/pull/217) need to use Authorization (titlecase) header with Tumblr OAuth (@visnup)
666
+- [#203](https://github.com/request/request/pull/203) Fix cookie and redirect bugs and add auth support for HTTPS tunnel (@vpulim)
667
+- [#199](https://github.com/request/request/pull/199) Tunnel (@isaacs)
668
+- [#198](https://github.com/request/request/pull/198) Bugfix on forever usage of util.inherits (@isaacs)
669
+- [#197](https://github.com/request/request/pull/197) Make ForeverAgent work with HTTPS (@isaacs)
670
+- [#193](https://github.com/request/request/pull/193) Fixes GH-119 (@goatslacker)
671
+- [#188](https://github.com/request/request/pull/188) Add abort support to the returned request (@itay)
672
+- [#176](https://github.com/request/request/pull/176) Querystring option (@csainty)
673
+- [#182](https://github.com/request/request/pull/182) Fix request.defaults to support (uri, options, callback) api (@twilson63)
674
+- [#180](https://github.com/request/request/pull/180) Modified the post, put, head and del shortcuts to support uri optional param (@twilson63)
675
+- [#179](https://github.com/request/request/pull/179) fix to add opts in .pipe(stream, opts) (@substack)
676
+- [#177](https://github.com/request/request/pull/177) Issue #173 Support uri as first and optional config as second argument (@twilson63)
677
+- [#170](https://github.com/request/request/pull/170) can't create a cookie in a wrapped request (defaults) (@fabianonunes)
678
+- [#168](https://github.com/request/request/pull/168) Picking off an EasyFix by adding some missing mimetypes. (@serby)
679
+- [#161](https://github.com/request/request/pull/161) Fix cookie jar/headers.cookie collision (#125) (@papandreou)
680
+- [#162](https://github.com/request/request/pull/162) Fix issue #159 (@dpetukhov)
681
+- [#90](https://github.com/request/request/pull/90) add option followAllRedirects to follow post/put redirects (@jroes)
682
+- [#148](https://github.com/request/request/pull/148) Retry Agent (@thejh)
683
+- [#146](https://github.com/request/request/pull/146) Multipart should respect content-type if previously set (@apeace)
684
+- [#144](https://github.com/request/request/pull/144) added "form" option to readme (@petejkim)
685
+- [#133](https://github.com/request/request/pull/133) Fixed cookies parsing (@afanasy)
686
+- [#135](https://github.com/request/request/pull/135) host vs hostname (@iangreenleaf)
687
+- [#132](https://github.com/request/request/pull/132) return the body as a Buffer when encoding is set to null (@jahewson)
688
+- [#112](https://github.com/request/request/pull/112) Support using a custom http-like module (@jhs)
689
+- [#104](https://github.com/request/request/pull/104) Cookie handling contains bugs (@janjongboom)
690
+- [#121](https://github.com/request/request/pull/121) Another patch for cookie handling regression (@jhurliman)
691
+- [#117](https://github.com/request/request/pull/117) Remove the global `i` (@3rd-Eden)
692
+- [#110](https://github.com/request/request/pull/110) Update to Iris Couch URL (@jhs)
693
+- [#86](https://github.com/request/request/pull/86) Can't post binary to multipart requests (@kkaefer)
694
+- [#105](https://github.com/request/request/pull/105) added test for proxy option. (@dominictarr)
695
+- [#102](https://github.com/request/request/pull/102) Implemented cookies - closes issue 82: https://github.com/mikeal/request/issues/82 (@alessioalex)
696
+- [#97](https://github.com/request/request/pull/97) Typo in previous pull causes TypeError in non-0.5.11 versions (@isaacs)
697
+- [#96](https://github.com/request/request/pull/96) Authless parsed url host support (@isaacs)
698
+- [#81](https://github.com/request/request/pull/81) Enhance redirect handling (@danmactough)
699
+- [#78](https://github.com/request/request/pull/78) Don't try to do strictSSL for non-ssl connections (@isaacs)
700
+- [#76](https://github.com/request/request/pull/76) Bug when a request fails and a timeout is set (@Marsup)
701
+- [#70](https://github.com/request/request/pull/70) add test script to package.json (@isaacs, @aheckmann)
702
+- [#73](https://github.com/request/request/pull/73) Fix #71 Respect the strictSSL flag (@isaacs)
703
+- [#69](https://github.com/request/request/pull/69) Flatten chunked requests properly (@isaacs)
704
+- [#67](https://github.com/request/request/pull/67) fixed global variable leaks (@aheckmann)
705
+- [#66](https://github.com/request/request/pull/66) Do not overwrite established content-type headers for read stream deliver (@voodootikigod)
706
+- [#53](https://github.com/request/request/pull/53) Parse json: Issue #51 (@benatkin)
707
+- [#45](https://github.com/request/request/pull/45) Added timeout option (@mbrevoort)
708
+- [#35](https://github.com/request/request/pull/35) The "end" event isn't emitted for some responses (@voxpelli)
709
+- [#31](https://github.com/request/request/pull/31) Error on piping a request to a destination (@tobowers)

+ 55
- 0
node_modules/node-gyp/node_modules/request/LICENSE View File

1
+Apache License
2
+
3
+Version 2.0, January 2004
4
+
5
+http://www.apache.org/licenses/
6
+
7
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+1. Definitions.
10
+
11
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14
+
15
+"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.
16
+
17
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18
+
19
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20
+
21
+"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.
22
+
23
+"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).
24
+
25
+"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.
26
+
27
+"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."
28
+
29
+"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.
30
+
31
+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.
32
+
33
+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.
34
+
35
+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:
36
+
37
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
38
+
39
+You must cause any modified files to carry prominent notices stating that You changed the files; and
40
+
41
+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
42
+
43
+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.
44
+
45
+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.
46
+
47
+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.
48
+
49
+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.
50
+
51
+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.
52
+
53
+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.
54
+
55
+END OF TERMS AND CONDITIONS

+ 1097
- 0
node_modules/node-gyp/node_modules/request/README.md
File diff suppressed because it is too large
View File


+ 155
- 0
node_modules/node-gyp/node_modules/request/index.js View File

1
+// Copyright 2010-2012 Mikeal Rogers
2
+//
3
+//    Licensed under the Apache License, Version 2.0 (the "License");
4
+//    you may not use this file except in compliance with the License.
5
+//    You may obtain a copy of the License at
6
+//
7
+//        http://www.apache.org/licenses/LICENSE-2.0
8
+//
9
+//    Unless required by applicable law or agreed to in writing, software
10
+//    distributed under the License is distributed on an "AS IS" BASIS,
11
+//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+//    See the License for the specific language governing permissions and
13
+//    limitations under the License.
14
+
15
+'use strict'
16
+
17
+var extend = require('extend')
18
+var cookies = require('./lib/cookies')
19
+var helpers = require('./lib/helpers')
20
+
21
+var paramsHaveRequestBody = helpers.paramsHaveRequestBody
22
+
23
+// organize params for patch, post, put, head, del
24
+function initParams (uri, options, callback) {
25
+  if (typeof options === 'function') {
26
+    callback = options
27
+  }
28
+
29
+  var params = {}
30
+  if (typeof options === 'object') {
31
+    extend(params, options, {uri: uri})
32
+  } else if (typeof uri === 'string') {
33
+    extend(params, {uri: uri})
34
+  } else {
35
+    extend(params, uri)
36
+  }
37
+
38
+  params.callback = callback || params.callback
39
+  return params
40
+}
41
+
42
+function request (uri, options, callback) {
43
+  if (typeof uri === 'undefined') {
44
+    throw new Error('undefined is not a valid uri or options object.')
45
+  }
46
+
47
+  var params = initParams(uri, options, callback)
48
+
49
+  if (params.method === 'HEAD' && paramsHaveRequestBody(params)) {
50
+    throw new Error('HTTP HEAD requests MUST NOT include a request body.')
51
+  }
52
+
53
+  return new request.Request(params)
54
+}
55
+
56
+function verbFunc (verb) {
57
+  var method = verb.toUpperCase()
58
+  return function (uri, options, callback) {
59
+    var params = initParams(uri, options, callback)
60
+    params.method = method
61
+    return request(params, params.callback)
62
+  }
63
+}
64
+
65
+// define like this to please codeintel/intellisense IDEs
66
+request.get = verbFunc('get')
67
+request.head = verbFunc('head')
68
+request.options = verbFunc('options')
69
+request.post = verbFunc('post')
70
+request.put = verbFunc('put')
71
+request.patch = verbFunc('patch')
72
+request.del = verbFunc('delete')
73
+request['delete'] = verbFunc('delete')
74
+
75
+request.jar = function (store) {
76
+  return cookies.jar(store)
77
+}
78
+
79
+request.cookie = function (str) {
80
+  return cookies.parse(str)
81
+}
82
+
83
+function wrapRequestMethod (method, options, requester, verb) {
84
+  return function (uri, opts, callback) {
85
+    var params = initParams(uri, opts, callback)
86
+
87
+    var target = {}
88
+    extend(true, target, options, params)
89
+
90
+    target.pool = params.pool || options.pool
91
+
92
+    if (verb) {
93
+      target.method = verb.toUpperCase()
94
+    }
95
+
96
+    if (typeof requester === 'function') {
97
+      method = requester
98
+    }
99
+
100
+    return method(target, target.callback)
101
+  }
102
+}
103
+
104
+request.defaults = function (options, requester) {
105
+  var self = this
106
+
107
+  options = options || {}
108
+
109
+  if (typeof options === 'function') {
110
+    requester = options
111
+    options = {}
112
+  }
113
+
114
+  var defaults = wrapRequestMethod(self, options, requester)
115
+
116
+  var verbs = ['get', 'head', 'post', 'put', 'patch', 'del', 'delete']
117
+  verbs.forEach(function (verb) {
118
+    defaults[verb] = wrapRequestMethod(self[verb], options, requester, verb)
119
+  })
120
+
121
+  defaults.cookie = wrapRequestMethod(self.cookie, options, requester)
122
+  defaults.jar = self.jar
123
+  defaults.defaults = self.defaults
124
+  return defaults
125
+}
126
+
127
+request.forever = function (agentOptions, optionsArg) {
128
+  var options = {}
129
+  if (optionsArg) {
130
+    extend(options, optionsArg)
131
+  }
132
+  if (agentOptions) {
133
+    options.agentOptions = agentOptions
134
+  }
135
+
136
+  options.forever = true
137
+  return request.defaults(options)
138
+}
139
+
140
+// Exports
141
+
142
+module.exports = request
143
+request.Request = require('./request')
144
+request.initParams = initParams
145
+
146
+// Backwards compatibility for request.debug
147
+Object.defineProperty(request, 'debug', {
148
+  enumerable: true,
149
+  get: function () {
150
+    return request.Request.debug
151
+  },
152
+  set: function (debug) {
153
+    request.Request.debug = debug
154
+  }
155
+})

+ 167
- 0
node_modules/node-gyp/node_modules/request/lib/auth.js View File

1
+'use strict'
2
+
3
+var caseless = require('caseless')
4
+var uuid = require('uuid/v4')
5
+var helpers = require('./helpers')
6
+
7
+var md5 = helpers.md5
8
+var toBase64 = helpers.toBase64
9
+
10
+function Auth (request) {
11
+  // define all public properties here
12
+  this.request = request
13
+  this.hasAuth = false
14
+  this.sentAuth = false
15
+  this.bearerToken = null
16
+  this.user = null
17
+  this.pass = null
18
+}
19
+
20
+Auth.prototype.basic = function (user, pass, sendImmediately) {
21
+  var self = this
22
+  if (typeof user !== 'string' || (pass !== undefined && typeof pass !== 'string')) {
23
+    self.request.emit('error', new Error('auth() received invalid user or password'))
24
+  }
25
+  self.user = user
26
+  self.pass = pass
27
+  self.hasAuth = true
28
+  var header = user + ':' + (pass || '')
29
+  if (sendImmediately || typeof sendImmediately === 'undefined') {
30
+    var authHeader = 'Basic ' + toBase64(header)
31
+    self.sentAuth = true
32
+    return authHeader
33
+  }
34
+}
35
+
36
+Auth.prototype.bearer = function (bearer, sendImmediately) {
37
+  var self = this
38
+  self.bearerToken = bearer
39
+  self.hasAuth = true
40
+  if (sendImmediately || typeof sendImmediately === 'undefined') {
41
+    if (typeof bearer === 'function') {
42
+      bearer = bearer()
43
+    }
44
+    var authHeader = 'Bearer ' + (bearer || '')
45
+    self.sentAuth = true
46
+    return authHeader
47
+  }
48
+}
49
+
50
+Auth.prototype.digest = function (method, path, authHeader) {
51
+  // TODO: More complete implementation of RFC 2617.
52
+  //   - handle challenge.domain
53
+  //   - support qop="auth-int" only
54
+  //   - handle Authentication-Info (not necessarily?)
55
+  //   - check challenge.stale (not necessarily?)
56
+  //   - increase nc (not necessarily?)
57
+  // For reference:
58
+  // http://tools.ietf.org/html/rfc2617#section-3
59
+  // https://github.com/bagder/curl/blob/master/lib/http_digest.c
60
+
61
+  var self = this
62
+
63
+  var challenge = {}
64
+  var re = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi
65
+  for (;;) {
66
+    var match = re.exec(authHeader)
67
+    if (!match) {
68
+      break
69
+    }
70
+    challenge[match[1]] = match[2] || match[3]
71
+  }
72
+
73
+  /**
74
+   * RFC 2617: handle both MD5 and MD5-sess algorithms.
75
+   *
76
+   * If the algorithm directive's value is "MD5" or unspecified, then HA1 is
77
+   *   HA1=MD5(username:realm:password)
78
+   * If the algorithm directive's value is "MD5-sess", then HA1 is
79
+   *   HA1=MD5(MD5(username:realm:password):nonce:cnonce)
80
+   */
81
+  var ha1Compute = function (algorithm, user, realm, pass, nonce, cnonce) {
82
+    var ha1 = md5(user + ':' + realm + ':' + pass)
83
+    if (algorithm && algorithm.toLowerCase() === 'md5-sess') {
84
+      return md5(ha1 + ':' + nonce + ':' + cnonce)
85
+    } else {
86
+      return ha1
87
+    }
88
+  }
89
+
90
+  var qop = /(^|,)\s*auth\s*($|,)/.test(challenge.qop) && 'auth'
91
+  var nc = qop && '00000001'
92
+  var cnonce = qop && uuid().replace(/-/g, '')
93
+  var ha1 = ha1Compute(challenge.algorithm, self.user, challenge.realm, self.pass, challenge.nonce, cnonce)
94
+  var ha2 = md5(method + ':' + path)
95
+  var digestResponse = qop
96
+    ? md5(ha1 + ':' + challenge.nonce + ':' + nc + ':' + cnonce + ':' + qop + ':' + ha2)
97
+    : md5(ha1 + ':' + challenge.nonce + ':' + ha2)
98
+  var authValues = {
99
+    username: self.user,
100
+    realm: challenge.realm,
101
+    nonce: challenge.nonce,
102
+    uri: path,
103
+    qop: qop,
104
+    response: digestResponse,
105
+    nc: nc,
106
+    cnonce: cnonce,
107
+    algorithm: challenge.algorithm,
108
+    opaque: challenge.opaque
109
+  }
110
+
111
+  authHeader = []
112
+  for (var k in authValues) {
113
+    if (authValues[k]) {
114
+      if (k === 'qop' || k === 'nc' || k === 'algorithm') {
115
+        authHeader.push(k + '=' + authValues[k])
116
+      } else {
117
+        authHeader.push(k + '="' + authValues[k] + '"')
118
+      }
119
+    }
120
+  }
121
+  authHeader = 'Digest ' + authHeader.join(', ')
122
+  self.sentAuth = true
123
+  return authHeader
124
+}
125
+
126
+Auth.prototype.onRequest = function (user, pass, sendImmediately, bearer) {
127
+  var self = this
128
+  var request = self.request
129
+
130
+  var authHeader
131
+  if (bearer === undefined && user === undefined) {
132
+    self.request.emit('error', new Error('no auth mechanism defined'))
133
+  } else if (bearer !== undefined) {
134
+    authHeader = self.bearer(bearer, sendImmediately)
135
+  } else {
136
+    authHeader = self.basic(user, pass, sendImmediately)
137
+  }
138
+  if (authHeader) {
139
+    request.setHeader('authorization', authHeader)
140
+  }
141
+}
142
+
143
+Auth.prototype.onResponse = function (response) {
144
+  var self = this
145
+  var request = self.request
146
+
147
+  if (!self.hasAuth || self.sentAuth) { return null }
148
+
149
+  var c = caseless(response.headers)
150
+
151
+  var authHeader = c.get('www-authenticate')
152
+  var authVerb = authHeader && authHeader.split(' ')[0].toLowerCase()
153
+  request.debug('reauth', authVerb)
154
+
155
+  switch (authVerb) {
156
+    case 'basic':
157
+      return self.basic(self.user, self.pass, true)
158
+
159
+    case 'bearer':
160
+      return self.bearer(self.bearerToken, true)
161
+
162
+    case 'digest':
163
+      return self.digest(request.method, request.path, authHeader)
164
+  }
165
+}
166
+
167
+exports.Auth = Auth

+ 38
- 0
node_modules/node-gyp/node_modules/request/lib/cookies.js View File

1
+'use strict'
2
+
3
+var tough = require('tough-cookie')
4
+
5
+var Cookie = tough.Cookie
6
+var CookieJar = tough.CookieJar
7
+
8
+exports.parse = function (str) {
9
+  if (str && str.uri) {
10
+    str = str.uri
11
+  }
12
+  if (typeof str !== 'string') {
13
+    throw new Error('The cookie function only accepts STRING as param')
14
+  }
15
+  return Cookie.parse(str, {loose: true})
16
+}
17
+
18
+// Adapt the sometimes-Async api of tough.CookieJar to our requirements
19
+function RequestJar (store) {
20
+  var self = this
21
+  self._jar = new CookieJar(store, {looseMode: true})
22
+}
23
+RequestJar.prototype.setCookie = function (cookieOrStr, uri, options) {
24
+  var self = this
25
+  return self._jar.setCookieSync(cookieOrStr, uri, options || {})
26
+}
27
+RequestJar.prototype.getCookieString = function (uri) {
28
+  var self = this
29
+  return self._jar.getCookieStringSync(uri)
30
+}
31
+RequestJar.prototype.getCookies = function (uri) {
32
+  var self = this
33
+  return self._jar.getCookiesSync(uri)
34
+}
35
+
36
+exports.jar = function (store) {
37
+  return new RequestJar(store)
38
+}

+ 79
- 0
node_modules/node-gyp/node_modules/request/lib/getProxyFromURI.js View File

1
+'use strict'
2
+
3
+function formatHostname (hostname) {
4
+  // canonicalize the hostname, so that 'oogle.com' won't match 'google.com'
5
+  return hostname.replace(/^\.*/, '.').toLowerCase()
6
+}
7
+
8
+function parseNoProxyZone (zone) {
9
+  zone = zone.trim().toLowerCase()
10
+
11
+  var zoneParts = zone.split(':', 2)
12
+  var zoneHost = formatHostname(zoneParts[0])
13
+  var zonePort = zoneParts[1]
14
+  var hasPort = zone.indexOf(':') > -1
15
+
16
+  return {hostname: zoneHost, port: zonePort, hasPort: hasPort}
17
+}
18
+
19
+function uriInNoProxy (uri, noProxy) {
20
+  var port = uri.port || (uri.protocol === 'https:' ? '443' : '80')
21
+  var hostname = formatHostname(uri.hostname)
22
+  var noProxyList = noProxy.split(',')
23
+
24
+  // iterate through the noProxyList until it finds a match.
25
+  return noProxyList.map(parseNoProxyZone).some(function (noProxyZone) {
26
+    var isMatchedAt = hostname.indexOf(noProxyZone.hostname)
27
+    var hostnameMatched = (
28
+      isMatchedAt > -1 &&
29
+        (isMatchedAt === hostname.length - noProxyZone.hostname.length)
30
+    )
31
+
32
+    if (noProxyZone.hasPort) {
33
+      return (port === noProxyZone.port) && hostnameMatched
34
+    }
35
+
36
+    return hostnameMatched
37
+  })
38
+}
39
+
40
+function getProxyFromURI (uri) {
41
+  // Decide the proper request proxy to use based on the request URI object and the
42
+  // environmental variables (NO_PROXY, HTTP_PROXY, etc.)
43
+  // respect NO_PROXY environment variables (see: http://lynx.isc.org/current/breakout/lynx_help/keystrokes/environments.html)
44
+
45
+  var noProxy = process.env.NO_PROXY || process.env.no_proxy || ''
46
+
47
+  // if the noProxy is a wildcard then return null
48
+
49
+  if (noProxy === '*') {
50
+    return null
51
+  }
52
+
53
+  // if the noProxy is not empty and the uri is found return null
54
+
55
+  if (noProxy !== '' && uriInNoProxy(uri, noProxy)) {
56
+    return null
57
+  }
58
+
59
+  // Check for HTTP or HTTPS Proxy in environment Else default to null
60
+
61
+  if (uri.protocol === 'http:') {
62
+    return process.env.HTTP_PROXY ||
63
+      process.env.http_proxy || null
64
+  }
65
+
66
+  if (uri.protocol === 'https:') {
67
+    return process.env.HTTPS_PROXY ||
68
+      process.env.https_proxy ||
69
+      process.env.HTTP_PROXY ||
70
+      process.env.http_proxy || null
71
+  }
72
+
73
+  // if none of that works, return null
74
+  // (What uri protocol are you using then?)
75
+
76
+  return null
77
+}
78
+
79
+module.exports = getProxyFromURI

+ 205
- 0
node_modules/node-gyp/node_modules/request/lib/har.js View File

1
+'use strict'
2
+
3
+var fs = require('fs')
4
+var qs = require('querystring')
5
+var validate = require('har-validator')
6
+var extend = require('extend')
7
+
8
+function Har (request) {
9
+  this.request = request
10
+}
11
+
12
+Har.prototype.reducer = function (obj, pair) {
13
+  // new property ?
14
+  if (obj[pair.name] === undefined) {
15
+    obj[pair.name] = pair.value
16
+    return obj
17
+  }
18
+
19
+  // existing? convert to array
20
+  var arr = [
21
+    obj[pair.name],
22
+    pair.value
23
+  ]
24
+
25
+  obj[pair.name] = arr
26
+
27
+  return obj
28
+}
29
+
30
+Har.prototype.prep = function (data) {
31
+  // construct utility properties
32
+  data.queryObj = {}
33
+  data.headersObj = {}
34
+  data.postData.jsonObj = false
35
+  data.postData.paramsObj = false
36
+
37
+  // construct query objects
38
+  if (data.queryString && data.queryString.length) {
39
+    data.queryObj = data.queryString.reduce(this.reducer, {})
40
+  }
41
+
42
+  // construct headers objects
43
+  if (data.headers && data.headers.length) {
44
+    // loweCase header keys
45
+    data.headersObj = data.headers.reduceRight(function (headers, header) {
46
+      headers[header.name] = header.value
47
+      return headers
48
+    }, {})
49
+  }
50
+
51
+  // construct Cookie header
52
+  if (data.cookies && data.cookies.length) {
53
+    var cookies = data.cookies.map(function (cookie) {
54
+      return cookie.name + '=' + cookie.value
55
+    })
56
+
57
+    if (cookies.length) {
58
+      data.headersObj.cookie = cookies.join('; ')
59
+    }
60
+  }
61
+
62
+  // prep body
63
+  function some (arr) {
64
+    return arr.some(function (type) {
65
+      return data.postData.mimeType.indexOf(type) === 0
66
+    })
67
+  }
68
+
69
+  if (some([
70
+    'multipart/mixed',
71
+    'multipart/related',
72
+    'multipart/form-data',
73
+    'multipart/alternative'])) {
74
+    // reset values
75
+    data.postData.mimeType = 'multipart/form-data'
76
+  } else if (some([
77
+    'application/x-www-form-urlencoded'])) {
78
+    if (!data.postData.params) {
79
+      data.postData.text = ''
80
+    } else {
81
+      data.postData.paramsObj = data.postData.params.reduce(this.reducer, {})
82
+
83
+      // always overwrite
84
+      data.postData.text = qs.stringify(data.postData.paramsObj)
85
+    }
86
+  } else if (some([
87
+    'text/json',
88
+    'text/x-json',
89
+    'application/json',
90
+    'application/x-json'])) {
91
+    data.postData.mimeType = 'application/json'
92
+
93
+    if (data.postData.text) {
94
+      try {
95
+        data.postData.jsonObj = JSON.parse(data.postData.text)
96
+      } catch (e) {
97
+        this.request.debug(e)
98
+
99
+        // force back to text/plain
100
+        data.postData.mimeType = 'text/plain'
101
+      }
102
+    }
103
+  }
104
+
105
+  return data
106
+}
107
+
108
+Har.prototype.options = function (options) {
109
+  // skip if no har property defined
110
+  if (!options.har) {
111
+    return options
112
+  }
113
+
114
+  var har = {}
115
+  extend(har, options.har)
116
+
117
+  // only process the first entry
118
+  if (har.log && har.log.entries) {
119
+    har = har.log.entries[0]
120
+  }
121
+
122
+  // add optional properties to make validation successful
123
+  har.url = har.url || options.url || options.uri || options.baseUrl || '/'
124
+  har.httpVersion = har.httpVersion || 'HTTP/1.1'
125
+  har.queryString = har.queryString || []
126
+  har.headers = har.headers || []
127
+  har.cookies = har.cookies || []
128
+  har.postData = har.postData || {}
129
+  har.postData.mimeType = har.postData.mimeType || 'application/octet-stream'
130
+
131
+  har.bodySize = 0
132
+  har.headersSize = 0
133
+  har.postData.size = 0
134
+
135
+  if (!validate.request(har)) {
136
+    return options
137
+  }
138
+
139
+  // clean up and get some utility properties
140
+  var req = this.prep(har)
141
+
142
+  // construct new options
143
+  if (req.url) {
144
+    options.url = req.url
145
+  }
146
+
147
+  if (req.method) {
148
+    options.method = req.method
149
+  }
150
+
151
+  if (Object.keys(req.queryObj).length) {
152
+    options.qs = req.queryObj
153
+  }
154
+
155
+  if (Object.keys(req.headersObj).length) {
156
+    options.headers = req.headersObj
157
+  }
158
+
159
+  function test (type) {
160
+    return req.postData.mimeType.indexOf(type) === 0
161
+  }
162
+  if (test('application/x-www-form-urlencoded')) {
163
+    options.form = req.postData.paramsObj
164
+  } else if (test('application/json')) {
165
+    if (req.postData.jsonObj) {
166
+      options.body = req.postData.jsonObj
167
+      options.json = true
168
+    }
169
+  } else if (test('multipart/form-data')) {
170
+    options.formData = {}
171
+
172
+    req.postData.params.forEach(function (param) {
173
+      var attachment = {}
174
+
175
+      if (!param.fileName && !param.fileName && !param.contentType) {
176
+        options.formData[param.name] = param.value
177
+        return
178
+      }
179
+
180
+      // attempt to read from disk!
181
+      if (param.fileName && !param.value) {
182
+        attachment.value = fs.createReadStream(param.fileName)
183
+      } else if (param.value) {
184
+        attachment.value = param.value
185
+      }
186
+
187
+      if (param.fileName) {
188
+        attachment.options = {
189
+          filename: param.fileName,
190
+          contentType: param.contentType ? param.contentType : null
191
+        }
192
+      }
193
+
194
+      options.formData[param.name] = attachment
195
+    })
196
+  } else {
197
+    if (req.postData.text) {
198
+      options.body = req.postData.text
199
+    }
200
+  }
201
+
202
+  return options
203
+}
204
+
205
+exports.Har = Har

+ 89
- 0
node_modules/node-gyp/node_modules/request/lib/hawk.js View File

1
+'use strict'
2
+
3
+var crypto = require('crypto')
4
+
5
+function randomString (size) {
6
+  var bits = (size + 1) * 6
7
+  var buffer = crypto.randomBytes(Math.ceil(bits / 8))
8
+  var string = buffer.toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '')
9
+  return string.slice(0, size)
10
+}
11
+
12
+function calculatePayloadHash (payload, algorithm, contentType) {
13
+  var hash = crypto.createHash(algorithm)
14
+  hash.update('hawk.1.payload\n')
15
+  hash.update((contentType ? contentType.split(';')[0].trim().toLowerCase() : '') + '\n')
16
+  hash.update(payload || '')
17
+  hash.update('\n')
18
+  return hash.digest('base64')
19
+}
20
+
21
+exports.calculateMac = function (credentials, opts) {
22
+  var normalized = 'hawk.1.header\n' +
23
+    opts.ts + '\n' +
24
+    opts.nonce + '\n' +
25
+    (opts.method || '').toUpperCase() + '\n' +
26
+    opts.resource + '\n' +
27
+    opts.host.toLowerCase() + '\n' +
28
+    opts.port + '\n' +
29
+    (opts.hash || '') + '\n'
30
+
31
+  if (opts.ext) {
32
+    normalized = normalized + opts.ext.replace('\\', '\\\\').replace('\n', '\\n')
33
+  }
34
+
35
+  normalized = normalized + '\n'
36
+
37
+  if (opts.app) {
38
+    normalized = normalized + opts.app + '\n' + (opts.dlg || '') + '\n'
39
+  }
40
+
41
+  var hmac = crypto.createHmac(credentials.algorithm, credentials.key).update(normalized)
42
+  var digest = hmac.digest('base64')
43
+  return digest
44
+}
45
+
46
+exports.header = function (uri, method, opts) {
47
+  var timestamp = opts.timestamp || Math.floor((Date.now() + (opts.localtimeOffsetMsec || 0)) / 1000)
48
+  var credentials = opts.credentials
49
+  if (!credentials || !credentials.id || !credentials.key || !credentials.algorithm) {
50
+    return ''
51
+  }
52
+
53
+  if (['sha1', 'sha256'].indexOf(credentials.algorithm) === -1) {
54
+    return ''
55
+  }
56
+
57
+  var artifacts = {
58
+    ts: timestamp,
59
+    nonce: opts.nonce || randomString(6),
60
+    method: method,
61
+    resource: uri.pathname + (uri.search || ''),
62
+    host: uri.hostname,
63
+    port: uri.port || (uri.protocol === 'http:' ? 80 : 443),
64
+    hash: opts.hash,
65
+    ext: opts.ext,
66
+    app: opts.app,
67
+    dlg: opts.dlg
68
+  }
69
+
70
+  if (!artifacts.hash && (opts.payload || opts.payload === '')) {
71
+    artifacts.hash = calculatePayloadHash(opts.payload, credentials.algorithm, opts.contentType)
72
+  }
73
+
74
+  var mac = exports.calculateMac(credentials, artifacts)
75
+
76
+  var hasExt = artifacts.ext !== null && artifacts.ext !== undefined && artifacts.ext !== ''
77
+  var header = 'Hawk id="' + credentials.id +
78
+    '", ts="' + artifacts.ts +
79
+    '", nonce="' + artifacts.nonce +
80
+    (artifacts.hash ? '", hash="' + artifacts.hash : '') +
81
+    (hasExt ? '", ext="' + artifacts.ext.replace(/\\/g, '\\\\').replace(/"/g, '\\"') : '') +
82
+    '", mac="' + mac + '"'
83
+
84
+  if (artifacts.app) {
85
+    header = header + ', app="' + artifacts.app + (artifacts.dlg ? '", dlg="' + artifacts.dlg : '') + '"'
86
+  }
87
+
88
+  return header
89
+}

+ 66
- 0
node_modules/node-gyp/node_modules/request/lib/helpers.js View File

1
+'use strict'
2
+
3
+var jsonSafeStringify = require('json-stringify-safe')
4
+var crypto = require('crypto')
5
+var Buffer = require('safe-buffer').Buffer
6
+
7
+var defer = typeof setImmediate === 'undefined'
8
+  ? process.nextTick
9
+  : setImmediate
10
+
11
+function paramsHaveRequestBody (params) {
12
+  return (
13
+    params.body ||
14
+    params.requestBodyStream ||
15
+    (params.json && typeof params.json !== 'boolean') ||
16
+    params.multipart
17
+  )
18
+}
19
+
20
+function safeStringify (obj, replacer) {
21
+  var ret
22
+  try {
23
+    ret = JSON.stringify(obj, replacer)
24
+  } catch (e) {
25
+    ret = jsonSafeStringify(obj, replacer)
26
+  }
27
+  return ret
28
+}
29
+
30
+function md5 (str) {
31
+  return crypto.createHash('md5').update(str).digest('hex')
32
+}
33
+
34
+function isReadStream (rs) {
35
+  return rs.readable && rs.path && rs.mode
36
+}
37
+
38
+function toBase64 (str) {
39
+  return Buffer.from(str || '', 'utf8').toString('base64')
40
+}
41
+
42
+function copy (obj) {
43
+  var o = {}
44
+  Object.keys(obj).forEach(function (i) {
45
+    o[i] = obj[i]
46
+  })
47
+  return o
48
+}
49
+
50
+function version () {
51
+  var numbers = process.version.replace('v', '').split('.')
52
+  return {
53
+    major: parseInt(numbers[0], 10),
54
+    minor: parseInt(numbers[1], 10),
55
+    patch: parseInt(numbers[2], 10)
56
+  }
57
+}
58
+
59
+exports.paramsHaveRequestBody = paramsHaveRequestBody
60
+exports.safeStringify = safeStringify
61
+exports.md5 = md5
62
+exports.isReadStream = isReadStream
63
+exports.toBase64 = toBase64
64
+exports.copy = copy
65
+exports.version = version
66
+exports.defer = defer

+ 112
- 0
node_modules/node-gyp/node_modules/request/lib/multipart.js View File

1
+'use strict'
2
+
3
+var uuid = require('uuid/v4')
4
+var CombinedStream = require('combined-stream')
5
+var isstream = require('isstream')
6
+var Buffer = require('safe-buffer').Buffer
7
+
8
+function Multipart (request) {
9
+  this.request = request
10
+  this.boundary = uuid()
11
+  this.chunked = false
12
+  this.body = null
13
+}
14
+
15
+Multipart.prototype.isChunked = function (options) {
16
+  var self = this
17
+  var chunked = false
18
+  var parts = options.data || options
19
+
20
+  if (!parts.forEach) {
21
+    self.request.emit('error', new Error('Argument error, options.multipart.'))
22
+  }
23
+
24
+  if (options.chunked !== undefined) {
25
+    chunked = options.chunked
26
+  }
27
+
28
+  if (self.request.getHeader('transfer-encoding') === 'chunked') {
29
+    chunked = true
30
+  }
31
+
32
+  if (!chunked) {
33
+    parts.forEach(function (part) {
34
+      if (typeof part.body === 'undefined') {
35
+        self.request.emit('error', new Error('Body attribute missing in multipart.'))
36
+      }
37
+      if (isstream(part.body)) {
38
+        chunked = true
39
+      }
40
+    })
41
+  }
42
+
43
+  return chunked
44
+}
45
+
46
+Multipart.prototype.setHeaders = function (chunked) {
47
+  var self = this
48
+
49
+  if (chunked && !self.request.hasHeader('transfer-encoding')) {
50
+    self.request.setHeader('transfer-encoding', 'chunked')
51
+  }
52
+
53
+  var header = self.request.getHeader('content-type')
54
+
55
+  if (!header || header.indexOf('multipart') === -1) {
56
+    self.request.setHeader('content-type', 'multipart/related; boundary=' + self.boundary)
57
+  } else {
58
+    if (header.indexOf('boundary') !== -1) {
59
+      self.boundary = header.replace(/.*boundary=([^\s;]+).*/, '$1')
60
+    } else {
61
+      self.request.setHeader('content-type', header + '; boundary=' + self.boundary)
62
+    }
63
+  }
64
+}
65
+
66
+Multipart.prototype.build = function (parts, chunked) {
67
+  var self = this
68
+  var body = chunked ? new CombinedStream() : []
69
+
70
+  function add (part) {
71
+    if (typeof part === 'number') {
72
+      part = part.toString()
73
+    }
74
+    return chunked ? body.append(part) : body.push(Buffer.from(part))
75
+  }
76
+
77
+  if (self.request.preambleCRLF) {
78
+    add('\r\n')
79
+  }
80
+
81
+  parts.forEach(function (part) {
82
+    var preamble = '--' + self.boundary + '\r\n'
83
+    Object.keys(part).forEach(function (key) {
84
+      if (key === 'body') { return }
85
+      preamble += key + ': ' + part[key] + '\r\n'
86
+    })
87
+    preamble += '\r\n'
88
+    add(preamble)
89
+    add(part.body)
90
+    add('\r\n')
91
+  })
92
+  add('--' + self.boundary + '--')
93
+
94
+  if (self.request.postambleCRLF) {
95
+    add('\r\n')
96
+  }
97
+
98
+  return body
99
+}
100
+
101
+Multipart.prototype.onRequest = function (options) {
102
+  var self = this
103
+
104
+  var chunked = self.isChunked(options)
105
+  var parts = options.data || options
106
+
107
+  self.setHeaders(chunked)
108
+  self.chunked = chunked
109
+  self.body = self.build(parts, chunked)
110
+}
111
+
112
+exports.Multipart = Multipart

+ 148
- 0
node_modules/node-gyp/node_modules/request/lib/oauth.js View File

1
+'use strict'
2
+
3
+var url = require('url')
4
+var qs = require('qs')
5
+var caseless = require('caseless')
6
+var uuid = require('uuid/v4')
7
+var oauth = require('oauth-sign')
8
+var crypto = require('crypto')
9
+var Buffer = require('safe-buffer').Buffer
10
+
11
+function OAuth (request) {
12
+  this.request = request
13
+  this.params = null
14
+}
15
+
16
+OAuth.prototype.buildParams = function (_oauth, uri, method, query, form, qsLib) {
17
+  var oa = {}
18
+  for (var i in _oauth) {
19
+    oa['oauth_' + i] = _oauth[i]
20
+  }
21
+  if (!oa.oauth_version) {
22
+    oa.oauth_version = '1.0'
23
+  }
24
+  if (!oa.oauth_timestamp) {
25
+    oa.oauth_timestamp = Math.floor(Date.now() / 1000).toString()
26
+  }
27
+  if (!oa.oauth_nonce) {
28
+    oa.oauth_nonce = uuid().replace(/-/g, '')
29
+  }
30
+  if (!oa.oauth_signature_method) {
31
+    oa.oauth_signature_method = 'HMAC-SHA1'
32
+  }
33
+
34
+  var consumer_secret_or_private_key = oa.oauth_consumer_secret || oa.oauth_private_key // eslint-disable-line camelcase
35
+  delete oa.oauth_consumer_secret
36
+  delete oa.oauth_private_key
37
+
38
+  var token_secret = oa.oauth_token_secret // eslint-disable-line camelcase
39
+  delete oa.oauth_token_secret
40
+
41
+  var realm = oa.oauth_realm
42
+  delete oa.oauth_realm
43
+  delete oa.oauth_transport_method
44
+
45
+  var baseurl = uri.protocol + '//' + uri.host + uri.pathname
46
+  var params = qsLib.parse([].concat(query, form, qsLib.stringify(oa)).join('&'))
47
+
48
+  oa.oauth_signature = oauth.sign(
49
+    oa.oauth_signature_method,
50
+    method,
51
+    baseurl,
52
+    params,
53
+    consumer_secret_or_private_key, // eslint-disable-line camelcase
54
+    token_secret // eslint-disable-line camelcase
55
+  )
56
+
57
+  if (realm) {
58
+    oa.realm = realm
59
+  }
60
+
61
+  return oa
62
+}
63
+
64
+OAuth.prototype.buildBodyHash = function (_oauth, body) {
65
+  if (['HMAC-SHA1', 'RSA-SHA1'].indexOf(_oauth.signature_method || 'HMAC-SHA1') < 0) {
66
+    this.request.emit('error', new Error('oauth: ' + _oauth.signature_method +
67
+      ' signature_method not supported with body_hash signing.'))
68
+  }
69
+
70
+  var shasum = crypto.createHash('sha1')
71
+  shasum.update(body || '')
72
+  var sha1 = shasum.digest('hex')
73
+
74
+  return Buffer.from(sha1, 'hex').toString('base64')
75
+}
76
+
77
+OAuth.prototype.concatParams = function (oa, sep, wrap) {
78
+  wrap = wrap || ''
79
+
80
+  var params = Object.keys(oa).filter(function (i) {
81
+    return i !== 'realm' && i !== 'oauth_signature'
82
+  }).sort()
83
+
84
+  if (oa.realm) {
85
+    params.splice(0, 0, 'realm')
86
+  }
87
+  params.push('oauth_signature')
88
+
89
+  return params.map(function (i) {
90
+    return i + '=' + wrap + oauth.rfc3986(oa[i]) + wrap
91
+  }).join(sep)
92
+}
93
+
94
+OAuth.prototype.onRequest = function (_oauth) {
95
+  var self = this
96
+  self.params = _oauth
97
+
98
+  var uri = self.request.uri || {}
99
+  var method = self.request.method || ''
100
+  var headers = caseless(self.request.headers)
101
+  var body = self.request.body || ''
102
+  var qsLib = self.request.qsLib || qs
103
+
104
+  var form
105
+  var query
106
+  var contentType = headers.get('content-type') || ''
107
+  var formContentType = 'application/x-www-form-urlencoded'
108
+  var transport = _oauth.transport_method || 'header'
109
+
110
+  if (contentType.slice(0, formContentType.length) === formContentType) {
111
+    contentType = formContentType
112
+    form = body
113
+  }
114
+  if (uri.query) {
115
+    query = uri.query
116
+  }
117
+  if (transport === 'body' && (method !== 'POST' || contentType !== formContentType)) {
118
+    self.request.emit('error', new Error('oauth: transport_method of body requires POST ' +
119
+      'and content-type ' + formContentType))
120
+  }
121
+
122
+  if (!form && typeof _oauth.body_hash === 'boolean') {
123
+    _oauth.body_hash = self.buildBodyHash(_oauth, self.request.body.toString())
124
+  }
125
+
126
+  var oa = self.buildParams(_oauth, uri, method, query, form, qsLib)
127
+
128
+  switch (transport) {
129
+    case 'header':
130
+      self.request.setHeader('Authorization', 'OAuth ' + self.concatParams(oa, ',', '"'))
131
+      break
132
+
133
+    case 'query':
134
+      var href = self.request.uri.href += (query ? '&' : '?') + self.concatParams(oa, '&')
135
+      self.request.uri = url.parse(href)
136
+      self.request.path = self.request.uri.path
137
+      break
138
+
139
+    case 'body':
140
+      self.request.body = (form ? form + '&' : '') + self.concatParams(oa, '&')
141
+      break
142
+
143
+    default:
144
+      self.request.emit('error', new Error('oauth: transport_method invalid'))
145
+  }
146
+}
147
+
148
+exports.OAuth = OAuth

+ 50
- 0
node_modules/node-gyp/node_modules/request/lib/querystring.js View File

1
+'use strict'
2
+
3
+var qs = require('qs')
4
+var querystring = require('querystring')
5
+
6
+function Querystring (request) {
7
+  this.request = request
8
+  this.lib = null
9
+  this.useQuerystring = null
10
+  this.parseOptions = null
11
+  this.stringifyOptions = null
12
+}
13
+
14
+Querystring.prototype.init = function (options) {
15
+  if (this.lib) { return }
16
+
17
+  this.useQuerystring = options.useQuerystring
18
+  this.lib = (this.useQuerystring ? querystring : qs)
19
+
20
+  this.parseOptions = options.qsParseOptions || {}
21
+  this.stringifyOptions = options.qsStringifyOptions || {}
22
+}
23
+
24
+Querystring.prototype.stringify = function (obj) {
25
+  return (this.useQuerystring)
26
+    ? this.rfc3986(this.lib.stringify(obj,
27
+      this.stringifyOptions.sep || null,
28
+      this.stringifyOptions.eq || null,
29
+      this.stringifyOptions))
30
+    : this.lib.stringify(obj, this.stringifyOptions)
31
+}
32
+
33
+Querystring.prototype.parse = function (str) {
34
+  return (this.useQuerystring)
35
+    ? this.lib.parse(str,
36
+      this.parseOptions.sep || null,
37
+      this.parseOptions.eq || null,
38
+      this.parseOptions)
39
+    : this.lib.parse(str, this.parseOptions)
40
+}
41
+
42
+Querystring.prototype.rfc3986 = function (str) {
43
+  return str.replace(/[!'()*]/g, function (c) {
44
+    return '%' + c.charCodeAt(0).toString(16).toUpperCase()
45
+  })
46
+}
47
+
48
+Querystring.prototype.unescape = querystring.unescape
49
+
50
+exports.Querystring = Querystring

+ 154
- 0
node_modules/node-gyp/node_modules/request/lib/redirect.js View File

1
+'use strict'
2
+
3
+var url = require('url')
4
+var isUrl = /^https?:/
5
+
6
+function Redirect (request) {
7
+  this.request = request
8
+  this.followRedirect = true
9
+  this.followRedirects = true
10
+  this.followAllRedirects = false
11
+  this.followOriginalHttpMethod = false
12
+  this.allowRedirect = function () { return true }
13
+  this.maxRedirects = 10
14
+  this.redirects = []
15
+  this.redirectsFollowed = 0
16
+  this.removeRefererHeader = false
17
+}
18
+
19
+Redirect.prototype.onRequest = function (options) {
20
+  var self = this
21
+
22
+  if (options.maxRedirects !== undefined) {
23
+    self.maxRedirects = options.maxRedirects
24
+  }
25
+  if (typeof options.followRedirect === 'function') {
26
+    self.allowRedirect = options.followRedirect
27
+  }
28
+  if (options.followRedirect !== undefined) {
29
+    self.followRedirects = !!options.followRedirect
30
+  }
31
+  if (options.followAllRedirects !== undefined) {
32
+    self.followAllRedirects = options.followAllRedirects
33
+  }
34
+  if (self.followRedirects || self.followAllRedirects) {
35
+    self.redirects = self.redirects || []
36
+  }
37
+  if (options.removeRefererHeader !== undefined) {
38
+    self.removeRefererHeader = options.removeRefererHeader
39
+  }
40
+  if (options.followOriginalHttpMethod !== undefined) {
41
+    self.followOriginalHttpMethod = options.followOriginalHttpMethod
42
+  }
43
+}
44
+
45
+Redirect.prototype.redirectTo = function (response) {
46
+  var self = this
47
+  var request = self.request
48
+
49
+  var redirectTo = null
50
+  if (response.statusCode >= 300 && response.statusCode < 400 && response.caseless.has('location')) {
51
+    var location = response.caseless.get('location')
52
+    request.debug('redirect', location)
53
+
54
+    if (self.followAllRedirects) {
55
+      redirectTo = location
56
+    } else if (self.followRedirects) {
57
+      switch (request.method) {
58
+        case 'PATCH':
59
+        case 'PUT':
60
+        case 'POST':
61
+        case 'DELETE':
62
+          // Do not follow redirects
63
+          break
64
+        default:
65
+          redirectTo = location
66
+          break
67
+      }
68
+    }
69
+  } else if (response.statusCode === 401) {
70
+    var authHeader = request._auth.onResponse(response)
71
+    if (authHeader) {
72
+      request.setHeader('authorization', authHeader)
73
+      redirectTo = request.uri
74
+    }
75
+  }
76
+  return redirectTo
77
+}
78
+
79
+Redirect.prototype.onResponse = function (response) {
80
+  var self = this
81
+  var request = self.request
82
+
83
+  var redirectTo = self.redirectTo(response)
84
+  if (!redirectTo || !self.allowRedirect.call(request, response)) {
85
+    return false
86
+  }
87
+
88
+  request.debug('redirect to', redirectTo)
89
+
90
+  // ignore any potential response body.  it cannot possibly be useful
91
+  // to us at this point.
92
+  // response.resume should be defined, but check anyway before calling. Workaround for browserify.
93
+  if (response.resume) {
94
+    response.resume()
95
+  }
96
+
97
+  if (self.redirectsFollowed >= self.maxRedirects) {
98
+    request.emit('error', new Error('Exceeded maxRedirects. Probably stuck in a redirect loop ' + request.uri.href))
99
+    return false
100
+  }
101
+  self.redirectsFollowed += 1
102
+
103
+  if (!isUrl.test(redirectTo)) {
104
+    redirectTo = url.resolve(request.uri.href, redirectTo)
105
+  }
106
+
107
+  var uriPrev = request.uri
108
+  request.uri = url.parse(redirectTo)
109
+
110
+  // handle the case where we change protocol from https to http or vice versa
111
+  if (request.uri.protocol !== uriPrev.protocol) {
112
+    delete request.agent
113
+  }
114
+
115
+  self.redirects.push({ statusCode: response.statusCode, redirectUri: redirectTo })
116
+
117
+  if (self.followAllRedirects && request.method !== 'HEAD' &&
118
+    response.statusCode !== 401 && response.statusCode !== 307) {
119
+    request.method = self.followOriginalHttpMethod ? request.method : 'GET'
120
+  }
121
+  // request.method = 'GET' // Force all redirects to use GET || commented out fixes #215
122
+  delete request.src
123
+  delete request.req
124
+  delete request._started
125
+  if (response.statusCode !== 401 && response.statusCode !== 307) {
126
+    // Remove parameters from the previous response, unless this is the second request
127
+    // for a server that requires digest authentication.
128
+    delete request.body
129
+    delete request._form
130
+    if (request.headers) {
131
+      request.removeHeader('host')
132
+      request.removeHeader('content-type')
133
+      request.removeHeader('content-length')
134
+      if (request.uri.hostname !== request.originalHost.split(':')[0]) {
135
+        // Remove authorization if changing hostnames (but not if just
136
+        // changing ports or protocols).  This matches the behavior of curl:
137
+        // https://github.com/bagder/curl/blob/6beb0eee/lib/http.c#L710
138
+        request.removeHeader('authorization')
139
+      }
140
+    }
141
+  }
142
+
143
+  if (!self.removeRefererHeader) {
144
+    request.setHeader('referer', uriPrev.href)
145
+  }
146
+
147
+  request.emit('redirect')
148
+
149
+  request.init()
150
+
151
+  return true
152
+}
153
+
154
+exports.Redirect = Redirect

+ 175
- 0
node_modules/node-gyp/node_modules/request/lib/tunnel.js View File

1
+'use strict'
2
+
3
+var url = require('url')
4
+var tunnel = require('tunnel-agent')
5
+
6
+var defaultProxyHeaderWhiteList = [
7
+  'accept',
8
+  'accept-charset',
9
+  'accept-encoding',
10
+  'accept-language',
11
+  'accept-ranges',
12
+  'cache-control',
13
+  'content-encoding',
14
+  'content-language',
15
+  'content-location',
16
+  'content-md5',
17
+  'content-range',
18
+  'content-type',
19
+  'connection',
20
+  'date',
21
+  'expect',
22
+  'max-forwards',
23
+  'pragma',
24
+  'referer',
25
+  'te',
26
+  'user-agent',
27
+  'via'
28
+]
29
+
30
+var defaultProxyHeaderExclusiveList = [
31
+  'proxy-authorization'
32
+]
33
+
34
+function constructProxyHost (uriObject) {
35
+  var port = uriObject.port
36
+  var protocol = uriObject.protocol
37
+  var proxyHost = uriObject.hostname + ':'
38
+
39
+  if (port) {
40
+    proxyHost += port
41
+  } else if (protocol === 'https:') {
42
+    proxyHost += '443'
43
+  } else {
44
+    proxyHost += '80'
45
+  }
46
+
47
+  return proxyHost
48
+}
49
+
50
+function constructProxyHeaderWhiteList (headers, proxyHeaderWhiteList) {
51
+  var whiteList = proxyHeaderWhiteList
52
+    .reduce(function (set, header) {
53
+      set[header.toLowerCase()] = true
54
+      return set
55
+    }, {})
56
+
57
+  return Object.keys(headers)
58
+    .filter(function (header) {
59
+      return whiteList[header.toLowerCase()]
60
+    })
61
+    .reduce(function (set, header) {
62
+      set[header] = headers[header]
63
+      return set
64
+    }, {})
65
+}
66
+
67
+function constructTunnelOptions (request, proxyHeaders) {
68
+  var proxy = request.proxy
69
+
70
+  var tunnelOptions = {
71
+    proxy: {
72
+      host: proxy.hostname,
73
+      port: +proxy.port,
74
+      proxyAuth: proxy.auth,
75
+      headers: proxyHeaders
76
+    },
77
+    headers: request.headers,
78
+    ca: request.ca,
79
+    cert: request.cert,
80
+    key: request.key,
81
+    passphrase: request.passphrase,
82
+    pfx: request.pfx,
83
+    ciphers: request.ciphers,
84
+    rejectUnauthorized: request.rejectUnauthorized,
85
+    secureOptions: request.secureOptions,
86
+    secureProtocol: request.secureProtocol
87
+  }
88
+
89
+  return tunnelOptions
90
+}
91
+
92
+function constructTunnelFnName (uri, proxy) {
93
+  var uriProtocol = (uri.protocol === 'https:' ? 'https' : 'http')
94
+  var proxyProtocol = (proxy.protocol === 'https:' ? 'Https' : 'Http')
95
+  return [uriProtocol, proxyProtocol].join('Over')
96
+}
97
+
98
+function getTunnelFn (request) {
99
+  var uri = request.uri
100
+  var proxy = request.proxy
101
+  var tunnelFnName = constructTunnelFnName(uri, proxy)
102
+  return tunnel[tunnelFnName]
103
+}
104
+
105
+function Tunnel (request) {
106
+  this.request = request
107
+  this.proxyHeaderWhiteList = defaultProxyHeaderWhiteList
108
+  this.proxyHeaderExclusiveList = []
109
+  if (typeof request.tunnel !== 'undefined') {
110
+    this.tunnelOverride = request.tunnel
111
+  }
112
+}
113
+
114
+Tunnel.prototype.isEnabled = function () {
115
+  var self = this
116
+  var request = self.request
117
+    // Tunnel HTTPS by default. Allow the user to override this setting.
118
+
119
+  // If self.tunnelOverride is set (the user specified a value), use it.
120
+  if (typeof self.tunnelOverride !== 'undefined') {
121
+    return self.tunnelOverride
122
+  }
123
+
124
+  // If the destination is HTTPS, tunnel.
125
+  if (request.uri.protocol === 'https:') {
126
+    return true
127
+  }
128
+
129
+  // Otherwise, do not use tunnel.
130
+  return false
131
+}
132
+
133
+Tunnel.prototype.setup = function (options) {
134
+  var self = this
135
+  var request = self.request
136
+
137
+  options = options || {}
138
+
139
+  if (typeof request.proxy === 'string') {
140
+    request.proxy = url.parse(request.proxy)
141
+  }
142
+
143
+  if (!request.proxy || !request.tunnel) {
144
+    return false
145
+  }
146
+
147
+  // Setup Proxy Header Exclusive List and White List
148
+  if (options.proxyHeaderWhiteList) {
149
+    self.proxyHeaderWhiteList = options.proxyHeaderWhiteList
150
+  }
151
+  if (options.proxyHeaderExclusiveList) {
152
+    self.proxyHeaderExclusiveList = options.proxyHeaderExclusiveList
153
+  }
154
+
155
+  var proxyHeaderExclusiveList = self.proxyHeaderExclusiveList.concat(defaultProxyHeaderExclusiveList)
156
+  var proxyHeaderWhiteList = self.proxyHeaderWhiteList.concat(proxyHeaderExclusiveList)
157
+
158
+  // Setup Proxy Headers and Proxy Headers Host
159
+  // Only send the Proxy White Listed Header names
160
+  var proxyHeaders = constructProxyHeaderWhiteList(request.headers, proxyHeaderWhiteList)
161
+  proxyHeaders.host = constructProxyHost(request.uri)
162
+
163
+  proxyHeaderExclusiveList.forEach(request.removeHeader, request)
164
+
165
+  // Set Agent from Tunnel Data
166
+  var tunnelFn = getTunnelFn(request)
167
+  var tunnelOptions = constructTunnelOptions(request, proxyHeaders)
168
+  request.agent = tunnelFn(tunnelOptions)
169
+
170
+  return true
171
+}
172
+
173
+Tunnel.defaultProxyHeaderWhiteList = defaultProxyHeaderWhiteList
174
+Tunnel.defaultProxyHeaderExclusiveList = defaultProxyHeaderExclusiveList
175
+exports.Tunnel = Tunnel

+ 159
- 0
node_modules/node-gyp/node_modules/request/package.json View File

1
+{
2
+  "_args": [
3
+    [
4
+      "request@^2.87.0",
5
+      "/home/nmaidanos/Desktop/ZipTeamPurple-FrontEnd/node_modules/node-gyp"
6
+    ]
7
+  ],
8
+  "_from": "request@>=2.87.0 <3.0.0",
9
+  "_hasShrinkwrap": false,
10
+  "_id": "request@2.88.0",
11
+  "_inCache": true,
12
+  "_installable": true,
13
+  "_location": "/node-gyp/request",
14
+  "_nodeVersion": "10.5.0",
15
+  "_npmOperationalInternal": {
16
+    "host": "s3://npm-registry-packages",
17
+    "tmp": "tmp/request_2.88.0_1533918410800_0.13178047716290342"
18
+  },
19
+  "_npmUser": {
20
+    "email": "mikeal.rogers@gmail.com",
21
+    "name": "mikeal"
22
+  },
23
+  "_npmVersion": "6.1.0",
24
+  "_phantomChildren": {},
25
+  "_requested": {
26
+    "name": "request",
27
+    "raw": "request@^2.87.0",
28
+    "rawSpec": "^2.87.0",
29
+    "scope": null,
30
+    "spec": ">=2.87.0 <3.0.0",
31
+    "type": "range"
32
+  },
33
+  "_requiredBy": [
34
+    "/node-gyp"
35
+  ],
36
+  "_resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
37
+  "_shasum": "9c2fca4f7d35b592efe57c7f0a55e81052124fef",
38
+  "_shrinkwrap": null,
39
+  "_spec": "request@^2.87.0",
40
+  "_where": "/home/nmaidanos/Desktop/ZipTeamPurple-FrontEnd/node_modules/node-gyp",
41
+  "author": {
42
+    "email": "mikeal.rogers@gmail.com",
43
+    "name": "Mikeal Rogers"
44
+  },
45
+  "bugs": {
46
+    "url": "http://github.com/request/request/issues"
47
+  },
48
+  "dependencies": {
49
+    "aws-sign2": "~0.7.0",
50
+    "aws4": "^1.8.0",
51
+    "caseless": "~0.12.0",
52
+    "combined-stream": "~1.0.6",
53
+    "extend": "~3.0.2",
54
+    "forever-agent": "~0.6.1",
55
+    "form-data": "~2.3.2",
56
+    "har-validator": "~5.1.0",
57
+    "http-signature": "~1.2.0",
58
+    "is-typedarray": "~1.0.0",
59
+    "isstream": "~0.1.2",
60
+    "json-stringify-safe": "~5.0.1",
61
+    "mime-types": "~2.1.19",
62
+    "oauth-sign": "~0.9.0",
63
+    "performance-now": "^2.1.0",
64
+    "qs": "~6.5.2",
65
+    "safe-buffer": "^5.1.2",
66
+    "tough-cookie": "~2.4.3",
67
+    "tunnel-agent": "^0.6.0",
68
+    "uuid": "^3.3.2"
69
+  },
70
+  "description": "Simplified HTTP request client.",
71
+  "devDependencies": {
72
+    "bluebird": "^3.2.1",
73
+    "browserify": "^13.0.1",
74
+    "browserify-istanbul": "^2.0.0",
75
+    "buffer-equal": "^1.0.0",
76
+    "codecov": "^3.0.4",
77
+    "coveralls": "^3.0.2",
78
+    "function-bind": "^1.0.2",
79
+    "istanbul": "^0.4.0",
80
+    "karma": "^3.0.0",
81
+    "karma-browserify": "^5.0.1",
82
+    "karma-cli": "^1.0.0",
83
+    "karma-coverage": "^1.0.0",
84
+    "karma-phantomjs-launcher": "^1.0.0",
85
+    "karma-tap": "^3.0.1",
86
+    "phantomjs-prebuilt": "^2.1.3",
87
+    "rimraf": "^2.2.8",
88
+    "server-destroy": "^1.0.1",
89
+    "standard": "^9.0.0",
90
+    "tape": "^4.6.0",
91
+    "taper": "^0.5.0"
92
+  },
93
+  "directories": {},
94
+  "dist": {
95
+    "fileCount": 17,
96
+    "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
97
+    "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbbzLCRA9TVsSAnZWagAAhRcP/0ha56tDuCS2+dVHAMCZ\ngQLIBd2yWuZImcDNxU6k30tNhKWfzxannP+vsAFV+qRvP2pUnE7hG6Zx8OLL\nm1kck/YWtBuSCrhYb402bTSKRUCbhWdW0+ytYfDsgDkskKtY85SFtr3hauOm\nmeBkpSLiwu2EosMzjxY8jntyYPDOIK9tXTYe/Lm6ZMx40CGZo5mlS4mktfXF\n/HVfP+zjp4Gr/wBqfArJmuBKWozuKxorsHbjuRvcaQ6hDPW47mhbDFaPhWo0\n4/3u1w9enypd4LvHpVCcbKM3OdYGIcWCiy7YvJSjZHkNAR1G7yhUnLh3jQBh\nS5j4Iuif3ph6IO6DwCHFvkXzHYM5lasdJT0nXtJiF6+XUJIQtpsIDs6B3jwR\naxTE8u1BqWFq4AyHQ6xzGro/Wrn7toDuqWlsKbBeX7qFFrCYz3rYTWrM4ghH\nB57PgOQsPPn5y2Y8gRPFdQJzEs38xdFaZNWwrQUr+ZDA/yM3My9SEWr3ZcOc\ndBsYb6AH4GMHinFM6ktHpmQB7AwY+lKzY3BU3NzvN0ZwuHtg8YtdEF+NMXhG\n3NnykA8h88Oy5P4m7emNm0DJj3J1lmMd26SQybPrXta1gBFPtuvyXpM7K6HM\nQzfagTktQNzxCT8pE8voz9z2eDnZMbXkSx2RT7ejZbHdkphTfw4riRQ97hpF\niSWD\r\n=3tmo\r\n-----END PGP SIGNATURE-----\r\n",
98
+    "shasum": "9c2fca4f7d35b592efe57c7f0a55e81052124fef",
99
+    "tarball": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
100
+    "unpackedSize": 206894
101
+  },
102
+  "engines": {
103
+    "node": ">= 4"
104
+  },
105
+  "files": [
106
+    "index.js",
107
+    "lib/",
108
+    "request.js"
109
+  ],
110
+  "gitHead": "642024036379239a7fa29c27ef7bb4dd3fa3b3a4",
111
+  "greenkeeper": {
112
+    "ignore": [
113
+      "har-validator",
114
+      "hawk"
115
+    ]
116
+  },
117
+  "homepage": "https://github.com/request/request#readme",
118
+  "keywords": [
119
+    "http",
120
+    "simple",
121
+    "util",
122
+    "utility"
123
+  ],
124
+  "license": "Apache-2.0",
125
+  "main": "index.js",
126
+  "maintainers": [
127
+    {
128
+      "name": "fredkschott",
129
+      "email": "fkschott@gmail.com"
130
+    },
131
+    {
132
+      "name": "mikeal",
133
+      "email": "mikeal.rogers@gmail.com"
134
+    },
135
+    {
136
+      "name": "nylen",
137
+      "email": "jnylen@gmail.com"
138
+    },
139
+    {
140
+      "name": "simov",
141
+      "email": "simeonvelichkov@gmail.com"
142
+    }
143
+  ],
144
+  "name": "request",
145
+  "optionalDependencies": {},
146
+  "readme": "ERROR: No README data found!",
147
+  "repository": {
148
+    "type": "git",
149
+    "url": "git+https://github.com/request/request.git"
150
+  },
151
+  "scripts": {
152
+    "lint": "standard",
153
+    "test": "npm run lint && npm run test-ci && npm run test-browser",
154
+    "test-browser": "node tests/browser/start.js",
155
+    "test-ci": "taper tests/test-*.js",
156
+    "test-cov": "istanbul cover tape tests/test-*.js"
157
+  },
158
+  "version": "2.88.0"
159
+}

+ 1551
- 0
node_modules/node-gyp/node_modules/request/request.js
File diff suppressed because it is too large
View File


+ 138
- 0
node_modules/node-gyp/test/process-exec-sync.js View File

1
+'use strict'
2
+
3
+var fs = require('graceful-fs')
4
+var child_process = require('child_process')
5
+
6
+if (!String.prototype.startsWith) {
7
+  String.prototype.startsWith = function(search, pos) {
8
+    return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search
9
+  }
10
+}
11
+
12
+function processExecSync(file, args, options) {
13
+  var child, error, timeout, tmpdir, command, quote
14
+  command = makeCommand(file, args)
15
+
16
+  /*
17
+    this function emulates child_process.execSync for legacy node <= 0.10.x
18
+    derived from https://github.com/gvarsanyi/sync-exec/blob/master/js/sync-exec.js
19
+  */
20
+
21
+  options = options || {}
22
+  // init timeout
23
+  timeout = Date.now() + options.timeout
24
+  // init tmpdir
25
+  var os_temp_base = '/tmp'
26
+  var os = determine_os()
27
+  os_temp_base = '/tmp'
28
+
29
+  if (process.env.TMP) {
30
+    os_temp_base = process.env.TMP
31
+  }
32
+
33
+  if (os_temp_base[os_temp_base.length - 1] !== '/') {
34
+    os_temp_base += '/'
35
+  }
36
+
37
+  tmpdir = os_temp_base + 'processExecSync.' + Date.now() + Math.random()
38
+  fs.mkdirSync(tmpdir)
39
+
40
+  // init command
41
+  if (os === 'linux') {
42
+    command = '(' + command + ' > ' + tmpdir + '/stdout 2> ' + tmpdir +
43
+      '/stderr); echo $? > ' + tmpdir + '/status'
44
+  } else {
45
+    command = '(' + command + ' > ' + tmpdir + '/stdout 2> ' + tmpdir +
46
+      '/stderr) | echo %errorlevel% > ' + tmpdir + '/status | exit'
47
+  }
48
+
49
+  // init child
50
+  child = child_process.exec(command, options)
51
+
52
+  var maxTry = 100000 // increases the test time by 6 seconds on win-2016-node-0.10
53
+  var tryCount = 0
54
+  while (tryCount < maxTry) {
55
+    try {
56
+      var x = fs.readFileSync(tmpdir + '/status')
57
+      if (x.toString() === '0') {
58
+        break
59
+      }
60
+    } catch (ignore) {}
61
+    tryCount++
62
+    if (Date.now() > timeout) {
63
+      error = child
64
+      break
65
+    }
66
+  }
67
+
68
+  ['stdout', 'stderr', 'status'].forEach(function (file) {
69
+    child[file] = fs.readFileSync(tmpdir + '/' + file, options.encoding)
70
+    setTimeout(unlinkFile, 500, tmpdir + '/' + file)
71
+  })
72
+
73
+  child.status = Number(child.status)
74
+  if (child.status !== 0) {
75
+    error = child
76
+  }
77
+
78
+  try {
79
+    fs.rmdirSync(tmpdir)
80
+  } catch (ignore) {}
81
+  if (error) {
82
+    throw error
83
+  }
84
+  return child.stdout
85
+}
86
+
87
+function makeCommand(file, args) {
88
+  var command, quote
89
+  command = file
90
+  if (args.length > 0) {
91
+    for(var i in args) {
92
+      command = command + ' '
93
+      if (args[i][0] === '-') {
94
+        command = command + args[i]
95
+      } else {
96
+        if (!quote) {
97
+          command = command + '\"'
98
+          quote = true
99
+        }
100
+        command = command + args[i]
101
+        if (quote) {
102
+          if (args.length === (parseInt(i) + 1)) {
103
+            command = command + '\"'
104
+          }
105
+        }
106
+      }
107
+    }
108
+  }
109
+  return command
110
+}
111
+
112
+function determine_os() {
113
+  var os = ''
114
+  var tmpVar = ''
115
+  if (process.env.OSTYPE) {
116
+    tmpVar = process.env.OSTYPE
117
+  } else  if (process.env.OS) {
118
+    tmpVar = process.env.OS
119
+  } else {
120
+    //default is linux
121
+    tmpVar = 'linux'
122
+  }
123
+
124
+  if (tmpVar.startsWith('linux')) {
125
+    os = 'linux'
126
+  }
127
+  if (tmpVar.startsWith('win')) {
128
+    os = 'win'
129
+  }
130
+
131
+  return os
132
+}
133
+
134
+function unlinkFile(file) {
135
+  fs.unlinkSync(file)
136
+}
137
+
138
+module.exports = processExecSync

+ 115
- 0
node_modules/node-gyp/tools/gyp/pylib/gyp/generator/compile_commands_json.py View File

1
+# Copyright (c) 2016 Ben Noordhuis <info@bnoordhuis.nl>. All rights reserved.
2
+# Use of this source code is governed by a BSD-style license that can be
3
+# found in the LICENSE file.
4
+
5
+import gyp.common
6
+import gyp.xcode_emulation
7
+import json
8
+import os
9
+
10
+generator_additional_non_configuration_keys = []
11
+generator_additional_path_sections = []
12
+generator_extra_sources_for_rules = []
13
+generator_filelist_paths = None
14
+generator_supports_multiple_toolsets = True
15
+generator_wants_sorted_dependencies = False
16
+
17
+# Lifted from make.py.  The actual values don't matter much.
18
+generator_default_variables = {
19
+  'CONFIGURATION_NAME': '$(BUILDTYPE)',
20
+  'EXECUTABLE_PREFIX': '',
21
+  'EXECUTABLE_SUFFIX': '',
22
+  'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni',
23
+  'PRODUCT_DIR': '$(builddir)',
24
+  'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s',
25
+  'RULE_INPUT_EXT': '$(suffix $<)',
26
+  'RULE_INPUT_NAME': '$(notdir $<)',
27
+  'RULE_INPUT_PATH': '$(abspath $<)',
28
+  'RULE_INPUT_ROOT': '%(INPUT_ROOT)s',
29
+  'SHARED_INTERMEDIATE_DIR': '$(obj)/gen',
30
+  'SHARED_LIB_PREFIX': 'lib',
31
+  'STATIC_LIB_PREFIX': 'lib',
32
+  'STATIC_LIB_SUFFIX': '.a',
33
+}
34
+
35
+
36
+def IsMac(params):
37
+  return 'mac' == gyp.common.GetFlavor(params)
38
+
39
+
40
+def CalculateVariables(default_variables, params):
41
+  default_variables.setdefault('OS', gyp.common.GetFlavor(params))
42
+
43
+
44
+def AddCommandsForTarget(cwd, target, params, per_config_commands):
45
+  output_dir = params['generator_flags']['output_dir']
46
+  for configuration_name, configuration in target['configurations'].iteritems():
47
+    builddir_name = os.path.join(output_dir, configuration_name)
48
+
49
+    if IsMac(params):
50
+      xcode_settings = gyp.xcode_emulation.XcodeSettings(target)
51
+      cflags = xcode_settings.GetCflags(configuration_name)
52
+      cflags_c = xcode_settings.GetCflagsC(configuration_name)
53
+      cflags_cc = xcode_settings.GetCflagsCC(configuration_name)
54
+    else:
55
+      cflags = configuration.get('cflags', [])
56
+      cflags_c = configuration.get('cflags_c', [])
57
+      cflags_cc = configuration.get('cflags_cc', [])
58
+
59
+    cflags_c = cflags + cflags_c
60
+    cflags_cc = cflags + cflags_cc
61
+
62
+    defines = configuration.get('defines', [])
63
+    defines = ['-D' + s for s in defines]
64
+
65
+    # TODO(bnoordhuis) Handle generated source files.
66
+    sources = target.get('sources', [])
67
+    sources = [s for s in sources if s.endswith('.c') or s.endswith('.cc')]
68
+
69
+    def resolve(filename):
70
+      return os.path.abspath(os.path.join(cwd, filename))
71
+
72
+    # TODO(bnoordhuis) Handle generated header files.
73
+    include_dirs = configuration.get('include_dirs', [])
74
+    include_dirs = [s for s in include_dirs if not s.startswith('$(obj)')]
75
+    includes = ['-I' + resolve(s) for s in include_dirs]
76
+
77
+    defines = gyp.common.EncodePOSIXShellList(defines)
78
+    includes = gyp.common.EncodePOSIXShellList(includes)
79
+    cflags_c = gyp.common.EncodePOSIXShellList(cflags_c)
80
+    cflags_cc = gyp.common.EncodePOSIXShellList(cflags_cc)
81
+
82
+    commands = per_config_commands.setdefault(configuration_name, [])
83
+    for source in sources:
84
+      file = resolve(source)
85
+      isc = source.endswith('.c')
86
+      cc = 'cc' if isc else 'c++'
87
+      cflags = cflags_c if isc else cflags_cc
88
+      command = ' '.join((cc, defines, includes, cflags,
89
+                          '-c', gyp.common.EncodePOSIXShellArgument(file)))
90
+      commands.append(dict(command=command, directory=output_dir, file=file))
91
+
92
+
93
+def GenerateOutput(target_list, target_dicts, data, params):
94
+  per_config_commands = {}
95
+  for qualified_target, target in target_dicts.iteritems():
96
+    build_file, target_name, toolset = (
97
+        gyp.common.ParseQualifiedTarget(qualified_target))
98
+    if IsMac(params):
99
+      settings = data[build_file]
100
+      gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(settings, target)
101
+    cwd = os.path.dirname(build_file)
102
+    AddCommandsForTarget(cwd, target, params, per_config_commands)
103
+
104
+  output_dir = params['generator_flags']['output_dir']
105
+  for configuration_name, commands in per_config_commands.iteritems():
106
+    filename = os.path.join(output_dir,
107
+                            configuration_name,
108
+                            'compile_commands.json')
109
+    gyp.common.EnsureDirExists(filename)
110
+    fp = open(filename, 'w')
111
+    json.dump(commands, fp=fp, indent=0, check_circular=False)
112
+
113
+
114
+def PerformBuild(data, configurations, params):
115
+  pass

BIN
node_modules/node-sass/vendor/linux-x64-57/binding.node View File


+ 21
- 0
node_modules/path-parse/LICENSE View File

1
+The MIT License (MIT)
2
+
3
+Copyright (c) 2015 Javier Blanco
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in all
13
+copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+SOFTWARE.

+ 1
- 0
node_modules/performance-now/.npmignore View File

1
+.DS_Store

+ 7
- 0
node_modules/performance-now/.tm_properties View File

1
+excludeDirectories = "{.git,node_modules}"
2
+excludeInFolderSearch = "{excludeDirectories,lib}"
3
+
4
+includeFiles = "{.gitignore,.npmignore,.travis.yml}"
5
+
6
+[ attr.untitled ]
7
+fileType = 'source.coffee'

+ 6
- 0
node_modules/performance-now/.travis.yml View File

1
+language: node_js
2
+node_js:
3
+  - "node"
4
+  - "6"
5
+  - "4"
6
+  - "0.12"

+ 30
- 0
node_modules/performance-now/README.md View File

1
+# performance-now [![Build Status](https://travis-ci.org/braveg1rl/performance-now.png?branch=master)](https://travis-ci.org/braveg1rl/performance-now) [![Dependency Status](https://david-dm.org/braveg1rl/performance-now.png)](https://david-dm.org/braveg1rl/performance-now)
2
+
3
+Implements a function similar to `performance.now` (based on `process.hrtime`).
4
+
5
+Modern browsers have a `window.performance` object with - among others - a `now` method which gives time in milliseconds, but with sub-millisecond precision. This module offers the same function based on the Node.js native `process.hrtime` function.
6
+
7
+Using `process.hrtime` means that the reported time will be monotonically increasing, and not subject to clock-drift.
8
+
9
+According to the [High Resolution Time specification](http://www.w3.org/TR/hr-time/), the number of milliseconds reported by `performance.now` should be relative to the value of `performance.timing.navigationStart`.
10
+
11
+In the current version of the module (2.0) the reported time is relative to the time the current Node process has started (inferred from `process.uptime()`).
12
+
13
+Version 1.0 reported a different time. The reported time was relative to the time the module was loaded (i.e. the time it was first `require`d). If you need this functionality, version 1.0 is still available on NPM.
14
+
15
+## Example usage
16
+
17
+```javascript
18
+var now = require("performance-now")
19
+var start = now()
20
+var end = now()
21
+console.log(start.toFixed(3)) // the number of milliseconds the current node process is running
22
+console.log((start-end).toFixed(3)) // ~ 0.002 on my system
23
+```
24
+
25
+Running the now function two times right after each other yields a time difference of a few microseconds. Given this overhead, I think it's best to assume that the precision of intervals computed with this method is not higher than 10 microseconds, if you don't know the exact overhead on your own system.
26
+
27
+## License
28
+
29
+performance-now is released under the [MIT License](http://opensource.org/licenses/MIT).
30
+Copyright (c) 2017 Braveg1rl

+ 36
- 0
node_modules/performance-now/lib/performance-now.js View File

1
+// Generated by CoffeeScript 1.12.2
2
+(function() {
3
+  var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
4
+
5
+  if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
6
+    module.exports = function() {
7
+      return performance.now();
8
+    };
9
+  } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
10
+    module.exports = function() {
11
+      return (getNanoSeconds() - nodeLoadTime) / 1e6;
12
+    };
13
+    hrtime = process.hrtime;
14
+    getNanoSeconds = function() {
15
+      var hr;
16
+      hr = hrtime();
17
+      return hr[0] * 1e9 + hr[1];
18
+    };
19
+    moduleLoadTime = getNanoSeconds();
20
+    upTime = process.uptime() * 1e9;
21
+    nodeLoadTime = moduleLoadTime - upTime;
22
+  } else if (Date.now) {
23
+    module.exports = function() {
24
+      return Date.now() - loadTime;
25
+    };
26
+    loadTime = Date.now();
27
+  } else {
28
+    module.exports = function() {
29
+      return new Date().getTime() - loadTime;
30
+    };
31
+    loadTime = new Date().getTime();
32
+  }
33
+
34
+}).call(this);
35
+
36
+//# sourceMappingURL=performance-now.js.map

+ 10
- 0
node_modules/performance-now/lib/performance-now.js.map View File

1
+{
2
+  "version": 3,
3
+  "file": "performance-now.js",
4
+  "sourceRoot": "..",
5
+  "sources": [
6
+    "src/performance-now.coffee"
7
+  ],
8
+  "names": [],
9
+  "mappings": ";AAAA;AAAA,MAAA;;EAAA,IAAG,4DAAA,IAAiB,WAAW,CAAC,GAAhC;IACE,MAAM,CAAC,OAAP,GAAiB,SAAA;aAAG,WAAW,CAAC,GAAZ,CAAA;IAAH,EADnB;GAAA,MAEK,IAAG,oDAAA,IAAa,OAAO,CAAC,MAAxB;IACH,MAAM,CAAC,OAAP,GAAiB,SAAA;aAAG,CAAC,cAAA,CAAA,CAAA,GAAmB,YAApB,CAAA,GAAoC;IAAvC;IACjB,MAAA,GAAS,OAAO,CAAC;IACjB,cAAA,GAAiB,SAAA;AACf,UAAA;MAAA,EAAA,GAAK,MAAA,CAAA;aACL,EAAG,CAAA,CAAA,CAAH,GAAQ,GAAR,GAAc,EAAG,CAAA,CAAA;IAFF;IAGjB,cAAA,GAAiB,cAAA,CAAA;IACjB,MAAA,GAAS,OAAO,CAAC,MAAR,CAAA,CAAA,GAAmB;IAC5B,YAAA,GAAe,cAAA,GAAiB,OAR7B;GAAA,MASA,IAAG,IAAI,CAAC,GAAR;IACH,MAAM,CAAC,OAAP,GAAiB,SAAA;aAAG,IAAI,CAAC,GAAL,CAAA,CAAA,GAAa;IAAhB;IACjB,QAAA,GAAW,IAAI,CAAC,GAAL,CAAA,EAFR;GAAA,MAAA;IAIH,MAAM,CAAC,OAAP,GAAiB,SAAA;aAAO,IAAA,IAAA,CAAA,CAAM,CAAC,OAAP,CAAA,CAAJ,GAAuB;IAA1B;IACjB,QAAA,GAAe,IAAA,IAAA,CAAA,CAAM,CAAC,OAAP,CAAA,EALZ;;AAXL"
10
+}

+ 7
- 0
node_modules/performance-now/license.txt View File

1
+Copyright (c) 2013 Braveg1rl
2
+
3
+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:
4
+
5
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+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.

+ 91
- 0
node_modules/performance-now/package.json View File

1
+{
2
+  "_args": [
3
+    [
4
+      "performance-now@^2.1.0",
5
+      "/home/nmaidanos/Desktop/ZipTeamPurple-FrontEnd/node_modules/node-gyp/node_modules/request"
6
+    ]
7
+  ],
8
+  "_from": "performance-now@>=2.1.0 <3.0.0",
9
+  "_id": "performance-now@2.1.0",
10
+  "_inCache": true,
11
+  "_installable": true,
12
+  "_location": "/performance-now",
13
+  "_nodeVersion": "7.3.0",
14
+  "_npmOperationalInternal": {
15
+    "host": "packages-18-east.internal.npmjs.com",
16
+    "tmp": "tmp/performance-now-2.1.0.tgz_1487514529361_0.3097308638971299"
17
+  },
18
+  "_npmUser": {
19
+    "email": "braveg1rl@outlook.com",
20
+    "name": "meryn"
21
+  },
22
+  "_npmVersion": "4.2.0",
23
+  "_phantomChildren": {},
24
+  "_requested": {
25
+    "name": "performance-now",
26
+    "raw": "performance-now@^2.1.0",
27
+    "rawSpec": "^2.1.0",
28
+    "scope": null,
29
+    "spec": ">=2.1.0 <3.0.0",
30
+    "type": "range"
31
+  },
32
+  "_requiredBy": [
33
+    "/node-gyp/request"
34
+  ],
35
+  "_resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
36
+  "_shasum": "6309f4e0e5fa913ec1c69307ae364b4b377c9e7b",
37
+  "_shrinkwrap": null,
38
+  "_spec": "performance-now@^2.1.0",
39
+  "_where": "/home/nmaidanos/Desktop/ZipTeamPurple-FrontEnd/node_modules/node-gyp/node_modules/request",
40
+  "author": {
41
+    "email": "braveg1rl@outlook.com",
42
+    "name": "Braveg1rl"
43
+  },
44
+  "bugs": {
45
+    "url": "https://github.com/braveg1rl/performance-now/issues"
46
+  },
47
+  "dependencies": {},
48
+  "description": "Implements performance.now (based on process.hrtime).",
49
+  "devDependencies": {
50
+    "bluebird": "^3.4.7",
51
+    "call-delayed": "^1.0.0",
52
+    "chai": "^3.5.0",
53
+    "chai-increasing": "^1.2.0",
54
+    "coffee-script": "~1.12.2",
55
+    "mocha": "~3.2.0",
56
+    "pre-commit": "^1.2.2"
57
+  },
58
+  "directories": {},
59
+  "dist": {
60
+    "shasum": "6309f4e0e5fa913ec1c69307ae364b4b377c9e7b",
61
+    "tarball": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz"
62
+  },
63
+  "gitHead": "107bb703494cc5a8071cdf45a87e53f248a5e0f3",
64
+  "homepage": "https://github.com/braveg1rl/performance-now",
65
+  "keywords": [],
66
+  "license": "MIT",
67
+  "main": "lib/performance-now.js",
68
+  "maintainers": [
69
+    {
70
+      "name": "meryn",
71
+      "email": "merynstol@gmail.com"
72
+    }
73
+  ],
74
+  "name": "performance-now",
75
+  "optionalDependencies": {},
76
+  "private": false,
77
+  "readme": "ERROR: No README data found!",
78
+  "repository": {
79
+    "type": "git",
80
+    "url": "git://github.com/braveg1rl/performance-now.git"
81
+  },
82
+  "scripts": {
83
+    "build": "mkdir -p lib && rm -rf lib/* && node_modules/.bin/coffee --compile -m --output lib/ src/",
84
+    "prepublish": "npm test",
85
+    "pretest": "npm run build",
86
+    "test": "mocha",
87
+    "watch": "coffee --watch --compile --output lib/ src/"
88
+  },
89
+  "typings": "src/index.d.ts",
90
+  "version": "2.1.0"
91
+}

+ 0
- 0
node_modules/performance-now/src/index.d.ts View File


Some files were not shown because too many files changed in this diff