Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xanadu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
SYNERG
xanadu
Commits
d1b32115
Commit
d1b32115
authored
Feb 11, 2020
by
nilanjandaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
force adding worker_env
parent
076dce9d
Changes
346
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
346 changed files
with
55938 additions
and
0 deletions
+55938
-0
dispatch_module/dispatcher/repository/worker_env/env.js
dispatch_module/dispatcher/repository/worker_env/env.js
+32
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/.bin/mime
...e/dispatcher/repository/worker_env/node_modules/.bin/mime
+1
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/HISTORY.md
...her/repository/worker_env/node_modules/accepts/HISTORY.md
+236
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/LICENSE
...atcher/repository/worker_env/node_modules/accepts/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/README.md
...cher/repository/worker_env/node_modules/accepts/README.md
+142
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/index.js
...tcher/repository/worker_env/node_modules/accepts/index.js
+238
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/package.json
...r/repository/worker_env/node_modules/accepts/package.json
+86
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/array-flatten/LICENSE
.../repository/worker_env/node_modules/array-flatten/LICENSE
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/array-flatten/README.md
...epository/worker_env/node_modules/array-flatten/README.md
+43
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/array-flatten/array-flatten.js
...ry/worker_env/node_modules/array-flatten/array-flatten.js
+64
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/array-flatten/package.json
...sitory/worker_env/node_modules/array-flatten/package.json
+64
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/HISTORY.md
.../repository/worker_env/node_modules/basic-auth/HISTORY.md
+52
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/LICENSE
...her/repository/worker_env/node_modules/basic-auth/LICENSE
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/README.md
...r/repository/worker_env/node_modules/basic-auth/README.md
+113
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/index.js
...er/repository/worker_env/node_modules/basic-auth/index.js
+133
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/package.json
...epository/worker_env/node_modules/basic-auth/package.json
+73
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/HISTORY.md
...repository/worker_env/node_modules/body-parser/HISTORY.md
+609
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/LICENSE
...er/repository/worker_env/node_modules/body-parser/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/README.md
.../repository/worker_env/node_modules/body-parser/README.md
+443
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/index.js
...r/repository/worker_env/node_modules/body-parser/index.js
+157
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/read.js
...epository/worker_env/node_modules/body-parser/lib/read.js
+181
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/types/json.js
...ory/worker_env/node_modules/body-parser/lib/types/json.js
+230
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/types/raw.js
...tory/worker_env/node_modules/body-parser/lib/types/raw.js
+101
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/types/text.js
...ory/worker_env/node_modules/body-parser/lib/types/text.js
+121
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/types/urlencoded.js
...rker_env/node_modules/body-parser/lib/types/urlencoded.js
+284
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/package.json
...pository/worker_env/node_modules/body-parser/package.json
+93
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/History.md
...tcher/repository/worker_env/node_modules/bytes/History.md
+87
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/LICENSE
...spatcher/repository/worker_env/node_modules/bytes/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/Readme.md
...atcher/repository/worker_env/node_modules/bytes/Readme.md
+126
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/index.js
...patcher/repository/worker_env/node_modules/bytes/index.js
+162
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/package.json
...her/repository/worker_env/node_modules/bytes/package.json
+84
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/HISTORY.md
...ry/worker_env/node_modules/content-disposition/HISTORY.md
+55
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/LICENSE
...itory/worker_env/node_modules/content-disposition/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/README.md
...ory/worker_env/node_modules/content-disposition/README.md
+148
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/index.js
...tory/worker_env/node_modules/content-disposition/index.js
+458
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/package.json
.../worker_env/node_modules/content-disposition/package.json
+79
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-type/HISTORY.md
...epository/worker_env/node_modules/content-type/HISTORY.md
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-type/LICENSE
...r/repository/worker_env/node_modules/content-type/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-type/README.md
...repository/worker_env/node_modules/content-type/README.md
+92
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-type/index.js
.../repository/worker_env/node_modules/content-type/index.js
+222
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/content-type/package.json
...ository/worker_env/node_modules/content-type/package.json
+76
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie-signature/.npmignore
...itory/worker_env/node_modules/cookie-signature/.npmignore
+4
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie-signature/History.md
...itory/worker_env/node_modules/cookie-signature/History.md
+38
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie-signature/Readme.md
...sitory/worker_env/node_modules/cookie-signature/Readme.md
+42
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie-signature/index.js
...ository/worker_env/node_modules/cookie-signature/index.js
+51
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie-signature/package.json
...ory/worker_env/node_modules/cookie-signature/package.json
+57
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie/HISTORY.md
...cher/repository/worker_env/node_modules/cookie/HISTORY.md
+123
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie/LICENSE
...patcher/repository/worker_env/node_modules/cookie/LICENSE
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie/README.md
...tcher/repository/worker_env/node_modules/cookie/README.md
+253
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie/index.js
...atcher/repository/worker_env/node_modules/cookie/index.js
+198
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/cookie/package.json
...er/repository/worker_env/node_modules/cookie/package.json
+78
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/.coveralls.yml
...r/repository/worker_env/node_modules/debug/.coveralls.yml
+1
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/.eslintrc
...atcher/repository/worker_env/node_modules/debug/.eslintrc
+11
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/.npmignore
...tcher/repository/worker_env/node_modules/debug/.npmignore
+9
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/.travis.yml
...cher/repository/worker_env/node_modules/debug/.travis.yml
+14
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/CHANGELOG.md
...her/repository/worker_env/node_modules/debug/CHANGELOG.md
+362
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/LICENSE
...spatcher/repository/worker_env/node_modules/debug/LICENSE
+19
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/Makefile
...patcher/repository/worker_env/node_modules/debug/Makefile
+50
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/README.md
...atcher/repository/worker_env/node_modules/debug/README.md
+312
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/component.json
...r/repository/worker_env/node_modules/debug/component.json
+19
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/karma.conf.js
...er/repository/worker_env/node_modules/debug/karma.conf.js
+70
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/node.js
...spatcher/repository/worker_env/node_modules/debug/node.js
+1
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/package.json
...her/repository/worker_env/node_modules/debug/package.json
+91
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/src/browser.js
...r/repository/worker_env/node_modules/debug/src/browser.js
+185
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/src/debug.js
...her/repository/worker_env/node_modules/debug/src/debug.js
+202
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/src/index.js
...her/repository/worker_env/node_modules/debug/src/index.js
+10
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/src/inspector-log.js
...sitory/worker_env/node_modules/debug/src/inspector-log.js
+15
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/debug/src/node.js
...cher/repository/worker_env/node_modules/debug/src/node.js
+248
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/depd/History.md
...atcher/repository/worker_env/node_modules/depd/History.md
+96
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/depd/LICENSE
...ispatcher/repository/worker_env/node_modules/depd/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/depd/Readme.md
...patcher/repository/worker_env/node_modules/depd/Readme.md
+280
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/depd/index.js
...spatcher/repository/worker_env/node_modules/depd/index.js
+522
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/depd/lib/browser/index.js
...ository/worker_env/node_modules/depd/lib/browser/index.js
+77
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/depd/lib/compat/callsite-tostring.js
...ker_env/node_modules/depd/lib/compat/callsite-tostring.js
+103
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/depd/lib/compat/event-listener-count.js
..._env/node_modules/depd/lib/compat/event-listener-count.js
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/depd/lib/compat/index.js
...pository/worker_env/node_modules/depd/lib/compat/index.js
+79
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/depd/package.json
...cher/repository/worker_env/node_modules/depd/package.json
+79
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/destroy/LICENSE
...atcher/repository/worker_env/node_modules/destroy/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/destroy/README.md
...cher/repository/worker_env/node_modules/destroy/README.md
+60
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/destroy/index.js
...tcher/repository/worker_env/node_modules/destroy/index.js
+75
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/destroy/package.json
...r/repository/worker_env/node_modules/destroy/package.json
+71
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ee-first/LICENSE
...tcher/repository/worker_env/node_modules/ee-first/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ee-first/README.md
...her/repository/worker_env/node_modules/ee-first/README.md
+80
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ee-first/index.js
...cher/repository/worker_env/node_modules/ee-first/index.js
+95
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ee-first/package.json
.../repository/worker_env/node_modules/ee-first/package.json
+63
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/encodeurl/HISTORY.md
...r/repository/worker_env/node_modules/encodeurl/HISTORY.md
+14
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/encodeurl/LICENSE
...cher/repository/worker_env/node_modules/encodeurl/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/encodeurl/README.md
...er/repository/worker_env/node_modules/encodeurl/README.md
+128
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/encodeurl/index.js
...her/repository/worker_env/node_modules/encodeurl/index.js
+60
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/encodeurl/package.json
...repository/worker_env/node_modules/encodeurl/package.json
+78
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/escape-html/LICENSE
...er/repository/worker_env/node_modules/escape-html/LICENSE
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/escape-html/Readme.md
.../repository/worker_env/node_modules/escape-html/Readme.md
+43
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/escape-html/index.js
...r/repository/worker_env/node_modules/escape-html/index.js
+78
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/escape-html/package.json
...pository/worker_env/node_modules/escape-html/package.json
+59
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/etag/HISTORY.md
...atcher/repository/worker_env/node_modules/etag/HISTORY.md
+83
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/etag/LICENSE
...ispatcher/repository/worker_env/node_modules/etag/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/etag/README.md
...patcher/repository/worker_env/node_modules/etag/README.md
+159
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/etag/index.js
...spatcher/repository/worker_env/node_modules/etag/index.js
+131
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/etag/package.json
...cher/repository/worker_env/node_modules/etag/package.json
+86
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/History.md
...her/repository/worker_env/node_modules/express/History.md
+3477
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/LICENSE
...atcher/repository/worker_env/node_modules/express/LICENSE
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/Readme.md
...cher/repository/worker_env/node_modules/express/Readme.md
+155
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/index.js
...tcher/repository/worker_env/node_modules/express/index.js
+11
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/application.js
...sitory/worker_env/node_modules/express/lib/application.js
+644
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/express.js
...repository/worker_env/node_modules/express/lib/express.js
+116
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/middleware/init.js
...ry/worker_env/node_modules/express/lib/middleware/init.js
+43
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/middleware/query.js
...y/worker_env/node_modules/express/lib/middleware/query.js
+47
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/request.js
...repository/worker_env/node_modules/express/lib/request.js
+525
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/response.js
...epository/worker_env/node_modules/express/lib/response.js
+1142
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/router/index.js
...itory/worker_env/node_modules/express/lib/router/index.js
+662
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/router/layer.js
...itory/worker_env/node_modules/express/lib/router/layer.js
+181
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/router/route.js
...itory/worker_env/node_modules/express/lib/router/route.js
+216
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/utils.js
...r/repository/worker_env/node_modules/express/lib/utils.js
+306
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/lib/view.js
...er/repository/worker_env/node_modules/express/lib/view.js
+182
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/express/package.json
...r/repository/worker_env/node_modules/express/package.json
+154
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/finalhandler/HISTORY.md
...epository/worker_env/node_modules/finalhandler/HISTORY.md
+187
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/finalhandler/LICENSE
...r/repository/worker_env/node_modules/finalhandler/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/finalhandler/README.md
...repository/worker_env/node_modules/finalhandler/README.md
+148
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/finalhandler/index.js
.../repository/worker_env/node_modules/finalhandler/index.js
+331
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/finalhandler/package.json
...ository/worker_env/node_modules/finalhandler/package.json
+80
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/forwarded/HISTORY.md
...r/repository/worker_env/node_modules/forwarded/HISTORY.md
+16
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/forwarded/LICENSE
...cher/repository/worker_env/node_modules/forwarded/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/forwarded/README.md
...er/repository/worker_env/node_modules/forwarded/README.md
+57
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/forwarded/index.js
...her/repository/worker_env/node_modules/forwarded/index.js
+76
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/forwarded/package.json
...repository/worker_env/node_modules/forwarded/package.json
+78
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/fresh/HISTORY.md
...tcher/repository/worker_env/node_modules/fresh/HISTORY.md
+70
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/fresh/LICENSE
...spatcher/repository/worker_env/node_modules/fresh/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/fresh/README.md
...atcher/repository/worker_env/node_modules/fresh/README.md
+119
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/fresh/index.js
...patcher/repository/worker_env/node_modules/fresh/index.js
+137
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/fresh/package.json
...her/repository/worker_env/node_modules/fresh/package.json
+90
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/http-errors/HISTORY.md
...repository/worker_env/node_modules/http-errors/HISTORY.md
+149
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/http-errors/LICENSE
...er/repository/worker_env/node_modules/http-errors/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/http-errors/README.md
.../repository/worker_env/node_modules/http-errors/README.md
+163
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/http-errors/index.js
...r/repository/worker_env/node_modules/http-errors/index.js
+266
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/http-errors/package.json
...pository/worker_env/node_modules/http-errors/package.json
+93
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/Changelog.md
...epository/worker_env/node_modules/iconv-lite/Changelog.md
+162
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/LICENSE
...her/repository/worker_env/node_modules/iconv-lite/LICENSE
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/README.md
...r/repository/worker_env/node_modules/iconv-lite/README.md
+156
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/dbcs-codec.js
...orker_env/node_modules/iconv-lite/encodings/dbcs-codec.js
+555
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/dbcs-data.js
...worker_env/node_modules/iconv-lite/encodings/dbcs-data.js
+176
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/index.js
...ory/worker_env/node_modules/iconv-lite/encodings/index.js
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/internal.js
.../worker_env/node_modules/iconv-lite/encodings/internal.js
+188
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/sbcs-codec.js
...orker_env/node_modules/iconv-lite/encodings/sbcs-codec.js
+72
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/sbcs-data-generated.js
.../node_modules/iconv-lite/encodings/sbcs-data-generated.js
+451
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/sbcs-data.js
...worker_env/node_modules/iconv-lite/encodings/sbcs-data.js
+174
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/tables/big5-added.json
.../node_modules/iconv-lite/encodings/tables/big5-added.json
+122
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/tables/cp936.json
...r_env/node_modules/iconv-lite/encodings/tables/cp936.json
+264
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/tables/cp949.json
...r_env/node_modules/iconv-lite/encodings/tables/cp949.json
+273
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/tables/cp950.json
...r_env/node_modules/iconv-lite/encodings/tables/cp950.json
+177
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/tables/eucjp.json
...r_env/node_modules/iconv-lite/encodings/tables/eucjp.json
+182
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
...e_modules/iconv-lite/encodings/tables/gb18030-ranges.json
+1
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/tables/gbk-added.json
...v/node_modules/iconv-lite/encodings/tables/gbk-added.json
+55
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/tables/shiftjis.json
...nv/node_modules/iconv-lite/encodings/tables/shiftjis.json
+125
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/utf16.js
...ory/worker_env/node_modules/iconv-lite/encodings/utf16.js
+177
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/encodings/utf7.js
...tory/worker_env/node_modules/iconv-lite/encodings/utf7.js
+290
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/lib/bom-handling.js
...ry/worker_env/node_modules/iconv-lite/lib/bom-handling.js
+52
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/lib/extend-node.js
...ory/worker_env/node_modules/iconv-lite/lib/extend-node.js
+217
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/lib/index.d.ts
...ository/worker_env/node_modules/iconv-lite/lib/index.d.ts
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/lib/index.js
...epository/worker_env/node_modules/iconv-lite/lib/index.js
+153
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/lib/streams.js
...ository/worker_env/node_modules/iconv-lite/lib/streams.js
+121
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/iconv-lite/package.json
...epository/worker_env/node_modules/iconv-lite/package.json
+77
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/inherits/LICENSE
...tcher/repository/worker_env/node_modules/inherits/LICENSE
+16
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/inherits/README.md
...her/repository/worker_env/node_modules/inherits/README.md
+42
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/inherits/inherits.js
...r/repository/worker_env/node_modules/inherits/inherits.js
+7
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/inherits/inherits_browser.js
...tory/worker_env/node_modules/inherits/inherits_browser.js
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/inherits/package.json
.../repository/worker_env/node_modules/inherits/package.json
+61
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ipaddr.js/LICENSE
...cher/repository/worker_env/node_modules/ipaddr.js/LICENSE
+19
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ipaddr.js/README.md
...er/repository/worker_env/node_modules/ipaddr.js/README.md
+233
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ipaddr.js/ipaddr.min.js
...epository/worker_env/node_modules/ipaddr.js/ipaddr.min.js
+1
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ipaddr.js/lib/ipaddr.js
...epository/worker_env/node_modules/ipaddr.js/lib/ipaddr.js
+673
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ipaddr.js/lib/ipaddr.js.d.ts
...tory/worker_env/node_modules/ipaddr.js/lib/ipaddr.js.d.ts
+71
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ipaddr.js/package.json
...repository/worker_env/node_modules/ipaddr.js/package.json
+69
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/media-typer/HISTORY.md
...repository/worker_env/node_modules/media-typer/HISTORY.md
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/media-typer/LICENSE
...er/repository/worker_env/node_modules/media-typer/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/media-typer/README.md
.../repository/worker_env/node_modules/media-typer/README.md
+81
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/media-typer/index.js
...r/repository/worker_env/node_modules/media-typer/index.js
+270
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/media-typer/package.json
...pository/worker_env/node_modules/media-typer/package.json
+61
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/merge-descriptors/HISTORY.md
...tory/worker_env/node_modules/merge-descriptors/HISTORY.md
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/merge-descriptors/LICENSE
...ository/worker_env/node_modules/merge-descriptors/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/merge-descriptors/README.md
...itory/worker_env/node_modules/merge-descriptors/README.md
+48
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/merge-descriptors/index.js
...sitory/worker_env/node_modules/merge-descriptors/index.js
+60
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/merge-descriptors/package.json
...ry/worker_env/node_modules/merge-descriptors/package.json
+69
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/methods/HISTORY.md
...her/repository/worker_env/node_modules/methods/HISTORY.md
+29
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/methods/LICENSE
...atcher/repository/worker_env/node_modules/methods/LICENSE
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/methods/README.md
...cher/repository/worker_env/node_modules/methods/README.md
+51
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/methods/index.js
...tcher/repository/worker_env/node_modules/methods/index.js
+69
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/methods/package.json
...r/repository/worker_env/node_modules/methods/package.json
+79
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-db/HISTORY.md
...her/repository/worker_env/node_modules/mime-db/HISTORY.md
+439
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-db/LICENSE
...atcher/repository/worker_env/node_modules/mime-db/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-db/README.md
...cher/repository/worker_env/node_modules/mime-db/README.md
+100
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-db/db.json
...atcher/repository/worker_env/node_modules/mime-db/db.json
+8060
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-db/index.js
...tcher/repository/worker_env/node_modules/mime-db/index.js
+11
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-db/package.json
...r/repository/worker_env/node_modules/mime-db/package.json
+101
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-types/HISTORY.md
.../repository/worker_env/node_modules/mime-types/HISTORY.md
+325
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-types/LICENSE
...her/repository/worker_env/node_modules/mime-types/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-types/README.md
...r/repository/worker_env/node_modules/mime-types/README.md
+113
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-types/index.js
...er/repository/worker_env/node_modules/mime-types/index.js
+188
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime-types/package.json
...epository/worker_env/node_modules/mime-types/package.json
+87
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/.npmignore
...atcher/repository/worker_env/node_modules/mime/.npmignore
+0
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/CHANGELOG.md
...cher/repository/worker_env/node_modules/mime/CHANGELOG.md
+164
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/LICENSE
...ispatcher/repository/worker_env/node_modules/mime/LICENSE
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/README.md
...patcher/repository/worker_env/node_modules/mime/README.md
+90
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/cli.js
...dispatcher/repository/worker_env/node_modules/mime/cli.js
+8
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/mime.js
...ispatcher/repository/worker_env/node_modules/mime/mime.js
+108
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/package.json
...cher/repository/worker_env/node_modules/mime/package.json
+73
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/src/build.js
...cher/repository/worker_env/node_modules/mime/src/build.js
+53
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/src/test.js
...tcher/repository/worker_env/node_modules/mime/src/test.js
+60
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/mime/types.json
...atcher/repository/worker_env/node_modules/mime/types.json
+1
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/morgan/HISTORY.md
...cher/repository/worker_env/node_modules/morgan/HISTORY.md
+202
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/morgan/LICENSE
...patcher/repository/worker_env/node_modules/morgan/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/morgan/README.md
...tcher/repository/worker_env/node_modules/morgan/README.md
+414
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/morgan/index.js
...atcher/repository/worker_env/node_modules/morgan/index.js
+522
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/morgan/package.json
...er/repository/worker_env/node_modules/morgan/package.json
+92
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ms/index.js
...dispatcher/repository/worker_env/node_modules/ms/index.js
+152
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ms/license.md
...spatcher/repository/worker_env/node_modules/ms/license.md
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ms/package.json
...atcher/repository/worker_env/node_modules/ms/package.json
+69
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/ms/readme.md
...ispatcher/repository/worker_env/node_modules/ms/readme.md
+51
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/negotiator/HISTORY.md
.../repository/worker_env/node_modules/negotiator/HISTORY.md
+103
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/negotiator/LICENSE
...her/repository/worker_env/node_modules/negotiator/LICENSE
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/negotiator/README.md
...r/repository/worker_env/node_modules/negotiator/README.md
+203
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/negotiator/index.js
...er/repository/worker_env/node_modules/negotiator/index.js
+124
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/negotiator/lib/charset.js
...ository/worker_env/node_modules/negotiator/lib/charset.js
+169
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/negotiator/lib/encoding.js
...sitory/worker_env/node_modules/negotiator/lib/encoding.js
+184
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/negotiator/lib/language.js
...sitory/worker_env/node_modules/negotiator/lib/language.js
+179
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/negotiator/lib/mediaType.js
...itory/worker_env/node_modules/negotiator/lib/mediaType.js
+294
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/negotiator/package.json
...epository/worker_env/node_modules/negotiator/package.json
+84
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-finished/HISTORY.md
...repository/worker_env/node_modules/on-finished/HISTORY.md
+88
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-finished/LICENSE
...er/repository/worker_env/node_modules/on-finished/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-finished/README.md
.../repository/worker_env/node_modules/on-finished/README.md
+154
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-finished/index.js
...r/repository/worker_env/node_modules/on-finished/index.js
+196
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-finished/package.json
...pository/worker_env/node_modules/on-finished/package.json
+73
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-headers/HISTORY.md
.../repository/worker_env/node_modules/on-headers/HISTORY.md
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-headers/LICENSE
...her/repository/worker_env/node_modules/on-headers/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-headers/README.md
...r/repository/worker_env/node_modules/on-headers/README.md
+81
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-headers/index.js
...er/repository/worker_env/node_modules/on-headers/index.js
+132
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/on-headers/package.json
...epository/worker_env/node_modules/on-headers/package.json
+77
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/parseurl/HISTORY.md
...er/repository/worker_env/node_modules/parseurl/HISTORY.md
+58
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/parseurl/LICENSE
...tcher/repository/worker_env/node_modules/parseurl/LICENSE
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/parseurl/README.md
...her/repository/worker_env/node_modules/parseurl/README.md
+133
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/parseurl/index.js
...cher/repository/worker_env/node_modules/parseurl/index.js
+158
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/parseurl/package.json
.../repository/worker_env/node_modules/parseurl/package.json
+81
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/path-to-regexp/History.md
...ository/worker_env/node_modules/path-to-regexp/History.md
+36
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/path-to-regexp/LICENSE
...repository/worker_env/node_modules/path-to-regexp/LICENSE
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/path-to-regexp/Readme.md
...pository/worker_env/node_modules/path-to-regexp/Readme.md
+35
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/path-to-regexp/index.js
...epository/worker_env/node_modules/path-to-regexp/index.js
+129
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/path-to-regexp/package.json
...itory/worker_env/node_modules/path-to-regexp/package.json
+59
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/proxy-addr/HISTORY.md
.../repository/worker_env/node_modules/proxy-addr/HISTORY.md
+150
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/proxy-addr/LICENSE
...her/repository/worker_env/node_modules/proxy-addr/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/proxy-addr/README.md
...r/repository/worker_env/node_modules/proxy-addr/README.md
+155
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/proxy-addr/index.js
...er/repository/worker_env/node_modules/proxy-addr/index.js
+327
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/proxy-addr/package.json
...epository/worker_env/node_modules/proxy-addr/package.json
+82
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/.editorconfig
...tcher/repository/worker_env/node_modules/qs/.editorconfig
+30
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/.eslintignore
...tcher/repository/worker_env/node_modules/qs/.eslintignore
+1
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/.eslintrc
...ispatcher/repository/worker_env/node_modules/qs/.eslintrc
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/CHANGELOG.md
...atcher/repository/worker_env/node_modules/qs/CHANGELOG.md
+256
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/LICENSE
.../dispatcher/repository/worker_env/node_modules/qs/LICENSE
+28
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/README.md
...ispatcher/repository/worker_env/node_modules/qs/README.md
+570
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/dist/qs.js
...spatcher/repository/worker_env/node_modules/qs/dist/qs.js
+782
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/lib/formats.js
...cher/repository/worker_env/node_modules/qs/lib/formats.js
+18
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/lib/index.js
...atcher/repository/worker_env/node_modules/qs/lib/index.js
+11
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/lib/parse.js
...atcher/repository/worker_env/node_modules/qs/lib/parse.js
+242
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/lib/stringify.js
...er/repository/worker_env/node_modules/qs/lib/stringify.js
+269
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/lib/utils.js
...atcher/repository/worker_env/node_modules/qs/lib/utils.js
+230
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/package.json
...atcher/repository/worker_env/node_modules/qs/package.json
+87
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/test/.eslintrc
...cher/repository/worker_env/node_modules/qs/test/.eslintrc
+17
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/test/index.js
...tcher/repository/worker_env/node_modules/qs/test/index.js
+7
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/test/parse.js
...tcher/repository/worker_env/node_modules/qs/test/parse.js
+676
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/test/stringify.js
...r/repository/worker_env/node_modules/qs/test/stringify.js
+679
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/qs/test/utils.js
...tcher/repository/worker_env/node_modules/qs/test/utils.js
+136
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/range-parser/HISTORY.md
...epository/worker_env/node_modules/range-parser/HISTORY.md
+56
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/range-parser/LICENSE
...r/repository/worker_env/node_modules/range-parser/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/range-parser/README.md
...repository/worker_env/node_modules/range-parser/README.md
+84
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/range-parser/index.js
.../repository/worker_env/node_modules/range-parser/index.js
+162
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/range-parser/package.json
...ository/worker_env/node_modules/range-parser/package.json
+91
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/raw-body/HISTORY.md
...er/repository/worker_env/node_modules/raw-body/HISTORY.md
+270
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/raw-body/LICENSE
...tcher/repository/worker_env/node_modules/raw-body/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/raw-body/README.md
...her/repository/worker_env/node_modules/raw-body/README.md
+219
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/raw-body/index.d.ts
...er/repository/worker_env/node_modules/raw-body/index.d.ts
+87
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/raw-body/index.js
...cher/repository/worker_env/node_modules/raw-body/index.js
+286
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/raw-body/package.json
.../repository/worker_env/node_modules/raw-body/package.json
+90
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safe-buffer/LICENSE
...er/repository/worker_env/node_modules/safe-buffer/LICENSE
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safe-buffer/README.md
.../repository/worker_env/node_modules/safe-buffer/README.md
+584
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safe-buffer/index.d.ts
...repository/worker_env/node_modules/safe-buffer/index.d.ts
+187
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safe-buffer/index.js
...r/repository/worker_env/node_modules/safe-buffer/index.js
+62
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safe-buffer/package.json
...pository/worker_env/node_modules/safe-buffer/package.json
+63
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safer-buffer/LICENSE
...r/repository/worker_env/node_modules/safer-buffer/LICENSE
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safer-buffer/Porting-Buffer.md
...ry/worker_env/node_modules/safer-buffer/Porting-Buffer.md
+268
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safer-buffer/Readme.md
...repository/worker_env/node_modules/safer-buffer/Readme.md
+156
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safer-buffer/dangerous.js
...ository/worker_env/node_modules/safer-buffer/dangerous.js
+58
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safer-buffer/package.json
...ository/worker_env/node_modules/safer-buffer/package.json
+60
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safer-buffer/safer.js
.../repository/worker_env/node_modules/safer-buffer/safer.js
+77
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/safer-buffer/tests.js
.../repository/worker_env/node_modules/safer-buffer/tests.js
+406
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/send/HISTORY.md
...atcher/repository/worker_env/node_modules/send/HISTORY.md
+496
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/send/LICENSE
...ispatcher/repository/worker_env/node_modules/send/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/send/README.md
...patcher/repository/worker_env/node_modules/send/README.md
+329
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/send/index.js
...spatcher/repository/worker_env/node_modules/send/index.js
+1129
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/send/node_modules/ms/index.js
...ory/worker_env/node_modules/send/node_modules/ms/index.js
+162
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/send/node_modules/ms/license.md
...y/worker_env/node_modules/send/node_modules/ms/license.md
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/send/node_modules/ms/package.json
...worker_env/node_modules/send/node_modules/ms/package.json
+69
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/send/node_modules/ms/readme.md
...ry/worker_env/node_modules/send/node_modules/ms/readme.md
+60
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/send/package.json
...cher/repository/worker_env/node_modules/send/package.json
+106
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/serve-static/HISTORY.md
...epository/worker_env/node_modules/serve-static/HISTORY.md
+451
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/serve-static/LICENSE
...r/repository/worker_env/node_modules/serve-static/LICENSE
+25
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/serve-static/README.md
...repository/worker_env/node_modules/serve-static/README.md
+259
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/serve-static/index.js
.../repository/worker_env/node_modules/serve-static/index.js
+210
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/serve-static/package.json
...ository/worker_env/node_modules/serve-static/package.json
+77
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/setprototypeof/LICENSE
...repository/worker_env/node_modules/setprototypeof/LICENSE
+13
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/setprototypeof/README.md
...pository/worker_env/node_modules/setprototypeof/README.md
+31
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/setprototypeof/index.d.ts
...ository/worker_env/node_modules/setprototypeof/index.d.ts
+2
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/setprototypeof/index.js
...epository/worker_env/node_modules/setprototypeof/index.js
+17
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/setprototypeof/package.json
...itory/worker_env/node_modules/setprototypeof/package.json
+64
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/setprototypeof/test/index.js
...tory/worker_env/node_modules/setprototypeof/test/index.js
+24
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/statuses/HISTORY.md
...er/repository/worker_env/node_modules/statuses/HISTORY.md
+65
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/statuses/LICENSE
...tcher/repository/worker_env/node_modules/statuses/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/statuses/README.md
...her/repository/worker_env/node_modules/statuses/README.md
+127
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/statuses/codes.json
...er/repository/worker_env/node_modules/statuses/codes.json
+66
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/statuses/index.js
...cher/repository/worker_env/node_modules/statuses/index.js
+113
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/statuses/package.json
.../repository/worker_env/node_modules/statuses/package.json
+90
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/toidentifier/LICENSE
...r/repository/worker_env/node_modules/toidentifier/LICENSE
+21
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/toidentifier/README.md
...repository/worker_env/node_modules/toidentifier/README.md
+61
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/toidentifier/index.js
.../repository/worker_env/node_modules/toidentifier/index.js
+30
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/toidentifier/package.json
...ository/worker_env/node_modules/toidentifier/package.json
+76
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/type-is/HISTORY.md
...her/repository/worker_env/node_modules/type-is/HISTORY.md
+259
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/type-is/LICENSE
...atcher/repository/worker_env/node_modules/type-is/LICENSE
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/type-is/README.md
...cher/repository/worker_env/node_modules/type-is/README.md
+170
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/type-is/index.js
...tcher/repository/worker_env/node_modules/type-is/index.js
+266
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/type-is/package.json
...r/repository/worker_env/node_modules/type-is/package.json
+85
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/unpipe/HISTORY.md
...cher/repository/worker_env/node_modules/unpipe/HISTORY.md
+4
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/unpipe/LICENSE
...patcher/repository/worker_env/node_modules/unpipe/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/unpipe/README.md
...tcher/repository/worker_env/node_modules/unpipe/README.md
+43
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/unpipe/index.js
...atcher/repository/worker_env/node_modules/unpipe/index.js
+69
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/unpipe/package.json
...er/repository/worker_env/node_modules/unpipe/package.json
+63
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/utils-merge/.npmignore
...repository/worker_env/node_modules/utils-merge/.npmignore
+9
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/utils-merge/LICENSE
...er/repository/worker_env/node_modules/utils-merge/LICENSE
+20
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/utils-merge/README.md
.../repository/worker_env/node_modules/utils-merge/README.md
+34
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/utils-merge/index.js
...r/repository/worker_env/node_modules/utils-merge/index.js
+23
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/utils-merge/package.json
...pository/worker_env/node_modules/utils-merge/package.json
+66
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/vary/HISTORY.md
...atcher/repository/worker_env/node_modules/vary/HISTORY.md
+39
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/vary/LICENSE
...ispatcher/repository/worker_env/node_modules/vary/LICENSE
+22
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/vary/README.md
...patcher/repository/worker_env/node_modules/vary/README.md
+101
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/vary/index.js
...spatcher/repository/worker_env/node_modules/vary/index.js
+149
-0
dispatch_module/dispatcher/repository/worker_env/node_modules/vary/package.json
...cher/repository/worker_env/node_modules/vary/package.json
+78
-0
dispatch_module/dispatcher/repository/worker_env/output.js
dispatch_module/dispatcher/repository/worker_env/output.js
+43
-0
dispatch_module/dispatcher/repository/worker_env/package-lock.json
...module/dispatcher/repository/worker_env/package-lock.json
+399
-0
dispatch_module/dispatcher/repository/worker_env/package.json
...atch_module/dispatcher/repository/worker_env/package.json
+16
-0
dispatch_module/dispatcher/repository/worker_env/test.js
dispatch_module/dispatcher/repository/worker_env/test.js
+13
-0
No files found.
dispatch_module/dispatcher/repository/worker_env/env.js
0 → 100644
View file @
d1b32115
'
use strict
'
;
const
express
=
require
(
'
express
'
)
const
bodyParser
=
require
(
'
body-parser
'
)
const
app
=
express
()
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
true
}))
app
.
use
(
bodyParser
.
json
())
let
port
=
5000
,
lastRequest
=
Date
.
now
()
app
.
post
(
'
/serverless/function/execute
'
,
(
req
,
res
)
=>
{
let
payload
=
req
.
body
lastRequest
=
Date
.
now
()
executor
(
payload
).
then
((
result
)
=>
{
res
.
json
(
result
)
})
})
function
executor
(
payload
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
})
}
app
.
listen
(
port
,
()
=>
console
.
log
(
`Server listening on port
${
port
}
!`
))
function
shouldDie
()
{
if
(
Date
.
now
()
-
lastRequest
>
300
*
1000
)
{
console
.
log
(
"
Idle for too long. Exiting
"
);
process
.
exit
(
0
)
}
}
setInterval
(
shouldDie
,
1000
);
\ No newline at end of file
dispatch_module/dispatcher/repository/worker_env/node_modules/.bin/mime
0 → 120000
View file @
d1b32115
../mime/cli.js
\ No newline at end of file
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/HISTORY.md
0 → 100644
View file @
d1b32115
1.3.7 / 2019-04-29
==================
*
deps: negotiator@0.6.2
-
Fix sorting charset, encoding, and language with extra parameters
1.
3.6 / 2019-04-28
==================
*
deps: mime-types@~2.1.24
-
deps: mime-db@~1.40.0
1.
3.5 / 2018-02-28
==================
*
deps: mime-types@~2.1.18
-
deps: mime-db@~1.33.0
1.
3.4 / 2017-08-22
==================
*
deps: mime-types@~2.1.16
-
deps: mime-db@~1.29.0
1.
3.3 / 2016-05-02
==================
*
deps: mime-types@~2.1.11
-
deps: mime-db@~1.23.0
*
deps: negotiator@0.6.1
-
perf: improve
`Accept`
parsing speed
-
perf: improve
`Accept-Charset`
parsing speed
-
perf: improve
`Accept-Encoding`
parsing speed
-
perf: improve
`Accept-Language`
parsing speed
1.
3.2 / 2016-03-08
==================
*
deps: mime-types@~2.1.10
-
Fix extension of
`application/dash+xml`
-
Update primary extension for
`audio/mp4`
-
deps: mime-db@~1.22.0
1.
3.1 / 2016-01-19
==================
*
deps: mime-types@~2.1.9
-
deps: mime-db@~1.21.0
1.
3.0 / 2015-09-29
==================
*
deps: mime-types@~2.1.7
-
deps: mime-db@~1.19.0
*
deps: negotiator@0.6.0
-
Fix including type extensions in parameters in
`Accept`
parsing
-
Fix parsing
`Accept`
parameters with quoted equals
-
Fix parsing
`Accept`
parameters with quoted semicolons
-
Lazy-load modules from main entry point
-
perf: delay type concatenation until needed
-
perf: enable strict mode
-
perf: hoist regular expressions
-
perf: remove closures getting spec properties
-
perf: remove a closure from media type parsing
-
perf: remove property delete from media type parsing
1.
2.13 / 2015-09-06
===================
*
deps: mime-types@~2.1.6
-
deps: mime-db@~1.18.0
1.
2.12 / 2015-07-30
===================
*
deps: mime-types@~2.1.4
-
deps: mime-db@~1.16.0
1.
2.11 / 2015-07-16
===================
*
deps: mime-types@~2.1.3
-
deps: mime-db@~1.15.0
1.
2.10 / 2015-07-01
===================
*
deps: mime-types@~2.1.2
-
deps: mime-db@~1.14.0
1.
2.9 / 2015-06-08
==================
*
deps: mime-types@~2.1.1
-
perf: fix deopt during mapping
1.
2.8 / 2015-06-07
==================
*
deps: mime-types@~2.1.0
-
deps: mime-db@~1.13.0
*
perf: avoid argument reassignment & argument slice
*
perf: avoid negotiator recursive construction
*
perf: enable strict mode
*
perf: remove unnecessary bitwise operator
1.
2.7 / 2015-05-10
==================
*
deps: negotiator@0.5.3
-
Fix media type parameter matching to be case-insensitive
1.
2.6 / 2015-05-07
==================
*
deps: mime-types@~2.0.11
-
deps: mime-db@~1.9.1
*
deps: negotiator@0.5.2
-
Fix comparing media types with quoted values
-
Fix splitting media types with quoted commas
1.
2.5 / 2015-03-13
==================
*
deps: mime-types@~2.0.10
-
deps: mime-db@~1.8.0
1.
2.4 / 2015-02-14
==================
*
Support Node.js 0.6
*
deps: mime-types@~2.0.9
-
deps: mime-db@~1.7.0
*
deps: negotiator@0.5.1
-
Fix preference sorting to be stable for long acceptable lists
1.
2.3 / 2015-01-31
==================
*
deps: mime-types@~2.0.8
-
deps: mime-db@~1.6.0
1.
2.2 / 2014-12-30
==================
*
deps: mime-types@~2.0.7
-
deps: mime-db@~1.5.0
1.
2.1 / 2014-12-30
==================
*
deps: mime-types@~2.0.5
-
deps: mime-db@~1.3.1
1.
2.0 / 2014-12-19
==================
*
deps: negotiator@0.5.0
-
Fix list return order when large accepted list
-
Fix missing identity encoding when q=0 exists
-
Remove dynamic building of Negotiator class
1.
1.4 / 2014-12-10
==================
*
deps: mime-types@~2.0.4
-
deps: mime-db@~1.3.0
1.
1.3 / 2014-11-09
==================
*
deps: mime-types@~2.0.3
-
deps: mime-db@~1.2.0
1.
1.2 / 2014-10-14
==================
*
deps: negotiator@0.4.9
-
Fix error when media type has invalid parameter
1.
1.1 / 2014-09-28
==================
*
deps: mime-types@~2.0.2
-
deps: mime-db@~1.1.0
*
deps: negotiator@0.4.8
-
Fix all negotiations to be case-insensitive
-
Stable sort preferences of same quality according to client order
1.
1.0 / 2014-09-02
==================
*
update
`mime-types`
1.
0.7 / 2014-07-04
==================
*
Fix wrong type returned from
`type`
when match after unknown extension
1.
0.6 / 2014-06-24
==================
*
deps: negotiator@0.4.7
1.
0.5 / 2014-06-20
==================
*
fix crash when unknown extension given
1.
0.4 / 2014-06-19
==================
*
use
`mime-types`
1.
0.3 / 2014-06-11
==================
*
deps: negotiator@0.4.6
-
Order by specificity when quality is the same
1.
0.2 / 2014-05-29
==================
*
Fix interpretation when header not in request
*
deps: pin negotiator@0.4.5
1.
0.1 / 2014-01-18
==================
*
Identity encoding isn't always acceptable
*
deps: negotiator@~0.4.0
1.
0.0 / 2013-12-27
==================
*
Genesis
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/LICENSE
0 → 100644
View file @
d1b32115
(The MIT License)
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/README.md
0 → 100644
View file @
d1b32115
# accepts
[
![NPM Version
][
npm-version-image
]
][npm-url]
[
![NPM Downloads
][
npm-downloads-image
]
][npm-url]
[
![Node.js Version
][
node-version-image
]
][node-version-url]
[
![Build Status
][
travis-image
]
][travis-url]
[
![Test Coverage
][
coveralls-image
]
][coveralls-url]
Higher level content negotiation based on
[
negotiator
](
https://www.npmjs.com/package/negotiator
)
.
Extracted from
[
koa
](
https://www.npmjs.com/package/koa
)
for general use.
In addition to negotiator, it allows:
-
Allows types as an array or arguments list, ie
`(['text/html', 'application/json'])`
as well as
`('text/html', 'application/json')`
.
-
Allows type shorthands such as
`json`
.
-
Returns
`false`
when no types match
-
Treats non-existent headers as
`*`
## Installation
This is a
[
Node.js
](
https://nodejs.org/en/
)
module available through the
[
npm registry
](
https://www.npmjs.com/
)
. Installation is done using the
[
`npm install` command
](
https://docs.npmjs.com/getting-started/installing-npm-packages-locally
)
:
```
sh
$
npm
install
accepts
```
## API
<!-- eslint-disable no-unused-vars -->
```
js
var
accepts
=
require
(
'
accepts
'
)
```
### accepts(req)
Create a new
`Accepts`
object for the given
`req`
.
#### .charset(charsets)
Return the first accepted charset. If nothing in
`charsets`
is accepted,
then
`false`
is returned.
#### .charsets()
Return the charsets that the request accepts, in the order of the client's
preference (most preferred first).
#### .encoding(encodings)
Return the first accepted encoding. If nothing in
`encodings`
is accepted,
then
`false`
is returned.
#### .encodings()
Return the encodings that the request accepts, in the order of the client's
preference (most preferred first).
#### .language(languages)
Return the first accepted language. If nothing in
`languages`
is accepted,
then
`false`
is returned.
#### .languages()
Return the languages that the request accepts, in the order of the client's
preference (most preferred first).
#### .type(types)
Return the first accepted type (and it is returned as the same text as what
appears in the
`types`
array). If nothing in
`types`
is accepted, then
`false`
is returned.
The
`types`
array can contain full MIME types or file extensions. Any value
that is not a full MIME types is passed to
`require('mime-types').lookup`
.
#### .types()
Return the types that the request accepts, in the order of the client's
preference (most preferred first).
## Examples
### Simple type negotiation
This simple example shows how to use
`accepts`
to return a different typed
respond body based on what the client wants to accept. The server lists it's
preferences in order and will get back the best match between the client and
server.
```
js
var
accepts
=
require
(
'
accepts
'
)
var
http
=
require
(
'
http
'
)
function
app
(
req
,
res
)
{
var
accept
=
accepts
(
req
)
// the order of this list is significant; should be server preferred order
switch
(
accept
.
type
([
'
json
'
,
'
html
'
]))
{
case
'
json
'
:
res
.
setHeader
(
'
Content-Type
'
,
'
application/json
'
)
res
.
write
(
'
{"hello":"world!"}
'
)
break
case
'
html
'
:
res
.
setHeader
(
'
Content-Type
'
,
'
text/html
'
)
res
.
write
(
'
<b>hello, world!</b>
'
)
break
default
:
// the fallback is text/plain, so no need to specify it above
res
.
setHeader
(
'
Content-Type
'
,
'
text/plain
'
)
res
.
write
(
'
hello, world!
'
)
break
}
res
.
end
()
}
http
.
createServer
(
app
).
listen
(
3000
)
```
You can test this out with the cURL program:
```
sh
curl
-I
-H
'Accept: text/html'
http://localhost:3000/
```
## License
[
MIT
](
LICENSE
)
[
coveralls-image
]:
https://badgen.net/coveralls/c/github/jshttp/accepts/master
[
coveralls-url
]:
https://coveralls.io/r/jshttp/accepts?branch=master
[
node-version-image
]:
https://badgen.net/npm/node/accepts
[
node-version-url
]:
https://nodejs.org/en/download
[
npm-downloads-image
]:
https://badgen.net/npm/dm/accepts
[
npm-url
]:
https://npmjs.org/package/accepts
[
npm-version-image
]:
https://badgen.net/npm/v/accepts
[
travis-image
]:
https://badgen.net/travis/jshttp/accepts/master
[
travis-url
]:
https://travis-ci.org/jshttp/accepts
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/index.js
0 → 100644
View file @
d1b32115
/*!
* accepts
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
'
use strict
'
/**
* Module dependencies.
* @private
*/
var
Negotiator
=
require
(
'
negotiator
'
)
var
mime
=
require
(
'
mime-types
'
)
/**
* Module exports.
* @public
*/
module
.
exports
=
Accepts
/**
* Create a new Accepts object for the given req.
*
* @param {object} req
* @public
*/
function
Accepts
(
req
)
{
if
(
!
(
this
instanceof
Accepts
))
{
return
new
Accepts
(
req
)
}
this
.
headers
=
req
.
headers
this
.
negotiator
=
new
Negotiator
(
req
)
}
/**
* Check if the given `type(s)` is acceptable, returning
* the best match when true, otherwise `undefined`, in which
* case you should respond with 406 "Not Acceptable".
*
* The `type` value may be a single mime type string
* such as "application/json", the extension name
* such as "json" or an array `["json", "html", "text/plain"]`. When a list
* or array is given the _best_ match, if any is returned.
*
* Examples:
*
* // Accept: text/html
* this.types('html');
* // => "html"
*
* // Accept: text/*, application/json
* this.types('html');
* // => "html"
* this.types('text/html');
* // => "text/html"
* this.types('json', 'text');
* // => "json"
* this.types('application/json');
* // => "application/json"
*
* // Accept: text/*, application/json
* this.types('image/png');
* this.types('png');
* // => undefined
*
* // Accept: text/*;q=.5, application/json
* this.types(['html', 'json']);
* this.types('html', 'json');
* // => "json"
*
* @param {String|Array} types...
* @return {String|Array|Boolean}
* @public
*/
Accepts
.
prototype
.
type
=
Accepts
.
prototype
.
types
=
function
(
types_
)
{
var
types
=
types_
// support flattened arguments
if
(
types
&&
!
Array
.
isArray
(
types
))
{
types
=
new
Array
(
arguments
.
length
)
for
(
var
i
=
0
;
i
<
types
.
length
;
i
++
)
{
types
[
i
]
=
arguments
[
i
]
}
}
// no types, return all requested types
if
(
!
types
||
types
.
length
===
0
)
{
return
this
.
negotiator
.
mediaTypes
()
}
// no accept header, return first given type
if
(
!
this
.
headers
.
accept
)
{
return
types
[
0
]
}
var
mimes
=
types
.
map
(
extToMime
)
var
accepts
=
this
.
negotiator
.
mediaTypes
(
mimes
.
filter
(
validMime
))
var
first
=
accepts
[
0
]
return
first
?
types
[
mimes
.
indexOf
(
first
)]
:
false
}
/**
* Return accepted encodings or best fit based on `encodings`.
*
* Given `Accept-Encoding: gzip, deflate`
* an array sorted by quality is returned:
*
* ['gzip', 'deflate']
*
* @param {String|Array} encodings...
* @return {String|Array}
* @public
*/
Accepts
.
prototype
.
encoding
=
Accepts
.
prototype
.
encodings
=
function
(
encodings_
)
{
var
encodings
=
encodings_
// support flattened arguments
if
(
encodings
&&
!
Array
.
isArray
(
encodings
))
{
encodings
=
new
Array
(
arguments
.
length
)
for
(
var
i
=
0
;
i
<
encodings
.
length
;
i
++
)
{
encodings
[
i
]
=
arguments
[
i
]
}
}
// no encodings, return all requested encodings
if
(
!
encodings
||
encodings
.
length
===
0
)
{
return
this
.
negotiator
.
encodings
()
}
return
this
.
negotiator
.
encodings
(
encodings
)[
0
]
||
false
}
/**
* Return accepted charsets or best fit based on `charsets`.
*
* Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5`
* an array sorted by quality is returned:
*
* ['utf-8', 'utf-7', 'iso-8859-1']
*
* @param {String|Array} charsets...
* @return {String|Array}
* @public
*/
Accepts
.
prototype
.
charset
=
Accepts
.
prototype
.
charsets
=
function
(
charsets_
)
{
var
charsets
=
charsets_
// support flattened arguments
if
(
charsets
&&
!
Array
.
isArray
(
charsets
))
{
charsets
=
new
Array
(
arguments
.
length
)
for
(
var
i
=
0
;
i
<
charsets
.
length
;
i
++
)
{
charsets
[
i
]
=
arguments
[
i
]
}
}
// no charsets, return all requested charsets
if
(
!
charsets
||
charsets
.
length
===
0
)
{
return
this
.
negotiator
.
charsets
()
}
return
this
.
negotiator
.
charsets
(
charsets
)[
0
]
||
false
}
/**
* Return accepted languages or best fit based on `langs`.
*
* Given `Accept-Language: en;q=0.8, es, pt`
* an array sorted by quality is returned:
*
* ['es', 'pt', 'en']
*
* @param {String|Array} langs...
* @return {Array|String}
* @public
*/
Accepts
.
prototype
.
lang
=
Accepts
.
prototype
.
langs
=
Accepts
.
prototype
.
language
=
Accepts
.
prototype
.
languages
=
function
(
languages_
)
{
var
languages
=
languages_
// support flattened arguments
if
(
languages
&&
!
Array
.
isArray
(
languages
))
{
languages
=
new
Array
(
arguments
.
length
)
for
(
var
i
=
0
;
i
<
languages
.
length
;
i
++
)
{
languages
[
i
]
=
arguments
[
i
]
}
}
// no languages, return all requested languages
if
(
!
languages
||
languages
.
length
===
0
)
{
return
this
.
negotiator
.
languages
()
}
return
this
.
negotiator
.
languages
(
languages
)[
0
]
||
false
}
/**
* Convert extnames to mime.
*
* @param {String} type
* @return {String}
* @private
*/
function
extToMime
(
type
)
{
return
type
.
indexOf
(
'
/
'
)
===
-
1
?
mime
.
lookup
(
type
)
:
type
}
/**
* Check if mime is valid.
*
* @param {String} type
* @return {String}
* @private
*/
function
validMime
(
type
)
{
return
typeof
type
===
'
string
'
}
dispatch_module/dispatcher/repository/worker_env/node_modules/accepts/package.json
0 → 100644
View file @
d1b32115
{
"_from"
:
"accepts@~1.3.7"
,
"_id"
:
"accepts@1.3.7"
,
"_inBundle"
:
false
,
"_integrity"
:
"sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA=="
,
"_location"
:
"/accepts"
,
"_phantomChildren"
:
{},
"_requested"
:
{
"type"
:
"range"
,
"registry"
:
true
,
"raw"
:
"accepts@~1.3.7"
,
"name"
:
"accepts"
,
"escapedName"
:
"accepts"
,
"rawSpec"
:
"~1.3.7"
,
"saveSpec"
:
null
,
"fetchSpec"
:
"~1.3.7"
},
"_requiredBy"
:
[
"/express"
],
"_resolved"
:
"https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz"
,
"_shasum"
:
"531bc726517a3b2b41f850021c6cc15eaab507cd"
,
"_spec"
:
"accepts@~1.3.7"
,
"_where"
:
"/home/nilanjan/Desktop/serverless/hybrid/dispatch_module/dispatcher/repository/worker_env/node_modules/express"
,
"bugs"
:
{
"url"
:
"https://github.com/jshttp/accepts/issues"
},
"bundleDependencies"
:
false
,
"contributors"
:
[
{
"name"
:
"Douglas Christopher Wilson"
,
"email"
:
"doug@somethingdoug.com"
},
{
"name"
:
"Jonathan Ong"
,
"email"
:
"me@jongleberry.com"
,
"url"
:
"http://jongleberry.com"
}
],
"dependencies"
:
{
"mime-types"
:
"~2.1.24"
,
"negotiator"
:
"0.6.2"
},
"deprecated"
:
false
,
"description"
:
"Higher-level content negotiation"
,
"devDependencies"
:
{
"deep-equal"
:
"1.0.1"
,
"eslint"
:
"5.16.0"
,
"eslint-config-standard"
:
"12.0.0"
,
"eslint-plugin-import"
:
"2.17.2"
,
"eslint-plugin-markdown"
:
"1.0.0"
,
"eslint-plugin-node"
:
"8.0.1"
,
"eslint-plugin-promise"
:
"4.1.1"
,
"eslint-plugin-standard"
:
"4.0.0"
,
"mocha"
:
"6.1.4"
,
"nyc"
:
"14.0.0"
},
"engines"
:
{
"node"
:
">= 0.6"
},
"files"
:
[
"LICENSE"
,
"HISTORY.md"
,
"index.js"
],
"homepage"
:
"https://github.com/jshttp/accepts#readme"
,
"keywords"
:
[
"content"
,
"negotiation"
,
"accept"
,
"accepts"
],
"license"
:
"MIT"
,
"name"
:
"accepts"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/jshttp/accepts.git"
},
"scripts"
:
{
"lint"
:
"eslint --plugin markdown --ext js,md ."
,
"test"
:
"mocha --reporter spec --check-leaks --bail test/"
,
"test-cov"
:
"nyc --reporter=html --reporter=text npm test"
,
"test-travis"
:
"nyc --reporter=text npm test"
},
"version"
:
"1.3.7"
}
dispatch_module/dispatcher/repository/worker_env/node_modules/array-flatten/LICENSE
0 → 100644
View file @
d1b32115
The MIT License (MIT)
Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
dispatch_module/dispatcher/repository/worker_env/node_modules/array-flatten/README.md
0 → 100644
View file @
d1b32115
# Array Flatten
[
![NPM version
][
npm-image
]
][npm-url]
[
![NPM downloads
][
downloads-image
]
][downloads-url]
[
![Build status
][
travis-image
]
][travis-url]
[
![Test coverage
][
coveralls-image
]
][coveralls-url]
> Flatten an array of nested arrays into a single flat array. Accepts an optional depth.
## Installation
```
npm install array-flatten --save
```
## Usage
```
javascript
var
flatten
=
require
(
'
array-flatten
'
)
flatten
([
1
,
[
2
,
[
3
,
[
4
,
[
5
],
6
],
7
],
8
],
9
])
//=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
flatten
([
1
,
[
2
,
[
3
,
[
4
,
[
5
],
6
],
7
],
8
],
9
],
2
)
//=> [1, 2, 3, [4, [5], 6], 7, 8, 9]
(
function
()
{
flatten
(
arguments
)
//=> [1, 2, 3]
})(
1
,
[
2
,
3
])
```
## License
MIT
[
npm-image
]:
https://img.shields.io/npm/v/array-flatten.svg?style=flat
[
npm-url
]:
https://npmjs.org/package/array-flatten
[
downloads-image
]:
https://img.shields.io/npm/dm/array-flatten.svg?style=flat
[
downloads-url
]:
https://npmjs.org/package/array-flatten
[
travis-image
]:
https://img.shields.io/travis/blakeembrey/array-flatten.svg?style=flat
[
travis-url
]:
https://travis-ci.org/blakeembrey/array-flatten
[
coveralls-image
]:
https://img.shields.io/coveralls/blakeembrey/array-flatten.svg?style=flat
[
coveralls-url
]:
https://coveralls.io/r/blakeembrey/array-flatten?branch=master
dispatch_module/dispatcher/repository/worker_env/node_modules/array-flatten/array-flatten.js
0 → 100644
View file @
d1b32115
'
use strict
'
/**
* Expose `arrayFlatten`.
*/
module
.
exports
=
arrayFlatten
/**
* Recursive flatten function with depth.
*
* @param {Array} array
* @param {Array} result
* @param {Number} depth
* @return {Array}
*/
function
flattenWithDepth
(
array
,
result
,
depth
)
{
for
(
var
i
=
0
;
i
<
array
.
length
;
i
++
)
{
var
value
=
array
[
i
]
if
(
depth
>
0
&&
Array
.
isArray
(
value
))
{
flattenWithDepth
(
value
,
result
,
depth
-
1
)
}
else
{
result
.
push
(
value
)
}
}
return
result
}
/**
* Recursive flatten function. Omitting depth is slightly faster.
*
* @param {Array} array
* @param {Array} result
* @return {Array}
*/
function
flattenForever
(
array
,
result
)
{
for
(
var
i
=
0
;
i
<
array
.
length
;
i
++
)
{
var
value
=
array
[
i
]
if
(
Array
.
isArray
(
value
))
{
flattenForever
(
value
,
result
)
}
else
{
result
.
push
(
value
)
}
}
return
result
}
/**
* Flatten an array, with the ability to define a depth.
*
* @param {Array} array
* @param {Number} depth
* @return {Array}
*/
function
arrayFlatten
(
array
,
depth
)
{
if
(
depth
==
null
)
{
return
flattenForever
(
array
,
[])
}
return
flattenWithDepth
(
array
,
[],
depth
)
}
dispatch_module/dispatcher/repository/worker_env/node_modules/array-flatten/package.json
0 → 100644
View file @
d1b32115
{
"_from"
:
"array-flatten@1.1.1"
,
"_id"
:
"array-flatten@1.1.1"
,
"_inBundle"
:
false
,
"_integrity"
:
"sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
,
"_location"
:
"/array-flatten"
,
"_phantomChildren"
:
{},
"_requested"
:
{
"type"
:
"version"
,
"registry"
:
true
,
"raw"
:
"array-flatten@1.1.1"
,
"name"
:
"array-flatten"
,
"escapedName"
:
"array-flatten"
,
"rawSpec"
:
"1.1.1"
,
"saveSpec"
:
null
,
"fetchSpec"
:
"1.1.1"
},
"_requiredBy"
:
[
"/express"
],
"_resolved"
:
"https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz"
,
"_shasum"
:
"9a5f699051b1e7073328f2a008968b64ea2955d2"
,
"_spec"
:
"array-flatten@1.1.1"
,
"_where"
:
"/home/nilanjan/Desktop/serverless/hybrid/dispatch_module/dispatcher/repository/worker_env/node_modules/express"
,
"author"
:
{
"name"
:
"Blake Embrey"
,
"email"
:
"hello@blakeembrey.com"
,
"url"
:
"http://blakeembrey.me"
},
"bugs"
:
{
"url"
:
"https://github.com/blakeembrey/array-flatten/issues"
},
"bundleDependencies"
:
false
,
"deprecated"
:
false
,
"description"
:
"Flatten an array of nested arrays into a single flat array"
,
"devDependencies"
:
{
"istanbul"
:
"^0.3.13"
,
"mocha"
:
"^2.2.4"
,
"pre-commit"
:
"^1.0.7"
,
"standard"
:
"^3.7.3"
},
"files"
:
[
"array-flatten.js"
,
"LICENSE"
],
"homepage"
:
"https://github.com/blakeembrey/array-flatten"
,
"keywords"
:
[
"array"
,
"flatten"
,
"arguments"
,
"depth"
],
"license"
:
"MIT"
,
"main"
:
"array-flatten.js"
,
"name"
:
"array-flatten"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git://github.com/blakeembrey/array-flatten.git"
},
"scripts"
:
{
"test"
:
"istanbul cover _mocha -- -R spec"
},
"version"
:
"1.1.1"
}
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/HISTORY.md
0 → 100644
View file @
d1b32115
2.0.1 / 2018-09-19
==================
*
deps: safe-buffer@5.1.2
2.
0.0 / 2017-09-12
==================
*
Drop support for Node.js below 0.8
*
Remove
`auth(ctx)`
signature -- pass in header or
`auth(ctx.req)`
*
Use
`safe-buffer`
for improved Buffer API
1.
1.0 / 2016-11-18
==================
*
Add
`auth.parse`
for low-level string parsing
1.
0.4 / 2016-05-10
==================
*
Improve error message when
`req`
argument is not an object
*
Improve error message when
`req`
missing
`headers`
property
1.
0.3 / 2015-07-01
==================
*
Fix regression accepting a Koa context
1.
0.2 / 2015-06-12
==================
*
Improve error message when
`req`
argument missing
*
perf: enable strict mode
*
perf: hoist regular expression
*
perf: parse with regular expressions
*
perf: remove argument reassignment
1.
0.1 / 2015-05-04
==================
*
Update readme
1.
0.0 / 2014-07-01
==================
*
Support empty password
*
Support empty username
0.
0.1 / 2013-11-30
==================
*
Initial release
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/LICENSE
0 → 100644
View file @
d1b32115
(The MIT License)
Copyright (c) 2013 TJ Holowaychuk
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
Copyright (c) 2015-2016 Douglas Christopher Wilson <doug@somethingdoug.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/README.md
0 → 100644
View file @
d1b32115
# basic-auth
[
![NPM Version
][
npm-image
]
][npm-url]
[
![NPM Downloads
][
downloads-image
]
][downloads-url]
[
![Node.js Version
][
node-version-image
]
][node-version-url]
[
![Build Status
][
travis-image
]
][travis-url]
[
![Test Coverage
][
coveralls-image
]
][coveralls-url]
Generic basic auth Authorization header field parser for whatever.
## Installation
This is a
[
Node.js
](
https://nodejs.org/en/
)
module available through the
[
npm registry
](
https://www.npmjs.com/
)
. Installation is done using the
[
`npm install` command
](
https://docs.npmjs.com/getting-started/installing-npm-packages-locally
)
:
```
$ npm install basic-auth
```
## API
<!-- eslint-disable no-unused-vars -->
```
js
var
auth
=
require
(
'
basic-auth
'
)
```
### auth(req)
Get the basic auth credentials from the given request. The
`Authorization`
header is parsed and if the header is invalid,
`undefined`
is returned,
otherwise an object with
`name`
and
`pass`
properties.
### auth.parse(string)
Parse a basic auth authorization header string. This will return an object
with
`name`
and
`pass`
properties, or
`undefined`
if the string is invalid.
## Example
Pass a Node.js request object to the module export. If parsing fails
`undefined`
is returned, otherwise an object with
`.name`
and
`.pass`
.
<!-- eslint-disable no-unused-vars, no-undef -->
```
js
var
auth
=
require
(
'
basic-auth
'
)
var
user
=
auth
(
req
)
// => { name: 'something', pass: 'whatever' }
```
A header string from any other location can also be parsed with
`auth.parse`
, for example a
`Proxy-Authorization`
header:
<!-- eslint-disable no-unused-vars, no-undef -->
```
js
var
auth
=
require
(
'
basic-auth
'
)
var
user
=
auth
.
parse
(
req
.
getHeader
(
'
Proxy-Authorization
'
))
```
### With vanilla node.js http server
```
js
var
http
=
require
(
'
http
'
)
var
auth
=
require
(
'
basic-auth
'
)
var
compare
=
require
(
'
tsscmp
'
)
// Create server
var
server
=
http
.
createServer
(
function
(
req
,
res
)
{
var
credentials
=
auth
(
req
)
// Check credentials
// The "check" function will typically be against your user store
if
(
!
credentials
||
!
check
(
credentials
.
name
,
credentials
.
pass
))
{
res
.
statusCode
=
401
res
.
setHeader
(
'
WWW-Authenticate
'
,
'
Basic realm="example"
'
)
res
.
end
(
'
Access denied
'
)
}
else
{
res
.
end
(
'
Access granted
'
)
}
})
// Basic function to validate credentials for example
function
check
(
name
,
pass
)
{
var
valid
=
true
// Simple method to prevent short-circut and use timing-safe compare
valid
=
compare
(
name
,
'
john
'
)
&&
valid
valid
=
compare
(
pass
,
'
secret
'
)
&&
valid
return
valid
}
// Listen
server
.
listen
(
3000
)
```
# License
[
MIT
](
LICENSE
)
[
coveralls-image
]:
https://badgen.net/coveralls/c/github/jshttp/basic-auth/master
[
coveralls-url
]:
https://coveralls.io/r/jshttp/basic-auth?branch=master
[
downloads-image
]:
https://badgen.net/npm/dm/basic-auth
[
downloads-url
]:
https://npmjs.org/package/basic-auth
[
node-version-image
]:
https://badgen.net/npm/node/basic-auth
[
node-version-url
]:
https://nodejs.org/en/download
[
npm-image
]:
https://badgen.net/npm/v/basic-auth
[
npm-url
]:
https://npmjs.org/package/basic-auth
[
travis-image
]:
https://badgen.net/travis/jshttp/basic-auth/master
[
travis-url
]:
https://travis-ci.org/jshttp/basic-auth
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/index.js
0 → 100644
View file @
d1b32115
/*!
* basic-auth
* Copyright(c) 2013 TJ Holowaychuk
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2016 Douglas Christopher Wilson
* MIT Licensed
*/
'
use strict
'
/**
* Module dependencies.
* @private
*/
var
Buffer
=
require
(
'
safe-buffer
'
).
Buffer
/**
* Module exports.
* @public
*/
module
.
exports
=
auth
module
.
exports
.
parse
=
parse
/**
* RegExp for basic auth credentials
*
* credentials = auth-scheme 1*SP token68
* auth-scheme = "Basic" ; case insensitive
* token68 = 1*( ALPHA / DIGIT / "-" / "." / "_" / "~" / "+" / "/" ) *"="
* @private
*/
var
CREDENTIALS_REGEXP
=
/^ *
(?:[
Bb
][
Aa
][
Ss
][
Ii
][
Cc
])
+
([
A-Za-z0-9._~+
/
-
]
+=*
)
*$/
/**
* RegExp for basic auth user/pass
*
* user-pass = userid ":" password
* userid = *<TEXT excluding ":">
* password = *TEXT
* @private
*/
var
USER_PASS_REGEXP
=
/^
([^
:
]
*
)
:
(
.*
)
$/
/**
* Parse the Authorization header field of a request.
*
* @param {object} req
* @return {object} with .name and .pass
* @public
*/
function
auth
(
req
)
{
if
(
!
req
)
{
throw
new
TypeError
(
'
argument req is required
'
)
}
if
(
typeof
req
!==
'
object
'
)
{
throw
new
TypeError
(
'
argument req is required to be an object
'
)
}
// get header
var
header
=
getAuthorization
(
req
)
// parse header
return
parse
(
header
)
}
/**
* Decode base64 string.
* @private
*/
function
decodeBase64
(
str
)
{
return
Buffer
.
from
(
str
,
'
base64
'
).
toString
()
}
/**
* Get the Authorization header from request object.
* @private
*/
function
getAuthorization
(
req
)
{
if
(
!
req
.
headers
||
typeof
req
.
headers
!==
'
object
'
)
{
throw
new
TypeError
(
'
argument req is required to have headers property
'
)
}
return
req
.
headers
.
authorization
}
/**
* Parse basic auth to object.
*
* @param {string} string
* @return {object}
* @public
*/
function
parse
(
string
)
{
if
(
typeof
string
!==
'
string
'
)
{
return
undefined
}
// parse header
var
match
=
CREDENTIALS_REGEXP
.
exec
(
string
)
if
(
!
match
)
{
return
undefined
}
// decode user pass
var
userPass
=
USER_PASS_REGEXP
.
exec
(
decodeBase64
(
match
[
1
]))
if
(
!
userPass
)
{
return
undefined
}
// return credentials object
return
new
Credentials
(
userPass
[
1
],
userPass
[
2
])
}
/**
* Object to represent user credentials.
* @private
*/
function
Credentials
(
name
,
pass
)
{
this
.
name
=
name
this
.
pass
=
pass
}
dispatch_module/dispatcher/repository/worker_env/node_modules/basic-auth/package.json
0 → 100644
View file @
d1b32115
{
"_from"
:
"basic-auth@~2.0.0"
,
"_id"
:
"basic-auth@2.0.1"
,
"_inBundle"
:
false
,
"_integrity"
:
"sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg=="
,
"_location"
:
"/basic-auth"
,
"_phantomChildren"
:
{},
"_requested"
:
{
"type"
:
"range"
,
"registry"
:
true
,
"raw"
:
"basic-auth@~2.0.0"
,
"name"
:
"basic-auth"
,
"escapedName"
:
"basic-auth"
,
"rawSpec"
:
"~2.0.0"
,
"saveSpec"
:
null
,
"fetchSpec"
:
"~2.0.0"
},
"_requiredBy"
:
[
"/morgan"
],
"_resolved"
:
"https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz"
,
"_shasum"
:
"b998279bf47ce38344b4f3cf916d4679bbf51e3a"
,
"_spec"
:
"basic-auth@~2.0.0"
,
"_where"
:
"/home/nilanjan/Desktop/serverless/hybrid/dispatch_module/dispatcher/repository/worker_env/node_modules/morgan"
,
"bugs"
:
{
"url"
:
"https://github.com/jshttp/basic-auth/issues"
},
"bundleDependencies"
:
false
,
"dependencies"
:
{
"safe-buffer"
:
"5.1.2"
},
"deprecated"
:
false
,
"description"
:
"node.js basic auth parser"
,
"devDependencies"
:
{
"eslint"
:
"5.6.0"
,
"eslint-config-standard"
:
"12.0.0"
,
"eslint-plugin-import"
:
"2.14.0"
,
"eslint-plugin-markdown"
:
"1.0.0-beta.6"
,
"eslint-plugin-node"
:
"7.0.1"
,
"eslint-plugin-promise"
:
"4.0.1"
,
"eslint-plugin-standard"
:
"4.0.0"
,
"istanbul"
:
"0.4.5"
,
"mocha"
:
"5.2.0"
},
"engines"
:
{
"node"
:
">= 0.8"
},
"files"
:
[
"HISTORY.md"
,
"LICENSE"
,
"index.js"
],
"homepage"
:
"https://github.com/jshttp/basic-auth#readme"
,
"keywords"
:
[
"basic"
,
"auth"
,
"authorization"
,
"basicauth"
],
"license"
:
"MIT"
,
"name"
:
"basic-auth"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/jshttp/basic-auth.git"
},
"scripts"
:
{
"lint"
:
"eslint --plugin markdown --ext js,md ."
,
"test"
:
"mocha --check-leaks --reporter spec --bail"
,
"test-cov"
:
"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
,
"test-travis"
:
"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
},
"version"
:
"2.0.1"
}
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/HISTORY.md
0 → 100644
View file @
d1b32115
This diff is collapsed.
Click to expand it.
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/LICENSE
0 → 100644
View file @
d1b32115
(The MIT License)
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
Copyright (c) 2014-2015 Douglas Christopher Wilson <doug@somethingdoug.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/README.md
0 → 100644
View file @
d1b32115
This diff is collapsed.
Click to expand it.
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/index.js
0 → 100644
View file @
d1b32115
/*!
* body-parser
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'
use strict
'
/**
* Module dependencies.
* @private
*/
var
deprecate
=
require
(
'
depd
'
)(
'
body-parser
'
)
/**
* Cache of loaded parsers.
* @private
*/
var
parsers
=
Object
.
create
(
null
)
/**
* @typedef Parsers
* @type {function}
* @property {function} json
* @property {function} raw
* @property {function} text
* @property {function} urlencoded
*/
/**
* Module exports.
* @type {Parsers}
*/
exports
=
module
.
exports
=
deprecate
.
function
(
bodyParser
,
'
bodyParser: use individual json/urlencoded middlewares
'
)
/**
* JSON parser.
* @public
*/
Object
.
defineProperty
(
exports
,
'
json
'
,
{
configurable
:
true
,
enumerable
:
true
,
get
:
createParserGetter
(
'
json
'
)
})
/**
* Raw parser.
* @public
*/
Object
.
defineProperty
(
exports
,
'
raw
'
,
{
configurable
:
true
,
enumerable
:
true
,
get
:
createParserGetter
(
'
raw
'
)
})
/**
* Text parser.
* @public
*/
Object
.
defineProperty
(
exports
,
'
text
'
,
{
configurable
:
true
,
enumerable
:
true
,
get
:
createParserGetter
(
'
text
'
)
})
/**
* URL-encoded parser.
* @public
*/
Object
.
defineProperty
(
exports
,
'
urlencoded
'
,
{
configurable
:
true
,
enumerable
:
true
,
get
:
createParserGetter
(
'
urlencoded
'
)
})
/**
* Create a middleware to parse json and urlencoded bodies.
*
* @param {object} [options]
* @return {function}
* @deprecated
* @public
*/
function
bodyParser
(
options
)
{
var
opts
=
{}
// exclude type option
if
(
options
)
{
for
(
var
prop
in
options
)
{
if
(
prop
!==
'
type
'
)
{
opts
[
prop
]
=
options
[
prop
]
}
}
}
var
_urlencoded
=
exports
.
urlencoded
(
opts
)
var
_json
=
exports
.
json
(
opts
)
return
function
bodyParser
(
req
,
res
,
next
)
{
_json
(
req
,
res
,
function
(
err
)
{
if
(
err
)
return
next
(
err
)
_urlencoded
(
req
,
res
,
next
)
})
}
}
/**
* Create a getter for loading a parser.
* @private
*/
function
createParserGetter
(
name
)
{
return
function
get
()
{
return
loadParser
(
name
)
}
}
/**
* Load a parser module.
* @private
*/
function
loadParser
(
parserName
)
{
var
parser
=
parsers
[
parserName
]
if
(
parser
!==
undefined
)
{
return
parser
}
// this uses a switch for static require analysis
switch
(
parserName
)
{
case
'
json
'
:
parser
=
require
(
'
./lib/types/json
'
)
break
case
'
raw
'
:
parser
=
require
(
'
./lib/types/raw
'
)
break
case
'
text
'
:
parser
=
require
(
'
./lib/types/text
'
)
break
case
'
urlencoded
'
:
parser
=
require
(
'
./lib/types/urlencoded
'
)
break
}
// store to prevent invoking require()
return
(
parsers
[
parserName
]
=
parser
)
}
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/read.js
0 → 100644
View file @
d1b32115
/*!
* body-parser
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'
use strict
'
/**
* Module dependencies.
* @private
*/
var
createError
=
require
(
'
http-errors
'
)
var
getBody
=
require
(
'
raw-body
'
)
var
iconv
=
require
(
'
iconv-lite
'
)
var
onFinished
=
require
(
'
on-finished
'
)
var
zlib
=
require
(
'
zlib
'
)
/**
* Module exports.
*/
module
.
exports
=
read
/**
* Read a request into a buffer and parse.
*
* @param {object} req
* @param {object} res
* @param {function} next
* @param {function} parse
* @param {function} debug
* @param {object} options
* @private
*/
function
read
(
req
,
res
,
next
,
parse
,
debug
,
options
)
{
var
length
var
opts
=
options
var
stream
// flag as parsed
req
.
_body
=
true
// read options
var
encoding
=
opts
.
encoding
!==
null
?
opts
.
encoding
:
null
var
verify
=
opts
.
verify
try
{
// get the content stream
stream
=
contentstream
(
req
,
debug
,
opts
.
inflate
)
length
=
stream
.
length
stream
.
length
=
undefined
}
catch
(
err
)
{
return
next
(
err
)
}
// set raw-body options
opts
.
length
=
length
opts
.
encoding
=
verify
?
null
:
encoding
// assert charset is supported
if
(
opts
.
encoding
===
null
&&
encoding
!==
null
&&
!
iconv
.
encodingExists
(
encoding
))
{
return
next
(
createError
(
415
,
'
unsupported charset "
'
+
encoding
.
toUpperCase
()
+
'
"
'
,
{
charset
:
encoding
.
toLowerCase
(),
type
:
'
charset.unsupported
'
}))
}
// read body
debug
(
'
read body
'
)
getBody
(
stream
,
opts
,
function
(
error
,
body
)
{
if
(
error
)
{
var
_error
if
(
error
.
type
===
'
encoding.unsupported
'
)
{
// echo back charset
_error
=
createError
(
415
,
'
unsupported charset "
'
+
encoding
.
toUpperCase
()
+
'
"
'
,
{
charset
:
encoding
.
toLowerCase
(),
type
:
'
charset.unsupported
'
})
}
else
{
// set status code on error
_error
=
createError
(
400
,
error
)
}
// read off entire request
stream
.
resume
()
onFinished
(
req
,
function
onfinished
()
{
next
(
createError
(
400
,
_error
))
})
return
}
// verify
if
(
verify
)
{
try
{
debug
(
'
verify body
'
)
verify
(
req
,
res
,
body
,
encoding
)
}
catch
(
err
)
{
next
(
createError
(
403
,
err
,
{
body
:
body
,
type
:
err
.
type
||
'
entity.verify.failed
'
}))
return
}
}
// parse
var
str
=
body
try
{
debug
(
'
parse body
'
)
str
=
typeof
body
!==
'
string
'
&&
encoding
!==
null
?
iconv
.
decode
(
body
,
encoding
)
:
body
req
.
body
=
parse
(
str
)
}
catch
(
err
)
{
next
(
createError
(
400
,
err
,
{
body
:
str
,
type
:
err
.
type
||
'
entity.parse.failed
'
}))
return
}
next
()
})
}
/**
* Get the content stream of the request.
*
* @param {object} req
* @param {function} debug
* @param {boolean} [inflate=true]
* @return {object}
* @api private
*/
function
contentstream
(
req
,
debug
,
inflate
)
{
var
encoding
=
(
req
.
headers
[
'
content-encoding
'
]
||
'
identity
'
).
toLowerCase
()
var
length
=
req
.
headers
[
'
content-length
'
]
var
stream
debug
(
'
content-encoding "%s"
'
,
encoding
)
if
(
inflate
===
false
&&
encoding
!==
'
identity
'
)
{
throw
createError
(
415
,
'
content encoding unsupported
'
,
{
encoding
:
encoding
,
type
:
'
encoding.unsupported
'
})
}
switch
(
encoding
)
{
case
'
deflate
'
:
stream
=
zlib
.
createInflate
()
debug
(
'
inflate body
'
)
req
.
pipe
(
stream
)
break
case
'
gzip
'
:
stream
=
zlib
.
createGunzip
()
debug
(
'
gunzip body
'
)
req
.
pipe
(
stream
)
break
case
'
identity
'
:
stream
=
req
stream
.
length
=
length
break
default
:
throw
createError
(
415
,
'
unsupported content encoding "
'
+
encoding
+
'
"
'
,
{
encoding
:
encoding
,
type
:
'
encoding.unsupported
'
})
}
return
stream
}
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/types/json.js
0 → 100644
View file @
d1b32115
/*!
* body-parser
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'
use strict
'
/**
* Module dependencies.
* @private
*/
var
bytes
=
require
(
'
bytes
'
)
var
contentType
=
require
(
'
content-type
'
)
var
createError
=
require
(
'
http-errors
'
)
var
debug
=
require
(
'
debug
'
)(
'
body-parser:json
'
)
var
read
=
require
(
'
../read
'
)
var
typeis
=
require
(
'
type-is
'
)
/**
* Module exports.
*/
module
.
exports
=
json
/**
* RegExp to match the first non-space in a string.
*
* Allowed whitespace is defined in RFC 7159:
*
* ws = *(
* %x20 / ; Space
* %x09 / ; Horizontal tab
* %x0A / ; Line feed or New line
* %x0D ) ; Carriage return
*/
var
FIRST_CHAR_REGEXP
=
/^
[\x
20
\x
09
\x
0a
\x
0d
]
*
(
.
)
/
// eslint-disable-line no-control-regex
/**
* Create a middleware to parse JSON bodies.
*
* @param {object} [options]
* @return {function}
* @public
*/
function
json
(
options
)
{
var
opts
=
options
||
{}
var
limit
=
typeof
opts
.
limit
!==
'
number
'
?
bytes
.
parse
(
opts
.
limit
||
'
100kb
'
)
:
opts
.
limit
var
inflate
=
opts
.
inflate
!==
false
var
reviver
=
opts
.
reviver
var
strict
=
opts
.
strict
!==
false
var
type
=
opts
.
type
||
'
application/json
'
var
verify
=
opts
.
verify
||
false
if
(
verify
!==
false
&&
typeof
verify
!==
'
function
'
)
{
throw
new
TypeError
(
'
option verify must be function
'
)
}
// create the appropriate type checking function
var
shouldParse
=
typeof
type
!==
'
function
'
?
typeChecker
(
type
)
:
type
function
parse
(
body
)
{
if
(
body
.
length
===
0
)
{
// special-case empty json body, as it's a common client-side mistake
// TODO: maybe make this configurable or part of "strict" option
return
{}
}
if
(
strict
)
{
var
first
=
firstchar
(
body
)
if
(
first
!==
'
{
'
&&
first
!==
'
[
'
)
{
debug
(
'
strict violation
'
)
throw
createStrictSyntaxError
(
body
,
first
)
}
}
try
{
debug
(
'
parse json
'
)
return
JSON
.
parse
(
body
,
reviver
)
}
catch
(
e
)
{
throw
normalizeJsonSyntaxError
(
e
,
{
message
:
e
.
message
,
stack
:
e
.
stack
})
}
}
return
function
jsonParser
(
req
,
res
,
next
)
{
if
(
req
.
_body
)
{
debug
(
'
body already parsed
'
)
next
()
return
}
req
.
body
=
req
.
body
||
{}
// skip requests without bodies
if
(
!
typeis
.
hasBody
(
req
))
{
debug
(
'
skip empty body
'
)
next
()
return
}
debug
(
'
content-type %j
'
,
req
.
headers
[
'
content-type
'
])
// determine if request should be parsed
if
(
!
shouldParse
(
req
))
{
debug
(
'
skip parsing
'
)
next
()
return
}
// assert charset per RFC 7159 sec 8.1
var
charset
=
getCharset
(
req
)
||
'
utf-8
'
if
(
charset
.
substr
(
0
,
4
)
!==
'
utf-
'
)
{
debug
(
'
invalid charset
'
)
next
(
createError
(
415
,
'
unsupported charset "
'
+
charset
.
toUpperCase
()
+
'
"
'
,
{
charset
:
charset
,
type
:
'
charset.unsupported
'
}))
return
}
// read
read
(
req
,
res
,
next
,
parse
,
debug
,
{
encoding
:
charset
,
inflate
:
inflate
,
limit
:
limit
,
verify
:
verify
})
}
}
/**
* Create strict violation syntax error matching native error.
*
* @param {string} str
* @param {string} char
* @return {Error}
* @private
*/
function
createStrictSyntaxError
(
str
,
char
)
{
var
index
=
str
.
indexOf
(
char
)
var
partial
=
str
.
substring
(
0
,
index
)
+
'
#
'
try
{
JSON
.
parse
(
partial
);
/* istanbul ignore next */
throw
new
SyntaxError
(
'
strict violation
'
)
}
catch
(
e
)
{
return
normalizeJsonSyntaxError
(
e
,
{
message
:
e
.
message
.
replace
(
'
#
'
,
char
),
stack
:
e
.
stack
})
}
}
/**
* Get the first non-whitespace character in a string.
*
* @param {string} str
* @return {function}
* @private
*/
function
firstchar
(
str
)
{
return
FIRST_CHAR_REGEXP
.
exec
(
str
)[
1
]
}
/**
* Get the charset of a request.
*
* @param {object} req
* @api private
*/
function
getCharset
(
req
)
{
try
{
return
(
contentType
.
parse
(
req
).
parameters
.
charset
||
''
).
toLowerCase
()
}
catch
(
e
)
{
return
undefined
}
}
/**
* Normalize a SyntaxError for JSON.parse.
*
* @param {SyntaxError} error
* @param {object} obj
* @return {SyntaxError}
*/
function
normalizeJsonSyntaxError
(
error
,
obj
)
{
var
keys
=
Object
.
getOwnPropertyNames
(
error
)
for
(
var
i
=
0
;
i
<
keys
.
length
;
i
++
)
{
var
key
=
keys
[
i
]
if
(
key
!==
'
stack
'
&&
key
!==
'
message
'
)
{
delete
error
[
key
]
}
}
// replace stack before message for Node.js 0.10 and below
error
.
stack
=
obj
.
stack
.
replace
(
error
.
message
,
obj
.
message
)
error
.
message
=
obj
.
message
return
error
}
/**
* Get the simple type checker.
*
* @param {string} type
* @return {function}
*/
function
typeChecker
(
type
)
{
return
function
checkType
(
req
)
{
return
Boolean
(
typeis
(
req
,
type
))
}
}
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/types/raw.js
0 → 100644
View file @
d1b32115
/*!
* body-parser
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'
use strict
'
/**
* Module dependencies.
*/
var
bytes
=
require
(
'
bytes
'
)
var
debug
=
require
(
'
debug
'
)(
'
body-parser:raw
'
)
var
read
=
require
(
'
../read
'
)
var
typeis
=
require
(
'
type-is
'
)
/**
* Module exports.
*/
module
.
exports
=
raw
/**
* Create a middleware to parse raw bodies.
*
* @param {object} [options]
* @return {function}
* @api public
*/
function
raw
(
options
)
{
var
opts
=
options
||
{}
var
inflate
=
opts
.
inflate
!==
false
var
limit
=
typeof
opts
.
limit
!==
'
number
'
?
bytes
.
parse
(
opts
.
limit
||
'
100kb
'
)
:
opts
.
limit
var
type
=
opts
.
type
||
'
application/octet-stream
'
var
verify
=
opts
.
verify
||
false
if
(
verify
!==
false
&&
typeof
verify
!==
'
function
'
)
{
throw
new
TypeError
(
'
option verify must be function
'
)
}
// create the appropriate type checking function
var
shouldParse
=
typeof
type
!==
'
function
'
?
typeChecker
(
type
)
:
type
function
parse
(
buf
)
{
return
buf
}
return
function
rawParser
(
req
,
res
,
next
)
{
if
(
req
.
_body
)
{
debug
(
'
body already parsed
'
)
next
()
return
}
req
.
body
=
req
.
body
||
{}
// skip requests without bodies
if
(
!
typeis
.
hasBody
(
req
))
{
debug
(
'
skip empty body
'
)
next
()
return
}
debug
(
'
content-type %j
'
,
req
.
headers
[
'
content-type
'
])
// determine if request should be parsed
if
(
!
shouldParse
(
req
))
{
debug
(
'
skip parsing
'
)
next
()
return
}
// read
read
(
req
,
res
,
next
,
parse
,
debug
,
{
encoding
:
null
,
inflate
:
inflate
,
limit
:
limit
,
verify
:
verify
})
}
}
/**
* Get the simple type checker.
*
* @param {string} type
* @return {function}
*/
function
typeChecker
(
type
)
{
return
function
checkType
(
req
)
{
return
Boolean
(
typeis
(
req
,
type
))
}
}
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/types/text.js
0 → 100644
View file @
d1b32115
/*!
* body-parser
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'
use strict
'
/**
* Module dependencies.
*/
var
bytes
=
require
(
'
bytes
'
)
var
contentType
=
require
(
'
content-type
'
)
var
debug
=
require
(
'
debug
'
)(
'
body-parser:text
'
)
var
read
=
require
(
'
../read
'
)
var
typeis
=
require
(
'
type-is
'
)
/**
* Module exports.
*/
module
.
exports
=
text
/**
* Create a middleware to parse text bodies.
*
* @param {object} [options]
* @return {function}
* @api public
*/
function
text
(
options
)
{
var
opts
=
options
||
{}
var
defaultCharset
=
opts
.
defaultCharset
||
'
utf-8
'
var
inflate
=
opts
.
inflate
!==
false
var
limit
=
typeof
opts
.
limit
!==
'
number
'
?
bytes
.
parse
(
opts
.
limit
||
'
100kb
'
)
:
opts
.
limit
var
type
=
opts
.
type
||
'
text/plain
'
var
verify
=
opts
.
verify
||
false
if
(
verify
!==
false
&&
typeof
verify
!==
'
function
'
)
{
throw
new
TypeError
(
'
option verify must be function
'
)
}
// create the appropriate type checking function
var
shouldParse
=
typeof
type
!==
'
function
'
?
typeChecker
(
type
)
:
type
function
parse
(
buf
)
{
return
buf
}
return
function
textParser
(
req
,
res
,
next
)
{
if
(
req
.
_body
)
{
debug
(
'
body already parsed
'
)
next
()
return
}
req
.
body
=
req
.
body
||
{}
// skip requests without bodies
if
(
!
typeis
.
hasBody
(
req
))
{
debug
(
'
skip empty body
'
)
next
()
return
}
debug
(
'
content-type %j
'
,
req
.
headers
[
'
content-type
'
])
// determine if request should be parsed
if
(
!
shouldParse
(
req
))
{
debug
(
'
skip parsing
'
)
next
()
return
}
// get charset
var
charset
=
getCharset
(
req
)
||
defaultCharset
// read
read
(
req
,
res
,
next
,
parse
,
debug
,
{
encoding
:
charset
,
inflate
:
inflate
,
limit
:
limit
,
verify
:
verify
})
}
}
/**
* Get the charset of a request.
*
* @param {object} req
* @api private
*/
function
getCharset
(
req
)
{
try
{
return
(
contentType
.
parse
(
req
).
parameters
.
charset
||
''
).
toLowerCase
()
}
catch
(
e
)
{
return
undefined
}
}
/**
* Get the simple type checker.
*
* @param {string} type
* @return {function}
*/
function
typeChecker
(
type
)
{
return
function
checkType
(
req
)
{
return
Boolean
(
typeis
(
req
,
type
))
}
}
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/lib/types/urlencoded.js
0 → 100644
View file @
d1b32115
/*!
* body-parser
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'
use strict
'
/**
* Module dependencies.
* @private
*/
var
bytes
=
require
(
'
bytes
'
)
var
contentType
=
require
(
'
content-type
'
)
var
createError
=
require
(
'
http-errors
'
)
var
debug
=
require
(
'
debug
'
)(
'
body-parser:urlencoded
'
)
var
deprecate
=
require
(
'
depd
'
)(
'
body-parser
'
)
var
read
=
require
(
'
../read
'
)
var
typeis
=
require
(
'
type-is
'
)
/**
* Module exports.
*/
module
.
exports
=
urlencoded
/**
* Cache of parser modules.
*/
var
parsers
=
Object
.
create
(
null
)
/**
* Create a middleware to parse urlencoded bodies.
*
* @param {object} [options]
* @return {function}
* @public
*/
function
urlencoded
(
options
)
{
var
opts
=
options
||
{}
// notice because option default will flip in next major
if
(
opts
.
extended
===
undefined
)
{
deprecate
(
'
undefined extended: provide extended option
'
)
}
var
extended
=
opts
.
extended
!==
false
var
inflate
=
opts
.
inflate
!==
false
var
limit
=
typeof
opts
.
limit
!==
'
number
'
?
bytes
.
parse
(
opts
.
limit
||
'
100kb
'
)
:
opts
.
limit
var
type
=
opts
.
type
||
'
application/x-www-form-urlencoded
'
var
verify
=
opts
.
verify
||
false
if
(
verify
!==
false
&&
typeof
verify
!==
'
function
'
)
{
throw
new
TypeError
(
'
option verify must be function
'
)
}
// create the appropriate query parser
var
queryparse
=
extended
?
extendedparser
(
opts
)
:
simpleparser
(
opts
)
// create the appropriate type checking function
var
shouldParse
=
typeof
type
!==
'
function
'
?
typeChecker
(
type
)
:
type
function
parse
(
body
)
{
return
body
.
length
?
queryparse
(
body
)
:
{}
}
return
function
urlencodedParser
(
req
,
res
,
next
)
{
if
(
req
.
_body
)
{
debug
(
'
body already parsed
'
)
next
()
return
}
req
.
body
=
req
.
body
||
{}
// skip requests without bodies
if
(
!
typeis
.
hasBody
(
req
))
{
debug
(
'
skip empty body
'
)
next
()
return
}
debug
(
'
content-type %j
'
,
req
.
headers
[
'
content-type
'
])
// determine if request should be parsed
if
(
!
shouldParse
(
req
))
{
debug
(
'
skip parsing
'
)
next
()
return
}
// assert charset
var
charset
=
getCharset
(
req
)
||
'
utf-8
'
if
(
charset
!==
'
utf-8
'
)
{
debug
(
'
invalid charset
'
)
next
(
createError
(
415
,
'
unsupported charset "
'
+
charset
.
toUpperCase
()
+
'
"
'
,
{
charset
:
charset
,
type
:
'
charset.unsupported
'
}))
return
}
// read
read
(
req
,
res
,
next
,
parse
,
debug
,
{
debug
:
debug
,
encoding
:
charset
,
inflate
:
inflate
,
limit
:
limit
,
verify
:
verify
})
}
}
/**
* Get the extended query parser.
*
* @param {object} options
*/
function
extendedparser
(
options
)
{
var
parameterLimit
=
options
.
parameterLimit
!==
undefined
?
options
.
parameterLimit
:
1000
var
parse
=
parser
(
'
qs
'
)
if
(
isNaN
(
parameterLimit
)
||
parameterLimit
<
1
)
{
throw
new
TypeError
(
'
option parameterLimit must be a positive number
'
)
}
if
(
isFinite
(
parameterLimit
))
{
parameterLimit
=
parameterLimit
|
0
}
return
function
queryparse
(
body
)
{
var
paramCount
=
parameterCount
(
body
,
parameterLimit
)
if
(
paramCount
===
undefined
)
{
debug
(
'
too many parameters
'
)
throw
createError
(
413
,
'
too many parameters
'
,
{
type
:
'
parameters.too.many
'
})
}
var
arrayLimit
=
Math
.
max
(
100
,
paramCount
)
debug
(
'
parse extended urlencoding
'
)
return
parse
(
body
,
{
allowPrototypes
:
true
,
arrayLimit
:
arrayLimit
,
depth
:
Infinity
,
parameterLimit
:
parameterLimit
})
}
}
/**
* Get the charset of a request.
*
* @param {object} req
* @api private
*/
function
getCharset
(
req
)
{
try
{
return
(
contentType
.
parse
(
req
).
parameters
.
charset
||
''
).
toLowerCase
()
}
catch
(
e
)
{
return
undefined
}
}
/**
* Count the number of parameters, stopping once limit reached
*
* @param {string} body
* @param {number} limit
* @api private
*/
function
parameterCount
(
body
,
limit
)
{
var
count
=
0
var
index
=
0
while
((
index
=
body
.
indexOf
(
'
&
'
,
index
))
!==
-
1
)
{
count
++
index
++
if
(
count
===
limit
)
{
return
undefined
}
}
return
count
}
/**
* Get parser for module name dynamically.
*
* @param {string} name
* @return {function}
* @api private
*/
function
parser
(
name
)
{
var
mod
=
parsers
[
name
]
if
(
mod
!==
undefined
)
{
return
mod
.
parse
}
// this uses a switch for static require analysis
switch
(
name
)
{
case
'
qs
'
:
mod
=
require
(
'
qs
'
)
break
case
'
querystring
'
:
mod
=
require
(
'
querystring
'
)
break
}
// store to prevent invoking require()
parsers
[
name
]
=
mod
return
mod
.
parse
}
/**
* Get the simple query parser.
*
* @param {object} options
*/
function
simpleparser
(
options
)
{
var
parameterLimit
=
options
.
parameterLimit
!==
undefined
?
options
.
parameterLimit
:
1000
var
parse
=
parser
(
'
querystring
'
)
if
(
isNaN
(
parameterLimit
)
||
parameterLimit
<
1
)
{
throw
new
TypeError
(
'
option parameterLimit must be a positive number
'
)
}
if
(
isFinite
(
parameterLimit
))
{
parameterLimit
=
parameterLimit
|
0
}
return
function
queryparse
(
body
)
{
var
paramCount
=
parameterCount
(
body
,
parameterLimit
)
if
(
paramCount
===
undefined
)
{
debug
(
'
too many parameters
'
)
throw
createError
(
413
,
'
too many parameters
'
,
{
type
:
'
parameters.too.many
'
})
}
debug
(
'
parse urlencoding
'
)
return
parse
(
body
,
undefined
,
undefined
,
{
maxKeys
:
parameterLimit
})
}
}
/**
* Get the simple type checker.
*
* @param {string} type
* @return {function}
*/
function
typeChecker
(
type
)
{
return
function
checkType
(
req
)
{
return
Boolean
(
typeis
(
req
,
type
))
}
}
dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser/package.json
0 → 100644
View file @
d1b32115
{
"_from"
:
"body-parser"
,
"_id"
:
"body-parser@1.19.0"
,
"_inBundle"
:
false
,
"_integrity"
:
"sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw=="
,
"_location"
:
"/body-parser"
,
"_phantomChildren"
:
{},
"_requested"
:
{
"type"
:
"tag"
,
"registry"
:
true
,
"raw"
:
"body-parser"
,
"name"
:
"body-parser"
,
"escapedName"
:
"body-parser"
,
"rawSpec"
:
""
,
"saveSpec"
:
null
,
"fetchSpec"
:
"latest"
},
"_requiredBy"
:
[
"#USER"
,
"/"
,
"/express"
],
"_resolved"
:
"https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz"
,
"_shasum"
:
"96b2709e57c9c4e09a6fd66a8fd979844f69f08a"
,
"_spec"
:
"body-parser"
,
"_where"
:
"/home/nilanjan/Desktop/serverless/hybrid/dispatch_module/dispatcher/repository/worker_env"
,
"bugs"
:
{
"url"
:
"https://github.com/expressjs/body-parser/issues"
},
"bundleDependencies"
:
false
,
"contributors"
:
[
{
"name"
:
"Douglas Christopher Wilson"
,
"email"
:
"doug@somethingdoug.com"
},
{
"name"
:
"Jonathan Ong"
,
"email"
:
"me@jongleberry.com"
,
"url"
:
"http://jongleberry.com"
}
],
"dependencies"
:
{
"bytes"
:
"3.1.0"
,
"content-type"
:
"~1.0.4"
,
"debug"
:
"2.6.9"
,
"depd"
:
"~1.1.2"
,
"http-errors"
:
"1.7.2"
,
"iconv-lite"
:
"0.4.24"
,
"on-finished"
:
"~2.3.0"
,
"qs"
:
"6.7.0"
,
"raw-body"
:
"2.4.0"
,
"type-is"
:
"~1.6.17"
},
"deprecated"
:
false
,
"description"
:
"Node.js body parsing middleware"
,
"devDependencies"
:
{
"eslint"
:
"5.16.0"
,
"eslint-config-standard"
:
"12.0.0"
,
"eslint-plugin-import"
:
"2.17.2"
,
"eslint-plugin-markdown"
:
"1.0.0"
,
"eslint-plugin-node"
:
"8.0.1"
,
"eslint-plugin-promise"
:
"4.1.1"
,
"eslint-plugin-standard"
:
"4.0.0"
,
"istanbul"
:
"0.4.5"
,
"methods"
:
"1.1.2"
,
"mocha"
:
"6.1.4"
,
"safe-buffer"
:
"5.1.2"
,
"supertest"
:
"4.0.2"
},
"engines"
:
{
"node"
:
">= 0.8"
},
"files"
:
[
"lib/"
,
"LICENSE"
,
"HISTORY.md"
,
"index.js"
],
"homepage"
:
"https://github.com/expressjs/body-parser#readme"
,
"license"
:
"MIT"
,
"name"
:
"body-parser"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/expressjs/body-parser.git"
},
"scripts"
:
{
"lint"
:
"eslint --plugin markdown --ext js,md ."
,
"test"
:
"mocha --require test/support/env --reporter spec --check-leaks --bail test/"
,
"test-cov"
:
"istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/"
,
"test-travis"
:
"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/"
},
"version"
:
"1.19.0"
}
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/History.md
0 → 100644
View file @
d1b32115
3.1.0 / 2019-01-22
==================
*
Add petabyte (
`pb`
) support
3.
0.0 / 2017-08-31
==================
*
Change "kB" to "KB" in format output
*
Remove support for Node.js 0.6
*
Remove support for ComponentJS
2.
5.0 / 2017-03-24
==================
*
Add option "unit"
2.
4.0 / 2016-06-01
==================
*
Add option "unitSeparator"
2.
3.0 / 2016-02-15
==================
*
Drop partial bytes on all parsed units
*
Fix non-finite numbers to
`.format`
to return
`null`
*
Fix parsing byte string that looks like hex
*
perf: hoist regular expressions
2.
2.0 / 2015-11-13
==================
*
add option "decimalPlaces"
*
add option "fixedDecimals"
2.
1.0 / 2015-05-21
==================
*
add
`.format`
export
*
add
`.parse`
export
2.
0.2 / 2015-05-20
==================
*
remove map recreation
*
remove unnecessary object construction
2.
0.1 / 2015-05-07
==================
*
fix browserify require
*
remove node.extend dependency
2.
0.0 / 2015-04-12
==================
*
add option "case"
*
add option "thousandsSeparator"
*
return "null" on invalid parse input
*
support proper round-trip: bytes(bytes(num)) === num
*
units no longer case sensitive when parsing
1.
0.0 / 2014-05-05
==================
*
add negative support. fixes #6
0.
3.0 / 2014-03-19
==================
*
added terabyte support
0.
2.1 / 2013-04-01
==================
*
add .component
0.
2.0 / 2012-10-28
==================
*
bytes(200).should.eql('200b')
0.
1.0 / 2012-07-04
==================
*
add bytes to string conversion [yields]
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/LICENSE
0 → 100644
View file @
d1b32115
(The MIT License)
Copyright (c) 2012-2014 TJ Holowaychuk <tj@vision-media.ca>
Copyright (c) 2015 Jed Watson <jed.watson@me.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/Readme.md
0 → 100644
View file @
d1b32115
# Bytes utility
[
![NPM Version
][
npm-image
]
][npm-url]
[
![NPM Downloads
][
downloads-image
]
][downloads-url]
[
![Build Status
][
travis-image
]
][travis-url]
[
![Test Coverage
][
coveralls-image
]
][coveralls-url]
Utility to parse a string bytes (ex:
`1TB`
) to bytes (
`1099511627776`
) and vice-versa.
## Installation
This is a
[
Node.js
](
https://nodejs.org/en/
)
module available through the
[
npm registry
](
https://www.npmjs.com/
)
. Installation is done using the
[
`npm install` command
](
https://docs.npmjs.com/getting-started/installing-npm-packages-locally
)
:
```
bash
$
npm
install
bytes
```
## Usage
```
js
var
bytes
=
require
(
'
bytes
'
);
```
#### bytes.format(number value, [options]): string|null
Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is
rounded.
**Arguments**
| Name | Type | Description |
|---------|----------|--------------------|
| value |
`number`
| Value in bytes |
| options |
`Object`
| Conversion options |
**Options**
| Property | Type | Description |
|-------------------|--------|-----------------------------------------------------------------------------------------|
| decimalPlaces |
`number`
|
`null`
| Maximum number of decimal places to include in output. Default value to
`2`
. |
| fixedDecimals |
`boolean`
|
`null`
| Whether to always display the maximum number of decimal places. Default value to
`false`
|
| thousandsSeparator |
`string`
|
`null`
| Example of values:
`' '`
,
`','`
and
`.`
... Default value to
`''`
. |
| unit |
`string`
|
`null`
| The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to
`''`
(which means auto detect). |
| unitSeparator |
`string`
|
`null`
| Separator to use between number and unit. Default value to
`''`
. |
**Returns**
| Name | Type | Description |
|---------|------------------|-------------------------------------------------|
| results |
`string`
|
`null`
| Return null upon error. String value otherwise. |
**Example**
```
js
bytes
(
1024
);
// output: '1KB'
bytes
(
1000
);
// output: '1000B'
bytes
(
1000
,
{
thousandsSeparator
:
'
'
});
// output: '1 000B'
bytes
(
1024
*
1.7
,
{
decimalPlaces
:
0
});
// output: '2KB'
bytes
(
1024
,
{
unitSeparator
:
'
'
});
// output: '1 KB'
```
#### bytes.parse(string|number value): number|null
Parse the string value into an integer in bytes. If no unit is given, or
`value`
is a number, it is assumed the value is in bytes.
Supported units and abbreviations are as follows and are case-insensitive:
*
`b`
for bytes
*
`kb`
for kilobytes
*
`mb`
for megabytes
*
`gb`
for gigabytes
*
`tb`
for terabytes
*
`pb`
for petabytes
The units are in powers of two, not ten. This means 1kb = 1024b according to this parser.
**Arguments**
| Name | Type | Description |
|---------------|--------|--------------------|
| value |
`string`
|
`number`
| String to parse, or number in bytes. |
**Returns**
| Name | Type | Description |
|---------|-------------|-------------------------|
| results |
`number`
|
`null`
| Return null upon error. Value in bytes otherwise. |
**Example**
```
js
bytes
(
'
1KB
'
);
// output: 1024
bytes
(
'
1024
'
);
// output: 1024
bytes
(
1024
);
// output: 1KB
```
## License
[
MIT
](
LICENSE
)
[
coveralls-image
]:
https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master
[
coveralls-url
]:
https://coveralls.io/r/visionmedia/bytes.js?branch=master
[
downloads-image
]:
https://badgen.net/npm/dm/bytes
[
downloads-url
]:
https://npmjs.org/package/bytes
[
npm-image
]:
https://badgen.net/npm/node/bytes
[
npm-url
]:
https://npmjs.org/package/bytes
[
travis-image
]:
https://badgen.net/travis/visionmedia/bytes.js/master
[
travis-url
]:
https://travis-ci.org/visionmedia/bytes.js
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/index.js
0 → 100644
View file @
d1b32115
/*!
* bytes
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015 Jed Watson
* MIT Licensed
*/
'
use strict
'
;
/**
* Module exports.
* @public
*/
module
.
exports
=
bytes
;
module
.
exports
.
format
=
format
;
module
.
exports
.
parse
=
parse
;
/**
* Module variables.
* @private
*/
var
formatThousandsRegExp
=
/
\B(?=(\d{3})
+
(?!\d))
/g
;
var
formatDecimalsRegExp
=
/
(?:\.
0*|
(\.[^
0
]
+
)
0+
)
$/
;
var
map
=
{
b
:
1
,
kb
:
1
<<
10
,
mb
:
1
<<
20
,
gb
:
1
<<
30
,
tb
:
Math
.
pow
(
1024
,
4
),
pb
:
Math
.
pow
(
1024
,
5
),
};
var
parseRegExp
=
/^
((
-|
\+)?(\d
+
(?:\.\d
+
)?))
*
(
kb|mb|gb|tb|pb
)
$/i
;
/**
* Convert the given value in bytes into a string or parse to string to an integer in bytes.
*
* @param {string|number} value
* @param {{
* case: [string],
* decimalPlaces: [number]
* fixedDecimals: [boolean]
* thousandsSeparator: [string]
* unitSeparator: [string]
* }} [options] bytes options.
*
* @returns {string|number|null}
*/
function
bytes
(
value
,
options
)
{
if
(
typeof
value
===
'
string
'
)
{
return
parse
(
value
);
}
if
(
typeof
value
===
'
number
'
)
{
return
format
(
value
,
options
);
}
return
null
;
}
/**
* Format the given value in bytes into a string.
*
* If the value is negative, it is kept as such. If it is a float,
* it is rounded.
*
* @param {number} value
* @param {object} [options]
* @param {number} [options.decimalPlaces=2]
* @param {number} [options.fixedDecimals=false]
* @param {string} [options.thousandsSeparator=]
* @param {string} [options.unit=]
* @param {string} [options.unitSeparator=]
*
* @returns {string|null}
* @public
*/
function
format
(
value
,
options
)
{
if
(
!
Number
.
isFinite
(
value
))
{
return
null
;
}
var
mag
=
Math
.
abs
(
value
);
var
thousandsSeparator
=
(
options
&&
options
.
thousandsSeparator
)
||
''
;
var
unitSeparator
=
(
options
&&
options
.
unitSeparator
)
||
''
;
var
decimalPlaces
=
(
options
&&
options
.
decimalPlaces
!==
undefined
)
?
options
.
decimalPlaces
:
2
;
var
fixedDecimals
=
Boolean
(
options
&&
options
.
fixedDecimals
);
var
unit
=
(
options
&&
options
.
unit
)
||
''
;
if
(
!
unit
||
!
map
[
unit
.
toLowerCase
()])
{
if
(
mag
>=
map
.
pb
)
{
unit
=
'
PB
'
;
}
else
if
(
mag
>=
map
.
tb
)
{
unit
=
'
TB
'
;
}
else
if
(
mag
>=
map
.
gb
)
{
unit
=
'
GB
'
;
}
else
if
(
mag
>=
map
.
mb
)
{
unit
=
'
MB
'
;
}
else
if
(
mag
>=
map
.
kb
)
{
unit
=
'
KB
'
;
}
else
{
unit
=
'
B
'
;
}
}
var
val
=
value
/
map
[
unit
.
toLowerCase
()];
var
str
=
val
.
toFixed
(
decimalPlaces
);
if
(
!
fixedDecimals
)
{
str
=
str
.
replace
(
formatDecimalsRegExp
,
'
$1
'
);
}
if
(
thousandsSeparator
)
{
str
=
str
.
replace
(
formatThousandsRegExp
,
thousandsSeparator
);
}
return
str
+
unitSeparator
+
unit
;
}
/**
* Parse the string value into an integer in bytes.
*
* If no unit is given, it is assumed the value is in bytes.
*
* @param {number|string} val
*
* @returns {number|null}
* @public
*/
function
parse
(
val
)
{
if
(
typeof
val
===
'
number
'
&&
!
isNaN
(
val
))
{
return
val
;
}
if
(
typeof
val
!==
'
string
'
)
{
return
null
;
}
// Test if the string passed is valid
var
results
=
parseRegExp
.
exec
(
val
);
var
floatValue
;
var
unit
=
'
b
'
;
if
(
!
results
)
{
// Nothing could be extracted from the given string
floatValue
=
parseInt
(
val
,
10
);
unit
=
'
b
'
}
else
{
// Retrieve the value and the unit
floatValue
=
parseFloat
(
results
[
1
]);
unit
=
results
[
4
].
toLowerCase
();
}
return
Math
.
floor
(
map
[
unit
]
*
floatValue
);
}
dispatch_module/dispatcher/repository/worker_env/node_modules/bytes/package.json
0 → 100644
View file @
d1b32115
{
"_from"
:
"bytes@3.1.0"
,
"_id"
:
"bytes@3.1.0"
,
"_inBundle"
:
false
,
"_integrity"
:
"sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
,
"_location"
:
"/bytes"
,
"_phantomChildren"
:
{},
"_requested"
:
{
"type"
:
"version"
,
"registry"
:
true
,
"raw"
:
"bytes@3.1.0"
,
"name"
:
"bytes"
,
"escapedName"
:
"bytes"
,
"rawSpec"
:
"3.1.0"
,
"saveSpec"
:
null
,
"fetchSpec"
:
"3.1.0"
},
"_requiredBy"
:
[
"/body-parser"
,
"/raw-body"
],
"_resolved"
:
"https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz"
,
"_shasum"
:
"f6cf7933a360e0588fa9fde85651cdc7f805d1f6"
,
"_spec"
:
"bytes@3.1.0"
,
"_where"
:
"/home/nilanjan/Desktop/serverless/hybrid/dispatch_module/dispatcher/repository/worker_env/node_modules/body-parser"
,
"author"
:
{
"name"
:
"TJ Holowaychuk"
,
"email"
:
"tj@vision-media.ca"
,
"url"
:
"http://tjholowaychuk.com"
},
"bugs"
:
{
"url"
:
"https://github.com/visionmedia/bytes.js/issues"
},
"bundleDependencies"
:
false
,
"contributors"
:
[
{
"name"
:
"Jed Watson"
,
"email"
:
"jed.watson@me.com"
},
{
"name"
:
"Théo FIDRY"
,
"email"
:
"theo.fidry@gmail.com"
}
],
"deprecated"
:
false
,
"description"
:
"Utility to parse a string bytes to bytes and vice-versa"
,
"devDependencies"
:
{
"eslint"
:
"5.12.1"
,
"mocha"
:
"5.2.0"
,
"nyc"
:
"13.1.0"
},
"engines"
:
{
"node"
:
">= 0.8"
},
"files"
:
[
"History.md"
,
"LICENSE"
,
"Readme.md"
,
"index.js"
],
"homepage"
:
"https://github.com/visionmedia/bytes.js#readme"
,
"keywords"
:
[
"byte"
,
"bytes"
,
"utility"
,
"parse"
,
"parser"
,
"convert"
,
"converter"
],
"license"
:
"MIT"
,
"name"
:
"bytes"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/visionmedia/bytes.js.git"
},
"scripts"
:
{
"lint"
:
"eslint ."
,
"test"
:
"mocha --check-leaks --reporter spec"
,
"test-ci"
:
"nyc --reporter=text npm test"
,
"test-cov"
:
"nyc --reporter=html --reporter=text npm test"
},
"version"
:
"3.1.0"
}
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/HISTORY.md
0 → 100644
View file @
d1b32115
0.5.3 / 2018-12-17
==================
*
Use
`safe-buffer`
for improved Buffer API
0.
5.2 / 2016-12-08
==================
*
Fix
`parse`
to accept any linear whitespace character
0.
5.1 / 2016-01-17
==================
*
perf: enable strict mode
0.
5.0 / 2014-10-11
==================
*
Add
`parse`
function
0.
4.0 / 2014-09-21
==================
*
Expand non-Unicode
`filename`
to the full ISO-8859-1 charset
0.
3.0 / 2014-09-20
==================
*
Add
`fallback`
option
*
Add
`type`
option
0.
2.0 / 2014-09-19
==================
*
Reduce ambiguity of file names with hex escape in buggy browsers
0.
1.2 / 2014-09-19
==================
*
Fix periodic invalid Unicode filename header
0.
1.1 / 2014-09-19
==================
*
Fix invalid characters appearing in
`filename*`
parameter
0.
1.0 / 2014-09-18
==================
*
Make the
`filename`
argument optional
0.
0.0 / 2014-09-18
==================
*
Initial release
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/LICENSE
0 → 100644
View file @
d1b32115
(The MIT License)
Copyright (c) 2014-2017 Douglas Christopher Wilson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/README.md
0 → 100644
View file @
d1b32115
# content-disposition
[
![NPM Version
][
npm-image
]
][npm-url]
[
![NPM Downloads
][
downloads-image
]
][downloads-url]
[
![Node.js Version
][
node-version-image
]
][node-version-url]
[
![Build Status
][
travis-image
]
][travis-url]
[
![Test Coverage
][
coveralls-image
]
][coveralls-url]
Create and parse HTTP
`Content-Disposition`
header
## Installation
```
sh
$
npm
install
content-disposition
```
## API
<!-- eslint-disable no-unused-vars -->
```
js
var
contentDisposition
=
require
(
'
content-disposition
'
)
```
### contentDisposition(filename, options)
Create an attachment
`Content-Disposition`
header value using the given file name,
if supplied. The
`filename`
is optional and if no file name is desired, but you
want to specify
`options`
, set
`filename`
to
`undefined`
.
<!-- eslint-disable no-undef -->
```
js
res
.
setHeader
(
'
Content-Disposition
'
,
contentDisposition
(
'
∫ maths.pdf
'
))
```
**note**
HTTP headers are of the ISO-8859-1 character set. If you are writing this
header through a means different from
`setHeader`
in Node.js, you'll want to specify
the
`'binary'`
encoding in Node.js.
#### Options
`contentDisposition`
accepts these properties in the options object.
##### fallback
If the
`filename`
option is outside ISO-8859-1, then the file name is actually
stored in a supplemental field for clients that support Unicode file names and
a ISO-8859-1 version of the file name is automatically generated.
This specifies the ISO-8859-1 file name to override the automatic generation or
disables the generation all together, defaults to
`true`
.
-
A string will specify the ISO-8859-1 file name to use in place of automatic
generation.
-
`false`
will disable including a ISO-8859-1 file name and only include the
Unicode version (unless the file name is already ISO-8859-1).
-
`true`
will enable automatic generation if the file name is outside ISO-8859-1.
If the
`filename`
option is ISO-8859-1 and this option is specified and has a
different value, then the
`filename`
option is encoded in the extended field
and this set as the fallback field, even though they are both ISO-8859-1.
##### type
Specifies the disposition type, defaults to
`"attachment"`
. This can also be
`"inline"`
, or any other value (all values except inline are treated like
`attachment`
, but can convey additional information if both parties agree to
it). The type is normalized to lower-case.
### contentDisposition.parse(string)
<!-- eslint-disable no-undef, no-unused-vars -->
```
js
var
disposition
=
contentDisposition
.
parse
(
'
attachment; filename="EURO rates.txt"; filename*=UTF-8
\'\'
%e2%82%ac%20rates.txt
'
)
```
Parse a
`Content-Disposition`
header string. This automatically handles extended
("Unicode") parameters by decoding them and providing them under the standard
parameter name. This will return an object with the following properties (examples
are shown for the string
`'attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt'`
):
-
`type`
: The disposition type (always lower case). Example:
`'attachment'`
-
`parameters`
: An object of the parameters in the disposition (name of parameter
always lower case and extended versions replace non-extended versions). Example:
`{filename: "€ rates.txt"}`
## Examples
### Send a file for download
```
js
var
contentDisposition
=
require
(
'
content-disposition
'
)
var
destroy
=
require
(
'
destroy
'
)
var
fs
=
require
(
'
fs
'
)
var
http
=
require
(
'
http
'
)
var
onFinished
=
require
(
'
on-finished
'
)
var
filePath
=
'
/path/to/public/plans.pdf
'
http
.
createServer
(
function
onRequest
(
req
,
res
)
{
// set headers
res
.
setHeader
(
'
Content-Type
'
,
'
application/pdf
'
)
res
.
setHeader
(
'
Content-Disposition
'
,
contentDisposition
(
filePath
))
// send file
var
stream
=
fs
.
createReadStream
(
filePath
)
stream
.
pipe
(
res
)
onFinished
(
res
,
function
()
{
destroy
(
stream
)
})
})
```
## Testing
```
sh
$
npm
test
```
## References
-
[
RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1
][
rfc-2616
]
-
[
RFC 5987: Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters
][
rfc-5987
]
-
[
RFC 6266: Use of the Content-Disposition Header Field in the Hypertext Transfer Protocol (HTTP)
][
rfc-6266
]
-
[
Test Cases for HTTP Content-Disposition header field (RFC 6266) and the Encodings defined in RFCs 2047, 2231 and 5987
][
tc-2231
]
[
rfc-2616
]:
https://tools.ietf.org/html/rfc2616
[
rfc-5987
]:
https://tools.ietf.org/html/rfc5987
[
rfc-6266
]:
https://tools.ietf.org/html/rfc6266
[
tc-2231
]:
http://greenbytes.de/tech/tc2231/
## License
[
MIT
](
LICENSE
)
[
npm-image
]:
https://img.shields.io/npm/v/content-disposition.svg
[
npm-url
]:
https://npmjs.org/package/content-disposition
[
node-version-image
]:
https://img.shields.io/node/v/content-disposition.svg
[
node-version-url
]:
https://nodejs.org/en/download
[
travis-image
]:
https://img.shields.io/travis/jshttp/content-disposition.svg
[
travis-url
]:
https://travis-ci.org/jshttp/content-disposition
[
coveralls-image
]:
https://img.shields.io/coveralls/jshttp/content-disposition.svg
[
coveralls-url
]:
https://coveralls.io/r/jshttp/content-disposition?branch=master
[
downloads-image
]:
https://img.shields.io/npm/dm/content-disposition.svg
[
downloads-url
]:
https://npmjs.org/package/content-disposition
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/index.js
0 → 100644
View file @
d1b32115
This diff is collapsed.
Click to expand it.
dispatch_module/dispatcher/repository/worker_env/node_modules/content-disposition/package.json
0 → 100644
View file @
d1b32115
{
"_from"
:
"content-disposition@0.5.3"
,
"_id"
:
"content-disposition@0.5.3"
,
"_inBundle"
:
false
,
"_integrity"
:
"sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g=="
,
"_location"
:
"/content-disposition"
,
"_phantomChildren"
:
{},
"_requested"
:
{
"type"
:
"version"
,
"registry"
:
true
,
"raw"
:
"content-disposition@0.5.3"
,
"name"
:
"content-disposition"
,
"escapedName"
:
"content-disposition"
,
"rawSpec"
:
"0.5.3"
,
"saveSpec"
:
null
,
"fetchSpec"
:
"0.5.3"
},
"_requiredBy"
:
[
"/express"
],
"_resolved"
:
"https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz"
,
"_shasum"
:
"e130caf7e7279087c5616c2007d0485698984fbd"
,
"_spec"
:
"content-disposition@0.5.3"
,
"_where"
:
"/home/nilanjan/Desktop/serverless/hybrid/dispatch_module/dispatcher/repository/worker_env/node_modules/express"
,
"author"
:
{
"name"
:
"Douglas Christopher Wilson"
,
"email"
:
"doug@somethingdoug.com"
},
"bugs"
:
{
"url"
:
"https://github.com/jshttp/content-disposition/issues"
},
"bundleDependencies"
:
false
,
"dependencies"
:
{
"safe-buffer"
:
"5.1.2"
},
"deprecated"
:
false
,
"description"
:
"Create and parse Content-Disposition header"
,
"devDependencies"
:
{
"deep-equal"
:
"1.0.1"
,
"eslint"
:
"5.10.0"
,
"eslint-config-standard"
:
"12.0.0"
,
"eslint-plugin-import"
:
"2.14.0"
,
"eslint-plugin-markdown"
:
"1.0.0-rc.1"
,
"eslint-plugin-node"
:
"7.0.1"
,
"eslint-plugin-promise"
:
"4.0.1"
,
"eslint-plugin-standard"
:
"4.0.0"
,
"istanbul"
:
"0.4.5"
,
"mocha"
:
"5.2.0"
},
"engines"
:
{
"node"
:
">= 0.6"
},
"files"
:
[
"LICENSE"
,
"HISTORY.md"
,
"README.md"
,
"index.js"
],
"homepage"
:
"https://github.com/jshttp/content-disposition#readme"
,
"keywords"
:
[
"content-disposition"
,
"http"
,
"rfc6266"
,
"res"
],
"license"
:
"MIT"
,
"name"
:
"content-disposition"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/jshttp/content-disposition.git"
},
"scripts"
:
{
"lint"
:
"eslint --plugin markdown --ext js,md ."
,
"test"
:
"mocha --reporter spec --bail --check-leaks test/"
,
"test-cov"
:
"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
,
"test-travis"
:
"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
},
"version"
:
"0.5.3"
}
dispatch_module/dispatcher/repository/worker_env/node_modules/content-type/HISTORY.md
0 → 100644
View file @
d1b32115
1.0.4 / 2017-09-11