@zuplo/cli 6.71.21 → 6.71.23
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/@posthog/core/dist/error-tracking/exception-steps.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/error-tracking/exception-steps.js +6 -24
- package/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs +7 -25
- package/node_modules/@posthog/core/dist/posthog-core-stateless.d.ts +6 -0
- package/node_modules/@posthog/core/dist/posthog-core-stateless.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/posthog-core-stateless.js +75 -17
- package/node_modules/@posthog/core/dist/posthog-core-stateless.mjs +73 -18
- package/node_modules/@posthog/core/dist/posthog-core.d.ts +2 -2
- package/node_modules/@posthog/core/dist/posthog-core.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/posthog-core.js +10 -6
- package/node_modules/@posthog/core/dist/posthog-core.mjs +11 -7
- package/node_modules/@posthog/core/dist/testing/PostHogCoreTestClient.d.ts +1 -0
- package/node_modules/@posthog/core/dist/testing/PostHogCoreTestClient.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/testing/PostHogCoreTestClient.js +3 -0
- package/node_modules/@posthog/core/dist/testing/PostHogCoreTestClient.mjs +3 -0
- package/node_modules/@posthog/core/dist/utils/promise-queue.d.ts +3 -0
- package/node_modules/@posthog/core/dist/utils/promise-queue.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/utils/promise-queue.js +15 -3
- package/node_modules/@posthog/core/dist/utils/promise-queue.mjs +15 -3
- package/node_modules/@posthog/core/dist/utils/string-utils.d.ts +1 -0
- package/node_modules/@posthog/core/dist/utils/string-utils.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/utils/string-utils.js +21 -0
- package/node_modules/@posthog/core/dist/utils/string-utils.mjs +19 -1
- package/node_modules/@posthog/core/package.json +1 -1
- package/node_modules/@posthog/core/src/error-tracking/exception-steps.ts +5 -42
- package/node_modules/@posthog/core/src/posthog-core-stateless.ts +118 -23
- package/node_modules/@posthog/core/src/posthog-core.ts +18 -7
- package/node_modules/@posthog/core/src/testing/PostHogCoreTestClient.ts +4 -0
- package/node_modules/@posthog/core/src/utils/promise-queue.ts +17 -4
- package/node_modules/@posthog/core/src/utils/string-utils.spec.ts +38 -1
- package/node_modules/@posthog/core/src/utils/string-utils.ts +42 -0
- package/node_modules/@posthog/types/dist/posthog.d.ts +12 -0
- package/node_modules/@posthog/types/dist/posthog.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/posthog.ts +13 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/buffer.d.ts +64 -25
- package/node_modules/@types/node/crypto.d.ts +18 -5
- package/node_modules/@types/node/diagnostics_channel.d.ts +237 -3
- package/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@types/node/fs/promises.d.ts +3 -0
- package/node_modules/@types/node/fs.d.ts +21 -6
- package/node_modules/@types/node/http.d.ts +25 -0
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/process.d.ts +14 -1
- package/node_modules/@types/node/quic.d.ts +92 -11
- package/node_modules/@types/node/sqlite.d.ts +55 -0
- package/node_modules/@types/node/stream/iter.d.ts +150 -0
- package/node_modules/@types/node/stream.d.ts +32 -0
- package/node_modules/@types/node/test.d.ts +112 -2
- package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
- package/node_modules/@types/node/util.d.ts +19 -2
- package/node_modules/@types/node/v8.d.ts +84 -2
- package/node_modules/@types/node/worker_threads.d.ts +8 -7
- package/node_modules/@zuplo/core/customer.cli.minified.js +2 -2
- package/node_modules/@zuplo/core/index.minified.js +2 -2
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/out/esm/index.js +11 -11
- package/node_modules/@zuplo/graphql/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-DQ4ANJLR.js → chunk-4MNJC7E2.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/chunk-4MNJC7E2.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-2Y72LML3.js → chunk-4QJJMELB.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-2Y72LML3.js.map → chunk-4QJJMELB.js.map} +1 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-5CYWMN74.js +402 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-5CYWMN74.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-L3MZGNQA.js → chunk-DSZS6PZJ.js} +10 -10
- package/node_modules/@zuplo/runtime/out/esm/chunk-DSZS6PZJ.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/internal/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +7 -7
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +1050 -18
- package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +33 -7
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/iconv-lite/encodings/sbcs-data.js +2 -0
- package/node_modules/iconv-lite/encodings/utf32.js +10 -3
- package/node_modules/iconv-lite/package.json +2 -2
- package/node_modules/iconv-lite/types/encodings.d.ts +2 -0
- package/node_modules/protobufjs/dist/light/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +5 -2
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/parse.js +3 -0
- package/node_modules/toad-cache/README.md +10 -9
- package/node_modules/toad-cache/dist/toad-cache.cjs +139 -139
- package/node_modules/toad-cache/dist/toad-cache.mjs +136 -140
- package/node_modules/toad-cache/package.json +8 -8
- package/node_modules/toad-cache/toad-cache.d.cts +20 -14
- package/node_modules/toad-cache/toad-cache.d.ts +18 -14
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-DQ4ANJLR.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-I5HLAHUY.js +0 -357
- package/node_modules/@zuplo/runtime/out/esm/chunk-I5HLAHUY.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-L3MZGNQA.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-I5HLAHUY.js.LEGAL.txt → chunk-5CYWMN74.js.LEGAL.txt} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-L3MZGNQA.js.LEGAL.txt → chunk-DSZS6PZJ.js.LEGAL.txt} +0 -0
|
@@ -34,7 +34,12 @@ import {
|
|
|
34
34
|
updateFlagValue,
|
|
35
35
|
} from './featureFlagUtils'
|
|
36
36
|
import { Compression, FeatureFlagError, PostHogPersistedProperty } from './types'
|
|
37
|
-
import {
|
|
37
|
+
import {
|
|
38
|
+
applyCallerFeatureFlagOverrides,
|
|
39
|
+
maybeAdd,
|
|
40
|
+
PostHogCoreStateless,
|
|
41
|
+
QuotaLimitedFeature,
|
|
42
|
+
} from './posthog-core-stateless'
|
|
38
43
|
import { uuidv7 } from './vendor/uuidv7'
|
|
39
44
|
import { isEmptyObject, isNullish, getPersonPropertiesHash, isObject, isArray, isString, getEventUuid } from './utils'
|
|
40
45
|
import { EventHint } from './error-tracking'
|
|
@@ -220,13 +225,16 @@ export abstract class PostHogCore extends PostHogCoreStateless {
|
|
|
220
225
|
}
|
|
221
226
|
|
|
222
227
|
private enrichProperties(properties?: PostHogEventProperties): PostHogEventProperties {
|
|
223
|
-
|
|
228
|
+
const userProperties = properties || {}
|
|
229
|
+
const enriched: PostHogEventProperties = {
|
|
224
230
|
...this.props, // Persisted properties first
|
|
225
231
|
...this.sessionProps, // Followed by session properties
|
|
226
|
-
...
|
|
232
|
+
...userProperties, // Followed by user specified properties
|
|
227
233
|
...this.getCommonEventProperties(), // Followed by FF props
|
|
228
234
|
$session_id: this.getSessionId(),
|
|
229
235
|
}
|
|
236
|
+
applyCallerFeatureFlagOverrides(enriched, userProperties)
|
|
237
|
+
return enriched
|
|
230
238
|
}
|
|
231
239
|
|
|
232
240
|
/**
|
|
@@ -1060,8 +1068,11 @@ export abstract class PostHogCore extends PostHogCoreStateless {
|
|
|
1060
1068
|
}
|
|
1061
1069
|
}
|
|
1062
1070
|
|
|
1063
|
-
getFeatureFlag(key: string): FeatureFlagValue | undefined {
|
|
1064
|
-
const result = this._getFeatureFlagResult(key, {
|
|
1071
|
+
getFeatureFlag(key: string, options?: FeatureFlagResultOptions): FeatureFlagValue | undefined {
|
|
1072
|
+
const result = this._getFeatureFlagResult(key, {
|
|
1073
|
+
missingFlagBehavior: 'getFeatureFlag',
|
|
1074
|
+
sendEvent: options?.sendEvent,
|
|
1075
|
+
})
|
|
1065
1076
|
return result?.variant ?? result?.enabled
|
|
1066
1077
|
}
|
|
1067
1078
|
|
|
@@ -1129,8 +1140,8 @@ export abstract class PostHogCore extends PostHogCoreStateless {
|
|
|
1129
1140
|
}
|
|
1130
1141
|
}
|
|
1131
1142
|
|
|
1132
|
-
isFeatureEnabled(key: string): boolean | undefined {
|
|
1133
|
-
const response = this.getFeatureFlag(key)
|
|
1143
|
+
isFeatureEnabled(key: string, options?: FeatureFlagResultOptions): boolean | undefined {
|
|
1144
|
+
const response = this.getFeatureFlag(key, options)
|
|
1134
1145
|
if (response === undefined) {
|
|
1135
1146
|
return undefined
|
|
1136
1147
|
}
|
|
@@ -35,6 +35,10 @@ export class PostHogCoreTestClient extends PostHogCore {
|
|
|
35
35
|
return super.getFlags(distinctId, groups, personProperties, groupProperties, extraPayload)
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
public flushWithPendingPromises(): Promise<void> {
|
|
39
|
+
return super.flushWithPendingPromises()
|
|
40
|
+
}
|
|
41
|
+
|
|
38
42
|
getPersistedProperty<T>(key: string): T {
|
|
39
43
|
return this.mocks.storage.getItem(key)
|
|
40
44
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { uuidv7 } from '../vendor/uuidv7'
|
|
2
2
|
|
|
3
3
|
export class PromiseQueue {
|
|
4
|
-
private promiseByIds: Record<string, Promise<any
|
|
4
|
+
private promiseByIds: Record<string, { id: number; promise: Promise<any> }> = {}
|
|
5
|
+
private nextId: number = 0
|
|
5
6
|
|
|
6
7
|
public add(promise: Promise<any>): Promise<any> {
|
|
7
8
|
const promiseUUID = uuidv7()
|
|
8
|
-
|
|
9
|
+
const id = ++this.nextId
|
|
10
|
+
this.promiseByIds[promiseUUID] = { id, promise }
|
|
9
11
|
promise
|
|
10
12
|
.catch(() => {})
|
|
11
13
|
.finally(() => {
|
|
@@ -15,15 +17,26 @@ export class PromiseQueue {
|
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
public async join(): Promise<void> {
|
|
18
|
-
let promises = Object.values(this.promiseByIds)
|
|
20
|
+
let promises = Object.values(this.promiseByIds).map((item) => item.promise)
|
|
19
21
|
let length = promises.length
|
|
20
22
|
while (length > 0) {
|
|
21
23
|
await Promise.all(promises)
|
|
22
|
-
promises = Object.values(this.promiseByIds)
|
|
24
|
+
promises = Object.values(this.promiseByIds).map((item) => item.promise)
|
|
23
25
|
length = promises.length
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
|
|
29
|
+
public getPromises(ignoredPromises: Promise<any>[] = [], maxId: number = this.nextId): Promise<any>[] {
|
|
30
|
+
const ignoredPromiseSet = new Set(ignoredPromises)
|
|
31
|
+
return Object.values(this.promiseByIds)
|
|
32
|
+
.filter((item) => item.id <= maxId && !ignoredPromiseSet.has(item.promise))
|
|
33
|
+
.map((item) => item.promise)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public get maxId(): number {
|
|
37
|
+
return this.nextId
|
|
38
|
+
}
|
|
39
|
+
|
|
27
40
|
public get length(): number {
|
|
28
41
|
return Object.keys(this.promiseByIds).length
|
|
29
42
|
}
|
|
@@ -1,6 +1,43 @@
|
|
|
1
|
-
import { getPersonPropertiesHash } from './string-utils'
|
|
1
|
+
import { getPersonPropertiesHash, safeJsonStringify } from './string-utils'
|
|
2
2
|
|
|
3
3
|
describe('string-utils', () => {
|
|
4
|
+
describe('safeJsonStringify', () => {
|
|
5
|
+
it.each([
|
|
6
|
+
[
|
|
7
|
+
'replaces circular references',
|
|
8
|
+
() => {
|
|
9
|
+
const circular: Record<string, any> = { foo: 'bar' }
|
|
10
|
+
circular.self = circular
|
|
11
|
+
return {
|
|
12
|
+
value: circular,
|
|
13
|
+
expected: { foo: 'bar', self: '[Circular]' },
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
'preserves shared non-circular references',
|
|
19
|
+
() => {
|
|
20
|
+
const shared = { id: 1 }
|
|
21
|
+
return {
|
|
22
|
+
value: { a: shared, b: shared },
|
|
23
|
+
expected: { a: { id: 1 }, b: { id: 1 } },
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
'serializes bigint values as strings',
|
|
29
|
+
() => ({
|
|
30
|
+
value: { count: BigInt(123) },
|
|
31
|
+
expected: { count: '123' },
|
|
32
|
+
}),
|
|
33
|
+
],
|
|
34
|
+
])('%s', (_description, buildCase) => {
|
|
35
|
+
const { value, expected } = buildCase()
|
|
36
|
+
|
|
37
|
+
expect(JSON.parse(safeJsonStringify(value))).toEqual(expected)
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
|
|
4
41
|
describe('getPersonPropertiesHash', () => {
|
|
5
42
|
it('should return consistent hash regardless of top-level key order', () => {
|
|
6
43
|
const hash1 = getPersonPropertiesHash('user-1', { b: 'value-b', a: 'value-a' })
|
|
@@ -24,6 +24,48 @@ export function isDistinctIdStringLike(value: string): boolean {
|
|
|
24
24
|
return ['distinct_id', 'distinctid'].includes(value.toLowerCase())
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export function safeJsonStringify(value: unknown): string {
|
|
28
|
+
// Browser replay has `circularReferenceReplacer`, which uses this same
|
|
29
|
+
// ancestor-chain approach to replace only true cycles. Keep this core helper
|
|
30
|
+
// separate so Node/RN/core payload serialization does not depend on browser
|
|
31
|
+
// replay internals, and so we can also handle BigInt and Error values here.
|
|
32
|
+
const ancestors: object[] = []
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
JSON.stringify(value, function (this: unknown, _key: string, replacementValue: unknown) {
|
|
36
|
+
if (typeof replacementValue === 'bigint') {
|
|
37
|
+
return replacementValue.toString()
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (typeof replacementValue === 'function' || typeof replacementValue === 'symbol') {
|
|
41
|
+
return undefined
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (replacementValue instanceof Error) {
|
|
45
|
+
return {
|
|
46
|
+
name: replacementValue.name,
|
|
47
|
+
message: replacementValue.message,
|
|
48
|
+
stack: replacementValue.stack,
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (replacementValue && typeof replacementValue === 'object') {
|
|
53
|
+
while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {
|
|
54
|
+
ancestors.pop()
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (ancestors.includes(replacementValue)) {
|
|
58
|
+
return '[Circular]'
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
ancestors.push(replacementValue)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return replacementValue
|
|
65
|
+
}) ?? 'null'
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
|
|
27
69
|
/**
|
|
28
70
|
* Recursively sorts all keys in an object and its nested objects/arrays.
|
|
29
71
|
* Used to ensure deterministic JSON serialization regardless of object construction order.
|
|
@@ -151,6 +151,18 @@ export interface PostHog {
|
|
|
151
151
|
* @param {boolean} [reset_device_id] Whether to generate a new device ID as well as a new distinct ID.
|
|
152
152
|
*/
|
|
153
153
|
reset(reset_device_id?: boolean): void;
|
|
154
|
+
/**
|
|
155
|
+
* Flush any queued events and gracefully tear down the SDK.
|
|
156
|
+
*
|
|
157
|
+
* @remarks
|
|
158
|
+
* Provided for parity with the server-side Node.js SDK. In the browser the SDK
|
|
159
|
+
* already flushes on page unload, so this best-effort flushes queued events and
|
|
160
|
+
* always resolves — it never throws — which makes isomorphic teardown safe.
|
|
161
|
+
*
|
|
162
|
+
* @param {number} [shutdownTimeoutMs] Accepted for parity with the Node.js SDK; unused in the browser.
|
|
163
|
+
* @returns {Promise<void>} Resolves once teardown is complete.
|
|
164
|
+
*/
|
|
165
|
+
shutdown(shutdownTimeoutMs?: number): Promise<void>;
|
|
154
166
|
/**
|
|
155
167
|
* Create a person profile for the current user.
|
|
156
168
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog.d.ts","sourceRoot":"","sources":["../src/posthog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAC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EAAE,eAAe,KAAK,IAAI,CAAA;QACjF,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe,KAAK,IAAI,CAAA;KACzF,CAAA;IAED;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAA;CAChC"}
|
|
@@ -190,6 +190,19 @@ export interface PostHog {
|
|
|
190
190
|
*/
|
|
191
191
|
reset(reset_device_id?: boolean): void
|
|
192
192
|
|
|
193
|
+
/**
|
|
194
|
+
* Flush any queued events and gracefully tear down the SDK.
|
|
195
|
+
*
|
|
196
|
+
* @remarks
|
|
197
|
+
* Provided for parity with the server-side Node.js SDK. In the browser the SDK
|
|
198
|
+
* already flushes on page unload, so this best-effort flushes queued events and
|
|
199
|
+
* always resolves — it never throws — which makes isomorphic teardown safe.
|
|
200
|
+
*
|
|
201
|
+
* @param {number} [shutdownTimeoutMs] Accepted for parity with the Node.js SDK; unused in the browser.
|
|
202
|
+
* @returns {Promise<void>} Resolves once teardown is complete.
|
|
203
|
+
*/
|
|
204
|
+
shutdown(shutdownTimeoutMs?: number): Promise<void>
|
|
205
|
+
|
|
193
206
|
/**
|
|
194
207
|
* Create a person profile for the current user.
|
|
195
208
|
*/
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Wed,
|
|
11
|
+
* Last updated: Wed, 01 Jul 2026 11:03:38 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -1550,11 +1550,12 @@ declare module "node:buffer" {
|
|
|
1550
1550
|
/**
|
|
1551
1551
|
* If `value` is:
|
|
1552
1552
|
*
|
|
1553
|
-
* * a string, `value` is interpreted according to the character encoding in
|
|
1554
|
-
*
|
|
1555
|
-
*
|
|
1553
|
+
* * a string, `value` is interpreted according to the character encoding in
|
|
1554
|
+
* `encoding`.
|
|
1555
|
+
* * a `Buffer` or `Uint8Array`, `value` will be used in its entirety.
|
|
1556
|
+
* To compare a partial `Buffer`, use `buf.subarray`.
|
|
1556
1557
|
* * a number, `value` will be interpreted as an unsigned 8-bit integer
|
|
1557
|
-
*
|
|
1558
|
+
* value between `0` and `255`.
|
|
1558
1559
|
*
|
|
1559
1560
|
* ```js
|
|
1560
1561
|
* import { Buffer } from 'node:buffer';
|
|
@@ -1582,12 +1583,13 @@ declare module "node:buffer" {
|
|
|
1582
1583
|
* // Prints: 6
|
|
1583
1584
|
* ```
|
|
1584
1585
|
*
|
|
1585
|
-
* If `value` is not a string, number, or `Buffer`, this method will throw a
|
|
1586
|
+
* If `value` is not a string, number, or `Buffer`, this method will throw a
|
|
1587
|
+
* `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
|
|
1586
1588
|
* an integer between 0 and 255.
|
|
1587
1589
|
*
|
|
1588
1590
|
* If `byteOffset` is not a number, it will be coerced to a number. If the result
|
|
1589
1591
|
* of coercion is `NaN` or `0`, then the entire buffer will be searched. This
|
|
1590
|
-
* behavior matches
|
|
1592
|
+
* behavior matches `String.prototype.indexOf()`.
|
|
1591
1593
|
*
|
|
1592
1594
|
* ```js
|
|
1593
1595
|
* import { Buffer } from 'node:buffer';
|
|
@@ -1608,14 +1610,27 @@ declare module "node:buffer" {
|
|
|
1608
1610
|
* ```
|
|
1609
1611
|
*
|
|
1610
1612
|
* If `value` is an empty string or empty `Buffer` and `byteOffset` is less
|
|
1611
|
-
* than `buf.length`, `byteOffset` will be returned. If `value` is empty and
|
|
1613
|
+
* than `buf.length`, `byteOffset` will be returned. If `value` is empty and
|
|
1614
|
+
* `byteOffset` is at least `buf.length`, `buf.length` will be returned.
|
|
1612
1615
|
* @since v1.5.0
|
|
1613
1616
|
* @param value What to search for.
|
|
1614
|
-
* @param
|
|
1615
|
-
*
|
|
1616
|
-
* @
|
|
1617
|
-
|
|
1618
|
-
|
|
1617
|
+
* @param start Where to begin searching in `buf`. If negative, then
|
|
1618
|
+
* offset is calculated from the end of `buf`. **Default:** `0`.
|
|
1619
|
+
* @param end Where to stop searching in `buf` (exclusive). **Default:**
|
|
1620
|
+
* `buf.length`.
|
|
1621
|
+
* @param encoding If `value` is a string, this is the encoding used to
|
|
1622
|
+
* determine the binary representation of the string that will be searched for in
|
|
1623
|
+
* `buf`. **Default:** `'utf8'`.
|
|
1624
|
+
* @returns The index of the first occurrence of `value` in `buf`, or
|
|
1625
|
+
* `-1` if `buf` does not contain `value`.
|
|
1626
|
+
*/
|
|
1627
|
+
indexOf(
|
|
1628
|
+
value: string | number | Uint8Array,
|
|
1629
|
+
start?: number,
|
|
1630
|
+
end?: number,
|
|
1631
|
+
encoding?: BufferEncoding,
|
|
1632
|
+
): number;
|
|
1633
|
+
indexOf(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): number;
|
|
1619
1634
|
indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
|
|
1620
1635
|
/**
|
|
1621
1636
|
* Identical to `buf.indexOf()`, except the last occurrence of `value` is found
|
|
@@ -1649,12 +1664,13 @@ declare module "node:buffer" {
|
|
|
1649
1664
|
* // Prints: 4
|
|
1650
1665
|
* ```
|
|
1651
1666
|
*
|
|
1652
|
-
* If `value` is not a string, number, or `Buffer`, this method will throw a
|
|
1667
|
+
* If `value` is not a string, number, or `Buffer`, this method will throw a
|
|
1668
|
+
* `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
|
|
1653
1669
|
* an integer between 0 and 255.
|
|
1654
1670
|
*
|
|
1655
1671
|
* If `byteOffset` is not a number, it will be coerced to a number. Any arguments
|
|
1656
1672
|
* that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer.
|
|
1657
|
-
* This behavior matches
|
|
1673
|
+
* This behavior matches `String.prototype.lastIndexOf()`.
|
|
1658
1674
|
*
|
|
1659
1675
|
* ```js
|
|
1660
1676
|
* import { Buffer } from 'node:buffer';
|
|
@@ -1680,11 +1696,24 @@ declare module "node:buffer" {
|
|
|
1680
1696
|
* If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned.
|
|
1681
1697
|
* @since v6.0.0
|
|
1682
1698
|
* @param value What to search for.
|
|
1683
|
-
* @param
|
|
1684
|
-
*
|
|
1685
|
-
*
|
|
1686
|
-
|
|
1687
|
-
|
|
1699
|
+
* @param start Where to begin searching in `buf`. If negative, then
|
|
1700
|
+
* offset is calculated from the end of `buf`. **Default:**
|
|
1701
|
+
* `buf.length - 1`.
|
|
1702
|
+
* @param end Where to stop searching in `buf` (exclusive). **Default:**
|
|
1703
|
+
* `buf.length`.
|
|
1704
|
+
* @param encoding If `value` is a string, this is the encoding used to
|
|
1705
|
+
* determine the binary representation of the string that will be searched for in
|
|
1706
|
+
* `buf`. **Default:** `'utf8'`.
|
|
1707
|
+
* @returns The index of the last occurrence of `value` in `buf`, or
|
|
1708
|
+
* `-1` if `buf` does not contain `value`.
|
|
1709
|
+
*/
|
|
1710
|
+
lastIndexOf(
|
|
1711
|
+
value: string | number | Uint8Array,
|
|
1712
|
+
start?: number,
|
|
1713
|
+
end?: number,
|
|
1714
|
+
encoding?: BufferEncoding,
|
|
1715
|
+
): number;
|
|
1716
|
+
lastIndexOf(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): number;
|
|
1688
1717
|
lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
|
|
1689
1718
|
/**
|
|
1690
1719
|
* Equivalent to `buf.indexOf() !== -1`.
|
|
@@ -1711,12 +1740,22 @@ declare module "node:buffer" {
|
|
|
1711
1740
|
* ```
|
|
1712
1741
|
* @since v5.3.0
|
|
1713
1742
|
* @param value What to search for.
|
|
1714
|
-
* @param
|
|
1715
|
-
*
|
|
1716
|
-
* @
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1743
|
+
* @param start Where to begin searching in `buf`. If negative, then
|
|
1744
|
+
* offset is calculated from the end of `buf`. **Default:** `0`.
|
|
1745
|
+
* @param end Where to stop searching in `buf` (exclusive). **Default:**
|
|
1746
|
+
* `buf.length`.
|
|
1747
|
+
* @param encoding If `value` is a string, this is its encoding.
|
|
1748
|
+
* **Default:** `'utf8'`.
|
|
1749
|
+
* @returns `true` if `value` was found in `buf`, `false` otherwise.
|
|
1750
|
+
*/
|
|
1751
|
+
includes(
|
|
1752
|
+
value: string | number | Uint8Array,
|
|
1753
|
+
start?: number,
|
|
1754
|
+
end?: number,
|
|
1755
|
+
encoding?: BufferEncoding,
|
|
1756
|
+
): boolean;
|
|
1757
|
+
includes(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): boolean;
|
|
1758
|
+
includes(value: string | number | Uint8Array, encoding: BufferEncoding): boolean;
|
|
1720
1759
|
}
|
|
1721
1760
|
var Buffer: BufferConstructor;
|
|
1722
1761
|
}
|
|
@@ -1373,9 +1373,9 @@ declare module "node:crypto" {
|
|
|
1373
1373
|
*/
|
|
1374
1374
|
update(data: string | NodeJS.ArrayBufferView, inputEncoding?: BufferEncoding): Verify;
|
|
1375
1375
|
/**
|
|
1376
|
-
* Verifies the provided data using the given `
|
|
1376
|
+
* Verifies the provided data using the given `key` and `signature`.
|
|
1377
1377
|
*
|
|
1378
|
-
* If `
|
|
1378
|
+
* If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
|
|
1379
1379
|
* object, the following additional properties can be passed:
|
|
1380
1380
|
*
|
|
1381
1381
|
* The `signature` argument is the previously calculated signature for the data, in
|
|
@@ -1392,7 +1392,7 @@ declare module "node:crypto" {
|
|
|
1392
1392
|
* @since v0.1.92
|
|
1393
1393
|
*/
|
|
1394
1394
|
verify(
|
|
1395
|
-
|
|
1395
|
+
key:
|
|
1396
1396
|
| KeyLike
|
|
1397
1397
|
| VerifyKeyObjectInput
|
|
1398
1398
|
| VerifyPublicKeyInput
|
|
@@ -1470,8 +1470,10 @@ declare module "node:crypto" {
|
|
|
1470
1470
|
* If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
|
|
1471
1471
|
*
|
|
1472
1472
|
* This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular,
|
|
1473
|
-
* once a private key has been generated or set, calling this function only
|
|
1474
|
-
* the public key
|
|
1473
|
+
* once a private key has been generated or set, calling this function only
|
|
1474
|
+
* recomputes the public key from the existing private key. Since the public key is
|
|
1475
|
+
* determined by the private key, the result will be the same unless the private key
|
|
1476
|
+
* has been changed via `diffieHellman.setPrivateKey()`.
|
|
1475
1477
|
* @since v0.5.0
|
|
1476
1478
|
* @param encoding The `encoding` of the return value.
|
|
1477
1479
|
*/
|
|
@@ -2997,6 +2999,7 @@ declare module "node:crypto" {
|
|
|
2997
2999
|
*/
|
|
2998
3000
|
disableEntropyCache?: boolean | undefined;
|
|
2999
3001
|
}
|
|
3002
|
+
interface RandomUUIDV7Options extends RandomUUIDOptions {}
|
|
3000
3003
|
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
3001
3004
|
/**
|
|
3002
3005
|
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
|
@@ -3004,6 +3007,16 @@ declare module "node:crypto" {
|
|
|
3004
3007
|
* @since v15.6.0, v14.17.0
|
|
3005
3008
|
*/
|
|
3006
3009
|
function randomUUID(options?: RandomUUIDOptions): UUID;
|
|
3010
|
+
/**
|
|
3011
|
+
* Generates a random [RFC 9562](https://www.rfc-editor.org/rfc/rfc9562.txt) version 7 UUID. The UUID contains a millisecond
|
|
3012
|
+
* precision Unix timestamp in the most significant 48 bits, followed by
|
|
3013
|
+
* cryptographically secure random bits for the remaining fields, making it
|
|
3014
|
+
* suitable for use as a database key with time-based sorting. The embedded
|
|
3015
|
+
* timestamp relies on a non-monotonic clock and is not guaranteed to be strictly
|
|
3016
|
+
* increasing.
|
|
3017
|
+
* @since v26.1.0
|
|
3018
|
+
*/
|
|
3019
|
+
function randomUUIDv7(options?: RandomUUIDV7Options): UUID;
|
|
3007
3020
|
interface X509CheckOptions {
|
|
3008
3021
|
subject?: "always" | "default" | "never" | undefined;
|
|
3009
3022
|
wildcards?: boolean | undefined;
|