ai 1.1.0 → 2.0.1
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/LICENSE +10 -24
- package/dist/ai-stream.d.ts +18 -0
- package/dist/ai-stream.js +132 -0
- package/dist/ai-stream.mjs +13 -0
- package/dist/anthropic-stream.d.ts +5 -0
- package/dist/anthropic-stream.js +133 -0
- package/dist/anthropic-stream.mjs +8 -0
- package/dist/chunk-265FSSO4.mjs +91 -0
- package/dist/chunk-2L3ZO4UM.mjs +45 -0
- package/dist/chunk-GT4HKF2X.mjs +33 -0
- package/dist/chunk-JGDC3BXD.mjs +22 -0
- package/dist/chunk-NK2CVBLI.mjs +38 -0
- package/dist/chunk-PEYAHBDF.mjs +43 -0
- package/dist/chunk-TJMME6CL.mjs +24 -0
- package/dist/huggingface-stream.d.ts +5 -0
- package/dist/huggingface-stream.js +121 -0
- package/dist/huggingface-stream.mjs +8 -0
- package/dist/index.d.ts +131 -0
- package/dist/index.js +278 -0
- package/dist/index.mjs +35 -0
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.js +12 -0
- package/dist/index.test.mjs +10 -0
- package/dist/langchain-stream.d.ts +12 -0
- package/dist/langchain-stream.js +102 -0
- package/dist/langchain-stream.mjs +8 -0
- package/dist/openai-stream.d.ts +5 -0
- package/dist/openai-stream.js +144 -0
- package/dist/openai-stream.mjs +8 -0
- package/dist/streaming-text-response.d.ts +17 -0
- package/dist/streaming-text-response.js +75 -0
- package/dist/streaming-text-response.mjs +9 -0
- package/package.json +78 -29
- package/react/dist/chunk-5PP6W52J.mjs +202 -0
- package/react/dist/chunk-6EH3SWMP.mjs +55 -0
- package/react/dist/chunk-PW6HSU2N.mjs +154 -0
- package/react/dist/index.d.ts +3 -0
- package/react/dist/index.js +424 -0
- package/react/dist/index.mjs +12 -0
- package/react/dist/types-f862f74a.d.ts +123 -0
- package/react/dist/use-chat.d.ts +42 -0
- package/react/dist/use-chat.js +276 -0
- package/react/dist/use-chat.mjs +8 -0
- package/react/dist/use-completion.d.ts +47 -0
- package/react/dist/use-completion.js +229 -0
- package/react/dist/use-completion.mjs +8 -0
- package/svelte/dist/chunk-6USBQIV6.mjs +177 -0
- package/svelte/dist/chunk-BQ64GHZ3.mjs +136 -0
- package/svelte/dist/chunk-CENOSGDG.mjs +493 -0
- package/svelte/dist/index.d.ts +4 -0
- package/svelte/dist/index.js +808 -0
- package/svelte/dist/index.mjs +11 -0
- package/svelte/dist/types-f862f74a.d.ts +123 -0
- package/svelte/dist/use-chat.d.ts +39 -0
- package/svelte/dist/use-chat.js +680 -0
- package/svelte/dist/use-chat.mjs +7 -0
- package/svelte/dist/use-completion.d.ts +38 -0
- package/svelte/dist/use-completion.js +640 -0
- package/svelte/dist/use-completion.mjs +7 -0
- package/.npmignore +0 -15
- package/.travis.yml +0 -4
- package/README.md +0 -21
- package/bin/ai.js +0 -22
- package/index.js +0 -37
- package/node_modules/request/.npmignore +0 -2
- package/node_modules/request/.travis.yml +0 -12
- package/node_modules/request/CHANGELOG.md +0 -954
- package/node_modules/request/LICENSE +0 -55
- package/node_modules/request/README.md +0 -421
- package/node_modules/request/index.js +0 -166
- package/node_modules/request/lib/cookies.js +0 -40
- package/node_modules/request/lib/copy.js +0 -8
- package/node_modules/request/lib/debug.js +0 -7
- package/node_modules/request/lib/getSafe.js +0 -34
- package/node_modules/request/lib/optional.js +0 -5
- package/node_modules/request/node_modules/aws-sign2/LICENSE +0 -55
- package/node_modules/request/node_modules/aws-sign2/README.md +0 -4
- package/node_modules/request/node_modules/aws-sign2/index.js +0 -202
- package/node_modules/request/node_modules/aws-sign2/package.json +0 -47
- package/node_modules/request/node_modules/forever-agent/LICENSE +0 -55
- package/node_modules/request/node_modules/forever-agent/README.md +0 -4
- package/node_modules/request/node_modules/forever-agent/index.js +0 -119
- package/node_modules/request/node_modules/forever-agent/package.json +0 -46
- package/node_modules/request/node_modules/form-data/License +0 -19
- package/node_modules/request/node_modules/form-data/Readme.md +0 -175
- package/node_modules/request/node_modules/form-data/lib/form_data.js +0 -351
- package/node_modules/request/node_modules/form-data/node_modules/async/.travis.yml +0 -3
- package/node_modules/request/node_modules/form-data/node_modules/async/LICENSE +0 -19
- package/node_modules/request/node_modules/form-data/node_modules/async/README.md +0 -1646
- package/node_modules/request/node_modules/form-data/node_modules/async/component.json +0 -11
- package/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js +0 -1123
- package/node_modules/request/node_modules/form-data/node_modules/async/package.json +0 -60
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/License +0 -19
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/Readme.md +0 -132
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js +0 -186
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/.npmignore +0 -2
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/License +0 -19
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Makefile +0 -7
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Readme.md +0 -154
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js +0 -99
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/package.json +0 -42
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/common.js +0 -6
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js +0 -38
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-auto-pause.js +0 -21
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-pause.js +0 -14
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream.js +0 -48
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js +0 -15
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-max-data-size.js +0 -18
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-pipe-resumes.js +0 -13
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-proxy-readable.js +0 -13
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/run.js +0 -7
- package/node_modules/request/node_modules/form-data/node_modules/combined-stream/package.json +0 -61
- package/node_modules/request/node_modules/form-data/node_modules/mime/LICENSE +0 -19
- package/node_modules/request/node_modules/form-data/node_modules/mime/README.md +0 -66
- package/node_modules/request/node_modules/form-data/node_modules/mime/mime.js +0 -114
- package/node_modules/request/node_modules/form-data/node_modules/mime/package.json +0 -59
- package/node_modules/request/node_modules/form-data/node_modules/mime/test.js +0 -84
- package/node_modules/request/node_modules/form-data/node_modules/mime/types/mime.types +0 -1588
- package/node_modules/request/node_modules/form-data/node_modules/mime/types/node.types +0 -77
- package/node_modules/request/node_modules/form-data/package.json +0 -80
- package/node_modules/request/node_modules/hawk/.npmignore +0 -18
- package/node_modules/request/node_modules/hawk/.travis.yml +0 -5
- package/node_modules/request/node_modules/hawk/LICENSE +0 -24
- package/node_modules/request/node_modules/hawk/Makefile +0 -10
- package/node_modules/request/node_modules/hawk/README.md +0 -625
- package/node_modules/request/node_modules/hawk/example/usage.js +0 -78
- package/node_modules/request/node_modules/hawk/images/hawk.png +0 -0
- package/node_modules/request/node_modules/hawk/images/logo.png +0 -0
- package/node_modules/request/node_modules/hawk/index.js +0 -1
- package/node_modules/request/node_modules/hawk/lib/browser.js +0 -507
- package/node_modules/request/node_modules/hawk/lib/client.js +0 -371
- package/node_modules/request/node_modules/hawk/lib/crypto.js +0 -118
- package/node_modules/request/node_modules/hawk/lib/index.js +0 -15
- package/node_modules/request/node_modules/hawk/lib/server.js +0 -523
- package/node_modules/request/node_modules/hawk/lib/utils.js +0 -183
- package/node_modules/request/node_modules/hawk/node_modules/boom/.npmignore +0 -18
- package/node_modules/request/node_modules/hawk/node_modules/boom/.travis.yml +0 -5
- package/node_modules/request/node_modules/hawk/node_modules/boom/LICENSE +0 -24
- package/node_modules/request/node_modules/hawk/node_modules/boom/Makefile +0 -11
- package/node_modules/request/node_modules/hawk/node_modules/boom/README.md +0 -6
- package/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png +0 -0
- package/node_modules/request/node_modules/hawk/node_modules/boom/index.js +0 -1
- package/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js +0 -207
- package/node_modules/request/node_modules/hawk/node_modules/boom/package.json +0 -64
- package/node_modules/request/node_modules/hawk/node_modules/boom/test/index.js +0 -245
- package/node_modules/request/node_modules/hawk/node_modules/cryptiles/.npmignore +0 -18
- package/node_modules/request/node_modules/hawk/node_modules/cryptiles/.travis.yml +0 -5
- package/node_modules/request/node_modules/hawk/node_modules/cryptiles/LICENSE +0 -24
- package/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile +0 -11
- package/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md +0 -6
- package/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js +0 -1
- package/node_modules/request/node_modules/hawk/node_modules/cryptiles/lib/index.js +0 -68
- package/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json +0 -65
- package/node_modules/request/node_modules/hawk/node_modules/cryptiles/test/index.js +0 -101
- package/node_modules/request/node_modules/hawk/node_modules/hoek/.npmignore +0 -18
- package/node_modules/request/node_modules/hawk/node_modules/hoek/.travis.yml +0 -5
- package/node_modules/request/node_modules/hawk/node_modules/hoek/LICENSE +0 -33
- package/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile +0 -10
- package/node_modules/request/node_modules/hawk/node_modules/hoek/README.md +0 -436
- package/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png +0 -0
- package/node_modules/request/node_modules/hawk/node_modules/hoek/index.js +0 -1
- package/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js +0 -132
- package/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js +0 -585
- package/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +0 -70
- package/node_modules/request/node_modules/hawk/node_modules/hoek/test/escaper.js +0 -86
- package/node_modules/request/node_modules/hawk/node_modules/hoek/test/index.js +0 -1078
- package/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js +0 -1
- package/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js +0 -1
- package/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js +0 -1
- package/node_modules/request/node_modules/hawk/node_modules/sntp/.npmignore +0 -18
- package/node_modules/request/node_modules/hawk/node_modules/sntp/.travis.yml +0 -5
- package/node_modules/request/node_modules/hawk/node_modules/sntp/LICENSE +0 -24
- package/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile +0 -11
- package/node_modules/request/node_modules/hawk/node_modules/sntp/README.md +0 -68
- package/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js +0 -16
- package/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js +0 -25
- package/node_modules/request/node_modules/hawk/node_modules/sntp/index.js +0 -1
- package/node_modules/request/node_modules/hawk/node_modules/sntp/lib/index.js +0 -409
- package/node_modules/request/node_modules/hawk/node_modules/sntp/package.json +0 -65
- package/node_modules/request/node_modules/hawk/node_modules/sntp/test/index.js +0 -359
- package/node_modules/request/node_modules/hawk/package.json +0 -70
- package/node_modules/request/node_modules/hawk/test/browser.js +0 -817
- package/node_modules/request/node_modules/hawk/test/client.js +0 -206
- package/node_modules/request/node_modules/hawk/test/crypto.js +0 -86
- package/node_modules/request/node_modules/hawk/test/index.js +0 -316
- package/node_modules/request/node_modules/hawk/test/message.js +0 -246
- package/node_modules/request/node_modules/hawk/test/readme.js +0 -98
- package/node_modules/request/node_modules/hawk/test/server.js +0 -686
- package/node_modules/request/node_modules/hawk/test/uri.js +0 -456
- package/node_modules/request/node_modules/hawk/test/utils.js +0 -120
- package/node_modules/request/node_modules/http-signature/.dir-locals.el +0 -6
- package/node_modules/request/node_modules/http-signature/.npmignore +0 -7
- package/node_modules/request/node_modules/http-signature/LICENSE +0 -18
- package/node_modules/request/node_modules/http-signature/README.md +0 -75
- package/node_modules/request/node_modules/http-signature/http_signing.md +0 -296
- package/node_modules/request/node_modules/http-signature/lib/index.js +0 -25
- package/node_modules/request/node_modules/http-signature/lib/parser.js +0 -304
- package/node_modules/request/node_modules/http-signature/lib/signer.js +0 -179
- package/node_modules/request/node_modules/http-signature/lib/util.js +0 -249
- package/node_modules/request/node_modules/http-signature/lib/verify.js +0 -42
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/.npmignore +0 -2
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE +0 -19
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/README.md +0 -50
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js +0 -13
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js +0 -27
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js +0 -267
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js +0 -36
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/writer.js +0 -317
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js +0 -20
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/package.json +0 -63
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/reader.test.js +0 -172
- package/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/writer.test.js +0 -296
- package/node_modules/request/node_modules/http-signature/node_modules/assert-plus/README.md +0 -126
- package/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js +0 -196
- package/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json +0 -38
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/CHANGELOG +0 -71
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/LICENSE +0 -24
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/README +0 -82
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/README.old +0 -298
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/ctf.js +0 -245
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js +0 -1485
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/ctype.js +0 -944
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/man/man3ctype/ctio.3ctype +0 -241
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json +0 -36
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsl.conf +0 -129
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsstyle +0 -839
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/float.json +0 -13
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/int.json +0 -13
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/psinfo.json +0 -104
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/struct.json +0 -19
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js +0 -39
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.float.js +0 -14
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.int.js +0 -14
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.psinfo.js +0 -17
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.struct.js +0 -18
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.typedef.js +0 -15
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/typedef.json +0 -14
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.rfloat.js +0 -767
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.wfloat.js +0 -753
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.64.js +0 -638
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.rint.js +0 -101
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wbounds.js +0 -53
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wint.js +0 -92
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.64.js +0 -451
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.roundtrip.js +0 -81
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.ruint.js +0 -95
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.wuint.js +0 -156
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicr.js +0 -50
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicw.js +0 -44
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.char.js +0 -42
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.endian.js +0 -45
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.oldwrite.js +0 -28
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.readSize.js +0 -128
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.structw.js +0 -28
- package/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.writeStruct.js +0 -31
- package/node_modules/request/node_modules/http-signature/package.json +0 -54
- package/node_modules/request/node_modules/json-stringify-safe/LICENSE +0 -27
- package/node_modules/request/node_modules/json-stringify-safe/README.md +0 -49
- package/node_modules/request/node_modules/json-stringify-safe/package.json +0 -51
- package/node_modules/request/node_modules/json-stringify-safe/stringify.js +0 -39
- package/node_modules/request/node_modules/json-stringify-safe/test.js +0 -128
- package/node_modules/request/node_modules/mime-types/.npmignore +0 -14
- package/node_modules/request/node_modules/mime-types/.travis.yml +0 -12
- package/node_modules/request/node_modules/mime-types/LICENSE +0 -22
- package/node_modules/request/node_modules/mime-types/Makefile +0 -9
- package/node_modules/request/node_modules/mime-types/README.md +0 -101
- package/node_modules/request/node_modules/mime-types/SOURCES.md +0 -17
- package/node_modules/request/node_modules/mime-types/component.json +0 -16
- package/node_modules/request/node_modules/mime-types/lib/custom.json +0 -27
- package/node_modules/request/node_modules/mime-types/lib/index.js +0 -75
- package/node_modules/request/node_modules/mime-types/lib/mime.json +0 -3317
- package/node_modules/request/node_modules/mime-types/lib/node.json +0 -55
- package/node_modules/request/node_modules/mime-types/package.json +0 -69
- package/node_modules/request/node_modules/node-uuid/.npmignore +0 -2
- package/node_modules/request/node_modules/node-uuid/LICENSE.md +0 -2
- package/node_modules/request/node_modules/node-uuid/README.md +0 -207
- package/node_modules/request/node_modules/node-uuid/benchmark/README.md +0 -53
- package/node_modules/request/node_modules/node-uuid/benchmark/bench.gnu +0 -174
- package/node_modules/request/node_modules/node-uuid/benchmark/bench.sh +0 -34
- package/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c +0 -34
- package/node_modules/request/node_modules/node-uuid/benchmark/benchmark.js +0 -84
- package/node_modules/request/node_modules/node-uuid/component.json +0 -18
- package/node_modules/request/node_modules/node-uuid/package.json +0 -54
- package/node_modules/request/node_modules/node-uuid/test/compare_v1.js +0 -63
- package/node_modules/request/node_modules/node-uuid/test/test.html +0 -17
- package/node_modules/request/node_modules/node-uuid/test/test.js +0 -228
- package/node_modules/request/node_modules/node-uuid/uuid.js +0 -245
- package/node_modules/request/node_modules/oauth-sign/LICENSE +0 -55
- package/node_modules/request/node_modules/oauth-sign/README.md +0 -4
- package/node_modules/request/node_modules/oauth-sign/index.js +0 -43
- package/node_modules/request/node_modules/oauth-sign/package.json +0 -49
- package/node_modules/request/node_modules/oauth-sign/test.js +0 -49
- package/node_modules/request/node_modules/qs/.jshintignore +0 -1
- package/node_modules/request/node_modules/qs/.jshintrc +0 -10
- package/node_modules/request/node_modules/qs/.npmignore +0 -18
- package/node_modules/request/node_modules/qs/.travis.yml +0 -4
- package/node_modules/request/node_modules/qs/LICENSE +0 -28
- package/node_modules/request/node_modules/qs/Makefile +0 -8
- package/node_modules/request/node_modules/qs/Readme.md +0 -120
- package/node_modules/request/node_modules/qs/index.js +0 -1
- package/node_modules/request/node_modules/qs/lib/index.js +0 -15
- package/node_modules/request/node_modules/qs/lib/parse.js +0 -151
- package/node_modules/request/node_modules/qs/lib/stringify.js +0 -52
- package/node_modules/request/node_modules/qs/lib/utils.js +0 -131
- package/node_modules/request/node_modules/qs/package.json +0 -61
- package/node_modules/request/node_modules/qs/test/parse.js +0 -236
- package/node_modules/request/node_modules/qs/test/stringify.js +0 -123
- package/node_modules/request/node_modules/stringstream/.npmignore +0 -15
- package/node_modules/request/node_modules/stringstream/.travis.yml +0 -4
- package/node_modules/request/node_modules/stringstream/LICENSE.txt +0 -4
- package/node_modules/request/node_modules/stringstream/README.md +0 -38
- package/node_modules/request/node_modules/stringstream/example.js +0 -27
- package/node_modules/request/node_modules/stringstream/package.json +0 -48
- package/node_modules/request/node_modules/stringstream/stringstream.js +0 -102
- package/node_modules/request/node_modules/tough-cookie/.jshintrc +0 -70
- package/node_modules/request/node_modules/tough-cookie/.npmignore +0 -3
- package/node_modules/request/node_modules/tough-cookie/.travis.yml +0 -8
- package/node_modules/request/node_modules/tough-cookie/LICENSE +0 -78
- package/node_modules/request/node_modules/tough-cookie/README.md +0 -412
- package/node_modules/request/node_modules/tough-cookie/generate-pubsuffix.js +0 -239
- package/node_modules/request/node_modules/tough-cookie/lib/cookie.js +0 -1107
- package/node_modules/request/node_modules/tough-cookie/lib/memstore.js +0 -123
- package/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js +0 -69
- package/node_modules/request/node_modules/tough-cookie/lib/store.js +0 -37
- package/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt +0 -20
- package/node_modules/request/node_modules/tough-cookie/node_modules/punycode/README.md +0 -176
- package/node_modules/request/node_modules/tough-cookie/node_modules/punycode/package.json +0 -87
- package/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js +0 -528
- package/node_modules/request/node_modules/tough-cookie/package.json +0 -67
- package/node_modules/request/node_modules/tough-cookie/public-suffix.txt +0 -5229
- package/node_modules/request/node_modules/tough-cookie/test.js +0 -1625
- package/node_modules/request/node_modules/tunnel-agent/.jshintrc +0 -5
- package/node_modules/request/node_modules/tunnel-agent/LICENSE +0 -55
- package/node_modules/request/node_modules/tunnel-agent/README.md +0 -4
- package/node_modules/request/node_modules/tunnel-agent/index.js +0 -236
- package/node_modules/request/node_modules/tunnel-agent/package.json +0 -46
- package/node_modules/request/package.json +0 -77
- package/node_modules/request/request.js +0 -1428
- package/test/fixtures/github-response.json +0 -1367
- package/test/index.js +0 -55
@@ -1,123 +0,0 @@
|
|
1
|
-
// Load modules
|
2
|
-
|
3
|
-
var Lab = require('lab');
|
4
|
-
var Qs = require('../');
|
5
|
-
|
6
|
-
|
7
|
-
// Declare internals
|
8
|
-
|
9
|
-
var internals = {};
|
10
|
-
|
11
|
-
|
12
|
-
// Test shortcuts
|
13
|
-
|
14
|
-
var expect = Lab.expect;
|
15
|
-
var before = Lab.before;
|
16
|
-
var after = Lab.after;
|
17
|
-
var describe = Lab.experiment;
|
18
|
-
var it = Lab.test;
|
19
|
-
|
20
|
-
|
21
|
-
describe('#stringify', function () {
|
22
|
-
|
23
|
-
it('stringifies a querystring object', function (done) {
|
24
|
-
|
25
|
-
expect(Qs.stringify({ a: 'b' })).to.equal('a=b');
|
26
|
-
expect(Qs.stringify({ a: 1 })).to.equal('a=1');
|
27
|
-
expect(Qs.stringify({ a: 1, b: 2 })).to.equal('a=1&b=2');
|
28
|
-
done();
|
29
|
-
});
|
30
|
-
|
31
|
-
it('stringifies a nested object', function (done) {
|
32
|
-
|
33
|
-
expect(Qs.stringify({ a: { b: 'c' } })).to.equal('a[b]=c');
|
34
|
-
expect(Qs.stringify({ a: { b: { c: { d: 'e' } } } })).to.equal('a[b][c][d]=e');
|
35
|
-
done();
|
36
|
-
});
|
37
|
-
|
38
|
-
it('stringifies an array value', function (done) {
|
39
|
-
|
40
|
-
expect(Qs.stringify({ a: ['b', 'c', 'd'] })).to.equal('a[0]=b&a[1]=c&a[2]=d');
|
41
|
-
done();
|
42
|
-
});
|
43
|
-
|
44
|
-
it('stringifies a nested array value', function (done) {
|
45
|
-
|
46
|
-
expect(Qs.stringify({ a: { b: ['c', 'd'] } })).to.equal('a[b][0]=c&a[b][1]=d');
|
47
|
-
done();
|
48
|
-
});
|
49
|
-
|
50
|
-
it('stringifies an object inside an array', function (done) {
|
51
|
-
|
52
|
-
expect(Qs.stringify({ a: [{ b: 'c' }] })).to.equal('a[0][b]=c');
|
53
|
-
expect(Qs.stringify({ a: [{ b: { c: [1] } }] })).to.equal('a[0][b][c][0]=1');
|
54
|
-
done();
|
55
|
-
});
|
56
|
-
|
57
|
-
it('stringifies a complicated object', function (done) {
|
58
|
-
|
59
|
-
expect(Qs.stringify({ a: { b: 'c', d: 'e' } })).to.equal('a[b]=c&a[d]=e');
|
60
|
-
done();
|
61
|
-
});
|
62
|
-
|
63
|
-
it('stringifies an empty value', function (done) {
|
64
|
-
|
65
|
-
expect(Qs.stringify({ a: '' })).to.equal('a=');
|
66
|
-
expect(Qs.stringify({ a: '', b: '' })).to.equal('a=&b=');
|
67
|
-
expect(Qs.stringify({ a: null })).to.equal('a');
|
68
|
-
expect(Qs.stringify({ a: { b: null } })).to.equal('a[b]');
|
69
|
-
done();
|
70
|
-
});
|
71
|
-
|
72
|
-
it('drops keys with a value of undefined', function (done) {
|
73
|
-
|
74
|
-
expect(Qs.stringify({ a: undefined })).to.equal('');
|
75
|
-
expect(Qs.stringify({ a: { b: undefined, c: null } })).to.equal('a[c]');
|
76
|
-
done();
|
77
|
-
});
|
78
|
-
|
79
|
-
it('url encodes values', function (done) {
|
80
|
-
|
81
|
-
expect(Qs.stringify({ a: 'b c' })).to.equal('a=b%20c');
|
82
|
-
done();
|
83
|
-
});
|
84
|
-
|
85
|
-
it('stringifies a date', function (done) {
|
86
|
-
|
87
|
-
var now = new Date();
|
88
|
-
var str = 'a=' + encodeURIComponent(now.toISOString());
|
89
|
-
expect(Qs.stringify({ a: now })).to.equal(str);
|
90
|
-
done();
|
91
|
-
});
|
92
|
-
|
93
|
-
it('stringifies the weird object from qs', function (done) {
|
94
|
-
|
95
|
-
expect(Qs.stringify({ 'my weird field': 'q1!2"\'w$5&7/z8)?' })).to.equal('my%20weird%20field=q1!2%22\'w%245%267%2Fz8)%3F');
|
96
|
-
done();
|
97
|
-
});
|
98
|
-
|
99
|
-
it('skips properties that are part of the object prototype', function (done) {
|
100
|
-
|
101
|
-
Object.prototype.crash = 'test';
|
102
|
-
expect(Qs.stringify({ a: 'b'})).to.equal('a=b');
|
103
|
-
expect(Qs.stringify({ a: { b: 'c' } })).to.equal('a[b]=c');
|
104
|
-
delete Object.prototype.crash;
|
105
|
-
done();
|
106
|
-
});
|
107
|
-
|
108
|
-
it('stringifies boolean values', function (done) {
|
109
|
-
|
110
|
-
expect(Qs.stringify({ a: true })).to.equal('a=true');
|
111
|
-
expect(Qs.stringify({ a: { b: true } })).to.equal('a[b]=true');
|
112
|
-
expect(Qs.stringify({ b: false })).to.equal('b=false');
|
113
|
-
expect(Qs.stringify({ b: { c: false } })).to.equal('b[c]=false');
|
114
|
-
done();
|
115
|
-
});
|
116
|
-
|
117
|
-
it('stringifies buffer values', function (done) {
|
118
|
-
|
119
|
-
expect(Qs.stringify({ a: new Buffer('test') })).to.equal('a=test');
|
120
|
-
expect(Qs.stringify({ a: { b: new Buffer('test') } })).to.equal('a[b]=test');
|
121
|
-
done();
|
122
|
-
});
|
123
|
-
});
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# Decode streams into strings The Right Way(tm)
|
2
|
-
|
3
|
-
```javascript
|
4
|
-
var fs = require('fs')
|
5
|
-
var zlib = require('zlib')
|
6
|
-
var strs = require('stringstream')
|
7
|
-
|
8
|
-
var utf8Stream = fs.createReadStream('massiveLogFile.gz')
|
9
|
-
.pipe(zlib.createGunzip())
|
10
|
-
.pipe(strs('utf8'))
|
11
|
-
```
|
12
|
-
|
13
|
-
No need to deal with `setEncoding()` weirdness, just compose streams
|
14
|
-
like they were supposed to be!
|
15
|
-
|
16
|
-
Handles input and output encoding:
|
17
|
-
|
18
|
-
```javascript
|
19
|
-
// Stream from utf8 to hex to base64... Why not, ay.
|
20
|
-
var hex64Stream = fs.createReadStream('myFile')
|
21
|
-
.pipe(strs('utf8', 'hex'))
|
22
|
-
.pipe(strs('hex', 'base64'))
|
23
|
-
```
|
24
|
-
|
25
|
-
Also deals with `base64` output correctly by aligning each emitted data
|
26
|
-
chunk so that there are no dangling `=` characters:
|
27
|
-
|
28
|
-
```javascript
|
29
|
-
var stream = fs.createReadStream('myFile').pipe(strs('base64'))
|
30
|
-
|
31
|
-
var base64Str = ''
|
32
|
-
|
33
|
-
stream.on('data', function(data) { base64Str += data })
|
34
|
-
stream.on('end', function() {
|
35
|
-
console.log('My base64 encoded file is: ' + base64Str) // Wouldn't work with setEncoding()
|
36
|
-
console.log('Original file is: ' + new Buffer(base64Str, 'base64'))
|
37
|
-
})
|
38
|
-
```
|
@@ -1,27 +0,0 @@
|
|
1
|
-
var fs = require('fs')
|
2
|
-
var zlib = require('zlib')
|
3
|
-
var strs = require('stringstream')
|
4
|
-
|
5
|
-
var utf8Stream = fs.createReadStream('massiveLogFile.gz')
|
6
|
-
.pipe(zlib.createGunzip())
|
7
|
-
.pipe(strs('utf8'))
|
8
|
-
|
9
|
-
utf8Stream.pipe(process.stdout)
|
10
|
-
|
11
|
-
// Stream from utf8 to hex to base64... Why not, ay.
|
12
|
-
var hex64Stream = fs.createReadStream('myFile')
|
13
|
-
.pipe(strs('utf8', 'hex'))
|
14
|
-
.pipe(strs('hex', 'base64'))
|
15
|
-
|
16
|
-
hex64Stream.pipe(process.stdout)
|
17
|
-
|
18
|
-
// Deals with base64 correctly by aligning chunks
|
19
|
-
var stream = fs.createReadStream('myFile').pipe(strs('base64'))
|
20
|
-
|
21
|
-
var base64Str = ''
|
22
|
-
|
23
|
-
stream.on('data', function(data) { base64Str += data })
|
24
|
-
stream.on('end', function() {
|
25
|
-
console.log('My base64 encoded file is: ' + base64Str) // Wouldn't work with setEncoding()
|
26
|
-
console.log('Original file is: ' + new Buffer(base64Str, 'base64'))
|
27
|
-
})
|
@@ -1,48 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "stringstream",
|
3
|
-
"version": "0.0.4",
|
4
|
-
"description": "Encode and decode streams into string streams",
|
5
|
-
"author": {
|
6
|
-
"name": "Michael Hart",
|
7
|
-
"email": "michael.hart.au@gmail.com",
|
8
|
-
"url": "http://github.com/mhart"
|
9
|
-
},
|
10
|
-
"main": "stringstream.js",
|
11
|
-
"keywords": [
|
12
|
-
"string",
|
13
|
-
"stream",
|
14
|
-
"base64",
|
15
|
-
"gzip"
|
16
|
-
],
|
17
|
-
"repository": {
|
18
|
-
"type": "git",
|
19
|
-
"url": "https://github.com/mhart/StringStream.git"
|
20
|
-
},
|
21
|
-
"license": "MIT",
|
22
|
-
"readme": "# Decode streams into strings The Right Way(tm)\n\n```javascript\nvar fs = require('fs')\nvar zlib = require('zlib')\nvar strs = require('stringstream')\n\nvar utf8Stream = fs.createReadStream('massiveLogFile.gz')\n .pipe(zlib.createGunzip())\n .pipe(strs('utf8'))\n```\n\nNo need to deal with `setEncoding()` weirdness, just compose streams\nlike they were supposed to be!\n\nHandles input and output encoding:\n\n```javascript\n// Stream from utf8 to hex to base64... Why not, ay.\nvar hex64Stream = fs.createReadStream('myFile')\n .pipe(strs('utf8', 'hex'))\n .pipe(strs('hex', 'base64'))\n```\n\nAlso deals with `base64` output correctly by aligning each emitted data\nchunk so that there are no dangling `=` characters:\n\n```javascript\nvar stream = fs.createReadStream('myFile').pipe(strs('base64'))\n\nvar base64Str = ''\n\nstream.on('data', function(data) { base64Str += data })\nstream.on('end', function() {\n console.log('My base64 encoded file is: ' + base64Str) // Wouldn't work with setEncoding()\n console.log('Original file is: ' + new Buffer(base64Str, 'base64'))\n})\n```\n",
|
23
|
-
"readmeFilename": "README.md",
|
24
|
-
"_id": "stringstream@0.0.4",
|
25
|
-
"dist": {
|
26
|
-
"shasum": "0f0e3423f942960b5692ac324a57dd093bc41a92",
|
27
|
-
"tarball": "http://registry.npmjs.org/stringstream/-/stringstream-0.0.4.tgz"
|
28
|
-
},
|
29
|
-
"_npmVersion": "1.2.0",
|
30
|
-
"_npmUser": {
|
31
|
-
"name": "hichaelmart",
|
32
|
-
"email": "michael.hart.au@gmail.com"
|
33
|
-
},
|
34
|
-
"maintainers": [
|
35
|
-
{
|
36
|
-
"name": "hichaelmart",
|
37
|
-
"email": "michael.hart.au@gmail.com"
|
38
|
-
}
|
39
|
-
],
|
40
|
-
"directories": {},
|
41
|
-
"_shasum": "0f0e3423f942960b5692ac324a57dd093bc41a92",
|
42
|
-
"_from": "stringstream@~0.0.4",
|
43
|
-
"_resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.4.tgz",
|
44
|
-
"bugs": {
|
45
|
-
"url": "https://github.com/mhart/StringStream/issues"
|
46
|
-
},
|
47
|
-
"homepage": "https://github.com/mhart/StringStream"
|
48
|
-
}
|
@@ -1,102 +0,0 @@
|
|
1
|
-
var util = require('util')
|
2
|
-
var Stream = require('stream')
|
3
|
-
var StringDecoder = require('string_decoder').StringDecoder
|
4
|
-
|
5
|
-
module.exports = StringStream
|
6
|
-
module.exports.AlignedStringDecoder = AlignedStringDecoder
|
7
|
-
|
8
|
-
function StringStream(from, to) {
|
9
|
-
if (!(this instanceof StringStream)) return new StringStream(from, to)
|
10
|
-
|
11
|
-
Stream.call(this)
|
12
|
-
|
13
|
-
if (from == null) from = 'utf8'
|
14
|
-
|
15
|
-
this.readable = this.writable = true
|
16
|
-
this.paused = false
|
17
|
-
this.toEncoding = (to == null ? from : to)
|
18
|
-
this.fromEncoding = (to == null ? '' : from)
|
19
|
-
this.decoder = new AlignedStringDecoder(this.toEncoding)
|
20
|
-
}
|
21
|
-
util.inherits(StringStream, Stream)
|
22
|
-
|
23
|
-
StringStream.prototype.write = function(data) {
|
24
|
-
if (!this.writable) {
|
25
|
-
var err = new Error('stream not writable')
|
26
|
-
err.code = 'EPIPE'
|
27
|
-
this.emit('error', err)
|
28
|
-
return false
|
29
|
-
}
|
30
|
-
if (this.fromEncoding) {
|
31
|
-
if (Buffer.isBuffer(data)) data = data.toString()
|
32
|
-
data = new Buffer(data, this.fromEncoding)
|
33
|
-
}
|
34
|
-
var string = this.decoder.write(data)
|
35
|
-
if (string.length) this.emit('data', string)
|
36
|
-
return !this.paused
|
37
|
-
}
|
38
|
-
|
39
|
-
StringStream.prototype.flush = function() {
|
40
|
-
if (this.decoder.flush) {
|
41
|
-
var string = this.decoder.flush()
|
42
|
-
if (string.length) this.emit('data', string)
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
StringStream.prototype.end = function() {
|
47
|
-
if (!this.writable && !this.readable) return
|
48
|
-
this.flush()
|
49
|
-
this.emit('end')
|
50
|
-
this.writable = this.readable = false
|
51
|
-
this.destroy()
|
52
|
-
}
|
53
|
-
|
54
|
-
StringStream.prototype.destroy = function() {
|
55
|
-
this.decoder = null
|
56
|
-
this.writable = this.readable = false
|
57
|
-
this.emit('close')
|
58
|
-
}
|
59
|
-
|
60
|
-
StringStream.prototype.pause = function() {
|
61
|
-
this.paused = true
|
62
|
-
}
|
63
|
-
|
64
|
-
StringStream.prototype.resume = function () {
|
65
|
-
if (this.paused) this.emit('drain')
|
66
|
-
this.paused = false
|
67
|
-
}
|
68
|
-
|
69
|
-
function AlignedStringDecoder(encoding) {
|
70
|
-
StringDecoder.call(this, encoding)
|
71
|
-
|
72
|
-
switch (this.encoding) {
|
73
|
-
case 'base64':
|
74
|
-
this.write = alignedWrite
|
75
|
-
this.alignedBuffer = new Buffer(3)
|
76
|
-
this.alignedBytes = 0
|
77
|
-
break
|
78
|
-
}
|
79
|
-
}
|
80
|
-
util.inherits(AlignedStringDecoder, StringDecoder)
|
81
|
-
|
82
|
-
AlignedStringDecoder.prototype.flush = function() {
|
83
|
-
if (!this.alignedBuffer || !this.alignedBytes) return ''
|
84
|
-
var leftover = this.alignedBuffer.toString(this.encoding, 0, this.alignedBytes)
|
85
|
-
this.alignedBytes = 0
|
86
|
-
return leftover
|
87
|
-
}
|
88
|
-
|
89
|
-
function alignedWrite(buffer) {
|
90
|
-
var rem = (this.alignedBytes + buffer.length) % this.alignedBuffer.length
|
91
|
-
if (!rem && !this.alignedBytes) return buffer.toString(this.encoding)
|
92
|
-
|
93
|
-
var returnBuffer = new Buffer(this.alignedBytes + buffer.length - rem)
|
94
|
-
|
95
|
-
this.alignedBuffer.copy(returnBuffer, 0, 0, this.alignedBytes)
|
96
|
-
buffer.copy(returnBuffer, this.alignedBytes, 0, buffer.length - rem)
|
97
|
-
|
98
|
-
buffer.copy(this.alignedBuffer, 0, buffer.length - rem, buffer.length)
|
99
|
-
this.alignedBytes = rem
|
100
|
-
|
101
|
-
return returnBuffer.toString(this.encoding)
|
102
|
-
}
|
@@ -1,70 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"passfail" : false,
|
3
|
-
"maxerr" : 100,
|
4
|
-
|
5
|
-
"browser" : false,
|
6
|
-
"node" : true,
|
7
|
-
"rhino" : false,
|
8
|
-
"couch" : false,
|
9
|
-
"wsh" : false,
|
10
|
-
|
11
|
-
"jquery" : false,
|
12
|
-
"prototypejs" : false,
|
13
|
-
"mootools" : false,
|
14
|
-
"dojo" : false,
|
15
|
-
|
16
|
-
"debug" : false,
|
17
|
-
"devel" : false,
|
18
|
-
|
19
|
-
"esnext" : true,
|
20
|
-
"strict" : true,
|
21
|
-
"globalstrict" : true,
|
22
|
-
|
23
|
-
"asi" : false,
|
24
|
-
"laxbreak" : false,
|
25
|
-
"bitwise" : true,
|
26
|
-
"boss" : false,
|
27
|
-
"curly" : true,
|
28
|
-
"eqeqeq" : false,
|
29
|
-
"eqnull" : true,
|
30
|
-
"evil" : false,
|
31
|
-
"expr" : false,
|
32
|
-
"forin" : false,
|
33
|
-
"immed" : true,
|
34
|
-
"lastsemic" : true,
|
35
|
-
"latedef" : false,
|
36
|
-
"loopfunc" : false,
|
37
|
-
"noarg" : true,
|
38
|
-
"regexp" : false,
|
39
|
-
"regexdash" : false,
|
40
|
-
"scripturl" : false,
|
41
|
-
"shadow" : false,
|
42
|
-
"supernew" : false,
|
43
|
-
"undef" : true,
|
44
|
-
"unused" : true,
|
45
|
-
|
46
|
-
"newcap" : true,
|
47
|
-
"noempty" : true,
|
48
|
-
"nonew" : true,
|
49
|
-
"nomen" : false,
|
50
|
-
"onevar" : false,
|
51
|
-
"onecase" : true,
|
52
|
-
"plusplus" : false,
|
53
|
-
"proto" : false,
|
54
|
-
"sub" : true,
|
55
|
-
"trailing" : true,
|
56
|
-
"white" : false,
|
57
|
-
|
58
|
-
"predef": [
|
59
|
-
"describe",
|
60
|
-
"it",
|
61
|
-
"before",
|
62
|
-
"beforeEach",
|
63
|
-
"after",
|
64
|
-
"afterEach",
|
65
|
-
"expect",
|
66
|
-
"setTimeout",
|
67
|
-
"clearTimeout"
|
68
|
-
],
|
69
|
-
"maxlen": 0
|
70
|
-
}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
Copyright GoInstant, Inc. and other contributors. All rights reserved.
|
2
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
3
|
-
of this software and associated documentation files (the "Software"), to
|
4
|
-
deal in the Software without restriction, including without limitation the
|
5
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
6
|
-
sell copies of the Software, and to permit persons to whom the Software is
|
7
|
-
furnished to do so, subject to the following conditions:
|
8
|
-
|
9
|
-
The above copyright notice and this permission notice shall be included in
|
10
|
-
all copies or substantial portions of the Software.
|
11
|
-
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
17
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
18
|
-
IN THE SOFTWARE.
|
19
|
-
|
20
|
-
The following exceptions apply:
|
21
|
-
|
22
|
-
===
|
23
|
-
|
24
|
-
`pubSufTest()` of generate-pubsuffix.js is in the public domain.
|
25
|
-
|
26
|
-
// Any copyright is dedicated to the Public Domain.
|
27
|
-
// http://creativecommons.org/publicdomain/zero/1.0/
|
28
|
-
|
29
|
-
===
|
30
|
-
|
31
|
-
`public-suffix.txt` was obtained from
|
32
|
-
<https://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1>
|
33
|
-
via <http://publicsuffix.org>.
|
34
|
-
|
35
|
-
That file contains the usual Mozilla triple-license, for which this project uses it
|
36
|
-
under the terms of the MPL 1.1:
|
37
|
-
|
38
|
-
// ***** BEGIN LICENSE BLOCK *****
|
39
|
-
// Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
40
|
-
//
|
41
|
-
// The contents of this file are subject to the Mozilla Public License Version
|
42
|
-
// 1.1 (the "License"); you may not use this file except in compliance with
|
43
|
-
// the License. You may obtain a copy of the License at
|
44
|
-
// http://www.mozilla.org/MPL/
|
45
|
-
//
|
46
|
-
// Software distributed under the License is distributed on an "AS IS" basis,
|
47
|
-
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
48
|
-
// for the specific language governing rights and limitations under the
|
49
|
-
// License.
|
50
|
-
//
|
51
|
-
// The Original Code is the Public Suffix List.
|
52
|
-
//
|
53
|
-
// The Initial Developer of the Original Code is
|
54
|
-
// Jo Hermans <jo.hermans@gmail.com>.
|
55
|
-
// Portions created by the Initial Developer are Copyright (C) 2007
|
56
|
-
// the Initial Developer. All Rights Reserved.
|
57
|
-
//
|
58
|
-
// Contributor(s):
|
59
|
-
// Ruben Arakelyan <ruben@rubenarakelyan.com>
|
60
|
-
// Gervase Markham <gerv@gerv.net>
|
61
|
-
// Pamela Greene <pamg.bugs@gmail.com>
|
62
|
-
// David Triendl <david@triendl.name>
|
63
|
-
// Jothan Frakes <jothan@gmail.com>
|
64
|
-
// The kind representatives of many TLD registries
|
65
|
-
//
|
66
|
-
// Alternatively, the contents of this file may be used under the terms of
|
67
|
-
// either the GNU General Public License Version 2 or later (the "GPL"), or
|
68
|
-
// the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
69
|
-
// in which case the provisions of the GPL or the LGPL are applicable instead
|
70
|
-
// of those above. If you wish to allow use of your version of this file only
|
71
|
-
// under the terms of either the GPL or the LGPL, and not to allow others to
|
72
|
-
// use your version of this file under the terms of the MPL, indicate your
|
73
|
-
// decision by deleting the provisions above and replace them with the notice
|
74
|
-
// and other provisions required by the GPL or the LGPL. If you do not delete
|
75
|
-
// the provisions above, a recipient may use your version of this file under
|
76
|
-
// the terms of any one of the MPL, the GPL or the LGPL.
|
77
|
-
//
|
78
|
-
// ***** END LICENSE BLOCK *****
|