@alanszp/express 12.0.1 → 12.0.3

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.
Files changed (160) hide show
  1. package/package.json +6 -10
  2. package/.gitignore +0 -3
  3. package/.npmignore +0 -3
  4. package/node_modules/@jest/expect-utils/LICENSE +0 -21
  5. package/node_modules/@jest/expect-utils/README.md +0 -5
  6. package/node_modules/@jest/expect-utils/build/index.d.ts +0 -93
  7. package/node_modules/@jest/expect-utils/build/index.js +0 -37
  8. package/node_modules/@jest/expect-utils/build/jasmineUtils.js +0 -282
  9. package/node_modules/@jest/expect-utils/build/types.js +0 -1
  10. package/node_modules/@jest/expect-utils/build/utils.js +0 -457
  11. package/node_modules/@jest/expect-utils/package.json +0 -33
  12. package/node_modules/@jest/types/LICENSE +0 -21
  13. package/node_modules/@jest/types/README.md +0 -30
  14. package/node_modules/@jest/types/build/Circus.js +0 -1
  15. package/node_modules/@jest/types/build/Config.js +0 -1
  16. package/node_modules/@jest/types/build/Global.js +0 -1
  17. package/node_modules/@jest/types/build/TestResult.js +0 -1
  18. package/node_modules/@jest/types/build/Transform.js +0 -1
  19. package/node_modules/@jest/types/build/index.d.ts +0 -1166
  20. package/node_modules/@jest/types/build/index.js +0 -1
  21. package/node_modules/@jest/types/package.json +0 -38
  22. package/node_modules/@types/jest/LICENSE +0 -21
  23. package/node_modules/@types/jest/README.md +0 -17
  24. package/node_modules/@types/jest/index.d.ts +0 -1608
  25. package/node_modules/@types/jest/package.json +0 -159
  26. package/node_modules/@types/node/LICENSE +0 -21
  27. package/node_modules/@types/node/README.md +0 -15
  28. package/node_modules/@types/node/assert/strict.d.ts +0 -8
  29. package/node_modules/@types/node/assert.d.ts +0 -996
  30. package/node_modules/@types/node/async_hooks.d.ts +0 -539
  31. package/node_modules/@types/node/buffer.d.ts +0 -2362
  32. package/node_modules/@types/node/child_process.d.ts +0 -1540
  33. package/node_modules/@types/node/cluster.d.ts +0 -432
  34. package/node_modules/@types/node/console.d.ts +0 -415
  35. package/node_modules/@types/node/constants.d.ts +0 -19
  36. package/node_modules/@types/node/crypto.d.ts +0 -4487
  37. package/node_modules/@types/node/dgram.d.ts +0 -596
  38. package/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
  39. package/node_modules/@types/node/dns/promises.d.ts +0 -425
  40. package/node_modules/@types/node/dns.d.ts +0 -809
  41. package/node_modules/@types/node/dom-events.d.ts +0 -122
  42. package/node_modules/@types/node/domain.d.ts +0 -170
  43. package/node_modules/@types/node/events.d.ts +0 -879
  44. package/node_modules/@types/node/fs/promises.d.ts +0 -1239
  45. package/node_modules/@types/node/fs.d.ts +0 -4311
  46. package/node_modules/@types/node/globals.d.ts +0 -411
  47. package/node_modules/@types/node/globals.global.d.ts +0 -1
  48. package/node_modules/@types/node/http.d.ts +0 -1887
  49. package/node_modules/@types/node/http2.d.ts +0 -2382
  50. package/node_modules/@types/node/https.d.ts +0 -550
  51. package/node_modules/@types/node/index.d.ts +0 -88
  52. package/node_modules/@types/node/inspector.d.ts +0 -2747
  53. package/node_modules/@types/node/module.d.ts +0 -315
  54. package/node_modules/@types/node/net.d.ts +0 -949
  55. package/node_modules/@types/node/os.d.ts +0 -478
  56. package/node_modules/@types/node/package.json +0 -229
  57. package/node_modules/@types/node/path.d.ts +0 -191
  58. package/node_modules/@types/node/perf_hooks.d.ts +0 -645
  59. package/node_modules/@types/node/process.d.ts +0 -1561
  60. package/node_modules/@types/node/punycode.d.ts +0 -117
  61. package/node_modules/@types/node/querystring.d.ts +0 -141
  62. package/node_modules/@types/node/readline/promises.d.ts +0 -150
  63. package/node_modules/@types/node/readline.d.ts +0 -539
  64. package/node_modules/@types/node/repl.d.ts +0 -430
  65. package/node_modules/@types/node/stream/consumers.d.ts +0 -12
  66. package/node_modules/@types/node/stream/promises.d.ts +0 -83
  67. package/node_modules/@types/node/stream/web.d.ts +0 -366
  68. package/node_modules/@types/node/stream.d.ts +0 -1701
  69. package/node_modules/@types/node/string_decoder.d.ts +0 -67
  70. package/node_modules/@types/node/test.d.ts +0 -1465
  71. package/node_modules/@types/node/timers/promises.d.ts +0 -93
  72. package/node_modules/@types/node/timers.d.ts +0 -240
  73. package/node_modules/@types/node/tls.d.ts +0 -1210
  74. package/node_modules/@types/node/trace_events.d.ts +0 -182
  75. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  76. package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  77. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  78. package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  79. package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  80. package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  81. package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  82. package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  83. package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  84. package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  85. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  86. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  87. package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  88. package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  89. package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  90. package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  91. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  92. package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  93. package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  94. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  95. package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  96. package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  97. package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  98. package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  99. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  100. package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  101. package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  102. package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  103. package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  104. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  105. package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  106. package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  107. package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  108. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  109. package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  110. package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  111. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  112. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  113. package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  114. package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  115. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  116. package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  117. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  118. package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  119. package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  120. package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  121. package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  122. package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  123. package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  124. package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  125. package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  126. package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  127. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  128. package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  129. package/node_modules/@types/node/tty.d.ts +0 -208
  130. package/node_modules/@types/node/url.d.ts +0 -927
  131. package/node_modules/@types/node/util.d.ts +0 -2183
  132. package/node_modules/@types/node/v8.d.ts +0 -764
  133. package/node_modules/@types/node/vm.d.ts +0 -903
  134. package/node_modules/@types/node/wasi.d.ts +0 -179
  135. package/node_modules/@types/node/worker_threads.d.ts +0 -691
  136. package/node_modules/@types/node/zlib.d.ts +0 -517
  137. package/src/helpers/getIp.ts +0 -5
  138. package/src/helpers/getRequestLogger.ts +0 -6
  139. package/src/helpers/now.ts +0 -3
  140. package/src/helpers/renderErrorJson.ts +0 -29
  141. package/src/index.ts +0 -10
  142. package/src/middlewares/accessLogger.ts +0 -34
  143. package/src/middlewares/auditLog.ts +0 -52
  144. package/src/middlewares/authedForOrg.ts +0 -50
  145. package/src/middlewares/authenticateUser.test.ts +0 -403
  146. package/src/middlewares/authenticateUser.ts +0 -171
  147. package/src/middlewares/createContext.test.ts +0 -85
  148. package/src/middlewares/createContext.ts +0 -49
  149. package/src/middlewares/hasRoles.ts +0 -24
  150. package/src/middlewares/jsonBodyParser.ts +0 -22
  151. package/src/middlewares/returnInternalServerError.ts +0 -15
  152. package/src/middlewares/returnNotFound.ts +0 -11
  153. package/src/test/mocks/authOptionsMocks.ts +0 -35
  154. package/src/test/mocks/expressMocks.ts +0 -33
  155. package/src/test/mocks/jwtUserMocks.ts +0 -19
  156. package/src/test/setup.test.ts +0 -15
  157. package/src/test/setup.ts +0 -3
  158. package/src/types/AuthMethod.ts +0 -27
  159. package/src/types/GenericRequest.ts +0 -3
  160. package/src/types/custom.d.ts +0 -20
@@ -1,229 +0,0 @@
1
- {
2
- "name": "@types/node",
3
- "version": "20.11.17",
4
- "description": "TypeScript definitions for node",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
- "license": "MIT",
7
- "contributors": [
8
- {
9
- "name": "Microsoft TypeScript",
10
- "githubUsername": "Microsoft",
11
- "url": "https://github.com/Microsoft"
12
- },
13
- {
14
- "name": "Alberto Schiabel",
15
- "githubUsername": "jkomyno",
16
- "url": "https://github.com/jkomyno"
17
- },
18
- {
19
- "name": "Alvis HT Tang",
20
- "githubUsername": "alvis",
21
- "url": "https://github.com/alvis"
22
- },
23
- {
24
- "name": "Andrew Makarov",
25
- "githubUsername": "r3nya",
26
- "url": "https://github.com/r3nya"
27
- },
28
- {
29
- "name": "Benjamin Toueg",
30
- "githubUsername": "btoueg",
31
- "url": "https://github.com/btoueg"
32
- },
33
- {
34
- "name": "Chigozirim C.",
35
- "githubUsername": "smac89",
36
- "url": "https://github.com/smac89"
37
- },
38
- {
39
- "name": "David Junger",
40
- "githubUsername": "touffy",
41
- "url": "https://github.com/touffy"
42
- },
43
- {
44
- "name": "Deividas Bakanas",
45
- "githubUsername": "DeividasBakanas",
46
- "url": "https://github.com/DeividasBakanas"
47
- },
48
- {
49
- "name": "Eugene Y. Q. Shen",
50
- "githubUsername": "eyqs",
51
- "url": "https://github.com/eyqs"
52
- },
53
- {
54
- "name": "Hannes Magnusson",
55
- "githubUsername": "Hannes-Magnusson-CK",
56
- "url": "https://github.com/Hannes-Magnusson-CK"
57
- },
58
- {
59
- "name": "Huw",
60
- "githubUsername": "hoo29",
61
- "url": "https://github.com/hoo29"
62
- },
63
- {
64
- "name": "Kelvin Jin",
65
- "githubUsername": "kjin",
66
- "url": "https://github.com/kjin"
67
- },
68
- {
69
- "name": "Klaus Meinhardt",
70
- "githubUsername": "ajafff",
71
- "url": "https://github.com/ajafff"
72
- },
73
- {
74
- "name": "Lishude",
75
- "githubUsername": "islishude",
76
- "url": "https://github.com/islishude"
77
- },
78
- {
79
- "name": "Mariusz Wiktorczyk",
80
- "githubUsername": "mwiktorczyk",
81
- "url": "https://github.com/mwiktorczyk"
82
- },
83
- {
84
- "name": "Mohsen Azimi",
85
- "githubUsername": "mohsen1",
86
- "url": "https://github.com/mohsen1"
87
- },
88
- {
89
- "name": "Nicolas Even",
90
- "githubUsername": "n-e",
91
- "url": "https://github.com/n-e"
92
- },
93
- {
94
- "name": "Nikita Galkin",
95
- "githubUsername": "galkin",
96
- "url": "https://github.com/galkin"
97
- },
98
- {
99
- "name": "Parambir Singh",
100
- "githubUsername": "parambirs",
101
- "url": "https://github.com/parambirs"
102
- },
103
- {
104
- "name": "Sebastian Silbermann",
105
- "githubUsername": "eps1lon",
106
- "url": "https://github.com/eps1lon"
107
- },
108
- {
109
- "name": "Thomas den Hollander",
110
- "githubUsername": "ThomasdenH",
111
- "url": "https://github.com/ThomasdenH"
112
- },
113
- {
114
- "name": "Wilco Bakker",
115
- "githubUsername": "WilcoBakker",
116
- "url": "https://github.com/WilcoBakker"
117
- },
118
- {
119
- "name": "wwwy3y3",
120
- "githubUsername": "wwwy3y3",
121
- "url": "https://github.com/wwwy3y3"
122
- },
123
- {
124
- "name": "Samuel Ainsworth",
125
- "githubUsername": "samuela",
126
- "url": "https://github.com/samuela"
127
- },
128
- {
129
- "name": "Kyle Uehlein",
130
- "githubUsername": "kuehlein",
131
- "url": "https://github.com/kuehlein"
132
- },
133
- {
134
- "name": "Thanik Bhongbhibhat",
135
- "githubUsername": "bhongy",
136
- "url": "https://github.com/bhongy"
137
- },
138
- {
139
- "name": "Marcin Kopacz",
140
- "githubUsername": "chyzwar",
141
- "url": "https://github.com/chyzwar"
142
- },
143
- {
144
- "name": "Trivikram Kamat",
145
- "githubUsername": "trivikr",
146
- "url": "https://github.com/trivikr"
147
- },
148
- {
149
- "name": "Junxiao Shi",
150
- "githubUsername": "yoursunny",
151
- "url": "https://github.com/yoursunny"
152
- },
153
- {
154
- "name": "Ilia Baryshnikov",
155
- "githubUsername": "qwelias",
156
- "url": "https://github.com/qwelias"
157
- },
158
- {
159
- "name": "ExE Boss",
160
- "githubUsername": "ExE-Boss",
161
- "url": "https://github.com/ExE-Boss"
162
- },
163
- {
164
- "name": "Piotr Błażejewicz",
165
- "githubUsername": "peterblazejewicz",
166
- "url": "https://github.com/peterblazejewicz"
167
- },
168
- {
169
- "name": "Anna Henningsen",
170
- "githubUsername": "addaleax",
171
- "url": "https://github.com/addaleax"
172
- },
173
- {
174
- "name": "Victor Perin",
175
- "githubUsername": "victorperin",
176
- "url": "https://github.com/victorperin"
177
- },
178
- {
179
- "name": "Yongsheng Zhang",
180
- "githubUsername": "ZYSzys",
181
- "url": "https://github.com/ZYSzys"
182
- },
183
- {
184
- "name": "NodeJS Contributors",
185
- "githubUsername": "NodeJS",
186
- "url": "https://github.com/NodeJS"
187
- },
188
- {
189
- "name": "Linus Unnebäck",
190
- "githubUsername": "LinusU",
191
- "url": "https://github.com/LinusU"
192
- },
193
- {
194
- "name": "wafuwafu13",
195
- "githubUsername": "wafuwafu13",
196
- "url": "https://github.com/wafuwafu13"
197
- },
198
- {
199
- "name": "Matteo Collina",
200
- "githubUsername": "mcollina",
201
- "url": "https://github.com/mcollina"
202
- },
203
- {
204
- "name": "Dmitry Semigradsky",
205
- "githubUsername": "Semigradsky",
206
- "url": "https://github.com/Semigradsky"
207
- }
208
- ],
209
- "main": "",
210
- "types": "index.d.ts",
211
- "typesVersions": {
212
- "<=4.8": {
213
- "*": [
214
- "ts4.8/*"
215
- ]
216
- }
217
- },
218
- "repository": {
219
- "type": "git",
220
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
221
- "directory": "types/node"
222
- },
223
- "scripts": {},
224
- "dependencies": {
225
- "undici-types": "~5.26.4"
226
- },
227
- "typesPublisherContentHash": "b2819dbf39a2441dc5ca106500073050f96406fa5b9b6227de273d56d6084b97",
228
- "typeScriptVersion": "4.6"
229
- }
@@ -1,191 +0,0 @@
1
- declare module "path/posix" {
2
- import path = require("path");
3
- export = path;
4
- }
5
- declare module "path/win32" {
6
- import path = require("path");
7
- export = path;
8
- }
9
- /**
10
- * The `node:path` module provides utilities for working with file and directory
11
- * paths. It can be accessed using:
12
- *
13
- * ```js
14
- * const path = require('node:path');
15
- * ```
16
- * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/path.js)
17
- */
18
- declare module "path" {
19
- namespace path {
20
- /**
21
- * A parsed path object generated by path.parse() or consumed by path.format().
22
- */
23
- interface ParsedPath {
24
- /**
25
- * The root of the path such as '/' or 'c:\'
26
- */
27
- root: string;
28
- /**
29
- * The full directory path such as '/home/user/dir' or 'c:\path\dir'
30
- */
31
- dir: string;
32
- /**
33
- * The file name including extension (if any) such as 'index.html'
34
- */
35
- base: string;
36
- /**
37
- * The file extension (if any) such as '.html'
38
- */
39
- ext: string;
40
- /**
41
- * The file name without extension (if any) such as 'index'
42
- */
43
- name: string;
44
- }
45
- interface FormatInputPathObject {
46
- /**
47
- * The root of the path such as '/' or 'c:\'
48
- */
49
- root?: string | undefined;
50
- /**
51
- * The full directory path such as '/home/user/dir' or 'c:\path\dir'
52
- */
53
- dir?: string | undefined;
54
- /**
55
- * The file name including extension (if any) such as 'index.html'
56
- */
57
- base?: string | undefined;
58
- /**
59
- * The file extension (if any) such as '.html'
60
- */
61
- ext?: string | undefined;
62
- /**
63
- * The file name without extension (if any) such as 'index'
64
- */
65
- name?: string | undefined;
66
- }
67
- interface PlatformPath {
68
- /**
69
- * Normalize a string path, reducing '..' and '.' parts.
70
- * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
71
- *
72
- * @param path string path to normalize.
73
- * @throws {TypeError} if `path` is not a string.
74
- */
75
- normalize(path: string): string;
76
- /**
77
- * Join all arguments together and normalize the resulting path.
78
- *
79
- * @param paths paths to join.
80
- * @throws {TypeError} if any of the path segments is not a string.
81
- */
82
- join(...paths: string[]): string;
83
- /**
84
- * The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
85
- *
86
- * Starting from leftmost {from} parameter, resolves {to} to an absolute path.
87
- *
88
- * If {to} isn't already absolute, {from} arguments are prepended in right to left order,
89
- * until an absolute path is found. If after using all {from} paths still no absolute path is found,
90
- * the current working directory is used as well. The resulting path is normalized,
91
- * and trailing slashes are removed unless the path gets resolved to the root directory.
92
- *
93
- * @param paths A sequence of paths or path segments.
94
- * @throws {TypeError} if any of the arguments is not a string.
95
- */
96
- resolve(...paths: string[]): string;
97
- /**
98
- * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
99
- *
100
- * If the given {path} is a zero-length string, `false` will be returned.
101
- *
102
- * @param path path to test.
103
- * @throws {TypeError} if `path` is not a string.
104
- */
105
- isAbsolute(path: string): boolean;
106
- /**
107
- * Solve the relative path from {from} to {to} based on the current working directory.
108
- * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
109
- *
110
- * @throws {TypeError} if either `from` or `to` is not a string.
111
- */
112
- relative(from: string, to: string): string;
113
- /**
114
- * Return the directory name of a path. Similar to the Unix dirname command.
115
- *
116
- * @param path the path to evaluate.
117
- * @throws {TypeError} if `path` is not a string.
118
- */
119
- dirname(path: string): string;
120
- /**
121
- * Return the last portion of a path. Similar to the Unix basename command.
122
- * Often used to extract the file name from a fully qualified path.
123
- *
124
- * @param path the path to evaluate.
125
- * @param suffix optionally, an extension to remove from the result.
126
- * @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string.
127
- */
128
- basename(path: string, suffix?: string): string;
129
- /**
130
- * Return the extension of the path, from the last '.' to end of string in the last portion of the path.
131
- * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
132
- *
133
- * @param path the path to evaluate.
134
- * @throws {TypeError} if `path` is not a string.
135
- */
136
- extname(path: string): string;
137
- /**
138
- * The platform-specific file separator. '\\' or '/'.
139
- */
140
- readonly sep: "\\" | "/";
141
- /**
142
- * The platform-specific file delimiter. ';' or ':'.
143
- */
144
- readonly delimiter: ";" | ":";
145
- /**
146
- * Returns an object from a path string - the opposite of format().
147
- *
148
- * @param path path to evaluate.
149
- * @throws {TypeError} if `path` is not a string.
150
- */
151
- parse(path: string): ParsedPath;
152
- /**
153
- * Returns a path string from an object - the opposite of parse().
154
- *
155
- * @param pathObject path to evaluate.
156
- */
157
- format(pathObject: FormatInputPathObject): string;
158
- /**
159
- * On Windows systems only, returns an equivalent namespace-prefixed path for the given path.
160
- * If path is not a string, path will be returned without modifications.
161
- * This method is meaningful only on Windows system.
162
- * On POSIX systems, the method is non-operational and always returns path without modifications.
163
- */
164
- toNamespacedPath(path: string): string;
165
- /**
166
- * Posix specific pathing.
167
- * Same as parent object on posix.
168
- */
169
- readonly posix: PlatformPath;
170
- /**
171
- * Windows specific pathing.
172
- * Same as parent object on windows
173
- */
174
- readonly win32: PlatformPath;
175
- }
176
- }
177
- const path: path.PlatformPath;
178
- export = path;
179
- }
180
- declare module "node:path" {
181
- import path = require("path");
182
- export = path;
183
- }
184
- declare module "node:path/posix" {
185
- import path = require("path/posix");
186
- export = path;
187
- }
188
- declare module "node:path/win32" {
189
- import path = require("path/win32");
190
- export = path;
191
- }