@bitblit/ratchet-common 4.0.164-alpha → 4.0.183-alpha
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/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +2 -16
- package/lib/2d/line-2d.d.ts +0 -5
- package/lib/2d/plane-2d.d.ts +0 -6
- package/lib/2d/point-2d.d.ts +0 -4
- package/lib/2d/poly-line-2d.d.ts +0 -4
- package/lib/2d/ratchet-2d.d.ts +0 -37
- package/lib/2d/ratchet-2d.spec.d.ts +0 -1
- package/lib/build/build-information.d.ts +0 -8
- package/lib/build/ratchet-common-info.d.ts +0 -5
- package/lib/histogram/histogram-entry.d.ts +0 -4
- package/lib/histogram/histogram.d.ts +0 -12
- package/lib/histogram/histogram.spec.d.ts +0 -1
- package/lib/jwt/common-jwt-token.d.ts +0 -6
- package/lib/jwt/expired-jwt-handling.d.ts +0 -5
- package/lib/jwt/jwt-ratchet-like.d.ts +0 -15
- package/lib/jwt/jwt-ratchet.d.ts +0 -30
- package/lib/jwt/jwt-ratchet.spec.d.ts +0 -1
- package/lib/jwt/jwt-token-base.d.ts +0 -9
- package/lib/lang/array-ratchet.d.ts +0 -14
- package/lib/lang/array-ratchet.spec.d.ts +0 -1
- package/lib/lang/base64-ratchet.d.ts +0 -10
- package/lib/lang/base64-ratchet.spec.d.ts +0 -1
- package/lib/lang/boolean-ratchet.d.ts +0 -7
- package/lib/lang/boolean-ratchet.spec.d.ts +0 -1
- package/lib/lang/composite-last-success-provider.d.ts +0 -7
- package/lib/lang/composite-last-success-provider.spec.d.ts +0 -1
- package/lib/lang/date-ratchet.d.ts +0 -11
- package/lib/lang/date-ratchet.spec.d.ts +0 -1
- package/lib/lang/duration-ratchet.d.ts +0 -7
- package/lib/lang/duration-ratchet.spec.d.ts +0 -1
- package/lib/lang/enum-ratchet.d.ts +0 -5
- package/lib/lang/enum-ratchet.spec.d.ts +0 -5
- package/lib/lang/error-ratchet.d.ts +0 -6
- package/lib/lang/error-ratchet.spec.d.ts +0 -1
- package/lib/lang/esm-ratchet.d.ts +0 -4
- package/lib/lang/expiring-object.d.ts +0 -20
- package/lib/lang/expiring-object.spec.d.ts +0 -1
- package/lib/lang/geolocation-ratchet.d.ts +0 -40
- package/lib/lang/geolocation-ratchet.spec.d.ts +0 -1
- package/lib/lang/global-ratchet.d.ts +0 -6
- package/lib/lang/global-ratchet.spec.d.ts +0 -1
- package/lib/lang/key-value.d.ts +0 -4
- package/lib/lang/last-success-provider.d.ts +0 -3
- package/lib/lang/map-ratchet.d.ts +0 -15
- package/lib/lang/map-ratchet.spec.d.ts +0 -1
- package/lib/lang/no.d.ts +0 -3
- package/lib/lang/no.spec.d.ts +0 -1
- package/lib/lang/number-ratchet.d.ts +0 -20
- package/lib/lang/number-ratchet.spec.d.ts +0 -1
- package/lib/lang/parsed-url.d.ts +0 -10
- package/lib/lang/promise-ratchet.d.ts +0 -18
- package/lib/lang/promise-ratchet.spec.d.ts +0 -1
- package/lib/lang/require-ratchet.d.ts +0 -11
- package/lib/lang/require-ratchet.spec.d.ts +0 -3
- package/lib/lang/stop-watch.d.ts +0 -17
- package/lib/lang/string-ratchet.d.ts +0 -28
- package/lib/lang/string-ratchet.spec.d.ts +0 -1
- package/lib/lang/time-zone-ratchet.d.ts +0 -19
- package/lib/lang/time-zone-ratchet.spec.d.ts +0 -1
- package/lib/lang/timeout-token.d.ts +0 -9
- package/lib/lang/timeout-token.spec.d.ts +0 -1
- package/lib/logger/classic-single-line-log-message-formatter.d.ts +0 -6
- package/lib/logger/log-message-builder.d.ts +0 -14
- package/lib/logger/log-message-format-type.d.ts +0 -5
- package/lib/logger/log-message-formatter.d.ts +0 -5
- package/lib/logger/log-message-processor.d.ts +0 -5
- package/lib/logger/log-message.d.ts +0 -8
- package/lib/logger/log-snapshot.d.ts +0 -5
- package/lib/logger/logger-instance.d.ts +0 -46
- package/lib/logger/logger-level-name.d.ts +0 -8
- package/lib/logger/logger-meta.d.ts +0 -6
- package/lib/logger/logger-options.d.ts +0 -13
- package/lib/logger/logger-output-function.d.ts +0 -5
- package/lib/logger/logger-ring-buffer.d.ts +0 -18
- package/lib/logger/logger-util.d.ts +0 -8
- package/lib/logger/logger-util.spec.d.ts +0 -1
- package/lib/logger/logger.d.ts +0 -43
- package/lib/logger/logger.spec.d.ts +0 -1
- package/lib/logger/none-log-message-formatter.d.ts +0 -6
- package/lib/logger/structured-json-log-message-formatter.d.ts +0 -6
- package/lib/network/browser-local-ip-provider.d.ts +0 -7
- package/lib/network/browser-local-ip-provider.spec.d.ts +0 -1
- package/lib/network/fixed-local-ip-provider.d.ts +0 -6
- package/lib/network/local-ip-provider.d.ts +0 -3
- package/lib/network/network-ratchet.d.ts +0 -9
- package/lib/network/network-ratchet.spec.d.ts +0 -1
- package/lib/stream/buffer-writable.d.ts +0 -9
- package/lib/stream/multi-stream.d.ts +0 -7
- package/lib/stream/stream-ratchet.d.ts +0 -12
- package/lib/stream/stream-ratchet.spec.d.ts +0 -1
- package/lib/stream/string-writable.d.ts +0 -8
- package/lib/stream/string-writable.spec.d.ts +0 -1
- package/lib/template/ratchet-template-renderer.d.ts +0 -4
- package/lib/third-party/google/google-recaptcha-ratchet.d.ts +0 -4
- package/lib/third-party/google/google-recaptcha-ratchet.spec.d.ts +0 -1
- package/lib/third-party/twilio/twilio-ratchet.d.ts +0 -11
- package/lib/transform/built-in-transforms.d.ts +0 -18
- package/lib/transform/transform-ratchet.d.ts +0 -7
- package/lib/transform/transform-ratchet.spec.d.ts +0 -1
- package/lib/transform/transform-rule.d.ts +0 -3
- package/lib/tx/transaction-configuration.d.ts +0 -7
- package/lib/tx/transaction-final-state.d.ts +0 -5
- package/lib/tx/transaction-ratchet.d.ts +0 -6
- package/lib/tx/transaction-ratchet.spec.d.ts +0 -1
- package/lib/tx/transaction-result.d.ts +0 -9
- package/lib/tx/transaction-step.d.ts +0 -5
package/lib/logger/logger.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { LogMessage } from './log-message.js';
|
|
2
|
-
import { LogSnapshot } from './log-snapshot.js';
|
|
3
|
-
import { LoggerOptions } from './logger-options.js';
|
|
4
|
-
import { LoggerInstance } from './logger-instance.js';
|
|
5
|
-
import { LoggerLevelName } from './logger-level-name.js';
|
|
6
|
-
import { LoggerRingBuffer } from './logger-ring-buffer.js';
|
|
7
|
-
import { LogMessageBuilder } from './log-message-builder.js';
|
|
8
|
-
export declare class Logger {
|
|
9
|
-
private static LOGGER_INSTANCES;
|
|
10
|
-
private static DEFAULT_OPTIONS;
|
|
11
|
-
static applyDefaultsToOptions(input?: LoggerOptions): LoggerOptions;
|
|
12
|
-
static changeDefaultOptions(input: LoggerOptions, retroactive?: boolean): void;
|
|
13
|
-
static getLogger(loggerName?: string, inOptions?: LoggerOptions): LoggerInstance;
|
|
14
|
-
static recordMessageBuilder(msgBuild: LogMessageBuilder): string;
|
|
15
|
-
static recordMessage(msg: LogMessage): string;
|
|
16
|
-
static formatMessages(msgs: LogMessage[]): string[];
|
|
17
|
-
static updateTracePrefix(newValue: string): void;
|
|
18
|
-
static changeRingBufferSize(newValue: number): void;
|
|
19
|
-
static getRingBuffer(): LoggerRingBuffer;
|
|
20
|
-
static dumpConfigurationIntoLog(): void;
|
|
21
|
-
static dumpOptionsIntoLog(): void;
|
|
22
|
-
static getLevel(): LoggerLevelName;
|
|
23
|
-
static setLevel(newLevel: LoggerLevelName): void;
|
|
24
|
-
static getOptions(): LoggerOptions;
|
|
25
|
-
static getMessages(inStartFrom?: number, clear?: boolean, reverseSort?: boolean): LogMessage[];
|
|
26
|
-
static consoleLogPassThru(level: LoggerLevelName, ...input: any[]): void;
|
|
27
|
-
static error(format: string, ...input: any[]): string;
|
|
28
|
-
static errorP(...input: any[]): void;
|
|
29
|
-
static warn(format: string, ...input: any[]): string;
|
|
30
|
-
static warnP(...input: any[]): void;
|
|
31
|
-
static info(format: string, ...input: any[]): string;
|
|
32
|
-
static infoP(...input: any[]): void;
|
|
33
|
-
static verbose(format: string, ...input: any[]): string;
|
|
34
|
-
static verboseP(...input: any[]): void;
|
|
35
|
-
static debug(format: string, ...input: any[]): string;
|
|
36
|
-
static debugP(...input: any[]): void;
|
|
37
|
-
static silly(format: string, ...input: any[]): string;
|
|
38
|
-
static sillyP(...input: any[]): void;
|
|
39
|
-
static takeSnapshot(): LogSnapshot;
|
|
40
|
-
static logByLevel(level: LoggerLevelName, format: string, ...input: any[]): void;
|
|
41
|
-
static importMessages(msgs: LogMessage[], prefixIn?: string, addTimestamp?: boolean): void;
|
|
42
|
-
static getLastLogMessage(): LogMessage;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LogMessage } from './log-message.js';
|
|
2
|
-
import { LogMessageFormatter } from './log-message-formatter.js';
|
|
3
|
-
import { LoggerMeta } from './logger-meta.js';
|
|
4
|
-
export declare class NoneLogMessageFormatter implements LogMessageFormatter {
|
|
5
|
-
formatMessage(msg: LogMessage, meta: LoggerMeta): string;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LogMessage } from './log-message.js';
|
|
2
|
-
import { LogMessageFormatter } from './log-message-formatter.js';
|
|
3
|
-
import { LoggerMeta } from './logger-meta.js';
|
|
4
|
-
export declare class StructuredJsonLogMessageFormatter implements LogMessageFormatter {
|
|
5
|
-
formatMessage(msg: LogMessage, meta: LoggerMeta): string;
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ParsedUrl } from '../lang/parsed-url.js';
|
|
2
|
-
export declare class NetworkRatchet {
|
|
3
|
-
private static LOCAL_IP;
|
|
4
|
-
static findLocalIp(useCache?: boolean): Promise<string>;
|
|
5
|
-
static parseUrl(href: string): ParsedUrl;
|
|
6
|
-
private static updateLocalIP;
|
|
7
|
-
private static grepSDP;
|
|
8
|
-
private static updateAddressList;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
import { Writable } from 'stream';
|
|
4
|
-
export declare class BufferWritable extends Writable {
|
|
5
|
-
private _val;
|
|
6
|
-
constructor();
|
|
7
|
-
_write(chunk: any, encoding: string, callback: any): void;
|
|
8
|
-
get value(): Buffer;
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
import { Readable } from 'stream';
|
|
4
|
-
export declare class StreamRatchet {
|
|
5
|
-
private constructor();
|
|
6
|
-
static readableToBufferSync(stream: Readable): Buffer;
|
|
7
|
-
static webReadableStreamToBuffer(stream: ReadableStream): Promise<Buffer>;
|
|
8
|
-
static webReadableStreamToString(stream: ReadableStream): Promise<string>;
|
|
9
|
-
static stringToReadable(input: string): Readable;
|
|
10
|
-
static stringToWebReadableStream(input: string): ReadableStream;
|
|
11
|
-
static anyToStringReadable(input: any): Readable;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
import { Writable } from 'stream';
|
|
3
|
-
export declare class StringWritable extends Writable {
|
|
4
|
-
private _val;
|
|
5
|
-
constructor();
|
|
6
|
-
_write(chunk: any, encoding: string, callback: any): void;
|
|
7
|
-
get value(): string;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class TwilioRatchet {
|
|
2
|
-
private accountSid;
|
|
3
|
-
private authToken;
|
|
4
|
-
private outBoundNumber;
|
|
5
|
-
static readonly TWILLIO_BASE_API_URL: string;
|
|
6
|
-
constructor(accountSid: string, authToken: string, outBoundNumber: string);
|
|
7
|
-
static sendMessageDirect(accountSid: string, authToken: string, outBoundNumber: string, recipientPhoneNumbers: string[], message: string): Promise<any[]>;
|
|
8
|
-
static generateTwilioBasicAuth(sid: string, authToken: string): string;
|
|
9
|
-
sendMessage(recipientPhoneNumbers: string[], message: string): Promise<any[]>;
|
|
10
|
-
static isValidE164Number(num: string): boolean;
|
|
11
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TransformRule } from './transform-rule.js';
|
|
2
|
-
export declare class BuiltInTransforms {
|
|
3
|
-
static keysOnly(rule: TransformRule): TransformRule;
|
|
4
|
-
static valuesOnly(rule: TransformRule): TransformRule;
|
|
5
|
-
static stringReplaceTransform(input: string, output: string): TransformRule;
|
|
6
|
-
static stripStringTransform(input: string): TransformRule;
|
|
7
|
-
static retainAll(input: string[]): TransformRule;
|
|
8
|
-
static removeAll(input: string[]): TransformRule;
|
|
9
|
-
static snakeToCamelCase(): TransformRule;
|
|
10
|
-
static stringToNumber(): TransformRule;
|
|
11
|
-
static camelToSnakeCase(): TransformRule;
|
|
12
|
-
static concatenateToNewField(newFieldName: string, oldFieldNamesInOrder: string[], abortIfFieldMissing?: boolean): TransformRule;
|
|
13
|
-
static numberToBool(fieldNames: string[]): TransformRule;
|
|
14
|
-
static boolToNumber(fieldNames: string[]): TransformRule;
|
|
15
|
-
static makeDuplicateField(oldName: string, newName: string): TransformRule;
|
|
16
|
-
static addField(name: string, valueToAdd: string): TransformRule;
|
|
17
|
-
static reformatDateFields(fieldNames: string[], oldFormat: string, newFormat: string): TransformRule;
|
|
18
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformRule } from './transform-rule.js';
|
|
2
|
-
export declare class TransformRatchet {
|
|
3
|
-
static transform(toTransform: any, rules?: TransformRule[]): any;
|
|
4
|
-
private static transformGeneric;
|
|
5
|
-
private static applyTransformToObject;
|
|
6
|
-
private static applyTransformToPrimitive;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransactionResult } from './transaction-result.js';
|
|
2
|
-
import { LoggerLevelName } from '../logger/logger-level-name.js';
|
|
3
|
-
export interface TransactionConfiguration<T> {
|
|
4
|
-
stepLogLevel?: LoggerLevelName;
|
|
5
|
-
executeAfterRollback?(result: TransactionResult<T>): Promise<void>;
|
|
6
|
-
executeAfterRollbackFailure?(result: TransactionResult<T>): Promise<void>;
|
|
7
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TransactionStep } from './transaction-step.js';
|
|
2
|
-
import { TransactionResult } from './transaction-result.js';
|
|
3
|
-
import { TransactionConfiguration } from './transaction-configuration.js';
|
|
4
|
-
export declare class TransactionRatchet {
|
|
5
|
-
static execute<T>(steps: TransactionStep<T>[], initialContext: T, inConfiguration?: TransactionConfiguration<T>): Promise<TransactionResult<T>>;
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|