typespeed 2.0.21 → 2.0.22
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/dist/core.decorator.js +1 -30
- package/dist/default/default-authentication.class.js +25 -0
- package/dist/default/express-server.class.js +11 -4
- package/dist/default/log-default.class.js +0 -6
- package/dist/factory/authentication-factory.class.js +11 -0
- package/dist/factory/log-factory.class.js +9 -0
- package/dist/route.decorator.js +92 -2
- package/dist/typespeed.d.ts +25 -3
- package/dist/typespeed.js +3 -1
- package/package.json +1 -1
- package/src/core.decorator.ts +1 -29
- package/src/default/default-authentication.class.ts +10 -0
- package/src/default/express-server.class.ts +12 -5
- package/src/default/log-default.class.ts +0 -10
- package/src/factory/authentication-factory.class.ts +9 -0
- package/src/factory/log-factory.class.ts +9 -2
- package/src/route.decorator.ts +91 -3
- package/src/typespeed.d.ts +25 -3
- package/src/typespeed.ts +1 -0
- package/test/node_modules/.package-lock.json +65 -101
- package/test/node_modules/@types/body-parser/LICENSE +21 -0
- package/test/node_modules/@types/body-parser/README.md +16 -0
- package/test/node_modules/@types/body-parser/index.d.ts +107 -0
- package/test/node_modules/@types/body-parser/package.json +58 -0
- package/test/node_modules/@types/connect/LICENSE +21 -0
- package/test/node_modules/@types/connect/README.md +16 -0
- package/test/node_modules/@types/connect/index.d.ts +93 -0
- package/test/node_modules/@types/connect/package.json +32 -0
- package/test/node_modules/@types/express/LICENSE +21 -0
- package/test/node_modules/@types/express/README.md +16 -0
- package/test/node_modules/@types/express/index.d.ts +136 -0
- package/test/node_modules/@types/express/package.json +45 -0
- package/test/node_modules/@types/express-serve-static-core/LICENSE +21 -0
- package/test/node_modules/@types/express-serve-static-core/README.md +16 -0
- package/test/node_modules/@types/express-serve-static-core/index.d.ts +1281 -0
- package/test/node_modules/@types/express-serve-static-core/package.json +55 -0
- package/test/node_modules/@types/mime/LICENSE +21 -0
- package/test/node_modules/@types/mime/Mime.d.ts +10 -0
- package/test/node_modules/@types/mime/README.md +16 -0
- package/test/node_modules/@types/mime/index.d.ts +35 -0
- package/test/node_modules/@types/mime/lite.d.ts +7 -0
- package/test/node_modules/@types/mime/package.json +29 -0
- package/test/node_modules/@types/qs/LICENSE +21 -0
- package/test/node_modules/@types/qs/README.md +16 -0
- package/test/node_modules/@types/qs/index.d.ts +62 -0
- package/test/node_modules/@types/qs/package.json +65 -0
- package/test/node_modules/@types/range-parser/LICENSE +21 -0
- package/test/node_modules/@types/range-parser/README.md +55 -0
- package/test/node_modules/@types/range-parser/index.d.ts +35 -0
- package/test/node_modules/@types/range-parser/package.json +25 -0
- package/test/node_modules/@types/send/LICENSE +21 -0
- package/test/node_modules/@types/send/README.md +16 -0
- package/test/node_modules/@types/send/index.d.ts +231 -0
- package/test/node_modules/@types/send/package.json +33 -0
- package/test/node_modules/@types/serve-static/LICENSE +21 -0
- package/test/node_modules/@types/serve-static/README.md +16 -0
- package/test/node_modules/@types/serve-static/index.d.ts +113 -0
- package/test/node_modules/@types/serve-static/package.json +38 -0
- package/test/src/config.json +5 -0
- package/test/src/custom-log.class.ts +6 -0
- package/test/src/jwt-authentication.class.ts +29 -0
- package/test/src/test-request.class.ts +36 -0
- package/test/node_modules/@acuminous/bitsyntax/.github/workflows/node-js-ci.yml +0 -17
- package/test/node_modules/@acuminous/bitsyntax/.github/workflows/node-js-publish.yml +0 -30
- package/test/node_modules/@acuminous/bitsyntax/LICENSE +0 -6
- package/test/node_modules/@acuminous/bitsyntax/LICENSE-MIT +0 -21
- package/test/node_modules/@acuminous/bitsyntax/Makefile +0 -15
- package/test/node_modules/@acuminous/bitsyntax/README.md +0 -308
- package/test/node_modules/@acuminous/bitsyntax/index.js +0 -10
- package/test/node_modules/@acuminous/bitsyntax/lib/compile.js +0 -303
- package/test/node_modules/@acuminous/bitsyntax/lib/constructor.js +0 -142
- package/test/node_modules/@acuminous/bitsyntax/lib/grammar.pegjs +0 -67
- package/test/node_modules/@acuminous/bitsyntax/lib/interp.js +0 -232
- package/test/node_modules/@acuminous/bitsyntax/lib/parse.js +0 -32
- package/test/node_modules/@acuminous/bitsyntax/lib/parser.js +0 -1173
- package/test/node_modules/@acuminous/bitsyntax/lib/pattern.js +0 -119
- package/test/node_modules/@acuminous/bitsyntax/package.json +0 -36
- package/test/node_modules/@acuminous/bitsyntax/test/consing.test.js +0 -50
- package/test/node_modules/@acuminous/bitsyntax/test/matching.test.js +0 -193
- package/test/node_modules/amqplib/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/test/node_modules/amqplib/.github/workflows/test.yml +0 -38
- package/test/node_modules/amqplib/CHANGELOG.md +0 -430
- package/test/node_modules/amqplib/LICENSE +0 -6
- package/test/node_modules/amqplib/LICENSE-MIT +0 -21
- package/test/node_modules/amqplib/Makefile +0 -47
- package/test/node_modules/amqplib/README.md +0 -157
- package/test/node_modules/amqplib/bin/generate-defs.js +0 -722
- package/test/node_modules/amqplib/callback_api.js +0 -22
- package/test/node_modules/amqplib/channel_api.js +0 -16
- package/test/node_modules/amqplib/examples/headers.js +0 -42
- package/test/node_modules/amqplib/examples/receive_generator.js +0 -39
- package/test/node_modules/amqplib/examples/send_generators.js +0 -42
- package/test/node_modules/amqplib/examples/ssl.js +0 -64
- package/test/node_modules/amqplib/examples/tutorials/README.md +0 -93
- package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log.js +0 -28
- package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log_direct.js +0 -30
- package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log_topic.js +0 -27
- package/test/node_modules/amqplib/examples/tutorials/callback_api/new_task.js +0 -27
- package/test/node_modules/amqplib/examples/tutorials/callback_api/receive.js +0 -30
- package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs.js +0 -36
- package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs_direct.js +0 -56
- package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs_topic.js +0 -55
- package/test/node_modules/amqplib/examples/tutorials/callback_api/rpc_client.js +0 -49
- package/test/node_modules/amqplib/examples/tutorials/callback_api/rpc_server.js +0 -45
- package/test/node_modules/amqplib/examples/tutorials/callback_api/send.js +0 -29
- package/test/node_modules/amqplib/examples/tutorials/callback_api/worker.js +0 -35
- package/test/node_modules/amqplib/examples/tutorials/emit_log.js +0 -19
- package/test/node_modules/amqplib/examples/tutorials/emit_log_direct.js +0 -20
- package/test/node_modules/amqplib/examples/tutorials/emit_log_topic.js +0 -19
- package/test/node_modules/amqplib/examples/tutorials/new_task.js +0 -18
- package/test/node_modules/amqplib/examples/tutorials/package.json +0 -16
- package/test/node_modules/amqplib/examples/tutorials/receive.js +0 -21
- package/test/node_modules/amqplib/examples/tutorials/receive_logs.js +0 -28
- package/test/node_modules/amqplib/examples/tutorials/receive_logs_direct.js +0 -44
- package/test/node_modules/amqplib/examples/tutorials/receive_logs_topic.js +0 -43
- package/test/node_modules/amqplib/examples/tutorials/rpc_client.js +0 -52
- package/test/node_modules/amqplib/examples/tutorials/rpc_server.js +0 -39
- package/test/node_modules/amqplib/examples/tutorials/send.js +0 -23
- package/test/node_modules/amqplib/examples/tutorials/worker.js +0 -28
- package/test/node_modules/amqplib/examples/waitForConfirms.js +0 -22
- package/test/node_modules/amqplib/lib/api_args.js +0 -314
- package/test/node_modules/amqplib/lib/bitset.js +0 -130
- package/test/node_modules/amqplib/lib/callback_model.js +0 -327
- package/test/node_modules/amqplib/lib/channel.js +0 -499
- package/test/node_modules/amqplib/lib/channel_model.js +0 -302
- package/test/node_modules/amqplib/lib/codec.js +0 -321
- package/test/node_modules/amqplib/lib/connect.js +0 -189
- package/test/node_modules/amqplib/lib/connection.js +0 -663
- package/test/node_modules/amqplib/lib/credentials.js +0 -42
- package/test/node_modules/amqplib/lib/defs.js +0 -4966
- package/test/node_modules/amqplib/lib/error.js +0 -24
- package/test/node_modules/amqplib/lib/format.js +0 -40
- package/test/node_modules/amqplib/lib/frame.js +0 -113
- package/test/node_modules/amqplib/lib/heartbeat.js +0 -89
- package/test/node_modules/amqplib/lib/mux.js +0 -129
- package/test/node_modules/amqplib/package.json +0 -37
- package/test/node_modules/amqplib/test/bitset.js +0 -69
- package/test/node_modules/amqplib/test/callback_api.js +0 -312
- package/test/node_modules/amqplib/test/channel.js +0 -621
- package/test/node_modules/amqplib/test/channel_api.js +0 -596
- package/test/node_modules/amqplib/test/codec.js +0 -237
- package/test/node_modules/amqplib/test/connect.js +0 -197
- package/test/node_modules/amqplib/test/connection.js +0 -390
- package/test/node_modules/amqplib/test/data.js +0 -254
- package/test/node_modules/amqplib/test/frame.js +0 -198
- package/test/node_modules/amqplib/test/mux.js +0 -204
- package/test/node_modules/amqplib/test/util.js +0 -219
- package/test/node_modules/buffer-more-ints/.travis.yml +0 -6
- package/test/node_modules/buffer-more-ints/LICENSE +0 -19
- package/test/node_modules/buffer-more-ints/README.md +0 -69
- package/test/node_modules/buffer-more-ints/buffer-more-ints-tests.js +0 -183
- package/test/node_modules/buffer-more-ints/buffer-more-ints.js +0 -432
- package/test/node_modules/buffer-more-ints/package.json +0 -19
- package/test/node_modules/buffer-more-ints/polyfill.js +0 -71
- package/test/node_modules/core-util-is/LICENSE +0 -19
- package/test/node_modules/core-util-is/README.md +0 -3
- package/test/node_modules/core-util-is/lib/util.js +0 -107
- package/test/node_modules/core-util-is/package.json +0 -38
- package/test/node_modules/debug/LICENSE +0 -20
- package/test/node_modules/debug/README.md +0 -481
- package/test/node_modules/debug/package.json +0 -59
- package/test/node_modules/debug/src/browser.js +0 -269
- package/test/node_modules/debug/src/common.js +0 -274
- package/test/node_modules/debug/src/index.js +0 -10
- package/test/node_modules/debug/src/node.js +0 -263
- package/test/node_modules/inherits/LICENSE +0 -16
- package/test/node_modules/inherits/README.md +0 -42
- package/test/node_modules/inherits/inherits.js +0 -9
- package/test/node_modules/inherits/inherits_browser.js +0 -27
- package/test/node_modules/inherits/package.json +0 -29
- package/test/node_modules/isarray/README.md +0 -54
- package/test/node_modules/isarray/build/build.js +0 -209
- package/test/node_modules/isarray/component.json +0 -19
- package/test/node_modules/isarray/index.js +0 -3
- package/test/node_modules/isarray/package.json +0 -25
- package/test/node_modules/ms/index.js +0 -162
- package/test/node_modules/ms/license.md +0 -21
- package/test/node_modules/ms/package.json +0 -37
- package/test/node_modules/ms/readme.md +0 -60
- package/test/node_modules/querystringify/LICENSE +0 -22
- package/test/node_modules/querystringify/README.md +0 -61
- package/test/node_modules/querystringify/index.js +0 -118
- package/test/node_modules/querystringify/package.json +0 -38
- package/test/node_modules/readable-stream/LICENSE +0 -18
- package/test/node_modules/readable-stream/README.md +0 -15
- package/test/node_modules/readable-stream/duplex.js +0 -1
- package/test/node_modules/readable-stream/float.patch +0 -923
- package/test/node_modules/readable-stream/lib/_stream_duplex.js +0 -89
- package/test/node_modules/readable-stream/lib/_stream_passthrough.js +0 -46
- package/test/node_modules/readable-stream/lib/_stream_readable.js +0 -951
- package/test/node_modules/readable-stream/lib/_stream_transform.js +0 -209
- package/test/node_modules/readable-stream/lib/_stream_writable.js +0 -477
- package/test/node_modules/readable-stream/package.json +0 -32
- package/test/node_modules/readable-stream/passthrough.js +0 -1
- package/test/node_modules/readable-stream/readable.js +0 -10
- package/test/node_modules/readable-stream/transform.js +0 -1
- package/test/node_modules/readable-stream/writable.js +0 -1
- package/test/node_modules/requires-port/.travis.yml +0 -19
- package/test/node_modules/requires-port/LICENSE +0 -22
- package/test/node_modules/requires-port/README.md +0 -47
- package/test/node_modules/requires-port/index.js +0 -38
- package/test/node_modules/requires-port/package.json +0 -47
- package/test/node_modules/requires-port/test.js +0 -98
- package/test/node_modules/safe-buffer/LICENSE +0 -21
- package/test/node_modules/safe-buffer/README.md +0 -584
- package/test/node_modules/safe-buffer/index.d.ts +0 -187
- package/test/node_modules/safe-buffer/index.js +0 -62
- package/test/node_modules/safe-buffer/package.json +0 -37
- package/test/node_modules/string_decoder/LICENSE +0 -20
- package/test/node_modules/string_decoder/README.md +0 -7
- package/test/node_modules/string_decoder/index.js +0 -221
- package/test/node_modules/string_decoder/package.json +0 -25
- package/test/node_modules/url-parse/LICENSE +0 -22
- package/test/node_modules/url-parse/README.md +0 -153
- package/test/node_modules/url-parse/dist/url-parse.js +0 -755
- package/test/node_modules/url-parse/dist/url-parse.min.js +0 -1
- package/test/node_modules/url-parse/dist/url-parse.min.js.map +0 -1
- package/test/node_modules/url-parse/index.js +0 -589
- package/test/node_modules/url-parse/package.json +0 -49
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
declare module "safe-buffer" {
|
|
2
|
-
export class Buffer {
|
|
3
|
-
length: number
|
|
4
|
-
write(string: string, offset?: number, length?: number, encoding?: string): number;
|
|
5
|
-
toString(encoding?: string, start?: number, end?: number): string;
|
|
6
|
-
toJSON(): { type: 'Buffer', data: any[] };
|
|
7
|
-
equals(otherBuffer: Buffer): boolean;
|
|
8
|
-
compare(otherBuffer: Buffer, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
|
|
9
|
-
copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
|
|
10
|
-
slice(start?: number, end?: number): Buffer;
|
|
11
|
-
writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
|
12
|
-
writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
|
13
|
-
writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
|
14
|
-
writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
|
15
|
-
readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
|
|
16
|
-
readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
|
|
17
|
-
readIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
|
|
18
|
-
readIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
|
|
19
|
-
readUInt8(offset: number, noAssert?: boolean): number;
|
|
20
|
-
readUInt16LE(offset: number, noAssert?: boolean): number;
|
|
21
|
-
readUInt16BE(offset: number, noAssert?: boolean): number;
|
|
22
|
-
readUInt32LE(offset: number, noAssert?: boolean): number;
|
|
23
|
-
readUInt32BE(offset: number, noAssert?: boolean): number;
|
|
24
|
-
readInt8(offset: number, noAssert?: boolean): number;
|
|
25
|
-
readInt16LE(offset: number, noAssert?: boolean): number;
|
|
26
|
-
readInt16BE(offset: number, noAssert?: boolean): number;
|
|
27
|
-
readInt32LE(offset: number, noAssert?: boolean): number;
|
|
28
|
-
readInt32BE(offset: number, noAssert?: boolean): number;
|
|
29
|
-
readFloatLE(offset: number, noAssert?: boolean): number;
|
|
30
|
-
readFloatBE(offset: number, noAssert?: boolean): number;
|
|
31
|
-
readDoubleLE(offset: number, noAssert?: boolean): number;
|
|
32
|
-
readDoubleBE(offset: number, noAssert?: boolean): number;
|
|
33
|
-
swap16(): Buffer;
|
|
34
|
-
swap32(): Buffer;
|
|
35
|
-
swap64(): Buffer;
|
|
36
|
-
writeUInt8(value: number, offset: number, noAssert?: boolean): number;
|
|
37
|
-
writeUInt16LE(value: number, offset: number, noAssert?: boolean): number;
|
|
38
|
-
writeUInt16BE(value: number, offset: number, noAssert?: boolean): number;
|
|
39
|
-
writeUInt32LE(value: number, offset: number, noAssert?: boolean): number;
|
|
40
|
-
writeUInt32BE(value: number, offset: number, noAssert?: boolean): number;
|
|
41
|
-
writeInt8(value: number, offset: number, noAssert?: boolean): number;
|
|
42
|
-
writeInt16LE(value: number, offset: number, noAssert?: boolean): number;
|
|
43
|
-
writeInt16BE(value: number, offset: number, noAssert?: boolean): number;
|
|
44
|
-
writeInt32LE(value: number, offset: number, noAssert?: boolean): number;
|
|
45
|
-
writeInt32BE(value: number, offset: number, noAssert?: boolean): number;
|
|
46
|
-
writeFloatLE(value: number, offset: number, noAssert?: boolean): number;
|
|
47
|
-
writeFloatBE(value: number, offset: number, noAssert?: boolean): number;
|
|
48
|
-
writeDoubleLE(value: number, offset: number, noAssert?: boolean): number;
|
|
49
|
-
writeDoubleBE(value: number, offset: number, noAssert?: boolean): number;
|
|
50
|
-
fill(value: any, offset?: number, end?: number): this;
|
|
51
|
-
indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
|
|
52
|
-
lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
|
|
53
|
-
includes(value: string | number | Buffer, byteOffset?: number, encoding?: string): boolean;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Allocates a new buffer containing the given {str}.
|
|
57
|
-
*
|
|
58
|
-
* @param str String to store in buffer.
|
|
59
|
-
* @param encoding encoding to use, optional. Default is 'utf8'
|
|
60
|
-
*/
|
|
61
|
-
constructor (str: string, encoding?: string);
|
|
62
|
-
/**
|
|
63
|
-
* Allocates a new buffer of {size} octets.
|
|
64
|
-
*
|
|
65
|
-
* @param size count of octets to allocate.
|
|
66
|
-
*/
|
|
67
|
-
constructor (size: number);
|
|
68
|
-
/**
|
|
69
|
-
* Allocates a new buffer containing the given {array} of octets.
|
|
70
|
-
*
|
|
71
|
-
* @param array The octets to store.
|
|
72
|
-
*/
|
|
73
|
-
constructor (array: Uint8Array);
|
|
74
|
-
/**
|
|
75
|
-
* Produces a Buffer backed by the same allocated memory as
|
|
76
|
-
* the given {ArrayBuffer}.
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* @param arrayBuffer The ArrayBuffer with which to share memory.
|
|
80
|
-
*/
|
|
81
|
-
constructor (arrayBuffer: ArrayBuffer);
|
|
82
|
-
/**
|
|
83
|
-
* Allocates a new buffer containing the given {array} of octets.
|
|
84
|
-
*
|
|
85
|
-
* @param array The octets to store.
|
|
86
|
-
*/
|
|
87
|
-
constructor (array: any[]);
|
|
88
|
-
/**
|
|
89
|
-
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
90
|
-
*
|
|
91
|
-
* @param buffer The buffer to copy.
|
|
92
|
-
*/
|
|
93
|
-
constructor (buffer: Buffer);
|
|
94
|
-
prototype: Buffer;
|
|
95
|
-
/**
|
|
96
|
-
* Allocates a new Buffer using an {array} of octets.
|
|
97
|
-
*
|
|
98
|
-
* @param array
|
|
99
|
-
*/
|
|
100
|
-
static from(array: any[]): Buffer;
|
|
101
|
-
/**
|
|
102
|
-
* When passed a reference to the .buffer property of a TypedArray instance,
|
|
103
|
-
* the newly created Buffer will share the same allocated memory as the TypedArray.
|
|
104
|
-
* The optional {byteOffset} and {length} arguments specify a memory range
|
|
105
|
-
* within the {arrayBuffer} that will be shared by the Buffer.
|
|
106
|
-
*
|
|
107
|
-
* @param arrayBuffer The .buffer property of a TypedArray or a new ArrayBuffer()
|
|
108
|
-
* @param byteOffset
|
|
109
|
-
* @param length
|
|
110
|
-
*/
|
|
111
|
-
static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
|
|
112
|
-
/**
|
|
113
|
-
* Copies the passed {buffer} data onto a new Buffer instance.
|
|
114
|
-
*
|
|
115
|
-
* @param buffer
|
|
116
|
-
*/
|
|
117
|
-
static from(buffer: Buffer): Buffer;
|
|
118
|
-
/**
|
|
119
|
-
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
120
|
-
* If provided, the {encoding} parameter identifies the character encoding.
|
|
121
|
-
* If not provided, {encoding} defaults to 'utf8'.
|
|
122
|
-
*
|
|
123
|
-
* @param str
|
|
124
|
-
*/
|
|
125
|
-
static from(str: string, encoding?: string): Buffer;
|
|
126
|
-
/**
|
|
127
|
-
* Returns true if {obj} is a Buffer
|
|
128
|
-
*
|
|
129
|
-
* @param obj object to test.
|
|
130
|
-
*/
|
|
131
|
-
static isBuffer(obj: any): obj is Buffer;
|
|
132
|
-
/**
|
|
133
|
-
* Returns true if {encoding} is a valid encoding argument.
|
|
134
|
-
* Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
|
|
135
|
-
*
|
|
136
|
-
* @param encoding string to test.
|
|
137
|
-
*/
|
|
138
|
-
static isEncoding(encoding: string): boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Gives the actual byte length of a string. encoding defaults to 'utf8'.
|
|
141
|
-
* This is not the same as String.prototype.length since that returns the number of characters in a string.
|
|
142
|
-
*
|
|
143
|
-
* @param string string to test.
|
|
144
|
-
* @param encoding encoding used to evaluate (defaults to 'utf8')
|
|
145
|
-
*/
|
|
146
|
-
static byteLength(string: string, encoding?: string): number;
|
|
147
|
-
/**
|
|
148
|
-
* Returns a buffer which is the result of concatenating all the buffers in the list together.
|
|
149
|
-
*
|
|
150
|
-
* If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer.
|
|
151
|
-
* If the list has exactly one item, then the first item of the list is returned.
|
|
152
|
-
* If the list has more than one item, then a new Buffer is created.
|
|
153
|
-
*
|
|
154
|
-
* @param list An array of Buffer objects to concatenate
|
|
155
|
-
* @param totalLength Total length of the buffers when concatenated.
|
|
156
|
-
* If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
|
|
157
|
-
*/
|
|
158
|
-
static concat(list: Buffer[], totalLength?: number): Buffer;
|
|
159
|
-
/**
|
|
160
|
-
* The same as buf1.compare(buf2).
|
|
161
|
-
*/
|
|
162
|
-
static compare(buf1: Buffer, buf2: Buffer): number;
|
|
163
|
-
/**
|
|
164
|
-
* Allocates a new buffer of {size} octets.
|
|
165
|
-
*
|
|
166
|
-
* @param size count of octets to allocate.
|
|
167
|
-
* @param fill if specified, buffer will be initialized by calling buf.fill(fill).
|
|
168
|
-
* If parameter is omitted, buffer will be filled with zeros.
|
|
169
|
-
* @param encoding encoding used for call to buf.fill while initalizing
|
|
170
|
-
*/
|
|
171
|
-
static alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer;
|
|
172
|
-
/**
|
|
173
|
-
* Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents
|
|
174
|
-
* of the newly created Buffer are unknown and may contain sensitive data.
|
|
175
|
-
*
|
|
176
|
-
* @param size count of octets to allocate
|
|
177
|
-
*/
|
|
178
|
-
static allocUnsafe(size: number): Buffer;
|
|
179
|
-
/**
|
|
180
|
-
* Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents
|
|
181
|
-
* of the newly created Buffer are unknown and may contain sensitive data.
|
|
182
|
-
*
|
|
183
|
-
* @param size count of octets to allocate
|
|
184
|
-
*/
|
|
185
|
-
static allocUnsafeSlow(size: number): Buffer;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/* eslint-disable node/no-deprecated-api */
|
|
2
|
-
var buffer = require('buffer')
|
|
3
|
-
var Buffer = buffer.Buffer
|
|
4
|
-
|
|
5
|
-
// alternative to using Object.keys for old browsers
|
|
6
|
-
function copyProps (src, dst) {
|
|
7
|
-
for (var key in src) {
|
|
8
|
-
dst[key] = src[key]
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
|
|
12
|
-
module.exports = buffer
|
|
13
|
-
} else {
|
|
14
|
-
// Copy properties from require('buffer')
|
|
15
|
-
copyProps(buffer, exports)
|
|
16
|
-
exports.Buffer = SafeBuffer
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function SafeBuffer (arg, encodingOrOffset, length) {
|
|
20
|
-
return Buffer(arg, encodingOrOffset, length)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Copy static methods from Buffer
|
|
24
|
-
copyProps(Buffer, SafeBuffer)
|
|
25
|
-
|
|
26
|
-
SafeBuffer.from = function (arg, encodingOrOffset, length) {
|
|
27
|
-
if (typeof arg === 'number') {
|
|
28
|
-
throw new TypeError('Argument must not be a number')
|
|
29
|
-
}
|
|
30
|
-
return Buffer(arg, encodingOrOffset, length)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
SafeBuffer.alloc = function (size, fill, encoding) {
|
|
34
|
-
if (typeof size !== 'number') {
|
|
35
|
-
throw new TypeError('Argument must be a number')
|
|
36
|
-
}
|
|
37
|
-
var buf = Buffer(size)
|
|
38
|
-
if (fill !== undefined) {
|
|
39
|
-
if (typeof encoding === 'string') {
|
|
40
|
-
buf.fill(fill, encoding)
|
|
41
|
-
} else {
|
|
42
|
-
buf.fill(fill)
|
|
43
|
-
}
|
|
44
|
-
} else {
|
|
45
|
-
buf.fill(0)
|
|
46
|
-
}
|
|
47
|
-
return buf
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
SafeBuffer.allocUnsafe = function (size) {
|
|
51
|
-
if (typeof size !== 'number') {
|
|
52
|
-
throw new TypeError('Argument must be a number')
|
|
53
|
-
}
|
|
54
|
-
return Buffer(size)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
SafeBuffer.allocUnsafeSlow = function (size) {
|
|
58
|
-
if (typeof size !== 'number') {
|
|
59
|
-
throw new TypeError('Argument must be a number')
|
|
60
|
-
}
|
|
61
|
-
return buffer.SlowBuffer(size)
|
|
62
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "safe-buffer",
|
|
3
|
-
"description": "Safer Node.js Buffer API",
|
|
4
|
-
"version": "5.1.2",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Feross Aboukhadijeh",
|
|
7
|
-
"email": "feross@feross.org",
|
|
8
|
-
"url": "http://feross.org"
|
|
9
|
-
},
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "https://github.com/feross/safe-buffer/issues"
|
|
12
|
-
},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"standard": "*",
|
|
15
|
-
"tape": "^4.0.0"
|
|
16
|
-
},
|
|
17
|
-
"homepage": "https://github.com/feross/safe-buffer",
|
|
18
|
-
"keywords": [
|
|
19
|
-
"buffer",
|
|
20
|
-
"buffer allocate",
|
|
21
|
-
"node security",
|
|
22
|
-
"safe",
|
|
23
|
-
"safe-buffer",
|
|
24
|
-
"security",
|
|
25
|
-
"uninitialized"
|
|
26
|
-
],
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"main": "index.js",
|
|
29
|
-
"types": "index.d.ts",
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git://github.com/feross/safe-buffer.git"
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"test": "standard && tape test/*.js"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright Joyent, Inc. and other Node contributors.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
-
copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
-
persons to whom the Software is furnished to do so, subject to the
|
|
9
|
-
following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included
|
|
12
|
-
in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15
|
-
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
17
|
-
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
-
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
|
-
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
|
-
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
**string_decoder.js** (`require('string_decoder')`) from Node.js core
|
|
2
|
-
|
|
3
|
-
Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details.
|
|
4
|
-
|
|
5
|
-
Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.**
|
|
6
|
-
|
|
7
|
-
The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version.
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
-
// copy of this software and associated documentation files (the
|
|
5
|
-
// "Software"), to deal in the Software without restriction, including
|
|
6
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
9
|
-
// following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included
|
|
12
|
-
// in all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
17
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
-
|
|
22
|
-
var Buffer = require('buffer').Buffer;
|
|
23
|
-
|
|
24
|
-
var isBufferEncoding = Buffer.isEncoding
|
|
25
|
-
|| function(encoding) {
|
|
26
|
-
switch (encoding && encoding.toLowerCase()) {
|
|
27
|
-
case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;
|
|
28
|
-
default: return false;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
function assertEncoding(encoding) {
|
|
34
|
-
if (encoding && !isBufferEncoding(encoding)) {
|
|
35
|
-
throw new Error('Unknown encoding: ' + encoding);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// StringDecoder provides an interface for efficiently splitting a series of
|
|
40
|
-
// buffers into a series of JS strings without breaking apart multi-byte
|
|
41
|
-
// characters. CESU-8 is handled as part of the UTF-8 encoding.
|
|
42
|
-
//
|
|
43
|
-
// @TODO Handling all encodings inside a single object makes it very difficult
|
|
44
|
-
// to reason about this code, so it should be split up in the future.
|
|
45
|
-
// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code
|
|
46
|
-
// points as used by CESU-8.
|
|
47
|
-
var StringDecoder = exports.StringDecoder = function(encoding) {
|
|
48
|
-
this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');
|
|
49
|
-
assertEncoding(encoding);
|
|
50
|
-
switch (this.encoding) {
|
|
51
|
-
case 'utf8':
|
|
52
|
-
// CESU-8 represents each of Surrogate Pair by 3-bytes
|
|
53
|
-
this.surrogateSize = 3;
|
|
54
|
-
break;
|
|
55
|
-
case 'ucs2':
|
|
56
|
-
case 'utf16le':
|
|
57
|
-
// UTF-16 represents each of Surrogate Pair by 2-bytes
|
|
58
|
-
this.surrogateSize = 2;
|
|
59
|
-
this.detectIncompleteChar = utf16DetectIncompleteChar;
|
|
60
|
-
break;
|
|
61
|
-
case 'base64':
|
|
62
|
-
// Base-64 stores 3 bytes in 4 chars, and pads the remainder.
|
|
63
|
-
this.surrogateSize = 3;
|
|
64
|
-
this.detectIncompleteChar = base64DetectIncompleteChar;
|
|
65
|
-
break;
|
|
66
|
-
default:
|
|
67
|
-
this.write = passThroughWrite;
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// Enough space to store all bytes of a single character. UTF-8 needs 4
|
|
72
|
-
// bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).
|
|
73
|
-
this.charBuffer = new Buffer(6);
|
|
74
|
-
// Number of bytes received for the current incomplete multi-byte character.
|
|
75
|
-
this.charReceived = 0;
|
|
76
|
-
// Number of bytes expected for the current incomplete multi-byte character.
|
|
77
|
-
this.charLength = 0;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
// write decodes the given buffer and returns it as JS string that is
|
|
82
|
-
// guaranteed to not contain any partial multi-byte characters. Any partial
|
|
83
|
-
// character found at the end of the buffer is buffered up, and will be
|
|
84
|
-
// returned when calling write again with the remaining bytes.
|
|
85
|
-
//
|
|
86
|
-
// Note: Converting a Buffer containing an orphan surrogate to a String
|
|
87
|
-
// currently works, but converting a String to a Buffer (via `new Buffer`, or
|
|
88
|
-
// Buffer#write) will replace incomplete surrogates with the unicode
|
|
89
|
-
// replacement character. See https://codereview.chromium.org/121173009/ .
|
|
90
|
-
StringDecoder.prototype.write = function(buffer) {
|
|
91
|
-
var charStr = '';
|
|
92
|
-
// if our last write ended with an incomplete multibyte character
|
|
93
|
-
while (this.charLength) {
|
|
94
|
-
// determine how many remaining bytes this buffer has to offer for this char
|
|
95
|
-
var available = (buffer.length >= this.charLength - this.charReceived) ?
|
|
96
|
-
this.charLength - this.charReceived :
|
|
97
|
-
buffer.length;
|
|
98
|
-
|
|
99
|
-
// add the new bytes to the char buffer
|
|
100
|
-
buffer.copy(this.charBuffer, this.charReceived, 0, available);
|
|
101
|
-
this.charReceived += available;
|
|
102
|
-
|
|
103
|
-
if (this.charReceived < this.charLength) {
|
|
104
|
-
// still not enough chars in this buffer? wait for more ...
|
|
105
|
-
return '';
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// remove bytes belonging to the current character from the buffer
|
|
109
|
-
buffer = buffer.slice(available, buffer.length);
|
|
110
|
-
|
|
111
|
-
// get the character that was split
|
|
112
|
-
charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);
|
|
113
|
-
|
|
114
|
-
// CESU-8: lead surrogate (D800-DBFF) is also the incomplete character
|
|
115
|
-
var charCode = charStr.charCodeAt(charStr.length - 1);
|
|
116
|
-
if (charCode >= 0xD800 && charCode <= 0xDBFF) {
|
|
117
|
-
this.charLength += this.surrogateSize;
|
|
118
|
-
charStr = '';
|
|
119
|
-
continue;
|
|
120
|
-
}
|
|
121
|
-
this.charReceived = this.charLength = 0;
|
|
122
|
-
|
|
123
|
-
// if there are no more bytes in this buffer, just emit our char
|
|
124
|
-
if (buffer.length === 0) {
|
|
125
|
-
return charStr;
|
|
126
|
-
}
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// determine and set charLength / charReceived
|
|
131
|
-
this.detectIncompleteChar(buffer);
|
|
132
|
-
|
|
133
|
-
var end = buffer.length;
|
|
134
|
-
if (this.charLength) {
|
|
135
|
-
// buffer the incomplete character bytes we got
|
|
136
|
-
buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);
|
|
137
|
-
end -= this.charReceived;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
charStr += buffer.toString(this.encoding, 0, end);
|
|
141
|
-
|
|
142
|
-
var end = charStr.length - 1;
|
|
143
|
-
var charCode = charStr.charCodeAt(end);
|
|
144
|
-
// CESU-8: lead surrogate (D800-DBFF) is also the incomplete character
|
|
145
|
-
if (charCode >= 0xD800 && charCode <= 0xDBFF) {
|
|
146
|
-
var size = this.surrogateSize;
|
|
147
|
-
this.charLength += size;
|
|
148
|
-
this.charReceived += size;
|
|
149
|
-
this.charBuffer.copy(this.charBuffer, size, 0, size);
|
|
150
|
-
buffer.copy(this.charBuffer, 0, 0, size);
|
|
151
|
-
return charStr.substring(0, end);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// or just emit the charStr
|
|
155
|
-
return charStr;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
// detectIncompleteChar determines if there is an incomplete UTF-8 character at
|
|
159
|
-
// the end of the given buffer. If so, it sets this.charLength to the byte
|
|
160
|
-
// length that character, and sets this.charReceived to the number of bytes
|
|
161
|
-
// that are available for this character.
|
|
162
|
-
StringDecoder.prototype.detectIncompleteChar = function(buffer) {
|
|
163
|
-
// determine how many bytes we have to check at the end of this buffer
|
|
164
|
-
var i = (buffer.length >= 3) ? 3 : buffer.length;
|
|
165
|
-
|
|
166
|
-
// Figure out if one of the last i bytes of our buffer announces an
|
|
167
|
-
// incomplete char.
|
|
168
|
-
for (; i > 0; i--) {
|
|
169
|
-
var c = buffer[buffer.length - i];
|
|
170
|
-
|
|
171
|
-
// See http://en.wikipedia.org/wiki/UTF-8#Description
|
|
172
|
-
|
|
173
|
-
// 110XXXXX
|
|
174
|
-
if (i == 1 && c >> 5 == 0x06) {
|
|
175
|
-
this.charLength = 2;
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// 1110XXXX
|
|
180
|
-
if (i <= 2 && c >> 4 == 0x0E) {
|
|
181
|
-
this.charLength = 3;
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// 11110XXX
|
|
186
|
-
if (i <= 3 && c >> 3 == 0x1E) {
|
|
187
|
-
this.charLength = 4;
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
this.charReceived = i;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
StringDecoder.prototype.end = function(buffer) {
|
|
195
|
-
var res = '';
|
|
196
|
-
if (buffer && buffer.length)
|
|
197
|
-
res = this.write(buffer);
|
|
198
|
-
|
|
199
|
-
if (this.charReceived) {
|
|
200
|
-
var cr = this.charReceived;
|
|
201
|
-
var buf = this.charBuffer;
|
|
202
|
-
var enc = this.encoding;
|
|
203
|
-
res += buf.slice(0, cr).toString(enc);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return res;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
function passThroughWrite(buffer) {
|
|
210
|
-
return buffer.toString(this.encoding);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function utf16DetectIncompleteChar(buffer) {
|
|
214
|
-
this.charReceived = buffer.length % 2;
|
|
215
|
-
this.charLength = this.charReceived ? 2 : 0;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
function base64DetectIncompleteChar(buffer) {
|
|
219
|
-
this.charReceived = buffer.length % 3;
|
|
220
|
-
this.charLength = this.charReceived ? 3 : 0;
|
|
221
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "string_decoder",
|
|
3
|
-
"version": "0.10.31",
|
|
4
|
-
"description": "The string_decoder module from Node core",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"dependencies": {},
|
|
7
|
-
"devDependencies": {
|
|
8
|
-
"tap": "~0.4.8"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"test": "tap test/simple/*.js"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git://github.com/rvagg/string_decoder.git"
|
|
16
|
-
},
|
|
17
|
-
"homepage": "https://github.com/rvagg/string_decoder",
|
|
18
|
-
"keywords": [
|
|
19
|
-
"string",
|
|
20
|
-
"decoder",
|
|
21
|
-
"browser",
|
|
22
|
-
"browserify"
|
|
23
|
-
],
|
|
24
|
-
"license": "MIT"
|
|
25
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015 Unshift.io, Arnout Kazemier, the Contributors.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
|