node-red-contrib-web-worldmap 2.23.4 → 2.24.2
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/CHANGELOG.md +4 -0
- package/README.md +15 -4
- package/node_modules/body-parser/HISTORY.md +15 -0
- package/node_modules/body-parser/README.md +25 -12
- package/node_modules/body-parser/node_modules/bytes/History.md +5 -0
- package/node_modules/body-parser/node_modules/bytes/Readme.md +42 -16
- package/node_modules/body-parser/node_modules/bytes/index.js +5 -1
- package/node_modules/body-parser/node_modules/bytes/package.json +20 -22
- package/node_modules/body-parser/package.json +34 -37
- package/node_modules/content-disposition/HISTORY.md +5 -0
- package/node_modules/content-disposition/README.md +3 -9
- package/node_modules/content-disposition/index.js +1 -1
- package/node_modules/content-disposition/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/package.json +76 -0
- package/node_modules/content-disposition/package.json +27 -30
- package/node_modules/cookie/HISTORY.md +5 -0
- package/node_modules/cookie/README.md +4 -0
- package/node_modules/cookie/index.js +5 -1
- package/node_modules/cookie/package.json +22 -25
- package/node_modules/express/History.md +33 -0
- package/node_modules/express/Readme.md +8 -5
- package/node_modules/express/lib/application.js +1 -1
- package/node_modules/express/lib/request.js +1 -1
- package/node_modules/express/lib/response.js +16 -11
- package/node_modules/express/lib/router/index.js +6 -0
- package/node_modules/express/lib/utils.js +2 -6
- package/node_modules/express/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/express/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/express/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/express/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/express/node_modules/safe-buffer/package.json +76 -0
- package/node_modules/express/package.json +37 -39
- package/node_modules/faye-websocket/CHANGELOG.md +5 -0
- package/node_modules/faye-websocket/LICENSE.md +1 -1
- package/node_modules/faye-websocket/README.md +13 -13
- package/node_modules/faye-websocket/lib/faye/websocket/api.js +10 -8
- package/node_modules/faye-websocket/lib/faye/websocket/client.js +4 -4
- package/node_modules/faye-websocket/lib/faye/websocket.js +1 -1
- package/node_modules/faye-websocket/package.json +16 -19
- package/node_modules/forwarded/HISTORY.md +5 -0
- package/node_modules/forwarded/README.md +3 -3
- package/node_modules/forwarded/index.js +15 -1
- package/node_modules/forwarded/package.json +27 -28
- package/node_modules/http-errors/HISTORY.md +16 -0
- package/node_modules/http-errors/README.md +12 -6
- package/node_modules/http-errors/index.js +35 -2
- package/node_modules/http-errors/package.json +32 -35
- package/node_modules/inherits/inherits.js +2 -0
- package/node_modules/inherits/inherits_browser.js +18 -14
- package/node_modules/inherits/package.json +17 -20
- package/node_modules/ipaddr.js/README.md +1 -1
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +6 -9
- package/node_modules/ipaddr.js/package.json +17 -19
- package/node_modules/proxy-addr/HISTORY.md +11 -0
- package/node_modules/proxy-addr/README.md +3 -19
- package/node_modules/proxy-addr/index.js +1 -1
- package/node_modules/proxy-addr/package.json +30 -33
- package/node_modules/qs/.editorconfig +9 -0
- package/node_modules/qs/.eslintignore +2 -1
- package/node_modules/qs/.eslintrc +15 -1
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +103 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +34 -0
- package/node_modules/qs/dist/qs.js +117 -67
- package/node_modules/qs/lib/formats.js +9 -4
- package/node_modules/qs/lib/parse.js +29 -14
- package/node_modules/qs/lib/stringify.js +55 -46
- package/node_modules/qs/lib/utils.js +23 -2
- package/node_modules/qs/package.json +42 -34
- package/node_modules/qs/test/parse.js +97 -1
- package/node_modules/qs/test/stringify.js +115 -1
- package/node_modules/qs/test/utils.js +1 -1
- package/node_modules/raw-body/HISTORY.md +14 -0
- package/node_modules/raw-body/README.md +3 -5
- package/node_modules/raw-body/node_modules/bytes/History.md +5 -0
- package/node_modules/raw-body/node_modules/bytes/Readme.md +42 -16
- package/node_modules/raw-body/node_modules/bytes/index.js +5 -1
- package/node_modules/raw-body/node_modules/bytes/package.json +20 -22
- package/node_modules/raw-body/package.json +32 -35
- package/node_modules/send/HISTORY.md +10 -0
- package/node_modules/send/README.md +4 -6
- package/node_modules/send/index.js +7 -3
- package/node_modules/send/node_modules/ms/index.js +3 -3
- package/node_modules/send/node_modules/ms/license.md +1 -1
- package/node_modules/send/node_modules/ms/package.json +21 -23
- package/node_modules/send/node_modules/ms/readme.md +1 -2
- package/node_modules/send/package.json +31 -34
- package/node_modules/serve-static/HISTORY.md +8 -0
- package/node_modules/serve-static/README.md +9 -11
- package/node_modules/serve-static/package.json +30 -33
- package/node_modules/setprototypeof/README.md +1 -1
- package/node_modules/setprototypeof/index.js +1 -1
- package/node_modules/setprototypeof/package.json +20 -21
- package/node_modules/sockjs/Changelog +12 -0
- package/node_modules/sockjs/lib/transport.js +1 -1
- package/node_modules/sockjs/package.json +16 -19
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/README.md +3 -3
- package/node_modules/toidentifier/index.js +2 -0
- package/node_modules/toidentifier/package.json +30 -29
- package/node_modules/uuid/CHANGELOG.md +154 -44
- package/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/uuid/LICENSE.md +4 -16
- package/node_modules/uuid/README.md +384 -155
- package/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/uuid/{lib/md5-browser.js → dist/esm-browser/md5.js} +70 -71
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/node_modules/uuid/{v1.js → dist/esm-browser/v1.js} +36 -50
- package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/uuid/dist/rng-browser.js +26 -0
- package/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/uuid/dist/stringify.js +39 -0
- package/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/uuid/dist/v35.js +78 -0
- package/node_modules/uuid/dist/v4.js +37 -0
- package/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/uuid/package.json +118 -57
- package/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/websocket-driver/node_modules/http-parser-js/package.json +4 -4
- package/package.json +3 -3
- package/worldmap/css/worldmap.css +6 -5
- package/worldmap/index.html +1 -0
- package/worldmap/leaflet/leaflet-arc.min.js +1 -0
- package/worldmap/worldmap.js +46 -27
- package/worldmap.html +1 -1
- package/worldmap.js +2 -2
- package/node_modules/qs/LICENSE +0 -28
- package/node_modules/qs/test/.eslintrc +0 -17
- package/node_modules/qs/test/index.js +0 -7
- package/node_modules/uuid/AUTHORS +0 -5
- package/node_modules/uuid/bin/uuid +0 -65
- package/node_modules/uuid/index.js +0 -8
- package/node_modules/uuid/lib/bytesToUuid.js +0 -26
- package/node_modules/uuid/lib/md5.js +0 -25
- package/node_modules/uuid/lib/rng-browser.js +0 -34
- package/node_modules/uuid/lib/rng.js +0 -8
- package/node_modules/uuid/lib/sha1-browser.js +0 -89
- package/node_modules/uuid/lib/sha1.js +0 -25
- package/node_modules/uuid/lib/v35.js +0 -57
- package/node_modules/uuid/v3.js +0 -4
- package/node_modules/uuid/v4.js +0 -29
- package/node_modules/uuid/v5.js +0 -3
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2
|
+
/* eslint-disable node/no-deprecated-api */
|
|
3
|
+
var buffer = require('buffer')
|
|
4
|
+
var Buffer = buffer.Buffer
|
|
5
|
+
|
|
6
|
+
// alternative to using Object.keys for old browsers
|
|
7
|
+
function copyProps (src, dst) {
|
|
8
|
+
for (var key in src) {
|
|
9
|
+
dst[key] = src[key]
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
|
|
13
|
+
module.exports = buffer
|
|
14
|
+
} else {
|
|
15
|
+
// Copy properties from require('buffer')
|
|
16
|
+
copyProps(buffer, exports)
|
|
17
|
+
exports.Buffer = SafeBuffer
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function SafeBuffer (arg, encodingOrOffset, length) {
|
|
21
|
+
return Buffer(arg, encodingOrOffset, length)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
SafeBuffer.prototype = Object.create(Buffer.prototype)
|
|
25
|
+
|
|
26
|
+
// Copy static methods from Buffer
|
|
27
|
+
copyProps(Buffer, SafeBuffer)
|
|
28
|
+
|
|
29
|
+
SafeBuffer.from = function (arg, encodingOrOffset, length) {
|
|
30
|
+
if (typeof arg === 'number') {
|
|
31
|
+
throw new TypeError('Argument must not be a number')
|
|
32
|
+
}
|
|
33
|
+
return Buffer(arg, encodingOrOffset, length)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
SafeBuffer.alloc = function (size, fill, encoding) {
|
|
37
|
+
if (typeof size !== 'number') {
|
|
38
|
+
throw new TypeError('Argument must be a number')
|
|
39
|
+
}
|
|
40
|
+
var buf = Buffer(size)
|
|
41
|
+
if (fill !== undefined) {
|
|
42
|
+
if (typeof encoding === 'string') {
|
|
43
|
+
buf.fill(fill, encoding)
|
|
44
|
+
} else {
|
|
45
|
+
buf.fill(fill)
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
buf.fill(0)
|
|
49
|
+
}
|
|
50
|
+
return buf
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
SafeBuffer.allocUnsafe = function (size) {
|
|
54
|
+
if (typeof size !== 'number') {
|
|
55
|
+
throw new TypeError('Argument must be a number')
|
|
56
|
+
}
|
|
57
|
+
return Buffer(size)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
SafeBuffer.allocUnsafeSlow = function (size) {
|
|
61
|
+
if (typeof size !== 'number') {
|
|
62
|
+
throw new TypeError('Argument must be a number')
|
|
63
|
+
}
|
|
64
|
+
return buffer.SlowBuffer(size)
|
|
65
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_from": "safe-buffer@5.2.1",
|
|
3
|
+
"_id": "safe-buffer@5.2.1",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
|
6
|
+
"_location": "/node-red-contrib-web-worldmap/content-disposition/safe-buffer",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "version",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "safe-buffer@5.2.1",
|
|
12
|
+
"name": "safe-buffer",
|
|
13
|
+
"escapedName": "safe-buffer",
|
|
14
|
+
"rawSpec": "5.2.1",
|
|
15
|
+
"saveSpec": null,
|
|
16
|
+
"fetchSpec": "5.2.1"
|
|
17
|
+
},
|
|
18
|
+
"_requiredBy": [
|
|
19
|
+
"/node-red-contrib-web-worldmap/content-disposition"
|
|
20
|
+
],
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
|
22
|
+
"_shasum": "1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6",
|
|
23
|
+
"_spec": "safe-buffer@5.2.1",
|
|
24
|
+
"_where": "/Users/conway/Projects/worldmap/node_modules/content-disposition",
|
|
25
|
+
"author": {
|
|
26
|
+
"name": "Feross Aboukhadijeh",
|
|
27
|
+
"email": "feross@feross.org",
|
|
28
|
+
"url": "https://feross.org"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/feross/safe-buffer/issues"
|
|
32
|
+
},
|
|
33
|
+
"bundleDependencies": false,
|
|
34
|
+
"deprecated": false,
|
|
35
|
+
"description": "Safer Node.js Buffer API",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"standard": "*",
|
|
38
|
+
"tape": "^5.0.0"
|
|
39
|
+
},
|
|
40
|
+
"funding": [
|
|
41
|
+
{
|
|
42
|
+
"type": "github",
|
|
43
|
+
"url": "https://github.com/sponsors/feross"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "patreon",
|
|
47
|
+
"url": "https://www.patreon.com/feross"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "consulting",
|
|
51
|
+
"url": "https://feross.org/support"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"homepage": "https://github.com/feross/safe-buffer",
|
|
55
|
+
"keywords": [
|
|
56
|
+
"buffer",
|
|
57
|
+
"buffer allocate",
|
|
58
|
+
"node security",
|
|
59
|
+
"safe",
|
|
60
|
+
"safe-buffer",
|
|
61
|
+
"security",
|
|
62
|
+
"uninitialized"
|
|
63
|
+
],
|
|
64
|
+
"license": "MIT",
|
|
65
|
+
"main": "index.js",
|
|
66
|
+
"name": "safe-buffer",
|
|
67
|
+
"repository": {
|
|
68
|
+
"type": "git",
|
|
69
|
+
"url": "git://github.com/feross/safe-buffer.git"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"test": "standard && tape test/*.js"
|
|
73
|
+
},
|
|
74
|
+
"types": "index.d.ts",
|
|
75
|
+
"version": "5.2.1"
|
|
76
|
+
}
|
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"content-disposition@0.5.3",
|
|
5
|
-
"/Users/conway/Projects/worldmap"
|
|
6
|
-
]
|
|
7
|
-
],
|
|
8
|
-
"_from": "content-disposition@0.5.3",
|
|
9
|
-
"_id": "content-disposition@0.5.3",
|
|
2
|
+
"_from": "content-disposition@0.5.4",
|
|
3
|
+
"_id": "content-disposition@0.5.4",
|
|
10
4
|
"_inBundle": false,
|
|
11
|
-
"_integrity": "sha512-
|
|
12
|
-
"_location": "/content-disposition",
|
|
5
|
+
"_integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
|
6
|
+
"_location": "/node-red-contrib-web-worldmap/content-disposition",
|
|
13
7
|
"_phantomChildren": {},
|
|
14
8
|
"_requested": {
|
|
15
9
|
"type": "version",
|
|
16
10
|
"registry": true,
|
|
17
|
-
"raw": "content-disposition@0.5.
|
|
11
|
+
"raw": "content-disposition@0.5.4",
|
|
18
12
|
"name": "content-disposition",
|
|
19
13
|
"escapedName": "content-disposition",
|
|
20
|
-
"rawSpec": "0.5.
|
|
14
|
+
"rawSpec": "0.5.4",
|
|
21
15
|
"saveSpec": null,
|
|
22
|
-
"fetchSpec": "0.5.
|
|
16
|
+
"fetchSpec": "0.5.4"
|
|
23
17
|
},
|
|
24
18
|
"_requiredBy": [
|
|
25
|
-
"/express"
|
|
19
|
+
"/node-red-contrib-web-worldmap/express"
|
|
26
20
|
],
|
|
27
|
-
"_resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.
|
|
28
|
-
"
|
|
29
|
-
"
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
|
22
|
+
"_shasum": "8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe",
|
|
23
|
+
"_spec": "content-disposition@0.5.4",
|
|
24
|
+
"_where": "/Users/conway/Projects/worldmap/node_modules/express",
|
|
30
25
|
"author": {
|
|
31
26
|
"name": "Douglas Christopher Wilson",
|
|
32
27
|
"email": "doug@somethingdoug.com"
|
|
@@ -34,21 +29,23 @@
|
|
|
34
29
|
"bugs": {
|
|
35
30
|
"url": "https://github.com/jshttp/content-disposition/issues"
|
|
36
31
|
},
|
|
32
|
+
"bundleDependencies": false,
|
|
37
33
|
"dependencies": {
|
|
38
|
-
"safe-buffer": "5.1
|
|
34
|
+
"safe-buffer": "5.2.1"
|
|
39
35
|
},
|
|
36
|
+
"deprecated": false,
|
|
40
37
|
"description": "Create and parse Content-Disposition header",
|
|
41
38
|
"devDependencies": {
|
|
42
39
|
"deep-equal": "1.0.1",
|
|
43
|
-
"eslint": "
|
|
44
|
-
"eslint-config-standard": "
|
|
45
|
-
"eslint-plugin-import": "2.
|
|
46
|
-
"eslint-plugin-markdown": "
|
|
47
|
-
"eslint-plugin-node": "
|
|
48
|
-
"eslint-plugin-promise": "
|
|
49
|
-
"eslint-plugin-standard": "4.
|
|
40
|
+
"eslint": "7.32.0",
|
|
41
|
+
"eslint-config-standard": "13.0.1",
|
|
42
|
+
"eslint-plugin-import": "2.25.3",
|
|
43
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
44
|
+
"eslint-plugin-node": "11.1.0",
|
|
45
|
+
"eslint-plugin-promise": "5.2.0",
|
|
46
|
+
"eslint-plugin-standard": "4.1.0",
|
|
50
47
|
"istanbul": "0.4.5",
|
|
51
|
-
"mocha": "
|
|
48
|
+
"mocha": "9.1.3"
|
|
52
49
|
},
|
|
53
50
|
"engines": {
|
|
54
51
|
"node": ">= 0.6"
|
|
@@ -73,10 +70,10 @@
|
|
|
73
70
|
"url": "git+https://github.com/jshttp/content-disposition.git"
|
|
74
71
|
},
|
|
75
72
|
"scripts": {
|
|
76
|
-
"lint": "eslint
|
|
73
|
+
"lint": "eslint .",
|
|
77
74
|
"test": "mocha --reporter spec --bail --check-leaks test/",
|
|
78
|
-
"test-
|
|
79
|
-
"test-
|
|
75
|
+
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
|
|
76
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
|
|
80
77
|
},
|
|
81
|
-
"version": "0.5.
|
|
78
|
+
"version": "0.5.4"
|
|
82
79
|
}
|
|
@@ -10,6 +10,10 @@ Basic HTTP cookie parser and serializer for HTTP servers.
|
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
|
+
This is a [Node.js](https://nodejs.org/en/) module available through the
|
|
14
|
+
[npm registry](https://www.npmjs.com/). Installation is done using the
|
|
15
|
+
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
|
|
16
|
+
|
|
13
17
|
```sh
|
|
14
18
|
$ npm install cookie
|
|
15
19
|
```
|
|
@@ -120,7 +120,11 @@ function serialize(name, val, options) {
|
|
|
120
120
|
|
|
121
121
|
if (null != opt.maxAge) {
|
|
122
122
|
var maxAge = opt.maxAge - 0;
|
|
123
|
-
|
|
123
|
+
|
|
124
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
125
|
+
throw new TypeError('option maxAge is invalid')
|
|
126
|
+
}
|
|
127
|
+
|
|
124
128
|
str += '; Max-Age=' + Math.floor(maxAge);
|
|
125
129
|
}
|
|
126
130
|
|
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"cookie@0.4.0",
|
|
5
|
-
"/Users/conway/Projects/worldmap"
|
|
6
|
-
]
|
|
7
|
-
],
|
|
8
|
-
"_from": "cookie@0.4.0",
|
|
9
|
-
"_id": "cookie@0.4.0",
|
|
2
|
+
"_from": "cookie@0.4.1",
|
|
3
|
+
"_id": "cookie@0.4.1",
|
|
10
4
|
"_inBundle": false,
|
|
11
|
-
"_integrity": "sha512
|
|
12
|
-
"_location": "/cookie",
|
|
5
|
+
"_integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==",
|
|
6
|
+
"_location": "/node-red-contrib-web-worldmap/cookie",
|
|
13
7
|
"_phantomChildren": {},
|
|
14
8
|
"_requested": {
|
|
15
9
|
"type": "version",
|
|
16
10
|
"registry": true,
|
|
17
|
-
"raw": "cookie@0.4.
|
|
11
|
+
"raw": "cookie@0.4.1",
|
|
18
12
|
"name": "cookie",
|
|
19
13
|
"escapedName": "cookie",
|
|
20
|
-
"rawSpec": "0.4.
|
|
14
|
+
"rawSpec": "0.4.1",
|
|
21
15
|
"saveSpec": null,
|
|
22
|
-
"fetchSpec": "0.4.
|
|
16
|
+
"fetchSpec": "0.4.1"
|
|
23
17
|
},
|
|
24
18
|
"_requiredBy": [
|
|
25
|
-
"/express"
|
|
19
|
+
"/node-red-contrib-web-worldmap/express"
|
|
26
20
|
],
|
|
27
|
-
"_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.
|
|
28
|
-
"
|
|
29
|
-
"
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz",
|
|
22
|
+
"_shasum": "afd713fe26ebd21ba95ceb61f9a8116e50a537d1",
|
|
23
|
+
"_spec": "cookie@0.4.1",
|
|
24
|
+
"_where": "/Users/conway/Projects/worldmap/node_modules/express",
|
|
30
25
|
"author": {
|
|
31
26
|
"name": "Roman Shtylman",
|
|
32
27
|
"email": "shtylman@gmail.com"
|
|
@@ -34,20 +29,22 @@
|
|
|
34
29
|
"bugs": {
|
|
35
30
|
"url": "https://github.com/jshttp/cookie/issues"
|
|
36
31
|
},
|
|
32
|
+
"bundleDependencies": false,
|
|
37
33
|
"contributors": [
|
|
38
34
|
{
|
|
39
35
|
"name": "Douglas Christopher Wilson",
|
|
40
36
|
"email": "doug@somethingdoug.com"
|
|
41
37
|
}
|
|
42
38
|
],
|
|
39
|
+
"deprecated": false,
|
|
43
40
|
"description": "HTTP server cookie parsing and serialization",
|
|
44
41
|
"devDependencies": {
|
|
45
42
|
"beautify-benchmark": "0.2.4",
|
|
46
43
|
"benchmark": "2.1.4",
|
|
47
|
-
"eslint": "
|
|
48
|
-
"eslint-plugin-markdown": "1.0.
|
|
49
|
-
"
|
|
50
|
-
"
|
|
44
|
+
"eslint": "6.8.0",
|
|
45
|
+
"eslint-plugin-markdown": "1.0.2",
|
|
46
|
+
"mocha": "7.1.1",
|
|
47
|
+
"nyc": "15.0.1"
|
|
51
48
|
},
|
|
52
49
|
"engines": {
|
|
53
50
|
"node": ">= 0.6"
|
|
@@ -72,10 +69,10 @@
|
|
|
72
69
|
"scripts": {
|
|
73
70
|
"bench": "node benchmark/index.js",
|
|
74
71
|
"lint": "eslint --plugin markdown --ext js,md .",
|
|
75
|
-
"test": "mocha --reporter spec --bail --check-leaks test/",
|
|
76
|
-
"test-ci": "
|
|
77
|
-
"test-cov": "
|
|
72
|
+
"test": "mocha --reporter spec --bail --check-leaks --ui qunit test/",
|
|
73
|
+
"test-ci": "nyc --reporter=text npm test",
|
|
74
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test",
|
|
78
75
|
"version": "node scripts/version-history.js && git add HISTORY.md"
|
|
79
76
|
},
|
|
80
|
-
"version": "0.4.
|
|
77
|
+
"version": "0.4.1"
|
|
81
78
|
}
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
4.17.2 / 2021-12-16
|
|
2
|
+
===================
|
|
3
|
+
|
|
4
|
+
* Fix handling of `undefined` in `res.jsonp`
|
|
5
|
+
* Fix handling of `undefined` when `"json escape"` is enabled
|
|
6
|
+
* Fix incorrect middleware execution with unanchored `RegExp`s
|
|
7
|
+
* Fix `res.jsonp(obj, status)` deprecation message
|
|
8
|
+
* Fix typo in `res.is` JSDoc
|
|
9
|
+
* deps: body-parser@1.19.1
|
|
10
|
+
- deps: bytes@3.1.1
|
|
11
|
+
- deps: http-errors@1.8.1
|
|
12
|
+
- deps: qs@6.9.6
|
|
13
|
+
- deps: raw-body@2.4.2
|
|
14
|
+
- deps: safe-buffer@5.2.1
|
|
15
|
+
- deps: type-is@~1.6.18
|
|
16
|
+
* deps: content-disposition@0.5.4
|
|
17
|
+
- deps: safe-buffer@5.2.1
|
|
18
|
+
* deps: cookie@0.4.1
|
|
19
|
+
- Fix `maxAge` option to reject invalid values
|
|
20
|
+
* deps: proxy-addr@~2.0.7
|
|
21
|
+
- Use `req.socket` over deprecated `req.connection`
|
|
22
|
+
- deps: forwarded@0.2.0
|
|
23
|
+
- deps: ipaddr.js@1.9.1
|
|
24
|
+
* deps: qs@6.9.6
|
|
25
|
+
* deps: safe-buffer@5.2.1
|
|
26
|
+
* deps: send@0.17.2
|
|
27
|
+
- deps: http-errors@1.8.1
|
|
28
|
+
- deps: ms@2.1.3
|
|
29
|
+
- pref: ignore empty http tokens
|
|
30
|
+
* deps: serve-static@1.14.2
|
|
31
|
+
- deps: send@0.17.2
|
|
32
|
+
* deps: setprototypeof@1.2.0
|
|
33
|
+
|
|
1
34
|
4.17.1 / 2019-05-25
|
|
2
35
|
===================
|
|
3
36
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[![NPM Version][npm-image]][npm-url]
|
|
6
6
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
7
|
-
[![Linux Build][
|
|
7
|
+
[![Linux Build][ci-image]][ci-url]
|
|
8
8
|
[![Windows Build][appveyor-image]][appveyor-url]
|
|
9
9
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
10
10
|
|
|
@@ -27,6 +27,9 @@ This is a [Node.js](https://nodejs.org/en/) module available through the
|
|
|
27
27
|
Before installing, [download and install Node.js](https://nodejs.org/en/download/).
|
|
28
28
|
Node.js 0.10 or higher is required.
|
|
29
29
|
|
|
30
|
+
If this is a brand new project, make sure to create a `package.json` first with
|
|
31
|
+
the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).
|
|
32
|
+
|
|
30
33
|
Installation is done using the
|
|
31
34
|
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
|
|
32
35
|
|
|
@@ -95,7 +98,7 @@ $ npm start
|
|
|
95
98
|
## Philosophy
|
|
96
99
|
|
|
97
100
|
The Express philosophy is to provide small, robust tooling for HTTP servers, making
|
|
98
|
-
it a great solution for single page applications,
|
|
101
|
+
it a great solution for single page applications, websites, hybrids, or public
|
|
99
102
|
HTTP APIs.
|
|
100
103
|
|
|
101
104
|
Express does not force you to use any specific ORM or template engine. With support for over
|
|
@@ -143,12 +146,12 @@ The current lead maintainer is [Douglas Christopher Wilson](https://github.com/d
|
|
|
143
146
|
|
|
144
147
|
[MIT](LICENSE)
|
|
145
148
|
|
|
149
|
+
[ci-image]: https://img.shields.io/github/workflow/status/expressjs/express/ci/master.svg?label=linux
|
|
150
|
+
[ci-url]: https://github.com/expressjs/express/actions?query=workflow%3Aci
|
|
146
151
|
[npm-image]: https://img.shields.io/npm/v/express.svg
|
|
147
152
|
[npm-url]: https://npmjs.org/package/express
|
|
148
153
|
[downloads-image]: https://img.shields.io/npm/dm/express.svg
|
|
149
|
-
[downloads-url]: https://
|
|
150
|
-
[travis-image]: https://img.shields.io/travis/expressjs/express/master.svg?label=linux
|
|
151
|
-
[travis-url]: https://travis-ci.org/expressjs/express
|
|
154
|
+
[downloads-url]: https://npmcharts.com/compare/express?minimal=true
|
|
152
155
|
[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/express/master.svg?label=windows
|
|
153
156
|
[appveyor-url]: https://ci.appveyor.com/project/dougwilson/express
|
|
154
157
|
[coveralls-image]: https://img.shields.io/coveralls/expressjs/express/master.svg
|
|
@@ -276,7 +276,7 @@ app.route = function route(path) {
|
|
|
276
276
|
* In this case EJS provides a `.renderFile()` method with
|
|
277
277
|
* the same signature that Express expects: `(path, options, callback)`,
|
|
278
278
|
* though note that it aliases this method as `ejs.__express` internally
|
|
279
|
-
* so if you're using ".ejs" extensions you
|
|
279
|
+
* so if you're using ".ejs" extensions you don't need to do anything.
|
|
280
280
|
*
|
|
281
281
|
* Some template engines do not follow this convention, the
|
|
282
282
|
* [Consolidate.js](https://github.com/tj/consolidate.js)
|
|
@@ -251,7 +251,7 @@ req.param = function param(name, defaultValue) {
|
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* Check if the incoming request contains the "Content-Type"
|
|
254
|
-
* header field, and it contains the
|
|
254
|
+
* header field, and it contains the given mime `type`.
|
|
255
255
|
*
|
|
256
256
|
* Examples:
|
|
257
257
|
*
|