es6-crawler-detect 3.1.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +2 -1
- package/.eslintignore +6 -0
- package/.eslintrc.json +30 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +11 -8
- package/.github/ISSUE_TEMPLATE/feature_request.md +1 -1
- package/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +29 -0
- package/.prettierrc.json +5 -0
- package/README.md +27 -17
- package/dist/main.bundle.js +1 -1
- package/example/node/dist/crawler.min.js +1 -1
- package/example/node/node_modules/.bin/mime +15 -0
- package/example/node/node_modules/.bin/mime.cmd +7 -0
- package/example/node/node_modules/.yarn-integrity +67 -0
- package/example/node/node_modules/accepts/HISTORY.md +236 -0
- package/example/node/node_modules/accepts/LICENSE +23 -0
- package/example/node/node_modules/accepts/README.md +142 -0
- package/example/node/node_modules/accepts/index.js +238 -0
- package/example/node/node_modules/accepts/package.json +47 -0
- package/example/node/node_modules/array-flatten/LICENSE +21 -0
- package/example/node/node_modules/array-flatten/README.md +43 -0
- package/example/node/node_modules/array-flatten/array-flatten.js +64 -0
- package/example/node/node_modules/array-flatten/package.json +39 -0
- package/example/node/node_modules/body-parser/HISTORY.md +624 -0
- package/example/node/node_modules/body-parser/LICENSE +23 -0
- package/example/node/node_modules/body-parser/README.md +456 -0
- package/example/node/node_modules/body-parser/index.js +157 -0
- package/example/node/node_modules/body-parser/lib/read.js +181 -0
- package/example/node/node_modules/body-parser/lib/types/json.js +230 -0
- package/example/node/node_modules/body-parser/lib/types/raw.js +101 -0
- package/example/node/node_modules/body-parser/lib/types/text.js +121 -0
- package/example/node/node_modules/body-parser/lib/types/urlencoded.js +284 -0
- package/example/node/node_modules/body-parser/package.json +52 -0
- package/example/node/node_modules/bytes/History.md +92 -0
- package/example/node/node_modules/bytes/LICENSE +23 -0
- package/example/node/node_modules/bytes/Readme.md +152 -0
- package/example/node/node_modules/bytes/index.js +166 -0
- package/example/node/node_modules/bytes/package.json +42 -0
- package/example/node/node_modules/content-disposition/HISTORY.md +60 -0
- package/example/node/node_modules/content-disposition/LICENSE +22 -0
- package/example/node/node_modules/content-disposition/README.md +142 -0
- package/example/node/node_modules/content-disposition/index.js +458 -0
- package/example/node/node_modules/content-disposition/package.json +44 -0
- package/example/node/node_modules/content-type/HISTORY.md +24 -0
- package/example/node/node_modules/content-type/LICENSE +22 -0
- package/example/node/node_modules/content-type/README.md +92 -0
- package/example/node/node_modules/content-type/index.js +222 -0
- package/example/node/node_modules/content-type/package.json +40 -0
- package/example/node/node_modules/cookie/HISTORY.md +128 -0
- package/example/node/node_modules/cookie/LICENSE +24 -0
- package/example/node/node_modules/cookie/README.md +257 -0
- package/example/node/node_modules/cookie/index.js +202 -0
- package/example/node/node_modules/cookie/package.json +40 -0
- package/example/node/node_modules/cookie-signature/History.md +38 -0
- package/example/node/node_modules/cookie-signature/Readme.md +42 -0
- package/example/node/node_modules/cookie-signature/index.js +51 -0
- package/example/node/node_modules/cookie-signature/package.json +18 -0
- package/example/node/node_modules/debug/.coveralls.yml +1 -0
- package/example/node/node_modules/debug/.eslintrc +11 -0
- package/example/node/node_modules/debug/.travis.yml +14 -0
- package/example/node/node_modules/debug/CHANGELOG.md +362 -0
- package/example/node/node_modules/debug/LICENSE +19 -0
- package/example/node/node_modules/debug/Makefile +50 -0
- package/example/node/node_modules/debug/README.md +312 -0
- package/example/node/node_modules/debug/component.json +19 -0
- package/example/node/node_modules/debug/karma.conf.js +70 -0
- package/example/node/node_modules/debug/node.js +1 -0
- package/example/node/node_modules/debug/package.json +49 -0
- package/example/node/node_modules/debug/src/browser.js +185 -0
- package/example/node/node_modules/debug/src/debug.js +202 -0
- package/example/node/node_modules/debug/src/index.js +10 -0
- package/example/node/node_modules/debug/src/inspector-log.js +15 -0
- package/example/node/node_modules/debug/src/node.js +248 -0
- package/example/node/node_modules/depd/History.md +96 -0
- package/example/node/node_modules/depd/LICENSE +22 -0
- package/example/node/node_modules/depd/Readme.md +280 -0
- package/example/node/node_modules/depd/index.js +522 -0
- package/example/node/node_modules/depd/lib/browser/index.js +77 -0
- package/example/node/node_modules/depd/lib/compat/callsite-tostring.js +103 -0
- package/example/node/node_modules/depd/lib/compat/event-listener-count.js +22 -0
- package/example/node/node_modules/depd/lib/compat/index.js +79 -0
- package/example/node/node_modules/depd/package.json +41 -0
- package/example/node/node_modules/destroy/LICENSE +22 -0
- package/example/node/node_modules/destroy/README.md +60 -0
- package/example/node/node_modules/destroy/index.js +75 -0
- package/example/node/node_modules/destroy/package.json +37 -0
- package/example/node/node_modules/ee-first/LICENSE +22 -0
- package/example/node/node_modules/ee-first/README.md +80 -0
- package/example/node/node_modules/ee-first/index.js +95 -0
- package/example/node/node_modules/ee-first/package.json +29 -0
- package/example/node/node_modules/encodeurl/HISTORY.md +14 -0
- package/example/node/node_modules/encodeurl/LICENSE +22 -0
- package/example/node/node_modules/encodeurl/README.md +128 -0
- package/example/node/node_modules/encodeurl/index.js +60 -0
- package/example/node/node_modules/encodeurl/package.json +40 -0
- package/example/node/node_modules/escape-html/LICENSE +24 -0
- package/example/node/node_modules/escape-html/Readme.md +43 -0
- package/example/node/node_modules/escape-html/index.js +78 -0
- package/example/node/node_modules/escape-html/package.json +24 -0
- package/example/node/node_modules/etag/HISTORY.md +83 -0
- package/example/node/node_modules/etag/LICENSE +22 -0
- package/example/node/node_modules/etag/README.md +159 -0
- package/example/node/node_modules/etag/index.js +131 -0
- package/example/node/node_modules/etag/package.json +47 -0
- package/example/node/node_modules/express/History.md +3510 -0
- package/example/node/node_modules/express/LICENSE +24 -0
- package/example/node/node_modules/express/Readme.md +158 -0
- package/example/node/node_modules/express/index.js +11 -0
- package/example/node/node_modules/express/lib/application.js +644 -0
- package/example/node/node_modules/express/lib/express.js +116 -0
- package/example/node/node_modules/express/lib/middleware/init.js +43 -0
- package/example/node/node_modules/express/lib/middleware/query.js +47 -0
- package/example/node/node_modules/express/lib/request.js +525 -0
- package/example/node/node_modules/express/lib/response.js +1147 -0
- package/example/node/node_modules/express/lib/router/index.js +668 -0
- package/example/node/node_modules/express/lib/router/layer.js +181 -0
- package/example/node/node_modules/express/lib/router/route.js +216 -0
- package/example/node/node_modules/express/lib/utils.js +302 -0
- package/example/node/node_modules/express/lib/view.js +182 -0
- package/example/node/node_modules/express/package.json +99 -0
- package/example/node/node_modules/finalhandler/HISTORY.md +187 -0
- package/example/node/node_modules/finalhandler/LICENSE +22 -0
- package/example/node/node_modules/finalhandler/README.md +148 -0
- package/example/node/node_modules/finalhandler/index.js +331 -0
- package/example/node/node_modules/finalhandler/package.json +45 -0
- package/example/node/node_modules/forwarded/HISTORY.md +21 -0
- package/example/node/node_modules/forwarded/LICENSE +22 -0
- package/example/node/node_modules/forwarded/README.md +57 -0
- package/example/node/node_modules/forwarded/index.js +90 -0
- package/example/node/node_modules/forwarded/package.json +45 -0
- package/example/node/node_modules/fresh/HISTORY.md +70 -0
- package/example/node/node_modules/fresh/LICENSE +23 -0
- package/example/node/node_modules/fresh/README.md +119 -0
- package/example/node/node_modules/fresh/index.js +137 -0
- package/example/node/node_modules/fresh/package.json +46 -0
- package/example/node/node_modules/http-errors/HISTORY.md +165 -0
- package/example/node/node_modules/http-errors/LICENSE +23 -0
- package/example/node/node_modules/http-errors/README.md +169 -0
- package/example/node/node_modules/http-errors/index.js +299 -0
- package/example/node/node_modules/http-errors/package.json +49 -0
- package/example/node/node_modules/iconv-lite/Changelog.md +162 -0
- package/example/node/node_modules/iconv-lite/LICENSE +21 -0
- package/example/node/node_modules/iconv-lite/README.md +156 -0
- package/example/node/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/example/node/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/example/node/node_modules/iconv-lite/encodings/index.js +22 -0
- package/example/node/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/example/node/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/example/node/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/example/node/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/example/node/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/example/node/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/example/node/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/example/node/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/example/node/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/example/node/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/example/node/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/example/node/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/example/node/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/example/node/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/example/node/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/example/node/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/example/node/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/example/node/node_modules/iconv-lite/lib/index.js +153 -0
- package/example/node/node_modules/iconv-lite/lib/streams.js +121 -0
- package/example/node/node_modules/iconv-lite/package.json +46 -0
- package/example/node/node_modules/inherits/LICENSE +16 -0
- package/example/node/node_modules/inherits/README.md +42 -0
- package/example/node/node_modules/inherits/inherits.js +9 -0
- package/example/node/node_modules/inherits/inherits_browser.js +27 -0
- package/example/node/node_modules/inherits/package.json +29 -0
- package/example/node/node_modules/ipaddr.js/LICENSE +19 -0
- package/example/node/node_modules/ipaddr.js/README.md +233 -0
- package/example/node/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/example/node/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/example/node/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/example/node/node_modules/ipaddr.js/package.json +35 -0
- package/example/node/node_modules/media-typer/HISTORY.md +22 -0
- package/example/node/node_modules/media-typer/LICENSE +22 -0
- package/example/node/node_modules/media-typer/README.md +81 -0
- package/example/node/node_modules/media-typer/index.js +270 -0
- package/example/node/node_modules/media-typer/package.json +26 -0
- package/example/node/node_modules/merge-descriptors/HISTORY.md +21 -0
- package/example/node/node_modules/merge-descriptors/LICENSE +23 -0
- package/example/node/node_modules/merge-descriptors/README.md +48 -0
- package/example/node/node_modules/merge-descriptors/index.js +60 -0
- package/example/node/node_modules/merge-descriptors/package.json +32 -0
- package/example/node/node_modules/methods/HISTORY.md +29 -0
- package/example/node/node_modules/methods/LICENSE +24 -0
- package/example/node/node_modules/methods/README.md +51 -0
- package/example/node/node_modules/methods/index.js +69 -0
- package/example/node/node_modules/methods/package.json +36 -0
- package/example/node/node_modules/mime/CHANGELOG.md +164 -0
- package/example/node/node_modules/mime/LICENSE +21 -0
- package/example/node/node_modules/mime/README.md +90 -0
- package/example/node/node_modules/mime/cli.js +8 -0
- package/example/node/node_modules/mime/mime.js +108 -0
- package/example/node/node_modules/mime/package.json +44 -0
- package/example/node/node_modules/mime/src/build.js +53 -0
- package/example/node/node_modules/mime/src/test.js +60 -0
- package/example/node/node_modules/mime/types.json +1 -0
- package/example/node/node_modules/mime-db/HISTORY.md +499 -0
- package/example/node/node_modules/mime-db/LICENSE +22 -0
- package/example/node/node_modules/mime-db/README.md +100 -0
- package/example/node/node_modules/mime-db/db.json +8471 -0
- package/example/node/node_modules/mime-db/index.js +11 -0
- package/example/node/node_modules/mime-db/package.json +59 -0
- package/example/node/node_modules/mime-types/HISTORY.md +388 -0
- package/example/node/node_modules/mime-types/LICENSE +23 -0
- package/example/node/node_modules/mime-types/README.md +113 -0
- package/example/node/node_modules/mime-types/index.js +188 -0
- package/example/node/node_modules/mime-types/package.json +44 -0
- package/example/node/node_modules/ms/index.js +152 -0
- package/example/node/node_modules/ms/license.md +21 -0
- package/example/node/node_modules/ms/package.json +37 -0
- package/example/node/node_modules/ms/readme.md +51 -0
- package/example/node/node_modules/negotiator/HISTORY.md +103 -0
- package/example/node/node_modules/negotiator/LICENSE +24 -0
- package/example/node/node_modules/negotiator/README.md +203 -0
- package/example/node/node_modules/negotiator/index.js +124 -0
- package/example/node/node_modules/negotiator/lib/charset.js +169 -0
- package/example/node/node_modules/negotiator/lib/encoding.js +184 -0
- package/example/node/node_modules/negotiator/lib/language.js +179 -0
- package/example/node/node_modules/negotiator/lib/mediaType.js +294 -0
- package/example/node/node_modules/negotiator/package.json +42 -0
- package/example/node/node_modules/on-finished/HISTORY.md +88 -0
- package/example/node/node_modules/on-finished/LICENSE +23 -0
- package/example/node/node_modules/on-finished/README.md +154 -0
- package/example/node/node_modules/on-finished/index.js +196 -0
- package/example/node/node_modules/on-finished/package.json +31 -0
- package/example/node/node_modules/parseurl/HISTORY.md +58 -0
- package/example/node/node_modules/parseurl/LICENSE +24 -0
- package/example/node/node_modules/parseurl/README.md +133 -0
- package/example/node/node_modules/parseurl/index.js +158 -0
- package/example/node/node_modules/parseurl/package.json +40 -0
- package/example/node/node_modules/path-to-regexp/History.md +36 -0
- package/example/node/node_modules/path-to-regexp/LICENSE +21 -0
- package/example/node/node_modules/path-to-regexp/Readme.md +35 -0
- package/example/node/node_modules/path-to-regexp/index.js +129 -0
- package/example/node/node_modules/path-to-regexp/package.json +30 -0
- package/example/node/node_modules/proxy-addr/HISTORY.md +161 -0
- package/example/node/node_modules/proxy-addr/LICENSE +22 -0
- package/example/node/node_modules/proxy-addr/README.md +139 -0
- package/example/node/node_modules/proxy-addr/index.js +327 -0
- package/example/node/node_modules/proxy-addr/package.json +47 -0
- package/example/node/node_modules/qs/.editorconfig +39 -0
- package/example/node/node_modules/qs/.eslintignore +2 -0
- package/example/node/node_modules/qs/.eslintrc +35 -0
- package/example/node/node_modules/qs/.github/FUNDING.yml +12 -0
- package/example/node/node_modules/qs/.nycrc +13 -0
- package/example/node/node_modules/qs/CHANGELOG.md +359 -0
- package/example/node/node_modules/qs/LICENSE.md +29 -0
- package/example/node/node_modules/qs/README.md +604 -0
- package/example/node/node_modules/qs/dist/qs.js +832 -0
- package/example/node/node_modules/qs/lib/formats.js +23 -0
- package/example/node/node_modules/qs/lib/index.js +11 -0
- package/example/node/node_modules/qs/lib/parse.js +257 -0
- package/example/node/node_modules/qs/lib/stringify.js +278 -0
- package/example/node/node_modules/qs/lib/utils.js +251 -0
- package/example/node/node_modules/qs/package.json +69 -0
- package/example/node/node_modules/qs/test/parse.js +772 -0
- package/example/node/node_modules/qs/test/stringify.js +793 -0
- package/example/node/node_modules/qs/test/utils.js +136 -0
- package/example/node/node_modules/range-parser/HISTORY.md +56 -0
- package/example/node/node_modules/range-parser/LICENSE +23 -0
- package/example/node/node_modules/range-parser/README.md +84 -0
- package/example/node/node_modules/range-parser/index.js +162 -0
- package/example/node/node_modules/range-parser/package.json +44 -0
- package/example/node/node_modules/raw-body/HISTORY.md +284 -0
- package/example/node/node_modules/raw-body/LICENSE +22 -0
- package/example/node/node_modules/raw-body/README.md +217 -0
- package/example/node/node_modules/raw-body/index.d.ts +87 -0
- package/example/node/node_modules/raw-body/index.js +286 -0
- package/example/node/node_modules/raw-body/package.json +48 -0
- package/example/node/node_modules/safe-buffer/LICENSE +21 -0
- package/example/node/node_modules/safe-buffer/README.md +584 -0
- package/example/node/node_modules/safe-buffer/index.d.ts +187 -0
- package/example/node/node_modules/safe-buffer/index.js +65 -0
- package/example/node/node_modules/safe-buffer/package.json +51 -0
- package/example/node/node_modules/safer-buffer/LICENSE +21 -0
- package/example/node/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/example/node/node_modules/safer-buffer/Readme.md +156 -0
- package/example/node/node_modules/safer-buffer/dangerous.js +58 -0
- package/example/node/node_modules/safer-buffer/package.json +34 -0
- package/example/node/node_modules/safer-buffer/safer.js +77 -0
- package/example/node/node_modules/safer-buffer/tests.js +406 -0
- package/example/node/node_modules/send/HISTORY.md +506 -0
- package/example/node/node_modules/send/LICENSE +23 -0
- package/example/node/node_modules/send/README.md +327 -0
- package/example/node/node_modules/send/index.js +1133 -0
- package/example/node/node_modules/send/node_modules/.bin/mime +15 -0
- package/example/node/node_modules/send/node_modules/.bin/mime.cmd +7 -0
- package/example/node/node_modules/send/node_modules/ms/index.js +162 -0
- package/example/node/node_modules/send/node_modules/ms/license.md +21 -0
- package/example/node/node_modules/send/node_modules/ms/package.json +38 -0
- package/example/node/node_modules/send/node_modules/ms/readme.md +59 -0
- package/example/node/node_modules/send/package.json +61 -0
- package/example/node/node_modules/serve-static/HISTORY.md +459 -0
- package/example/node/node_modules/serve-static/LICENSE +25 -0
- package/example/node/node_modules/serve-static/README.md +257 -0
- package/example/node/node_modules/serve-static/index.js +210 -0
- package/example/node/node_modules/serve-static/package.json +42 -0
- package/example/node/node_modules/setprototypeof/LICENSE +13 -0
- package/example/node/node_modules/setprototypeof/README.md +31 -0
- package/example/node/node_modules/setprototypeof/index.d.ts +2 -0
- package/example/node/node_modules/setprototypeof/index.js +17 -0
- package/example/node/node_modules/setprototypeof/package.json +38 -0
- package/example/node/node_modules/setprototypeof/test/index.js +24 -0
- package/example/node/node_modules/statuses/HISTORY.md +65 -0
- package/example/node/node_modules/statuses/LICENSE +23 -0
- package/example/node/node_modules/statuses/README.md +127 -0
- package/example/node/node_modules/statuses/codes.json +66 -0
- package/example/node/node_modules/statuses/index.js +113 -0
- package/example/node/node_modules/statuses/package.json +48 -0
- package/example/node/node_modules/toidentifier/HISTORY.md +9 -0
- package/example/node/node_modules/toidentifier/LICENSE +21 -0
- package/example/node/node_modules/toidentifier/README.md +61 -0
- package/example/node/node_modules/toidentifier/index.js +32 -0
- package/example/node/node_modules/toidentifier/package.json +38 -0
- package/example/node/node_modules/type-is/HISTORY.md +259 -0
- package/example/node/node_modules/type-is/LICENSE +23 -0
- package/example/node/node_modules/type-is/README.md +170 -0
- package/example/node/node_modules/type-is/index.js +266 -0
- package/example/node/node_modules/type-is/package.json +45 -0
- package/example/node/node_modules/unpipe/HISTORY.md +4 -0
- package/example/node/node_modules/unpipe/LICENSE +22 -0
- package/example/node/node_modules/unpipe/README.md +43 -0
- package/example/node/node_modules/unpipe/index.js +69 -0
- package/example/node/node_modules/unpipe/package.json +27 -0
- package/example/node/node_modules/utils-merge/LICENSE +20 -0
- package/example/node/node_modules/utils-merge/README.md +34 -0
- package/example/node/node_modules/utils-merge/index.js +23 -0
- package/example/node/node_modules/utils-merge/package.json +40 -0
- package/example/node/node_modules/vary/HISTORY.md +39 -0
- package/example/node/node_modules/vary/LICENSE +22 -0
- package/example/node/node_modules/vary/README.md +101 -0
- package/example/node/node_modules/vary/index.js +149 -0
- package/example/node/node_modules/vary/package.json +43 -0
- package/example/node/package.json +11 -0
- package/example/node/server.js +27 -15
- package/example/node/yarn.lock +352 -0
- package/package.json +29 -18
- package/src/index.js +16 -10
- package/src/lib/crawler/crawlers.js +1399 -11
- package/src/lib/crawler/exclusions.js +56 -9
- package/src/lib/crawler/headers.js +24 -15
- package/src/lib/crawler/provider.js +11 -13
- package/src/lib/crawler.js +123 -132
- package/test/lib/crawler.test.js +83 -24
- package/test/lib/database/crawlers.txt +3651 -0
- package/test/lib/database/devices.txt +165636 -0
- package/webpack.common.js +20 -20
- package/webpack.dev.js +7 -7
- package/webpack.prod.js +14 -15
@@ -0,0 +1,79 @@
|
|
1
|
+
/*!
|
2
|
+
* depd
|
3
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
4
|
+
* MIT Licensed
|
5
|
+
*/
|
6
|
+
|
7
|
+
'use strict'
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Module dependencies.
|
11
|
+
* @private
|
12
|
+
*/
|
13
|
+
|
14
|
+
var EventEmitter = require('events').EventEmitter
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Module exports.
|
18
|
+
* @public
|
19
|
+
*/
|
20
|
+
|
21
|
+
lazyProperty(module.exports, 'callSiteToString', function callSiteToString () {
|
22
|
+
var limit = Error.stackTraceLimit
|
23
|
+
var obj = {}
|
24
|
+
var prep = Error.prepareStackTrace
|
25
|
+
|
26
|
+
function prepareObjectStackTrace (obj, stack) {
|
27
|
+
return stack
|
28
|
+
}
|
29
|
+
|
30
|
+
Error.prepareStackTrace = prepareObjectStackTrace
|
31
|
+
Error.stackTraceLimit = 2
|
32
|
+
|
33
|
+
// capture the stack
|
34
|
+
Error.captureStackTrace(obj)
|
35
|
+
|
36
|
+
// slice the stack
|
37
|
+
var stack = obj.stack.slice()
|
38
|
+
|
39
|
+
Error.prepareStackTrace = prep
|
40
|
+
Error.stackTraceLimit = limit
|
41
|
+
|
42
|
+
return stack[0].toString ? toString : require('./callsite-tostring')
|
43
|
+
})
|
44
|
+
|
45
|
+
lazyProperty(module.exports, 'eventListenerCount', function eventListenerCount () {
|
46
|
+
return EventEmitter.listenerCount || require('./event-listener-count')
|
47
|
+
})
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Define a lazy property.
|
51
|
+
*/
|
52
|
+
|
53
|
+
function lazyProperty (obj, prop, getter) {
|
54
|
+
function get () {
|
55
|
+
var val = getter()
|
56
|
+
|
57
|
+
Object.defineProperty(obj, prop, {
|
58
|
+
configurable: true,
|
59
|
+
enumerable: true,
|
60
|
+
value: val
|
61
|
+
})
|
62
|
+
|
63
|
+
return val
|
64
|
+
}
|
65
|
+
|
66
|
+
Object.defineProperty(obj, prop, {
|
67
|
+
configurable: true,
|
68
|
+
enumerable: true,
|
69
|
+
get: get
|
70
|
+
})
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Call toString() on the obj
|
75
|
+
*/
|
76
|
+
|
77
|
+
function toString (obj) {
|
78
|
+
return obj.toString()
|
79
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
{
|
2
|
+
"name": "depd",
|
3
|
+
"description": "Deprecate all the things",
|
4
|
+
"version": "1.1.2",
|
5
|
+
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
|
6
|
+
"license": "MIT",
|
7
|
+
"keywords": [
|
8
|
+
"deprecate",
|
9
|
+
"deprecated"
|
10
|
+
],
|
11
|
+
"repository": "dougwilson/nodejs-depd",
|
12
|
+
"browser": "lib/browser/index.js",
|
13
|
+
"devDependencies": {
|
14
|
+
"benchmark": "2.1.4",
|
15
|
+
"beautify-benchmark": "0.2.4",
|
16
|
+
"eslint": "3.19.0",
|
17
|
+
"eslint-config-standard": "7.1.0",
|
18
|
+
"eslint-plugin-markdown": "1.0.0-beta.7",
|
19
|
+
"eslint-plugin-promise": "3.6.0",
|
20
|
+
"eslint-plugin-standard": "3.0.1",
|
21
|
+
"istanbul": "0.4.5",
|
22
|
+
"mocha": "~1.21.5"
|
23
|
+
},
|
24
|
+
"files": [
|
25
|
+
"lib/",
|
26
|
+
"History.md",
|
27
|
+
"LICENSE",
|
28
|
+
"index.js",
|
29
|
+
"Readme.md"
|
30
|
+
],
|
31
|
+
"engines": {
|
32
|
+
"node": ">= 0.6"
|
33
|
+
},
|
34
|
+
"scripts": {
|
35
|
+
"bench": "node benchmark/index.js",
|
36
|
+
"lint": "eslint --plugin markdown --ext js,md .",
|
37
|
+
"test": "mocha --reporter spec --bail test/",
|
38
|
+
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --no-exit test/",
|
39
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/"
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
The MIT License (MIT)
|
3
|
+
|
4
|
+
Copyright (c) 2014 Jonathan Ong me@jongleberry.com
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Destroy
|
2
|
+
|
3
|
+
[![NPM version][npm-image]][npm-url]
|
4
|
+
[![Build status][travis-image]][travis-url]
|
5
|
+
[![Test coverage][coveralls-image]][coveralls-url]
|
6
|
+
[![License][license-image]][license-url]
|
7
|
+
[![Downloads][downloads-image]][downloads-url]
|
8
|
+
[![Gittip][gittip-image]][gittip-url]
|
9
|
+
|
10
|
+
Destroy a stream.
|
11
|
+
|
12
|
+
This module is meant to ensure a stream gets destroyed, handling different APIs
|
13
|
+
and Node.js bugs.
|
14
|
+
|
15
|
+
## API
|
16
|
+
|
17
|
+
```js
|
18
|
+
var destroy = require('destroy')
|
19
|
+
```
|
20
|
+
|
21
|
+
### destroy(stream)
|
22
|
+
|
23
|
+
Destroy the given stream. In most cases, this is identical to a simple
|
24
|
+
`stream.destroy()` call. The rules are as follows for a given stream:
|
25
|
+
|
26
|
+
1. If the `stream` is an instance of `ReadStream`, then call `stream.destroy()`
|
27
|
+
and add a listener to the `open` event to call `stream.close()` if it is
|
28
|
+
fired. This is for a Node.js bug that will leak a file descriptor if
|
29
|
+
`.destroy()` is called before `open`.
|
30
|
+
2. If the `stream` is not an instance of `Stream`, then nothing happens.
|
31
|
+
3. If the `stream` has a `.destroy()` method, then call it.
|
32
|
+
|
33
|
+
The function returns the `stream` passed in as the argument.
|
34
|
+
|
35
|
+
## Example
|
36
|
+
|
37
|
+
```js
|
38
|
+
var destroy = require('destroy')
|
39
|
+
|
40
|
+
var fs = require('fs')
|
41
|
+
var stream = fs.createReadStream('package.json')
|
42
|
+
|
43
|
+
// ... and later
|
44
|
+
destroy(stream)
|
45
|
+
```
|
46
|
+
|
47
|
+
[npm-image]: https://img.shields.io/npm/v/destroy.svg?style=flat-square
|
48
|
+
[npm-url]: https://npmjs.org/package/destroy
|
49
|
+
[github-tag]: http://img.shields.io/github/tag/stream-utils/destroy.svg?style=flat-square
|
50
|
+
[github-url]: https://github.com/stream-utils/destroy/tags
|
51
|
+
[travis-image]: https://img.shields.io/travis/stream-utils/destroy.svg?style=flat-square
|
52
|
+
[travis-url]: https://travis-ci.org/stream-utils/destroy
|
53
|
+
[coveralls-image]: https://img.shields.io/coveralls/stream-utils/destroy.svg?style=flat-square
|
54
|
+
[coveralls-url]: https://coveralls.io/r/stream-utils/destroy?branch=master
|
55
|
+
[license-image]: http://img.shields.io/npm/l/destroy.svg?style=flat-square
|
56
|
+
[license-url]: LICENSE.md
|
57
|
+
[downloads-image]: http://img.shields.io/npm/dm/destroy.svg?style=flat-square
|
58
|
+
[downloads-url]: https://npmjs.org/package/destroy
|
59
|
+
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
|
60
|
+
[gittip-url]: https://www.gittip.com/jonathanong/
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/*!
|
2
|
+
* destroy
|
3
|
+
* Copyright(c) 2014 Jonathan Ong
|
4
|
+
* MIT Licensed
|
5
|
+
*/
|
6
|
+
|
7
|
+
'use strict'
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Module dependencies.
|
11
|
+
* @private
|
12
|
+
*/
|
13
|
+
|
14
|
+
var ReadStream = require('fs').ReadStream
|
15
|
+
var Stream = require('stream')
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Module exports.
|
19
|
+
* @public
|
20
|
+
*/
|
21
|
+
|
22
|
+
module.exports = destroy
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Destroy a stream.
|
26
|
+
*
|
27
|
+
* @param {object} stream
|
28
|
+
* @public
|
29
|
+
*/
|
30
|
+
|
31
|
+
function destroy(stream) {
|
32
|
+
if (stream instanceof ReadStream) {
|
33
|
+
return destroyReadStream(stream)
|
34
|
+
}
|
35
|
+
|
36
|
+
if (!(stream instanceof Stream)) {
|
37
|
+
return stream
|
38
|
+
}
|
39
|
+
|
40
|
+
if (typeof stream.destroy === 'function') {
|
41
|
+
stream.destroy()
|
42
|
+
}
|
43
|
+
|
44
|
+
return stream
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Destroy a ReadStream.
|
49
|
+
*
|
50
|
+
* @param {object} stream
|
51
|
+
* @private
|
52
|
+
*/
|
53
|
+
|
54
|
+
function destroyReadStream(stream) {
|
55
|
+
stream.destroy()
|
56
|
+
|
57
|
+
if (typeof stream.close === 'function') {
|
58
|
+
// node.js core bug work-around
|
59
|
+
stream.on('open', onOpenClose)
|
60
|
+
}
|
61
|
+
|
62
|
+
return stream
|
63
|
+
}
|
64
|
+
|
65
|
+
/**
|
66
|
+
* On open handler to close stream.
|
67
|
+
* @private
|
68
|
+
*/
|
69
|
+
|
70
|
+
function onOpenClose() {
|
71
|
+
if (typeof this.fd === 'number') {
|
72
|
+
// actually close down the fd
|
73
|
+
this.close()
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"name": "destroy",
|
3
|
+
"description": "destroy a stream if possible",
|
4
|
+
"version": "1.0.4",
|
5
|
+
"author": {
|
6
|
+
"name": "Jonathan Ong",
|
7
|
+
"email": "me@jongleberry.com",
|
8
|
+
"url": "http://jongleberry.com",
|
9
|
+
"twitter": "https://twitter.com/jongleberry"
|
10
|
+
},
|
11
|
+
"contributors": [
|
12
|
+
"Douglas Christopher Wilson <doug@somethingdoug.com>"
|
13
|
+
],
|
14
|
+
"license": "MIT",
|
15
|
+
"repository": "stream-utils/destroy",
|
16
|
+
"devDependencies": {
|
17
|
+
"istanbul": "0.4.2",
|
18
|
+
"mocha": "2.3.4"
|
19
|
+
},
|
20
|
+
"scripts": {
|
21
|
+
"test": "mocha --reporter spec",
|
22
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
|
23
|
+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
|
24
|
+
},
|
25
|
+
"files": [
|
26
|
+
"index.js",
|
27
|
+
"LICENSE"
|
28
|
+
],
|
29
|
+
"keywords": [
|
30
|
+
"stream",
|
31
|
+
"streams",
|
32
|
+
"destroy",
|
33
|
+
"cleanup",
|
34
|
+
"leak",
|
35
|
+
"fd"
|
36
|
+
]
|
37
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
The MIT License (MIT)
|
3
|
+
|
4
|
+
Copyright (c) 2014 Jonathan Ong me@jongleberry.com
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
@@ -0,0 +1,80 @@
|
|
1
|
+
# EE First
|
2
|
+
|
3
|
+
[![NPM version][npm-image]][npm-url]
|
4
|
+
[![Build status][travis-image]][travis-url]
|
5
|
+
[![Test coverage][coveralls-image]][coveralls-url]
|
6
|
+
[![License][license-image]][license-url]
|
7
|
+
[![Downloads][downloads-image]][downloads-url]
|
8
|
+
[![Gittip][gittip-image]][gittip-url]
|
9
|
+
|
10
|
+
Get the first event in a set of event emitters and event pairs,
|
11
|
+
then clean up after itself.
|
12
|
+
|
13
|
+
## Install
|
14
|
+
|
15
|
+
```sh
|
16
|
+
$ npm install ee-first
|
17
|
+
```
|
18
|
+
|
19
|
+
## API
|
20
|
+
|
21
|
+
```js
|
22
|
+
var first = require('ee-first')
|
23
|
+
```
|
24
|
+
|
25
|
+
### first(arr, listener)
|
26
|
+
|
27
|
+
Invoke `listener` on the first event from the list specified in `arr`. `arr` is
|
28
|
+
an array of arrays, with each array in the format `[ee, ...event]`. `listener`
|
29
|
+
will be called only once, the first time any of the given events are emitted. If
|
30
|
+
`error` is one of the listened events, then if that fires first, the `listener`
|
31
|
+
will be given the `err` argument.
|
32
|
+
|
33
|
+
The `listener` is invoked as `listener(err, ee, event, args)`, where `err` is the
|
34
|
+
first argument emitted from an `error` event, if applicable; `ee` is the event
|
35
|
+
emitter that fired; `event` is the string event name that fired; and `args` is an
|
36
|
+
array of the arguments that were emitted on the event.
|
37
|
+
|
38
|
+
```js
|
39
|
+
var ee1 = new EventEmitter()
|
40
|
+
var ee2 = new EventEmitter()
|
41
|
+
|
42
|
+
first([
|
43
|
+
[ee1, 'close', 'end', 'error'],
|
44
|
+
[ee2, 'error']
|
45
|
+
], function (err, ee, event, args) {
|
46
|
+
// listener invoked
|
47
|
+
})
|
48
|
+
```
|
49
|
+
|
50
|
+
#### .cancel()
|
51
|
+
|
52
|
+
The group of listeners can be cancelled before being invoked and have all the event
|
53
|
+
listeners removed from the underlying event emitters.
|
54
|
+
|
55
|
+
```js
|
56
|
+
var thunk = first([
|
57
|
+
[ee1, 'close', 'end', 'error'],
|
58
|
+
[ee2, 'error']
|
59
|
+
], function (err, ee, event, args) {
|
60
|
+
// listener invoked
|
61
|
+
})
|
62
|
+
|
63
|
+
// cancel and clean up
|
64
|
+
thunk.cancel()
|
65
|
+
```
|
66
|
+
|
67
|
+
[npm-image]: https://img.shields.io/npm/v/ee-first.svg?style=flat-square
|
68
|
+
[npm-url]: https://npmjs.org/package/ee-first
|
69
|
+
[github-tag]: http://img.shields.io/github/tag/jonathanong/ee-first.svg?style=flat-square
|
70
|
+
[github-url]: https://github.com/jonathanong/ee-first/tags
|
71
|
+
[travis-image]: https://img.shields.io/travis/jonathanong/ee-first.svg?style=flat-square
|
72
|
+
[travis-url]: https://travis-ci.org/jonathanong/ee-first
|
73
|
+
[coveralls-image]: https://img.shields.io/coveralls/jonathanong/ee-first.svg?style=flat-square
|
74
|
+
[coveralls-url]: https://coveralls.io/r/jonathanong/ee-first?branch=master
|
75
|
+
[license-image]: http://img.shields.io/npm/l/ee-first.svg?style=flat-square
|
76
|
+
[license-url]: LICENSE.md
|
77
|
+
[downloads-image]: http://img.shields.io/npm/dm/ee-first.svg?style=flat-square
|
78
|
+
[downloads-url]: https://npmjs.org/package/ee-first
|
79
|
+
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
|
80
|
+
[gittip-url]: https://www.gittip.com/jonathanong/
|
@@ -0,0 +1,95 @@
|
|
1
|
+
/*!
|
2
|
+
* ee-first
|
3
|
+
* Copyright(c) 2014 Jonathan Ong
|
4
|
+
* MIT Licensed
|
5
|
+
*/
|
6
|
+
|
7
|
+
'use strict'
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Module exports.
|
11
|
+
* @public
|
12
|
+
*/
|
13
|
+
|
14
|
+
module.exports = first
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Get the first event in a set of event emitters and event pairs.
|
18
|
+
*
|
19
|
+
* @param {array} stuff
|
20
|
+
* @param {function} done
|
21
|
+
* @public
|
22
|
+
*/
|
23
|
+
|
24
|
+
function first(stuff, done) {
|
25
|
+
if (!Array.isArray(stuff))
|
26
|
+
throw new TypeError('arg must be an array of [ee, events...] arrays')
|
27
|
+
|
28
|
+
var cleanups = []
|
29
|
+
|
30
|
+
for (var i = 0; i < stuff.length; i++) {
|
31
|
+
var arr = stuff[i]
|
32
|
+
|
33
|
+
if (!Array.isArray(arr) || arr.length < 2)
|
34
|
+
throw new TypeError('each array member must be [ee, events...]')
|
35
|
+
|
36
|
+
var ee = arr[0]
|
37
|
+
|
38
|
+
for (var j = 1; j < arr.length; j++) {
|
39
|
+
var event = arr[j]
|
40
|
+
var fn = listener(event, callback)
|
41
|
+
|
42
|
+
// listen to the event
|
43
|
+
ee.on(event, fn)
|
44
|
+
// push this listener to the list of cleanups
|
45
|
+
cleanups.push({
|
46
|
+
ee: ee,
|
47
|
+
event: event,
|
48
|
+
fn: fn,
|
49
|
+
})
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
function callback() {
|
54
|
+
cleanup()
|
55
|
+
done.apply(null, arguments)
|
56
|
+
}
|
57
|
+
|
58
|
+
function cleanup() {
|
59
|
+
var x
|
60
|
+
for (var i = 0; i < cleanups.length; i++) {
|
61
|
+
x = cleanups[i]
|
62
|
+
x.ee.removeListener(x.event, x.fn)
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
function thunk(fn) {
|
67
|
+
done = fn
|
68
|
+
}
|
69
|
+
|
70
|
+
thunk.cancel = cleanup
|
71
|
+
|
72
|
+
return thunk
|
73
|
+
}
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Create the event listener.
|
77
|
+
* @private
|
78
|
+
*/
|
79
|
+
|
80
|
+
function listener(event, done) {
|
81
|
+
return function onevent(arg1) {
|
82
|
+
var args = new Array(arguments.length)
|
83
|
+
var ee = this
|
84
|
+
var err = event === 'error'
|
85
|
+
? arg1
|
86
|
+
: null
|
87
|
+
|
88
|
+
// copy args to prevent arguments escaping scope
|
89
|
+
for (var i = 0; i < args.length; i++) {
|
90
|
+
args[i] = arguments[i]
|
91
|
+
}
|
92
|
+
|
93
|
+
done(err, ee, event, args)
|
94
|
+
}
|
95
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"name": "ee-first",
|
3
|
+
"description": "return the first event in a set of ee/event pairs",
|
4
|
+
"version": "1.1.1",
|
5
|
+
"author": {
|
6
|
+
"name": "Jonathan Ong",
|
7
|
+
"email": "me@jongleberry.com",
|
8
|
+
"url": "http://jongleberry.com",
|
9
|
+
"twitter": "https://twitter.com/jongleberry"
|
10
|
+
},
|
11
|
+
"contributors": [
|
12
|
+
"Douglas Christopher Wilson <doug@somethingdoug.com>"
|
13
|
+
],
|
14
|
+
"license": "MIT",
|
15
|
+
"repository": "jonathanong/ee-first",
|
16
|
+
"devDependencies": {
|
17
|
+
"istanbul": "0.3.9",
|
18
|
+
"mocha": "2.2.5"
|
19
|
+
},
|
20
|
+
"files": [
|
21
|
+
"index.js",
|
22
|
+
"LICENSE"
|
23
|
+
],
|
24
|
+
"scripts": {
|
25
|
+
"test": "mocha --reporter spec --bail --check-leaks test/",
|
26
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
|
27
|
+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
1.0.2 / 2018-01-21
|
2
|
+
==================
|
3
|
+
|
4
|
+
* Fix encoding `%` as last character
|
5
|
+
|
6
|
+
1.0.1 / 2016-06-09
|
7
|
+
==================
|
8
|
+
|
9
|
+
* Fix encoding unpaired surrogates at start/end of string
|
10
|
+
|
11
|
+
1.0.0 / 2016-06-08
|
12
|
+
==================
|
13
|
+
|
14
|
+
* Initial release
|
@@ -0,0 +1,22 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Douglas Christopher Wilson
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|