Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

racer

Package Overview
Dependencies
Maintainers
7
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

racer - npm Package Compare versions

Comparing version 2.0.0-beta.12 to 2.0.0-beta.13

2

lib/Model/collections.d.ts

@@ -26,3 +26,3 @@ import { type Segments } from './types';

interface Model<T> {
destroy(subpath?: string): void;
destroy(subpath?: Path): void;
/**

@@ -29,0 +29,0 @@ * Gets the value located at this model's path or a relative subpath.

@@ -5,3 +5,3 @@ /// <reference types="node" />

import { type Segments } from './types';
import { PathLike } from '../types';
import type { Path, PathLike } from '../types';
export type ModelEvent = ChangeEvent | InsertEvent | RemoveEvent | MoveEvent | LoadEvent | UnloadEvent;

@@ -104,3 +104,3 @@ export interface ModelOnEventMap {

pass(object: object, invert?: boolean): Model<T>;
removeAllListeners(type: string, subpath: string): void;
removeAllListeners(type: string, subpath: Path): void;
removeContextListeners(): void;

@@ -107,0 +107,0 @@ removeListener(eventType: keyof ModelOnEventMap, listener: Function): void;

import { Model } from './Model';
import { type Segments } from './types';
import { PathLike } from '../types';
import type { Path, PathLike } from '../types';
interface PaginationOptions {

@@ -38,3 +38,3 @@ skip: number;

}) => boolean): Filter<S>;
removeAllFilters: (subpath: string) => void;
removeAllFilters: (subpath: Path) => void;
/**

@@ -41,0 +41,0 @@ * Creates a live-updating list from items in an object, which results in

@@ -5,3 +5,3 @@ import { type Segments } from './types';

import { EventMapTree } from './EventMapTree';
import { PathLike, ReadonlyDeep } from '../types';
import type { Path, PathLike, ReadonlyDeep } from '../types';
declare class NamedFns {

@@ -107,4 +107,4 @@ }

start<Out, Ins extends StartFnParam[]>(outputPath: PathLike, inputPaths: PathLike[], fn: ModelFn<Ins, Out> | string): Out;
stop(subpath: string): void;
stopAll(subpath: string): void;
stop(subpath: Path): void;
stopAll(subpath: Path): void;
_fns: Fns;

@@ -111,0 +111,0 @@ _namedFns: NamedFns;

@@ -6,31 +6,31 @@ import type { Callback, Path, ArrayItemType } from '../types';

_mutate(segments: any, fn: any, cb: any): void;
set(value: T): T | undefined;
set<S>(subpath: string, value: any, cb?: ErrorCallback): S | undefined;
set(value: T, cb?: ErrorCallback): T | undefined;
set<S>(subpath: Path, value: any, cb?: ErrorCallback): S | undefined;
setPromised(value: T): Promise<T | undefined>;
setPromised<S>(subpath: string, value: any): Promise<S | undefined>;
setPromised<S>(subpath: Path, value: any): Promise<S | undefined>;
_set<S>(segments: Segments, value: any, cb?: ErrorCallback): S | undefined;
setNull(value: T): T | undefined;
setNull<S>(subpath: string, value: S, cb?: ErrorCallback): S | undefined;
setNull(value: T, cb?: ErrorCallback): T | undefined;
setNull<S>(subpath: Path, value: S, cb?: ErrorCallback): S | undefined;
setNullPromised(value: T): Promise<T | undefined>;
setNullPromised<S>(subpath: string, value: S): Promise<S | undefined>;
setNullPromised<S>(subpath: Path, value: S): Promise<S | undefined>;
_setNull<S>(segments: Segments, value: S, cb?: ErrorCallback): S | undefined;
setEach(value: any): void;
setEach(subpath: string, value: any, cb?: ErrorCallback): void;
setEach(value: any, cb?: ErrorCallback): void;
setEach(subpath: Path, value: any, cb?: ErrorCallback): void;
setEachPromised(value: any): Promise<void>;
setEachPromised(subpath: string, value: any): Promise<void>;
setEachPromised(subpath: Path, value: any): Promise<void>;
_setEach(segments: Segments, value: any, cb?: ErrorCallback): void;
create(value: any): void;
create(subpath: string, value: any, cb?: ErrorCallback): void;
create(value: any, cb?: ErrorCallback): void;
create(subpath: Path, value: any, cb?: ErrorCallback): void;
createPromised(value: any): Promise<void>;
createPromised(subpath: string, value: any): Promise<void>;
createPromised(subpath: Path, value: any): Promise<void>;
_create(segments: Segments, value: any, cb?: ErrorCallback): void;
createNull(value: any): void;
createNull(subpath: string, value: any, cb?: ErrorCallback): void;
createNull(value: any, cb?: ErrorCallback): void;
createNull(subpath: Path, value: any, cb?: ErrorCallback): void;
createNullPromised(value: any): Promise<void>;
createNullPromised(subpath: string, value: any): Promise<void>;
createNullPromised(subpath: Path, value: any): Promise<void>;
_createNull(segments: Segments, value: any, cb?: ErrorCallback): void;
add(value: any): string;
add(subpath: string, value: any, cb?: ErrorCallback): string;
add(value: any, cb?: ErrorCallback): string;
add(subpath: Path, value: any, cb?: ErrorCallback): string;
addPromised(value: any): Promise<string>;
addPromised(subpath: string, value: any): Promise<string>;
addPromised(subpath: Path, value: any): Promise<string>;
_add(segments: Segments, value: any, cb?: ErrorCallback): string;

@@ -48,24 +48,24 @@ /**

del<T>(cb?: Callback): T | undefined;
delPromised<S>(subpath: string): Promise<S>;
delPromised<S>(subpath: Path): Promise<S>;
_del<S>(segments: Segments, cb?: ErrorCallback): S;
_delNoDereference(segments: Segments, cb?: ErrorCallback): void;
increment(value?: number): number;
increment(subpath: string, value?: number, cb?: ErrorCallback): number;
increment(subpath: Path, value?: number, cb?: ErrorCallback): number;
incrementPromised(value?: number): Promise<number>;
incrementPromised(subpath: string, value?: number): Promise<number>;
incrementPromised(subpath: Path, value?: number): Promise<number>;
_increment(segments: Segments, value: number, cb?: ErrorCallback): number;
push(value: any): number;
push(subpath: string, value: any, cb?: ErrorCallback): number;
push(subpath: Path, value: any, cb?: ErrorCallback): number;
pushPromised(value: any): Promise<number>;
pushPromised(subpath: string, value: any): Promise<number>;
pushPromised(subpath: Path, value: any): Promise<number>;
_push(segments: Segments, value: any, cb?: ErrorCallback): number;
unshift(value: any): void;
unshift(subpath: string, value: any, cb?: ErrorCallback): void;
unshift(subpath: Path, value: any, cb?: ErrorCallback): void;
unshiftPromised(value: any): Promise<void>;
unshiftPromised(subpath: string, value: any): Promise<void>;
unshiftPromised(subpath: Path, value: any): Promise<void>;
_unshift(segments: Segments, value: any, cb?: ErrorCallback): void;
insert(index: number, value: any): void;
insert(subpath: string, index: number, value: any, cb?: ErrorCallback): void;
insert(subpath: Path, index: number, value: any, cb?: ErrorCallback): void;
insertPromised(value: any, index: number): Promise<void>;
insertPromised(subpath: string, index: number, value: any): Promise<void>;
insertPromised(subpath: Path, index: number, value: any): Promise<void>;
_insert(segments: Segments, index: number, value: any, cb?: ErrorCallback): void;

@@ -85,6 +85,6 @@ /**

popPromised(value: any): Promise<void>;
popPromised(subpath: string, value: any): Promise<void>;
popPromised(subpath: Path, value: any): Promise<void>;
_pop(segments: Segments, value: any, cb?: ErrorCallback): void;
shift<S>(subpath?: string, cb?: ErrorCallback): S;
shiftPromised<S>(subpath?: string): Promise<S>;
shift<S>(subpath?: Path, cb?: ErrorCallback): S;
shiftPromised<S>(subpath?: Path): Promise<S>;
_shift<S>(segments: Segments, cb?: ErrorCallback): S;

@@ -106,34 +106,34 @@ /**

removePromised(index: number): Promise<void>;
removePromised(subpath: string): Promise<void>;
removePromised(subpath: Path): Promise<void>;
removePromised(index: number, howMany: number): Promise<void>;
removePromised(subpath: string, index: number): Promise<void>;
removePromised(subpath: string, index: number, howMany: number): void;
removePromised(subpath: Path, index: number): Promise<void>;
removePromised(subpath: Path, index: number, howMany: number): void;
_remove(segments: Segments, index: number, howMany: number, cb?: ErrorCallback): void;
move(from: number, to: number, cb?: ErrorCallback): void;
move(from: number, to: number, howMany: number, cb?: ErrorCallback): void;
move(subpath: string, from: number, to: number, cb?: ErrorCallback): void;
move(subpath: string, from: number, to: number, howmany: number, cb?: ErrorCallback): void;
move(subpath: Path, from: number, to: number, cb?: ErrorCallback): void;
move(subpath: Path, from: number, to: number, howmany: number, cb?: ErrorCallback): void;
movePromised(from: number, to: number): Promise<void>;
movePromised(from: number, to: number, howMany: number): Promise<void>;
movePromised(subpath: string, from: number, to: number): Promise<void>;
movePromised(subpath: string, from: number, to: number, howmany: number): Promise<void>;
movePromised(subpath: Path, from: number, to: number): Promise<void>;
movePromised(subpath: Path, from: number, to: number, howmany: number): Promise<void>;
_move(segments: Segments, from: number, to: number, owMany: number, cb?: ErrorCallback): void;
stringInsert(index: number, text: string, cb?: ErrorCallback): void;
stringInsert(subpath: string, index: number, text: string, cb?: ErrorCallback): void;
stringInsert(subpath: Path, index: number, text: string, cb?: ErrorCallback): void;
stringInsertPromised(index: number, text: string): Promise<void>;
stringInsertPromised(subpath: string, index: number, text: string): Promise<void>;
stringInsertPromised(subpath: Path, index: number, text: string): Promise<void>;
_stringInsert(segments: Segments, index: number, text: string, cb?: ErrorCallback): void;
stringRemove(index: number, howMany: number, cb?: ErrorCallback): void;
stringRemove(subpath: string, index: number, cb?: ErrorCallback): void;
stringRemove(subpath: string, index: number, howMany: number, cb?: ErrorCallback): void;
stringRemove(subpath: Path, index: number, cb?: ErrorCallback): void;
stringRemove(subpath: Path, index: number, howMany: number, cb?: ErrorCallback): void;
stringRemovePromised(index: number, howMany: number): Promise<void>;
stringRemovePromised(subpath: string, index: number): Promise<void>;
stringRemovePromised(subpath: string, index: number, howMany: number): Promise<void>;
stringRemovePromised(subpath: Path, index: number): Promise<void>;
stringRemovePromised(subpath: Path, index: number, howMany: number): Promise<void>;
_stringRemove(segments: Segments, index: number, howMany: number, cb?: ErrorCallback): void;
subtypeSubmit(subtype: any, subtypeOp: any, cb?: ErrorCallback): void;
subtypeSubmit(subpath: string, subtype: any, subtypeOp: any, cb?: ErrorCallback): void;
subtypeSubmit(subpath: Path, subtype: any, subtypeOp: any, cb?: ErrorCallback): void;
subtypeSubmitPromised(subtype: any, subtypeOp: any): Promise<void>;
subtypeSubmitPromised(subpath: string, subtype: any, subtypeOp: any): Promise<void>;
subtypeSubmitPromised(subpath: Path, subtype: any, subtypeOp: any): Promise<void>;
_subtypeSubmit(segments: Segments, subtype: any, subtypeOp: any, cb?: ErrorCallback): void;
}
}

@@ -7,3 +7,3 @@ import type { Path, PathLike } from '../types';

at<S = unknown>(subpath: Path): ChildModel<S>;
isPath(subpath: string): boolean;
isPath(subpath: Path): boolean;
leaf(path: string): string;

@@ -14,4 +14,4 @@ parent(levels?: number): Model;

scope<S = unknown>(subpath: Path): ChildModel<S>;
_splitPath(subpath: string): string[];
_splitPath(subpath: Path): string[];
}
}

@@ -7,3 +7,3 @@ import { EventListenerTree } from './EventListenerTree';

import { type Query } from './Query';
import { PathLike } from '../types';
import type { Path, PathLike } from '../types';
type Refable = string | number | Model<any> | Query | Filter<unknown>;

@@ -63,3 +63,3 @@ export interface RefOptions {

_removeAllRefs(segments: Segments): void;
dereference(subpath: string): Segments;
dereference(subpath: Path): Segments;
_dereference(segments: Segments, forArrayMutator: any, ignore: boolean): Segments;

@@ -66,0 +66,0 @@ _refs: any;

@@ -18,3 +18,3 @@ import { Callback, Path, ReadonlyDeep } from '../types';

setDiff(value: T | undefined): ReadonlyDeep<T> | undefined;
setDiffPromised<S>(subpath: string, value: S): Promise<S>;
setDiffPromised<S>(subpath: Path, value: S): Promise<S>;
_setDiff(segments: Segments, value: any, cb?: (err: Error) => void): void;

@@ -21,0 +21,0 @@ /**

@@ -12,3 +12,3 @@ {

},
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"main": "./lib/index.js",

@@ -15,0 +15,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc