ai 1.1.0 → 2.0.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/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-EZJ7FC5E.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,241 +0,0 @@
|
|
1
|
-
'\" te
|
2
|
-
.\" Copyright (c) 2011, Robert Mustacchi. All Rights Reserved.
|
3
|
-
.\" Copyright (c) 2011, Joyent, Inc. All Rights Reserved.
|
4
|
-
.\"
|
5
|
-
.\" Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
.\" of this software and associated documentation files (the "Software"), to
|
7
|
-
.\" deal in the Software without restriction, including without limitation the
|
8
|
-
.\" rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
9
|
-
.\" sell copies of the Software, and to permit persons to whom the Software is
|
10
|
-
.\" furnished to do so, subject to the following conditions:
|
11
|
-
.\"
|
12
|
-
.\" The above copyright notice and this permission notice shall be included in
|
13
|
-
.\" all copies or substantial portions of the Software.
|
14
|
-
.\"
|
15
|
-
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
.\" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
.\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
20
|
-
.\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
21
|
-
.\" IN THE SOFTWARE.
|
22
|
-
.TH CTIO 3CTYPE "December 12, 2011"
|
23
|
-
.SH NAME
|
24
|
-
ctio, ruint8, ruint16, ruint32, ruint64, wuint8, wuint16, wuint32, wuint64,
|
25
|
-
rsint8, rsint16, rsint32, rsint64, wsint8, wsint16, wsint32, wsint64, rfloat,
|
26
|
-
rdouble, wfloat, wdouble \- integer and float operations
|
27
|
-
.SH SYNOPSIS
|
28
|
-
.LP
|
29
|
-
.nf
|
30
|
-
var mod_ctype = require('ctype');
|
31
|
-
|
32
|
-
\fBNumber\fR \fBmod_ctype.ruint8\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
33
|
-
.fi
|
34
|
-
|
35
|
-
.LP
|
36
|
-
.nf
|
37
|
-
\fBNumber\fR \fBmod_ctype.ruint16\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
38
|
-
.fi
|
39
|
-
|
40
|
-
.LP
|
41
|
-
.nf
|
42
|
-
\fBNumber\fR \fBmod_ctype.ruint32\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
43
|
-
.fi
|
44
|
-
|
45
|
-
.LP
|
46
|
-
.nf
|
47
|
-
\fBNumber[2]\fR \fBmod_ctype.ruint64\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
48
|
-
.fi
|
49
|
-
|
50
|
-
.LP
|
51
|
-
.nf
|
52
|
-
\fBNumber\fR \fBmod_ctype.rsint8\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
53
|
-
.fi
|
54
|
-
|
55
|
-
.LP
|
56
|
-
.nf
|
57
|
-
\fBNumber\fR \fBmod_ctype.rsint16\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
58
|
-
.fi
|
59
|
-
|
60
|
-
.LP
|
61
|
-
.nf
|
62
|
-
\fBNumber\fR \fBmod_ctype.rsint32\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
63
|
-
.fi
|
64
|
-
|
65
|
-
.LP
|
66
|
-
.nf
|
67
|
-
\fBNumber[2]\fR \fBmod_ctype.rsint64\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
68
|
-
.fi
|
69
|
-
|
70
|
-
.LP
|
71
|
-
.nf
|
72
|
-
\fBNumber\fR \fBmod_ctype.rfloat\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
73
|
-
.fi
|
74
|
-
|
75
|
-
.LP
|
76
|
-
.nf
|
77
|
-
\fBNumber\fR \fBmod_ctype.rdouble\fR(\fBBuffer\fR \fIbuf\fR, \fBString\fR \fIendian\fR, \fBNumber\fR \fIoffset\fR);
|
78
|
-
.fi
|
79
|
-
|
80
|
-
.LP
|
81
|
-
.nf
|
82
|
-
\fBvoid\fR \fBmod_ctype.wuint8\fR(\fBNumber\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
83
|
-
.fi
|
84
|
-
|
85
|
-
.LP
|
86
|
-
.nf
|
87
|
-
\fBvoid\fR \fBmod_ctype.wuint16\fR(\fBNumber\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
88
|
-
.fi
|
89
|
-
|
90
|
-
.LP
|
91
|
-
.nf
|
92
|
-
\fBvoid\fR \fBmod_ctype.wuint32\fR(\fBNumber\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
93
|
-
.fi
|
94
|
-
|
95
|
-
.LP
|
96
|
-
.nf
|
97
|
-
\fBvoid\fR \fBmod_ctype.wuint64\fR(\fBNumber[2]\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
98
|
-
.fi
|
99
|
-
|
100
|
-
.LP
|
101
|
-
.nf
|
102
|
-
\fBvoid\fR \fBmod_ctype.wsint8\fR(\fBNumber\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
103
|
-
.fi
|
104
|
-
|
105
|
-
.LP
|
106
|
-
.nf
|
107
|
-
\fBvoid\fR \fBmod_ctype.wsint16\fR(\fBNumber\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
108
|
-
.fi
|
109
|
-
|
110
|
-
.LP
|
111
|
-
.nf
|
112
|
-
\fBvoid\fR \fBmod_ctype.wsint32\fR(\fBNumber\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
113
|
-
.fi
|
114
|
-
|
115
|
-
.LP
|
116
|
-
.nf
|
117
|
-
\fBvoid\fR \fBmod_ctype.wsint64\fR(\fBNumber[2]\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
118
|
-
.fi
|
119
|
-
|
120
|
-
.LP
|
121
|
-
.nf
|
122
|
-
\fBvoid\fR \fBmod_ctype.wfloat\fR(\fBNumber\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
123
|
-
.fi
|
124
|
-
|
125
|
-
.LP
|
126
|
-
.nf
|
127
|
-
\fBvoid\fR \fBmod_ctype.wdouble\fR(\fBNumber\fR value, \fBString\fR \fIendian\fR, \fBBuffer\fR \fIbuf\fR, \fBNumber\fR \fIoffset\fR);
|
128
|
-
.fi
|
129
|
-
|
130
|
-
.SH DESCRIPTION
|
131
|
-
.sp
|
132
|
-
.LP
|
133
|
-
The argument \fIbuf\fR refers to a valid buffer (from calling new Buffer()). The
|
134
|
-
argument \fIendian\fR is either the string 'big' or 'little' and controls
|
135
|
-
whether the data in the buffer is interpreted as big or little endian. The argument
|
136
|
-
\fIoffset\fR indicates the starting index into the buffer to read or write. All
|
137
|
-
functions ensure that starting at \fIoffset\fR does not overflow the end of the
|
138
|
-
buffer. The argument \fIvalue\fR is a Number that is the valid type for the
|
139
|
-
specific function. All functions that take \fIvalue\fR as an argument, verify
|
140
|
-
that the passed value is valid.
|
141
|
-
|
142
|
-
.SS "\fBruint8()\fR, \fBruint16()\fR, \fBruint32()\fR"
|
143
|
-
.sp
|
144
|
-
.LP
|
145
|
-
The \fBruint8()\fR, \fBruint16()\fR, and \fBruint32()\fR functions read an 8,
|
146
|
-
16, and 32-bit unsigned value from \fIbuf\fR and return it. The value read is
|
147
|
-
influenced by the values of \fIoffset\fR and \fRendian\fI.
|
148
|
-
|
149
|
-
|
150
|
-
.SS "\fBrsint8()\fR, \fBrsint16()\fR, \fBrsint32()\fR"
|
151
|
-
.sp
|
152
|
-
.LP
|
153
|
-
The \fBruint8()\fR, \fBruint16()\fR, and \fBruint32()\fR functions work just as
|
154
|
-
\fBruint8()\fR, \fBruint16()\fR, and \fBruint32()\fR, except they return signed
|
155
|
-
integers.
|
156
|
-
|
157
|
-
.SS "\fBruint64()\fR, \fBrsint64()\fR"
|
158
|
-
.sp
|
159
|
-
.LP
|
160
|
-
The \fBruint64()\fR and \fBrsint64()\fR functions read unsigned and signed 64
|
161
|
-
bit integers respectively from \fBbuf\fR. Due to the limitations of ECMAScript's
|
162
|
-
\fBNumber\fR type, they cannot be stored as one value without a loss of
|
163
|
-
precision. Instead of returning the values as a single \fBNumber\fR, the
|
164
|
-
functions return an array of two numbers. The first entry always contains the
|
165
|
-
upper 32-bits and the second value contains the lower 32-bits. The lossy
|
166
|
-
transformation into a number would be \fIres[0]*Math.pow(2,32)+res[1]\fR.
|
167
|
-
Note that, unless an entry is zero, both array entries are guaranteed to have
|
168
|
-
the same sign.
|
169
|
-
|
170
|
-
.SS "\fBwuint8()\fR, \fBwuint16()\fR, \fBwuint32()\fR"
|
171
|
-
.sp
|
172
|
-
.LP
|
173
|
-
The functions \fBwuint8()\fR, \fBwuint16()\fR, and \fBwuint32()\fR modify the
|
174
|
-
contents of \fBbuf\fR by writing an 8, 16, and 32-bit unsigned integer
|
175
|
-
respectively to \fBbuf\fR. It is illegal to pass a number that is not an integer
|
176
|
-
within the domain of the integer size, for example, for \fBwuint8()\fR the valid
|
177
|
-
range is \fB[0, 255]\fR. The value will be written in either big or little
|
178
|
-
endian format based upon the value of \fBendian\fR.
|
179
|
-
|
180
|
-
|
181
|
-
.SS "\fBwsint8()\fR, \fBwsint16()\fR, \fBwsint32()\fR"
|
182
|
-
.sp
|
183
|
-
.LP
|
184
|
-
The functions \fBwsint8()\fR, \fBwsint16()\fR, and \fBwsint32()\fR function
|
185
|
-
identically to the functions \fBwuint8()\fR, \fBwuint16()\fR, and
|
186
|
-
\fBwuint32()\fR except that they the valid domain for \fBvalue\fR is that of a
|
187
|
-
signed number instead of an unsigned number. For example the \fBwsint8()\fR has
|
188
|
-
a domain of \fB[-128, 127]\fR.
|
189
|
-
|
190
|
-
.SS "\fBwuint64()\fR, \fBwsint64()\fR"
|
191
|
-
.sp
|
192
|
-
.LP
|
193
|
-
The functions \fBwuint64()\fR and \fBswint64()\fR write out 64-bit unsigned and
|
194
|
-
signed integers to \fBbuf\fR. The \fBvalue\fR argument must be in the same
|
195
|
-
format as described in \fBruint64()\fR and \fBrsint64()\fR.
|
196
|
-
|
197
|
-
.SS "\fBrfloat()\fR, \fBrdouble()\fR"
|
198
|
-
.sp
|
199
|
-
.LP
|
200
|
-
The functions "\fBrfloat()\fR and \fBrdouble()\fR" work like the other read
|
201
|
-
functions, except that they read a single precision and double precision
|
202
|
-
IEEE-754 floating point value instead.
|
203
|
-
|
204
|
-
.SS "\fBwfloat()\fR, \fBwdouble()\fR"
|
205
|
-
.sp
|
206
|
-
.LP
|
207
|
-
The functions "\fBrfloat()\fR and \fBrdouble()\fR" work like the other write
|
208
|
-
functions, except that the domain for a float is that of a single precision 4
|
209
|
-
byte value. The domain for a double is any \fBNumber\fR in ECMAScript, which is
|
210
|
-
defined to be represented by a double.
|
211
|
-
|
212
|
-
.SH ATTRIBUTES
|
213
|
-
.sp
|
214
|
-
.LP
|
215
|
-
See \fBattributes\fR(5) for descriptions of the following attributes:
|
216
|
-
.sp
|
217
|
-
|
218
|
-
.sp
|
219
|
-
.TS
|
220
|
-
box;
|
221
|
-
c | c
|
222
|
-
l | l .
|
223
|
-
ATTRIBUTE TYPE ATTRIBUTE VALUE
|
224
|
-
_
|
225
|
-
Interface Stability Committed
|
226
|
-
_
|
227
|
-
MT-Level See below.
|
228
|
-
_
|
229
|
-
Standard Not standardized.
|
230
|
-
.TE
|
231
|
-
|
232
|
-
.sp
|
233
|
-
.LP
|
234
|
-
|
235
|
-
All functions are MT-safe in so far as there aren't shared memory MT concerns in
|
236
|
-
most node programs. If one where to concoct such an environment, these functions
|
237
|
-
wouldn't be MT-safe.
|
238
|
-
|
239
|
-
.SH SEE ALSO
|
240
|
-
.sp
|
241
|
-
.LP
|
@@ -1,36 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "ctype",
|
3
|
-
"version": "0.5.2",
|
4
|
-
"description": "read and write binary structures and data types",
|
5
|
-
"homepage": "https://github.com/rmustacc/node-ctype",
|
6
|
-
"author": {
|
7
|
-
"name": "Robert Mustacchi",
|
8
|
-
"email": "rm@fingolfin.org"
|
9
|
-
},
|
10
|
-
"engines": {
|
11
|
-
"node": ">= 0.4"
|
12
|
-
},
|
13
|
-
"main": "ctype.js",
|
14
|
-
"_id": "ctype@0.5.2",
|
15
|
-
"dist": {
|
16
|
-
"shasum": "fe8091d468a373a0b0c9ff8bbfb3425c00973a1d",
|
17
|
-
"tarball": "http://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz"
|
18
|
-
},
|
19
|
-
"_npmVersion": "1.1.59",
|
20
|
-
"_npmUser": {
|
21
|
-
"name": "rm",
|
22
|
-
"email": "rm@fingolfin.org"
|
23
|
-
},
|
24
|
-
"maintainers": [
|
25
|
-
{
|
26
|
-
"name": "rm",
|
27
|
-
"email": "rm@fingolfin.org"
|
28
|
-
}
|
29
|
-
],
|
30
|
-
"directories": {},
|
31
|
-
"_shasum": "fe8091d468a373a0b0c9ff8bbfb3425c00973a1d",
|
32
|
-
"_from": "ctype@0.5.2",
|
33
|
-
"_resolved": "https://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz",
|
34
|
-
"readme": "ERROR: No README data found!",
|
35
|
-
"scripts": {}
|
36
|
-
}
|
@@ -1,129 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Configuration File for JavaScript Lint 0.3.0
|
3
|
-
# Developed by Matthias Miller (http://www.JavaScriptLint.com)
|
4
|
-
#
|
5
|
-
# This configuration file can be used to lint a collection of scripts, or to enable
|
6
|
-
# or disable warnings for scripts that are linted via the command line.
|
7
|
-
#
|
8
|
-
|
9
|
-
### Warnings
|
10
|
-
# Enable or disable warnings based on requirements.
|
11
|
-
# Use "+WarningName" to display or "-WarningName" to suppress.
|
12
|
-
#
|
13
|
-
+no_return_value # function {0} does not always return a value
|
14
|
-
+duplicate_formal # duplicate formal argument {0}
|
15
|
-
+equal_as_assign # test for equality (==) mistyped as assignment (=)?{0}
|
16
|
-
+var_hides_arg # variable {0} hides argument
|
17
|
-
+redeclared_var # redeclaration of {0} {1}
|
18
|
-
+anon_no_return_value # anonymous function does not always return a value
|
19
|
-
+missing_semicolon # missing semicolon
|
20
|
-
+meaningless_block # meaningless block; curly braces have no impact
|
21
|
-
+comma_separated_stmts # multiple statements separated by commas (use semicolons?)
|
22
|
-
+unreachable_code # unreachable code
|
23
|
-
+missing_break # missing break statement
|
24
|
-
+missing_break_for_last_case # missing break statement for last case in switch
|
25
|
-
+comparison_type_conv # comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==)
|
26
|
-
-inc_dec_within_stmt # increment (++) and decrement (--) operators used as part of greater statement
|
27
|
-
+useless_void # use of the void type may be unnecessary (void is always undefined)
|
28
|
-
-useless_quotes # quotation marks are unnecessary
|
29
|
-
+multiple_plus_minus # unknown order of operations for successive plus (e.g. x+++y) or minus (e.g. x---y) signs
|
30
|
-
+use_of_label # use of label
|
31
|
-
-block_without_braces # block statement without curly braces
|
32
|
-
+leading_decimal_point # leading decimal point may indicate a number or an object member
|
33
|
-
+trailing_decimal_point # trailing decimal point may indicate a number or an object member
|
34
|
-
-octal_number # leading zeros make an octal number
|
35
|
-
+nested_comment # nested comment
|
36
|
-
+misplaced_regex # regular expressions should be preceded by a left parenthesis, assignment, colon, or comma
|
37
|
-
+ambiguous_newline # unexpected end of line; it is ambiguous whether these lines are part of the same statement
|
38
|
-
+empty_statement # empty statement or extra semicolon
|
39
|
-
-missing_option_explicit # the "option explicit" control comment is missing
|
40
|
-
+partial_option_explicit # the "option explicit" control comment, if used, must be in the first script tag
|
41
|
-
+dup_option_explicit # duplicate "option explicit" control comment
|
42
|
-
+useless_assign # useless assignment
|
43
|
-
+ambiguous_nested_stmt # block statements containing block statements should use curly braces to resolve ambiguity
|
44
|
-
+ambiguous_else_stmt # the else statement could be matched with one of multiple if statements (use curly braces to indicate intent)
|
45
|
-
+missing_default_case # missing default case in switch statement
|
46
|
-
+duplicate_case_in_switch # duplicate case in switch statements
|
47
|
-
+default_not_at_end # the default case is not at the end of the switch statement
|
48
|
-
+legacy_cc_not_understood # couldn't understand control comment using /*@keyword@*/ syntax
|
49
|
-
+jsl_cc_not_understood # couldn't understand control comment using /*jsl:keyword*/ syntax
|
50
|
-
+useless_comparison # useless comparison; comparing identical expressions
|
51
|
-
+with_statement # with statement hides undeclared variables; use temporary variable instead
|
52
|
-
+trailing_comma_in_array # extra comma is not recommended in array initializers
|
53
|
-
+assign_to_function_call # assignment to a function call
|
54
|
-
+parseint_missing_radix # parseInt missing radix parameter
|
55
|
-
-unreferenced_argument # argument declared but never referenced: {name}
|
56
|
-
|
57
|
-
### Output format
|
58
|
-
# Customize the format of the error message.
|
59
|
-
# __FILE__ indicates current file path
|
60
|
-
# __FILENAME__ indicates current file name
|
61
|
-
# __LINE__ indicates current line
|
62
|
-
# __ERROR__ indicates error message
|
63
|
-
#
|
64
|
-
# Visual Studio syntax (default):
|
65
|
-
+output-format __FILE__(__LINE__): __ERROR__
|
66
|
-
# Alternative syntax:
|
67
|
-
#+output-format __FILE__:__LINE__: __ERROR__
|
68
|
-
|
69
|
-
|
70
|
-
### Context
|
71
|
-
# Show the in-line position of the error.
|
72
|
-
# Use "+context" to display or "-context" to suppress.
|
73
|
-
#
|
74
|
-
+context
|
75
|
-
|
76
|
-
|
77
|
-
### Semicolons
|
78
|
-
# By default, assignments of an anonymous function to a variable or
|
79
|
-
# property (such as a function prototype) must be followed by a semicolon.
|
80
|
-
#
|
81
|
-
#+lambda_assign_requires_semicolon # deprecated setting
|
82
|
-
|
83
|
-
|
84
|
-
### Control Comments
|
85
|
-
# Both JavaScript Lint and the JScript interpreter confuse each other with the syntax for
|
86
|
-
# the /*@keyword@*/ control comments and JScript conditional comments. (The latter is
|
87
|
-
# enabled in JScript with @cc_on@). The /*jsl:keyword*/ syntax is preferred for this reason,
|
88
|
-
# although legacy control comments are enabled by default for backward compatibility.
|
89
|
-
#
|
90
|
-
+legacy_control_comments
|
91
|
-
|
92
|
-
|
93
|
-
### JScript Function Extensions
|
94
|
-
# JScript allows member functions to be defined like this:
|
95
|
-
# function MyObj() { /*constructor*/ }
|
96
|
-
# function MyObj.prototype.go() { /*member function*/ }
|
97
|
-
#
|
98
|
-
# It also allows events to be attached like this:
|
99
|
-
# function window::onload() { /*init page*/ }
|
100
|
-
#
|
101
|
-
# This is a Microsoft-only JavaScript extension. Enable this setting to allow them.
|
102
|
-
#
|
103
|
-
#-jscript_function_extensions # deprecated setting
|
104
|
-
|
105
|
-
|
106
|
-
### Defining identifiers
|
107
|
-
# By default, "option explicit" is enabled on a per-file basis.
|
108
|
-
# To enable this for all files, use "+always_use_option_explicit"
|
109
|
-
-always_use_option_explicit
|
110
|
-
|
111
|
-
# Define certain identifiers of which the lint is not aware.
|
112
|
-
# (Use this in conjunction with the "undeclared identifier" warning.)
|
113
|
-
#
|
114
|
-
# Common uses for webpages might be:
|
115
|
-
#+define window
|
116
|
-
#+define document
|
117
|
-
+define require
|
118
|
-
+define exports
|
119
|
-
+define console
|
120
|
-
+define Buffer
|
121
|
-
+define JSON
|
122
|
-
|
123
|
-
### Files
|
124
|
-
# Specify which files to lint
|
125
|
-
# Use "+recurse" to enable recursion (disabled by default).
|
126
|
-
# To add a set of files, use "+process FileName", "+process Folder\Path\*.js",
|
127
|
-
# or "+process Folder\Path\*.htm".
|
128
|
-
#
|
129
|
-
#+process jsl-test.js
|