@integration-app/react 0.1.1 → 0.1.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.
- package/node_modules/@compwright/namecase/LICENSE +26 -0
- package/node_modules/@compwright/namecase/README.md +49 -0
- package/node_modules/@compwright/namecase/bin/namecase +28 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
- package/node_modules/@compwright/namecase/package.json +46 -0
- package/node_modules/@compwright/namecase/src/index.js +146 -0
- package/node_modules/@integration-app/sdk/bundle.js +404 -262
- package/node_modules/@integration-app/sdk/bundle.js.map +1 -1
- package/node_modules/@integration-app/sdk/client.d.ts +3 -3
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +3 -7
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +16 -32
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -1
- package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +0 -6
- package/node_modules/@integration-app/sdk/integrations/accessors.js +1 -87
- package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -1
- package/node_modules/@integration-app/sdk/json-schema/index.d.ts +1 -1
- package/node_modules/@integration-app/sdk/src/client.ts +3 -3
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +11 -113
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +22 -46
- package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +2 -122
- package/node_modules/@sinclair/typebox/package.json +40 -0
- package/node_modules/@sinclair/typebox/readme.md +740 -0
- package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
- package/node_modules/@sinclair/typebox/typebox.js +345 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert.d.ts +128 -0
- package/node_modules/@types/node/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/buffer.d.ts +89 -0
- package/node_modules/@types/node/child_process.d.ts +514 -0
- package/node_modules/@types/node/cluster.d.ts +265 -0
- package/node_modules/@types/node/console.d.ts +142 -0
- package/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/node/crypto.d.ts +1283 -0
- package/node_modules/@types/node/dgram.d.ts +144 -0
- package/node_modules/@types/node/dns.d.ts +387 -0
- package/node_modules/@types/node/domain.d.ts +27 -0
- package/node_modules/@types/node/events.d.ts +82 -0
- package/node_modules/@types/node/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/fs.d.ts +2281 -0
- package/node_modules/@types/node/globals.d.ts +747 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +580 -0
- package/node_modules/@types/node/http2.d.ts +962 -0
- package/node_modules/@types/node/https.d.ts +271 -0
- package/node_modules/@types/node/index.d.ts +98 -0
- package/node_modules/@types/node/inspector.d.ts +3051 -0
- package/node_modules/@types/node/module.d.ts +56 -0
- package/node_modules/@types/node/net.d.ts +308 -0
- package/node_modules/@types/node/os.d.ts +243 -0
- package/node_modules/@types/node/package.json +232 -0
- package/node_modules/@types/node/path.d.ts +168 -0
- package/node_modules/@types/node/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/process.d.ts +413 -0
- package/node_modules/@types/node/punycode.d.ts +78 -0
- package/node_modules/@types/node/querystring.d.ts +31 -0
- package/node_modules/@types/node/readline.d.ts +174 -0
- package/node_modules/@types/node/repl.d.ts +398 -0
- package/node_modules/@types/node/stream.d.ts +359 -0
- package/node_modules/@types/node/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/timers.d.ts +19 -0
- package/node_modules/@types/node/tls.d.ts +784 -0
- package/node_modules/@types/node/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
- package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
- package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
- package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
- package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
- package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
- package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
- package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
- package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
- package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
- package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
- package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
- package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
- package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
- package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
- package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
- package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
- package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
- package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
- package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
- package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
- package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
- package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
- package/node_modules/@types/node/tty.d.ts +69 -0
- package/node_modules/@types/node/url.d.ts +149 -0
- package/node_modules/@types/node/util.d.ts +216 -0
- package/node_modules/@types/node/v8.d.ts +190 -0
- package/node_modules/@types/node/vm.d.ts +155 -0
- package/node_modules/@types/node/wasi.d.ts +89 -0
- package/node_modules/@types/node/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/zlib.d.ts +364 -0
- package/package.json +2 -5
- package/node_modules/@integration-app/sdk/.DS_Store +0 -0
- package/node_modules/@integration-app/sdk/.gitignore +0 -11
- package/node_modules/@integration-app/sdk/.npmignore +0 -0
- package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.d.ts +0 -23
- package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.d.ts +0 -20
- package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-events/app-events.d.ts +0 -44
- package/node_modules/@integration-app/sdk/app-events/app-events.js.map +0 -1
- package/node_modules/@integration-app/sdk/connection-client.d.ts +0 -12
- package/node_modules/@integration-app/sdk/connection-client.js +0 -31
- package/node_modules/@integration-app/sdk/connection-client.js.map +0 -1
- package/node_modules/@integration-app/sdk/connections/connections.d.ts +0 -46
- package/node_modules/@integration-app/sdk/connections/connections.js.map +0 -1
- package/node_modules/@integration-app/sdk/connector-api/connector-api.d.ts +0 -157
- package/node_modules/@integration-app/sdk/connector-api/connector-api.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js +0 -2
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.d.ts +0 -10
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js +0 -246
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js +0 -85
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js +0 -64
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js +0 -44
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js +0 -44
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js +0 -14
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js +0 -63
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js +0 -112
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js +0 -18
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js +0 -114
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js +0 -49
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/index.test.js +0 -295
- package/node_modules/@integration-app/sdk/data-builder/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/locators.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/locators.test.js +0 -775
- package/node_modules/@integration-app/sdk/data-builder/locators.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/conditions.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-filter/conditions.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/index.test.js +0 -43
- package/node_modules/@integration-app/sdk/data-filter/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/operators.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/operators.test.js +0 -490
- package/node_modules/@integration-app/sdk/data-filter/operators.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-links/data-links.d.ts +0 -58
- package/node_modules/@integration-app/sdk/data-links/data-links.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-schema/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-schema/index.test.js +0 -86
- package/node_modules/@integration-app/sdk/data-schema/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-sources/data-sources.d.ts +0 -41
- package/node_modules/@integration-app/sdk/data-sources/data-sources.js.map +0 -1
- package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.d.ts +0 -30
- package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.js.map +0 -1
- package/node_modules/@integration-app/sdk/field-mappings/field-mappings.d.ts +0 -29
- package/node_modules/@integration-app/sdk/field-mappings/field-mappings.js.map +0 -1
- package/node_modules/@integration-app/sdk/flow-runs/flow-runs.d.ts +0 -51
- package/node_modules/@integration-app/sdk/flow-runs/flow-runs.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/flows.d.ts +0 -156
- package/node_modules/@integration-app/sdk/flows/flows.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/nodes.d.ts +0 -25
- package/node_modules/@integration-app/sdk/flows/nodes/nodes.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/utils.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/flows/utils.test.js +0 -62
- package/node_modules/@integration-app/sdk/flows/utils.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/integration-elements/integration-elements.d.ts +0 -21
- package/node_modules/@integration-app/sdk/integration-elements/integration-elements.js.map +0 -1
- package/node_modules/@integration-app/sdk/integrations/integrations.d.ts +0 -48
- package/node_modules/@integration-app/sdk/integrations/integrations.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js +0 -194
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js +0 -352
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/jwt.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/jwt.test.js +0 -9
- package/node_modules/@integration-app/sdk/jwt.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/package-lock.json +0 -3834
- package/node_modules/@integration-app/sdk/udm/activities.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/udm/activities.test.js +0 -40
- package/node_modules/@integration-app/sdk/udm/activities.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/campaign-members.d.ts +0 -45
- package/node_modules/@integration-app/sdk/udm/campaign-members.js +0 -99
- package/node_modules/@integration-app/sdk/udm/campaign-members.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/contacts.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/udm/contacts.test.js +0 -136
- package/node_modules/@integration-app/sdk/udm/contacts.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-activities.d.ts +0 -17
- package/node_modules/@integration-app/sdk/udm/crm-activities.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-activity.d.ts +0 -11
- package/node_modules/@integration-app/sdk/udm/crm-activity.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-companies.d.ts +0 -14
- package/node_modules/@integration-app/sdk/udm/crm-companies.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-contact.d.ts +0 -10
- package/node_modules/@integration-app/sdk/udm/crm-contact.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-contacts.d.ts +0 -16
- package/node_modules/@integration-app/sdk/udm/crm-contacts.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-deals.d.ts +0 -15
- package/node_modules/@integration-app/sdk/udm/crm-deals.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-leads.d.ts +0 -16
- package/node_modules/@integration-app/sdk/udm/crm-leads.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/members.d.ts +0 -45
- package/node_modules/@integration-app/sdk/udm/members.js.map +0 -1
- package/node_modules/@integration-app/sdk/users/users.d.ts +0 -5
- package/node_modules/@integration-app/sdk/users/users.js.map +0 -1
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
declare module 'process' {
|
|
2
|
+
import * as tty from 'tty';
|
|
3
|
+
|
|
4
|
+
global {
|
|
5
|
+
var process: NodeJS.Process;
|
|
6
|
+
|
|
7
|
+
namespace NodeJS {
|
|
8
|
+
// this namespace merge is here because these are specifically used
|
|
9
|
+
// as the type for process.stdin, process.stdout, and process.stderr.
|
|
10
|
+
// they can't live in tty.d.ts because we need to disambiguate the imported name.
|
|
11
|
+
interface ReadStream extends tty.ReadStream {}
|
|
12
|
+
interface WriteStream extends tty.WriteStream {}
|
|
13
|
+
|
|
14
|
+
interface MemoryUsage {
|
|
15
|
+
rss: number;
|
|
16
|
+
heapTotal: number;
|
|
17
|
+
heapUsed: number;
|
|
18
|
+
external: number;
|
|
19
|
+
arrayBuffers: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface CpuUsage {
|
|
23
|
+
user: number;
|
|
24
|
+
system: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface ProcessRelease {
|
|
28
|
+
name: string;
|
|
29
|
+
sourceUrl?: string | undefined;
|
|
30
|
+
headersUrl?: string | undefined;
|
|
31
|
+
libUrl?: string | undefined;
|
|
32
|
+
lts?: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface ProcessVersions extends Dict<string> {
|
|
36
|
+
http_parser: string;
|
|
37
|
+
node: string;
|
|
38
|
+
v8: string;
|
|
39
|
+
ares: string;
|
|
40
|
+
uv: string;
|
|
41
|
+
zlib: string;
|
|
42
|
+
modules: string;
|
|
43
|
+
openssl: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type Platform = 'aix'
|
|
47
|
+
| 'android'
|
|
48
|
+
| 'darwin'
|
|
49
|
+
| 'freebsd'
|
|
50
|
+
| 'linux'
|
|
51
|
+
| 'openbsd'
|
|
52
|
+
| 'sunos'
|
|
53
|
+
| 'win32'
|
|
54
|
+
| 'cygwin'
|
|
55
|
+
| 'netbsd';
|
|
56
|
+
|
|
57
|
+
type Signals =
|
|
58
|
+
"SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" |
|
|
59
|
+
"SIGIOT" | "SIGKILL" | "SIGPIPE" | "SIGPOLL" | "SIGPROF" | "SIGPWR" | "SIGQUIT" | "SIGSEGV" | "SIGSTKFLT" |
|
|
60
|
+
"SIGSTOP" | "SIGSYS" | "SIGTERM" | "SIGTRAP" | "SIGTSTP" | "SIGTTIN" | "SIGTTOU" | "SIGUNUSED" | "SIGURG" |
|
|
61
|
+
"SIGUSR1" | "SIGUSR2" | "SIGVTALRM" | "SIGWINCH" | "SIGXCPU" | "SIGXFSZ" | "SIGBREAK" | "SIGLOST" | "SIGINFO";
|
|
62
|
+
|
|
63
|
+
type UncaughtExceptionOrigin = 'uncaughtException' | 'unhandledRejection';
|
|
64
|
+
type MultipleResolveType = 'resolve' | 'reject';
|
|
65
|
+
|
|
66
|
+
type BeforeExitListener = (code: number) => void;
|
|
67
|
+
type DisconnectListener = () => void;
|
|
68
|
+
type ExitListener = (code: number) => void;
|
|
69
|
+
type RejectionHandledListener = (promise: Promise<any>) => void;
|
|
70
|
+
type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
|
|
71
|
+
type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise<any>) => void;
|
|
72
|
+
type WarningListener = (warning: Error) => void;
|
|
73
|
+
type MessageListener = (message: any, sendHandle: any) => void;
|
|
74
|
+
type SignalsListener = (signal: Signals) => void;
|
|
75
|
+
type NewListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void;
|
|
76
|
+
type RemoveListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void;
|
|
77
|
+
type MultipleResolveListener = (type: MultipleResolveType, promise: Promise<any>, value: any) => void;
|
|
78
|
+
|
|
79
|
+
interface Socket extends ReadWriteStream {
|
|
80
|
+
isTTY?: true | undefined;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Alias for compatibility
|
|
84
|
+
interface ProcessEnv extends Dict<string> {}
|
|
85
|
+
|
|
86
|
+
interface HRTime {
|
|
87
|
+
(time?: [number, number]): [number, number];
|
|
88
|
+
bigint(): bigint;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
interface ProcessReport {
|
|
92
|
+
/**
|
|
93
|
+
* Directory where the report is written.
|
|
94
|
+
* working directory of the Node.js process.
|
|
95
|
+
* @default '' indicating that reports are written to the current
|
|
96
|
+
*/
|
|
97
|
+
directory: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Filename where the report is written.
|
|
101
|
+
* The default value is the empty string.
|
|
102
|
+
* @default '' the output filename will be comprised of a timestamp,
|
|
103
|
+
* PID, and sequence number.
|
|
104
|
+
*/
|
|
105
|
+
filename: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Returns a JSON-formatted diagnostic report for the running process.
|
|
109
|
+
* The report's JavaScript stack trace is taken from err, if present.
|
|
110
|
+
*/
|
|
111
|
+
getReport(err?: Error): string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* If true, a diagnostic report is generated on fatal errors,
|
|
115
|
+
* such as out of memory errors or failed C++ assertions.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
reportOnFatalError: boolean;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* If true, a diagnostic report is generated when the process
|
|
122
|
+
* receives the signal specified by process.report.signal.
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
reportOnSignal: boolean;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* If true, a diagnostic report is generated on uncaught exception.
|
|
129
|
+
* @default false
|
|
130
|
+
*/
|
|
131
|
+
reportOnUncaughtException: boolean;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The signal used to trigger the creation of a diagnostic report.
|
|
135
|
+
* @default 'SIGUSR2'
|
|
136
|
+
*/
|
|
137
|
+
signal: Signals;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Writes a diagnostic report to a file. If filename is not provided, the default filename
|
|
141
|
+
* includes the date, time, PID, and a sequence number.
|
|
142
|
+
* The report's JavaScript stack trace is taken from err, if present.
|
|
143
|
+
*
|
|
144
|
+
* @param fileName Name of the file where the report is written.
|
|
145
|
+
* This should be a relative path, that will be appended to the directory specified in
|
|
146
|
+
* `process.report.directory`, or the current working directory of the Node.js process,
|
|
147
|
+
* if unspecified.
|
|
148
|
+
* @param error A custom error used for reporting the JavaScript stack.
|
|
149
|
+
* @return Filename of the generated report.
|
|
150
|
+
*/
|
|
151
|
+
writeReport(fileName?: string): string;
|
|
152
|
+
writeReport(error?: Error): string;
|
|
153
|
+
writeReport(fileName?: string, err?: Error): string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
interface ResourceUsage {
|
|
157
|
+
fsRead: number;
|
|
158
|
+
fsWrite: number;
|
|
159
|
+
involuntaryContextSwitches: number;
|
|
160
|
+
ipcReceived: number;
|
|
161
|
+
ipcSent: number;
|
|
162
|
+
majorPageFault: number;
|
|
163
|
+
maxRSS: number;
|
|
164
|
+
minorPageFault: number;
|
|
165
|
+
sharedMemorySize: number;
|
|
166
|
+
signalsCount: number;
|
|
167
|
+
swappedOut: number;
|
|
168
|
+
systemCPUTime: number;
|
|
169
|
+
unsharedDataSize: number;
|
|
170
|
+
unsharedStackSize: number;
|
|
171
|
+
userCPUTime: number;
|
|
172
|
+
voluntaryContextSwitches: number;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
interface Process extends EventEmitter {
|
|
176
|
+
/**
|
|
177
|
+
* Can also be a tty.WriteStream, not typed due to limitations.
|
|
178
|
+
*/
|
|
179
|
+
stdout: WriteStream & {
|
|
180
|
+
fd: 1;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Can also be a tty.WriteStream, not typed due to limitations.
|
|
184
|
+
*/
|
|
185
|
+
stderr: WriteStream & {
|
|
186
|
+
fd: 2;
|
|
187
|
+
};
|
|
188
|
+
stdin: ReadStream & {
|
|
189
|
+
fd: 0;
|
|
190
|
+
};
|
|
191
|
+
openStdin(): Socket;
|
|
192
|
+
argv: string[];
|
|
193
|
+
argv0: string;
|
|
194
|
+
execArgv: string[];
|
|
195
|
+
execPath: string;
|
|
196
|
+
abort(): never;
|
|
197
|
+
chdir(directory: string): void;
|
|
198
|
+
cwd(): string;
|
|
199
|
+
debugPort: number;
|
|
200
|
+
emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
|
|
201
|
+
env: ProcessEnv;
|
|
202
|
+
exit(code?: number): never;
|
|
203
|
+
exitCode?: number | undefined;
|
|
204
|
+
getgid(): number;
|
|
205
|
+
setgid(id: number | string): void;
|
|
206
|
+
getuid(): number;
|
|
207
|
+
setuid(id: number | string): void;
|
|
208
|
+
geteuid(): number;
|
|
209
|
+
seteuid(id: number | string): void;
|
|
210
|
+
getegid(): number;
|
|
211
|
+
setegid(id: number | string): void;
|
|
212
|
+
getgroups(): number[];
|
|
213
|
+
setgroups(groups: ReadonlyArray<string | number>): void;
|
|
214
|
+
setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
|
|
215
|
+
hasUncaughtExceptionCaptureCallback(): boolean;
|
|
216
|
+
version: string;
|
|
217
|
+
versions: ProcessVersions;
|
|
218
|
+
config: {
|
|
219
|
+
target_defaults: {
|
|
220
|
+
cflags: any[];
|
|
221
|
+
default_configuration: string;
|
|
222
|
+
defines: string[];
|
|
223
|
+
include_dirs: string[];
|
|
224
|
+
libraries: string[];
|
|
225
|
+
};
|
|
226
|
+
variables: {
|
|
227
|
+
clang: number;
|
|
228
|
+
host_arch: string;
|
|
229
|
+
node_install_npm: boolean;
|
|
230
|
+
node_install_waf: boolean;
|
|
231
|
+
node_prefix: string;
|
|
232
|
+
node_shared_openssl: boolean;
|
|
233
|
+
node_shared_v8: boolean;
|
|
234
|
+
node_shared_zlib: boolean;
|
|
235
|
+
node_use_dtrace: boolean;
|
|
236
|
+
node_use_etw: boolean;
|
|
237
|
+
node_use_openssl: boolean;
|
|
238
|
+
target_arch: string;
|
|
239
|
+
v8_no_strict_aliasing: number;
|
|
240
|
+
v8_use_snapshot: boolean;
|
|
241
|
+
visibility: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
kill(pid: number, signal?: string | number): true;
|
|
245
|
+
pid: number;
|
|
246
|
+
ppid: number;
|
|
247
|
+
title: string;
|
|
248
|
+
arch: string;
|
|
249
|
+
platform: Platform;
|
|
250
|
+
/** @deprecated since v14.0.0 - use `require.main` instead. */
|
|
251
|
+
mainModule?: Module | undefined;
|
|
252
|
+
memoryUsage(): MemoryUsage;
|
|
253
|
+
cpuUsage(previousValue?: CpuUsage): CpuUsage;
|
|
254
|
+
nextTick(callback: Function, ...args: any[]): void;
|
|
255
|
+
release: ProcessRelease;
|
|
256
|
+
features: {
|
|
257
|
+
inspector: boolean;
|
|
258
|
+
debug: boolean;
|
|
259
|
+
uv: boolean;
|
|
260
|
+
ipv6: boolean;
|
|
261
|
+
tls_alpn: boolean;
|
|
262
|
+
tls_sni: boolean;
|
|
263
|
+
tls_ocsp: boolean;
|
|
264
|
+
tls: boolean;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* @deprecated since v14.0.0 - Calling process.umask() with no argument causes
|
|
268
|
+
* the process-wide umask to be written twice. This introduces a race condition between threads,
|
|
269
|
+
* and is a potential security vulnerability. There is no safe, cross-platform alternative API.
|
|
270
|
+
*/
|
|
271
|
+
umask(): number;
|
|
272
|
+
/**
|
|
273
|
+
* Can only be set if not in worker thread.
|
|
274
|
+
*/
|
|
275
|
+
umask(mask: string | number): number;
|
|
276
|
+
uptime(): number;
|
|
277
|
+
hrtime: HRTime;
|
|
278
|
+
domain: Domain;
|
|
279
|
+
|
|
280
|
+
// Worker
|
|
281
|
+
send?(message: any, sendHandle?: any, options?: { swallowErrors?: boolean | undefined}, callback?: (error: Error | null) => void): boolean;
|
|
282
|
+
disconnect(): void;
|
|
283
|
+
connected: boolean;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* The `process.allowedNodeEnvironmentFlags` property is a special,
|
|
287
|
+
* read-only `Set` of flags allowable within the [`NODE_OPTIONS`][]
|
|
288
|
+
* environment variable.
|
|
289
|
+
*/
|
|
290
|
+
allowedNodeEnvironmentFlags: ReadonlySet<string>;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Only available with `--experimental-report`
|
|
294
|
+
*/
|
|
295
|
+
report?: ProcessReport | undefined;
|
|
296
|
+
|
|
297
|
+
resourceUsage(): ResourceUsage;
|
|
298
|
+
|
|
299
|
+
traceDeprecation: boolean;
|
|
300
|
+
|
|
301
|
+
/* EventEmitter */
|
|
302
|
+
addListener(event: "beforeExit", listener: BeforeExitListener): this;
|
|
303
|
+
addListener(event: "disconnect", listener: DisconnectListener): this;
|
|
304
|
+
addListener(event: "exit", listener: ExitListener): this;
|
|
305
|
+
addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
306
|
+
addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
307
|
+
addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
308
|
+
addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
309
|
+
addListener(event: "warning", listener: WarningListener): this;
|
|
310
|
+
addListener(event: "message", listener: MessageListener): this;
|
|
311
|
+
addListener(event: Signals, listener: SignalsListener): this;
|
|
312
|
+
addListener(event: "newListener", listener: NewListenerListener): this;
|
|
313
|
+
addListener(event: "removeListener", listener: RemoveListenerListener): this;
|
|
314
|
+
addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
315
|
+
|
|
316
|
+
emit(event: "beforeExit", code: number): boolean;
|
|
317
|
+
emit(event: "disconnect"): boolean;
|
|
318
|
+
emit(event: "exit", code: number): boolean;
|
|
319
|
+
emit(event: "rejectionHandled", promise: Promise<any>): boolean;
|
|
320
|
+
emit(event: "uncaughtException", error: Error): boolean;
|
|
321
|
+
emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
|
|
322
|
+
emit(event: "unhandledRejection", reason: any, promise: Promise<any>): boolean;
|
|
323
|
+
emit(event: "warning", warning: Error): boolean;
|
|
324
|
+
emit(event: "message", message: any, sendHandle: any): this;
|
|
325
|
+
emit(event: Signals, signal: Signals): boolean;
|
|
326
|
+
emit(event: "newListener", eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
327
|
+
emit(event: "removeListener", eventName: string, listener: (...args: any[]) => void): this;
|
|
328
|
+
emit(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
329
|
+
|
|
330
|
+
on(event: "beforeExit", listener: BeforeExitListener): this;
|
|
331
|
+
on(event: "disconnect", listener: DisconnectListener): this;
|
|
332
|
+
on(event: "exit", listener: ExitListener): this;
|
|
333
|
+
on(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
334
|
+
on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
335
|
+
on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
336
|
+
on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
337
|
+
on(event: "warning", listener: WarningListener): this;
|
|
338
|
+
on(event: "message", listener: MessageListener): this;
|
|
339
|
+
on(event: Signals, listener: SignalsListener): this;
|
|
340
|
+
on(event: "newListener", listener: NewListenerListener): this;
|
|
341
|
+
on(event: "removeListener", listener: RemoveListenerListener): this;
|
|
342
|
+
on(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
343
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
344
|
+
|
|
345
|
+
once(event: "beforeExit", listener: BeforeExitListener): this;
|
|
346
|
+
once(event: "disconnect", listener: DisconnectListener): this;
|
|
347
|
+
once(event: "exit", listener: ExitListener): this;
|
|
348
|
+
once(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
349
|
+
once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
350
|
+
once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
351
|
+
once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
352
|
+
once(event: "warning", listener: WarningListener): this;
|
|
353
|
+
once(event: "message", listener: MessageListener): this;
|
|
354
|
+
once(event: Signals, listener: SignalsListener): this;
|
|
355
|
+
once(event: "newListener", listener: NewListenerListener): this;
|
|
356
|
+
once(event: "removeListener", listener: RemoveListenerListener): this;
|
|
357
|
+
once(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
358
|
+
|
|
359
|
+
prependListener(event: "beforeExit", listener: BeforeExitListener): this;
|
|
360
|
+
prependListener(event: "disconnect", listener: DisconnectListener): this;
|
|
361
|
+
prependListener(event: "exit", listener: ExitListener): this;
|
|
362
|
+
prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
363
|
+
prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
364
|
+
prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
365
|
+
prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
366
|
+
prependListener(event: "warning", listener: WarningListener): this;
|
|
367
|
+
prependListener(event: "message", listener: MessageListener): this;
|
|
368
|
+
prependListener(event: Signals, listener: SignalsListener): this;
|
|
369
|
+
prependListener(event: "newListener", listener: NewListenerListener): this;
|
|
370
|
+
prependListener(event: "removeListener", listener: RemoveListenerListener): this;
|
|
371
|
+
prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
372
|
+
|
|
373
|
+
prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
|
|
374
|
+
prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
|
|
375
|
+
prependOnceListener(event: "exit", listener: ExitListener): this;
|
|
376
|
+
prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
377
|
+
prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
378
|
+
prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
379
|
+
prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
380
|
+
prependOnceListener(event: "warning", listener: WarningListener): this;
|
|
381
|
+
prependOnceListener(event: "message", listener: MessageListener): this;
|
|
382
|
+
prependOnceListener(event: Signals, listener: SignalsListener): this;
|
|
383
|
+
prependOnceListener(event: "newListener", listener: NewListenerListener): this;
|
|
384
|
+
prependOnceListener(event: "removeListener", listener: RemoveListenerListener): this;
|
|
385
|
+
prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
386
|
+
|
|
387
|
+
listeners(event: "beforeExit"): BeforeExitListener[];
|
|
388
|
+
listeners(event: "disconnect"): DisconnectListener[];
|
|
389
|
+
listeners(event: "exit"): ExitListener[];
|
|
390
|
+
listeners(event: "rejectionHandled"): RejectionHandledListener[];
|
|
391
|
+
listeners(event: "uncaughtException"): UncaughtExceptionListener[];
|
|
392
|
+
listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[];
|
|
393
|
+
listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
|
|
394
|
+
listeners(event: "warning"): WarningListener[];
|
|
395
|
+
listeners(event: "message"): MessageListener[];
|
|
396
|
+
listeners(event: Signals): SignalsListener[];
|
|
397
|
+
listeners(event: "newListener"): NewListenerListener[];
|
|
398
|
+
listeners(event: "removeListener"): RemoveListenerListener[];
|
|
399
|
+
listeners(event: "multipleResolves"): MultipleResolveListener[];
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
interface Global {
|
|
403
|
+
process: Process;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export = process;
|
|
409
|
+
}
|
|
410
|
+
declare module 'node:process' {
|
|
411
|
+
import process = require('process');
|
|
412
|
+
export = process;
|
|
413
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated since v7.0.0
|
|
3
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
4
|
+
* In a future major version of Node.js this module will be removed.
|
|
5
|
+
* Users currently depending on the punycode module should switch to using
|
|
6
|
+
* the userland-provided Punycode.js module instead.
|
|
7
|
+
*/
|
|
8
|
+
declare module 'punycode' {
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated since v7.0.0
|
|
11
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
12
|
+
* In a future major version of Node.js this module will be removed.
|
|
13
|
+
* Users currently depending on the punycode module should switch to using
|
|
14
|
+
* the userland-provided Punycode.js module instead.
|
|
15
|
+
*/
|
|
16
|
+
function decode(string: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated since v7.0.0
|
|
19
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
20
|
+
* In a future major version of Node.js this module will be removed.
|
|
21
|
+
* Users currently depending on the punycode module should switch to using
|
|
22
|
+
* the userland-provided Punycode.js module instead.
|
|
23
|
+
*/
|
|
24
|
+
function encode(string: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated since v7.0.0
|
|
27
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
28
|
+
* In a future major version of Node.js this module will be removed.
|
|
29
|
+
* Users currently depending on the punycode module should switch to using
|
|
30
|
+
* the userland-provided Punycode.js module instead.
|
|
31
|
+
*/
|
|
32
|
+
function toUnicode(domain: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated since v7.0.0
|
|
35
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
36
|
+
* In a future major version of Node.js this module will be removed.
|
|
37
|
+
* Users currently depending on the punycode module should switch to using
|
|
38
|
+
* the userland-provided Punycode.js module instead.
|
|
39
|
+
*/
|
|
40
|
+
function toASCII(domain: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated since v7.0.0
|
|
43
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
44
|
+
* In a future major version of Node.js this module will be removed.
|
|
45
|
+
* Users currently depending on the punycode module should switch to using
|
|
46
|
+
* the userland-provided Punycode.js module instead.
|
|
47
|
+
*/
|
|
48
|
+
const ucs2: ucs2;
|
|
49
|
+
interface ucs2 {
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated since v7.0.0
|
|
52
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
53
|
+
* In a future major version of Node.js this module will be removed.
|
|
54
|
+
* Users currently depending on the punycode module should switch to using
|
|
55
|
+
* the userland-provided Punycode.js module instead.
|
|
56
|
+
*/
|
|
57
|
+
decode(string: string): number[];
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated since v7.0.0
|
|
60
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
61
|
+
* In a future major version of Node.js this module will be removed.
|
|
62
|
+
* Users currently depending on the punycode module should switch to using
|
|
63
|
+
* the userland-provided Punycode.js module instead.
|
|
64
|
+
*/
|
|
65
|
+
encode(codePoints: ReadonlyArray<number>): string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated since v7.0.0
|
|
69
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
70
|
+
* In a future major version of Node.js this module will be removed.
|
|
71
|
+
* Users currently depending on the punycode module should switch to using
|
|
72
|
+
* the userland-provided Punycode.js module instead.
|
|
73
|
+
*/
|
|
74
|
+
const version: string;
|
|
75
|
+
}
|
|
76
|
+
declare module 'node:punycode' {
|
|
77
|
+
export * from 'punycode';
|
|
78
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare module 'querystring' {
|
|
2
|
+
interface StringifyOptions {
|
|
3
|
+
encodeURIComponent?: ((str: string) => string) | undefined;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
interface ParseOptions {
|
|
7
|
+
maxKeys?: number | undefined;
|
|
8
|
+
decodeURIComponent?: ((str: string) => string) | undefined;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface ParsedUrlQuery extends NodeJS.Dict<string | string[]> { }
|
|
12
|
+
|
|
13
|
+
interface ParsedUrlQueryInput extends NodeJS.Dict<string | number | boolean | ReadonlyArray<string> | ReadonlyArray<number> | ReadonlyArray<boolean> | null> {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
|
|
17
|
+
function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
|
|
18
|
+
/**
|
|
19
|
+
* The querystring.encode() function is an alias for querystring.stringify().
|
|
20
|
+
*/
|
|
21
|
+
const encode: typeof stringify;
|
|
22
|
+
/**
|
|
23
|
+
* The querystring.decode() function is an alias for querystring.parse().
|
|
24
|
+
*/
|
|
25
|
+
const decode: typeof parse;
|
|
26
|
+
function escape(str: string): string;
|
|
27
|
+
function unescape(str: string): string;
|
|
28
|
+
}
|
|
29
|
+
declare module 'node:querystring' {
|
|
30
|
+
export * from 'querystring';
|
|
31
|
+
}
|